/* Preserve pixel shapes throughout the site, including headings and controls. */
*, *::before, *::after { font-weight: 400 !important; font-synthesis: none; }
/* DotGothic16: Copyright 2020 The DotGothic16 Project Authors.
   SIL OFL 1.1: /fonts/OFL-DotGothic16.txt */
@font-face {
  font-family: "DotGothic16";
  src: url("/fonts/DotGothic16-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #070912;
  --panel: #101424;
  --panel-2: #151b31;
  --text: #f5f7ff;
  --muted: #a8b0c9;
  --line: #29314d;
  --cyan: #59f0ff;
  --violet: #9f7cff;
  --pink: #ff5fc8;
  --green: #74f6a7;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

.catalog-intro { padding: 3.5rem 0 1rem; }
.catalog-intro h1 { max-width: 20ch; font-size: clamp(2.4rem, 5.8vw, 4.7rem); line-height: 1.22; }
.catalog { padding-top: 1.5rem; }
.catalog h2 { font-size: 1.5rem; }
.game-name { font-size: clamp(2rem,4vw,3rem); margin-top: 1rem; }
.beta { color: #ffe2a0; border-color: #756039; }
.content-page h1 { max-width: 100%; font-size: clamp(2rem,5vw,3.7rem); line-height: 1.3; }
.contact-address { overflow-wrap: anywhere; }
.nav { flex-wrap: wrap; }
.nav .language { border: 1px solid var(--line); padding: .4rem .7rem; border-radius: .5rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
@media (max-width:640px) {
 .header-inner { flex-wrap: wrap; padding: .8rem 0; gap: .6rem; }
 .site-header .nav a { display: inline-block; font-size: .875rem; }
 .nav { gap: .75rem; }
 .brand { font-size: 1rem; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% -10%, rgba(89, 240, 255, .16), transparent 34rem),
    radial-gradient(circle at 92% 10%, rgba(255, 95, 200, .13), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: "DotGothic16", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; background: white; color: #05060b; padding: .7rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(89, 240, 255, .12);
  background: rgba(7, 9, 18, .82);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; text-decoration: none; font-weight: 850; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(89,240,255,.5); border-radius: 11px; background: linear-gradient(135deg, rgba(89,240,255,.2), rgba(159,124,255,.24)); box-shadow: inset 0 0 18px rgba(89,240,255,.12); }
.brand-mark::before { content: "▶"; color: var(--cyan); font-size: .82rem; transform: translateX(1px); }
.nav { display: flex; align-items: center; gap: 1.25rem; color: var(--muted); }
.nav a { text-decoration: none; font-size: .94rem; font-weight: 700; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .72rem 1.12rem; border: 1px solid transparent; border-radius: 12px; background: linear-gradient(135deg, var(--cyan), #74b9ff); color: #041017; font-weight: 850; text-decoration: none; box-shadow: 0 10px 28px rgba(89,240,255,.18); }
.button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.button.secondary { background: transparent; border-color: var(--line); color: var(--text); box-shadow: none; }
.hero { padding: clamp(4.2rem, 9vw, 7rem) 0 3.5rem; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem; color: var(--cyan); font-size: .83rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 10ch; font-size: clamp(2.7rem, 7.5vw, 5.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.35rem; }
.gradient-text { background: linear-gradient(90deg, var(--cyan), #bca7ff 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 42rem; margin: 1.4rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.console {
  position: relative; overflow: hidden; min-height: 390px; padding: 1.2rem;
  border: 1px solid var(--line); border-radius: 26px;
  background: linear-gradient(160deg, rgba(21,27,49,.94), rgba(9,12,23,.92)); box-shadow: var(--shadow);
}
.console::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255,255,255,.012) 6px); }
.console-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .8rem; }
.live { display: inline-flex; align-items: center; gap: .45rem; color: var(--green); font-weight: 800; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.bingo-preview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 2rem; transform: rotate(-1.4deg); }
.bingo-preview span { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #354064; border-radius: 9px; background: rgba(255,255,255,.035); font-weight: 850; font-size: clamp(.8rem, 2vw, 1rem); }
.bingo-preview span:nth-child(3n) { border-color: rgba(89,240,255,.55); color: var(--cyan); background: rgba(89,240,255,.09); }
.bingo-preview .free { color: #0a1019; border-color: var(--pink); background: var(--pink); }
.viewer-strip { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.4rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: .88rem; }
.viewer-strip strong { color: var(--text); }
.section { padding: 4rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.5rem; }
.section-head p { max-width: 38rem; margin: 0; color: var(--muted); }
.game-card { display: grid; grid-template-columns: 1.2fr .8fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(150deg, rgba(21,27,49,.86), rgba(12,15,28,.92)); box-shadow: var(--shadow); }
.game-card + .game-card { margin-top: 2rem; }
.game-card-main { padding: clamp(1.5rem, 4vw, 2.6rem); }
.tags { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0 1.4rem; }
.tag { padding: .28rem .66rem; border: 1px solid var(--line); border-radius: 999px; color: #c7cee2; font-size: .78rem; font-weight: 750; }
.game-card p { color: var(--muted); }
.game-stats { display: grid; grid-template-columns: repeat(2, 1fr); border-left: 1px solid var(--line); background: rgba(0,0,0,.12); }
.stat { display: flex; flex-direction: column; justify-content: center; min-height: 140px; padding: 1.25rem; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat strong { font-size: 2rem; line-height: 1; }
.stat span { margin-top: .55rem; color: var(--muted); font-size: .82rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.principle { padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(16,20,36,.68); }
.principle b { display: block; margin-bottom: .55rem; color: var(--cyan); font-size: .78rem; letter-spacing: .1em; }
.principle p { margin: .7rem 0 0; color: var(--muted); }
.content-page { padding: 4rem 0 6rem; }
.content-page > header { max-width: 760px; margin-bottom: 2.4rem; }
.content-page .lead { margin-top: 1rem; }
.prose { max-width: 820px; }
.prose h2 { margin: 2.8rem 0 .9rem; font-size: 1.65rem; }
.prose h3 { margin: 2rem 0 .6rem; font-size: 1.18rem; }
.prose p, .prose li { color: #c2c9dc; }
.prose a:not(.button) { color: var(--cyan); }
.notice { margin: 1.5rem 0; padding: 1.1rem 1.2rem; border-left: 3px solid var(--cyan); border-radius: 0 10px 10px 0; background: rgba(89,240,255,.07); color: #d9faff; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1rem; padding: 1.2rem 0 4rem; }
.game-stage { overflow: hidden; min-height: 74vh; border: 1px solid var(--line); border-radius: 18px; background: #0b0e19; box-shadow: var(--shadow); }
.game-stage iframe { display: block; width: 100%; height: 74vh; border: 0; background: #0b0e19; }
.game-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.side-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(16,20,36,.8); }
.side-card h2 { font-size: 1.1rem; }
.side-card p, .side-card li { color: var(--muted); font-size: .9rem; }
.side-card ul { margin: .8rem 0 0; padding-left: 1.2rem; }
.ad-note { border-style: dashed; color: #8992ad; font-size: .8rem; }
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { text-decoration: none; }
.small { font-size: .82rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero, .game-card, .game-layout { grid-template-columns: 1fr; }
  .game-stats { border-left: 0; border-top: 1px solid var(--line); }
  .principles { grid-template-columns: 1fr; }
  .game-stage, .game-stage iframe { min-height: 68vh; height: 68vh; }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 22px, 1160px); }
  .header-inner { min-height: 64px; }
  .nav a:not(.nav-keep) { display: none; }
  .hero { padding-top: 3.2rem; gap: 2.2rem; }
  .console { min-height: 330px; border-radius: 18px; }
  .section-head, .footer-inner { align-items: flex-start; flex-direction: column; }
  .game-stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 115px; }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: transform .2s ease, filter .2s ease; }
  .bingo-preview span { animation: pulse 5s ease-in-out infinite; }
  .bingo-preview span:nth-child(2n) { animation-delay: .7s; }
  @keyframes pulse { 0%, 85%, 100% { box-shadow: none; } 90% { box-shadow: 0 0 18px rgba(89,240,255,.28); } }
}
/* Retro casino visual trial. Original CSS artwork; no reference-image assets. */
:root {
  --bg:#102b27; --panel:#193b33; --panel-2:#244a3f;
  --text:#f6ecd4; --ink:#f6ecd4; --muted:#c9c2a8; --dim:#c9c2a8;
  --line:#766a43; --cyan:#edcb82; --pink:#ed9c8a; --green:#a5c4a5;
  --violet:#d9b66a; --shadow:0 16px 40px #061b1766;
  background:#102b27; color:#f6ecd4;
}
body {
  color:var(--ink);
  background:
    radial-gradient(ellipse at 50% 0, #49665055, transparent 65%),
    repeating-linear-gradient(45deg, #ffffff02 0 1px, transparent 1px 5px),
    #102b27;
  min-height:100vh;
}
h1,h2,h3 { letter-spacing:.015em; }
h1, .game-name { color:#f6dfab; text-shadow:2px 3px 0 #792f30,0 2px 12px #e3ad4730; }
h1 span, .gradient-text { color:#f6dfab; background:none; -webkit-text-fill-color:currentColor; }
a,summary { color:#edcb82; }
.site-header,.top { background:#102722f2; border-bottom:1px solid #9d8653; }
.top { max-width:none; padding-inline:max(24px,calc((100vw - 1386px)/2)); }
.site-header .brand,.brand { color:#f6ecd4; }
.brand span,.brand-mark::before { color:#edcb82; }
.brand-mark { flex:none; border:0; border-radius:0; box-shadow:none; background:transparent url('/brand-seven.png') center/32px 32px no-repeat; image-rendering:pixelated; }
.brand-mark::before { content:none; }
.nav,.nav a,.site-header .nav a,.brand small { color:#d5c6a5; }
.nav a:hover,.nav a[aria-current="page"] { color:#fff2ca; }
.eyebrow { color:#edcb82; letter-spacing:.18em; }
.eyebrow::before { background:#edcb82; box-shadow:0 0 8px #edcb8244; }
.catalog-intro {
  position:relative; margin-top:30px; padding:48px 34px 36px;
  border:1px solid #ddb979; border-radius:8px;
  outline:1px solid #805648; outline-offset:6px;
  background:linear-gradient(115deg,#743331,#502a29);
  box-shadow:inset 0 0 0 7px #3a2522,0 14px 35px #0003;
}
.catalog-intro::before,.catalog-intro::after {
  content:""; position:absolute; left:17px; right:17px; height:8px; pointer-events:none;
  background:radial-gradient(circle,#ffe6af 0 2px,#dbac6655 3px,transparent 4px) 0 0/24px 8px repeat-x;
}
.catalog-intro::before { top:15px; }
.catalog-intro::after { bottom:14px; }
.catalog-intro h1 { max-width:none; font-size:clamp(2rem,5.5vw,4.2rem); line-height:1.3; }
.catalog-intro .lead { color:#eedfc2; }
.catalog { padding-top:42px; }
.section-head h2 { color:#f6dfab; }
.game-card { border:1px solid #b09662; border-radius:8px; background:linear-gradient(120deg,#24463b,#19372f); box-shadow:inset 0 0 0 5px #122e28,var(--shadow); }
.game-card + .game-card { margin-top:32px; }
.game-card:nth-of-type(2) { background:linear-gradient(120deg,#4c3030,#342b28); }
.game-stats { background:#0c251e55; border-color:#766a43; }
.stat { border-color:#766a43; }
.stat:nth-child(odd) { border-color:#766a43; }
.stat strong { color:#edcb82; }
.tag { border-color:#89774f; color:#e6d4ad; background:#132d2666; border-radius:4px; }
.beta { background:#693532; border-color:#b88960; color:#ffe1a3; }
.button,button,.primary {
  border:1px solid #f0d697; border-radius:5px; background:linear-gradient(#efd49a,#d4ae62);
  color:#28271b; box-shadow:0 4px 0 #836037,0 8px 16px #0002; font-weight:700;
}
.button:hover,button:hover,.primary:hover { background:#f2dba8; filter:none; }
.button.secondary,button.secondary,button.quiet,.quiet {
  background:#203f34; border-color:#a28e60; color:#f0ddb8; box-shadow:0 3px 0 #0d231c;
}
button.danger { background:#64332e; color:#ffd1bd; border-color:#c67f69; box-shadow:none; }
button:disabled { box-shadow:none; opacity:.5; }
input,textarea,select { color:#f6ecd4; background:#102a23; border:1px solid #998861; border-radius:5px; accent-color:#edcb82; }
option { color:#f6ecd4; background:#102a23; }
.lead,.muted,.help,footer,.small,.game-card p,.stat span,.principle p { color:#c9c2a8; }
.principle,.side-card { background:#16362d; border-color:#766a43; border-radius:7px; }
.principle b { color:#edcb82; }
.prose p,.prose li { color:#e1d8c0; }
.notice { background:#b98a3020; color:#f5dfb3; border-color:#edcb82; }
.site-footer,footer { border-color:#766a43; }
.site-footer { background:#0c231e; }
.content-page>header { border-bottom:1px solid #99805a; padding-bottom:28px; }
.panel,#game section,#createPanel,.card,dialog,#cardDialog,#moderationDialog {
  background:#193b33; border-color:#8e7c52; border-radius:8px;
}
main section.stage { background:linear-gradient(120deg,#214c3d,#15392e); border:1px solid #bca06a; }
#room { background:transparent; border:0; }
.scoreboard { background:linear-gradient(110deg,#743632,#432d27); border:1px solid #d0ad6b; border-radius:8px; }
.latest strong { color:#ffe1a0; text-shadow:2px 3px #672f2c; }
.result,section#result { background:#63332f!important; border-color:#edcb82; color:#ffebc4; }
.grid span,.number-table td,.numbers span { background:#294a3e; color:#e7ddc4; }
.grid span.marked,.number-table td.marked,.numbers .marked { background:#e3c17a; color:#27281b; }
.grid b,.number-table th { color:#edcb82; }
.card.winner { border-color:#ed9c8a; background:#47342a; }
.player-actions { background:#183b30; border-color:#ad9560; }
.player-actions button { background:#56322b; color:#ffd3be; }
#notice:not(:empty) { background:#294538; border-color:#edcb82; }
#notice.error,#message { color:#ffd0a2; }
#players li { background:#2a4b3c; color:#f6ecd4; border:1px solid #68704b; border-radius:5px; }
#players li.out { background:#263b30; color:#b2b7a1; border-color:#526047; }
#players li.winner { background:#6d3830; border-color:#d9b874; color:#ffedcb; }
#result { color:#ffe0a1; }
.pointer { color:#ffe0a1; }
.wheel-wrap { filter:drop-shadow(0 8px 12px #0005); }
:focus-visible { outline-color:#ffe6a4!important; }
@media(max-width:640px) {
  .catalog-intro { margin-top:20px; padding:38px 18px 30px; outline-offset:3px; }
  .catalog-intro h1 { font-size:clamp(1.7rem,7vw,2.4rem); }
  .nav a:not(.nav-keep) { display:inline-block; }
  .nav { gap:12px; }
  h1 { letter-spacing:0; }
}
@media(prefers-reduced-motion:no-preference) { .bingo-preview span { animation:none; } }
