@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans','Noto Sans SC',sans-serif;color:#262722;background:#f6f3eb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;overflow-x:clip}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}#app{min-height:100dvh;display:flex;flex-direction:column}header,footer{width:min(1180px,100%);margin:auto;padding:22px 28px;display:flex;align-items:center;justify-content:space-between}header{border-bottom:1px solid #dedbd2}.brand{font-size:20px;letter-spacing:-.06em}.brand:first-letter{color:#e85b3a}.header-right{display:flex;gap:15px;align-items:center}.sound,.text-link,.back{border:0;background:none;color:#666c61;font-size:13px}.sound:hover,.text-link:hover,.back:hover{color:#e85b3a}.room-pill{border:1px solid #d9d6cc;padding:7px 12px;border-radius:99px;font-size:12px;font-weight:700;letter-spacing:.06em}main{width:min(1180px,100%);margin:auto;padding:44px 28px 80px;flex:1}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.17em;color:#e65e3e;margin:0 0 16px}h1{font-size:clamp(42px,6.6vw,88px);line-height:1.09;letter-spacing:-.08em;margin:0;font-weight:800}h1 em{font-style:normal;color:#e85e3c}h2{font-size:18px;letter-spacing:-.04em;margin:0 0 20px}.lead{font-size:17px;color:#686d63;line-height:1.8;max-width:550px;margin:24px 0}.home{position:relative;min-height:700px;padding-top:110px}.home .lead{max-width:490px}.hero-mark{display:flex;gap:7px;margin-bottom:28px}.hero-mark span{border:1px solid #d9d5c9;border-radius:99px;padding:7px 13px;font-size:11px;font-weight:700;color:#666c61;background:#fffdf8}.home-actions{display:flex;gap:12px;margin:32px 0 20px}button.primary,button.secondary{border-radius:14px;padding:15px 24px;font-weight:800;border:1px solid transparent;transition:transform .2s,background .2s}button.primary{background:#e85e3c;color:#fff;box-shadow:0 5px 0 #c2482f}button.primary:hover{background:#d95132;transform:translateY(-2px)}button.secondary{background:#fffdf8;border-color:#d7d3c8;color:#29302a}button.secondary:hover{border-color:#a7aaa1}button.disabled{opacity:.45;pointer-events:none;box-shadow:none}.home-art{position:absolute;right:4%;top:105px;width:340px;height:430px;transform:rotate(-7deg)}.art-card{position:absolute;width:210px;height:260px;border-radius:24px;border:2px solid #282923;box-shadow:8px 9px 0 #252721;display:flex;flex-direction:column;justify-content:space-between;padding:24px;font-size:34px;font-weight:800;letter-spacing:-.08em}.art-card span{font-size:13px;letter-spacing:0}.art-card.a{background:#f7b676;transform:rotate(-20deg);left:0;top:85px}.art-card.b{background:#a2c7d8;transform:rotate(12deg);left:110px;top:30px}.art-card.c{background:#d5c1e8;transform:rotate(31deg);left:135px;top:145px}.form-page,.rules{max-width:680px;padding-top:70px}.back{padding:0;margin-bottom:55px}.form-page h1,.rules h1{font-size:clamp(40px,6vw,68px)}form{display:grid;gap:25px;margin-top:46px}label{display:grid;gap:11px;font-weight:800;font-size:14px}input{width:100%;padding:17px 18px;background:#fffdf8;border:1px solid #cfcbc0;border-radius:12px;outline:none;color:#242824}input:focus{border-color:#e85e3c;box-shadow:0 0 0 3px #e85e3c22}.seg{display:flex;gap:8px}.seg button{background:#fffdf8;border:1px solid #d7d3c8;border-radius:10px;padding:11px 18px;font-weight:700}.seg button.selected{background:#2d342e;color:white;border-color:#2d342e}.full{width:100%}.rule-list{margin:50px 0;display:grid;gap:0}.rule-list article{display:grid;grid-template-columns:55px 1fr;padding:26px 0;border-top:1px solid #d9d5ca}.rule-list article>b{font-size:13px;color:#e85e3c}.rule-list h2{margin:0 0 8px}.rule-list p{margin:0;color:#666c61;line-height:1.8}.topline,.phase-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:45px}.topline h1,.phase-head h1,.room>h1,.reveal h1{font-size:clamp(40px,5vw,64px)}.codebox{background:#292e29;color:white;padding:16px 25px;border-radius:16px;text-align:center;min-width:150px}.codebox small,.codebox strong{display:block}.codebox small{font-size:10px;opacity:.6;letter-spacing:.15em}.codebox strong{font-size:25px;letter-spacing:.1em}.layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(290px,.85fr);gap:45px}.layout section>h2{display:flex;justify-content:space-between}.layout section>h2 span{color:#8b8e85}.roster{display:grid;gap:10px}.player{display:flex;align-items:center;gap:14px;background:#fffdf8;border:1px solid #dedbd1;border-radius:15px;padding:13px 16px;min-height:73px}.avatar{width:43px;height:43px;flex:none;border-radius:13px;background:var(--pc,#dedbd2);display:inline-flex;align-items:center;justify-content:center;font-size:20px;font-weight:800;color:#222;box-shadow:inset 0 -3px #0001}.player-name{min-width:0;display:grid;gap:3px}.player-name b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-name small{color:#868b81;font-size:11px}.hp{margin-left:auto;display:flex;align-items:baseline;gap:5px}.hp strong{font-size:22px}.hp span{font-size:10px;color:#8b8e85}.player.dead{opacity:.5;filter:grayscale(1)}.player.empty{border-style:dashed;color:#a1a59b;background:transparent}.panel{background:#fffdf8;border:1px solid #dedbd1;border-radius:20px;padding:25px;margin-bottom:15px}.panel p{color:#6e7469;font-size:13px;line-height:1.75;margin:0 0 19px}.panel h2{margin-bottom:12px}.bot-actions{display:flex;gap:8px;margin:20px 0 8px}.bot-actions button{flex:1;padding:11px 6px;font-size:12px}.panel>.primary,.panel>.secondary{margin-top:12px}.progress{font-size:29px;font-weight:800;white-space:nowrap}.progress small{display:block;font-size:11px;color:#85897f;text-align:right}.moves{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:25px}.move{border:1px solid #d8d4c9;background:#f7f4ed;border-radius:14px;padding:14px 4px;font-size:13px;font-weight:800}.move span{display:block;font-size:28px;margin-bottom:8px}.move.selected,.target.selected{background:#ffe2d6;border-color:#e85e3c;box-shadow:inset 0 0 0 1px #e85e3c}.targets{display:grid;gap:8px;margin-bottom:24px}.target{display:flex;align-items:center;gap:12px;text-align:left;background:#f7f4ed;border:1px solid #d8d4c9;border-radius:12px;padding:8px 12px;font-weight:700}.target .avatar{width:32px;height:32px;font-size:15px;border-radius:9px}.hint{font-size:11px!important;color:#989b92!important;margin-top:15px!important}.locked-mark{font-size:35px;width:58px;height:58px;border-radius:50%;background:#d9eedb;color:#29864b;display:grid;place-items:center;margin-bottom:20px}.reveal{text-align:center;max-width:900px}.reveal-count{display:inline-block;margin:26px 0;padding:9px 16px;border-radius:99px;background:#e8e5db;font-weight:700;font-size:12px}.duel{display:grid;grid-template-columns:1fr 90px 1fr;align-items:center;gap:15px;margin:28px auto}.duel-side{min-height:250px;background:#fffdf8;border:1px solid #dedbd1;border-radius:22px;padding:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}.duel-side .avatar{width:72px;height:72px;font-size:33px;border-radius:22px;margin-bottom:10px}.duel-side b{font-size:20px}.duel-side>span:not(.avatar){font-size:11px;color:#888d82}.flipped{font-size:32px;font-weight:800;color:#e85e3c;margin-top:10px}.versus{font-size:26px;font-weight:800;color:#e85e3c;font-style:italic}.outcome{font-size:18px;font-weight:800}.echo{background:#353a34;color:white;border-radius:99px;padding:7px 13px;font-size:11px;margin-right:12px}.under-reveal{margin:50px auto 0;max-width:520px}.reveal-wait{padding:100px 0;font-weight:700;color:#888d82}.event-list{display:grid;gap:8px}.event-list>div{background:#fffdf8;border:1px solid #dedbd1;border-radius:12px;padding:15px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.event-list small{color:#e85e3c}.stat-row{display:flex;justify-content:space-between;border-bottom:1px solid #ece9df;padding:10px 0;margin:0!important}.stat-row strong{color:#252922}.stat-row small{color:#9a9e95}.finish{text-align:center}.finish h1{font-size:clamp(48px,8vw,100px)}.finish .lead{margin:26px auto 40px}.final-roster{max-width:570px;margin:0 auto 32px;text-align:left}.finish>button{margin:5px}footer{border-top:1px solid #dedbd2;font-size:11px;color:#9a9e95;gap:10px}.notice{position:fixed;top:80px;right:20px;z-index:10;background:#2d342e;color:white;border-radius:11px;padding:13px 16px;box-shadow:0 10px 30px #0002;font-size:13px}.notice button{background:none;color:white;border:0;font-size:18px;margin-left:15px}@media(max-width:850px){.home-art{opacity:.25;right:-50px;transform:scale(.7) rotate(-7deg);pointer-events:none}.layout{grid-template-columns:1fr;gap:28px}}@media(max-width:600px){header,footer{padding:17px 18px}main{padding:38px 18px 70px}.home{padding-top:60px;min-height:630px}.home-art{top:290px;right:-115px;opacity:.22;transform:scale(.6) rotate(-7deg)}.home h1{font-size:54px}.home .lead{font-size:15px;position:relative;z-index:1}.home-actions{position:relative;z-index:1;flex-direction:column;max-width:310px}.home-actions button{width:100%}.topline,.phase-head{align-items:start}.topline{flex-direction:column}.codebox{width:100%}.phase-head h1{font-size:45px}.room-pill{display:none}.duel{grid-template-columns:1fr 35px 1fr;gap:5px}.duel-side{padding:12px 4px;min-height:190px}.duel-side .avatar{width:50px;height:50px;font-size:23px;border-radius:15px}.duel-side b{font-size:14px}.flipped{font-size:21px}.versus{font-size:18px}.echo{display:block;width:max-content;margin:0 auto 10px}.bot-actions{flex-wrap:wrap}.form-page,.rules{padding-top:35px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

.final-stats{max-width:570px;margin:0 auto 35px;text-align:left;background:#fffdf8;border:1px solid #dedbd1;border-radius:16px;padding:22px}.final-stats>div{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid #ece9df;font-size:12px}.final-stats span{color:#697067}
.duel-side:first-child .flipped{animation:revealMove .45s .45s both}.duel-side:last-child .flipped{animation:revealMove .45s 1.35s both}.outcome{animation:revealMove .45s 2.25s both}@keyframes revealMove{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.header-right{gap:8px}.header-right .sound{font-size:11px}.brand{font-size:17px}}@media(prefers-reduced-motion:reduce){.duel-side .flipped,.outcome{animation:none!important}}
