/* ============================================================================
   わくまの 四字熟語どうじょう style.css — にぎやか v4（クリーム地・水玉・色の グラデーションの ふち・白い 角丸カード・わくま）
   いつも明るい（ダークモードなし）。箱の 片側（左・上・下）だけの 色の 線・濃い面の 長文・かたむけた カードは 使わない（Sana）。
   字：画面＝Zen Maru Gothic／四字熟語＝Klee One（教科書体に ちかい・かきかたの お手本と 同じ）。色＝書道の 緑 #2F9C6A＋称号・メダルの 金 #E2A400。
   見本は 見本/mock.html。基本の 部品（dialog・toast・btn）は えいたんごの style.css から 写した。
   ========================================================================== */
:root {
  --cream: #FFF8EA; --cream-2: #FFF0D2; --paper: #fff; --ink: #3A2C25; --ink-2: #6E5D52; --ink-3: #9A8A7E; --line: #EADCC2;
  --sc: #2F9C6A; --sd: #1D7049; --sl: #E2F4EA;
  --gold: #E2A400; --gold-l: #FFF3C9; --yel: #FFE94A; --yel-d: #E2B800; --sun: #FFC93B; --red: #D8442E;
  --ok: #2F9C6A; --ok-l: #E2F4EA; --ng: #D94F3D; --ng-l: #FDE4E2;
  --ring: linear-gradient(120deg, #2F9C6A, #7BC47F 45%, #E2A400);
  --sh-s: 0 3px 0 rgba(234, 220, 194, .9); --sh: 0 10px 24px rgba(90, 60, 30, .12);
  --f-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --f-jk: "Klee One", "Hiragino Mincho ProN", serif;
  --gut: 16px; --sab: env(safe-area-inset-bottom, 0px); --sat: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
html, body { height: 100%; overflow-x: clip; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100%; background-color: var(--cream); color: var(--ink);
  background-image: radial-gradient(#F1DFB8 1.3px, transparent 1.8px); background-size: 20px 20px;
  font: 500 16px/1.6 var(--f-body); -webkit-text-size-adjust: 100%; touch-action: manipulation;
  word-break: keep-all; overflow-wrap: anywhere;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 21px; font-weight: 900; line-height: 1.25; }
h2 { font-size: 17px; font-weight: 900; line-height: 1.3; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 10px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); } .small { font-size: 13.5px; } .center { text-align: center; }
.jk { font-family: var(--f-jk); font-weight: 600; }
.hl { background: linear-gradient(transparent 58%, var(--yel) 58%); }
#app { min-height: 100%; position: relative; }
.wk { display: block; position: relative; }
.wk canvas, .top-wk canvas, .bear canvas, .ob-wk canvas, .res-wk canvas, .dlg-wk canvas { display: block; width: 100%; height: 100%; }
svg.ic { width: 22px; height: 22px; flex: none; vertical-align: middle; }

.scr { max-width: 520px; margin: 0 auto; padding: calc(12px + var(--sat)) var(--gut) calc(28px + var(--sab)); display: flex; flex-direction: column; gap: 12px; }
.scr > * { min-width: 0; }
.card { background: var(--paper); border-radius: 20px; padding: 14px 16px; box-shadow: var(--sh-s); position: relative; }
.ring { border: 3px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--ring) border-box; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.center { justify-content: center; }
.eyebrow { display: block; font-size: 11.5px; font-weight: 700; color: var(--sd); }

/* ボタン */
.btn { --bc: var(--yel); --bd: var(--yel-d); --bt: var(--ink); appearance: none; border: 0; border-radius: 18px; min-height: 52px; padding: 8px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  background: var(--bc); color: var(--bt); font-weight: 900; font-size: 17px; box-shadow: 0 5px 0 var(--bd); transition: transform .08s, box-shadow .08s; }
.btn small { font-weight: 700; font-size: 13px; color: var(--ink-2); }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--bd); }
.btn:disabled { filter: grayscale(.7) opacity(.5); cursor: default; }
.btn.big { min-height: 58px; font-size: 18px; }
.btn.wide { width: 100%; }
.btn.sub { --bc: #fff; --bd: var(--line); border: 2px solid var(--line); }
.btn.danger { --bc: #fff; --bd: #F0C9BF; --bt: var(--ng); border: 2px solid #F0C9BF; }
.ib { appearance: none; border: 0; width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--ink-2); display: inline-grid; place-items: center; box-shadow: var(--sh-s); flex: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--cl, var(--sl)); color: var(--ci, var(--sd)); white-space: nowrap; }
.chip.gold { background: var(--gold-l); color: #8A6300; }
.chip.red { background: #FDE4E2; color: #B5332F; }

/* 小窓・おしらせ */
.dlg-wrap { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(58,44,37,.38); z-index: 50; }
.dlg { background: #fff; border-radius: 24px; padding: 20px; width: min(440px, 100%); max-height: calc(100% - 20px); overflow: auto; display: flex; flex-direction: column; gap: 14px; text-align: center; box-shadow: var(--sh); }
.dlg.wide { text-align: left; }
.dlg .chip { align-self: flex-start; }
.dlg-wk { width: 84px; height: 84px; margin: 0 auto -6px; }
.dlg .row { justify-content: center; }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--sab)); transform: translateX(-50%) translateY(16px); opacity: 0; transition: .25s; background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 18px; z-index: 60; font-weight: 700; font-size: 15px; max-width: calc(100% - 32px); text-align: center; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.pgate { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.pg-hold { position: relative; overflow: hidden; appearance: none; border: 2px solid var(--line); background: #fff; border-radius: 16px; min-height: 52px; padding: 10px 16px; font-weight: 700; }
.pg-hold i { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--sc); }
.pg-math { font-size: 24px; font-weight: 900; }
.pg-in { font-size: 22px; width: 160px; text-align: center; border: 2px solid var(--line); border-radius: 12px; padding: 8px; }
textarea.code { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 8px; font: 12px/1.4 ui-monospace, monospace; word-break: break-all; }
select { appearance: none; border: 2px solid var(--line); border-radius: 14px; background: #fff; min-height: 48px; padding: 6px 14px; font-weight: 700; max-width: 100%; }

/* はじめて */
.ob { text-align: center; align-items: stretch; }
.ob-wk { width: 150px; height: 180px; margin: 8px auto 0; }
.ob h1 { font-size: 26px; }
.ob-card { text-align: left; }
.grade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gbtn { appearance: none; border: 0; min-height: 56px; border-radius: 16px; background: #fff; box-shadow: var(--sh-s); font-weight: 900; font-size: 16px; }
.shead { display: flex; align-items: center; gap: 10px; }
.shead h1 { font-size: 20px; }

/* ホーム */
.top { display: flex; align-items: center; gap: 8px; }
.top-wk { width: 64px; height: 64px; flex: none; }
.top h1 { flex: 1; font-size: 20px; }
.rank-card .lbl { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.rank-card .ttl { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 6px; flex-wrap: wrap; }
.rank-card .ttl b { font-size: 34px; font-weight: 900; letter-spacing: .04em; line-height: 1.15; }
.rank-card .ttl .yomi { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.rank-card .ttl .num { margin-left: auto; text-align: right; font-size: 12px; color: var(--ink-2); font-weight: 700; }
.rank-card .ttl .num em { display: block; font-style: normal; font-size: 28px; color: var(--sc); font-weight: 900; line-height: 1; }
.bar { height: 12px; border-radius: 99px; background: var(--cream-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--ring); transition: width .3s; }
.rank-card .next { font-size: 13px; margin-top: 6px; color: var(--ink-2); font-weight: 700; }
.rank-card .next b { color: var(--ink); }
.ladder { display: flex; gap: 4px; margin-top: 10px; }
.ladder span { flex: 1; height: 8px; border-radius: 99px; background: var(--cream-2); }
.ladder span.on { background: var(--sc); } .ladder span.cur { background: var(--gold); }
.today h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.row3 div { background: var(--cream); border-radius: 12px; padding: 7px 10px; font-size: 12px; color: var(--ink-2); font-weight: 700; line-height: 1.3; }
.row3 b { display: block; font-size: 19px; color: var(--ink); font-weight: 900; }
.row3 .dash b { color: var(--ng); }
.done-msg { font-weight: 700; text-align: center; margin: 4px 0 10px; }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.minis button { appearance: none; border: 0; background: #fff; border-radius: 16px; padding: 8px 4px 7px; text-align: center; font-size: 12px; font-weight: 900; line-height: 1.3; box-shadow: var(--sh-s); min-height: 70px; }
.minis i { display: block; font-style: normal; font-size: 20px; margin-bottom: 2px; }
.minis small { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 700; }
.steps h2 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.steps h2 small { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.track, .legend { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.track button { appearance: none; border: 0; position: relative; height: 34px; border-radius: 9px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; color: var(--ink-3); padding: 0; min-width: 0; }
.track button.done { background: var(--sc); color: #fff; }
.track button.now { background: var(--gold); color: #fff; }
.track button i { position: absolute; right: -3px; top: -6px; font: 600 8px/1 var(--f-jk); color: #fff; background: var(--red); border-radius: 50%; width: 15px; height: 15px; display: grid; place-items: center; font-style: normal; }
.legend { margin: 5px 0 10px; }
.legend i { font-style: normal; font-size: 10px; font-weight: 900; text-align: center; line-height: 1.2; border-radius: 6px; padding: 3px 0; }
.legend .g-a { background: var(--sl); color: var(--sd); } .legend .g-b { background: var(--gold-l); color: #8A6300; } .legend .g-c { background: #E3F4FC; color: #0074B3; }
.maki { appearance: none; border: 0; width: 100%; display: flex; align-items: center; gap: 10px; background: var(--cream); border-radius: 16px; padding: 9px 12px; text-align: left; }
.maki .no { width: 38px; height: 38px; border-radius: 12px; background: var(--sl); color: var(--sd); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; flex: none; }
.maki .t { flex: 1; font-weight: 900; font-size: 14px; }
.maki .t small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 700; }
.maki .p { font-size: 12px; font-weight: 900; color: var(--sd); text-align: right; width: 64px; }
.maki .p .bar { display: block; height: 6px; margin-top: 3px; }

/* 四字の 札 */
.yoji { display: flex; justify-content: center; gap: 6px; }
.yoji .k { appearance: none; border: 0; width: 72px; max-width: calc((100% - 18px) / 4); height: 86px; border-radius: 16px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--sh-s); padding: 0; color: inherit; }
.yoji .k b { font-size: 44px; line-height: 1; }
.yoji .k b s { color: var(--ng); font-size: 26px; margin-right: 2px; text-decoration-thickness: 3px; }
.yoji .k small { font-size: 11.5px; color: var(--ink-3); font-weight: 700; margin-top: 5px; white-space: nowrap; }
.yoji .k.hole { background: var(--gold-l); border: 3px dashed var(--gold); }
.yoji .k.hole.filled { border-style: solid; }
.yoji .k.ok { background: var(--ok-l); border: 3px solid var(--ok); }
.yoji .k.ok b { color: var(--sd); }
.yoji .k.ng { background: var(--ng-l); border: 3px solid var(--ng); }
.yoji.tap .k { cursor: pointer; border: 3px solid var(--line); }
.yoji.tap .k:active:not(:disabled) { transform: translateY(2px); }
.yoji.tap .k:disabled { opacity: 1; }
.yomi-all { text-align: center; font-size: 14px; color: var(--ink-3); font-weight: 700; margin-top: 4px; }
/* 白い カード・小窓の 中の 札は クリームに（白に 白で 影だけ 見えていた・2026-11-02 本番の iPhone の 写真） */
.card .yoji .k, .dlg .yoji .k { background: var(--cream); box-shadow: none; }
.card .yoji .k.hole { background: var(--gold-l); }
.qyoji { margin: 2px 0 4px; }

/* もんだい */
.qhead { display: flex; align-items: center; gap: 10px; }
.qhead .bar { flex: 1; height: 14px; }
.qhead .bar.g60 i, .qhead .bar.tm i { background: linear-gradient(90deg, #F07A28, #FFC93B); transition: width .2s linear; }
.qhead .c { font-size: 13px; font-weight: 700; color: var(--ink-2); min-width: 40px; text-align: right; white-space: nowrap; }
.qkind { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.combo { font-weight: 900; color: #D8442E; font-size: 13px; }
.qtext { font-size: 18px; font-weight: 900; }
.qword { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 84px; text-align: center; flex-wrap: wrap; }
.qword.ja { font-size: 19px; font-weight: 900; line-height: 1.55; }
.qword.bun { font-size: 17px; font-weight: 700; line-height: 1.8; text-align: left; justify-content: flex-start; }
u.blank { display: inline-block; width: 92px; height: 1.3em; border: 3px dashed var(--gold); border-radius: 8px; background: var(--gold-l); text-decoration: none; margin: 0 4px; vertical-align: middle; }
.opts { display: grid; grid-template-columns: 1fr; gap: 10px; }
.opt { appearance: none; background: #fff; border-radius: 16px; min-height: 56px; padding: 8px 14px; font-size: 16px; font-weight: 700; box-shadow: 0 4px 0 rgba(234,220,194,.9); border: 3px solid transparent; text-align: center; line-height: 1.5; color: inherit; }
.opt.w b { display: block; font-size: 26px; line-height: 1.2; }
.opt.w small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 700; }
.ch2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chk { appearance: none; position: relative; min-height: 68px; border-radius: 18px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 0 rgba(234,220,194,.9); border: 3px solid transparent; color: inherit; padding: 6px; }
.chk b { font-size: 38px; line-height: 1; }
.chk .nums { font-size: 26px; letter-spacing: .06em; }
.opt.ok, .chk.ok { border-color: var(--ok); background: var(--ok-l); }
.opt.ng, .chk.ng { border-color: var(--ng); background: var(--ng-l); }
.opt:disabled, .chk:disabled { color: inherit; opacity: 1; }
.fb { display: flex; flex-direction: column; gap: 10px; }
.fbc { display: flex; flex-direction: column; gap: 8px; border: 3px solid transparent; }
.fbc.ok { border-color: #BDE5CF; }
.fbc.ng { border-color: #F3C3BB; }
.fb-msg { font-size: 16px; }
.fbc.ok .fb-msg b { color: var(--ok); }
.fbc.ng .fb-msg b { color: var(--ng); }
.relnote { font-size: 14px; font-weight: 700; background: var(--cream); border-radius: 12px; padding: 8px 10px; }
.relnote b { font-size: 20px; }
.again { display: flex; gap: 8px; }
.again span { flex: 1; font-size: 12px; font-weight: 700; color: var(--ink-2); background: #fff; border-radius: 12px; padding: 8px 10px; text-align: center; box-shadow: var(--sh-s); }
.wcard { display: flex; flex-direction: column; gap: 12px; }

/* ことばの せつめい */
.exp { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.exp .h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.exp .h b { font-size: 26px; }
.exp .h small { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.exp .mean { font-size: 15px; line-height: 1.7; font-weight: 700; }
.exp .lbl { display: inline-block; background: var(--sl); color: var(--sd); border-radius: 8px; padding: 0 8px; font-size: 12px; margin-right: 6px; vertical-align: 1px; }
.exp .ex { font-size: 14px; line-height: 1.7; background: var(--cream); border-radius: 12px; padding: 8px 10px; }
.exp .ex b { font-size: 16px; color: var(--sd); }
.exp .care { background: var(--gold-l); border-radius: 12px; padding: 8px 10px; font-size: 13px; line-height: 1.6; font-weight: 700; }
.exp .yu { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.exp .rel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.relw { appearance: none; border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 16px; min-height: 44px; color: var(--ink); }

/* お祝い・けっか */
.cele { text-align: center; align-items: center; }
.pill2 { display: inline-flex; gap: 6px; align-items: center; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 900; color: var(--sd); box-shadow: var(--sh-s); }
.cele h1 { font-size: 27px; }
.bear { width: 150px; height: 170px; margin: 0 auto -10px; }
.cele .big { width: 100%; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.cele .msg { font-size: 15px; font-weight: 700; line-height: 1.7; }
.menjo { position: relative; width: 100%; background: #fff; border-radius: 22px; padding: 18px 16px 16px; border: 4px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--ring) border-box; }
.menjo .from { font-size: 13px; color: var(--ink-3); font-weight: 700; }
.menjo .ttl { font-size: 44px; font-weight: 900; letter-spacing: .1em; margin: 2px 0; }
.menjo .yomi2 { font-size: 13px; color: var(--ink-2); font-weight: 700; margin-top: 4px; }
.hanko { position: absolute; right: 12px; top: 12px; width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--red); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1.1; padding: 6px; text-align: center; transform: rotate(-8deg); }
.menjo .stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.menjo .stat div, .stats3 div { background: var(--cream); border-radius: 12px; padding: 6px 4px; font-size: 11.5px; color: var(--ink-2); font-weight: 700; text-align: center; }
.menjo .stat b, .stats3 b { display: block; font-size: 20px; color: var(--ink); font-weight: 900; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.note2 { font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.result { text-align: center; }
.res-wk { width: 130px; height: 150px; margin: 0 auto; }
.hl-box { background: var(--gold-l); border-radius: 12px; padding: 8px; font-weight: 700; }
.big-n { font-size: 44px; font-weight: 900; color: var(--sd); }
.big-n small { font-size: 18px; }
.stamp { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--red); color: var(--red); font-size: 16px; line-height: 1.15; margin: 4px auto; transform: rotate(-8deg); text-align: center; }

/* ステップ・ずかん・はんこ帳 */
.wlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wlist li > button { appearance: none; border: 0; width: 100%; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 6px 12px; box-shadow: var(--sh-s); min-height: 52px; text-align: left; color: inherit; }
.wlist li.empty { padding: 12px; }
.wlist b { font-size: 22px; }
.wlist .y { color: var(--ink-2); font-size: 13px; flex: 1; font-weight: 700; }
.wlist .st { font-weight: 900; color: var(--ink-3); min-width: 20px; text-align: center; }
.wlist .st.l { color: var(--sc); } .wlist .st.m { color: var(--gold); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #fff; border-radius: 16px; padding: 4px; box-shadow: var(--sh-s); }
.tabs button { appearance: none; border: 0; background: none; min-height: 44px; border-radius: 12px; font-weight: 900; color: var(--ink-2); font-size: 13px; line-height: 1.25; }
.tabs button.on { background: var(--sc); color: #fff; }
.hgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.hcell { appearance: none; border: 0; background: #fff; border-radius: 16px; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: var(--sh-s); color: inherit; min-width: 0; }
.hcell .stamp { width: 48px; height: 48px; font-size: 12px; border-color: var(--line); color: var(--ink-3); transform: none; margin: 0; }
.hcell.got .stamp { border-color: var(--red); color: var(--red); transform: rotate(-8deg); }
.hcell small { font-size: 10.5px; color: var(--ink-3); font-weight: 700; }
.exam-card { appearance: none; border: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; text-align: left; width: 100%; color: inherit; }
.exam-card b { font-size: 18px; } .exam-card small { grid-column: 1; font-size: 12px; color: var(--ink-2); font-weight: 700; }
.exam-card .best { grid-column: 2; grid-row: 1 / span 2; font-size: 12px; color: var(--ink-2); font-weight: 700; }
.exam-card .best b { font-size: 22px; color: var(--sd); }

/* ランキング */
.me { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 8px 12px; font-weight: 900; font-size: 14px; flex-wrap: wrap; box-shadow: var(--sh-s); }
.me .ava, .rl .ava, .nick-prev .ava { font-size: 22px; }
.me small { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.lnk { appearance: none; border: 0; background: none; margin-left: auto; font-size: 13px; color: var(--sd); font-weight: 700; text-decoration: underline; min-height: 44px; padding: 0 4px; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg2 button { appearance: none; min-height: 44px; border-radius: 12px; font-size: 12.5px; font-weight: 900; background: #fff; color: var(--ink-2); border: 2px solid var(--line); }
.seg2 button.on { border-color: var(--sc); color: var(--sd); background: var(--sl); }
.seg2 button:disabled { opacity: .5; }
.rl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rl li { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 6px 10px; min-height: 52px; border: 2px solid transparent; box-shadow: var(--sh-s); }
.rl li.muted { justify-content: center; font-size: 13px; }
.rl li.sep { justify-content: center; background: none; box-shadow: none; min-height: 20px; color: var(--ink-3); }
.rl .rk { width: 28px; text-align: center; font-weight: 900; font-size: 15px; color: var(--ink-2); }
.rl .nm { flex: 1; font-weight: 900; font-size: 13px; line-height: 1.3; min-width: 0; }
.rl .nm small { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 700; }
.rl .nm .chip { font-size: 10px; padding: 1px 7px; margin-left: 2px; }
.rl b { font-size: 15px; font-weight: 900; white-space: nowrap; }
.rl b small { font-size: 11px; color: var(--ink-2); }
.rl li.top { background: #FFFCF2; }
.rl li.mine { border-color: var(--sc); background: var(--sl); }
.rl li.mine em { font-style: normal; font-size: 10px; background: var(--sc); color: #fff; border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.rnote { font-size: 11.5px; color: var(--ink-2); line-height: 1.6; }
.rnote.staff { background: #E3F4FC; color: #0074B3; border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 12.5px; }
.join { text-align: center; }
.join .res-wk { width: 110px; height: 128px; }
.join .lbl { font-weight: 900; text-align: left; margin-top: 4px; }
.nick { display: flex; flex-direction: column; gap: 8px; }
.nick-prev { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; font-size: 18px; background: var(--cream); border-radius: 14px; min-height: 52px; }
.nick-sel { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }
.nick-sel select { min-width: 0; }

/* せってい */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--cream); border-radius: 14px; padding: 4px; }
.seg button { appearance: none; border: 0; background: none; min-height: 44px; border-radius: 10px; font-weight: 700; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--sd); box-shadow: var(--sh-s); }
.seg10 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.seg10 button { appearance: none; border: 2px solid var(--line); background: #fff; min-height: 44px; border-radius: 12px; font-weight: 900; color: var(--ink-2); }
.seg10 button.on { background: var(--sc); border-color: var(--sc); color: #fff; }
.ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptable th, .ptable td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.ptable td { text-align: right; }
.about p { overflow-wrap: anywhere; }

/* 小さい スマホ（iPhone SE など） */
@media (max-height: 700px) {
  .ob-wk { width: 110px; height: 130px; } .ob h1 { font-size: 23px; }
  .yoji .k { height: 76px; } .yoji .k b { font-size: 38px; }
  .bear { width: 120px; height: 136px; }
  .chk { min-height: 60px; } .chk b { font-size: 34px; }
}
@media (max-width: 360px) {
  .top h1 { font-size: 18px; } .rank-card .ttl b { font-size: 30px; }
  .yoji .k b { font-size: 36px; } .yoji .k small { font-size: 10.5px; }
  .opt.w b { font-size: 23px; } .minis button { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
