:root{--ink:#203648;--muted:#667c88;--navy:#173449;--gold:#cba45b;--paper:#faf8ef;--line:#e0e5e2;--green:#278f79;--shadow:0 8px 28px #18384a0d;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:var(--ink);background:#eef2ee;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e2ac42;outline-offset:3px}button{border:0}button,.card,select{border-radius:13px}input,select{min-height:44px;border:1px solid #ced8d8;background:white;padding:9px 12px;color:var(--ink);max-width:100%}input[type=range]{width:120px;min-height:30px;padding:0}button.primary{background:var(--navy);color:white;border:1px solid var(--navy);padding:14px 22px;font-weight:700;box-shadow:0 4px 0 #0b2230}button.primary.gold{background:#d8b46c;border-color:#d8b46c;color:#293c46;box-shadow:0 4px 0 #b9954f}button.secondary{background:white;border:1px solid #cbd7d7;padding:11px 16px;font-weight:700}button.ghost{background:transparent;color:var(--muted);padding:10px 12px}button.danger{color:#ab443e;border:1px solid #e6c7c3;background:#fff8f6;padding:12px 16px}.small{font-size:12px;color:var(--muted)}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.2em;color:#ad8a4b}.muted{color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:32px;line-height:1.5}h2{font-size:22px}h3{font-size:17px}p{line-height:1.8}.page{max-width:1180px;margin:auto;padding:28px 32px 45px}.topbar{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;background:#fffdf8;border-bottom:1px solid #dfe5e1;gap:12px}.brand{font-size:15px;font-weight:900;color:var(--navy);display:flex;align-items:center;gap:9px}.brand-mark{color:var(--gold);font-size:24px}.class-pill{font-size:12px;font-weight:700;max-width:260px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;background:#edf2ef;border:1px solid #dce5df;padding:8px 14px;border-radius:99px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:15px}.page-head h1{font-size:25px;margin:0}.card{background:#fffef9;border:1px solid var(--line);box-shadow:var(--shadow);padding:24px}.title-layout{display:grid;grid-template-columns:1fr 1.08fr;gap:38px;align-items:center;min-height:calc(100dvh - 170px)}.title-hero{min-height:520px;position:relative;border-radius:23px;overflow:hidden;padding:34px 28px;background:linear-gradient(180deg,#152e42ee,#18384add),url(assets/background-forest.webp) center/cover;color:#fff}.title-hero .eyebrow{color:#e0c28a}.title-hero h1{font-size:37px;margin-top:14px;letter-spacing:.035em;text-shadow:0 2px 0 #102b3f}.title-hero p{font-size:13px;color:#d6e3e5;margin-bottom:0;max-width:300px}.title-hero .hero-display{position:absolute;width:260px;height:260px;right:12px;bottom:3px;filter:drop-shadow(0 12px 12px #0a17264d)}.title-hero .title-monster{position:absolute;width:130px;height:130px;left:6px;bottom:3px}.title-hero .title-rune{position:absolute;width:250px;height:250px;border:1px solid #d9c18744;border-radius:50%;bottom:0;right:22px;box-shadow:0 0 0 17px #d9c18708,0 0 0 18px #d9c18718}.save-list{display:grid;gap:10px}.save-card{position:relative;text-align:left;display:flex;align-items:center;gap:14px;padding:16px 18px;width:100%;background:#fffdf7;border:1px solid #d7dfd9;border-radius:14px;transition:transform .15s,border-color .15s}.save-card:hover{border-color:var(--gold);transform:translateX(3px)}.save-number{width:37px;height:37px;border-radius:11px;background:#eaf0ec;display:grid;place-items:center;flex:none;color:#577165;font-weight:800}.save-info{flex:1;min-width:0}.save-info strong{display:block;font-size:15px;margin-bottom:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.save-info span{font-size:11px;color:var(--muted)}.save-arrow{color:#b5914f;font-size:22px}.save-empty{background:transparent;border-style:dashed}.save-empty .save-number{background:#e5ece6}.title-foot{display:flex;gap:6px;flex-wrap:wrap;margin-top:18px;font-size:12px}.title-foot button{font-size:12px}.top-note{font-size:12px;color:#7c5246;background:#fff2e7;padding:12px;border-radius:9px;margin-bottom:16px}.mode-tabs{display:flex;gap:8px;margin-bottom:22px}.mode-tab{flex:1;border:1px solid #d5dfd9;padding:15px 12px;background:#fffdf8;display:flex;align-items:center;justify-content:center;gap:10px;font-weight:800;color:#58716d}.mode-tab.active{background:var(--navy);border-color:var(--navy);color:white;box-shadow:0 4px 10px #17344920}.mode-symbol{display:inline-grid;place-items:center;font-size:20px;width:28px;height:28px;border-radius:9px;background:#ffffff18}.setup-grid{display:grid;grid-template-columns:1.35fr .85fr;gap:22px}.section-label{font-size:12px;color:var(--muted);font-weight:800;letter-spacing:.04em;margin-bottom:9px}.field{margin-bottom:20px}.field:last-child{margin-bottom:0}.pills{display:flex;flex-wrap:wrap;gap:8px}.pill{padding:10px 14px;background:#f1f4f0;color:#4b646b;border:1px solid #dde5df;font-size:13px;min-height:43px;font-weight:700}.pill.active{background:#e7eee4;border-color:#6f9676;color:#244f37;box-shadow:inset 0 0 0 1px #6f9676}.tables .pill{min-width:44px;flex:1}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.grow-card{position:relative;overflow:hidden;min-height:210px;display:flex;align-items:center;padding:18px}.grow-card .portrait{width:150px;height:165px;flex-shrink:0;filter:drop-shadow(0 7px 8px #243e431a)}.grow-info{flex:1;min-width:0}.grow-info h2{font-size:19px;margin-bottom:8px}.level{font-size:28px;font-weight:900;color:var(--navy)}.level small{font-size:13px}.meter{background:#e6eae0;height:9px;border-radius:99px;overflow:hidden;margin:10px 0}.meter span{display:block;height:100%;background:linear-gradient(90deg,#6b9b76,#a6bf81);border-radius:99px;transition:width .3s}.mini-stats{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin-top:15px;border-top:1px solid #e1e7df;padding-top:14px}.mini-stats strong{display:block;font-size:18px;color:var(--navy);margin-top:4px}.start-card{margin-top:17px;padding:20px;background:#f7f5ea}.start-card button{width:100%;font-size:18px}.start-card p{margin:12px 0 0;font-size:11px;color:var(--muted);line-height:1.7}.nav-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}.nav-grid button{padding:13px 5px;font-size:12px}.voice-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.voice-state{display:inline-flex;gap:8px;align-items:center;font-size:12px;color:#367967}.voice-dot{width:8px;height:8px;background:currentColor;border-radius:50%;display:inline-block}.voice-state.listening .voice-dot{animation:pulse 1s infinite}.details{border-top:1px solid #e0e6de;margin-top:18px;padding-top:13px}.details summary{cursor:pointer;font-size:12px;color:var(--muted);margin-bottom:14px}.details label{font-size:12px}.screen-play{height:100dvh;min-height:550px;display:flex;flex-direction:column;background:#f8f8f0}.screen-play .topbar{height:53px;flex:none;padding:0 22px}.play-tools{display:flex;gap:6px}.play-tools button{font-size:12px;padding:8px 10px}.play-status{display:flex;gap:20px;align-items:center;font-size:12px;padding:11px 24px 6px;flex:none}.play-status strong{font-size:19px;color:var(--navy);margin-left:6px}.play-status .clock{margin-left:auto;font-variant-numeric:tabular-nums}.clock.urgent{color:#b4483c}.problem-row{display:flex;gap:20px;align-items:center;justify-content:center;min-height:103px;flex:none;padding:8px 20px 13px}.problem{font-size:clamp(28px,4.3vw,53px);font-weight:900;letter-spacing:.03em;white-space:nowrap}.answer{min-width:105px;background:white;border:2px solid #b99b5d;border-radius:14px;padding:7px 13px;min-height:64px;display:inline-flex;align-items:center;justify-content:center;font-size:40px;color:var(--navy);font-variant-numeric:tabular-nums}.answer.empty{color:#c6ceca}.answer.wrong{border-color:#ce6a57;color:#b74736;animation:shake .2s}.stage{flex:1;min-height:180px;position:relative;overflow:hidden;background-position:center;background-size:cover;border-top:1px solid #213b4924;border-bottom:1px solid #263f4938}.stage:after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 45px #1b2c3120;pointer-events:none}.stage-label{position:absolute;top:12px;left:15px;background:#183d45b0;color:white;padding:5px 10px;font-size:11px;border-radius:99px;z-index:1}.hero-unit{position:absolute;left:6%;bottom:8%;width:clamp(110px,19vw,230px);height:86%;max-height:280px;transform-origin:center bottom;z-index:2;filter:drop-shadow(0 10px 5px #10232e2a)}.hero-unit.attack{animation:attack .3s}.enemy-unit{position:absolute;bottom:8%;width:clamp(110px,18vw,220px);height:80%;max-height:260px;transform-origin:center bottom;z-index:2;filter:drop-shadow(0 10px 5px #10232e2a);display:flex;align-items:center;justify-content:center}.enemy-unit canvas,.hero-unit canvas{width:100%;height:100%;object-fit:contain}.enemy-unit.rare:after{content:"RARE";position:absolute;top:0;color:#fff6d2;background:#a5712d;border:1px solid #e3c381;font-size:10px;letter-spacing:.15em;border-radius:99px;padding:3px 10px}.enemy-unit.boss{width:clamp(190px,34vw,390px);height:96%;max-height:none;left:55%!important;bottom:3%}.enemy-unit.chest{height:75%;width:clamp(115px,20vw,230px)}.hp-wrap{position:absolute;top:10px;left:38%;width:56%;z-index:3;color:white;text-shadow:0 1px 3px #000;background:#153548b3;border-radius:12px;padding:8px 13px;font-size:11px}.hp-wrap strong{font-size:13px}.hp-wrap .meter{margin:6px 0 3px;background:#1b2839;height:10px}.hp-wrap .meter span{background:linear-gradient(90deg,#be5147,#e59366)}.enemy-line{position:absolute;left:22%;bottom:0;height:100%;border-left:2px dashed #fff8d76e;pointer-events:none}.battle-toast{position:absolute;top:40%;left:50%;transform:translate(-50%,-50%);background:#fffdf4ef;color:#234d42;box-shadow:0 6px 25px #14332323;padding:11px 20px;border:1px solid #e3ce96;border-radius:12px;font-size:18px;font-weight:900;z-index:5;white-space:nowrap;animation:floatUp .6s both}.play-bottom{flex:none;padding:9px 18px max(12px,env(safe-area-inset-bottom));background:#fcfbf5}.xp-row{display:flex;align-items:center;gap:10px;margin-bottom:8px;font-size:11px}.xp-row .meter{flex:1;margin:0;height:7px}.speech-caption{color:#527b68;min-width:180px;text-align:right;max-width:45%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.keypad{display:grid;grid-template-columns:repeat(12,1fr);gap:7px}.keypad button{height:58px;background:#fff;border:1px solid #cfd9d4;box-shadow:0 3px 0 #d7dfd6;border-radius:10px;font-weight:800;font-size:25px;color:#223d4c}.keypad .enter{background:var(--navy);color:white;border-color:var(--navy);box-shadow:0 3px 0 #0c2435;font-size:17px}.keypad .erase{background:#e9eee7;color:#65766e}.keypad button:active{transform:translateY(2px);box-shadow:none}.collection-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.collection-item{border:1px solid #dce4db;background:#fffdf8;padding:14px 10px 12px;position:relative;text-align:center;min-height:190px;box-shadow:var(--shadow)}.collection-item canvas{width:100%;height:135px;display:block;margin:auto}.collection-item .item-name{display:block;font-size:12px;font-weight:800;margin-top:7px}.collection-item .item-meta{font-size:10px;color:var(--muted);display:block;margin-top:4px}.unknown{display:grid;place-items:center;min-height:135px;background:linear-gradient(135deg,#263c49,#152732);color:#b5bcb7;border-radius:10px;font-size:52px;font-weight:800;border:1px solid #41555a}.collection-item.locked{background:#e8ede7;box-shadow:none}.collection-item.active-hero{border:2px solid #c3a461}.collection-item .badge{position:absolute;right:8px;top:8px;background:#d3ad64;color:#293c48;padding:3px 8px;border-radius:99px;font-size:10px}.pager{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:20px}.collection-tabs{margin-bottom:18px}.boss-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.boss-card{text-align:center;position:relative;overflow:hidden}.boss-card canvas{width:100%;height:220px}.boss-card .unknown{height:220px;background:linear-gradient(145deg,#233b4c,#142b3b);color:#d2b36e}.boss-card h2{margin:15px 0 8px}.boss-card .boss-name{font-size:12px;color:var(--muted);min-height:20px}.boss-card button{width:100%;margin-top:14px}.boss-card .hp-number{font-size:27px;font-weight:900;color:var(--navy)}.boss-tier{position:absolute;left:18px;top:18px;color:#c7a260;font-size:11px;letter-spacing:.1em;z-index:1}.boss-time{margin-bottom:20px;display:flex;gap:15px;align-items:center;flex-wrap:wrap}.result-top{text-align:center;margin:8px auto 24px}.result-top h1{font-size:30px;margin:9px 0}.result-score{display:flex;justify-content:center;align-items:baseline;gap:7px}.result-score strong{font-size:74px;font-weight:900;line-height:1.2;color:var(--navy)}.result-stats{display:flex;justify-content:center;gap:30px;margin:18px 0;color:var(--muted);font-size:13px}.result-stats strong{font-size:22px;color:var(--navy);display:block;margin-top:4px}.evolve-card{display:flex;align-items:center;justify-content:center;gap:25px;max-width:680px;margin:0 auto 24px;background:radial-gradient(circle at 30%,#fff2b8,#fffdf7 60%);border-color:#d8bb76}.evolve-card canvas{width:180px;height:180px;filter:drop-shadow(0 0 18px #e6c57988)}.evolve-card h2{color:#9b752e}.result-loot{max-width:900px;margin:auto}.result-loot .collection-grid{grid-template-columns:repeat(5,1fr)}.result-loot .collection-item{min-height:150px}.result-loot canvas{height:100px}.result-actions{display:flex;justify-content:center;gap:12px;margin-top:28px;flex-wrap:wrap}.rank-filters{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}.rank-filters label{font-size:11px;font-weight:700;color:var(--muted)}.rank-filters select{width:100%;margin-top:6px;font-size:12px}.rank-table-wrap{overflow:auto;border:1px solid #d9e2dc;border-radius:14px;background:#fffdf8}.rank-table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}.rank-table th{text-align:left;background:#e9efea;color:#5a706b;font-weight:700;padding:13px}.rank-table td{padding:15px 13px;border-bottom:1px solid #e4e9e1}.rank-table td:first-child{font-size:16px;font-weight:900;color:#ae8748}.rank-table .score{font-size:23px;font-weight:900;color:var(--navy)}.empty-state{text-align:center;padding:50px 20px;color:var(--muted);font-size:14px}.modal-backdrop{position:fixed;inset:0;z-index:30;background:#112c3fcc;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(4px)}.modal{background:#fffdf7;border:1px solid #d6c18f;border-radius:20px;padding:28px;max-width:530px;width:100%;max-height:90dvh;overflow:auto;box-shadow:0 20px 80px #071a3480}.modal h2{margin-bottom:14px}.modal .actions{justify-content:flex-end;margin-top:22px}.modal input[type=text]{width:100%}.modal p{font-size:13px}.modal .large-sprite{width:100%;height:280px;display:block}.modal .unknown{height:200px}.rules-list{font-size:13px;line-height:1.9;padding-left:20px}.rules-list li{margin-bottom:10px}.pause-title{font-size:35px!important;text-align:center;margin:20px 0!important}.pause-actions{display:grid;gap:12px;margin:25px 0 8px}.pause-actions button{width:100%}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);padding:13px 20px;background:#173b48f2;color:white;font-size:13px;max-width:92%;border-radius:11px;z-index:50;display:none;box-shadow:0 5px 20px #0002}.save-error{position:fixed;top:3px;left:50%;transform:translateX(-50%);background:#9c4138;color:white;font-size:12px;padding:10px 16px;border-radius:8px;z-index:60;max-width:95%;cursor:pointer}.loading{display:grid;place-items:center;height:100vh;color:var(--muted)}canvas{vertical-align:middle}.hint{font-size:11px;line-height:1.8;color:var(--muted);margin-top:12px}.counter-tag{font-size:12px;padding:7px 12px;background:#e6ede4;color:#4b6f55;border-radius:99px;font-weight:700}.resume-banner{padding:14px 18px;background:#fff2cc;border:1px solid #dcc485;border-radius:12px;display:flex;align-items:center;justify-content:space-between;font-size:13px;gap:12px;margin-bottom:20px;flex-wrap:wrap}@keyframes pulse{50%{opacity:.3}}@keyframes attack{50%{transform:translateX(24px) rotate(7deg)}}@keyframes shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@keyframes floatUp{0%{opacity:0;margin-top:15px}25%{opacity:1}100%{opacity:0;margin-top:-12px}}@media(min-width:1300px){.page{padding-top:35px}.title-hero{min-height:565px}.title-hero .hero-display{width:300px;height:300px}}@media(max-width:850px){.page{padding:22px 20px}.topbar{padding:0 18px}.title-layout{gap:22px;grid-template-columns:.9fr 1.1fr}.title-hero{padding:28px 22px;min-height:490px}.title-hero h1{font-size:30px}.title-hero .hero-display{width:220px;height:220px}.setup-grid{grid-template-columns:1.2fr .9fr;gap:14px}.card{padding:19px}.grow-card{display:block;text-align:center;padding:12px}.grow-card .portrait{height:125px;width:125px}.grow-info h2{font-size:15px}.mini-stats{gap:5px;font-size:10px}.collection-grid{grid-template-columns:repeat(3,1fr)}.rank-filters{grid-template-columns:repeat(3,1fr)}.result-loot .collection-grid{grid-template-columns:repeat(4,1fr)}.keypad{gap:5px}.keypad button{font-size:23px;height:54px}.keypad .enter{font-size:14px}.speech-caption{min-width:140px}.boss-grid{gap:12px}.boss-card{padding:17px 12px}.boss-card .unknown,.boss-card canvas{height:180px}.boss-tier{left:13px;top:12px}.boss-card h2{font-size:19px}}@media(max-width:620px){.brand{font-size:12px}.brand-mark{font-size:21px}.class-pill{max-width:130px;font-size:10px;padding:6px 9px}.topbar{height:58px;padding:0 13px}.page{padding:19px 14px 32px}.title-layout{display:flex;flex-direction:column;gap:20px;min-height:0}.title-hero{min-height:245px;width:100%;padding:22px}.title-hero h1{font-size:28px;max-width:230px;position:relative;z-index:2}.title-hero p{max-width:200px;font-size:10px;position:relative;z-index:2}.title-hero .hero-display{width:180px;height:180px;right:-8px;bottom:-8px;opacity:.85}.title-hero .title-monster{display:none}.title-hero .title-rune{right:-15px;bottom:-30px;width:210px;height:210px}.save-panel{width:100%}.save-card{padding:12px 14px}.page-head h1{font-size:21px}.page-head .actions{gap:0}.mode-tabs{gap:5px}.mode-tab{font-size:12px;padding:12px 5px;gap:5px}.mode-symbol{font-size:17px;width:21px;height:21px}.setup-grid{display:flex;flex-direction:column}.grow-card{display:flex;text-align:left}.grow-card .portrait{width:120px;height:120px}.field-grid{gap:12px}.pills{gap:6px}.pill{font-size:12px;padding:9px 11px}.field .pill{flex-grow:1}.field{margin-bottom:17px}.nav-grid button{font-size:12px}.screen-play .topbar{height:48px;padding:0 10px}.screen-play .brand{max-width:130px;white-space:nowrap;overflow:hidden}.play-status{padding:9px 12px 4px;gap:12px;font-size:10px}.play-status strong{font-size:17px}.problem-row{min-height:90px;padding:7px 10px;gap:9px}.problem{font-size:clamp(24px,6.2vw,35px)}.answer{font-size:29px;min-width:76px;min-height:53px}.keypad{grid-template-columns:repeat(6,1fr);gap:7px}.keypad button{height:49px}.play-bottom{padding:8px 10px max(13px,env(safe-area-inset-bottom))}.stage{min-height:200px}.hero-unit{width:115px;left:1%;height:80%}.enemy-unit{width:125px}.enemy-unit.boss{width:210px;left:43%!important;height:88%}.enemy-line{left:17%}.hp-wrap{left:30%;width:66%;font-size:10px;top:8px;padding:6px 10px}.hp-wrap strong{font-size:11px}.stage-label{font-size:9px;top:8px;left:8px}.speech-caption{min-width:100px;font-size:10px}.xp-row{font-size:9px}.collection-grid{grid-template-columns:repeat(3,1fr);gap:8px}.collection-item{padding:9px 6px;min-height:145px}.collection-item canvas{height:95px}.collection-item .unknown{min-height:95px;font-size:38px}.collection-item .item-name{font-size:10px}.collection-item .item-meta{font-size:9px}.boss-grid{grid-template-columns:1fr}.boss-card{display:grid;grid-template-columns:115px 1fr;align-items:center;text-align:left;column-gap:18px;padding:16px}.boss-card .unknown,.boss-card canvas{height:145px;width:115px;grid-column:1;grid-row:1/5;margin-top:13px}.boss-card h2{margin:5px 0}.boss-card .boss-name{margin:0}.boss-card button{grid-column:2;margin-top:10px;font-size:12px}.boss-card .boss-tier{font-size:9px;top:9px}.boss-info{grid-column:2}.rank-filters{grid-template-columns:repeat(2,1fr);gap:9px}.result-stats{gap:20px}.result-loot .collection-grid{grid-template-columns:repeat(3,1fr)}.evolve-card{gap:10px;padding:13px}.evolve-card canvas{height:140px;width:140px}.evolve-card h2{font-size:18px}.result-score strong{font-size:64px}.modal{padding:23px}.modal .large-sprite{height:230px}.play-tools button{font-size:10px;padding:7px}.result-actions button{flex:1;padding:13px;font-size:13px}}@media(max-height:650px) and (min-width:621px){.screen-play{min-height:500px}.problem-row{min-height:80px}.problem{font-size:39px}.answer{min-height:51px;font-size:33px}.screen-play .topbar{height:45px}.keypad button{height:46px}.play-bottom{padding-top:7px;padding-bottom:9px}.play-status{padding-top:7px}.hero-unit{height:94%}.enemy-unit{height:92%}.page{padding-top:20px}.title-hero{min-height:440px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* Keep the intrinsic sprite aspect ratio in every fixed-size display box. */
canvas[data-sprite]{object-fit:contain;object-position:center}
.evolve-card>canvas{flex-shrink:0}
.collection-item{min-width:0}
.collection-item canvas{object-fit:contain}
.battle-toast{top:28%;min-width:170px;text-align:center;font-size:29px;border:2px solid #e3c381;background:#fff9e8f5;animation:battleCue 1.35s ease both;pointer-events:none}
.battle-toast small{display:block;font-size:15px;margin-top:5px;font-weight:800}
.battle-toast.miss{font-size:22px;color:#667783;border-color:#b5c1c8;background:#edf2f5f2}
.battle-toast.hit{font-size:23px}
.defeat-effect{position:absolute;z-index:4;pointer-events:none}
.defeat-ghost{position:absolute;inset:0;animation:monsterDefeat .9s ease-out both;transform-origin:center bottom}
.defeat-ghost canvas{width:100%;height:100%;object-fit:contain}
.impact-ring{position:absolute;left:50%;top:50%;width:65%;aspect-ratio:1;border:5px solid #ffeda4;border-radius:50%;box-shadow:0 0 20px #ffd572,inset 0 0 17px #fff2a2;animation:impactRing .7s ease-out both;transform:translate(-50%,-50%)}
.impact-slash{position:absolute;left:8%;top:45%;width:90%;height:8px;background:#fff;border-radius:50%;box-shadow:0 0 11px 6px #ffe396;animation:impactSlash .5s ease-out both}
.impact-sparks{position:absolute;left:40%;top:18%;color:#fff3ad;font-size:55px;text-shadow:-40px 40px 0 #ffe49d,50px 25px 0 #fff,20px 90px 0 #ffd96a;animation:impactSparks .85s ease-out both}
.chest-effect .defeat-ghost{animation:chestOpen .9s ease both}
@keyframes monsterDefeat{0%{filter:brightness(2.3);opacity:1;transform:scale(1.04)}18%{filter:brightness(1.4);opacity:1;transform:translateX(-8px) rotate(-7deg)}45%{filter:brightness(1);opacity:.9;transform:translateY(8px) rotate(9deg) scale(.92)}100%{opacity:0;transform:translateY(45px) rotate(20deg) scale(.65)}}
@keyframes impactRing{0%{opacity:1;transform:translate(-50%,-50%) scale(.3)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.8)}}
@keyframes impactSlash{0%{opacity:1;transform:rotate(-40deg) scaleX(.1)}30%{opacity:1;transform:rotate(-40deg) scaleX(1.2)}100%{opacity:0;transform:rotate(-40deg) scaleX(1.5)}}
@keyframes impactSparks{0%{opacity:1;transform:scale(.4)}100%{opacity:0;transform:translateY(-30px) scale(1.8)}}
@keyframes chestOpen{0%{opacity:1;transform:scale(1)}35%{opacity:1;transform:translateY(-12px) scale(1.12)}100%{opacity:0;transform:translateY(-23px) scale(.95)}}
@keyframes battleCue{0%{opacity:0;transform:translate(-50%,-30%) scale(.8)}12%,76%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-70%) scale(1)}}
@media(max-width:620px){.battle-toast{font-size:23px;min-width:145px;padding:9px 12px;top:25%}.battle-toast small{font-size:12px}.battle-toast.miss,.battle-toast.hit{font-size:18px}}
/* 計算ボイス勇者 1.1 */
.title-page{position:relative;min-height:calc(100dvh - 66px);overflow:hidden;background:radial-gradient(ellipse at 28% 32%,#31586588,transparent 58%),linear-gradient(125deg,#071a2b,#132c42 54%,#222e42);color:#fff3d4;padding:38px 32px}
.title-page:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#10223499,#102234dc),url(assets/background-dungeon.webp) center/cover;opacity:.52;pointer-events:none}
.title-page .title-layout{position:relative;max-width:1230px;margin:auto;grid-template-columns:1.12fr 1fr;gap:48px;min-height:700px;align-items:center}
.title-stars{position:absolute;inset:0;pointer-events:none}.title-stars i{position:absolute;left:var(--x);top:var(--y);height:3px;width:3px;border-radius:50%;background:#ffdf94;box-shadow:0 0 12px 4px #ffe5a538;animation:titleTwinkle 3s var(--delay) infinite}
.deluxe-title{background:none;padding:0 14px;min-height:690px;overflow:visible}.deluxe-title .eyebrow{font-size:12px;letter-spacing:.28em}.title-crest{font-size:45px;color:#f4d28a;line-height:1;margin:17px 0 2px;text-shadow:0 0 20px #fce7a77a}
.deluxe-title h1{font-size:49px;line-height:1.16;letter-spacing:.04em;color:#fff2cb;text-shadow:0 4px 0 #472e15,0 9px 24px #0008;margin:0;position:relative;z-index:3}.deluxe-title h1 small{display:block;font-size:14px;letter-spacing:.14em;color:#dbd7c5;font-weight:500;margin-bottom:15px;text-shadow:none}.deluxe-title h1 span{display:block;font-size:59px;margin-top:5px;color:#f4d48e}.deluxe-title p{font-size:12px;color:#cfdbdf;line-height:1.9;margin-top:22px;position:relative;z-index:3;max-width:none}
.title-party{position:absolute;height:330px;left:0;right:0;bottom:24px;z-index:2}.title-party canvas{position:absolute;object-fit:contain;filter:drop-shadow(0 12px 10px #0007);animation:partyFloat 5s ease-in-out infinite}.title-party .party-0{width:44%;height:85%;left:-4%;bottom:0;animation-delay:-1.2s}.title-party .party-1{width:61%;height:110%;left:20%;bottom:0;z-index:3}.title-party .party-2{width:43%;height:85%;right:-4%;bottom:0;animation-delay:-2.6s}.deluxe-title .title-rune{bottom:35px;right:7%;width:330px;height:330px;border-color:#edce8c69;transform:rotate(-15deg);box-shadow:0 0 0 24px #f1cf7b09,0 0 0 25px #f1cf7b38,0 0 90px #cbb56424}
.title-tags{display:flex;gap:9px;position:absolute;bottom:-2px;left:10px;right:10px;justify-content:center;z-index:3}.title-tags span{border:1px solid #c9a76588;color:#ead69d;background:#081a2db5;font-size:11px;padding:6px 16px;border-radius:99px}
.deluxe-saves{padding:29px;background:linear-gradient(145deg,#fbf4de,#fffdf5);border:1px solid #d9bd7e;border-radius:23px;box-shadow:0 0 0 6px #e7cf8b0e,0 25px 70px #0005;color:#203648}.deluxe-saves h2{font-size:23px;margin:11px 0}.deluxe-saves .save-card{background:#fffdf7;border-color:#dbcba2;box-shadow:0 3px 0 #d6bd7a29}.deluxe-saves .save-card:hover{background:#fff6da;border-color:#b6954e}.deluxe-saves .save-number{background:linear-gradient(145deg,#f6e5b0,#d6b671);color:#524223}.deluxe-saves .save-empty{background:#f4f0e4;border-style:dashed}
.hero-picker{display:block;font-size:10px;color:#6b7c7a;margin-top:12px}.hero-picker select{font-size:12px;width:100%;margin-top:5px;min-height:42px}
.combat-stats{display:flex;justify-content:space-around;gap:10px;margin-top:14px;padding:16px;text-align:center;font-size:11px;background:#f9f4e4;border-color:#ddc892}.combat-stats strong{display:block;font-size:23px;color:#7d5a28;margin:5px 0}.combat-stats small{display:block;color:#718177;font-size:10px}
.audio-options{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.audio-options button{font-size:11px;padding:10px}
.pill:disabled{opacity:.32;background:#e5e8e5;box-shadow:none}
.screen-play{min-height:630px}.screen-play .topbar{height:57px}.screen-play .brand small{font-size:10px;color:#9b7a39;background:#f3e9ce;padding:5px 8px;border-radius:6px;white-space:nowrap}.play-tools .pause-button{background:#173449;color:white;border-color:#173449;font-size:14px;min-height:43px;font-weight:800;padding:8px 15px}
.play-status{min-height:64px;gap:18px;padding:6px 24px;background:#fffdf4;border-bottom:1px solid #d9ddcf}.play-status .clock{display:flex;gap:6px;align-items:center;font-size:12px}.play-status .clock strong{font-size:42px;line-height:1.1;font-weight:900;color:#173449}.clock.urgent strong{color:#bd493a}.reward-stat,.damage-stat{font-size:11px;color:#6f7c71}.reward-stat b,.damage-stat b{color:#8d6a2d;font-size:16px}.reward-stat small{display:block;font-size:9px;color:#7d8b7b}
.stage{min-height:340px;background-position:center 64%;isolation:isolate}.problem-row{position:absolute;left:50%;top:16px;transform:translateX(-50%);width:min(940px,94%);min-height:142px;z-index:8;background:linear-gradient(135deg,#fffef8f7,#fff8eaf4);border:2px solid #d7b770;border-radius:20px;box-shadow:0 5px 0 #80612b28,0 10px 25px #20363326;padding:16px 22px;gap:24px}.problem{font-size:clamp(52px,6.8vw,88px);line-height:1.25;letter-spacing:0;font-weight:900;text-shadow:0 2px 0 #dce1d6}.answer{font-size:57px;min-width:135px;min-height:88px;border-radius:17px;background:#fff;flex-shrink:0}.stage-label{top:auto;bottom:10px;left:12px;z-index:6}.hero-unit{bottom:9%;max-height:245px;height:58%;left:5%}.enemy-unit{bottom:9%;max-height:240px;height:56%}.enemy-unit.boss{height:67%;max-height:350px;bottom:5%;left:57%!important}.enemy-unit.rare:after{top:10%;font-size:11px;background:#7c4a9a;border-color:#dab6ed}
.hp-wrap{top:174px;left:51%;width:44%;font-size:10px}.hero-hp-wrap{position:absolute;left:4%;bottom:2%;width:28%;z-index:6;background:#173449dd;color:#fffce8;border:1px solid #dfc28b;border-radius:9px;padding:8px 12px;font-size:10px}.hero-hp-wrap>span{float:right}.hero-hp-wrap .meter{height:9px;margin:6px 0 0}.hero-hp-wrap .meter span{background:linear-gradient(90deg,#4ca280,#a0d38a)}.enemy-line{top:176px;height:auto;bottom:0}.enemy-line span{position:absolute;bottom:12%;left:-16px;writing-mode:vertical-rl;color:#fff6ce;text-shadow:0 1px 4px #142d31;font-size:10px;background:#20344985;padding:6px 3px;border-radius:8px}
.encounter-alert{position:absolute;right:15px;top:176px;z-index:7;padding:9px 16px;background:#5f337beb;color:#fff6d9;border:1px solid #e6bdff;border-radius:99px;font-size:13px;font-weight:800;opacity:0;pointer-events:none}.encounter-alert.chest{background:#8f6325e8;border-color:#f3ce8b}.encounter-alert.visible{animation:encounterCue 1.8s ease both}.battle-toast{z-index:9;top:48%}.screen-play.is-paused .problem-row{visibility:hidden}.screen-play.game-over .problem-row{visibility:hidden}.stage.breached:before{content:"";position:absolute;inset:0;z-index:10;pointer-events:none;box-shadow:inset 0 0 100px 35px #b7263d9c;background:#9c153e15;animation:damageFlash .85s ease-out both}.hero-unit.damaged{animation:heroDamage .65s both}.enemy-unit.boss-attacking{animation:bossAttack .6s both}
.rank-banner{display:flex;gap:25px;align-items:center;justify-content:center;max-width:800px;margin:20px auto 32px;padding:26px 35px;border-radius:20px;border:2px solid #d6b16a;background:linear-gradient(120deg,#fff9df,#fff1ba);box-shadow:0 0 0 6px #dfbf7017,0 14px 35px #b39c4c25;animation:rewardPop .7s ease both;text-align:left}.rank-banner>span{font-size:65px;color:#ba8a2b;text-shadow:0 3px 0 #f4d795}.rank-banner small{font-size:10px;letter-spacing:.24em;color:#9b772f;font-weight:900}.rank-banner h2{font-size:29px;margin:6px 0;color:#8f6423}.rank-banner p{font-size:13px;margin:7px 0 0}.rank-banner.best{background:radial-gradient(ellipse at 20% 40%,#fffdf3,transparent),linear-gradient(115deg,#f9db85,#fff0b1,#e9bd59);border-color:#b38a32;box-shadow:0 0 0 8px #e6c26122,0 0 50px #cfab5466}.rank-banner.ranked{padding:19px 25px;max-width:620px}.rank-banner.ranked h2{font-size:23px}.rank-banner.ranked>span{font-size:43px}
.celebration-ceiling{position:fixed;inset:0;z-index:70;pointer-events:none;overflow:hidden}.celebration-ceiling i{position:absolute;left:var(--left);top:-35px;width:10px;height:18px;background:var(--color);border-radius:2px;animation:confettiFall 3.5s var(--delay) ease-in both;box-shadow:0 0 5px #fff8}.celebration-ceiling.medium i{width:7px;height:12px;animation-duration:2.7s}.celebration-ceiling.grand:before{content:"";position:absolute;inset:0;box-shadow:inset 0 0 150px #f6c84b8a;animation:celebrationGlow 2s ease-out both}
.boss-cinematic{position:fixed;inset:0;z-index:65;display:grid;place-items:center;background:radial-gradient(ellipse,#4c244de8,#071520f5 70%);backdrop-filter:blur(6px);animation:bossEntrance .4s ease both}.boss-cinematic:before{content:"";position:absolute;left:50%;top:50%;width:440px;height:440px;border:2px solid #cfa96b88;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 25px #b4864b11,0 0 0 26px #dfc18035,0 0 90px #945aa64d}.boss-cinematic-inner{position:relative;text-align:center;color:#ffeac1;padding:16px}.boss-cinematic .eyebrow{color:#dfbb86;letter-spacing:.4em}.boss-cinematic h2{font-size:clamp(35px,6vw,65px);letter-spacing:.1em;margin:10px 0 0;text-shadow:0 3px 0 #5a3040}.boss-cinematic canvas{display:block;width:330px;height:330px;object-fit:contain;margin:auto;filter:drop-shadow(0 0 30px #bb86c977);animation:bossReveal .75s ease both}.boss-cinematic strong{font-size:24px;display:block;margin-top:5px}.boss-cinematic p{font-size:13px;margin:8px 0}.boss-cinematic .ghost{color:#c2b9aa;font-size:11px;padding:7px}
@keyframes titleTwinkle{0%,100%{opacity:.25;transform:scale(.7)}50%{opacity:1;transform:scale(1.3)}}@keyframes partyFloat{50%{transform:translateY(-9px)}}@keyframes encounterCue{0%,100%{opacity:0;transform:translateY(-5px)}15%,80%{opacity:1;transform:none}}@keyframes damageFlash{0%,30%{opacity:1}15%,100%{opacity:0}}@keyframes heroDamage{20%,60%{transform:translateX(-14px);filter:brightness(1.8) drop-shadow(0 0 12px #e44054)}40%,80%{transform:translateX(8px)}100%{transform:none}}@keyframes bossAttack{40%{transform:translateX(-45px) rotate(-5deg)}100%{transform:none}}@keyframes rewardPop{0%{opacity:0;transform:scale(.7) translateY(25px)}70%{transform:scale(1.04)}100%{opacity:1;transform:none}}@keyframes confettiFall{0%{transform:translateY(-10vh) rotate(0);opacity:1}100%{transform:translateY(112vh) rotate(var(--turn));opacity:.2}}@keyframes celebrationGlow{0%{opacity:1}100%{opacity:0}}@keyframes bossEntrance{from{opacity:0}to{opacity:1}}@keyframes bossReveal{0%{opacity:0;transform:scale(1.4);filter:brightness(3)}100%{opacity:1;transform:scale(1)}}
@media(max-width:850px){.title-page .title-layout{gap:22px;grid-template-columns:1fr 1fr}.title-page{padding:25px 20px}.deluxe-saves{padding:20px}.deluxe-saves h2{font-size:19px}.deluxe-title h1{font-size:37px}.deluxe-title h1 span{font-size:43px}.deluxe-title{min-height:630px}.title-party{height:260px;bottom:35px}.deluxe-title .title-rune{width:250px;height:250px}.play-status{gap:13px}.reward-stat b,.damage-stat b{font-size:13px}.problem-row{min-height:124px}.hp-wrap{top:153px}.encounter-alert{top:151px}.enemy-line{top:150px}}
@media(max-width:620px){.title-page{padding:24px 14px}.title-page .title-layout{display:block;min-height:0}.deluxe-title{min-height:535px;padding:0 15px}.deluxe-title .eyebrow{font-size:9px}.title-crest{font-size:30px;margin-top:14px}.deluxe-title h1{font-size:34px;max-width:none}.deluxe-title h1 span{font-size:44px}.deluxe-title h1 small{font-size:10px}.deluxe-title p{font-size:10px;max-width:none}.title-party{height:235px;bottom:32px;left:0;right:0}.title-party .party-1{width:62%;left:19%}.deluxe-title .title-rune{bottom:40px;right:12%;width:240px;height:240px}.title-tags{bottom:7px}.title-tags span{font-size:9px;padding:5px 12px}.deluxe-saves{margin-top:20px;padding:23px 18px}.deluxe-saves h2{font-size:19px}.deluxe-saves .save-card{padding:13px 12px}.deluxe-title .title-hero{width:100%}.screen-play .topbar{height:52px;gap:5px}.screen-play .brand{max-width:120px;font-size:10px;gap:5px}.screen-play .brand small{display:none}.screen-play .class-pill{max-width:85px;padding:5px;font-size:9px}.play-tools .pause-button{font-size:10px;padding:7px;min-height:37px}.play-tools button{min-height:37px;font-size:9px;padding:7px}.play-status{padding:6px 10px;min-height:65px;gap:9px;flex-wrap:wrap}.play-status>span{font-size:9px}.play-status strong{font-size:16px;margin-left:3px}.play-status .clock{gap:2px}.play-status .clock strong{font-size:32px}.reward-stat b,.damage-stat b{font-size:11px}.reward-stat small{font-size:8px}.damage-stat{max-width:70px}.stage{min-height:340px}.problem-row{top:12px;padding:12px 10px;gap:8px;min-height:100px;border-radius:15px;width:95%}.problem{font-size:clamp(30px,8.6vw,43px)}.answer{font-size:34px;min-width:76px;min-height:65px;padding:6px;border-radius:12px}.hero-unit{max-height:180px;width:115px;height:51%;left:0;bottom:12%}.enemy-unit{max-height:180px;width:125px;height:49%;bottom:12%}.enemy-unit.boss{height:56%;width:205px;left:43%!important;bottom:9%}.hp-wrap{top:122px;left:37%;width:60%;font-size:9px}.hero-hp-wrap{left:3%;width:34%;bottom:4%;font-size:9px;padding:7px}.enemy-line{top:125px}.encounter-alert{top:125px;right:9px;font-size:10px;padding:7px 10px}.battle-toast{top:50%}.rank-banner{gap:12px;padding:20px 17px}.rank-banner>span{font-size:45px}.rank-banner h2{font-size:22px}.rank-banner p{font-size:11px}.boss-cinematic canvas{width:260px;height:260px}.boss-cinematic:before{width:320px;height:320px}.boss-cinematic h2{font-size:43px}.boss-cinematic strong{font-size:20px}}
@media(max-height:650px) and (min-width:621px){.screen-play{min-height:590px}.problem-row{min-height:112px;top:10px}.problem{font-size:57px}.answer{min-height:73px;font-size:43px}.stage{min-height:300px}.hp-wrap,.encounter-alert{top:130px}.enemy-line{top:130px}.hero-unit,.enemy-unit{height:51%;max-height:180px}.enemy-unit.boss{height:60%;max-height:240px}.play-status{min-height:54px}.play-status .clock strong{font-size:35px}}
.hp-wrap{top:auto;bottom:2%;left:53%;width:43%}.enemy-unit.boss{bottom:11%}
@media(max-width:620px){.hp-wrap{top:auto;bottom:3%;left:40%;width:57%}.enemy-unit.boss{bottom:13%}.hero-hp-wrap{bottom:3%}}
/* 1.1.1: direct collection links and a persistent, quiet boss notification. */
.nav-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.collection-link{flex:1;min-width:0;padding:12px 5px;background:#f0f5ee;border:1px solid #c9d8c7;border-radius:11px;color:#385a4a;font-weight:700;font-size:11px;transition:background .15s,transform .15s;min-height:96px}
.collection-link:hover{background:#e3edde;transform:translateY(-2px)}
.collection-link strong{display:block;font-size:21px}.collection-link strong small{font-size:12px;font-weight:500}.collection-link>span{display:block;margin-top:7px;font-size:10px;color:#52755d}
button.secondary.boss-ready{background:linear-gradient(130deg,#8a233e,#b3463e);color:#fff0c7;border:1px solid #d3a65d;box-shadow:0 3px 0 #64243a,0 0 16px #ae7b371c}
button.secondary.boss-ready:hover{background:linear-gradient(130deg,#9f2c47,#c45645)}
.wait-explanation{display:block;font-size:11px;line-height:1.7;margin-top:8px;max-width:270px}
.automatic-range{margin:-6px 0 20px;padding:9px 12px;background:#eff3ed;border-radius:8px}
/* 1.2: illustrate hero choices, explain abilities, and show solved numbers. */
.hero-effect-small{font-size:11px;line-height:1.7;color:#456b54;margin:9px 0}
button.hero-picker-button{width:100%;font-size:12px;padding:10px 8px;margin-top:5px}
.hero-choice-grid .collection-item{min-height:260px}.hero-choice-grid .item-meta{line-height:1.7;min-height:42px}
.hero-choice-grid .active-hero{box-shadow:inset 0 0 0 2px #83a777,0 6px 16px #385c3c17}
.answer.correct{background:#e4f4db;border-color:#72a84b;color:#235f2a;box-shadow:0 0 0 4px #96c86e39,0 0 22px #c9e6a7}
.answer.correct:after{content:'正解！';display:block;font-size:14px;line-height:1.2;letter-spacing:.08em}
.hero-select-page .item-name{margin-top:4px}
@media(max-width:620px){.hero-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-choice-grid .collection-item{min-height:235px}.hero-choice-grid canvas{height:145px}.hero-choice-grid .item-name{font-size:12px}.hero-choice-grid .item-meta{font-size:11px}.answer.correct:after{font-size:10px}}

.answer.correct{flex-direction:column;line-height:1.05;gap:3px}
/* 1.3: current-condition top three, editable record names, and save-neutral text. */
.setup-options{min-width:0}.setup-learning .field{margin-bottom:16px}.setup-voice{padding:9px 0 4px}.setup-voice .actions{justify-content:flex-end}
.current-ranking{margin-top:20px;padding-top:18px;border-top:1px solid #dae2d9}.current-condition{line-height:1.7;margin-bottom:10px}.current-ranking .section-label{color:#977335;font-size:14px}.current-ranking .actions{justify-content:flex-end;margin-top:5px}
.ranking-empty{background:#f2f5ee;border:1px dashed #d3dece;padding:22px 12px;border-radius:10px;text-align:center;font-size:13px;color:#667e6a}
.compact-rank{width:100%;min-width:0}.compact-rank th{font-size:11px}.compact-rank td{padding:12px 8px}.compact-rank td.score{font-size:25px;white-space:nowrap}.compact-rank td.score small{font-size:10px;font-weight:500}.compact-rank .medal{font-size:24px;width:45px}.compact-rank strong{overflow-wrap:anywhere}.compact-rank .small{font-size:10px;line-height:1.6}
button.record-delete{padding:8px 10px;background:#fff5ef;border:1px solid #e3c8bc;color:#9e5245;font-size:11px;white-space:nowrap;border-radius:8px;min-height:34px}
.record-management{margin-top:24px;border-top:1px solid #d4dfd5;padding-top:17px}.record-management summary{cursor:pointer;font-weight:700;font-size:14px;color:#5b7467}.record-history{margin-top:14px}.record-history-row{display:flex;align-items:center;gap:14px;padding:12px 8px;border-bottom:1px solid #dae3dc;font-size:13px}.record-history-row>strong{width:60px;flex:none}.record-history-row>span{flex:1;min-width:0;overflow-wrap:anywhere}.record-history-row small{display:block;color:#75847d;font-size:10px;margin-top:5px}
.rank-name-entry{max-width:760px;margin:12px auto 28px;background:#fff8df;border-color:#d9b869}.rank-name-entry h2{font-size:19px;margin-bottom:15px}.rank-name-entry label{font-size:12px;display:block;margin-bottom:7px;color:#6a725d}.rank-name-entry input{flex:1;min-width:160px}.rank-name-entry .hint{margin:10px 0 0}
#setup-extra select{display:block;width:100%;margin-top:7px}.setup-options>.details{margin-top:20px}
@media(max-width:620px){.setup-voice{align-items:flex-start;gap:6px}.setup-voice .actions{gap:5px}.setup-voice button{padding:9px;font-size:11px}.compact-rank td{padding:10px 5px}.compact-rank td.score{font-size:23px}.compact-rank .medal{width:28px;font-size:20px}.compact-rank .small{font-size:9px}.compact-rank th{font-size:10px}.rank-name-entry h2{font-size:17px}.record-history-row{gap:8px}.record-history-row>strong{width:48px}}
.compact-rank{white-space:normal}button.record-delete{min-height:44px}
@media(max-width:620px){
 .compact-rank,.compact-rank tbody{display:block;width:100%}.compact-rank thead{display:none}
 .compact-rank tr{display:grid;grid-template-columns:26px 46px minmax(0,1fr) 48px;align-items:center;padding:8px;border-bottom:1px solid #e4e9e1;column-gap:4px}
 .compact-rank tr:last-child{border-bottom:0}.compact-rank td{display:block;padding:5px 0;border:0;min-width:0}
 .compact-rank td:nth-child(3){grid-column:3;grid-row:1}.compact-rank td:last-child{grid-column:4;grid-row:1}
 .compact-rank td:nth-child(4):not(:last-child){grid-column:3/5;grid-row:2;padding-top:0;white-space:normal;line-height:1.6}
 .compact-rank td.score{font-size:22px}.compact-rank td .small{font-size:10px}.compact-rank .medal{width:auto;text-align:center}
 .compact-rank button.record-delete{padding:8px;min-width:44px}
}
/* Music selection and eight-second previews stay inside the existing settings panel. */
.music-selection{margin-top:16px;padding:14px;background:#f1f4eb;border:1px solid #dce4d5;border-radius:12px}.music-selection .section-label{display:block;margin-bottom:0}.music-selection .hint{margin:8px 0 0}.boss-audio-preview{display:flex;align-items:flex-end;gap:10px;margin:16px 0}.boss-audio-preview label{flex:1;min-width:0;margin-bottom:0}.boss-audio-preview button{flex:1;font-size:12px;min-height:44px}.audio-options{gap:8px}.audio-options button{min-height:44px}
@media(max-width:620px){.boss-audio-preview{align-items:stretch;flex-direction:column}.music-selection{padding:12px}}
