:root {
  color-scheme:light;
  --ink:#302f2b;--paper:#f8f4e9;--coral:#f17b61;--mint:#8bc5ac;--gold:#f1c565;--line:#cfc9b8;
  font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,"Noto Sans CJK JP",sans-serif;
  color:var(--ink);font-synthesis:weight;
}
*{box-sizing:border-box}
body{margin:0;min-width:280px;min-height:100vh;background-color:var(--paper);background-image:radial-gradient(#bdb29969 .8px,transparent .95px);background-size:7px 7px}
button,input{font:inherit}
button{cursor:pointer;color:inherit;touch-action:manipulation}
button:focus-visible,input:focus-visible{outline:3px solid #b54823;outline-offset:4px}
h1:focus{outline:none}
button:disabled{cursor:default}
button{ -webkit-tap-highlight-color:transparent}
.site-header{background:#faf7ec;border-bottom:2px solid var(--ink)}
.header-inner{max-width:1016px;margin:auto;padding:13px 26px;min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:11px;background:none;border:0;padding:0;text-align:left}
.brand-icon{width:43px;height:43px;display:grid;place-items:center;transform:rotate(-4deg)}
.brand-icon svg{width:100%;height:100%}
.brand-text{display:grid;gap:5px}.brand-text strong{font-size:21px;letter-spacing:.015em;font-weight:1000;line-height:1.05}
.brand-text img{width:126px;height:auto;image-rendering:pixelated}
.utility{border:1.5px solid var(--ink);border-radius:7px;background:#fffcf2;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 2px 0 #c7beae}
.sound{min-height:38px;padding:6px 12px;font-size:12px;font-weight:750}
.sound b{font:800 11px/1.2 ui-monospace,monospace;background:#eae5d4;padding:3px 5px;border-radius:3px}.sound[aria-pressed="true"] b{background:#c8e5cf}
.icon{width:21px;height:21px;flex:none}.sound .icon{width:17px;height:17px}
.page{width:min(100%,1016px);margin:0 auto;padding:clamp(26px,5vh,54px) 26px 48px}
.cabinet{border:3px solid var(--ink);background:#ece6d6;border-radius:22px;box-shadow:5px 6px 0 #3e3b32;overflow:hidden;position:relative}
.bezel{padding:16px 17px 0;background:linear-gradient(#f5efdf,#e9e1cf);box-shadow:inset 0 3px #fff9e9}
.display{position:relative;isolation:isolate;overflow:hidden;min-height:310px;border-radius:10px;border:3px solid #2c302d;
  background:#285953 url('assets/night-city.png') center center / 100% 100% no-repeat;
  image-rendering:pixelated;box-shadow:0 1px 0 #fff9ec;color:#fff7da}
.display::before{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;border-radius:7px;box-shadow:inset 0 0 0 3px #182e3052,inset 0 0 25px #132e3040}
.display::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(15,38,37,.055) 0px,rgba(15,38,37,.055) 1px,transparent 1px,transparent 4px)}
.screen-top{position:absolute;z-index:4;top:19px;left:23px;right:23px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.on-air,.channel,.mini-label,.hardware-name,.id-plate,.brand-text img{user-select:none}
.on-air,.channel,.mini-label,.hardware-name,.id-plate,.result-count,.status-meter{font-family:"Courier New",ui-monospace,Menlo,Consolas,monospace}
.on-air{display:inline-flex;align-items:center;gap:6px;letter-spacing:.09em;font-size:11px;font-weight:bold;line-height:1.2;background:#163837d9;border:1px solid #7da194;color:#efeace;padding:4px 7px;border-radius:3px}
.on-air i{width:6px;height:6px;background:#f6876e;box-shadow:0 0 6px #f6876e65}
.channel{font-weight:800;letter-spacing:.14em;color:#c2d5b8;font-size:12px}
.title-display{height:clamp(315px,31.2vw,354px)}
.hero-title{position:absolute;left:8%;top:51%;transform:translateY(-46%);z-index:1}
.hero-kicker{color:#f6e8bf;font-size:clamp(12px,1.3vw,16px);font-weight:850;letter-spacing:.1em;display:flex;align-items:center;gap:10px;margin:0 0 11px}
.hero-kicker span{width:28px;height:3px;background:#ffcb70;box-shadow:0 2px #254541}
.hero-title h1{margin:0;display:flex;flex-direction:column;align-items:flex-start;font-weight:1000;font-size:0;transform:skew(-4deg);transform-origin:50% 50%}
.english-title{font-family:"Arial Black","DejaVu Sans",Arial,sans-serif;font-weight:1000;letter-spacing:-.073em;line-height:1.02;font-size:clamp(51px,7.4vw,86px);color:#fff3d4;text-shadow:2px 3px 0 #193b38,4px 5px 0 #193b38}
.jp-title{white-space:nowrap;line-height:1.14;font-size:clamp(65px,8vw,94px);letter-spacing:-.075em;color:#ffd36e;-webkit-text-stroke:1.4px #ffd36e;text-shadow:2px 3px 0 #1e403a,4px 5px 0 #1e403a,5px 6px 0 #1e403a}
.bang{font-family:"Arial Black",Arial,sans-serif;font-size:1.08em;font-weight:1000;margin-left:.04em}
.hero-character{position:absolute;right:10%;bottom:21px;width:32%;height:80%;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;z-index:1}
.mascot{width:100%;height:auto;object-fit:contain;aspect-ratio:1/1;image-rendering:pixelated;filter:drop-shadow(3px 5px 0 rgba(12,39,37,.3))}
.hero-character .mascot{min-height:0;max-height:calc(100% - 23px);object-position:center bottom;animation:arrive .38s steps(5,end)}
.id-plate{margin-top:2px;font-size:10px;font-weight:800;letter-spacing:.065em;border:1px solid #8aab96;padding:2px 8px;background:#20413cee;color:#dee8c9;line-height:1.5}
@keyframes arrive{from{transform:translateY(6px);opacity:.2}to{transform:translateY(0);opacity:1}}
.hardware{height:30px;display:flex;align-items:center;gap:9px;color:#726b59}
.hardware-name{font-weight:700;font-size:10px;letter-spacing:.1em}.hardware-line{flex:1;background:#d5ccba;height:1px;box-shadow:0 1px #fff8ea}
.screw{height:7px;width:7px;border:1px solid #837d70;background:linear-gradient(135deg,#eae2cd 38%,#837d70 42%,#837d70 55%,#eae2cd 60%);border-radius:50%;flex:none}
.led{height:6px;width:6px;border-radius:50%;background:#74a986;box-shadow:0 0 0 1px #706f5c}
.speaker{height:8px;width:57px;background:repeating-linear-gradient(105deg,#8c8778 0 3px,transparent 3px 7px);transform:skew(-8deg);margin:0 4px}
.control-deck{padding:23px 32px 25px;background:#fff9e9;border-top:2px solid var(--ink)}
.title .control-deck{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:100px}
.start-intro p{font-size:clamp(14px,1.7vw,18px);font-weight:800;margin:6px 0 0;line-height:1.6}
.narrow-break{display:none}
.mini-label{font-size:11px;line-height:1.2;letter-spacing:.12em;font-weight:800;display:inline-flex;align-items:center;gap:7px;color:#595d4f}
.mini-label i{width:6px;height:6px;background:#668976}
.button,.answer{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:2px solid var(--ink);border-radius:8px;min-height:50px;font-weight:900;box-shadow:0 4px 0 var(--ink);transition:transform .1s,box-shadow .1s,background .1s}
.button{padding:10px 22px;font-size:16px}.primary{background:var(--coral);color:#2c2922}.neutral{background:#fffcf0}
.start{min-width:262px;min-height:61px;font-size:21px;letter-spacing:.04em;gap:14px}.start .icon{width:23px;height:23px}
.resource-row{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:24px}
.resource{border:1.5px solid #5d594c;border-radius:11px;box-shadow:0 3px 0 #c0b7a4;background:#fcf8ec;display:flex;align-items:center;text-align:left;gap:15px;min-height:85px;padding:14px 19px}
.resource-icon{width:44px;height:44px;display:grid;place-items:center;border:1.5px solid #413e34;border-radius:9px;flex:none;box-shadow:inset 0 2px #ffffff70}
.resource-icon .icon{width:25px;height:25px}.mint{background:#a5d0ba}.gold{background:#f3ce7b}
.resource b{display:block;font-size:16px;letter-spacing:.02em}.resource small{display:block;font-size:12px;color:#655e51;margin-top:3px}
.resource>.icon{margin-left:auto;width:16px}
@media(hover:hover){.button:hover,.answer:hover{transform:translateY(-1px);box-shadow:0 5px 0 var(--ink)}.primary:hover{background:#fa8e73}.resource:hover,.utility:hover,.neutral:hover{background:#fffdf5}.resource:hover>.icon{transform:translateX(2px)}}
.button:active,.answer:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ink)}
.question-display,.guess-display,.result-display{min-height:295px}
.q-scene,.guess-scene{min-height:295px;display:flex;align-items:center;justify-content:center;gap:34px;padding:58px 5% 52px;position:relative;z-index:1}
.q-host{width:19%;flex:none;text-align:center}.q-host .mascot{vertical-align:middle}
.question-bubble{position:relative;flex:1;background:#fff6db;color:var(--ink);border:3px solid var(--ink);border-radius:12px;box-shadow:3px 4px 0 #1c3838;padding:20px 25px}
.question-bubble:before{content:"";background:#fff6db;width:15px;height:15px;position:absolute;left:-10px;top:50%;border-left:3px solid var(--ink);border-bottom:3px solid var(--ink);transform:translateY(-50%) rotate(45deg)}
.question-bubble .mini-label{color:#857046;font-size:10px}
.question-bubble h1{font-size:clamp(21px,2.65vw,30px);line-height:1.55;margin:8px 0 0;overflow-wrap:anywhere;letter-spacing:.01em}
.game-status{position:absolute;z-index:1;bottom:15px;left:6%;right:6%;display:flex;align-items:center;justify-content:flex-end;gap:12px;color:#f8f4d0;font-size:12px;line-height:1.2;font-weight:700}
.game-status>span:first-child{background:#224d47;padding:4px 6px;border-radius:3px}
.status-meter{display:block;width:75px;height:8px;border:1px solid #a6bc98;background:#224d47;padding:1px}.status-meter i{display:block;height:100%;background:#edce78}
.answer-row,.dual-actions{display:flex;gap:15px}.answer-row>*{flex:1}
.answer{font-size:18px;min-height:57px;padding:7px 10px;background:#fffcf0}
.answer-symbol{display:grid;place-items:center;font:900 24px/1 sans-serif;min-width:23px}.answer.yes{background:#a8d4b9}.answer.no{background:#f6a18a}.answer.unknown{background:#f4e5b8}.answer.unknown .answer-symbol{font-size:21px}
.question-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px}
.question-tools button{padding:4px 0;display:inline-flex;align-items:center;gap:6px;background:none;border:0;font-size:12px;color:#5d5b50;min-height:30px;font-weight:bold}
.question-tools button:disabled{opacity:.4}.question-tools .icon{width:15px;height:15px}
.guess-scene{gap:6%;justify-content:flex-start;padding:58px 7% 36px}.guess-scene>.mascot{width:26%;max-width:170px}
.guess-copy{min-width:0}.guess-copy .mini-label{color:#ffdf95;font-size:12px;line-height:1.6;letter-spacing:.06em}
.guess-copy h1{color:#ffe5a4;font-size:clamp(30px,4.5vw,48px);line-height:1.29;text-shadow:2px 3px #203e35;margin:6px 0 8px;overflow-wrap:anywhere}
.guess-copy p{font-size:15px;color:#fff8da;line-height:1.7;font-weight:600;margin:0;text-shadow:0 2px #254e47}
.decision-title{font-weight:850;margin:0 0 14px;text-align:center}.dual-actions>*{flex:1}
.result-count{background:#193e39;display:inline-flex;gap:7px;align-items:center;color:#d4e1ca;border:1px solid #8baa92;border-radius:4px;padding:4px 8px;margin-top:11px;font-size:11px}.result-count b{color:#ffe3a5;font-size:15px}
#result-ad:not([hidden]){margin-top:22px;text-align:center}
.screen-reader{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
dialog{color:var(--ink);width:min(550px,calc(100% - 32px));max-height:min(76dvh,650px);border:2px solid var(--ink);border-radius:15px;padding:0;background:#fff9e9;box-shadow:5px 6px 0 #282d29;overflow:auto}
dialog::backdrop{background:rgba(31,42,37,.58)}body.modal-open{overflow:hidden}
.dialog-head{position:sticky;top:0;z-index:1;background:#f1e9d6;border-bottom:1px solid #b5ad97;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px}
.dialog-head h2{font-size:20px;margin:0}
.icon-btn{width:34px;height:34px;font:bold 25px/1 sans-serif}.dialog-head+.dialog-body,.modal-p{line-height:1.7}
#dialog-body{padding:19px 22px 24px}
.steps{padding:0;margin:0;list-style:none;counter-reset:step}.steps li{position:relative;padding:1px 0 13px 40px;counter-increment:step}
.steps li:before{content:counter(step);position:absolute;top:1px;left:0;border:1.5px solid var(--ink);border-radius:4px;background:#a6cfb4;font:bold 16px/25px monospace;width:26px;text-align:center}
.steps b{font-size:16px}.steps p,.tip,.modal-p{font-size:14px;line-height:1.75;margin:4px 0 0}.tip{background:#efe9d9;border-left:3px solid #ba9c59;padding:9px 13px}.modal-p+.dual-actions{margin-top:18px}
.list-filter{display:flex;align-items:center;gap:12px}.search-field{display:flex;align-items:center;gap:8px;background:#fffdf7;border:1.5px solid #8e8877;border-radius:5px;padding:7px 10px;flex:1}.search-field .icon{width:17px;height:17px}
.search-field input{min-width:0;width:100%;border:0;background:transparent;font-size:15px;line-height:1.7;color:var(--ink)}
#filter-count{flex:none;font:bold 13px monospace}#roster-rows{padding:0;list-style:none;margin:13px 0 0}
#roster-rows li{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px dashed #cbc3b0;padding:9px 1px;font-size:14px;font-weight:bold}
#roster-rows li small{color:#5f675e;font-size:11px;font-weight:600;background:#e6ede1;border-radius:3px;padding:2px 5px;flex-shrink:0}
@media(min-width:1200px) and (min-height:760px){.page{padding-top:55px}.title-display{height:370px}.control-deck{padding-top:26px;padding-bottom:28px}}
@media(max-width:700px){
  .page{padding:25px 18px 35px}.header-inner{min-height:62px;padding:9px 19px}
  .brand-icon{width:34px;height:34px}.brand-text strong{font-size:17px}.brand-text img{width:108px}.brand{gap:8px}
  .bezel{padding:11px 11px 0}.hardware{height:24px}.cabinet{border-radius:16px;box-shadow:3px 4px 0 #3e3b32}.display{border-radius:7px}
  .title-display{height:292px;min-height:0}.hero-character{right:6%;width:36%;height:73%;bottom:25px}.hero-title{left:6%}
  .english-title{font-size:clamp(39px,8vw,57px)}.jp-title{font-size:clamp(54px,10vw,74px)}.hero-kicker{font-size:11px;gap:6px}.hero-kicker span{width:15px}
  .control-deck{padding:19px}.start{min-width:178px;min-height:55px;font-size:17px;padding:9px 12px;gap:8px}
  .resource{padding:12px;gap:10px;min-height:73px}.resource-row{gap:12px;margin-top:18px}.resource-icon{width:36px;height:36px}.resource-icon .icon{width:22px}.resource b{font-size:14px}.resource small{font-size:11px}
  .screen-top{left:14px;right:14px;top:13px}.q-scene,.guess-scene{gap:20px;padding-left:5%;padding-right:5%}.question-bubble{padding:15px 18px}
}
@media(max-width:480px){
  .page{padding:20px 12px 30px}.header-inner{padding:9px 14px;min-height:59px}.sound{padding:5px 8px;gap:5px;min-height:33px;font-size:11px}
  .brand-icon{width:32px;height:32px}.brand-text{gap:4px}.brand-text strong{font-size:16px}.brand-text img{width:100px}
  .bezel{padding:8px 8px 0}.title-display{height:clamp(255px,65vw,300px)}
  .display{background-size:auto 100%;background-position:58% center}
  .hero-title{left:5%;top:47%;transform:translateY(-38%)}.hero-kicker{letter-spacing:.015em;font-size:9px;margin:0 0 7px;gap:3px}.hero-kicker span{width:12px;height:2px}
  .english-title{font-size:clamp(32px,9vw,45px);text-shadow:1px 2px #193b38,2px 3px #193b38}
  .jp-title{font-size:clamp(48px,13.1vw,66px);text-shadow:1px 2px #193b38,2px 3px #193b38;-webkit-text-stroke:.7px #ffd36e}
  .hero-character{width:43%;right:1%;height:70%;bottom:25px}.id-plate{font-size:8px;padding:1px 5px}
  .title .control-deck{display:block;min-height:0;padding:15px 17px 19px}.start-intro .mini-label{font-size:9px}
  .start-intro p{display:block;font-size:14px;line-height:1.5;margin:4px 0 13px}.start{width:100%;min-height:48px;font-size:18px}
  .resource-row{grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.resource{gap:7px;padding:10px 8px;min-height:62px;border-radius:8px}.resource-icon{width:28px;height:30px;border-radius:6px}
  .resource-icon .icon{width:18px;height:18px}.resource b{font-size:12px}.resource small{font-size:9px}.resource>.icon{width:10px;height:10px}
  .screen-top{left:11px;right:11px;top:10px}.on-air{font-size:9px;padding:3px 5px}.channel{font-size:10px}
  .control-deck{padding:15px 12px 16px}.question-display,.guess-display,.result-display{min-height:274px}
  .q-scene{display:flex;flex-direction:column;align-items:stretch;justify-content:center;min-height:274px;padding:44px 13px 40px;gap:8px}
  .q-host{width:58px;height:58px;margin-left:3px}.question-bubble{flex:none;padding:9px 12px 13px;border-width:2px;box-shadow:2px 3px #1c3838}
  .question-bubble::before{width:11px;height:11px;top:-7px;left:24px;border-left-width:2px;border-bottom-width:2px;transform:rotate(135deg)}
  .question-bubble .mini-label{font-size:9px}.question-bubble h1{font-size:19px;line-height:1.45;margin:4px 0 0}
  .game-status{bottom:9px;font-size:10px;right:14px}
  .answer-row{gap:7px}.answer{font-size:15px;min-height:49px;gap:4px;padding:6px 3px;border-radius:6px;white-space:nowrap}
  .answer-symbol{font-size:20px;min-width:14px}.answer.unknown .answer-symbol{font-size:15px}
  .question-tools{margin-top:10px}.question-tools button{font-size:11px}
  .guess-scene{min-height:274px;gap:12px;padding:47px 13px 25px}.guess-scene>.mascot{width:29%}.guess-copy{flex:1}
  .guess-copy h1{font-size:clamp(23px,7.2vw,32px);margin:3px 0 6px}.guess-copy p{font-size:12px}.guess-copy .mini-label{font-size:10px}
  .dual-actions{gap:8px}.button:not(.start){font-size:13px;gap:6px;padding:8px;min-height:45px}.button:not(.start) .icon{width:16px;height:16px}
  .dialog-head{padding:13px 15px}#dialog-body{padding:14px}.dialog-head h2{font-size:18px}
}
@media(max-width:350px){.resource small{display:none}.start-intro p{font-size:13px}.answer{font-size:13px}.sound>span{display:none}.hero-title{left:4%}.resource-icon{width:24px}.page{padding-left:8px;padding-right:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.small-tools{margin:18px 0 0;display:flex;align-items:center;justify-content:center;gap:22px;flex-wrap:wrap}
.small-tools button,.text-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;color:#504d42;font-size:12px;font-weight:bold;border:0;background:none;padding:5px;min-height:34px}
.small-tools .icon{width:16px;height:16px}.small-tools button:hover,.text-btn:hover{text-decoration:underline}
.learn-confirm{text-align:center;margin:0 0 15px;background:#e6efdb;border:1px solid #9faf8e;border-radius:7px;padding:12px}
.learn-confirm b{display:flex;align-items:center;justify-content:center;gap:7px}.learn-confirm b .icon{width:18px}.learn-confirm p{font-size:12px;margin:6px 0 0}
.result-tools{text-align:center;margin-top:9px}.text-btn{text-decoration:underline}
@media(max-width:480px){.small-tools{margin-top:9px;gap:6px}.small-tools button{font-size:10px;padding:4px}.small-tools .icon{width:13px}.resource b{line-height:1.4}.resource small{line-height:1.4}}
