/* ミニゴルフ・アトリエ — 芝フェルト × クリーム × 木 */
:root {
  --felt: #3f7a4a;
  --felt-d: #24502f;
  --felt-l: #e3eedd;
  --cream: #f5eedc;
  --cream-hi: #fbf7ec;
  --wood: #a8743f;
  --wood-d: #5a3a1e;
  --wood-l: #d9b27c;
  --red: #c4473a;
  --red-d: #9a3127;
  --mustard: #d9a33a;
  --ink: #2b2117;
  --ink-2: #5d4a36;
  --line: rgba(90, 58, 30, .2);
  --f-head: "Kaisei Decol", "Hiragino Mincho ProN", serif;
  --f-ui: "M PLUS 2", "Hiragino Sans", sans-serif;
  --f-num: "Fraunces", Georgia, serif;
  --r-label: 10px;
  --r-btn: 12px;
  --stitch: 1.5px dashed rgba(90, 58, 30, .45);
  --ease: cubic-bezier(.2, .85, .25, 1);
  --spring: cubic-bezier(.34, 1.5, .55, 1);
  --sa-t: env(safe-area-inset-top, 0px);
  --sa-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--f-ui); color: var(--ink); font-size: 15px; line-height: 1.65; line-break: strict; overflow: hidden;
  background: #3a2614 url(/app-development/apps/a018/img/wood.webp) center / 600px auto; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0; background: rgba(40, 24, 10, .55); pointer-events: none; }
button, a { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3 { font-feature-settings: "palt"; word-break: keep-all; }
p { word-break: normal; }
.num { font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; font-weight: 800; white-space: nowrap; }

.app { position: relative; height: 100dvh; max-width: 430px; margin: 0 auto; overflow: hidden; overflow: clip; background: var(--cream); isolation: isolate; }
@media (min-width: 600px) { .app { box-shadow: 0 30px 80px rgba(0, 0, 0, .55); } }

.screen { position: absolute; inset: 0; display: none; flex-direction: column; background: var(--cream); }
.screen.is-on { display: flex; }
.screen.is-in { animation: in .32s var(--ease); }
@keyframes in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 16px calc(28px + var(--sa-b)); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 18px; border-radius: var(--r-btn);
  font-weight: 800; font-size: 15px; transition: transform .1s var(--spring), box-shadow .1s; user-select: none; word-break: keep-all;
}
.btn svg { width: 22px; height: 22px; }
.btn:active { transform: translateY(3px); }
.btn--green { background: var(--felt-d); color: var(--cream-hi); box-shadow: 0 4px 0 #173a20, 0 10px 18px -8px rgba(0, 0, 0, .5); position: relative; }
.btn--green::after { content: ""; position: absolute; inset: 4px; border-radius: 9px; border: 1.5px dashed rgba(245, 238, 220, .45); pointer-events: none; }
.btn--green:active { box-shadow: 0 1px 0 #173a20; }
.btn--cream { background: var(--cream-hi); color: var(--ink); box-shadow: 0 3px 0 #cdbb93, 0 8px 14px -10px rgba(0, 0, 0, .5); }
.btn--cream:active { box-shadow: 0 0 0 #cdbb93; }
.btn--red { background: var(--red-d); color: #fff; box-shadow: 0 4px 0 #6e2018; }
.btn--text { min-height: 44px; padding: 0 8px; color: var(--felt-d); font-weight: 800; }
.btn--l { min-height: 54px; width: 100%; font-size: 16px; }
.btn--xl { min-height: 64px; width: 100%; font-size: 18px; }
.btn--sq { width: 54px; padding: 0; flex: none; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; flex: none; transition: transform .1s; }
.iconbtn svg { width: 24px; height: 24px; }
.iconbtn:active { transform: scale(.9); }
.iconbtn--wood { background: linear-gradient(#b98a52, #8c5f30); color: var(--cream-hi); box-shadow: inset 0 1px 0 rgba(255, 236, 200, .5), 0 3px 0 #4a2f16; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }

/* ---------- タイトル ---------- */
.screen--title { background: #6b4a2a url(/app-development/apps/a018/img/title.webp) center bottom / cover no-repeat; }
.title__top { display: flex; justify-content: flex-end; padding: calc(10px + var(--sa-t)) 14px 0; }
.title__label {
  align-self: center; margin-top: 4px; padding: 16px 26px 18px; text-align: center; background: var(--cream-hi); border-radius: var(--r-label);
  box-shadow: 0 14px 30px -10px rgba(40, 20, 5, .6); transform: rotate(-2deg); position: relative; max-width: calc(100% - 40px);
}
.title__label::before { content: ""; position: absolute; inset: 6px; border: var(--stitch); border-radius: 6px; pointer-events: none; }
.title__kicker { font-family: var(--f-num); font-style: italic; font-weight: 600; font-size: 14px; color: var(--felt-d); letter-spacing: .04em; }
.logo { font-family: var(--f-head); font-weight: 700; line-height: 1.1; color: var(--ink); display: flex; flex-direction: column; align-items: center; }
.logo__a { font-size: 22px; letter-spacing: .12em; color: var(--felt-d); }
.logo__b { font-size: clamp(42px, 13vw, 54px); letter-spacing: .06em; }
.title__lead { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--ink-2); word-break: keep-all; }
.title__bottom { margin-top: auto; padding: 0 18px calc(18px + var(--sa-b)); display: grid; gap: 12px; }
.title__best {
  justify-self: center; display: flex; align-items: baseline; gap: 6px; padding: 5px 16px; border-radius: 99px; background: var(--cream-hi); color: var(--ink-2);
  font-size: 14px; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.title__best b { font-size: 22px; color: var(--ink); }
.title__bestd { color: var(--felt-d); }
.title__row { display: flex; gap: 10px; }
.title__row .btn--cream:not(.btn--sq) { flex: 1; padding: 0 10px; }

/* ---------- プレイ ---------- */
.screen--play { background: #6e4826; }
.hud {
  display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--sa-t)) 10px 8px; flex: none; position: relative; z-index: 2;
  background: linear-gradient(#7b5129, #5a3a1e); box-shadow: 0 3px 0 #3d2610, 0 8px 18px rgba(0, 0, 0, .35);
}
.hud__hole { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; color: var(--cream-hi); }
.hud__hole .hud__k { grid-row: 1; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #f3dcb4; }
.hud__hole b { grid-row: 1 / 3; grid-column: 1; font-size: 34px; line-height: 1; }
.hud__hole .hud__k { grid-column: 2; }
.hud__name { grid-column: 2; font-family: var(--f-head); font-weight: 700; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud__tag { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 54px; height: 50px; border-radius: 9px; background: var(--cream-hi); color: var(--ink); position: relative; }
.hud__tag::before { content: ""; position: absolute; inset: 3px; border: 1px dashed rgba(90, 58, 30, .4); border-radius: 6px; }
.hud__tag .hud__k { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--ink-2); line-height: 1.2; }
.hud__tag b { font-size: 22px; line-height: 1.05; }
.hud__tag--strokes { background: var(--felt-l); }
.hud__tag--strokes.is-over b { color: var(--red-d); }
.course { position: relative; flex: 1; min-height: 0; overflow: hidden; overflow: clip; }
[hidden] { display: none !important; }
.course__cv { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.course__hint {
  position: absolute; left: 50%; top: 12px; transform: translate(-50%, -8px); display: flex; align-items: center; gap: 8px; padding: 9px 16px;
  background: var(--cream-hi); color: var(--ink); border-radius: 99px; font-size: 14px; font-weight: 800; white-space: nowrap; opacity: 0; transition: .3s var(--ease);
  pointer-events: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); word-break: keep-all;
}
.course__hint svg { width: 20px; height: 20px; color: var(--felt-d); }
.course__hint.is-on { opacity: 1; transform: translate(-50%, 0); animation: nudge 1.6s 1s infinite; }
@keyframes nudge { 50% { transform: translate(-50%, -4px); } }
.course__power {
  position: absolute; right: 12px; top: 12px; padding: 4px 12px; border-radius: 9px; background: var(--cream-hi); color: var(--ink);
  font-family: var(--f-num); font-weight: 800; font-size: 20px; opacity: 0; transition: opacity .15s; pointer-events: none;
}
.course__power.is-on { opacity: 1; }
.course__power.is-max { background: var(--red-d); color: #fff; }
.intro {
  position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); text-align: center; padding: 14px 30px 16px; border-radius: var(--r-label);
  background: var(--cream-hi); box-shadow: 0 16px 34px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; min-width: 210px;
}
.intro::before { content: ""; position: absolute; inset: 6px; border: var(--stitch); border-radius: 6px; }
.intro.is-on { animation: intro 1.3s var(--ease) forwards; }
@keyframes intro { 0% { opacity: 0; transform: translate(-50%, -30%) rotate(-6deg) scale(.8); } 18%, 75% { opacity: 1; transform: translate(-50%, -50%) rotate(-2deg); } 100% { opacity: 0; transform: translate(-50%, -70%) rotate(-2deg); } }
.intro__n { display: flex; align-items: baseline; justify-content: center; gap: 8px; font-size: 14px; font-weight: 800; letter-spacing: .14em; color: var(--felt-d); }
.intro__n b { font-size: 48px; line-height: 1; color: var(--ink); letter-spacing: 0; }
.intro__name { font-family: var(--f-head); font-weight: 700; font-size: 22px; line-height: 1.3; white-space: nowrap; }
.intro__par { font-size: 14px; font-weight: 800; color: var(--ink-2); letter-spacing: .1em; }
.intro__par b { font-size: 18px; color: var(--ink); }
.sunk {
  position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 18px 18px 16px; border-radius: 16px; background: var(--cream-hi); text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .45); transform: translateY(130%); transition: transform .45s var(--spring); z-index: 5;
}
.sunk::before { content: ""; position: absolute; inset: 6px; border: var(--stitch); border-radius: 11px; pointer-events: none; }
.sunk:not(.is-on) { visibility: hidden; transition: transform .3s, visibility 0s .3s; }
.sunk.is-on { transform: none; }
.sunk__k { font-family: var(--f-num); font-weight: 800; font-size: 16px; color: var(--ink-2); }
.sunk__t { font-family: var(--f-head); font-weight: 700; font-size: 38px; line-height: 1.2; color: var(--ink); }
.sunk[data-grade="good"] .sunk__t { color: var(--felt-d); }
.sunk[data-grade="over"] .sunk__t, .sunk[data-grade="out"] .sunk__t { color: var(--red-d); }
.sunk.is-on .sunk__t { animation: pop .5s .1s var(--spring) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.sunk__d { font-size: 14px; font-weight: 700; color: var(--ink-2); margin: 2px 0 12px; }
.sunk__btns { display: grid; gap: 8px; position: relative; }
.demo { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px 16px; display: none; gap: 8px; justify-items: center; background: linear-gradient(transparent, rgba(40, 24, 10, .75) 45%); }
.demo.is-on { display: grid; }
.demo__tag { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px; border-radius: 99px; background: var(--cream-hi); font-size: 14px; font-weight: 800; color: var(--ink); }
.demo__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.pbar { display: flex; align-items: center; gap: 8px; padding: 8px 10px calc(8px + var(--sa-b)); flex: none; background: linear-gradient(#5a3a1e, #472d15); box-shadow: 0 -3px 0 #7b5129; }
.pbar__b { min-height: 48px; min-width: 96px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; border-radius: 12px; background: var(--cream-hi); color: var(--ink); font-weight: 800; font-size: 15px; box-shadow: 0 3px 0 #2e1c0b; transition: transform .1s; }
.pbar__b:active { transform: translateY(2px); }
.pbar__b svg { width: 20px; height: 20px; }
.pbar__mode { flex: 1; text-align: center; color: var(--cream-hi); font-weight: 800; font-size: 14px; white-space: nowrap; }
.pause { position: absolute; inset: 0; z-index: 20; display: none; place-items: center; padding: 20px; background: rgba(30, 18, 6, .62); }
.pause.is-on { display: grid; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.pause__card { width: 100%; max-width: 330px; padding: 22px 18px 10px; border-radius: 16px; background: var(--cream-hi); display: grid; gap: 10px; position: relative; text-align: center; }
.pause__card::before { content: ""; position: absolute; inset: 6px; border: var(--stitch); border-radius: 11px; pointer-events: none; }
.pause__t { font-family: var(--f-head); font-weight: 700; font-size: 28px; }
.pause__d { font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.pause__row { display: flex; justify-content: space-between; position: relative; }

/* ---------- 上部バー ---------- */
.bar { display: flex; align-items: center; padding: calc(6px + var(--sa-t)) 8px 6px; flex: none; background: linear-gradient(#7b5129, #5a3a1e); color: var(--cream-hi); box-shadow: 0 3px 0 #3d2610; position: relative; z-index: 2; }
.bar__t { flex: 1; text-align: center; font-family: var(--f-head); font-weight: 700; font-size: 20px; }
.bar__sp { width: 44px; }
.sec { font-family: var(--f-head); font-weight: 700; font-size: 19px; margin: 22px 2px 10px; display: flex; align-items: center; gap: 10px; }
.sec::after { content: ""; flex: 1; border-top: var(--stitch); }

/* ---------- ホール選択 ---------- */
.screen--holes .scroll { padding-top: 14px; }
.shelf + .shelf { margin-top: 22px; }
.shelf__head { position: relative; height: 128px; border-radius: 14px; background: center 40% / cover no-repeat; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 12px; overflow: hidden; }
.shelf__no { font-size: 13px; font-weight: 800; color: var(--cream-hi); background: var(--felt-d); padding: 1px 10px; border-radius: 99px; }
.shelf__t { font-family: var(--f-head); font-weight: 700; font-size: 22px; line-height: 1.3; margin-top: 4px; background: var(--cream-hi); padding: 0 10px; border-radius: 6px; }
.shelf__d { margin-top: 4px; font-size: 13px; font-weight: 700; background: var(--cream-hi); padding: 2px 8px; border-radius: 5px; color: var(--ink-2); }
.shelf__grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.hcard { position: relative; display: flex; flex-direction: column; border-radius: 12px; background: var(--cream-hi); box-shadow: 0 3px 0 #d9c9a3, 0 10px 18px -12px rgba(0, 0, 0, .5); overflow: hidden; transition: transform .12s var(--spring); }
.hcard:active { transform: scale(.96); }
.hcard__cv { width: 100%; aspect-ratio: 360 / 560; display: block; background: #c9975c; }
.hcard__no { position: absolute; left: 6px; top: 6px; display: flex; align-items: baseline; gap: 3px; padding: 0 7px; border-radius: 7px; background: var(--cream-hi); font-size: 11px; font-weight: 800; color: var(--ink-2); }
.hcard__no b { font-size: 17px; color: var(--ink); }
.hcard__name { padding: 6px 8px 0; font-family: var(--f-head); font-weight: 700; font-size: 13px; line-height: 1.35; min-height: 2.7em; word-break: keep-all; }
.hcard__meta { display: flex; justify-content: space-between; padding: 2px 8px 8px; font-size: 12px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.hcard__meta b { font-size: 14px; color: var(--ink); }
.hcard__best.is-under b { color: var(--felt-d); }
.hcard.is-locked .hcard__cv { filter: grayscale(1) brightness(.75); }
.hcard__lock { position: absolute; left: 6px; right: 6px; top: 34%; display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: 8px; background: var(--ink); color: var(--cream-hi); font-size: 11px; font-weight: 800; text-align: center; line-height: 1.35; }
.hcard__lock svg { width: 20px; height: 20px; }

/* ---------- スコアカード ---------- */
.sc { margin-top: 12px; background: var(--cream-hi); border-radius: 14px; padding: 16px 12px 12px; position: relative; box-shadow: 0 3px 0 #d9c9a3, 0 12px 24px -16px rgba(0, 0, 0, .5); }
.sc::before { content: ""; position: absolute; inset: 6px; border: var(--stitch); border-radius: 10px; pointer-events: none; }
.sc__head { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 6px 10px; position: relative; }
.sc__k { font-size: 14px; font-weight: 800; color: var(--felt-d); }
.sc__date { font-family: var(--f-head); font-weight: 700; font-size: 20px; line-height: 1.3; }
.sc__total { display: flex; align-items: baseline; gap: 6px; }
.sc__total b { font-size: 44px; line-height: 1; }
.sc__diff { font-family: var(--f-num); font-weight: 800; font-size: 18px; color: var(--red-d); }
.sc__diff.is-under { color: var(--felt-d); }
.sc__stamp { position: absolute; right: 90px; top: -6px; padding: 2px 10px; border: 2.5px solid var(--red); color: var(--red-d); font-family: var(--f-num); font-weight: 800; font-size: 15px; border-radius: 6px; transform: rotate(-10deg); background: var(--cream-hi); animation: stamp .45s .3s var(--spring) both; }
.sc__stamp[hidden] { display: none; }
@keyframes stamp { from { transform: rotate(-10deg) scale(2.2); opacity: 0; } }
.sc__tablewrap { overflow-x: auto; margin: 0 -4px; position: relative; }
.sc__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sc__table th, .sc__table td { text-align: center; border-bottom: 1px solid var(--line); padding: 6px 0; font-size: 15px; }
.sc__table thead th { font-size: 13px; color: var(--ink-2); font-weight: 800; }
.sc__table tbody th { font-size: 12px; font-weight: 800; color: var(--ink-2); width: 44px; text-align: left; padding-left: 4px; white-space: nowrap; }
.sc__table thead th:first-child { width: 44px; text-align: left; padding-left: 4px; font-size: 11px; }
.sc__sum { width: 38px; background: var(--felt-l); }
.sc__table tr.js-scme td { height: 40px; }
.mk { display: inline-grid; place-items: center; min-width: 25px; height: 25px; font-family: var(--f-num); font-weight: 800; font-size: 15px; color: var(--ink); }
.mk--under { border: 2px solid var(--felt-d); border-radius: 50%; color: var(--felt-d); }
.mk--over { border: 2px solid var(--red); border-radius: 3px; color: var(--red-d); }
.mk--out { background: var(--red-d); color: #fff; border-radius: 3px; }
.mk--none { color: var(--ink-2); }
.sc__legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 4px 0; font-size: 13px; color: var(--ink-2); position: relative; }
.sc__legend .mk { transform: scale(.85); }
.sc__legend .mk + .mk, .sc__legend .mk--over { margin-left: 8px; }
.rounds { list-style: none; }
.rd { display: grid; grid-template-columns: 3em 1fr auto 2.8em; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px dashed var(--line); }
.rd__d { font-size: 15px; color: var(--ink-2); }
.rd__bar { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.rd__bar i { flex: 1; height: calc(var(--h) * 3.6px); background: var(--wood-l); border-radius: 2px 2px 0 0; }
.rd__bar i.u { background: var(--felt); }
.rd__bar i.o { background: #d98a7f; }
.rd__t { font-size: 22px; }
.rd__df { font-size: 15px; color: var(--ink-2); text-align: right; }
.rd.is-best .rd__t { color: var(--felt-d); }
.sc-empty { display: none; text-align: center; padding: 14px; }
.sc-empty.is-on { display: block; }
.sc-empty__t { font-family: var(--f-head); font-weight: 700; font-size: 19px; word-break: keep-all; }
.sc-empty__d { font-size: 14px; color: var(--ink-2); }
.sc-photo { margin: 18px 0 70px; }
.sc-photo img { width: 100%; height: auto; border-radius: 14px; }
.cbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 12px 16px calc(12px + var(--sa-b)); background: linear-gradient(rgba(245, 238, 220, 0), var(--cream) 40%); }
.cbar .btn--l { flex: 1; width: auto; }
.cbar .btn--sq { height: 54px; }

/* ---------- 設定 ---------- */
.howto { display: grid; gap: 12px; background: var(--cream-hi); border-radius: 14px; padding: 12px; box-shadow: 0 3px 0 #d9c9a3; }
.howto img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; }
.howto__list { list-style: none; counter-reset: h; display: grid; gap: 12px; }
.howto__list li { counter-increment: h; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; }
.howto__list li::before { content: counter(h); grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--felt-d); color: var(--cream-hi); font-family: var(--f-num); font-weight: 800; }
.howto__list b { font-family: var(--f-head); font-size: 17px; line-height: 1.5; }
.howto__list span { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.grp { background: var(--cream-hi); border-radius: 14px; box-shadow: 0 3px 0 #d9c9a3; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 14px; }
.row + .row { border-top: 1px dashed var(--line); }
.row--stack { flex-direction: column; align-items: stretch; }
.row__l { display: flex; flex-direction: column; font-weight: 800; font-size: 15px; line-height: 1.4; }
.row__l small { font-weight: 500; font-size: 13px; color: var(--ink-2); }
.row__n { font-size: 13px; color: var(--ink-2); }
.row--danger { width: 100%; justify-content: flex-start; color: var(--red-d); font-weight: 800; }
.row--danger svg { width: 22px; height: 22px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: #ebe0c6; }
.seg button { min-height: 42px; border-radius: 9px; font-weight: 800; font-size: 15px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--felt-d); color: var(--cream-hi); }
.sw { width: 54px; height: 32px; border-radius: 99px; background: #cdbb93; position: relative; flex: none; transition: background .2s; }
.sw i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .25s var(--spring); }
.sw[aria-checked="true"] { background: var(--felt-d); }
.sw[aria-checked="true"] i { transform: translateX(22px); }
.about { padding: 16px; display: grid; gap: 12px; }
.about__h { display: flex; align-items: center; gap: 14px; }
.about__h img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }
.about__n { font-family: var(--f-head); font-weight: 700; font-size: 19px; }
.about__v { font-size: 14px; color: var(--ink-2); }
.about__note { font-size: 14px; line-height: 1.75; }
.about__k { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--felt-l); white-space: nowrap; }
.about__cta { justify-content: space-between; }

/* ---------- シート等 ---------- */
.scrim { position: absolute; inset: 0; z-index: 40; background: rgba(30, 18, 6, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; display: grid; gap: 10px; padding: 10px 20px calc(20px + var(--sa-b)); background: var(--cream-hi); border-radius: 20px 20px 0 0; transform: translateY(105%); visibility: hidden; transition: transform .32s var(--ease), visibility 0s .32s; }
.sheet.is-on { transform: none; visibility: visible; transition: transform .32s var(--ease); }
.sheet__grab { justify-self: center; width: 40px; height: 5px; border-radius: 9px; background: #d8c9a6; margin-bottom: 6px; }
.sheet h2 { font-family: var(--f-head); font-weight: 700; font-size: 21px; line-height: 1.4; }
.sheet p { font-size: 15px; color: var(--ink-2); }
.toast { position: absolute; left: 50%; top: calc(76px + var(--sa-t)); z-index: 50; transform: translate(-50%, -14px); opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 12px; background: var(--ink); color: var(--cream-hi); font-size: 14px; font-weight: 800; max-width: calc(100% - 32px); transition: .25s var(--ease); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.splash { position: absolute; inset: 0; z-index: 90; display: none; place-content: center; justify-items: center; gap: 14px; background: var(--felt-d); }
.splash.is-on { display: grid; animation: spl .9s forwards; }
@keyframes spl { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
.splash img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
.splash p { font-family: var(--f-head); font-weight: 700; font-size: 22px; color: var(--cream-hi); }
.nojs { position: absolute; left: 16px; right: 16px; bottom: 40px; z-index: 99; padding: 14px; border-radius: 12px; background: var(--ink); color: var(--cream-hi); font-size: 15px; }
.nojs[hidden] { display: none; }

@media (max-height: 700px) {
  .hud__tag { height: 44px; }
  .hud__hole b { font-size: 28px; }
  .title__label { padding: 10px 22px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .intro.is-on { animation: none; opacity: 1; }
}
