/* 書体(SIL Open Font License 1.1 / 画面で使う文字に絞ったサブセット。LICENSES.md 参照)
   M PLUS Rounded 1c: Copyright 2016 The Rounded M+ Project Authors.
   Dela Gothic One: Copyright 2020 The Dela Gothic Project Authors (https://github.com/syakuzen/DelaGothic)
   https://openfontlicense.org */
@font-face { font-family: 'M PLUS Rounded 1c'; src: url(assets/fonts/mplus-rounded-medium.woff2) format('woff2'); font-weight: 100 600; font-display: swap; }
@font-face { font-family: 'M PLUS Rounded 1c'; src: url(assets/fonts/mplus-rounded-bold.woff2) format('woff2'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'Dela Gothic One'; src: url(assets/fonts/dela-gothic-one.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --sky: #03040C;
  --navy: #0E2240;
  --gold: #F1D7A0;
  --pink: #FF2E88;
  --hit: #FFE14D;
  --cyan: #3DF5FF;
  --text: #FFF8EC;
  --muted: rgba(255, 248, 236, .66);
  --card: rgba(14, 34, 64, .82);
  --line: rgba(160, 190, 255, .28);
  --body: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', sans-serif;
  --display: 'Dela Gothic One', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--sky); }
body {
  color: var(--text); font-family: var(--body); font-weight: 700;
  overflow: hidden; overscroll-behavior: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
/* スマホは全面、PC では中央に縦長 */
#app {
  position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(100vw, 480px, calc(100vh * .70)); /* dvh に対応していないブラウザ向け */
  width: min(100vw, 480px, calc(100dvh * .70)); overflow: hidden; background: var(--sky);
}
@media (min-width: 500px) { #app { box-shadow: 0 0 0 1px rgba(160, 190, 255, .12), 0 0 60px rgba(70, 40, 130, .35); } }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; touch-action: manipulation; cursor: pointer; }
a { color: var(--cyan); }
.num { font-family: var(--display); font-weight: 400; font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); }
.muted { color: var(--muted); font-weight: 500; }
.small { font-size: 12px; }

#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* ---------- 上帯 ---------- */
#hud {
  position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: 48px;
  display: flex; align-items: center; gap: 10px; padding: 0 8px 0 12px;
  margin-top: env(safe-area-inset-top);
  background: linear-gradient(rgba(3, 4, 12, .75), rgba(3, 4, 12, 0)); pointer-events: none;
}
.hud-score { min-width: 86px; font-size: 22px; line-height: 1; white-space: nowrap; }
.hud-score small { font-size: 12px; margin-left: 2px; }
.hud-mid { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hud-time { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.hud-time i { display: block; height: 100%; width: 100%; background: var(--cyan); border-radius: 4px; transform-origin: left; }
.hud-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.hud-miss { display: flex; gap: 4px; height: 12px; flex: none; }
.hud-next { font-size: 11px; line-height: 1; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hud-miss span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 248, 236, .5); }
.hud-miss span.on { background: #FF9A9A; border-color: #FF9A9A; }
.icon-btn {
  pointer-events: auto; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--card); display: grid; place-items: center; font-size: 22px; line-height: 1; padding: 0;
}
.pause-ico { width: 12px; height: 14px; border-left: 4px solid var(--text); border-right: 4px solid var(--text); }

/* ---------- 画面 ---------- */
.screen { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 16px calc(env(safe-area-inset-bottom) + 12px); }
#title { justify-content: space-between; }
.brand { margin: 12px 0 0; text-align: center; font-size: 13px; letter-spacing: .2em; color: var(--muted); font-weight: 700; }
.title-art { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; }
.dogcv { display: block; width: 100%; }
#titleDog { flex: 1; min-height: 72px; max-height: 280px; }
.logo {
  margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(46px, 14vw, 62px); line-height: 1.05; letter-spacing: .02em;
  color: var(--text); text-shadow: 0 3px 0 var(--navy), 0 0 24px rgba(255, 46, 136, .45);
}
.tag { margin: 6px 0 0; font-size: 14px; color: var(--muted); font-weight: 500; }
.goal { margin: 4px 0 0; font-size: 13px; color: var(--gold); font-weight: 700; }
.title-ctl { display: flex; flex-direction: column; gap: 10px; padding-bottom: 4px; }
#titleMain { display: flex; flex-direction: column; gap: 10px; }
.best { margin: 0; text-align: center; font-size: 14px; color: var(--gold); min-height: 1.2em; }
.next-title { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.next-title:empty { display: none; }
/* 背の低い画面ではタイトルの目標の行を省く(あそびかた・結果・プレイ中の上帯にも出している) */
@media (max-height: 600px) { .goal { display: none; } }
.title-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.title-row .btn.sub { font-size: 14px; padding: 8px 4px; }
.btn.stage-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--navy); border: 1.5px solid var(--gold); font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--text); padding: 8px 16px; }
.btn.stage-btn small { font-family: var(--body); font-size: 13px; font-weight: 700; color: var(--gold); white-space: nowrap; }
/* ステージ選択 */
.stage-card { background: var(--card); border: 1.5px solid var(--gold); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.stage-card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; }
.stage-card h3 small { font-family: var(--body); font-size: 13px; color: var(--gold); margin-left: 6px; font-weight: 700; }
.stage-card p { margin: 0; font-size: 13px; }
.stage-targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.stage-targets span { background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 6px 2px; font-size: 12px; white-space: nowrap; }
.stage-targets b { display: block; font-size: 15px; color: var(--gold); }
.stage-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.stage-cell { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; min-height: 56px; padding: 4px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: var(--display); font-size: 18px; }
.stage-cell small { font-family: var(--body); font-size: 10px; color: var(--gold); letter-spacing: -1px; }
.stage-cell.sel { border-color: var(--gold); background: var(--navy); }
.stage-cell.lock { opacity: .4; }
.stage-cell.mile { border-style: double; border-width: 3px; }
/* ミッション */
.mission { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.mission b { font-size: 14px; }
.mission small { grid-column: 1; font-size: 12px; color: var(--muted); font-weight: 500; }
.mission .prog { grid-row: 1 / span 2; grid-column: 2; font-size: 13px; color: var(--gold); white-space: nowrap; text-align: right; }
.mission.done { border-color: var(--gold); }
.mission .rw { grid-column: 1; font-size: 11px; color: var(--gold); }
.mission-h { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.mission-h small { display: block; font-size: 12px; font-weight: 500; color: var(--gold); }
.mission.locked { opacity: .5; }
/* きせかえ */
.skin-dog { width: 140px; height: 120px; align-self: center; }
.skin-h { margin: 4px 0 0; font-size: 15px; }
.skin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.skin-item { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; min-height: 64px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; }
.skin-item i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--text); }
.skin-item small { font-size: 10px; color: var(--muted); line-height: 1.25; text-align: center; font-weight: 500; }
.skin-item[aria-pressed=true] { border-color: var(--gold); background: var(--navy); }
.skin-item:disabled { opacity: .55; }
/* 結果のステージ表示 */
.res-stars { margin: 0; font-size: 26px; letter-spacing: 4px; color: var(--gold); text-align: center; }
.res-stars small { display: block; font-size: 14px; letter-spacing: 0; color: var(--text); }
.res-unlock { margin: 0; font-size: 13px; color: var(--gold); text-align: center; line-height: 1.5; }
.night { margin: 0; text-align: center; font-size: 12px; color: var(--gold); font-weight: 500; }

/* ---------- ボタン ---------- */
.btn { display: block; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); min-height: 48px; padding: 8px 12px; transition: transform .08s, filter .08s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.main {
  width: 100%; min-height: 64px; border: none; background: var(--pink); color: #fff;
  font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .03em;
  box-shadow: 0 4px 0 #A3134F, 0 0 24px rgba(255, 46, 136, .35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15;
}
.btn.main small { font-family: var(--body); font-size: 12px; font-weight: 700; opacity: .9; }
.btn.main.done { background: var(--card); box-shadow: none; border: 1.5px solid var(--line); font-size: 18px; }
.btn.sub { font-size: 15px; }
.btn.wide { width: 100%; }
a.btn { text-decoration: none; }
.btn.choice { min-height: 60px; font-size: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.linkish { background: none; border: none; color: var(--muted); font-size: 13px; text-decoration: underline; min-height: 44px; padding: 6px 14px; align-self: center; font-weight: 500; }
.sound-ask { text-align: center; display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; }
.sound-ask .ask { margin: 0; font-size: 17px; }
.challenge { background: var(--card); border: 1.5px solid var(--gold); border-radius: 16px; padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.challenge p { margin: 0; }
.chal-head { font-size: 13px; color: var(--gold); }
.chal-body { font-size: 17px; }
.challenge small { color: var(--muted); font-weight: 500; font-size: 12px; }
.chal-note { font-size: 13px; color: var(--gold); font-weight: 500; }

/* ---------- 一時停止 ---------- */
.overlay { position: absolute; inset: 0; z-index: 20; background: rgba(3, 4, 12, .72); display: grid; place-items: center; padding: 16px; }
.card { width: 100%; max-width: 340px; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 20px 16px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.card h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; }
.card p { margin: 0; font-size: 13px; }
#btnQuit.armed { border-color: var(--gold); color: var(--gold); }

/* ---------- 結果 ---------- */
#result { background: rgba(3, 4, 12, .55); justify-content: space-between; overflow-y: auto; }
.res-body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 14px; }
.res-head { margin: 0; font-size: 14px; color: var(--muted); }
.res-dog { height: 110px; width: 160px; }
.res-score { font-size: clamp(40px, 14vw, 64px); line-height: 1; white-space: nowrap; color: var(--text); text-shadow: 0 0 24px rgba(255, 225, 77, .35); }
.res-score small { font-size: 18px; margin-left: 4px; font-family: var(--body); }
.res-stamp { display: flex; align-items: center; gap: 10px; animation: stampIn .32s cubic-bezier(.2, 1.4, .4, 1) both; }
.res-stamp.slow { animation-duration: 1.07s; }
.res-stamp canvas { width: 96px; height: 96px; }
.stamp-text { display: flex; flex-direction: column; align-items: flex-start; }
.stamp-text small { font-size: 12px; color: var(--muted); }
.ladder { display: flex; gap: 4px; margin: 4px 0 2px; }
.ladder i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(241, 215, 160, .45); }
.ladder i.on { background: var(--gold); border-color: var(--gold); }
.ladder i.cur { box-shadow: 0 0 0 2px rgba(241, 215, 160, .35); }
.stamp-text .res-next { white-space: nowrap; }
.stamp-text b { font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--gold); }
@keyframes stampIn { from { transform: scale(1.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.res-record {
  background: linear-gradient(90deg, transparent, rgba(241, 215, 160, .25), transparent); color: var(--gold);
  font-family: var(--display); font-weight: 400; font-size: clamp(16px, 5vw, 20px); padding: 6px 16px; white-space: nowrap; max-width: 100%;
  animation: fadeUp .4s ease both;
}
.res-record small { font-family: var(--body); font-weight: 700; font-size: 12px; margin-left: 6px; }
@keyframes fadeUp { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.res-emoji { margin: 2px 0 0; font-size: 20px; letter-spacing: 1px; word-break: break-all; max-width: 100%; }
.res-stats { margin: 0; font-size: 13px; color: var(--muted); font-weight: 500; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; }
.res-stats span { white-space: nowrap; }
.res-chal { margin: 0; font-size: 15px; color: var(--gold); }
.res-skip { margin: 4px 0 0; font-size: 12px; }
/* ボタン列は下端に貼り付ける(結果が長くても「もう1回」「シェア」が画面に入る) */
.res-btns {
  position: sticky; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 0; margin: auto -16px 0;
  background: linear-gradient(rgba(3, 4, 12, 0), rgba(3, 4, 12, .92) 18px); animation: fadeUp .25s ease both;
}
.res-btns .btn.main { min-height: 72px; font-size: 26px; }
.made { margin: 6px 0 0; text-align: center; font-size: 11px; color: var(--muted); letter-spacing: .08em; font-weight: 500; }
/* 背の低い画面: 犬を小さく、さらに低ければ隠す */
@media (max-height: 700px) {
  .res-body { gap: 4px; padding-top: 8px; }
  .res-dog { height: 72px; width: 110px; }
  .res-stamp canvas { width: 76px; height: 76px; }
  .stamp-text b { font-size: 24px; }
}
@media (max-height: 600px) {
  .res-dog { display: none; }
}

/* ---------- パネル ---------- */
.panel { position: absolute; inset: 0; z-index: 10; background: rgba(3, 4, 12, .985); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; }
.panel-head h2 small { font-family: var(--body); font-size: 14px; color: var(--gold); margin-left: 6px; }
.panel-body { flex: 1; overflow-y: auto; padding: 14px 16px calc(env(safe-area-inset-bottom) + 24px); display: flex; flex-direction: column; gap: 10px; -webkit-user-select: text; user-select: text; }
.prose { font-weight: 500; font-size: 14px; line-height: 1.7; display: block; }
.prose h3 { font-size: 16px; margin: 18px 0 6px; color: var(--gold); font-weight: 800; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 8px; }
.prose ul { margin: 0 0 8px; padding-left: 1.2em; }
/* 文中のリンクも押しやすく(行の高さは変えずに押せる範囲を広げる) */
.prose a { display: inline-block; padding: 11px 2px; margin: -11px -2px; }
.tbl-wrap { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { border-bottom: 1px solid var(--line); padding: 5px 4px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 700; white-space: nowrap; }
td:first-child { white-space: nowrap; }
td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.rates { font-size: clamp(11.5px, 3.6vw, 12.5px); }
table.rates th.n { text-align: right; line-height: 1.3; }
table.rates th small { display: block; font-size: 10px; color: var(--gold); white-space: normal; }
table.rates td, table.rates th { padding: 5px 2px; }

.dex-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dex-cell { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 2px; text-align: center; min-width: 0; }
.dex-cell canvas { width: 100%; aspect-ratio: 1; display: block; }
.dex-cell b { display: block; font-size: 10.5px; line-height: 1.25; min-height: 2.5em; overflow-wrap: anywhere; }
.dex-cell small { display: block; font-size: 10px; color: var(--muted); font-weight: 500; }
.dex-cell.hz { border-color: rgba(255, 154, 154, .35); }

.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--line); }
.set-row > span, .set-row > label { font-size: 15px; }
.set-row input[type=range] { flex: 1; max-width: 200px; accent-color: var(--pink); height: 32px; }
.seg { display: flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.seg button { background: none; border: none; min-height: 44px; min-width: 52px; padding: 0 10px; font-size: 14px; }
.seg button:disabled { opacity: .4; cursor: default; }
.seg button[aria-pressed=true] { background: var(--pink); color: #fff; }

.share-preview { display: grid; place-items: center; }
.share-preview img { width: min(56%, 210px); aspect-ratio: 9 / 16; border-radius: 12px; border: 1px solid var(--line); background: var(--navy); }
.share-inapp { margin: 0; font-size: 13px; font-weight: 500; color: var(--gold); border: 1px solid rgba(241, 215, 160, .45); border-radius: 10px; padding: 8px 10px; }
.share-text { margin: 0; font-size: 13px; font-weight: 500; word-break: break-all; background: var(--card); border-radius: 10px; padding: 8px 10px; }

#toast {
  position: absolute; z-index: 40; left: 16px; right: 16px; top: calc(env(safe-area-inset-top) + 60px); margin: 0;
  background: var(--navy); border: 1.5px solid var(--gold); color: var(--text); border-radius: 12px; padding: 10px 14px; font-size: 14px; text-align: center;
  animation: fadeUp .25s ease both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- ランキング・友達・設定(サーバー) ---------- */
.title-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.title-links .linkish { padding: 6px 8px; }
a.linkish { display: inline-flex; align-items: center; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.tabs button { background: none; border: none; min-height: 44px; font-size: 15px; }
.tabs button[aria-selected=true] { background: var(--navy); color: var(--gold); font-weight: 700; }
.rank-me { background: var(--card); border: 1.5px solid var(--gold); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.rank-me b { font-size: 15px; }
.rank-me small { font-size: 12px; color: var(--muted); font-weight: 500; }
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rank-list li { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; min-height: 40px; }
.rank-list li.me { border-color: var(--gold); }
.rank-list .r { font-family: var(--display); font-size: 16px; color: var(--gold); text-align: center; }
.rank-list .n { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rank-list .s { font-family: var(--display); font-size: 15px; white-space: nowrap; }
.rank-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.friend-box { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.friend-box h3 { margin: 0; font-size: 14px; }
.friend-code { font-family: var(--display); font-size: 22px; letter-spacing: 2px; text-align: center; }
.friend-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.friend-add input, .transfer input, .nick-row input { min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--text); padding: 0 10px; font-size: 16px; min-width: 0; width: 100%; box-sizing: border-box; }
.nick-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.req-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; align-items: center; font-size: 14px; }
.req-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.req-row .btn { min-height: 44px; padding: 4px 8px; font-size: 13px; }
.req-row .btn[data-armed="1"] { max-width: 6.5em; white-space: normal; line-height: 1.2; } /* 2度押しの文言は2行に折って、行からはみ出さない */
.friend-more { justify-self: end; }
.set-h { margin: 14px 0 0; font-size: 15px; }
.transfer { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.transfer code { font-size: 13px; word-break: break-all; background: rgba(0, 0, 0, .3); padding: 8px; border-radius: 8px; user-select: all; -webkit-user-select: all; }
.warn { margin: 0; font-size: 13px; color: #FFB4B4; }
.btn.danger { border-color: rgba(255, 154, 154, .5); color: #FFB4B4; }
.res-rank { margin: 0; font-size: 14px; color: var(--gold); text-align: center; }
.res-promo { display: flex; flex-direction: column; align-items: center; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 10px 0; font-size: 14px; }
.res-promo a { color: var(--text); min-height: 44px; display: inline-flex; align-items: center; text-align: center; }
.res-btns .two.links { gap: 0; }
a.made { display: block; text-decoration: none; min-height: 44px; line-height: 44px; margin: 0; }
.skin-item .hat-thumb { width: 40px; height: 32px; object-fit: contain; }
/* 23〜5時は外へのリンク(Scopidog・ほかのゲーム)を出さない(js/ui.js の quietLinks) */
#app.quiet a.out, #app.quiet .out-p { display: none; }
