.player{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center}
.player span{text-align:center}
.player .mineName{color:#d62f2f;font-weight:900}
.player strong{font-variant-numeric:tabular-nums}
.player.low strong{color:#d62f2f}
.player .pushState{grid-column:1/-1;padding:5px 8px;border-radius:7px;font-size:11px;font-weight:800;text-align:left}
.pushState.ready{background:#caff42;color:#14241c}
.pushState.cool{background:#ffe3a3;color:#694600}
.pushState.none{background:#ddd8cc;color:#68766f}
.pushState.spent{background:#d9d3f5;color:#43387b}
.matchTimer{margin:12px auto 4px;font-size:clamp(24px,6vw,40px);font-weight:900;font-variant-numeric:tabular-nums;color:var(--ink)}
.lastAction{align-self:center;padding:6px 9px;border-radius:8px;background:#f1eadb;font-size:12px;font-weight:800}
.lastAction.push{background:#bff7f3;color:#075f5b}
.colorNotice{margin:12px 0 4px;padding:10px;border-radius:10px;background:var(--lime);font-weight:900;text-align:center}
.pushBox{display:grid;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid #ddd5c7}
.pushBox small{text-align:center;color:var(--muted)}
#pushToggle.active{background:#18d9d2}
.pushDirs{grid-template-columns:repeat(3,44px);gap:5px;justify-content:center}
.pushDirs:not([hidden]){display:grid}
.pushDirs button{padding:9px;font-size:18px}
.headerActions{display:flex;align-items:center;gap:8px}
.gameHomeLink{display:inline-flex;align-items:center;min-height:38px;padding:8px 12px;border-radius:11px;background:#e8e4da;color:#14241c;text-decoration:none;font-size:13px;font-weight:800;white-space:nowrap}.gameHomeLink:hover{filter:brightness(.96)}html[data-theme="dark"] .gameHomeLink{background:#26382f;color:#edf5f0;outline:1px solid #536b5e}@media(max-width:560px){header{align-items:flex-start}.headerActions{justify-content:flex-end}.gameHomeLink{order:3;width:100%;justify-content:center}}
#installApp{padding:8px 11px;background:var(--lime);font-size:12px}
canvas{touch-action:pan-x pan-y}
button,input{min-height:44px}
@supports(padding:max(0px)){.app{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}footer{padding-bottom:max(24px,env(safe-area-inset-bottom))}}
@media(max-width:780px){.boardtools{position:sticky;left:0;z-index:2}.scroll{max-height:52dvh;overscroll-behavior:contain}.boardbox{padding:8px}.card{padding:20px}.hero{min-height:330px}.game{gap:10px}}
@media(max-width:420px){header{align-items:flex-start}.tag{display:none}.boardtools{gap:5px}.boardtools button{padding:8px 9px}.colorNotice{font-size:14px}.player{font-size:13px}.piece{margin:10px}}
.tutorialLaunch{align-self:flex-start;margin-top:12px;background:var(--lime);color:var(--ink)}
.menuHint{margin-top:14px;color:#dce4df;font-size:13px}
.cpuSeat{max-width:230px;color:#dce4df}.cpuSeat select{min-height:44px;padding:9px 12px;border:0;border-radius:11px;background:#fff;color:var(--ink);font:inherit;font-weight:800}
#cpuWeak{background:#e8e4da;color:var(--ink)}#cpuMatch{background:#fff;color:var(--ink)}#cpuStrong{background:#18d9d2;color:#073f3c}#cpuUltra{background:#ffb938;color:#382000}
#resultCard:not([hidden]){position:fixed;z-index:20;left:50%;top:50%;transform:translate(-50%,-50%);width:min(90vw,480px);padding:38px;text-align:center;box-shadow:0 25px 90px #0008}#resultCard:not([hidden])::before{content:"";position:fixed;z-index:-1;inset:-100vh -100vw;background:#14241caa}.resultGuide{color:var(--muted);line-height:1.6}.resultActions{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}.resultActions button{min-width:0;padding-inline:10px}#inspectResult{background:#caff42;color:#14241c;font-size:17px;box-shadow:0 8px 24px #0002}#reopenResult{background:#14241c;color:#fff;outline:2px solid #caff42}#reviewLobby{background:#caff42;color:#14241c}
#tutorialBoard{display:block;background:var(--wood);touch-action:none}
.tutorialGame .scroll{max-height:calc(100vh - 160px)}
.tutorialPanel h1{margin:14px 0 8px;font-size:28px}.tutorialPanel p{line-height:1.75}.tutorialProgress{display:flex;gap:6px;margin-top:14px}.tutorialProgress i{height:7px;flex:1;border-radius:99px;background:#ddd8cc}.tutorialProgress i.on{background:var(--lime)}
.tutorialActions{display:grid;gap:9px}.tutorialDirs{grid-template-columns:repeat(3,44px);gap:5px;justify-content:center}.tutorialDirs:not([hidden]){display:grid}.tutorialDirs button{padding:9px;font-size:18px}.tutorialStatus{min-height:52px;padding:10px;border-radius:10px;background:#f1eadb;font-weight:750}.tutorialStatus.ok{background:#dff7a8}.tutorialNav{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}.tutorialNav #tutorialExit{margin-right:auto}
@media(max-width:780px){.tutorialPanel h1{font-size:23px}.tutorialGame .scroll{max-height:52dvh}}
.colorNotice{display:flex;align-items:center;justify-content:center;gap:5px;color:#14241c}.colorStone{display:inline-block;width:20px;height:20px;flex:0 0 20px;border-radius:50%;vertical-align:-4px;box-shadow:inset -3px -4px 5px #0005,0 2px 4px #0005}.player b{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.player b .colorStone{width:18px;height:18px;flex-basis:18px}.blackStone{background:radial-gradient(circle at 35% 30%,#4a554f 0,#18201c 45%,#080b09 100%);border:2px solid #68766f}.whiteStone{background:radial-gradient(circle at 35% 30%,#fff 0,#f5f2e9 55%,#bdb7aa 100%);border:1px solid #8f897e}html[data-theme="dark"] .colorNotice{color:#14241c}html[data-theme="dark"] .blackStone{border:2px solid #d7e4dc;box-shadow:inset -3px -4px 5px #0008,0 0 0 1px #000,0 0 8px #d7e4dc66}
.pieceChoice{margin:10px 0;padding:12px;border:2px solid #92bd23;border-radius:14px;background:#f4ffd8;text-align:center;color:#14241c}.pieceChoice>b{display:block;margin-bottom:9px}.choiceButtons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.choiceButtons button{display:grid;gap:5px;justify-items:center;padding:10px 5px;background:#fff;color:#14241c;border:2px solid transparent}.choiceButtons button:hover,.choiceButtons button:focus-visible{border-color:#14241c}.choiceShape{display:grid;grid-template-columns:repeat(4,18px);grid-template-rows:repeat(4,18px)}.choiceShape i{border-radius:50%;margin:1px}.choiceShape .b{border:1px solid #7d8982}.undoChoice{width:100%;background:#14241c!important;color:#fff!important}html[data-theme="dark"] .pieceChoice{background:#caff42;color:#14241c}html[data-theme="dark"] .choiceButtons button{background:#f5f2e9;color:#14241c}
html[data-theme="dark"]{color-scheme:dark;--paper:#08110d;--card:#13231b;--wood:#9a6d38;--muted:#aabbb2}html[data-theme="dark"] body{background:#08110d;color:#eaf2ed}html[data-theme="dark"] .brand,html[data-theme="dark"] a{color:#bcefcf}html[data-theme="dark"] .card{background:#13231b;box-shadow:0 18px 55px #0006}html[data-theme="dark"] .hero{background:#0d1a14}html[data-theme="dark"] button{background:#26382f;color:#edf5f0}html[data-theme="dark"] button.primary,html[data-theme="dark"] .tabs button[aria-pressed="true"]{background:#caff42;color:#14241c}html[data-theme="dark"] button.dark{background:#dce9e1;color:#14241c}html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#0b1711;color:#eef6f1;border-color:#40564a}html[data-theme="dark"] .prob span,html[data-theme="dark"] .player{background:#203129}html[data-theme="dark"] .darkText,html[data-theme="dark"] .status{color:#aabbb2}html[data-theme="dark"] #themeToggle{background:#26382f;outline:1px solid #536b5e}html[data-theme="dark"] footer{border-color:#30443a;color:#aabbb2}html[data-theme="dark"] #resultCard:not([hidden])::before{background:#020705cc}html[data-theme="dark"] .tutorialStatus{background:#203129;color:#eaf2ed}html[data-theme="dark"] .tutorialStatus.ok{background:#35521f}html[data-theme="dark"] .piece .b{background:#101713;border:2px solid #d7e4dc;box-shadow:0 0 0 1px #000,0 0 8px #d7e4dc55}.headerHoldActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.headerActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}#themeToggle{padding:8px 12px;min-height:38px}
.stoneColorSelect span{display:flex;align-items:center;gap:8px}.stoneColorSelect small{display:block;margin-top:4px;color:#c9d8d0}.stoneColorPreview{display:inline-block;width:22px;height:22px;border-radius:50%;border:2px solid #17211c;box-shadow:inset -3px -3px 4px #0004,0 0 0 1px #fff8}.piece .b,.choiceShape .b,#tutorialPiece .b{background:var(--black-stone-color)!important}.piece .w,.choiceShape .w,#tutorialPiece .w{background:var(--white-stone-color)!important}.piece .b,.piece .w,.choiceShape .b,.choiceShape .w,#tutorialPiece .b,#tutorialPiece .w{border:2px solid #17211c!important;box-shadow:inset -2px -2px 3px #0004,0 0 0 1px #ffffff99!important}.logicalStone1{background:var(--black-stone-color)}.logicalStone2{background:var(--white-stone-color)}.ownStone{background:var(--own-stone-color)}.opponentStone{background:var(--opponent-stone-color)}.logicalStone1,.logicalStone2,.ownStone,.opponentStone{border:2px solid #17211c;box-shadow:inset -3px -4px 5px #0004,0 0 0 1px #ffffff99,0 2px 4px #0005}html[data-theme="dark"] .logicalStone1,html[data-theme="dark"] .logicalStone2,html[data-theme="dark"] .ownStone,html[data-theme="dark"] .opponentStone{border-color:#07100b;box-shadow:inset -3px -4px 5px #0005,0 0 0 1px #ffffffcc,0 0 6px #fff5}
.stoneColorSettings{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:470px}@media(max-width:520px){.stoneColorSettings{grid-template-columns:1fr}}
.nextPieceBox{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0;padding:8px;border:1px solid #b9c8bf;border-radius:12px;text-align:center;background:#f4f7f5}.nextPieceBox[hidden]{display:none}.nextPieceBox section{min-width:0;padding:7px 3px;border-radius:9px;background:#fff}.nextPieceBox section>b,.nextPieceBox section>small{display:block;font-size:11px}.nextPieceBox .nextPiece{margin:6px auto;width:72px;height:72px;grid-template-columns:repeat(4,18px);grid-template-rows:repeat(4,18px)}.cpuSeatNotice{outline:3px solid #caff42;outline-offset:4px;font-size:16px;font-weight:800}html[data-theme="dark"] .nextPieceBox{background:#203129;border-color:#52685d;color:#eef6f1}html[data-theme="dark"] .nextPieceBox section{background:#13231b}
.cpuTurnSelect{order:0;display:flex;align-items:center;gap:10px;width:max-content;max-width:100%!important;margin:4px 0 12px!important;padding:10px 12px;border:2px solid #caff42;border-radius:13px;background:#26382f;color:#fff!important;font-weight:900;white-space:nowrap}.cpuTurnSelect select{width:auto;min-width:104px;border:2px solid #caff42!important;font-size:16px!important}.cpuTurnSelect::after{content:none}@media(max-width:420px){.cpuTurnSelect{gap:7px;font-size:14px}.cpuTurnSelect select{min-width:94px;padding-left:8px;padding-right:8px}}
.profileStyleSelect{display:flex;align-items:center;gap:10px;width:max-content;max-width:100%;margin:4px 0 12px;color:#fff;font-weight:800}.profileStyleSelect select{width:auto;min-width:160px}.profileRewardHint{display:block;margin:-5px 0 12px;color:#dce4df;font-size:11px}.player.silverProfile{position:relative;background:linear-gradient(135deg,#4f575d 0%,#e4e8eb 35%,#747e85 62%,#f5f7f8 100%);color:#101716;border:2px solid #f7fbff;box-shadow:inset 0 0 12px #fff9,0 0 14px #cfd8df99}.player.silverProfile::after{content:"★";position:absolute;right:8px;top:5px;color:#fff;text-shadow:0 1px 3px #263238;font-size:18px}.player.silverProfile .pushState{color:#17211c}.playerTitle{font-size:10px;font-weight:900;letter-spacing:.04em}.result{white-space:pre-line}
html[data-theme="dark"] .player.silverProfile{background:linear-gradient(135deg,#4f575d 0%,#e4e8eb 35%,#747e85 62%,#f5f7f8 100%);color:#101716;border-color:#f7fbff}html[data-theme="dark"] .player.silverProfile .pushState{color:#17211c}
.sharePanel{display:grid;gap:9px}.sharePanel h2,.sharePanel p{margin:0}.shareButtons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.shareButtons button{display:flex;align-items:center;justify-content:center;min-height:42px;padding:9px;border:0;border-radius:10px;font:inherit;font-weight:800;cursor:pointer}.shareX{background:#111!important;color:#fff!important}.shareLine{background:#06c755!important;color:#fff!important}.shareNative{background:#d9c7ff!important;color:#302050!important}.shareCopy{background:#e8ece9!important;color:#14241c!important}.resultShare{margin:14px 0}.resultShare .shareButtons{grid-template-columns:repeat(4,minmax(0,1fr))}.resultShare .shareButtons button{padding:7px;font-size:12px}@media(max-width:500px){.resultShare .shareButtons{grid-template-columns:repeat(2,minmax(0,1fr))}}
.profileTitleSelect{display:flex;align-items:center;gap:10px;width:max-content;max-width:100%;margin:4px 0 12px;color:#fff;font-weight:800}.profileTitleSelect select{width:auto;min-width:180px}.titleBanner{grid-column:1/-1;display:block;width:150px;height:30px;justify-self:center;background:url('/title-lv4-breaker.svg') center/contain no-repeat}.titleBanner[hidden]{display:none}
#undoTurn{background:#fff1c7;color:#5a3b00;border:1px solid #d9ad43}html[data-theme="dark"] #undoTurn{background:#5a451c;color:#fff3c9}
.recordDialog{position:fixed;z-index:40;inset:0;display:grid;place-items:center;padding:20px;background:#07100bcc}.recordDialog[hidden]{display:none}.recordCard{width:min(92vw,600px);max-height:82vh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;padding:24px;border-radius:20px;background:var(--card);box-shadow:0 25px 90px #0009}.recordCard h2{margin-top:0}.recordList{overflow:auto;padding:5px 10px;border:1px solid #d6d0c3;border-radius:12px}.recordList p{margin:0;padding:9px 4px;border-bottom:1px solid #e2ddd3;font-size:13px}.recordList p:last-child{border:0}.recordActions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}html[data-theme="dark"] .recordCard{background:#13231b;color:#eef6f1}html[data-theme="dark"] .recordList{border-color:#52685d}html[data-theme="dark"] .recordList p{border-color:#30443a}
.historyRow{display:block;width:100%;margin:5px 0;padding:11px;text-align:left;font-size:12px;line-height:1.5;background:#f1ede3}.historyRow:hover,.historyRow:focus-visible{outline:2px solid #83a921}#historyButton{background:#d9c7ff;color:#302050}html[data-theme="dark"] .historyRow{background:#203129;color:#eef6f1}
.recordReplay{display:grid;gap:9px;margin-bottom:12px;text-align:center}.recordReplay[hidden]{display:none}.recordBoardWrap{overflow:auto;width:100%;height:min(46vh,480px);border:2px solid #9a6d38;border-radius:10px;background:var(--wood)}#recordBoard{width:1080px;height:1080px;background:var(--wood)}.recordStepActions{display:grid;grid-template-columns:auto 1fr 1fr auto;gap:6px}.recordStepActions button{padding:8px;min-height:40px}@media(max-width:500px){.recordStepActions{grid-template-columns:1fr 1fr}.recordCard{padding:14px}}
.player{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name seat" "rating timer" "push push" "title title";gap:5px 10px;overflow:hidden}.player>b{grid-area:seat;justify-self:end}.player>span[id^="n"]{grid-area:name;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:15px;font-weight:900}.player>strong{grid-area:timer;justify-self:end}.player>.ratingLine{grid-area:rating;text-align:left;color:var(--muted);font-size:12px;font-weight:800}.player>.titleBanner{grid-area:title;width:150px;height:30px;justify-self:start;background:none;color:var(--muted);font-size:11px;font-weight:700;text-align:left;line-height:30px}.player>.titleBanner.equipped{justify-self:center;background:url('/title-lv4-breaker.svg') center/contain no-repeat;color:transparent;font-size:0}.player>.pushState{grid-area:push}html[data-theme="dark"] .player>.ratingLine,html[data-theme="dark"] .player>.titleBanner:not(.equipped){color:#b7c6be}@media(max-width:420px){.player>span[id^="n"]{font-size:13px}.player>.titleBanner{width:140px;height:28px;line-height:28px}}
.profileCustomization{display:grid;grid-template-columns:1fr;gap:8px;width:min(100%,430px);margin:4px 0 12px;padding:12px;border:1px solid #52685d;border-radius:13px;background:#1c2e25}.profileCustomization .profileStyleSelect,.profileCustomization .profileTitleSelect{display:grid;grid-template-columns:minmax(120px,1fr) minmax(170px,1.4fr);align-items:center;gap:10px;width:100%;max-width:none;margin:0}.profileCustomization select{width:100%;min-width:0}.profileCustomization .profileRewardHint{margin:2px 0 0}@media(max-width:420px){.profileCustomization .profileStyleSelect,.profileCustomization .profileTitleSelect{grid-template-columns:1fr}.profileCustomization{padding:10px}}
.player>.titleBanner.title-first-step{background-image:url('/title-first-step.svg')}.player>.titleBanner.title-beginner{background-image:url('/title-beginner.svg')}.player>.titleBanner.title-intermediate{background-image:url('/title-intermediate.svg')}.player>.titleBanner.title-lv4-breaker{background-image:url('/title-lv4-breaker.svg')}.player>.titleBanner.title-veteran{background-image:url('/title-veteran.svg')}.player>.titleBanner.title-excellence{background-image:url('/title-excellence.svg')}.player>.titleBanner.title-orthodox{background-image:url('/title-orthodox.svg')}.player>span.sevenStars{min-width:190px;padding:14px 34px 7px!important;text-align:center;background:url('/effect-seven-stars.svg') center/100% 100% no-repeat;text-shadow:0 1px 3px #5d4300}.rewardIcon{display:inline-block;width:34px;height:24px;margin-left:7px;vertical-align:middle;background-position:center;background-size:contain;background-repeat:no-repeat}.sevenStarsIcon{background-image:url('/effect-seven-stars.svg');width:70px}.silverStoneIcon{background-image:url('/effect-silver-stone.svg')}
.arenaShell{display:grid;gap:14px}.arenaTop,.arenaCreate,.arenaRoomHeader{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.arenaCreate label{min-width:150px;flex:1}.arenaCreate select{padding:12px;border-radius:10px}.arenaRooms,.arenaTables{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:10px}.arenaRoomCard,.arenaTable{padding:14px;border:1px solid #d7d1c4;border-radius:14px;background:var(--card)}.arenaRoomCard h3,.arenaTable h3{margin:0 0 8px}.arenaSeat{display:grid;grid-template-columns:minmax(70px,1fr) auto auto auto;gap:7px;align-items:center;margin:7px 0;padding:8px;border-radius:9px;background:#eae5d9}.arenaSeat.mine{outline:2px solid var(--lime)}.arenaSeat.ready{background:#dff3b1}.arenaSeat button{padding:7px 10px}.arenaCpuLevel{max-width:105px;padding:7px;border-radius:8px}.arenaMembers{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.arenaMember{padding:5px 9px;border-radius:99px;background:#e9e4d8;font-size:12px}.arenaBadge{font-size:11px;font-weight:800;color:var(--muted)}[data-theme="dark"] .arenaRoomCard,[data-theme="dark"] .arenaTable{border-color:#52685d;background:#17271f}[data-theme="dark"] .arenaSeat,[data-theme="dark"] .arenaMember{background:#263a30;color:#f4f7f5}[data-theme="dark"] .arenaSeat.ready{background:#405c30}.spectatorNotice{font-weight:900;color:#1457a6}@media(max-width:520px){.arenaSeat{grid-template-columns:1fr auto}.arenaCpuLevel{max-width:none}}
.cpuWatchControls{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:10px 0;padding:10px 12px;border:1px solid #52685d;border-radius:13px;background:#1c2e25}.cpuWatchControls strong{width:100%;color:var(--lime)}.cpuWatchControls label{display:flex;align-items:center;gap:5px;margin:0;color:#fff}.cpuWatchControls select{width:auto;padding:8px;border-radius:8px}.cpuWatchControls>span{padding-bottom:8px;color:#fff}
.promoCard{align-self:end}.promoCard h2{margin-bottom:4px}.promoForm{display:grid;gap:7px}.promoForm>label{margin:0;font-size:12px;font-weight:800}.promoForm>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.promoForm input{min-width:0;text-transform:uppercase}.promoForm button{white-space:nowrap}.promoForm .status{margin:0;min-height:20px}@media(max-width:420px){.promoForm>div{grid-template-columns:1fr}.promoForm button{width:100%}}
.lobbyPlayerPreview{grid-template-columns:1fr;grid-template-areas:"name" "rating" "title";min-height:132px;margin-top:14px;padding:14px;align-content:center}.lobbyPlayerPreview>span[id="lobbyPreviewName"]{grid-area:name;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:19px;font-weight:900}.lobbyPlayerPreview>.ratingLine{grid-area:rating}.lobbyPlayerPreview>.titleBanner{grid-area:title;margin-top:8px}.lobbyPlayerPreview.characterProfile>span[id="lobbyPreviewName"],.lobbyPlayerPreview.characterProfile>.ratingLine{position:relative;z-index:1;max-width:62%;text-shadow:0 1px 2px #fff,0 0 5px #fff}.lobbyPlayerPreview>span.sevenStars{width:190px;max-width:72%;padding:14px 34px 7px;text-align:center;background:url('/effect-seven-stars.svg') center/100% 100% no-repeat;text-shadow:0 1px 3px #5d4300}html[data-theme="dark"] .lobbyPlayerPreview.characterProfile>span[id="lobbyPreviewName"],html[data-theme="dark"] .lobbyPlayerPreview.characterProfile>.ratingLine{text-shadow:0 1px 2px #000,0 0 5px #000}
.gachaMenuButton{background:linear-gradient(135deg,#7d4bd4,#d451b0)!important;color:#fff!important}.gachaShell{width:min(1120px,calc(100% - 24px));margin:24px auto;padding:clamp(16px,3vw,32px);border-radius:24px;background:radial-gradient(circle at 85% 0,#7d4bd455,transparent 38%),var(--card);box-shadow:0 24px 80px #0003}.gachaHeader{display:flex;justify-content:space-between;align-items:start;gap:16px}.gachaHeader h1{margin:2px 0;font-size:clamp(28px,5vw,48px)}.gachaHeader p{margin:6px 0;color:var(--muted)}.gachaWallet{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;margin:22px 0;padding:16px 20px;border-radius:17px;background:linear-gradient(135deg,#2d2144,#533370);color:#fff}.gachaWallet strong{font-size:30px;color:#ffe76a}.gachaWallet small{text-align:right}.gachaRates{display:flex;gap:7px;flex-wrap:wrap}.gachaRates span{padding:7px 10px;border-radius:99px;background:#ece6f5;font-size:12px;color:#37234d}.gachaRates b{color:#7d2aaa}.gachaResult{display:flex;gap:10px;overflow:auto;min-height:110px;margin:18px 0;padding:13px;border:2px dashed #a482c9;border-radius:16px;align-items:center}.gachaResult>p{width:100%;text-align:center;color:var(--muted)}.gachaReveal{flex:0 0 150px;overflow:hidden;border-radius:13px;background:#2d2144;color:#fff;box-shadow:0 8px 22px #0004}.gachaReveal img{display:block;width:100%;height:88px;object-fit:cover;object-position:right center}.gachaReveal div{padding:8px}.gachaReveal small,.gachaReveal strong{display:block}.gachaReveal small{font-size:9px;color:#ffe76a}.gachaActions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.gachaActions button{min-height:66px;font-size:20px}.gachaActions button small{display:block;font-size:12px}.gachaTen{background:linear-gradient(135deg,#7d4bd4,#d451b0)!important;color:#fff!important}.gachaCollection{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}.gachaCharacter{overflow:hidden;border:1px solid #d3c8dd;border-radius:13px;background:var(--card)}.gachaCharacter img{display:block;width:100%;height:92px;object-fit:cover;object-position:right center}.gachaCharacter strong,.gachaCharacter small{display:block;padding:6px 9px}.gachaCharacter small{padding-top:0;color:var(--muted)}.gachaCharacter.locked img{filter:grayscale(1) brightness(.16)}.gachaCharacter.unlocked{outline:2px solid #9a66d7}html[data-theme="dark"] .gachaRates span{background:#312641;color:#f4eaff}html[data-theme="dark"] .gachaRates b{color:#e5a8ff}@media(max-width:560px){.gachaHeader{display:grid}.gachaHeader button{order:-1;justify-self:end}.gachaWallet{grid-template-columns:1fr auto}.gachaWallet small{grid-column:1/-1;text-align:left}.gachaActions{grid-template-columns:1fr}.gachaCollection{grid-template-columns:repeat(2,1fr)}}
html[data-theme="dark"] .player.characterProfile{background-color:#18231e;background-image:linear-gradient(90deg,#18231ef2 0%,#18231ecc 28%,#18231e66 48%,transparent 66%),var(--profile-character);background-position:center,right center;background-size:100% 100%,auto 100%;background-repeat:no-repeat}html[data-theme="dark"] .player.characterProfile::after{opacity:1}html[data-theme="dark"] .lobbyPlayerPreview.characterProfile{border:1px solid #61756a;box-shadow:inset 0 0 0 1px #ffffff18,0 8px 24px #0005}
.bgmToggle{padding:8px 12px;white-space:nowrap;border:1px solid color-mix(in srgb,var(--ink) 22%,transparent);background:var(--card);color:var(--ink)}.bgmToggle[aria-pressed="true"]{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--lime) 70%,transparent)}
.bgmVolumeControl{display:flex;align-items:center;gap:7px;margin:0;padding:6px 9px;border-radius:11px;background:var(--card);color:var(--ink);font-size:12px;font-weight:700}.bgmVolumeControl span{white-space:nowrap}.bgmVolumeControl input{width:105px;margin:0;padding:0;accent-color:var(--lime)}@media(max-width:620px){header{flex-wrap:wrap}.bgmVolumeControl{order:3;width:100%;justify-content:flex-end}.bgmVolumeControl input{width:min(48vw,180px)}}
.player.characterProfile{position:relative;isolation:isolate;min-height:122px;background-color:#eee9dd;background-image:linear-gradient(90deg,#eee9dd 0%,#eee9dd 45%,#eee9dd88 65%,transparent 82%),var(--profile-character);background-position:center,right center;background-size:100% 100%,auto 100%;background-repeat:no-repeat}.player.characterProfile>*{position:relative;z-index:1}.player.characterProfile>span[id^="n"],.player.characterProfile>.ratingLine,.player.characterProfile>.pushState{max-width:62%;text-shadow:0 1px 2px #fff,0 0 5px #fff}html[data-theme="dark"] .player.characterProfile{background-color:#18231e;background-image:linear-gradient(90deg,#18231ef2 0%,#18231ecc 28%,#18231e66 48%,transparent 66%),var(--profile-character);background-position:center,right center;background-size:100% 100%,auto 100%;background-repeat:no-repeat}html[data-theme="dark"] .player.characterProfile>span[id^="n"],html[data-theme="dark"] .player.characterProfile>.ratingLine,html[data-theme="dark"] .player.characterProfile>.pushState{text-shadow:0 1px 2px #000,0 0 5px #000}
.assistCard{display:grid;gap:9px}.assistCard[hidden]{display:none}.assistCard>p{min-height:38px;margin:0;padding:8px 10px;border-radius:9px;background:#eef4f0;color:#294036;font-size:12px;line-height:1.45}.assistActions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.assistActions button{min-width:0;padding:9px 5px;font-size:12px}.assistActions small{display:block;margin-top:3px;font-size:10px}.assistActions button:first-child{background:#ffe4a8;color:#593a00}.assistActions button:last-child{background:#bff4ff;color:#064e5c}html[data-theme="dark"] .assistCard>p{background:#203129;color:#eaf2ed}@media(max-width:430px){.assistActions{grid-template-columns:1fr}}
.gameDetails{padding:10px!important}.gameDetailTabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.gameDetailTabs button{min-width:0;padding:9px 4px;border:1px solid #cad4ce;border-radius:9px;background:#eef1ef;color:#415148;font-size:12px;font-weight:900}.gameDetailTabs button[aria-selected="true"]{background:var(--lime);color:#14241c;border-color:#91b822}.gameDetailPanel{min-height:138px;padding-top:8px}.gameDetailPanel[hidden]{display:none}.gameDetailPanel .nextPieceBox{margin:0;padding:6px}.gameDetailPanel .nextPieceBox .nextPiece{width:60px;height:60px;grid-template-columns:repeat(4,15px);grid-template-rows:repeat(4,15px)}.assistTabContent{display:grid;gap:8px}.assistTabContent[hidden]{display:none}.assistTabContent>p{min-height:34px;margin:0;padding:7px 9px;border-radius:8px;background:#eef4f0;color:#294036;font-size:12px}.detailInfo{align-content:start}.detailInfo p{margin:5px 0 10px;color:var(--muted);font-size:12px}.detailInfoActions{display:grid;grid-template-columns:1fr;gap:7px}.detailInfoActions button{width:100%}html[data-theme="dark"] .gameDetailTabs button{border-color:#52685d;background:#26382f;color:#edf5f0}html[data-theme="dark"] .gameDetailTabs button[aria-selected="true"]{background:var(--lime);color:#14241c}html[data-theme="dark"] .assistTabContent>p{background:#203129;color:#eaf2ed}@media(max-width:430px){.gameDetailTabs button{font-size:11px}.gameDetailPanel{min-height:128px}}
.gameDetailPanel .pushBox{margin:0;padding:0;border-top:0}.panel>.card>.nextPieceBox{margin:10px 0 0;padding:6px}.panel>.card>.nextPieceBox .nextPiece{width:60px;height:60px;grid-template-columns:repeat(4,15px);grid-template-rows:repeat(4,15px)}
.drunkPanel{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:9px}.drunkPanel[hidden]{display:none}.drunkPanel>div{min-width:0;padding:8px;border:1px solid #d6c295;border-radius:10px;background:#fff4d4}.drunkPanel small,.drunkPanel strong{display:block}.drunkPanel small{font-size:9px;color:#725b25}.drunkPanel strong{margin:2px 0;font-size:12px}.drunkPanel p{min-height:32px;margin:3px 0;font-size:10px;line-height:1.4}.drunkPanel button{width:100%;padding:7px;font-size:11px;background:#ff9d38;color:#301600}html[data-theme="dark"] .drunkPanel>div{border-color:#806532;background:#382c17;color:#fff3d1}html[data-theme="dark"] .drunkPanel small{color:#e8ca85}@media(max-width:430px){.drunkPanel{grid-template-columns:1fr}.drunkPanel>div:last-child{display:none}}
.lobbyModeTabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 14px;padding:6px;border-radius:15px;background:#ded9cc}.lobbyModeTabs button{padding:11px;border-radius:10px}.lobbyModeTabs button[data-lobby-mode="normal"]{background:#f8f5ed}.lobbyModeTabs button[data-lobby-mode="drunk"]{background:linear-gradient(135deg,#ffb13b,#e05a38);color:#301607}#drunkLobby{padding:clamp(12px,2vw,22px);border-radius:24px;background:linear-gradient(90deg,#170b05a8,#2a160d75 48%,#120b09a8),url('/backgrounds/drunk-izakaya-v1.png?v=104') center/cover no-repeat;box-shadow:inset 0 0 0 1px #ffcc7b45,0 20px 55px #12090555}#drunkLobby>.lobbyModeTabs{background:#20120dcc;backdrop-filter:blur(8px)}#drunkLobby>.lobbyModeTabs button[data-lobby-mode="normal"]{background:#fff8eb;color:#4b2a17}.drunkLobbyShell{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr);gap:16px}.drunkHero,.drunkAbilityCatalog{padding:clamp(18px,3vw,30px);border-radius:22px;backdrop-filter:blur(10px)}.drunkHero{background:radial-gradient(circle at 90% 0,#ffdc6d55,transparent 35%),#29180be8;color:#fff;border:1px solid #f3b85b45}.drunkHero>span,.drunkAbilityCatalog>div:first-child>span{color:#ffc249;font-size:11px;font-weight:900;letter-spacing:.14em}.drunkHero h1{margin:8px 0;font-size:clamp(38px,6vw,64px)}.drunkHero p{color:#f1dfcd;line-height:1.7}.drunkHero label{font-weight:800}.drunkHero select{padding:11px;border-radius:10px}.drunkMatchButtons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.drunkMatchButtons button:first-child{grid-column:1/-1}.drunkPrivate{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin-top:12px}.drunkPrivate input{min-width:0}.drunkAbilityCatalog{background:#fffaf0e8;box-shadow:0 18px 55px #160b075c}.drunkAbilityCatalog h2{margin:5px 0}.drunkAbilityCatalog p{margin:3px 0 14px;color:var(--muted)}.drunkAbilityGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:610px;overflow:auto}.drunkAbilityGrid article{padding:10px;border:1px solid #e2c995;border-radius:11px;background:#fff8e8}.drunkAbilityGrid strong,.drunkAbilityGrid small{display:block}.drunkAbilityGrid strong{font-size:12px}.drunkAbilityGrid small{margin-top:4px;color:#745c36;font-size:10px;line-height:1.4}html[data-theme="dark"] .lobbyModeTabs{background:#1a2a22}html[data-theme="dark"] .lobbyModeTabs button[data-lobby-mode="normal"]{background:#26382f;color:#fff}html[data-theme="dark"] .drunkAbilityCatalog{background:#21160ee8;color:#fff3db}html[data-theme="dark"] .drunkAbilityGrid article{border-color:#6f552d;background:#302516;color:#fff3db}html[data-theme="dark"] .drunkAbilityGrid small{color:#d8bd91}@media(max-width:820px){.drunkLobbyShell{grid-template-columns:1fr}.drunkAbilityGrid{max-height:none}}@media(max-width:520px){#drunkLobby{padding:8px;border-radius:16px;background-position:62% center}.drunkAbilityGrid{grid-template-columns:1fr 1fr}.drunkMatchButtons,.drunkPrivate{grid-template-columns:1fr}.drunkMatchButtons button:first-child{grid-column:auto}}
html.nativeApp body{padding-top:env(safe-area-inset-top);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom);padding-left:env(safe-area-inset-left);overscroll-behavior:none}html.nativeApp .app{min-height:100dvh}html.nativeApp button{-webkit-tap-highlight-color:transparent;user-select:none}
.touhouGachaButton{background:linear-gradient(135deg,#d7194a,#711c91);color:#fff}.touhouGachaShell{background:radial-gradient(circle at 85% 10%,#6c1a7666,transparent 34%),linear-gradient(145deg,#fff9f4,#f8edf8)}.touhouGachaShell .gachaHeader small{color:#a31245;font-weight:900;letter-spacing:.12em}.touhouNotice{margin:14px 0 20px;padding:14px 16px;border:1px solid #d9a8c4;border-radius:14px;background:#fff9fc;color:#4e2940}.touhouNotice p{margin:5px 0 0;font-size:13px;line-height:1.65}.touhouCredit{font-size:11px;line-height:1.6;max-width:760px;margin:12px 0 0}.touhouGachaShell .gachaCharacter.unlocked{box-shadow:inset 0 0 0 2px #be326d,0 9px 25px #7d19441f}.touhouGachaShell .gachaReveal{background:linear-gradient(135deg,#fff,#fae3ef)}html[data-theme="dark"] .touhouGachaShell{background:radial-gradient(circle at 85% 10%,#7c246855,transparent 34%),linear-gradient(145deg,#22171f,#17131d)}html[data-theme="dark"] .touhouNotice{border-color:#77425f;background:#2b1924;color:#f8eaf2}
