/* 超必殺技！有限スロットルクイズ ゲーム画面・結果画面(タイトル画面と同じ空色基調) */
:root {
    --ink: #0b2540;
    --navy-900: #0d2c4a;
    --navy-800: #123a60;
    --navy-700: #1a4d7e;
    --sky: #7fd3ff;
    --sky-soft: #5fb6e8;
    --cloud: #f1faff;
    --cloud-dim: #c6e2f4;
    --good: #5fd4ff;
    --bad: #ff5a78;
    --panel: rgba(13, 44, 74, 0.82);
    --panel-border: rgba(127, 211, 255, 0.45);
    --sky-shine: linear-gradient(100deg, #9fe4ff, #e3f7ff 20%, #74cdff 45%, #c4efff 70%, #9fe4ff);
    --font-ui: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    --font-display: "Dela Gothic One", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--navy-900);
    color: var(--cloud);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
    color: inherit;
}

[hidden] {
    display: none !important;
}

/* 背景: ランダムな壁紙に紺のグラデーションを重ねて文字を読みやすくする */
.page-bg {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background: #1b5f95 var(--wallpaper) center / cover no-repeat;
}

.page-bg::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background:
        radial-gradient(ellipse 90% 40% at 50% 0%, rgba(127, 211, 255, 0.25), transparent 70%),
        linear-gradient(rgba(8, 36, 64, 0.35), rgba(8, 36, 64, 0.75));
}

/* ---------- 共通部品 ---------- */
.panel {
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    background: var(--panel);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--sky-soft);
    border-radius: 6px;
    background: rgba(18, 58, 96, 0.88);
    color: var(--cloud);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.12s, transform 0.08s;
}

.btn:hover {
    background: var(--navy-700);
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus-visible {
    outline: 2px solid var(--cloud);
    outline-offset: 2px;
}

.btn-primary {
    border-color: rgba(255, 255, 255, 0.75);
    background:
        linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 55%),
        var(--sky-shine);
    background-size: 100% 100%, 200% 100%;
    color: var(--ink);
    box-shadow: 0 2px 0 #1f5f92, 0 0 18px rgba(140, 215, 255, 0.45);
    animation: shimmer 6s linear infinite;
}

.btn-primary:hover {
    filter: brightness(1.06);
    background:
        linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 55%),
        var(--sky-shine);
    background-size: 100% 100%, 200% 100%;
}

@keyframes shimmer {
    from { background-position: 0 0, 0% 0; }
    to { background-position: 0 0, 200% 0; }
}

/* ---------- ゲーム画面 ---------- */
.game {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(100%, 480px);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: max(10px, env(safe-area-inset-top)) 12px 0;
}

/* 上部のWAVE・TIME・SCORE */
.hud {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.hud-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 6px 6px;
    line-height: 1.1;
}

.hud-label {
    color: var(--sky);
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.12em;
}

.hud-value {
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.hud-value small {
    color: var(--cloud-dim);
    font-size: 13px;
}

.hud-time.is-danger {
    border-color: var(--bad);
}

.hud-time.is-danger .hud-label,
.hud-time.is-danger .hud-value {
    color: var(--bad);
}

.hud-time.is-danger .hud-value {
    animation: danger-pulse 1s ease-in-out infinite;
}

@keyframes danger-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* 問題文 */
.question-card {
    padding: 8px 12px;
    text-align: center;
}

.question-label {
    margin: 0;
    color: var(--cloud-dim);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.question {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.question .q-type {
    color: var(--sky);
    font-size: 1.12em;
}

/* 必殺技アイコンが流れるレーン */
.stage {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(127, 211, 255, 0) 0%, rgba(127, 211, 255, 0.12) 50%, rgba(127, 211, 255, 0) 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 28px),
        rgba(13, 44, 74, 0.6);
    box-shadow: inset 0 0 24px rgba(8, 36, 64, 0.6), 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* レーン中央の流れる方向を示すライン */
.stage::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(127, 211, 255, 0.35), transparent);
}

.stage canvas {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(110px, 19dvh, 170px);
    padding: 0;
}

/* 残り時間ゲージ(制限時間で0になり、終盤は赤に変わる) */
.time-gauge {
    height: 8px;
    margin-top: -4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(13, 44, 74, 0.8);
    box-shadow: inset 0 0 0 1px rgba(127, 211, 255, 0.3);
}

.time-gauge-bar {
    height: 100%;
    border-radius: inherit;
    background-color: var(--sky);
    transform-origin: left center;
    transform: scaleX(1);
    transition: background-color 0.3s;
}

.time-gauge-bar.is-danger {
    background-color: var(--bad);
}

/* 選択肢(2列×4行) */
/*
 * 選択肢は画面下のメニューまでの残りの高さを埋める(4行とも同じ高さ)。
 * 縦に長いタブレット・PCで大きくなりすぎないよう、1行は120pxまで
 */
.options {
    flex: 1 1 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 8px;
    max-height: calc(120px * 4 + 8px * 3);
}

.option {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 6px 8px;
    border: 1px solid rgba(127, 211, 255, 0.5);
    border-radius: 8px;
    background: rgba(18, 58, 96, 0.9);
    color: var(--cloud);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    word-break: break-all;
    text-wrap: balance;
    cursor: pointer;
    box-shadow: 0 2px 0 rgba(8, 36, 64, 0.7);
    transition: background-color 0.12s, transform 0.08s, opacity 0.2s;
}

/*
 * 次のWaveでは同じ位置に選択肢を作り直すため、タップ・クリックした位置の選択肢にホバーの色が付いたままになる。
 * Waveが始まってからマウスを動かしたときだけ色を変える(hover-ready はゲーム画面のスクリプトが付ける)
 */
.options.hover-ready .option:hover {
    background: var(--navy-700);
}

.option:active {
    transform: translateY(1px);
}

.option:focus-visible {
    outline: 2px solid var(--cloud);
    outline-offset: 2px;
}

.judging .option {
    pointer-events: none;
    opacity: 0.45;
}

/* アイコンの読み込み待ちの間は押せない */
.waiting .option {
    pointer-events: none;
}

.judging .option.correct,
.judging .option.wrong {
    opacity: 1;
}

.option.correct {
    border-color: #fff;
    background: linear-gradient(#bff0ff, #6fd0ff);
    color: var(--ink);
    box-shadow: 0 0 16px rgba(127, 211, 255, 0.8);
}

.option.wrong {
    border-color: #ffb3c1;
    background: linear-gradient(#ff7d93, #d93a5a);
    color: #fff;
    text-decoration: line-through;
}

/* 正解・不正解の演出(レーンに重ねて表示) */
#judge {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-family: var(--font-display);
    line-height: 1;
    background: rgba(8, 36, 64, 0.45);
}

#judge.show {
    display: flex;
}

#judge.show > div {
    animation: judge-pop 0.35s ease-out;
}

#judge.wrong.show > div {
    animation: judge-pop 0.35s ease-out, judge-shake 0.4s ease-in-out 0.35s;
}

#judge_mark {
    font-size: clamp(56px, 11dvh, 96px);
    -webkit-text-stroke: 3px #fff;
    paint-order: stroke fill;
}

#judge_label {
    margin-top: 4px;
    font-size: clamp(18px, 3.4dvh, 26px);
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

#judge_point {
    margin-top: 6px;
    color: #fff;
    font-size: 16px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

#judge.correct #judge_mark {
    color: var(--good);
    filter: drop-shadow(0 0 12px rgba(127, 211, 255, 0.9));
}

#judge.wrong #judge_mark {
    color: var(--bad);
    filter: drop-shadow(0 0 12px rgba(255, 90, 120, 0.8));
}

@keyframes judge-pop {
    0% { transform: scale(0.3); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes judge-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* プレイ中の操作ボタン(画面下部に固定) */
#game_menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 6;
    display: flex;
    gap: 10px;
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(127, 211, 255, 0.3);
    background: rgba(13, 44, 74, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#game_menu .btn {
    flex: 1;
    min-height: 40px;
    font-size: 14px;
}

/* 固定ボタンに選択肢が隠れないための余白 */
/* 画面下のメニュー(上の線1px + 上下の余白8px + ボタン40px)と同じ高さ */
#game_menu_spacer {
    flex: none;
    height: calc(57px + env(safe-area-inset-bottom));
}

/* ---------- スタート画面・中断メッセージ ---------- */
.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(8, 36, 64, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

#start {
    z-index: 5;
    cursor: pointer;
}

.start-card {
    width: min(100%, 340px);
    padding: 22px 18px 18px;
    text-align: center;
}

.mode-badge {
    display: inline-block;
    padding: 2px 12px;
    border: 1px solid var(--sky-soft);
    border-radius: 999px;
    color: var(--sky);
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.start-title {
    margin: 12px 0 4px;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 400;
    line-height: 1.2;
    background: var(--sky-shine);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 #1f5f92) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
    animation: shimmer-text 4s linear infinite, start-pulse 1.4s ease-in-out infinite;
}

@keyframes shimmer-text {
    from { background-position: 0% 0; }
    to { background-position: 200% 0; }
}

@keyframes start-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.start-rules {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(8, 36, 64, 0.6);
    list-style: none;
    text-align: left;
    font-size: 14px;
}

.start-rules li {
    position: relative;
    padding-left: 16px;
}

.start-rules li + li {
    margin-top: 4px;
}

.start-rules li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sky);
}

.start-note {
    margin: 12px 0 0;
    color: var(--cloud-dim);
    font-size: 12px;
}

#interrupt {
    display: none;
    z-index: 10;
}

#interrupt_box {
    width: min(100%, 340px);
    padding: 20px 16px 16px;
    text-align: center;
}

#interrupt_title {
    margin-bottom: 10px;
    color: var(--bad);
    font-family: var(--font-display);
    font-size: 20px;
}

#interrupt_text {
    margin-bottom: 16px;
    font-size: 15px;
    text-align: left;
}

#interrupt_box .btn {
    width: 100%;
}

/* ---------- 結果画面 ---------- */
.result {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(100%, 480px);
    margin: 0 auto;
    padding: max(18px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
}

.result-head {
    text-align: center;
}

.result-title {
    margin: 8px 0 0;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.04em;
    background: var(--sky-shine);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 #1f5f92) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
    animation: shimmer-text 4s linear infinite;
}

/* スコアの方が桁数が多いので、正解数:スコア = 3:7 の幅にする */
.result-summary {
    display: grid;
    grid-template-columns: 3fr 7fr;
    padding: 14px 8px;
    text-align: center;
}

.result-stat + .result-stat {
    border-left: 1px solid rgba(127, 211, 255, 0.3);
}

.result-stat-label {
    display: block;
    color: var(--cloud-dim);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.result-stat-value {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 400;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.result-stat-value small {
    color: var(--cloud-dim);
    font-size: 16px;
}

.result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.result-actions .btn-primary {
    grid-column: 1 / -1;
    min-height: 52px;
    font-size: 18px;
}

/* ランキングへの登録状況 */
.result-rank {
    padding: 10px 14px 12px;
    text-align: center;
}

.result-rank p {
    margin: 0;
}

.result-rank-name {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    font-size: 15px;
}

.result-rank-name span {
    color: var(--cloud-dim);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.result-rank-name b {
    min-width: 0;
    overflow-wrap: anywhere;
}

.result-rank-status {
    min-height: 1.6em;
    margin-top: 2px !important;
    color: var(--sky);
    font-size: 14px;
    font-weight: 700;
}

/* 送信中の回転マーク */
.result-rank-status.is-busy::before,
.ranking-status.is-busy::before {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-right: 6px;
    border: 2px solid rgba(127, 211, 255, 0.35);
    border-top-color: var(--sky);
    border-radius: 50%;
    vertical-align: -0.1em;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-rank-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.result-rank-actions .btn {
    min-height: 40px;
    font-size: 14px;
}

.result-list-title {
    margin: 8px 0 0;
    color: var(--cloud);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
}

.result-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.result-row {
    display: grid;
    grid-template-columns: 2.2em 44px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
}

.result-row + .result-row {
    border-top: 1px solid rgba(127, 211, 255, 0.18);
}

.rw-wave {
    color: var(--cloud-dim);
    font-family: var(--font-display);
    font-size: 13px;
    text-align: center;
}

.rw-icon {
    width: 44px;
    height: 44px;
}

.rw-body {
    min-width: 0;
    line-height: 1.35;
}

.rw-type {
    display: block;
    color: var(--cloud-dim);
    font-size: 11px;
}

.rw-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    word-break: break-all;
}

/* 〇と×を同じ大きさの枠に入れ、得点の行は常に確保して縦横の位置をそろえる */
.rw-judge {
    width: 4.2em;
    text-align: center;
}

.rw-mark {
    display: block;
    height: 28px;
    font-family: var(--font-ui);
    font-size: 26px;
    font-weight: 700;
    line-height: 28px;
}

.rw-point {
    display: block;
    min-height: 1.3em;
    color: var(--cloud-dim);
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
}

.result-row.is-correct .rw-mark {
    color: var(--good);
}

.result-row.is-wrong .rw-mark {
    color: var(--bad);
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary,
    .start-title,
    .result-title,
    .hud-time.is-danger .hud-value,
    #judge.show > div,
    #judge.wrong.show > div {
        animation: none;
    }
}

/* 高さの低い端末向けに少しだけ詰める */
@media (max-height: 640px) {
    .game {
        gap: 7px;
    }
    .hud-value {
        font-size: 19px;
    }
    .question {
        font-size: 17px;
    }
    /* 技名が2行になっても、4行の選択肢が画面内に収まるよう上下の余白を詰める */
    .option {
        min-height: 44px;
        padding-top: 3px;
        padding-bottom: 3px;
        font-size: 14px;
    }
}

/* 英語は技名が長いので選択肢の文字を少し小さくする */
html[lang="en"] .option {
    font-size: 13px;
    word-break: normal;
    overflow-wrap: anywhere;
}

html[lang="en"] .question {
    font-size: 17px;
}

html[lang="en"] .rw-name {
    word-break: normal;
    overflow-wrap: anywhere;
}

/* ---------- 遊び方ページ(C_Tenjoの遊び方ページと同じ構成) ---------- */
.sub-page {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 0 16px 48px;
}

/* 見出しと戻るボタンは画面上部に固定し、見出しは中央に置く */
.sub-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 0 -16px 14px;
    padding: max(12px, env(safe-area-inset-top)) 16px 12px;
    border-bottom: 1px solid rgba(127, 211, 255, 0.3);
    background: linear-gradient(#0d2c4a, #123a60);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sub-header h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-align: center;
}

.back-link {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(127, 211, 255, 0.5);
    border-radius: 6px;
    background: rgba(13, 44, 74, 0.7);
    color: var(--cloud);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.howto {
    margin-bottom: 14px;
    padding: 16px 18px;
}

.howto p {
    margin: 4px 0 0;
    color: var(--cloud-dim);
    font-size: 14px;
}

.howto p + p {
    margin-top: 8px;
}

.howto strong {
    color: var(--cloud);
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding-left: 40px;
    counter-increment: step;
}

.steps li + li {
    margin-top: 14px;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--sky);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 14px;
    line-height: 26px;
    text-align: center;
}

.steps h2,
.howto-title {
    margin: 0;
    color: var(--cloud);
    font-size: 16px;
}

.rule-table {
    width: 100%;
    margin: 6px 0 8px;
    border-collapse: collapse;
    font-size: 14px;
}

.rule-table th,
.rule-table td {
    padding: 7px 4px;
    border-bottom: 1px solid rgba(127, 211, 255, 0.2);
    text-align: left;
    vertical-align: top;
}

.rule-table th {
    width: 9.6em;
    white-space: nowrap;
    color: var(--sky);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rule-table td {
    color: var(--cloud-dim);
}

.howto .fineprint {
    color: var(--cloud-dim);
    font-size: 12px;
}

/* ---------- ランキングページ(C_Tenjoのランキングページと同じ構成) ---------- */
.ranking-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.ranking-tabs .btn {
    min-height: 42px;
    padding: 0 8px;
    font-size: 14px;
}

.ranking-tabs .btn[aria-current="page"] {
    border-color: rgba(255, 255, 255, 0.75);
    background:
        linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 55%),
        var(--sky-shine);
    color: var(--ink);
    cursor: default;
}

.ranking-status {
    margin: 0;
    padding: 28px 16px;
    color: var(--cloud-dim);
    text-align: center;
}

.ranking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 2.6em 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
}

.ranking-list li + li {
    border-top: 1px solid rgba(127, 211, 255, 0.18);
}

.ranking-list .rank {
    font-family: var(--font-display);
    font-size: 17px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* 1〜3位は色を付ける */
.ranking-list .rank-1 .rank { color: #ffd65a; }
.ranking-list .rank-2 .rank { color: #e3eef8; }
.ranking-list .rank-3 .rank { color: #e8a26b; }

.ranking-list .name {
    min-width: 0;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ranking-list .date {
    display: block;
    color: var(--cloud-dim);
    font-size: 11px;
    font-weight: 500;
}

.ranking-list .score {
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.3;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ranking-list .score small {
    display: block;
    color: var(--cloud-dim);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
}

/* 自分の記録 */
.ranking-list li.is-me {
    background: rgba(127, 211, 255, 0.16);
    box-shadow: inset 3px 0 0 var(--sky);
}

.ranking-note {
    margin: 12px 0 8px;
    color: var(--cloud-dim);
    font-size: 12px;
    text-align: center;
}

/* ゲーム画面の判定の見本 */
.judge-demo {
    display: flex;
    gap: 10px;
    margin: 10px 0 6px;
}

.judge-demo span {
    flex: 1;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.judge-demo .is-correct {
    border: 1px solid #fff;
    background: linear-gradient(#bff0ff, #6fd0ff);
    color: var(--ink);
}

.judge-demo .is-wrong {
    border: 1px solid #ffb3c1;
    background: linear-gradient(#ff7d93, #d93a5a);
    color: #fff;
    text-decoration: line-through;
}

.judge-demo .is-other {
    border: 1px solid rgba(127, 211, 255, 0.5);
    background: rgba(18, 58, 96, 0.9);
    opacity: 0.45;
}
