/* ============================================================
   RzPractice Web サイト（rzpractice.top）
   色・形はゲームの画面（practice_core/html/base.css）と同じ：濃い紺・シアン → むらさき → ピンクのネオン・Rajdhani の見出し
   外のファイル（文字の形・画像・CSS フレームワーク）は読まない（速さと、見る人の IP を外へ送らないため）
   ============================================================ */
@font-face { font-family: 'Rajdhani'; font-weight: 600; font-display: swap; src: url('../fonts/rajdhani-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-weight: 700; font-display: swap; src: url('../fonts/rajdhani-latin-700-normal.woff2') format('woff2'); }

:root {
    --ground: #08071a; --shell: #0f0d24; --panel: #131130; --tile: #191638; --tile-hover: #221e48;
    --line: #2c2758; --line-soft: #221e46; --line-strong: #3d3770;
    --fg: #eceaff; --fg-2: #c9c5ef; --muted: #aaa6d0;
    --accent: #67e8f9; --accent-2: #f0abfc; --violet: #a78bfa; --btn: #bba7fc; --ink: #0b0920;
    --good: #7cc48a; --gold: #f0c27a; --silver: #c9c4e8; --bronze: #e0a27a;
    --neon: linear-gradient(90deg, #67e8f9 0%, #a78bfa 55%, #f0abfc 100%);
    --neon-edge: linear-gradient(135deg, rgba(103, 232, 249, .7), rgba(255, 255, 255, .05) 50%, rgba(240, 171, 252, .7));
    --f-display: 'Rajdhani', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', Meiryo, sans-serif;
    --f-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, sans-serif;
    --f-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;
    --radius: 6px;
    --wrap: 1120px;
}

* { box-sizing: border-box; }
/* hidden を付けた物は、ほかの指定（.btn の display など）より強く消す */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0; min-height: 100vh; color: var(--fg); font-family: var(--f-body); font-size: 16px; line-height: 1.75;
    background:
        radial-gradient(900px 500px at 10% -10%, rgba(34, 211, 238, .14), transparent 60%),
        radial-gradient(900px 600px at 100% 0%, rgba(217, 70, 239, .12), transparent 60%),
        var(--ground);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 上のメニュー ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(8, 7, 26, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: .04em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--fg-2); padding: 8px 14px; border-radius: 4px; font-weight: 500; font-size: 15px; }
.nav a:hover { background: var(--tile); text-decoration: none; color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); background: linear-gradient(90deg, rgba(103, 232, 249, .14), rgba(167, 139, 250, .08)); box-shadow: inset 0 -2px 0 var(--accent); }
.menu-btn { display: none; margin-left: auto; background: var(--tile); color: var(--fg); border: 1px solid var(--line); border-radius: 4px; height: 40px; padding: 0 14px; font: inherit; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 4px; font-weight: 700; font-size: 16px;
    border: 1px solid var(--line-strong); background: var(--tile); color: var(--fg); cursor: pointer; transition: background .15s, filter .15s; }
.btn:hover { background: var(--tile-hover); text-decoration: none; }
.btn.primary { background: var(--btn); border-color: var(--btn); color: var(--ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- 大きな見出し（はじめのページ） ---------- */
.hero { padding: 88px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { font-family: var(--f-display); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-size: 14px; }
.hero h1 { margin: 8px 0 16px; font-family: var(--f-display); font-weight: 700; font-size: clamp(48px, 8vw, 88px); line-height: 1; letter-spacing: .02em;
    background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; color: var(--fg-2); max-width: 34em; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 枠（ゲームの画面と同じネオンのふち） ---------- */
.card {
    border: 1px solid transparent; border-radius: var(--radius); padding: 24px;
    background: radial-gradient(70% 60% at 0% 0%, rgba(34, 211, 238, .08), transparent 60%) padding-box,
                radial-gradient(70% 70% at 100% 100%, rgba(217, 70, 239, .09), transparent 60%) padding-box,
                linear-gradient(var(--shell), var(--shell)) padding-box,
                var(--neon-edge) border-box;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 22px; }

/* サーバーの様子（はじめのページの右） */
.status .lab, .lab { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.status-row { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 2px; }
.status-num { font-family: var(--f-display); font-weight: 700; font-size: 64px; line-height: 1; }
.status-max { color: var(--muted); font-family: var(--f-display); font-size: 24px; font-weight: 600; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); margin-right: 8px; vertical-align: middle; }
.dot.off { background: var(--muted); box-shadow: none; }
.status hr { border: 0; border-top: 1px solid var(--line-soft); margin: 18px 0; }
.top3 { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.top3 li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px; background: var(--tile); border-radius: 4px; }
.top3 .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 区切り ---------- */
section.block { padding: 56px 0; }
.block h2 { font-family: var(--f-display); font-weight: 700; font-size: 34px; letter-spacing: .02em; margin: 0 0 6px; }
.block h2 .jp { font-family: var(--f-body); font-size: 22px; font-weight: 700; margin-left: 12px; color: var(--fg-2); letter-spacing: 0; }
.block .sub { color: var(--muted); margin: 0 0 28px; }
.page-head { padding: 64px 0 8px; }
.page-head h1 { margin: 6px 0 8px; font-size: clamp(32px, 5vw, 48px); font-weight: 700; line-height: 1.2; }
.page-head p { color: var(--fg-2); margin: 0; max-width: 40em; }

/* できること（カードの並び） */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.feature { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; transition: border-color .15s, transform .15s; }
.feature:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feature h3 { margin: 10px 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--fg-2); font-size: 15px; }
.feature ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--fg-2); font-size: 15px; }
.key { display: inline-block; min-width: 34px; text-align: center; font-family: var(--f-mono); font-size: 13px; font-weight: 700; color: var(--accent);
    border: 1px solid #35407a; background: rgba(103, 232, 249, .06); padding: 2px 8px; border-radius: 3px; }

/* 手順（参加方法） */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps > li { counter-increment: s; position: relative; padding: 20px 22px 20px 78px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.steps > li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--ink); background: var(--neon); }
.steps h3 { margin: 0 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--fg-2); }
.steps .btn { margin-top: 12px; }
.code { font-family: var(--f-mono); background: var(--tile); border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; color: var(--fg); }
.note { border-left: 3px solid var(--accent); background: rgba(103, 232, 249, .05); padding: 12px 16px; border-radius: 0 4px 4px 0; color: var(--fg-2); margin: 20px 0 0; }
.note.warn { border-left-color: var(--gold); background: rgba(240, 194, 122, .06); }

/* 表（キーの一覧） */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table th { font-family: var(--f-display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.table td:first-child { white-space: nowrap; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.toc a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); font-size: 14px; }
.toc a:hover { border-color: var(--accent); color: var(--fg); text-decoration: none; }
.guide-sec { scroll-margin-top: 84px; }
.guide-sec + .guide-sec { margin-top: 48px; }
.guide-sec h2 { display: flex; align-items: center; gap: 12px; font-size: 26px; margin: 0 0 14px; }

/* ---------- ランキング ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line-soft); margin: 28px 0 20px; }
.tabs button { font: inherit; font-weight: 700; color: var(--fg-2); background: none; border: 0; padding: 12px 18px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.rk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.rk-bar label { color: var(--muted); font-size: 14px; }
.select { font: inherit; color: var(--fg); background: var(--tile); border: 1px solid var(--line-strong); border-radius: 4px; height: 42px; padding: 0 12px; min-width: 260px; max-width: 100%; }
.rk-updated { margin-left: auto; color: var(--muted); font-size: 14px; }
.rk-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.rk-card h3 { margin: 0; font-size: 18px; }
.rk-card .meta { color: var(--muted); font-size: 13px; margin: 2px 0 12px; }
.rk { width: 100%; border-collapse: collapse; font-size: 15px; }
.rk td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.rk tr:last-child td { border-bottom: 0; }
.rk .r { width: 44px; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--muted); }
.rk .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 0; width: 100%; }
.rk .v { text-align: right; white-space: nowrap; font-family: var(--f-mono); font-weight: 700; }
.rk .x { text-align: right; white-space: nowrap; color: var(--muted); font-size: 13px; }
.rk tr.p1 .r { color: var(--gold); } .rk tr.p2 .r { color: var(--silver); } .rk tr.p3 .r { color: var(--bronze); }
.rk tr.p1 { background: linear-gradient(90deg, rgba(240, 194, 122, .10), transparent 70%); }
.empty { color: var(--muted); text-align: center; padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* はじめての人へ（はじめのページの下） */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; }
.cta h2 { margin: 0; }
.cta p { margin: 4px 0 0; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.scroll-x { overflow-x: auto; }
ul.plain { margin: 0; padding-left: 1.2em; }
section.block.tight { padding-top: 8px; }

/* ---------- 下 ---------- */
.foot { margin-top: 64px; border-top: 1px solid var(--line-soft); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot nav { display: flex; gap: 18px; margin-left: auto; }
.foot a { color: var(--fg-2); }

/* ---------- 小さい画面 ---------- */
@media (max-width: 860px) {
    .hero { padding: 48px 0 24px; }
    .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
    .menu-btn { display: inline-flex; align-items: center; }
    .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 8px 20px 16px; background: var(--shell); border-bottom: 1px solid var(--line); }
    .nav.open { display: flex; }
    .nav a { padding: 12px 14px; }
    .top .btn.join { display: none; }
    .rk-grid { grid-template-columns: 1fr; }
    .rk-updated { margin-left: 0; width: 100%; }
    .select { min-width: 0; width: 100%; }
    .steps > li { padding-left: 70px; }
    .foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ============================================================
   地図・ボード・試合の記録・大会（2026-11-23）
   ============================================================ */
.map-page { padding-top: 24px; }
.map-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 12px; }
.map-head h1 { margin: 2px 0 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; overflow-wrap: anywhere; }
.map-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.map-search { display: flex; gap: 8px; }
.input { font: inherit; color: var(--fg); background: var(--tile); border: 1px solid var(--line-strong); border-radius: 4px; height: 38px; padding: 0 12px; width: 200px; max-width: 100%; }
.input::placeholder { color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: 15px; min-height: 38px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.map-msg { margin: 0 0 8px; min-height: 1.5em; color: var(--accent); font-size: 14px; }
.map-box { position: relative; height: calc(100vh - 230px); min-height: 420px; background: #0b0a1c; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.rzmap-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.rzmap-canvas:active { cursor: grabbing; }
.rzmap-canvas:focus-visible { outline-offset: -3px; }
.map-zoom { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.map-zoom button { min-width: 44px; height: 40px; font: inherit; font-weight: 700; color: var(--fg); background: rgba(19, 17, 48, .92); border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; }
.map-zoom button:hover { background: var(--tile-hover); }
.map-empty { position: absolute; inset: 24px; display: grid; place-items: center; z-index: 3; background: var(--ground); }
.map-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 10px 0 0; font-size: 14px; color: var(--fg-2); }

/* ボード */
.bd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; border-top: 1px solid var(--line-soft); }
.bd-grid .map-box { border: 0; }
.bd-side { background: var(--shell); border-left: 1px solid var(--line-soft); padding: 14px; display: grid; gap: 12px; align-content: start; max-height: calc(100vh - 230px); overflow-y: auto; }
.bd-list { display: grid; gap: 8px; }
.bd-item { display: grid; grid-template-columns: 14px auto minmax(0, 1fr); align-items: center; gap: 10px; min-height: 40px; padding: 6px 12px; text-align: left;
    font: inherit; color: var(--fg); background: var(--tile); border: 1px solid var(--line-soft); border-radius: 4px; cursor: pointer; }
.bd-item:hover { background: var(--tile-hover); }
.bd-item[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.bd-type { color: var(--muted); font-size: 13px; white-space: nowrap; }
.bd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-detail { padding: 14px 16px; }
.bd-dt { display: flex; align-items: center; gap: 10px; font-weight: 700; overflow-wrap: anywhere; }
.bd-note { margin: 8px 0 0; color: var(--fg-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(8, 7, 26, .9); flex: none; }
.sw.c0 { background: var(--accent); } .sw.c1 { background: var(--accent-2); } .sw.c2 { background: var(--gold); } .sw.c3 { background: var(--good); }

/* 試合の記録 */
.mt-body, .tn-body { display: grid; gap: 16px; }
.mt-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.mt-winner { font-family: var(--f-display); font-weight: 700; font-size: 32px; line-height: 1.2; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--btn); }
.badge.hs { background: var(--gold); padding: 0 8px; font-size: 12px; }
.mt-h { font-size: 18px; margin: 0 0 10px; }
.mt-players th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--line-soft); }
.mt-players th.v { text-align: right; }
.mt-players .nm { max-width: none; width: auto; }
.rk tr.win td.nm { color: var(--gold); font-weight: 700; }
.rk td.up { color: var(--good); } .rk td.down { color: #f09a9a; }
.mt-rounds { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mt-round { background: var(--tile); border-radius: 4px; padding: 10px 14px; }
.mt-rh { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.mt-kills { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.mt-kills li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.mt-kills .nm { overflow-wrap: anywhere; }
.mt-kills .arrow { color: var(--muted); }

/* 大会（トーナメント表） */
.tn-champ { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.bk { display: flex; gap: 20px; padding-bottom: 8px; }
.bk-col { flex: 0 0 220px; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.bk-h { font-size: 15px; margin: 0; color: var(--muted); font-weight: 700; }
.bk-match { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.bk-p { padding: 8px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-p + .bk-p { border-top: 1px solid var(--line-soft); }
.bk-p.win { color: var(--gold); font-weight: 700; background: linear-gradient(90deg, rgba(240, 194, 122, .12), transparent 80%); }
.bk-p.none { color: var(--muted); }
.bk-link { display: block; padding: 6px 12px; font-size: 13px; border-top: 1px solid var(--line-soft); }

@media (max-width: 860px) {
    .map-box { height: 62vh; min-height: 320px; }
    .bd-grid { grid-template-columns: 1fr; }
    .bd-side { border-left: 0; border-top: 1px solid var(--line-soft); max-height: none; }
    .map-search { width: 100%; }
    .map-search .input { flex: 1; width: auto; }
    .mt-winner { font-size: 26px; }
}

/* ============================================================
   マイページ（/me・2026-11-23）
   ============================================================ */
.me-body { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.me-body > *, .me-char > *, .me-grid > *, #me-char { min-width: 0; }
.me-login { max-width: 560px; }
.me-login h2 { margin: 0 0 8px; font-size: 22px; }
.me-login p { margin: 0 0 12px; }
.me-small { font-size: 14px; }
.me-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.me-name { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1.2; overflow-wrap: anywhere; }
.me-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.me-pref .why { font-size: 13px; color: var(--muted); min-height: 1.2em; }
.me-sec { font-size: 22px; margin: 16px 0 0; }
.me-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.me-char { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.me-h { margin: 0 0 10px; font-size: 18px; }
.me-t th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.me-t th.v { text-align: right; }
.me-t td { white-space: nowrap; }
.me-t .nm { max-width: none; width: auto; white-space: normal; overflow-wrap: anywhere; }
.me-t td.rar.legend { color: var(--gold); font-weight: 700; } .me-t td.rar.rare { color: var(--accent-2); }
.me-rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.me-big { font-family: var(--f-display); font-weight: 700; font-size: 40px; line-height: 1.1; }
.me-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.me-stats div { background: var(--tile); border-radius: 4px; padding: 8px 12px; }
.me-stats dt { color: var(--muted); font-size: 13px; }
.me-stats dd { margin: 0; font-family: var(--f-mono); font-weight: 700; font-size: 18px; }
.me-ach { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.me-ach li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 6px 10px; background: var(--tile); border-radius: 4px; }
/* レートの線のグラフ（SVG）。目盛りはうすく・線は 2px・点は 8px 以上 */
.me-chart { display: block; width: 100%; height: auto; }
.me-chart .me-gl { stroke: var(--line-soft); stroke-width: 1; }
.me-chart .me-axis { fill: var(--muted); font-size: 12px; font-family: var(--f-mono); }
.me-chart .me-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.me-chart .me-dot { fill: var(--accent); stroke: var(--panel); stroke-width: 2; pointer-events: none; }
.me-chart .me-hit { fill: transparent; cursor: default; }
.me-chart .me-hit:hover, .me-chart .me-hit:focus { fill: rgba(103, 232, 249, .16); outline: none; }
.me-chart .me-val { fill: var(--fg); font-size: 14px; font-weight: 700; font-family: var(--f-mono); }
.me-details { margin-top: 6px; font-size: 14px; }
.me-details summary { cursor: pointer; color: var(--fg-2); min-height: 32px; display: flex; align-items: center; }
/* 下のメニューが 6 つになったので、小さい画面では折り返す（言葉の途中では切らない） */
.foot nav { flex-wrap: wrap; }
.foot nav a { white-space: nowrap; }
@media (max-width: 860px) {
    .me-grid { grid-template-columns: minmax(0, 1fr); }
    .me-name { font-size: 24px; }
    .me-head { align-items: flex-start; }
}

/* ============================================================
   スキンショップ・法律で決まった表示（2026-11-29）
   ============================================================ */
.foot nav.legal { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 20px; }
.shop-grid { margin-top: 8px; }
.shop-card { display: block; color: var(--fg); }
.shop-card:hover { text-decoration: none; border-color: var(--line-strong); }
.shop-card h3 { margin: 0 0 4px; }
.shop-price { margin: 12px 0 0; font-family: var(--f-mono); font-weight: 700; color: var(--accent); }
.shop-desc { margin: 0 0 24px; }
.shop-desc p { margin: 0 0 6px; }
.shop-msg { margin: 12px 0; color: var(--fg-2); }
.shop-msg.error { color: var(--bad, #ff8a8a); }
.shop-msg.good { color: var(--good); font-weight: 700; }
.shop-test { margin: 0 0 16px; }
.shop-agree { margin: 18px 0 12px; }
.table.legal th[scope="row"] { width: 11em; text-align: left; vertical-align: top; color: var(--fg-2); font-weight: 700; }
.table.legal th, .table.legal td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.shop-mine td, .shop-mine th { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.shop-form { display: grid; gap: 14px; max-width: 760px; }
.shop-field { display: grid; gap: 6px; }
.shop-field label { font-weight: 700; color: var(--fg-2); }
.input.wide { width: 100%; }
.input.area { height: auto; padding: 10px 12px; resize: vertical; }
.bad { color: var(--bad, #ff8a8a); }
.shop-log li { margin: 0 0 4px; font-size: 14px; color: var(--fg-2); }
.legal-body { line-height: 1.9; }
.legal-body > * { max-width: 860px; }
#shop-body h2 { margin: 36px 0 14px; }
.legal-body h2 { font-size: 19px; margin: 32px 0 10px; }
.legal-body ol, .legal-body ul { padding-left: 1.6em; }
.legal-body li { margin: 4px 0; }
.legal-body .sub-ol { list-style: lower-roman; margin: 4px 0; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.shop-legal { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.shop-legal a { color: var(--muted); text-decoration: underline; }
.shop-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #0b0a1c; border-radius: 4px; margin: 0 0 12px; }
.shop-img.big { max-width: 720px; margin: 0 0 20px; border: 1px solid var(--line-soft); }
.shop-tabs { margin-top: 0; }
.shop-group h2 { display: flex; align-items: baseline; gap: 10px; font-size: 20px; margin: 28px 0 12px; }
.shop-count { font-size: 14px; font-weight: 400; }
.sl-table td { vertical-align: middle; }
.sl-table td.c { text-align: center; }
.sl-table tr.changed { background: rgba(103, 232, 249, .06); }
.sl-price { width: 120px; }
.sl-thumb { width: 72px; height: 40px; object-fit: contain; background: #0b0a1c; border-radius: 3px; display: block; }
.sl-file { font-size: 12px; margin-top: 4px; }
.sl-note { display: block; font-size: 12px; margin-top: 4px; }
.sl-note.good { color: var(--good); } .sl-note.bad { color: var(--bad, #ff8a8a); }
.sl-all { margin-top: 16px; }
tr.bad-row { background: rgba(255, 138, 138, .06); }
.shop-cart-row { margin: 0 0 8px; align-items: center; }
.shop-cart-note { font-size: 14px; }
.shop-total { margin: 14px 0 0; font-size: 18px; text-align: right; }
.shop-cart td { vertical-align: middle; }

/* お店（rzstore.top）の下：Rockstar Games などとは関係ない旨（2026-11-30） */
.foot .store-disclaimer { flex-basis: 100%; font-size: 12px; line-height: 1.7; color: var(--muted); }
