/* M Jumbo site styles. Phone-first; the eight mockup screens are the target at 390px. Desktop reflows at 900px+. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-16); line-height: var(--lh-body);
  font-feature-settings: "kern" 1, "tnum" 1; font-variant-numeric: tabular-nums lining-nums;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + var(--tab-lift) + env(safe-area-inset-bottom));
}
:lang(ja) { line-height: var(--lh-body-ja); font-style: normal; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { line-height: var(--lh-head-ja); font-weight: 900; text-wrap: balance; word-break: auto-phrase; }
h1, h2, h3 { margin: 0; line-height: var(--lh-head); font-weight: 800; letter-spacing: -0.01em; hyphens: none; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; }
img, svg { display: block; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; display: inline-flex; align-items: center; min-height: 44px; padding: var(--s-2) var(--s-4); background: var(--blue); color: var(--text-on-blue); border-radius: var(--r-chip); }
.skip-link:focus { top: var(--s-2); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* Coin mark: gold with an M */
.coin, .coin-sm { stroke: none; fill: var(--gold); flex: none; }
.coin { width: 22px; height: 22px; }
.coin-sm { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 30; height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0; display: flex; align-items: center; gap: var(--s-3);
  background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--white-60);
}
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 44px; flex: 0 1 auto; min-width: 0; }
.tagline { font-size: var(--fs-11); font-weight: 600; color: var(--text-2); letter-spacing: 0.04em; white-space: nowrap; line-height: 1.2; }
.has-back .brand { align-items: center; }
.brand img { height: auto; max-height: 26px; width: auto; max-width: 100%; }
.brand-ja { max-height: 26px; }
.back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: calc(-1 * var(--s-3)); color: var(--blue); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: var(--s-1); flex: none; }
.wallet { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 6px 0 10px; border: 1.5px solid var(--border-blue); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-1); transition: background-color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out); }
.wallet:active { transform: scale(0.97); }
.wallet-ic { color: var(--blue); width: 22px; height: 22px; }
.wallet-text { display: flex; flex-direction: column; gap: 3px; line-height: 1.15; border-left: 1px solid var(--border); padding-left: 8px; }
.wallet-label { font-size: var(--fs-11); font-weight: 600; color: var(--text-2); letter-spacing: 0.02em; }
.wallet-num { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; font-size: var(--fs-15); color: var(--blue-text); }
.wallet .chev { color: var(--blue); width: 16px; height: 16px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-chip); color: var(--blue); transition: background-color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out); }
.icon-btn:active { transform: scale(0.94); }
.menu-btn { margin-right: calc(-1 * var(--s-2)); }
.desk-nav { display: none; }

/* ---------- Main ---------- */
.main { flex: 1 0 auto; width: 100%; padding: var(--s-3) var(--gutter) var(--s-5); max-width: var(--content-max); margin: 0 auto; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); margin: var(--s-1) 0 var(--s-3); }
.page-head h1 { font-size: var(--fs-28); flex: 1 1 auto; }
.page-head .sub { flex-basis: 100%; color: var(--text-2); font-size: var(--fs-15); }
.section { margin-top: var(--s-5); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.section-head h2 { font-size: var(--fs-20); display: flex; align-items: center; gap: var(--s-2); color: var(--sky-ink); }
.crown { width: 24px; height: 24px; color: var(--tag-popular); }
#pick-title .crown { color: var(--blue); }
.more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--blue-text); font-weight: 600; font-size: var(--fs-14); }
.chev { width: 18px; height: 18px; flex: none; }
.empty { color: var(--text-2); padding: var(--s-6) 0; text-align: center; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-pill {
  display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 52px; padding: var(--s-2) var(--s-4);
  background: var(--blue); color: var(--text-on-blue); font-weight: 700; font-size: var(--fs-16); border-radius: var(--r-chip);
  text-align: center; box-shadow: var(--shadow-blue);
  transition: background-color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out), box-shadow var(--t-hover) var(--ease-out);
}
.btn-primary:active, .btn-pill:active { transform: scale(0.98); background: var(--blue-press); }
.btn-pill { display: inline-flex; width: auto; min-height: 46px; padding: 0 var(--s-5); border-radius: var(--r-pill); font-size: var(--fs-15); }
.btn-primary .chev, .btn-pill .chev { stroke-width: 2.25; }
.btn-text { display: block; width: 100%; min-height: 44px; color: var(--text-2); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover, .btn-pill:hover { background: var(--blue-press); }
  .icon-btn:hover { background: var(--surface); }
  .more:hover { color: var(--blue); }
}

/* ---------- Pills, segmented ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 0 6px; margin: -5px 0 calc(var(--s-4) - 5px); }
/* The pill is a 44px tap target; the visible 34px face is the inner span, as in the mockup. */
.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; font-size: var(--fs-12); font-weight: 600; white-space: nowrap; border-radius: var(--r-pill); }
.pill-face { display: inline-flex; align-items: center; min-height: 34px; padding: 0 11px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--border); color: var(--text); transition: background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out); }
.pill[aria-pressed="true"] .pill-face { background: var(--blue); color: var(--text-on-blue); }
.pill:active .pill-face { transform: scale(0.96); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-pill); margin-bottom: var(--s-4); }
.segmented button { min-height: 44px; border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-15); color: var(--text-2); transition: background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out); }
.segmented button[aria-selected="true"] { background: var(--blue); color: var(--text-on-blue); box-shadow: var(--shadow-1); }

/* ---------- Prize cards ---------- */
.prize-grid { display: grid; gap: var(--s-3); }
.prize-grid-store { grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-bottom: var(--s-4); }
.prize-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); min-width: 0; position: relative; }
.prize-img { position: relative; }
.tag { position: absolute; top: 8px; left: 8px; padding: 3px 10px; border-radius: var(--r-pill); color: var(--white); font-size: var(--fs-11); font-weight: 700; line-height: 1.3; box-shadow: var(--shadow-1); }
.tag-popular { background: var(--tag-popular); } .tag-featured { background: var(--tag-featured); } .tag-new { background: var(--tag-new); } .tag-experience { background: var(--tag-experience); }
.prize-link { display: flex; flex-direction: column; height: 100%; padding: var(--s-2); gap: 2px; transition: transform var(--t-press) var(--ease-out); }
.prize-link:active { transform: scale(0.98); }
.prize-img { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-chip); background-color: var(--art-bg, var(--surface)); background-image: var(--art, none); background-position: center; background-size: var(--art-size, contain); background-repeat: no-repeat; margin-bottom: var(--s-1); overflow: hidden; }
.prize-grid-store .prize-img { aspect-ratio: 1; }
.prize-name { font-weight: 700; font-size: var(--fs-14); line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
.prize-grid-store .prize-name { font-size: var(--fs-13); }
.prize-denom { color: var(--text-2); font-size: var(--fs-13); }
.prize-coins { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: var(--s-1); color: var(--blue-text); font-weight: 700; font-size: var(--fs-15); }
.prize-grid-store .prize-coins { font-size: var(--fs-13); }
.prize-grid-store .coin-sm { width: 16px; height: 16px; }

/* ---------- Games ---------- */
.search-row { margin: 0 0 var(--s-3); }
.search-row input { width: 100%; min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--border); border-radius: var(--r-chip); background: var(--surface); }
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.game-art { position: relative; display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 1 / 1; border-radius: var(--r-card); overflow: hidden; background: var(--art, var(--surface-2)) center / cover no-repeat; box-shadow: var(--shadow-1); transition: transform var(--t-press) var(--ease-out); }
.game-art:active { transform: scale(0.98); }
.game-title { width: 100%; padding: 28px var(--s-2) var(--s-3); background: linear-gradient(to top, var(--band), transparent); color: var(--white); font-weight: 800; font-size: var(--fs-18); text-align: center; text-shadow: 0 1px 2px var(--ink-50); line-height: 1.2; }
:lang(ja) .game-title { font-size: var(--fs-16); }
.game-tile[hidden] { display: none; }
.game-tile[data-type="kuji"] .game-title { background: linear-gradient(to top, var(--band-strong) 0 55%, transparent); padding-top: 40px; }

/* ---------- Lucky Draw ---------- */
.draw-card { margin-bottom: var(--s-4); }
.draw-art { position: relative; container-type: inline-size; aspect-ratio: 16 / 10; border-radius: var(--r-card); background: var(--art, linear-gradient(180deg, var(--draw-sky), var(--draw-blush))); background-size: cover; background-position: center; }
.pool-badge { position: absolute; top: 8%; right: 5%; width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--pink); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6%; box-shadow: var(--shadow-2); line-height: 1.2; }
.pool-top { font-size: clamp(0.65rem, 2.6cqi, 0.8rem); font-weight: 600; white-space: nowrap; }
.pool-main { font-size: clamp(0.8rem, 4cqi, 1.25rem); font-weight: 800; margin-top: 2px; line-height: 1.15; white-space: nowrap; }
.pool-sub { font-size: clamp(0.6rem, 2.4cqi, 0.75rem); font-weight: 600; margin-top: 2px; white-space: nowrap; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); margin: -60px var(--s-4) 0; position: relative; }
.cd-cell { background: var(--card); border-radius: var(--r-chip); box-shadow: var(--shadow-2); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; padding: var(--s-2) 0 6px; }
.cd-val { font-size: var(--fs-22); font-weight: 800; color: var(--blue-text); line-height: 1.1; min-width: 2ch; text-align: center; }
.cd-unit { font-size: var(--fs-11); color: var(--text-2); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin: var(--s-5) 0 var(--s-5); }
.steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: var(--s-2) 0; }
.steps svg { width: 32px; height: 32px; color: var(--blue); margin-bottom: 4px; }
.steps h3 { font-size: var(--fs-14); font-weight: 800; }
.steps p { font-size: var(--fs-13); color: var(--text-2); line-height: 1.35; }
.draw-panel[hidden] { display: none; }

/* ---------- Buy Coins ---------- */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin: var(--s-3) 0 var(--s-5); padding: 0; border: 0; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 20px var(--s-1) var(--s-4); background: var(--card); box-shadow: var(--shadow-1); border: 2px solid transparent; border-radius: var(--r-card); cursor: pointer; transition: border-color var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out); }
.pack.has-tag { margin-top: 10px; }
.pack:active { transform: scale(0.97); }
.pack input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pack:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.pack:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.pack-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: var(--r-pill); color: var(--white); font-size: var(--fs-11); font-weight: 700; white-space: nowrap; }
.tag-popular { background: var(--blue); }
.tag-best { background: var(--red); }
.pack-art { width: 56px; height: 56px; background: var(--art, none) center / contain no-repeat; margin-bottom: 4px; }
.pack-coins { font-weight: 800; font-size: var(--fs-16); }
.pack-price { color: var(--blue-text); font-weight: 700; font-size: var(--fs-15); }
.pays { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); padding: 0; border: 0; margin: 0 0 var(--s-4); }
.pay-title { grid-column: 1 / -1; padding: 0; margin-bottom: 2px; font-weight: 800; font-size: var(--fs-15); }
.pay { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 72px; padding: var(--s-2) 2px; border: 1.5px solid var(--border); border-radius: var(--r-chip); background: var(--card); font-size: var(--fs-12); word-break: keep-all; line-height: 1.25; font-weight: 600; text-align: center; cursor: pointer; transition: border-color var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out); }
.pay input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pay:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-text); }
.pay:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.pay svg { color: var(--blue); }
.pay-mark { display: block; height: 24px; }

/* ---------- My Page ---------- */
.profile { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); color: var(--text-2); flex: none; border: 1px solid var(--border); }
.avatar svg { width: 30px; height: 30px; }
.profile-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.profile-text strong { font-size: var(--fs-18); }
.profile-text span { font-size: var(--fs-13); color: var(--text-2); }
.profile .more { margin-left: auto; flex: none; }
.rows { margin-top: var(--s-3); }
.rows > li { border-bottom: 1px solid var(--border); }
.row { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 56px; padding: var(--s-2) var(--s-1); text-align: left; font-size: var(--fs-15); font-weight: 500; }
.row > svg:first-child { color: var(--text-2); flex: none; }
.row-label { flex: 1 1 auto; }
.row-val { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--blue-text); }
.val-ic { width: 18px; height: 18px; color: var(--blue-text); }
.row .chev { color: var(--text-2); }
a.row:active, button.row:active { background: var(--surface); }

/* ---------- Text pages ---------- */
.text-page { max-width: 65ch; }
.text-page section { margin-top: var(--s-5); }
.text-page h2 { font-size: var(--fs-20); margin-bottom: var(--s-2); }
.text-page .btn-primary { margin-top: var(--s-5); }

/* ---------- Tab bar ---------- */
.tab-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tab-h) + var(--tab-lift) + env(safe-area-inset-bottom)); padding: var(--tab-lift) 0 env(safe-area-inset-bottom); background: var(--bg); }
.tab-bar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: var(--tab-lift); background: var(--card); border-top: 1px solid var(--border); }
.tab-bar a { position: relative; height: var(--tab-h); }
.tab-raised .tab-ic { position: absolute; left: 50%; top: calc(-1 * var(--tab-lift)); transform: translateX(-50%); margin: 0; }
.tab-ic { display: inline-flex; }
.tab-raised .tab-ic { width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; background: var(--grad-cta); color: var(--white); box-shadow: var(--shadow-blue), 0 0 0 4px var(--card); }
.tab-raised .tab-ic svg { color: var(--white); width: 26px; height: 26px; }
.tab-raised[aria-current="page"] span:last-child { color: var(--blue-text); }
.tab-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-2); font-size: var(--fs-11); font-weight: 600; line-height: 1.1; white-space: nowrap; padding: 0 2px; transition: color var(--t-hover) var(--ease-out); }
.tab-bar a[aria-current="page"] { color: var(--blue-text); }
.tab-bar a.tab-raised { justify-content: flex-end; padding-bottom: 5px; }
.tab-bar svg { width: 24px; height: 24px; }
.tab-bar a:active svg { transform: scale(0.92); }
body.kb-open .tab-bar { display: none; }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); opacity: 0; transition: opacity var(--t-drawer) var(--ease-out); }
.scrim.is-open { opacity: 1; }
.scrim[hidden] { display: none; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(78vw, 320px); padding: var(--s-2) var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom)); background: var(--card); box-shadow: var(--shadow-3); overflow-y: auto; display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--t-drawer) var(--ease-drawer); }
.drawer.is-open { transform: none; }
.drawer[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); margin-bottom: var(--s-2); }
.drawer-head .icon-btn { color: var(--text); margin-right: calc(-1 * var(--s-2)); }
.drawer-list { padding: var(--s-2) 0; }
.drawer-list + .drawer-list { border-top: 1px solid var(--border); }
.drawer-list a, .drawer-list button { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 48px; padding: 0 var(--s-1); font-size: var(--fs-15); font-weight: 500; border-radius: var(--r-chip); text-align: left; }
.drawer-list svg { color: var(--text-2); }
.lang-switch { position: relative; display: flex; align-items: center; gap: var(--s-2); margin-top: auto; padding: 0 var(--s-3); min-height: 48px; border: 1px solid var(--border); border-radius: var(--r-chip); }
.lang-switch svg { color: var(--text-2); flex: none; }
.lang-switch select { appearance: none; -webkit-appearance: none; flex: 1; min-height: 46px; background: transparent; border: 0; font-weight: 600; font-size: var(--fs-15); color: var(--text); padding-right: 24px; }
.lang-switch .chev, .lang-switch svg:last-child { position: absolute; right: var(--s-3); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .drawer-list a:hover, .drawer-list button:hover { background: var(--surface); } }

/* ---------- Sheet ---------- */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-height: 92dvh; overflow-y: auto; padding: var(--s-2) var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom)); background: var(--card); border-radius: var(--r-hero) var(--r-hero) 0 0; box-shadow: var(--shadow-3); transform: translateY(100%); transition: transform var(--t-sheet) var(--ease-drawer); }
.sheet.is-open { transform: none; }
.sheet[hidden] { display: none; }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 0 auto var(--s-4); }
.sheet h2 { font-size: var(--fs-20); margin-bottom: var(--s-2); }
.sheet-prize { font-weight: 600; margin-bottom: var(--s-3); }
.sheet-rows { margin: 0 0 var(--s-4); }
.sheet-rows div { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-bottom: 1px solid var(--border); }
.sheet-rows dt { color: var(--text-2); }
.sheet-rows dd { margin: 0; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--blue-text); }

/* ---------- Baccarat ---------- */
body.felt { background: var(--felt); padding-bottom: env(safe-area-inset-bottom); }
body.felt :focus-visible { outline-color: var(--white); }
body.felt .main { padding-top: var(--s-2); }
.game-heading { color: var(--white); font-size: var(--fs-18); text-align: center; margin-bottom: var(--s-3); }
.table { display: flex; flex-direction: column; gap: var(--s-3); }
.dealer { aspect-ratio: 1 / 1.02; border-radius: var(--r-card); border: 6px solid var(--wood); background: var(--art, linear-gradient(180deg, var(--felt-hi), var(--felt-deep))) center / cover no-repeat; box-shadow: var(--shadow-3); }
.bets { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.bet { min-height: 64px; border-radius: var(--r-card); color: var(--white); font-weight: 800; font-size: var(--fs-20); letter-spacing: 0.02em; box-shadow: 0 4px 0 var(--ink-25), var(--shadow-2); border: 2px solid var(--white-35); transition: transform var(--t-press) var(--ease-out), box-shadow var(--t-press) var(--ease-out); }
.bet-player { background: var(--player); }
.bet-banker { background: var(--banker); }
.bet:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink-25); }
.bet[aria-pressed="true"] { outline: 3px solid var(--gold-hi); outline-offset: 2px; }
:lang(ja) .bet { font-size: var(--fs-18); }
.chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-2); justify-items: center; padding: var(--s-1) 0; }
.chip { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 800; font-size: var(--fs-13); background: var(--chip, var(--chip-100)); box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 6px var(--chip, var(--chip-100)), inset 0 0 0 8px var(--white-60), 0 3px 6px var(--ink-35); transition: transform var(--t-press) var(--ease-out); }
.chip:active { transform: scale(0.94); }
.chip[aria-pressed="true"] { transform: translateY(-6px); box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 6px var(--chip), inset 0 0 0 8px var(--white-60), 0 0 0 3px var(--gold-hi), 0 6px 10px var(--ink-40); }
.chip-1 { --chip: var(--chip-100); } .chip-2 { --chip: var(--chip-500); } .chip-3 { --chip: var(--chip-1k); } .chip-4 { --chip: var(--chip-5k); } .chip-5 { --chip: var(--chip-10k); }
.btn-deal { min-height: 58px; border-radius: var(--r-card); background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-deep)); color: var(--text-on-gold); font-weight: 900; font-size: var(--fs-22); letter-spacing: 0.04em; border: 2px solid var(--gold-deep); box-shadow: 0 4px 0 var(--deal-shadow), var(--shadow-2); transition: transform var(--t-press) var(--ease-out), box-shadow var(--t-press) var(--ease-out); }
.btn-deal:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--deal-shadow); }

/* ---------- Footer (desktop only) ---------- */
.site-footer { display: none; }

/* ---------- Root page ---------- */
.page-root { padding: var(--s-6) var(--gutter); }
.page-root a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 420px) { [data-filter-group='store'] .pill { font-size: var(--fs-11); } [data-filter-group='store'] .pill-face { padding: 0 9px; } .pays { gap: 6px; } }

@media (max-width: 399px) { .wallet-label { display: none; } .wallet { padding-left: 8px; } .wallet .chev { display: none; } .wallet-text { border-left: 0; padding-left: 4px; } .tagline { display: none; } }

/* ---------- Narrow phones ---------- */
@media (max-width: 359px) {
  .chips { gap: 4px; }
  .chip { width: 46px; height: 46px; }
  .prize-grid-store { grid-template-columns: repeat(2, 1fr); }
  .pool-badge { width: 44%; }
  .profile { flex-wrap: wrap; }
  .profile .more { margin-left: 0; }
}

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .prize-grid-store { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  :root { --header-h: 64px; --gutter: 24px; }
  body { padding-bottom: 0; font-size: 1.0625rem; }
  .tab-bar { display: none; }
  .app-header { padding-left: max(var(--gutter), calc((100vw - var(--content-max)) / 2)); padding-right: max(var(--gutter), calc((100vw - var(--content-max)) / 2)); gap: var(--s-5); }
  .desk-nav { display: flex; gap: var(--s-2); margin: 0 auto; }
  .desk-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); font-weight: 600; color: var(--text); border-radius: var(--r-chip); transition: color var(--t-hover) var(--ease-out); }
  .desk-nav a[aria-current="page"] { color: var(--blue-text); }
  .desk-nav a[aria-current="page"]::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 4px; height: 2px; border-radius: 1px; background: var(--blue); }
  .desk-nav a:hover { color: var(--text); }
  .main { padding: var(--s-5) var(--gutter) var(--s-8); }
  .page-head h1 { font-size: 2.25rem; }
  .prize-grid-store { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
  .prize-name, .prize-grid-store .prize-name { font-size: var(--fs-15); }
  .game-grid { grid-template-columns: repeat(6, 1fr); gap: var(--s-4); }
  .game-title { font-size: var(--fs-16); }
  .segmented { max-width: 420px; }
  .draw-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-6); align-items: start; }
  .draw-side { padding-top: var(--s-2); }
  .steps { margin-top: 0; gap: var(--s-4); }
  .steps h3 { font-size: var(--fs-16); }
  .steps p { font-size: var(--fs-14); }
  .coins-layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--s-6); align-items: start; }
  .packs { margin-top: var(--s-5); gap: var(--s-3); }
  .pay-card { position: sticky; top: calc(var(--header-h) + var(--s-4)); padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-2); }
  .pays { grid-template-columns: repeat(2, 1fr); }
  .my-layout { display: grid; grid-template-columns: 360px 1fr; gap: var(--s-6); align-items: start; }
  .rows { margin-top: 0; padding: 0 var(--s-4); border: 1px solid var(--border); border-radius: var(--r-card); }
  .rows > li:last-child { border-bottom: 0; }
  .drawer { width: 360px; }
  .table { max-width: 480px; margin: 0 auto; }
  .site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); max-width: var(--content-max); margin: 0 auto; padding: var(--s-5) var(--gutter) var(--s-6); border-top: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-14); }
  .site-footer nav { display: flex; gap: var(--s-4); }
  .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer nav a:hover { color: var(--text); }
  .site-footer p { margin-left: auto; }
  body.felt .site-footer { display: none; }
}
@media (min-width: 1280px) {
  .prize-grid-store { grid-template-columns: repeat(6, 1fr); }
  .packs { grid-template-columns: repeat(6, 1fr); }
  .pack-art { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Home v2 (owner's lighter concept, 2 Nov 2026) ---------- */
.carousel { margin: var(--s-1) 0 var(--s-3); }
.slides { position: relative; }
.slide { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 300px; padding: var(--s-5) var(--s-4); border-radius: var(--r-hero); overflow: hidden; background: var(--art, var(--grad-sky)) center / cover no-repeat; box-shadow: var(--shadow-2); color: var(--text); }
.slide[hidden] { display: none; }
.slides .slide + .slide { margin-top: var(--s-3); }
.carousel.is-js .slides .slide + .slide { margin-top: 0; }
.slide-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--s-3); max-width: 74%; }
.slide-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 0.55rem + 3vw, 2.75rem); line-height: 1.35; color: var(--sky-ink); text-shadow: 0 1px 0 var(--white), 0 0 12px var(--white); word-break: keep-all; }
.slide-title .u { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 0.32em; text-underline-offset: -0.08em; text-decoration-skip-ink: none; }
.slide-sub { font-size: var(--fs-13); font-weight: 600; color: var(--text); line-height: 1.5; text-shadow: 0 0 8px var(--white); }
:lang(en) .slide-sub { font-size: var(--fs-14); }
.slide-sticker { position: absolute; top: 6%; right: 30%; z-index: 1; padding: 6px 10px; border-radius: 14px; background: var(--white-85); font-family: var(--font-display); font-size: var(--fs-13); color: var(--sky-ink); text-align: center; line-height: 1.25; transform: rotate(6deg); }
.dots { display: flex; justify-content: center; gap: 10px; padding: var(--s-3) 0 0; }
.dot { width: 44px; height: 44px; margin: -16px -8px; display: inline-flex; align-items: center; justify-content: center; background: none; }
.dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); transition: background-color var(--t-hover) var(--ease-out), transform var(--t-hover) var(--ease-out); }
.dot[aria-pressed="true"]::before { background: var(--blue); transform: scale(1.2); }

.big-cta { position: relative; display: flex; align-items: center; gap: var(--s-3); min-height: 72px; margin-top: var(--s-4); padding: 0 var(--s-5) 0 var(--s-4); border-radius: var(--r-pill); background: var(--grad-cta); color: var(--white); font-weight: 900; font-size: var(--fs-18); box-shadow: var(--shadow-blue); overflow: hidden; transition: transform var(--t-press) var(--ease-out); }
.big-cta:active { transform: scale(0.98); }
.big-cta > svg:first-child { width: 36px; height: 36px; flex: none; }
.big-cta > span:nth-child(2) { flex: 1 1 auto; }
.big-cta-go { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--white-25); flex: none; }
.big-cta-coins { position: absolute; right: -8px; top: -10px; width: 80px; height: 80px; background: url(../assets/media/coins-stack.webp) center / contain no-repeat; opacity: 0.95; pointer-events: none; }
:lang(ja) .big-cta { font-size: var(--fs-16); }
@media (max-width: 429px) { .big-cta-coins { display: none; } .big-cta { padding-right: var(--s-4); } :lang(ja) .big-cta { font-size: var(--fs-15); } }
@media (max-width: 359px) { .big-cta { font-size: var(--fs-15); gap: var(--s-2); } :lang(ja) .big-cta { font-size: var(--fs-14); } }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-4); }
.feat { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 250px; padding: var(--s-4) var(--s-3) var(--s-3); border-radius: var(--r-hero); background: var(--card); box-shadow: var(--shadow-2); overflow: hidden; }
.feat::after { content: ""; position: absolute; right: -6%; bottom: -8%; width: 58%; aspect-ratio: 1; background: var(--art, none) center / cover no-repeat; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, var(--mask-solid) 55%, transparent 100%); mask-image: radial-gradient(closest-side, var(--mask-solid) 55%, transparent 100%); }
.feat-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.feat-text span { max-width: 84%; }
.feat-text strong { font-size: var(--fs-16); font-weight: 900; color: var(--sky-ink); line-height: 1.3; }
.feat-text span { font-size: var(--fs-14); color: var(--text-2); line-height: 1.5; }
.feat-go { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); background: var(--card); margin-top: var(--s-3); }
.feat:active { transform: scale(0.98); }

.campaign { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-5); padding: var(--s-4) var(--s-3) var(--s-4) 96px; border-radius: var(--r-hero); background: var(--card) var(--grad-sky); box-shadow: var(--shadow-2); overflow: hidden; }
.campaign-coins { position: absolute; left: -2px; top: var(--s-3); width: 88px; height: 88px; background: url(../assets/media/coins-stack.webp) center / contain no-repeat; }
.campaign-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.campaign-badge { align-self: flex-start; padding: 2px 10px; border-radius: var(--r-pill); background: var(--blue); color: var(--white); font-size: var(--fs-11); font-weight: 700; }
.campaign-kicker { font-size: var(--fs-13); font-weight: 700; color: var(--blue-text); }
.campaign-text strong { font-size: var(--fs-16); font-weight: 900; color: var(--sky-ink); line-height: 1.3; }
.campaign-sub { font-size: var(--fs-13); color: var(--text-2); }
@media (max-width: 599px) { .campaign .btn-ghost { flex-basis: 100%; justify-content: center; margin-left: 0; } .campaign-text { flex-basis: 100%; } }
.btn-ghost { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-pill); border: 1.5px solid var(--blue); color: var(--blue-text); font-weight: 700; font-size: var(--fs-13); background: var(--card); white-space: nowrap; flex: none; }

.hchips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.hchip { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 var(--s-4); border-radius: 16px; white-space: nowrap; flex: none; background: var(--card); box-shadow: var(--shadow-1); color: var(--text); font-size: var(--fs-13); font-weight: 700; transition: transform var(--t-press) var(--ease-out); }
.hchip svg { width: 22px; height: 22px; color: var(--blue); }
.hchip.is-selected { background: var(--blue); color: var(--white); box-shadow: var(--shadow-blue); }
.hchip.is-selected svg { color: var(--white); }
.hchip-search { width: 48px; padding: 0; justify-content: center; }
.hchip:active { transform: scale(0.96); }

.kuji-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.kuji-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-1); overflow: hidden; transition: transform var(--t-press) var(--ease-out); }
.kuji-card:active { transform: scale(0.97); }
.kuji-title { order: 1; position: relative; z-index: 1; margin: 10px 10px -36px; padding: 4px 8px; border-radius: 10px; background: var(--white-94); text-align: center; font-weight: 900; font-size: var(--fs-15); line-height: 1.2; color: var(--sky-ink); word-break: keep-all; box-shadow: var(--shadow-1); }
.kuji-art { order: 2; display: block; aspect-ratio: 1; background: var(--art, var(--surface)) center / cover no-repeat; }
.kuji-cap { order: 3; padding: 10px 10px 12px; font-size: var(--fs-14); line-height: 1.45; color: var(--text-2); text-align: left; }

.prize-grid-pick { grid-template-columns: repeat(2, 1fr); }
.prize-grid-pick .prize-img { aspect-ratio: 4 / 3; }

.teaser { margin-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.teaser-card { position: relative; padding: var(--s-4); border-radius: var(--r-hero); background: var(--card); box-shadow: var(--shadow-2); text-align: center; }
.teaser-head { display: flex; align-items: center; justify-content: center; gap: var(--s-2); font-size: var(--fs-16); font-weight: 900; color: var(--sky-ink); }
.amount { display: flex; align-items: center; justify-content: center; gap: 4px; margin: var(--s-3) 0 var(--s-2); }
.yen { font-size: var(--fs-24); font-weight: 900; color: var(--blue); margin-right: 4px; }
.digit { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.9rem; border-radius: 8px; background: var(--surface); color: var(--blue); font-size: var(--fs-28); font-weight: 900; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px 0 var(--white), var(--shadow-1); }
.sep { font-size: var(--fs-24); font-weight: 900; color: var(--blue); }
.teaser-sub { font-size: var(--fs-13); color: var(--text-2); }
.flip-row { display: flex; justify-content: center; gap: var(--s-2); margin: var(--s-3) 0 0; }
.flip { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.flip-val { display: inline-flex; align-items: center; justify-content: center; min-width: 3.4rem; height: 3rem; padding: 0 6px; border-radius: 10px; background: var(--surface); color: var(--blue); font-size: var(--fs-24); font-weight: 900; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px 0 var(--white), var(--shadow-1); }
.flip-unit { font-size: var(--fs-11); font-weight: 700; color: var(--text-2); }
.bubble { position: absolute; top: 10px; right: 10px; padding: 8px 10px; border-radius: 16px 16px 16px 4px; font-size: var(--fs-12) !important; background: var(--card); border: 1.5px solid var(--blue); color: var(--blue-text); font-size: var(--fs-11); font-weight: 700; line-height: 1.3; text-align: center; }
.btn-grad { background: var(--grad-cta); border-radius: var(--r-pill); min-height: 56px; font-size: var(--fs-18); font-weight: 900; }
.btn-grad svg:first-child { width: 26px; height: 26px; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-top: var(--s-2); }
.points li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--s-2) 4px; text-align: center; font-size: var(--fs-13); font-weight: 600; color: var(--text); line-height: 1.4; }
@media (max-width: 479px) { .bubble { position: static; display: inline-block; margin-top: var(--s-2); border-radius: 14px; } }
.points svg { width: 36px; height: 36px; padding: 6px; border-radius: 50%; background: var(--card); color: var(--blue); box-shadow: var(--shadow-1); }

/* feature pages */
.feature-hero { position: relative; display: flex; align-items: center; min-height: 240px; padding: var(--s-5) var(--s-4); border-radius: var(--r-hero); background: var(--grad-sky); box-shadow: var(--shadow-1); overflow: hidden; }
.feature-hero-text { position: relative; z-index: 1; max-width: 54%; display: flex; flex-direction: column; gap: var(--s-2); }
.feature-hero h1 { font-size: var(--fs-24); color: var(--sky-ink); }
.feature-hero p { font-size: var(--fs-14); line-height: 1.6; }
.feature-hero-art { position: absolute; right: -6%; bottom: -8%; width: 50%; aspect-ratio: 1; background: var(--art, none) center / cover no-repeat; -webkit-mask-image: radial-gradient(closest-side, var(--mask-solid) 55%, transparent 100%); mask-image: radial-gradient(closest-side, var(--mask-solid) 55%, transparent 100%); }
.feat-sec { margin-top: var(--s-5); padding: var(--s-4); border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-1); }
.feat-sec h2 { font-size: var(--fs-18); color: var(--sky-ink); margin-bottom: var(--s-2); }
.how-steps { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); counter-reset: step; }
.how-steps li { position: relative; display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-1); }
.how-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 800; flex: none; }
.how-steps svg { width: 32px; height: 32px; color: var(--blue); flex: none; }
.how-steps h2 { font-size: var(--fs-16); color: var(--sky-ink); margin-bottom: 4px; }
.how-steps p { font-size: var(--fs-14); color: var(--text-2); line-height: 1.6; }
.feature-page .btn-primary { margin-top: var(--s-5); }

@media (min-width: 700px) {
  .features { grid-template-columns: repeat(4, 1fr); }
  .prize-grid-pick { grid-template-columns: repeat(4, 1fr); }
  .teaser { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .teaser .btn-grad, .teaser .points { grid-column: 1 / -1; }
  .teaser .btn-grad { max-width: 480px; justify-self: center; width: 100%; }
}
@media (min-width: 900px) {
  .slide { min-height: 400px; padding: var(--s-7); }
  .slide-copy { max-width: 48%; gap: var(--s-4); }
  .slide-sub { font-size: var(--fs-16); }
  .slide-sticker { font-size: var(--fs-18); top: 10%; right: 36%; }
  .big-cta, :lang(ja) .big-cta { min-height: 84px; font-size: var(--fs-22); padding-left: var(--s-6); }
  .feat { min-height: 320px; padding: var(--s-5); }
  .feat-text span { max-width: 70%; }
  .feat-text strong { font-size: var(--fs-18); }
  .feat-text span { font-size: var(--fs-14); }
  .campaign { padding: var(--s-5) var(--s-5) var(--s-5) 150px; }
  .campaign-coins { width: 150px; height: 150px; left: 0; }
  .campaign-text strong { font-size: var(--fs-22); }
  .campaign-kicker, .campaign-sub { font-size: var(--fs-14); }
  .kuji-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
  .kuji-title { font-size: var(--fs-18); margin: 10px 10px -40px; }
  .kuji-cap { font-size: var(--fs-14); padding: var(--s-3); }
  .hchips { gap: var(--s-3); }
  .hchip { font-size: var(--fs-15); min-height: 52px; }
  .digit { width: 2.8rem; height: 3.8rem; font-size: 2.25rem; }
  .flip-val { min-width: 4.4rem; height: 3.8rem; font-size: var(--fs-28); }
  .points li { font-size: var(--fs-14); }
  .teaser-head { font-size: var(--fs-20); }
  .feature-hero { min-height: 320px; padding: var(--s-7); }
  .feature-hero h1 { font-size: 2.25rem; }
  .feature-hero p { font-size: var(--fs-18); }
  .feature-page { max-width: 820px; }
  .wallet { height: 48px; }
  .wallet-num { font-size: var(--fs-16); }
}
