@font-face{font-family:Club;src:local('Avenir Next');font-display:swap}
:root{--ink:#263c32;--muted:#778079;--paper:#fafbf6;--yellow:#f5c936;--line:#dce2d8;--green:#254f3c;--radius:24px;font-family:Club,'Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #217ab1;outline-offset:4px}button{border:0}a{color:inherit}h1,h2,h3,p{margin:0}button{color:var(--ink)}
.topbar{height:100px;max-width:1376px;margin:auto;padding:0 56px;display:flex;align-items:center;gap:24px}.wordmark{font-size:20px;font-weight:900;letter-spacing:.015em;display:flex;align-items:center;gap:8px;text-decoration:none}.brand-icon{font-size:32px;line-height:1}.brand-club{font-size:10px;letter-spacing:.12em;writing-mode:vertical-rl}.top-note{font-size:13px;margin-left:auto;color:#6e786f;letter-spacing:.08em}.icon-button{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:transparent;font-size:23px}.icon-button:hover{background:#eaf0e5}#app{max-width:1264px;margin:12px auto 0;padding:0 0}.home-card{display:grid;grid-template-columns:44% 56%;border:1px solid var(--line);border-radius:28px;overflow:hidden;background:#fff;min-height:630px}.home-info{padding:43px 48px;display:flex;flex-direction:column;align-items:flex-start}.eyebrow{font-size:13px;letter-spacing:.15em;font-weight:800;display:flex;align-items:center;gap:10px}.eyebrow:before{content:'';width:19px;height:2px;background:currentColor}.home-info h1{font-size:clamp(52px,5.2vw,76px);letter-spacing:-.07em;line-height:1.2;margin:25px 0 20px;font-weight:900}.home-info h1 span{display:block}.title-dot{color:#be8612}.lead{font-size:16px;line-height:1.95;letter-spacing:.04em}.home-controls{width:100%;margin-top:auto;padding-top:30px}.primary{background:var(--green);color:white;min-height:58px;border-radius:14px;padding:16px 22px;font-weight:800;font-size:17px;display:flex;align-items:center;justify-content:center;gap:12px;width:100%;box-shadow:0 4px 0 #163e2a;transition:transform .15s,background .15s}.primary:hover{background:#346447;transform:translateY(-2px)}.primary:active{transform:translateY(2px);box-shadow:0 1px 0 #163e2a}.primary .arrow{margin-left:auto;font-size:23px}.button-pair{display:flex;gap:12px;margin-top:16px}.secondary{min-height:50px;background:#f5f7f0;border:1px solid #e1e6db;border-radius:12px;padding:12px 16px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:14px;flex:1}.secondary:hover{background:#e9efdf}.text-button{background:transparent;min-height:44px;padding:10px;color:#657366;font-size:14px;text-decoration:underline;text-underline-offset:4px}.records-button{display:block;margin:13px auto -8px}.home-scene{background:var(--yellow);position:relative;min-height:630px;overflow:hidden}.scene-host{position:absolute;inset:0;touch-action:none}.scene-host canvas{display:block;width:100%;height:100%}.scene-header{position:absolute;left:28px;right:28px;top:25px;display:flex;justify-content:space-between;pointer-events:none;font-size:12px;letter-spacing:.12em;font-weight:700;color:#6d6127}.scene-number{font-size:28px;font-weight:500;line-height:1}.scene-label{position:absolute;bottom:30px;left:30px;font-size:13px;letter-spacing:.06em;background:#fff6d4bd;padding:12px 17px;border-radius:30px;pointer-events:none}.round-stamp{position:absolute;right:25px;bottom:28px;width:103px;height:103px;border:1px solid #85731f;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(12deg);color:#514b26;background:#f9d85a;pointer-events:none}.round-stamp strong{font-size:33px;line-height:1.1}.round-stamp span{font-size:11px;letter-spacing:.12em}.how-strip{display:flex;gap:35px;padding:27px 9px 20px;align-items:center}.how-title{font-size:12px;letter-spacing:.18em;white-space:nowrap;color:#6d776d;margin-right:15px}.how-step{display:flex;align-items:center;gap:12px;font-size:13px;line-height:1.6;flex:1}.step-number{font-size:13px;width:28px;height:28px;border-radius:50%;background:#e9ede1;display:grid;place-items:center;flex-shrink:0}.how-step strong{font-weight:700}.site-footer{display:flex;justify-content:space-between;max-width:1264px;margin:30px auto 0;padding:18px 0 28px;border-top:1px solid var(--line);font-size:11px;letter-spacing:.08em;color:#8b9286}.boot{min-height:600px;display:grid;place-content:center;gap:20px;text-align:center}.page-top{display:flex;align-items:center;gap:16px;margin-bottom:20px}.page-top h2{font-size:24px}.page-top .tag{margin-left:auto}.tag{font-size:12px;background:#e9edde;padding:7px 12px;border-radius:30px;font-weight:700;white-space:nowrap}.setup-layout{display:grid;grid-template-columns:1fr 1fr;gap:40px;background:white;border:1px solid var(--line);border-radius:24px;padding:36px}.setup-copy h2{font-size:32px;line-height:1.5;margin-bottom:17px}.setup-copy p{line-height:1.85;margin:10px 0}.instruction-list{display:grid;gap:15px;margin:25px 0}.instruction{display:flex;align-items:center;gap:14px;background:#f7f8f2;border-radius:12px;padding:14px}.instruction b{width:32px;height:32px;border-radius:50%;background:var(--yellow);display:grid;place-items:center;flex-shrink:0}.small{font-size:13px;color:#72806e;line-height:1.7}.setup-panel{padding:24px;border:1px solid var(--line);border-radius:18px}.field-label{display:block;font-weight:700;font-size:14px;margin-bottom:12px}.segmented{display:flex;gap:6px;background:#edf0e7;padding:5px;border-radius:12px;margin-bottom:22px}.segmented button{flex:1;padding:13px 6px;min-height:46px;background:transparent;border-radius:9px;font-size:14px;font-weight:700}.segmented button[aria-pressed=true]{background:white;box-shadow:0 2px 5px #263c3210}.sensitivity{display:flex;align-items:center;gap:15px;margin-bottom:20px}.sensitivity input{flex:1;accent-color:var(--green);min-height:44px;width:100%}.sensitivity output{font-size:14px;white-space:nowrap}.calibration-status{min-height:46px;text-align:center;font-size:14px;margin-bottom:14px;line-height:1.6}.control-pad{position:relative;width:200px;height:200px;margin:14px auto 16px;border:2px solid #ced5c4;border-radius:50%;background:radial-gradient(circle at center,transparent 0 31%,#dfe5d6 31.5% 32%,transparent 32.5% 65%,#dfe5d6 65.5% 66%,transparent 66.5%),#f5f7ec;touch-action:none;cursor:crosshair;user-select:none;outline-offset:6px}.control-pad:before,.control-pad:after{content:'';position:absolute;background:#d6ddcd;pointer-events:none}.control-pad:before{width:1px;top:12px;bottom:12px;left:50%}.control-pad:after{height:1px;left:12px;right:12px;top:50%}.pad-dot{position:absolute;left:50%;top:50%;width:20px;height:20px;border:3px solid white;background:var(--green);border-radius:50%;box-shadow:0 1px 5px #263c3240;z-index:2;transform:translate(-50%,-50%);pointer-events:none}.pad-target{position:absolute;left:83%;top:50%;width:28px;height:28px;border:2px dashed #bda32d;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}.pad-label{position:absolute;font-size:11px;color:#7a8476;pointer-events:none}.pad-label.n{top:8px;left:calc(50% - 5px)}.pad-label.s{bottom:8px;left:calc(50% - 11px)}.pad-label.e{right:9px;top:calc(50% - 8px)}.pad-label.w{left:9px;top:calc(50% - 8px)}.pad-help{font-size:12px;text-align:center;color:#778371;margin-bottom:20px}.notice{border-radius:12px;padding:13px 16px;background:#fff7d9;font-size:13px;line-height:1.7}.game-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);border-radius:24px;border:1px solid var(--line);overflow:hidden;background:#fff;min-height:590px}.game-stage{position:relative;min-height:590px;background:var(--yellow)}.game-panel{display:flex;flex-direction:column;align-items:center;padding:28px 28px 24px}.phase-label{font-size:14px;font-weight:700;letter-spacing:.1em}.timer{font-size:76px;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-.07em;font-weight:700;margin-top:10px}.timer small{font-size:20px;letter-spacing:0;margin-left:7px}.time-track{width:100%;height:5px;background:#edf0e5;border-radius:10px;margin:20px 0}.time-fill{height:100%;background:var(--green);border-radius:10px;width:100%}.phase-hint{text-align:center;font-size:17px;line-height:1.7;font-weight:700;min-height:54px}.game-panel .control-pad{margin:24px auto 12px}.stop{margin-top:auto}.countdown-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;pointer-events:none}.countdown-number{font-size:110px;color:#fff;font-weight:900;text-shadow:0 4px 20px #24412b40}.countdown-caption{background:#ffffffd9;border-radius:30px;padding:10px 20px;font-size:14px}.hidden-badge{position:absolute;top:24px;left:24px;background:#ffffffd9;border-radius:30px;font-size:13px;padding:11px 16px}.stage-caption{position:absolute;left:20px;right:20px;bottom:24px;text-align:center;font-size:14px;line-height:1.7;color:#34573b}.practice-badge{background:#eaf6dc}.result-title{font-size:13px;letter-spacing:.15em;margin-bottom:7px}.score{font-size:87px;font-weight:800;letter-spacing:-.06em;line-height:1.05;font-variant-numeric:tabular-nums}.score small{font-size:20px;letter-spacing:0;font-weight:600}.result-name{font-size:24px;font-weight:800;margin-top:13px}.result-meta{font-size:13px;color:var(--muted);margin-top:10px}.score-breakdown{width:100%;display:grid;gap:13px;margin:27px 0 20px}.score-row{display:grid;grid-template-columns:58px 1fr 62px;gap:12px;align-items:center;font-size:13px}.score-row span:last-child{text-align:right;font-variant-numeric:tabular-nums}.score-bar{height:6px;background:#edf0e7;border-radius:5px;overflow:hidden}.score-bar i{height:100%;display:block;background:#dfb627;border-radius:5px}.score-row:nth-child(2) i{background:#72997b}.score-row:nth-child(3) i{background:#9da9c1}.score-row:nth-child(4) i{background:#cd8c57}.result-hint{font-size:13px;line-height:1.75;width:100%;background:#f1f5e9;padding:13px 16px;border-radius:12px;margin-bottom:18px}.result-actions{width:100%;margin-top:auto}.result-actions .button-pair{margin-top:12px}.result-actions .text-button{display:block;margin:auto}.orbit-controls{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);display:flex;gap:12px;align-items:center;white-space:nowrap;font-size:12px}.orbit-controls button{border-radius:50%;height:44px;width:44px;background:#fff9ddc9;font-size:22px}.orbit-controls span{background:#fff9ddc9;padding:9px 13px;border-radius:30px}.new-best{position:absolute;top:26px;left:26px;background:var(--green);color:white;transform:rotate(-5deg);padding:11px 18px;border-radius:5px;font-size:14px;font-weight:700}.records-layout{background:#fff;border:1px solid var(--line);border-radius:24px;padding:32px}.best-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:30px}.best-card{padding:24px;border-radius:16px;background:#f2f5e9;display:flex;gap:10px;align-items:center;justify-content:space-between}.best-card h3{font-size:14px;margin-bottom:8px}.best-card strong{font-size:35px}.best-card small{font-size:14px}.history-row{display:flex;align-items:center;gap:20px;padding:19px 0;border-bottom:1px solid var(--line)}.history-row strong{font-size:25px;width:75px}.history-row .small{margin-left:auto}.empty{text-align:center;padding:42px 15px;color:#76816e;line-height:1.9}.match-count{display:flex;gap:10px;margin:20px 0}.match-count button{width:48px;height:48px;border:1px solid var(--line);border-radius:10px;background:white;font-weight:700}.match-count button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.match-intro{max-width:670px;margin:auto;padding:36px;background:#fff;border-radius:24px;border:1px solid var(--line)}.match-intro h2{font-size:28px;margin-bottom:14px}.match-intro p{line-height:1.8}.rank-row{display:flex;align-items:center;gap:18px;padding:23px 15px;border-bottom:1px solid var(--line)}.rank-row:first-child{background:#fff4cc;border-radius:12px}.rank-row .rank{font-size:24px;width:36px}.rank-row strong{margin-left:auto;font-size:30px}.rank-row small{font-size:13px}.rankings{margin:24px 0}.match-result-actions{display:flex;gap:12px;margin-top:20px}.match-result-actions>*{flex:1}
dialog{border:1px solid var(--line);border-radius:22px;max-width:520px;width:calc(100% - 32px);padding:26px;color:var(--ink);background:#fff;max-height:90dvh;overflow:auto}dialog::backdrop{background:#182b24a6;backdrop-filter:blur(5px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.modal-head h2{font-size:23px}.setting-row{display:flex;align-items:center;justify-content:space-between;padding:17px 0;border-bottom:1px solid var(--line);gap:20px}.setting-row label{font-size:15px;font-weight:600}.setting-row input[type=checkbox]{width:40px;height:24px;accent-color:var(--green);cursor:pointer}.setting-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.danger{color:#a34232}.settings-note{font-size:12px;line-height:1.8;color:#7b8378;margin-top:20px}.share-preview{width:100%;max-height:55vh;object-fit:contain;border-radius:14px;background:#f5c936;margin-bottom:16px}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;max-width:calc(100% - 32px);width:max-content;background:var(--green);color:#fff;padding:14px 20px;border-radius:12px;box-shadow:0 8px 25px #20352326;font-size:14px;transition:.2s;z-index:20}#toast.show{transform:translate(-50%,0);opacity:1}.error-state{padding:50px 25px;text-align:center;line-height:1.9}.error-state h2{margin-bottom:16px}
@media(min-width:1440px){#app{margin-top:32px}.home-card{min-height:680px}.home-scene{min-height:680px}.home-info{padding:50px 56px}.home-info h1{margin-top:30px}}
@media(max-width:1340px){#app,.site-footer{margin-left:32px;margin-right:32px}.topbar{padding:0 32px}}
@media(max-width:1000px){.home-info{padding:30px}.home-info h1{font-size:60px}.home-card{grid-template-columns:46% 54%;min-height:590px}.home-scene{min-height:590px}.how-strip{gap:15px}.how-title{display:none}.topbar{height:85px}.setup-layout{gap:24px;padding:25px}.game-layout{grid-template-columns:minmax(0,1.15fr) minmax(300px,1fr)}}
@media(max-width:700px){.topbar{height:74px;padding:0 20px;gap:12px}.wordmark{font-size:17px}.brand-icon{font-size:28px}.top-note{display:none}.topbar .icon-button{margin-left:auto}#app{margin:5px 16px 0}.home-card{display:flex;flex-direction:column-reverse;border-radius:22px;min-height:0}.home-scene{min-height:0;height:310px}.home-info{padding:24px}.eyebrow{font-size:11px}.home-info h1{font-size:48px;line-height:1.13;margin:14px 0 14px;letter-spacing:-.075em}.home-info h1 span{display:inline}.home-info h1 span:last-child{margin-left:.1em}.lead{font-size:14px;line-height:1.7}.lead br{display:none}.home-controls{padding-top:23px}.home-controls .primary{min-height:56px}.home-controls .button-pair{margin-top:13px}.records-button{margin-top:9px}.scene-header{top:18px;left:20px;right:20px;font-size:10px}.scene-number{font-size:22px}.scene-label{left:17px;bottom:17px;font-size:11px;padding:9px 13px}.round-stamp{width:78px;height:78px;bottom:15px;right:17px}.round-stamp strong{font-size:26px}.round-stamp span{font-size:9px}.how-strip{padding:23px 3px 5px;gap:12px;align-items:flex-start}.how-step{flex-direction:column;align-items:flex-start;gap:8px;font-size:11px}.step-number{width:25px;height:25px;font-size:11px}.site-footer{margin:22px 18px 0;padding-bottom:calc(20px + env(safe-area-inset-bottom));font-size:9px;gap:10px}.page-top{gap:10px;margin:6px 0 15px}.page-top h2{font-size:20px}.page-top .tag{font-size:11px;padding:6px 9px}.setup-layout{display:flex;flex-direction:column;gap:18px;padding:20px}.setup-copy h2{font-size:25px;margin-bottom:10px}.setup-copy p{font-size:14px}.instruction-list{gap:8px;margin:16px 0}.instruction{padding:10px;font-size:13px}.instruction b{width:26px;height:26px}.setup-panel{padding:18px}.setup-copy .notice{display:none}.control-pad{width:180px;height:180px}.game-layout{display:flex;flex-direction:column;min-height:0}.game-stage{height:300px;min-height:0}.game-panel{padding:22px}.game-layout.play-layout{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(150px,29dvh) auto}.play-layout .game-stage{height:auto;min-height:170px}.play-layout .game-panel{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;align-items:center;padding:18px}.play-layout .phase-label{grid-column:1;font-size:13px}.play-layout .timer{grid-column:1;font-size:58px;margin-top:0;grid-row:2}.play-layout .time-track{grid-column:1;margin:11px 0}.play-layout .phase-hint{grid-column:1;font-size:13px;grid-row:4;min-height:0}.play-layout .control-pad{grid-column:2;grid-row:1/5;width:150px;height:150px;margin:0 auto}.play-layout .pad-help{grid-column:2;font-size:10px;margin:6px 0}.play-layout .stop{grid-column:1/3;justify-self:center;margin-top:8px}.play-layout .pad-label{font-size:9px}.timer small{font-size:16px}.hidden-badge{top:15px;left:15px;font-size:11px;padding:8px 12px}.stage-caption{font-size:12px;bottom:14px}.countdown-number{font-size:76px}.countdown-caption{font-size:12px}.score{font-size:70px}.result-name{font-size:22px}.score-breakdown{margin:23px 0 17px}.result-hint{margin-bottom:17px}.orbit-controls{bottom:16px}.best-grid{gap:12px}.best-card{padding:17px;flex-direction:column;align-items:flex-start}.best-card strong{font-size:28px}.best-card .secondary{width:100%;font-size:12px;padding:8px}.records-layout{padding:20px}.history-row{gap:12px}.history-row strong{font-size:22px;width:60px}.history-row .small{font-size:10px}.history-row span{font-size:13px}.match-intro{padding:24px}.match-result-actions{flex-direction:column}.new-best{top:18px;left:18px;font-size:12px}.settings-note{font-size:12px}}
@media(max-width:370px){.home-info h1{font-size:41px}.home-info{padding:20px}.home-scene{height:260px}.play-layout .control-pad{width:132px;height:132px}.play-layout .game-panel{padding:15px;gap:0 10px}.secondary{font-size:12px;padding:10px}.scene-label{max-width:190px}.round-stamp{width:67px;height:67px}.topbar{padding:0 16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.home-info h1 .title-dot{display:inline}

/* Preparation starts with a choice; controls appear only after selection. */
.setup-choice{display:flex;flex-direction:column;justify-content:center;gap:18px;background:#f7f9f1;align-self:center;width:100%}.setup-choice h3{font-size:27px}.input-choices{display:grid;gap:16px;margin:10px 0}.input-choices .secondary{min-height:58px;font-size:16px;background:white}.adjust-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}.adjust-heading .text-button{font-size:12px;padding:8px 0}.setup-panel h3{line-height:1.5}.adjust-note{margin:12px 0 20px}.tilt-guide{display:flex;align-items:center;flex-direction:column;gap:15px;background:#f5f7ec;border-radius:16px;padding:22px;margin:18px 0 14px;font-size:13px;color:#657366}.tilt-phone{display:grid;place-items:center;border:3px solid #72997b;border-radius:12px;width:54px;height:82px;font-size:30px;color:var(--green);transform:rotate(-10deg)}.share-x{text-decoration:none;background:#263c32;color:white;border-color:#263c32}.share-x:hover{background:#365545}.result-links{display:flex;justify-content:center;gap:12px;margin-top:7px}.result-actions .result-links .text-button{margin:0}.share-preview~.button-pair>*{flex:1;width:auto;min-width:0;font-size:14px}
@media(max-width:700px){.setup-choice{gap:14px}.setup-choice h3{font-size:23px}.play-layout .game-stage{min-height:220px}.play-layout{grid-template-rows:minmax(220px,33dvh) auto!important}}

.control-pad.tilt-indicator{cursor:default}.best-grid>.best-card:only-child{grid-column:1/-1}

.result-ranking{width:100%;border:1px solid #dfca79;background:#fffaf0;border-radius:16px;padding:18px;margin:0 0 20px}.ranking-status{font-size:14px;line-height:1.75}.result-ranking>.secondary,.result-ranking>.text-button{margin-top:12px}.ranking-form-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.ranking-form-heading>strong{font-size:28px;white-space:nowrap}.ranking-form-heading strong small{font-size:12px;font-weight:500}.ranking-form-heading .tag{font-size:12px;background:#f5df89}.registration-preview{display:flex;align-items:center;gap:16px;margin-bottom:18px}.registration-preview img{border-radius:12px;object-fit:cover;flex-shrink:0}.registration-preview p{font-size:14px;line-height:1.8}.registration-preview strong{font-size:30px}.registration-preview small{font-size:14px;margin-left:3px}.ranking-entry-form input{width:100%;min-height:48px;border:1px solid #b6c4b2;border-radius:10px;background:#fff;padding:11px 13px;font-size:16px;color:var(--ink)}.registration-note{font-size:12px;line-height:1.7;margin-top:10px;color:#6a766a}.registration-error{font-size:13px;line-height:1.6;color:#a34232;margin:10px 0}.registration-error:empty{margin:12px 0 0}.ranking-entry-form .primary{font-size:14px;min-height:52px;margin-top:13px;padding:13px 10px}.ranking-registered{text-align:center}.ranking-registered>p{margin-top:12px;font-size:14px}.ranking-registered .registered-rank{font-size:48px;font-weight:800;line-height:1.2;margin-bottom:16px}.registered-rank small{font-size:18px}.leaderboard-layout{background:#fff;border:1px solid var(--line);border-radius:24px;padding:32px}.leaderboard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.leaderboard-toolbar h2{font-size:28px;margin:12px 0 10px}.leaderboard-toolbar>.secondary{flex:0 0 auto;min-width:80px}.leaderboard-mine:not(:empty){display:flex;align-items:center;justify-content:space-between;gap:15px;background:#eef4e6;border:1px solid #c9d8bb;border-radius:14px;padding:16px 20px;margin-bottom:24px}.leaderboard-mine p{line-height:1.8;margin-top:5px}.leaderboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.leaderboard-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff}.leaderboard-card.is-mine{border-color:#3c6b44;box-shadow:0 0 0 1px #3c6b44}.leaderboard-image{display:block;position:relative;width:100%;padding:0;background:var(--yellow);aspect-ratio:4/3;overflow:hidden}.leaderboard-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}.leaderboard-image:hover img{transform:scale(1.04)}.leaderboard-place{position:absolute;top:14px;left:14px;min-width:46px;padding:8px 10px;border-radius:12px;background:#fffdf2e8;font-size:23px;font-weight:800;line-height:1.1}.leaderboard-place small{font-size:12px;margin-left:2px}.leaderboard-place.top-place{background:var(--green);color:#fff}.your-work{position:absolute;bottom:12px;right:12px;background:var(--green);color:#fff;padding:6px 10px;border-radius:20px;font-size:12px}.leaderboard-card-copy{padding:18px}.leaderboard-card h3{font-size:17px;overflow-wrap:anywhere}.leaderboard-points{font-size:37px;font-weight:800;letter-spacing:-.04em;line-height:1.3;margin:8px 0}.leaderboard-points small{font-size:15px;letter-spacing:0;margin-left:4px}.leaderboard-card time{display:block;margin-top:7px;color:#8a9284}.leaderboard-status{text-align:center;font-size:14px;line-height:1.8;margin:26px 0 18px}.leaderboard-more{margin:0 auto 24px;width:200px}.leaderboard-more[hidden]{display:none}.leaderboard-play{max-width:420px;margin:0 auto}.leaderboard-note{max-width:650px;text-align:center;margin:24px auto 0}.ranking-image-large{width:100%;display:block;border-radius:16px;background:var(--yellow)}.ranking-image-caption{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:18px 0 10px;line-height:1.6}.ranking-image-caption strong{overflow-wrap:anywhere}.ranking-image-caption span{white-space:nowrap;font-size:14px}
@media(max-width:1000px){.leaderboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}}
@media(max-width:700px){.leaderboard-layout{padding:20px}.leaderboard-toolbar{gap:12px;align-items:flex-start}.leaderboard-toolbar h2{font-size:22px}.leaderboard-grid{gap:12px}.leaderboard-card{border-radius:13px}.leaderboard-card-copy{padding:12px}.leaderboard-card h3{font-size:15px}.leaderboard-points{font-size:29px}.leaderboard-card .small{font-size:12px}.leaderboard-place{top:8px;left:8px;font-size:20px;min-width:38px;padding:7px}.leaderboard-mine:not(:empty){padding:14px;align-items:flex-start;flex-direction:column;gap:4px}.ranking-image-caption{align-items:flex-start;flex-direction:column;gap:5px}.leaderboard-note{font-size:12px}.result-ranking{padding:16px}}
@media(max-width:370px){.leaderboard-grid{grid-template-columns:1fr}.leaderboard-card h3{font-size:17px}.leaderboard-card .small{font-size:13px}.leaderboard-toolbar{flex-wrap:wrap}}

.leaderboard-image img[hidden]{display:none}.leaderboard-image-error{display:block;padding:25px 15px;font-size:13px;line-height:1.8}

.bgm-toggle{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:104px;padding:8px 10px;border:1px solid var(--line);border-radius:22px;background:transparent;font-size:14px;white-space:nowrap;flex-shrink:0;margin-left:auto}.bgm-toggle[aria-pressed=true]{background:#e9efdf;border-color:#bdcdb3}.bgm-toggle>span:last-child{font-size:14px;min-width:28px;font-weight:700}.bgm-toggle:hover{background:#e9efdf}.topbar .icon-button{flex-shrink:0;margin-left:0}.sound-previews{margin-top:22px}.sound-previews .button-pair{margin-top:0}.sound-previews .field-label{margin-bottom:10px}
@media(max-width:700px){.topbar{gap:8px}.bgm-toggle{min-width:98px;padding:8px}.topbar .wordmark{white-space:nowrap}}
@media(max-width:380px){.topbar{padding:0 12px}.topbar .wordmark{font-size:14px;gap:5px}.topbar .brand-icon{font-size:24px}.topbar .brand-club{display:none}.bgm-toggle{min-width:96px}}
