html, body { background: #101215; }
/* ジャグラー予報 — cinematic footage + hairline numerals. Spec: design/SPEC.md */
:root {
  --bg: #101215;
  --fg: 255 255 255;
  --line: rgb(255 255 255 / .09);
  --accent: #F08A4B;
  --plus: #D9752F;
  --minus: #4A74DB;
  --f-num: 'Geist', 'Noto Sans JP', system-ui, sans-serif;
  --f-jp: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-ui: cubic-bezier(.4, 0, .2, 1);
  --gut: 20px;
  /* left/right edge shared by nav, hero and sections: the 1200px column plus its gutter */
  --edge: max(var(--gut), calc((100vw - 1200px) / 2 + var(--gut)));
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  font: 400 15px/1.75 var(--f-jp);
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
::selection { background: rgba(240, 138, 75, .3); }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.num { font-family: var(--f-num); font-feature-settings: normal; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 200; padding: 8px 16px; border-radius: 999px; background: #fff; color: #000; font-weight: 500; }
.skip-link:focus { top: 12px; }
.noscript { padding: 24px; }

/* ---------- Materials ---------- */
.glass {
  position: relative;
  background: rgba(255, 255, 255, .01);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .1);
  border: 0;
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, var(--rim-a, .45)) 0%, rgba(255, 255, 255, var(--rim-b, .15)) 20%,
    rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, var(--rim-b, .15)) 80%, rgba(255, 255, 255, var(--rim-a, .45)) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.glass--strong { -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); box-shadow: 4px 4px 4px rgba(0, 0, 0, .05), inset 0 1px 1px rgba(255, 255, 255, .15); }
.glass--strong::before { --rim-a: .5; --rim-b: .2; }
.glass--dark { background: rgba(0, 0, 0, .35); }
.glass--dark::before { --rim-a: .3; --rim-b: .1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(255, 255, 255, .08); } }

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .35;
  background-size: 200px 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

/* ---------- Entrances (rest state is visible; fill-mode hides only during the delay) ---------- */
@keyframes blurRise { from { opacity: 0; transform: translateY(26px); filter: blur(12px); } }
@keyframes fadeRise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } }
@keyframes settle { from { opacity: 0; transform: scale(1.06); } }
.in-blur { animation: blurRise 1.1s var(--ease) var(--d, 0s) both; }
.in-fade { animation: fadeRise 1s var(--ease) var(--d, 0s) both; }
.in-down { animation: fadeDown .8s var(--ease) var(--d, 0s) both; }
.is-in { animation: none !important; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: max(12px, var(--safe-t)) var(--edge) 12px;
  transition: background-color .35s var(--ease-ui), -webkit-backdrop-filter .35s, backdrop-filter .35s;
}
.nav.is-scrolled { background: rgba(16, 18, 21, .66); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.wordmark svg { width: 22px; height: 22px; flex: none; }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.navpill { display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.navpill a { padding: 7px 15px; border-radius: 999px; color: rgb(var(--fg) / .72); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color .25s var(--ease-ui), color .25s; }
.navpill a:hover { color: #fff; }
.navpill a[aria-current='page'] { background: rgb(var(--fg) / .16); color: #fff; }
.owner-chip { color: var(--accent); font-size: 12px; font-weight: 500; }

/* ---------- GOGO! CHANCE lamp ---------- */
.gogo { position: relative; isolation: isolate; display: block; width: 100%; aspect-ratio: 360 / 300; }
.gogo svg { position: relative; display: block; width: 100%; height: 100%; border-radius: 4.5%; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .9); }
.gogo .lamp-on, .gogo .lamp-bloom { opacity: 0; }
.gogo.is-lit .lamp-on, .gogo.is-lit .lamp-bloom { opacity: 1; }
.gogo.is-lit .lamp-off { opacity: 0; }
.gogo .lamp-bloom { mix-blend-mode: screen; }
/* light the lamp throws onto the cabinet around it */
.gogo::before { content: ''; position: absolute; inset: -22% -18%; z-index: -1; pointer-events: none; opacity: 0; background: radial-gradient(closest-side, rgba(86, 102, 255, .34), rgba(236, 63, 216, .1) 58%, transparent 82%); }
.gogo.is-lit::before { opacity: 1; }
.gogo.is-peka { animation: peka .55s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes peka { 0% { filter: brightness(2.8) saturate(1.4); transform: scale(1.04); } 100% { filter: none; transform: none; } }
.gogo.is-rainbow svg { animation: rainbow .8s linear 5; }
@keyframes rainbow { to { filter: hue-rotate(360deg) saturate(1.7) brightness(1.15); } }
.peka-flash { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 38%, #a3abff, rgba(255, 79, 224, .55) 52%, transparent 82%); }
.peka-flash.is-on { animation: flash .5s ease-out; }
@keyframes flash { from { opacity: var(--peka, .15); } to { opacity: 0; } }

/* ---------- Forecast hero ---------- */
.hero { position: relative; display: grid; align-content: end; min-height: 92vh; min-height: 92svh; padding: 84px var(--edge) 36px; overflow: clip; }
.hero-body { display: contents; }
.hero .badge { order: 1; justify-self: start; }
.stepper-wrap { order: 2; }
.hero-lamp { order: 3; justify-self: center; width: min(80vw, 360px); margin: 26px 0 18px; }
.count-label { order: 4; color: rgb(var(--fg) / .6); font-size: 14px; font-weight: 500; }
.count { order: 5; container-type: inline-size; display: flex; align-items: baseline; gap: 12px; width: 100%; margin-top: 2px; }
.count-num { font-family: var(--f-num); font-weight: 200; line-height: .9; letter-spacing: -.05em; white-space: nowrap; }
.count-num .roll { margin-left: -.05em; font-size: min(clamp(96px, 32vw, 168px), calc((100cqi - 80px) / (var(--n) * .6))); }
.count-unit { color: rgb(var(--fg) / .72); font-size: 22px; font-weight: 500; }
.count-word { font-size: clamp(40px, 12vw, 80px); font-weight: 500; letter-spacing: -.02em; }
.hero .picks-strip { order: 6; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 4px 12px 4px 4px; border-radius: 999px; font-size: 12.5px; color: rgb(var(--fg) / .86); }
.badge b { padding: 3px 10px; border-radius: 999px; background: #fff; color: #101215; font-size: 11.5px; font-weight: 700; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; }
.stepper button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: #fff; transition: background-color .2s; }
.stepper button:hover:not(:disabled) { background: rgb(var(--fg) / .1); }
.stepper button:disabled { opacity: .28; cursor: default; }
.stepper svg { width: 16px; height: 16px; }
.stepper-label { display: grid; min-width: 9.5em; padding: 0 6px; line-height: 1.3; text-align: center; }
.stepper-rel { color: rgb(var(--fg) / .56); font-size: 11px; }
.stepper-date { font-size: 13.5px; font-weight: 500; }
.picks-strip { display: flex; gap: 8px; margin: 22px calc(var(--gut) * -1) 0 0; padding: 2px var(--gut) 4px 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 84%, transparent); mask-image: linear-gradient(to right, #000 84%, transparent); }
.picks-strip::-webkit-scrollbar { display: none; }
.chip { flex: none; display: grid; gap: 4px; min-width: 128px; padding: 11px 18px 12px; border-radius: 18px; text-align: left; transition: transform .25s var(--ease), background-color .25s; }
.chip:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .05); }
.chip:active { transform: scale(.97); }
.chip-store { max-width: 12em; overflow: hidden; color: rgb(var(--fg) / .6); font-size: 11.5px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.chip-unit { display: flex; align-items: baseline; gap: 8px; font: 400 25px/1 var(--f-num); letter-spacing: -.02em; }
.chip-unit i { width: 6px; height: 6px; border-radius: 50%; background: var(--plus); align-self: center; }
.chip-unit i.is-minus { background: var(--minus); }
.chip-unit i.is-even { background: rgb(var(--fg) / .4); }

/* ---------- Store sections ---------- */
.notices { display: grid; gap: 10px; max-width: 1200px; margin: 0 auto; padding: 0 var(--gut) 28px; }
.notice { padding: 14px 18px; border-radius: 20px; color: rgb(var(--fg) / .78); font-size: 13px; line-height: 1.7; }
.notice b { color: #fff; font-weight: 500; }
.notice ul { margin-top: 6px; color: rgb(var(--fg) / .6); }

.store {
  overflow: clip;
  display: grid;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px var(--gut) 72px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 60px;
}
.store-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.store-name { color: rgb(var(--fg) / .82); font-size: 15px; font-weight: 500; line-height: 1.5; }
.store-count { flex: none; color: rgb(var(--fg) / .38); font-size: 12px; }
.big { container-type: inline-size; display: block; min-width: 0; margin: 6px 0 4px; font-family: var(--f-num); font-weight: 200; line-height: 1; letter-spacing: -.05em; white-space: nowrap; }
.big .roll { margin-left: -.05em; font-size: min(clamp(88px, 30vw, 168px), calc(100cqi / (var(--n) * .6))); }
.roll { display: inline-flex; }
.roll-slot { position: relative; display: inline-block; height: 1em; line-height: 1; clip-path: inset(0 -.3em); }
.roll-sizer { visibility: hidden; }
.roll-strip { position: absolute; top: 0; left: 50%; display: flex; flex-direction: column; transform: translate(-50%, 0); will-change: transform; }
.roll-strip span { display: block; height: 1em; line-height: 1; text-align: center; }
.roll-sep { color: rgb(var(--fg) / .5); }
.store-info { display: grid; gap: 14px; align-content: end; }
.lamp-row { display: flex; align-items: center; gap: 18px; }
.lamp-row .gogo { flex: none; width: 96px; }
.lamp-row-text { display: grid; gap: 6px; min-width: 0; }
.machine { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; }
.mark { color: var(--accent); font-weight: 500; }
.result { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; }
.result-val { display: inline-flex; align-items: center; gap: 12px; font: 300 36px/1.1 var(--f-num); letter-spacing: -.025em; }
.result-val::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--fg) / .3); }
.result-val.is-plus::before { background: var(--plus); }
.result-val.is-minus::before { background: var(--minus); }
.result-val small { margin-left: -6px; color: rgb(var(--fg) / .56); font: 400 14px var(--f-jp); }
.result-meta { display: flex; gap: 14px; color: rgb(var(--fg) / .46); font: 400 13px var(--f-num); }
.pending { color: rgb(var(--fg) / .46); font-size: 13px; }
.comment { color: rgb(var(--fg) / .6); font-size: 13.5px; }
.cands { display: flex; flex-wrap: wrap; gap: 8px; }
.cand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px 8px 14px; border-radius: 999px; color: #fff; font-size: 12px; text-align: left; transition: background-color .25s var(--ease-ui), color .25s, transform .2s var(--ease); }
.cand:hover { background: rgba(255, 255, 255, .06); }
.cand:active { transform: scale(.97); }
.cand[aria-pressed='true'] { background: #fff; color: #101215; }
.cand[aria-pressed='true'] .mark { color: #C4621F; }
.cand-unit { font: 500 17px/1 var(--f-num); letter-spacing: -.01em; }
.cand-mach { opacity: .62; max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cand-res { font: 500 12px var(--f-num); opacity: .8; }
.facts { display: grid; gap: 6px; }
.fact { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 13px; line-height: 1.6; }
.fact dt { color: rgb(var(--fg) / .5); }
.fact dd { color: rgb(var(--fg) / .9); }
.detail { border-radius: 20px; font-size: 13px; }
.detail summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; color: var(--accent); font-weight: 500; list-style: none; cursor: pointer; }
.detail summary::-webkit-details-marker { display: none; }
.detail summary::after { content: ''; width: 7px; height: 7px; margin-left: auto; border: solid rgb(var(--fg) / .5); border-width: 0 1.4px 1.4px 0; transform: rotate(45deg); transition: transform .3s var(--ease); }
.detail[open] summary::after { transform: rotate(-135deg); }
.detail dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; padding: 0 18px 16px; }
.detail dt { color: rgb(var(--fg) / .5); }
.detail dd { text-align: right; font-family: var(--f-num); }
.detail h3 { grid-column: 1 / -1; margin-top: 4px; color: rgb(var(--fg) / .78); font-size: 12px; font-weight: 500; }

.skips { max-width: 1200px; margin: 0 auto; padding: 64px var(--gut) 56px; border-top: 1px solid var(--line); }
.skips h2 { display: flex; align-items: baseline; gap: 12px; font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.skips h2 span { color: rgb(var(--fg) / .38); font: 300 18px var(--f-num); }
.skips-why { margin-top: 6px; color: rgb(var(--fg) / .56); font-size: 13px; }
.skips ul { display: grid; margin-top: 18px; }
.skips li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.skip-name { color: rgb(var(--fg) / .78); font-size: 14px; }
.skip-why { color: rgb(var(--fg) / .46); font-size: 12.5px; }
.skip-detail { display: flex; flex-wrap: wrap; gap: 2px 16px; color: rgb(var(--fg) / .6); font-size: 12px; }
.skip-detail b { margin-right: 6px; color: rgb(var(--fg) / .4); font-weight: 400; }

.foot { display: grid; gap: 18px; max-width: 1200px; margin: 0 auto; padding: 36px var(--gut) max(40px, calc(var(--safe-b) + 24px)); border-top: 1px solid var(--line); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.foot-who { color: rgb(var(--fg) / .46); font-size: 13px; }
.ghost { min-height: 40px; padding: 8px 18px; border-radius: 999px; color: rgb(var(--fg) / .86); font-size: 13px; font-weight: 500; transition: background-color .2s; }
.ghost:hover { background: rgba(255, 255, 255, .06); }
.fineprint { color: rgb(var(--fg) / .38); font-size: 12px; line-height: 1.8; }

/* ---------- Track record ---------- */
.rec-hero { max-width: 1200px; margin: 0 auto; padding: 112px var(--gut) 8px; }
.eyebrow { color: rgb(var(--fg) / .56); font-size: 13px; }
.figure { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; font: 200 clamp(84px, 24vw, 220px) / .95 var(--f-num); letter-spacing: -.055em; white-space: nowrap; }
.figure small { color: rgb(var(--fg) / .56); font: 400 20px var(--f-jp); letter-spacing: 0; }
.figure.long { font-size: clamp(64px, 18vw, 200px); }   /* 6-digit totals (e.g. +126,060) still fit a phone */
.rec-sub { margin-top: 10px; color: rgb(var(--fg) / .72); font-size: 15px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; }
.seg button { position: relative; z-index: 1; min-height: 36px; padding: 6px 16px; border: 0; border-radius: 999px; background: none; color: rgb(var(--fg) / .72); font-size: 13px; font-weight: 500; white-space: nowrap; transition: color .3s var(--ease-ui); }
.seg button[aria-pressed='true'] { color: #101215; }
.seg-ink { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: #fff; transition: transform .35s var(--ease), width .35s var(--ease); }

.rec-body { max-width: 1200px; margin: 0 auto; transition: opacity .2s; }
.stats { display: grid; grid-template-columns: 1fr 1fr; margin: 36px var(--gut) 0; border-top: 1px solid var(--line); }
.stat { display: grid; gap: 2px; align-content: start; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 16px; }
.stat-label { color: rgb(var(--fg) / .46); font-size: 12px; }
.stat-value { font: 300 30px/1.15 var(--f-num); letter-spacing: -.025em; }
.stat-value small { margin-left: 4px; color: rgb(var(--fg) / .56); font: 400 13px var(--f-jp); letter-spacing: 0; }
.stat-note { color: rgb(var(--fg) / .4); font-size: 11.5px; line-height: 1.6; }
.panel-sec .stats { margin: 4px 0 10px; }
.stats.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stats.stats--3 .stat { padding: 14px 12px; border-right: 1px solid var(--line); }
.stats.stats--3 .stat:first-child { padding-left: 0; }
.stats.stats--3 .stat:last-child { border-right: 0; }

.block { padding: 64px var(--gut) 8px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.block-head h2 { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.block-head p { color: rgb(var(--fg) / .4); font-size: 12px; }
.chart { position: relative; min-height: 140px; }
.chart:focus-visible { outline-offset: 8px; border-radius: 8px; }
.chart svg { display: block; overflow: visible; touch-action: pan-y; }
.chart .grid line { stroke: rgb(var(--fg) / .07); stroke-width: 1; }
.chart .grid line.zero { stroke: rgb(var(--fg) / .2); }
.chart .tick { fill: rgb(var(--fg) / .38); font: 400 11px var(--f-num); font-variant-numeric: tabular-nums; }
.chart .end-label { fill: #fff; font: 500 13px var(--f-num); paint-order: stroke; stroke: var(--bg); stroke-width: 5px; }
.chart .end-dot, .chart .cross-dot { stroke: var(--bg); stroke-width: 2; }
.chart .cross { stroke: rgb(var(--fg) / .35); stroke-width: 1; }
.chart .start-line { stroke: rgb(var(--fg) / .3); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .start-label { fill: rgb(var(--fg) / .5); }
.store-trends { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.store-trend h3 { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.store-trend h3 span { font: 500 15px var(--f-num); }
details.more-trends { margin-top: 18px; border-top: 1px solid var(--line); }
details.more-trends > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; color: rgb(var(--fg) / .82); font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
details.more-trends > summary::-webkit-details-marker { display: none; }
details.more-trends > summary::after { content: ''; width: 8px; height: 8px; margin-right: 4px; border: solid rgb(var(--fg) / .5); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .3s var(--ease); }
details.more-trends[open] > summary::after { transform: rotate(-135deg); }
.more-count { margin-left: auto; color: rgb(var(--fg) / .4); font-size: 13px; font-weight: 400; }
details.more-trends > .store-trends { padding-top: 8px; }
.chart-tip { position: absolute; z-index: 3; display: grid; gap: 1px; min-width: 150px; padding: 10px 14px; border-radius: 16px; background: rgba(16, 18, 21, .55); pointer-events: none; color: rgb(var(--fg) / .6); font-size: 12px; white-space: nowrap; }
.chart-tip strong { color: #fff; font: 500 19px var(--f-num); letter-spacing: -.01em; }
.tip-sub { color: rgb(var(--fg) / .46); }

.bars { display: grid; gap: 18px; }
.bars li { display: grid; gap: 8px; }
.bar-name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bar-store { color: rgb(var(--fg) / .82); font-size: 13.5px; font-weight: 500; }
.bar-meta { color: rgb(var(--fg) / .4); font-size: 11.5px; white-space: nowrap; }
.bar-track { position: relative; display: block; height: 8px; margin: 0 56px; }
.bar-zero { position: absolute; top: -5px; bottom: -5px; width: 1px; background: rgb(var(--fg) / .22); }
.sbar { position: absolute; top: 0; bottom: 0; }
.sbar.is-plus { background: var(--plus); border-radius: 0 4px 4px 0; transform-origin: left center; }
.sbar.is-minus { background: var(--minus); border-radius: 4px 0 0 4px; transform-origin: right center; }
.bar-val { position: absolute; top: 50%; transform: translateY(-50%); font: 500 12.5px var(--f-num); white-space: nowrap; }

.log-day { padding-top: 14px; }
.log-date { display: flex; align-items: baseline; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: rgb(var(--fg) / .5); font-size: 12px; }
.log-date .num { color: #fff; font-size: 15px; font-weight: 500; }
.log-date .day-total { margin-left: auto; color: #fff; font: 500 13px var(--f-num); }
.log-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgb(var(--fg) / .05); }
.log-store { overflow: hidden; color: rgb(var(--fg) / .82); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.log-unit { grid-column: 2; color: rgb(var(--fg) / .44); font-size: 12px; }
.log-unit .num { margin-right: 6px; color: rgb(var(--fg) / .7); font-size: 13px; }
.log-diff { grid-row: 1 / span 2; grid-column: 3; align-self: center; display: inline-flex; align-items: center; gap: 8px; font: 400 17px var(--f-num); letter-spacing: -.01em; }
.log-diff::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--fg) / .3); }
.log-diff.is-plus::before { background: var(--plus); }
.log-diff.is-minus::before { background: var(--minus); }
.more { display: block; margin: 18px auto 0; }
.rec-empty { padding: 40px var(--gut); color: rgb(var(--fg) / .6); }
.rec-empty b { display: block; margin-bottom: 6px; color: #fff; font-size: 20px; font-weight: 500; }

/* ---------- Auth ---------- */
.auth { overflow: clip; display: grid; align-content: center; min-height: 100vh; min-height: 100svh; padding: max(32px, var(--safe-t)) var(--gut) max(28px, calc(var(--safe-b) + 18px)); }
.auth-body { display: grid; justify-items: center; gap: 30px; width: 100%; max-width: 1080px; margin: 0 auto; }
.auth-hero { display: grid; justify-items: center; gap: 18px; }
.auth-lamp { width: min(74vw, 340px); }
.auth-name { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 500; letter-spacing: .05em; }
.auth-name svg { width: 24px; height: 24px; }
.auth-panel { display: grid; gap: 16px; width: min(100%, 400px); padding: 22px; border-radius: 28px; background: rgba(255, 255, 255, .025); }
.auth-title { font-size: 20px; font-weight: 500; }
.auth-panel .seg { width: 100%; }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { color: rgb(var(--fg) / .64); font-size: 12.5px; }
.field input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid rgb(var(--fg) / .1); border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: 16px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field input:focus { outline: none; border-color: rgb(240 138 75 / .7); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 3px rgb(240 138 75 / .18); }
.field textarea, .user-search { width: 100%; padding: 12px 16px; border: 1px solid rgb(var(--fg) / .1); border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 16px; line-height: 1.6; resize: vertical; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.user-search { min-height: 48px; margin: 4px 0 6px; }
.field textarea:focus, .user-search:focus { outline: none; border-color: rgb(240 138 75 / .7); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 3px rgb(240 138 75 / .18); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row > button { min-height: 48px; margin-top: 0; padding: 0 20px; }
.btn-row .primary { flex: 1 1 auto; }
.site-notice { order: 0; display: flex; gap: 12px; align-items: baseline; margin-bottom: 18px; padding: 12px 16px; border-radius: 16px; font-size: 13.5px; line-height: 1.65; }
.site-notice b { flex: none; color: var(--accent); font-size: 12px; font-weight: 500; }
.hint { color: rgb(var(--fg) / .4); font-size: 11.5px; }
.input-wrap { position: relative; }
.input-wrap input[type='password'], .input-wrap input:has(+ .reveal) { padding-right: 72px; }
.reveal { position: absolute; top: 6px; right: 6px; bottom: 6px; min-width: 56px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .06); color: rgb(var(--fg) / .78); font-size: 12px; font-weight: 500; }
.reveal:hover { background: rgba(255, 255, 255, .12); }
.primary { min-height: 52px; margin-top: 6px; border: 0; border-radius: 999px; background: #fff; color: #101215; font-size: 15px; font-weight: 700; letter-spacing: .04em; transition: transform .2s var(--ease), background-color .2s; }
.primary:hover { background: #ececec; }
.primary:active { transform: scale(.98); }
.primary:disabled { opacity: .6; cursor: progress; }
.form-error { color: #FF9B85; font-size: 13px; line-height: 1.6; }
.form-error:empty { display: none; }
.switch { color: rgb(var(--fg) / .6); font-size: 13px; text-align: center; }
.switch a { color: #fff; font-weight: 500; text-decoration: underline; text-decoration-color: rgb(var(--fg) / .4); text-underline-offset: 4px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: max(20px, calc(var(--safe-b) + 12px)); z-index: 60; display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px); padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(16, 18, 21, .6); font-size: 13px; transform: translateX(-50%); animation: toastIn .5s var(--ease); }
.toast button { padding: 8px 16px; border: 0; border-radius: 999px; background: #fff; color: #101215; font-size: 13px; font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 18px); } }

.view-in { animation: viewIn .5s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; } }

@media (min-width: 900px) {
  :root { --gut: 56px; }
  body { font-size: 16px; }
  .nav { padding-top: 22px; padding-bottom: 18px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-content: center; align-items: center; min-height: 88vh; min-height: 88svh; padding-top: 112px; padding-bottom: 72px; }
  .hero-body { display: grid; align-content: center; grid-column: 1; grid-row: 1; }
  .count-label { margin-top: 36px; }
  .hero-lamp { grid-column: 2; grid-row: 1; align-self: center; width: min(40vw, 540px); margin: 0; }
  .picks-strip { margin-right: 0; padding-right: 0; -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; }
  .store { grid-template-columns: 7fr 5fr; column-gap: 56px; align-items: end; padding: 104px var(--gut) 112px; }
  .store-meta { grid-column: 1 / -1; }
  .store .big { margin-bottom: -.08em; }
  .skips ul { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat, .stat:nth-child(even) { padding: 22px 24px; border-right: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
  .rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 72px; }
  .auth-body { grid-template-columns: minmax(0, 1fr) 400px; align-items: center; gap: 72px; }
  .auth-lamp { width: min(38vw, 500px); }
  .auth-panel { padding: 28px; }
}
/* Phones: the account button stands in for the オーナー label (it turns orange for the owner). */
@media (max-width: 479px) {
  .owner-chip { display: none; }
  .nav { gap: 8px; }
  .nav-right { gap: 6px; }
  .nav .acct { width: 36px; height: 36px; }
  .navpill a { padding: 7px 12px; }
}
@media (max-width: 360px) { .wordmark { font-size: 14px; gap: 7px; } .navpill a { padding: 7px 10px; } }
@media (max-width: 349px) { .nav .wordmark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in-blur, .in-fade, .in-down, .view-in, .toast, .gogo, .gogo svg, .peka-flash { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- v4: 脳汁 ---------- */
/* Stop buttons, modelled on the cabinet's: dark convex caps with a red LED ring that is lit while the reel turns. */
.stops { display: flex; gap: 14px; margin: 2px 0 8px; }
.stop {
  position: relative;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #4a4f5b 0%, #23262e 46%, #121418 78%);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .22), inset 0 -4px 7px rgba(0, 0, 0, .65), 0 0 0 3px #08090c, 0 0 0 4.5px rgba(255, 255, 255, .07), 0 10px 18px -8px rgba(0, 0, 0, .9);
  transition: transform .07s ease-out, box-shadow .07s ease-out;
}
.stop::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(120, 30, 30, .45); transition: box-shadow .12s; }
.stop.is-live { cursor: pointer; }
.stop.is-live::after { box-shadow: 0 0 0 2px #ff4038, 0 0 16px 3px rgba(255, 64, 56, .6), inset 0 0 12px rgba(255, 64, 56, .55); animation: led 1.1s ease-in-out infinite; }
.stop:active:not(:disabled) { transform: translateY(2px) scale(.97); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .12), inset 0 -2px 5px rgba(0, 0, 0, .7), 0 0 0 3px #08090c, 0 0 0 4.5px rgba(255, 255, 255, .07), 0 4px 8px -4px rgba(0, 0, 0, .9); }
.stop:disabled { cursor: default; }
@keyframes led { 50% { filter: brightness(1.35); } }
.big { cursor: pointer; -webkit-user-select: none; user-select: none; }
.roll-slot.is-spinning .roll-strip { filter: blur(.012em); }
.roll-slot.landed { animation: landed .4s ease-out; }
@keyframes landed { from { text-shadow: 0 0 .12em rgba(255, 255, 255, .95), 0 0 .4em rgba(160, 170, 255, .6); } }

/* 連 counter */
.ren { position: fixed; top: calc(max(12px, var(--safe-t)) + 58px); right: var(--edge); z-index: 30; display: flex; align-items: baseline; gap: 4px; padding: 6px 16px 9px; border-radius: 999px; background: rgba(16, 18, 21, .55); }
.ren-num { font: 300 30px/1 var(--f-num); letter-spacing: -.03em; }
.ren-unit { color: rgb(var(--fg) / .78); font-size: 14px; font-weight: 500; }
.ren.is-pop { animation: renPop .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes renPop { 0% { opacity: 0; transform: scale(.55); } 60% { opacity: 1; transform: scale(1.18); } 100% { transform: none; } }

.freeze { position: fixed; inset: 0; z-index: 95; background: #000; opacity: 0; pointer-events: none; transition: opacity .1s linear; }
.freeze.is-on { opacity: 1; }
.freeze.is-out { opacity: 0; transition: opacity .9s ease-out; }


@media (prefers-reduced-motion: reduce) {
  .stop.is-live::after, .roll-slot.landed, .ren.is-pop { animation: none !important; }
}
@media (min-width: 900px) {
  .store .big { grid-column: 1; grid-row: 2; }
  .store { grid-template-rows: auto 1fr auto; }
  .store .stops { grid-column: 1; grid-row: 3; }
  .store .store-info { grid-column: 2; grid-row: 2 / span 2; }
  .stop { width: 58px; height: 58px; }
}

/* ---------- v5 trial: FAMIMA techniques ---------- */
/* Opening curtain: shrinks from the bottom (its content stays put and is cut off), 0.7 s. */
.curtain { position: fixed; inset: 0 0 auto; z-index: 120; height: 100vh; height: 100dvh; overflow: hidden; background: #050608; transition: height .72s cubic-bezier(.65, 0, .35, 1); }
.curtain.is-lifting { height: 0; }
.curtain-inner { position: absolute; top: 50vh; top: 50dvh; left: 50%; display: grid; justify-items: center; gap: 22px; transform: translate(-50%, -50%); }
.curtain-lamp { width: min(72vw, 340px); }
.curtain-name { display: inline-flex; align-items: center; gap: 10px; color: rgb(var(--fg) / .86); font-size: 18px; font-weight: 500; letter-spacing: .05em; white-space: nowrap; }
.curtain-name svg { width: 22px; height: 22px; }
/* The page's entrance waits under the curtain and plays as it lifts. */
.is-curtained .in-blur, .is-curtained .in-fade, .is-curtained .in-down { animation-play-state: paused; }

/* Scroll-driven characters */
.sc { display: inline-block; will-change: transform, opacity; }

/* LED-board row of picks */
.hero .board { order: 6; }
.board { position: relative; margin: 22px calc(var(--edge) * -1) 0; overflow: hidden; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); }
.board.is-dragging { cursor: grabbing; }
.board-track { display: flex; gap: 8px; width: max-content; padding: 2px 0 6px; will-change: transform; }
.board .chip { -webkit-user-drag: none; }
.board .chip:hover { transform: none; }
@media (min-width: 900px) {
  .board { margin: 22px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
}

/* ---------- v5: service features ---------- */
.acct { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: rgb(var(--fg) / .78); }
.acct svg { width: 19px; height: 19px; }
.acct[aria-current='page'] { color: #fff; background: rgb(var(--fg) / .12); }
.acct.is-owner { color: var(--accent); }

/* ★ マイ店舗 */
.star { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin: -6px 0 -6px -8px; border: 0; border-radius: 50%; background: none; color: rgb(var(--fg) / .38); transition: color .2s, transform .2s var(--ease); }
.star svg { width: 18px; height: 18px; }
.star:hover { color: rgb(var(--fg) / .7); }
.star[aria-pressed='true'] { color: var(--accent); }
.star:active { transform: scale(.88); }
.store-title { display: flex; align-items: center; gap: 4px; min-width: 0; }

/* Group headings: マイ店舗 / ほかの狙い目 */
.group-head { display: flex; align-items: baseline; gap: 12px; max-width: 1200px; margin: 0 auto; padding: 48px var(--gut) 8px; }
.group-head h2 { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.group-count { color: rgb(var(--fg) / .38); font-size: 18px; font-weight: 300; }
.panel-sec .group-head { padding: 0; margin: 0 0 6px; }

/* One-line rows that open into the full reel */
.rows { max-width: 1200px; margin: 0 auto; padding-bottom: 24px; }
.rows-hint { padding: 0 var(--gut) 10px; color: rgb(var(--fg) / .5); font-size: 12.5px; }
.rows-list { display: grid; padding: 0 var(--gut); border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row-head { display: flex; align-items: center; gap: 4px; min-height: 60px; }
.row-main { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 14px; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 60px; padding: 8px 0; border: 0; background: none; color: #fff; text-align: left; }
.row-name { overflow: hidden; font-size: 14.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.row-tag { padding: 2px 9px; border: 1px solid rgb(var(--fg) / .16); border-radius: 999px; color: rgb(var(--fg) / .66); font-size: 11px; white-space: nowrap; }
.row-unit { display: inline-flex; align-items: baseline; gap: 6px; font: 300 26px/1 var(--f-num); letter-spacing: -.02em; }
.row-unit .mark { font-size: 13px; }
.row-chev { width: 8px; height: 8px; border: solid rgb(var(--fg) / .5); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); }
.row.is-open .row-chev { transform: rotate(-135deg) translateY(-1px); }
.row-body .store { padding: 0 0 28px; border-top: 0; }
.row-body .store-meta { display: none; }

/* 見送り: folded */
details.skips { padding-top: 40px; padding-bottom: 40px; }
details.skips > summary { display: flex; align-items: baseline; gap: 12px; min-height: 44px; cursor: pointer; list-style: none; }
details.skips > summary::-webkit-details-marker { display: none; }
details.skips > summary::after { content: ''; width: 8px; height: 8px; margin-left: auto; align-self: center; border: solid rgb(var(--fg) / .5); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .3s var(--ease); }
details.skips[open] > summary::after { transform: rotate(-135deg); }
.skips-title { font-size: 22px; font-weight: 500; }
.skips-count { color: rgb(var(--fg) / .38); font-size: 14px; }
.skip-head { display: flex; align-items: center; gap: 4px; }

/* Pages: account, admin, about */
.page { display: grid; gap: 36px; max-width: 760px; margin: 0 auto; padding: 108px var(--gut) 40px; }
.page-title { font-size: clamp(30px, 8vw, 44px); font-weight: 500; letter-spacing: -.02em; }
.page-sub { margin-top: -24px; color: rgb(var(--fg) / .56); font-size: 14px; }
.panel-sec { display: grid; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.panel-sec > h2 { font-size: 18px; font-weight: 500; }
.sec-note { color: rgb(var(--fg) / .56); font-size: 13px; line-height: 1.7; }
.about-p { color: rgb(var(--fg) / .78); font-size: 14.5px; line-height: 1.9; }
.about-p a { color: #fff; text-decoration: underline; text-decoration-color: rgb(var(--fg) / .35); text-underline-offset: 4px; }
.fav-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 16px; }
.fav-list li { display: flex; align-items: center; gap: 4px; min-height: 44px; font-size: 14px; }
.fold > summary { display: flex; align-items: center; min-height: 44px; color: rgb(var(--fg) / .78); font-size: 15px; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.danger { min-height: 52px; margin-top: 6px; border: 0; border-radius: 999px; background: #E5484D; color: #fff; font-size: 15px; font-weight: 700; }
.danger:disabled { opacity: .6; }
.danger-text { color: #FF9B85; }
.user-list { display: grid; }
.user-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.user-name { font-size: 15px; font-weight: 500; }
.user-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: rgb(var(--fg) / .46); font-size: 12px; }
.user-main { display: grid; gap: 2px; min-width: 0; }
.user-actions { display: flex; gap: 8px; }
.temp-pw { grid-column: 1 / -1; display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: rgb(var(--fg) / .05); font-size: 13px; }
.temp-pw code { color: #fff; font-size: 24px; letter-spacing: .04em; -webkit-user-select: all; user-select: all; }
.foot-links { display: flex; gap: 20px; font-size: 13px; }
.foot-links a { color: rgb(var(--fg) / .64); text-decoration: underline; text-decoration-color: rgb(var(--fg) / .25); text-underline-offset: 4px; }
@media (max-width: 520px) {
  .user-list li { grid-template-columns: 1fr; }
  .row-tag { display: none; }
}
/* ---------- Paid site: plan, visitors, proofs ---------- */
.foot-links { flex-wrap: wrap; row-gap: 8px; }
.foot-login { display: inline-flex; align-items: center; }
.nav-login { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }

/* 有料会員: one pill link to #/plan */
.paywall { display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-height: 48px; padding: 8px 14px 8px 16px; border-radius: 999px; color: #fff; font-size: 13.5px; transition: transform .25s var(--ease), background-color .25s; }
.paywall:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .05); }
.paywall > svg { flex: none; width: 17px; height: 17px; color: var(--accent); }
.paywall-label { font-weight: 500; }
.paywall-price { color: rgb(var(--fg) / .72); font-feature-settings: 'palt' 1, 'tnum' 1; }
.paywall-extra { color: rgb(var(--fg) / .5); font-size: 12.5px; }
.paywall-chev { display: grid; margin-left: 2px; color: rgb(var(--fg) / .5); }
.paywall-chev svg { width: 13px; height: 13px; }
.hero-paywall { order: 6; margin: 18px 0 4px; }
.store-info .paywall { margin-top: 2px; }

/* Locked reels: nothing to read at rest, they only ever spin */
.big.is-locked .roll-slot:not(.is-spinning) { visibility: hidden; }
.locked-word { font: 500 clamp(28px, 8vw, 44px)/1.2 var(--f-jp); letter-spacing: 0; color: rgb(var(--fg) / .5); }
.chip.is-locked .chip-unit svg { width: 20px; height: 20px; margin: 2px 0 1px; color: rgb(var(--fg) / .5); }
.row-unit.is-locked { align-self: center; color: rgb(var(--fg) / .45); }
.row-unit.is-locked svg { width: 18px; height: 18px; }
.machine-sub { margin-left: 4px; color: rgb(var(--fg) / .5); font-size: 13px; font-weight: 400; }
.store-link { justify-self: start; color: rgb(var(--fg) / .56); font-size: 12px; text-decoration: underline; text-decoration-color: rgb(var(--fg) / .25); text-underline-offset: 3px; }

/* Visitors' front: today's counts and the way in */
.stepper--static { padding: 6px 10px; }
.teaser-sub { order: 5; margin-top: 4px; color: rgb(var(--fg) / .56); font-size: 14px; }
.teaser-actions { order: 6; display: grid; gap: 14px; margin-top: 26px; max-width: 420px; }
.teaser-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 0; padding: 0 28px; }
.btn-row > .teaser-btn.primary { flex: 1 1 auto; }
.teaser-links { font-size: 13px; }
.teaser-links a { color: rgb(var(--fg) / .7); text-decoration: underline; text-decoration-color: rgb(var(--fg) / .3); text-underline-offset: 4px; }
.auth-links { display: flex; justify-content: center; gap: 18px; }

/* One store's record */
.store-page-name { font-size: clamp(22px, 5.5vw, 30px); font-weight: 500; letter-spacing: -.01em; }
.store-back { padding: 40px var(--gut) 8px; text-align: left; }
.store-trend h3 a { color: inherit; text-decoration: underline; text-decoration-color: rgb(var(--fg) / .2); text-underline-offset: 4px; }
a.log-store { text-decoration: none; }
a.log-store:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.log-proof { padding: 1px 8px; border: 1px solid rgb(var(--fg) / .14); border-radius: 999px; color: rgb(var(--fg) / .6); font-size: 11px; }

/* 指紋 */
.proof-bar { max-width: 1200px; margin: 0 auto; padding: 8px var(--gut) 28px; }
.proof-link { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 16px; border-radius: 16px; font-size: 12.5px; color: rgb(var(--fg) / .6); }
.proof-label { color: #fff; font-weight: 500; }
.proof-hash, .proof-full, .proof-match code, .proof-versions code, .proof-days code, .proof-text { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; }
.proof-hash { color: rgb(var(--fg) / .86); letter-spacing: .02em; }
.proof-go { color: var(--accent); }
.proof-full { display: block; padding: 14px 16px; border-radius: 14px; background: rgb(var(--fg) / .05); font-size: 13px; line-height: 1.6; word-break: break-all; -webkit-user-select: all; user-select: all; }
.proof-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 13px; }
.proof-meta div { display: flex; gap: 10px; }
.proof-meta dt { color: rgb(var(--fg) / .5); }
.proof-versions { display: grid; gap: 6px; padding-left: 1.4em; color: rgb(var(--fg) / .7); font-size: 12.5px; }
.proof-versions li span { margin-right: 12px; }
.proof-text { max-height: 360px; overflow: auto; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgb(0 0 0 / .25); color: rgb(var(--fg) / .78); font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-all; }
.proof-match { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; padding: 14px 16px; border-radius: 14px; background: rgb(var(--fg) / .05); font-size: 12.5px; }
.proof-match b { grid-row: span 2; font-size: 18px; font-weight: 500; }
.proof-match.is-ok b { color: #7fd99a; }
.proof-match.is-ng b { color: #ff6b5e; }
.proof-match span { color: rgb(var(--fg) / .5); }
.proof-match code { word-break: break-all; color: rgb(var(--fg) / .86); }
.proof-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 18px; }
.proof-days a { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; color: rgb(var(--fg) / .8); font-size: 13px; }
.proof-days code { color: rgb(var(--fg) / .45); font-size: 11.5px; }

/* Account: plan */
.plan-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 15px; }
.plan-now b { font-size: 20px; font-weight: 500; }
.plan-now span { color: rgb(var(--fg) / .6); font-size: 13px; }
.plan-links { text-align: left; }

/* Admin: 有料期限 */
.stats.stats--4 { grid-template-columns: repeat(4, 1fr); }
.stats.stats--4 .stat { padding: 14px 12px; border-right: 1px solid var(--line); }
.stats.stats--4 .stat:first-child { padding-left: 0; }
.stats.stats--4 .stat:last-child { border-right: 0; }
.plan-badge { margin-left: 10px; padding: 2px 9px; border: 1px solid rgb(var(--fg) / .16); border-radius: 999px; color: rgb(var(--fg) / .56); font-size: 11.5px; font-weight: 400; vertical-align: 2px; }
.plan-badge.is-paid { border-color: rgb(240 138 75 / .55); color: var(--accent); }
.plan-ctl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plan-ctl-label { color: rgb(var(--fg) / .5); font-size: 12px; }
.plan-date { min-height: 40px; padding: 6px 12px; border: 1px solid rgb(var(--fg) / .12); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 14px; color-scheme: dark; }
.plan-date:focus { outline: none; border-color: rgb(240 138 75 / .7); box-shadow: 0 0 0 3px rgb(240 138 75 / .18); }
@media (max-width: 520px) {
  .stats.stats--4 { grid-template-columns: 1fr 1fr; }
  .stats.stats--4 .stat:nth-child(2) { border-right: 0; }
  .stats.stats--4 .stat:nth-child(3) { padding-left: 0; }
  .nav-login { min-height: 36px; padding: 0 12px; }
}
/* ---------- Front page for visitors (LP) ---------- */
.lp-nav .nav-right { gap: 8px; }
.lp-nav-reg { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: #101215; font-size: 13px; font-weight: 700; white-space: nowrap; }
.lp-hero { overflow: clip; display: grid; gap: 22px; align-content: center; justify-items: center; min-height: 92vh; min-height: 92svh; max-width: 1200px; margin: 0 auto; padding: 96px var(--gut) 48px; text-align: center; }
.lp-lamp { width: min(78vw, 380px); }
.lp-hero-text { display: grid; gap: 18px; justify-items: center; }
.lp-title { font-size: clamp(34px, 9.4vw, 68px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.lp-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lp-facts span { padding: 6px 14px; border-radius: 999px; color: rgb(var(--fg) / .82); font-size: 13px; }
.lp-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; max-width: 440px; }
.lp-btn { display: inline-flex; flex: 1 1 160px; align-items: center; justify-content: center; min-height: 54px; margin-top: 0; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.lp-btn.ghost { color: #fff; }
.lp-btn--off { color: rgb(var(--fg) / .5); font-weight: 500; cursor: default; }
.lp-sec { max-width: 1100px; margin: 0 auto; padding: 72px var(--gut) 8px; border-top: 1px solid var(--line); }
.lp-h2 { font-size: clamp(24px, 6.4vw, 36px); font-weight: 700; letter-spacing: -.01em; }
.lp-sub { margin-top: 6px; color: rgb(var(--fg) / .5); font-size: 13px; }
.lp-big-label { margin-top: 22px; color: rgb(var(--fg) / .6); font-size: 13.5px; }
.lp-figure { margin-top: 2px; }
.lp-stats { margin: 28px 0 0; }
.lp-record .chart { margin-top: 30px; }
.lp-note { margin-top: 16px; color: rgb(var(--fg) / .46); font-size: 12px; line-height: 1.75; }
.lp-more { margin-top: 18px; font-size: 14px; }
.lp-more a { color: var(--accent); text-decoration: underline; text-decoration-color: rgb(240 138 75 / .4); text-underline-offset: 4px; }
.lp-date { margin-top: 6px; color: rgb(var(--fg) / .6); font-size: 14px; }
.lp-counts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 18px; }
.lp-counts p { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 8px; }
.lp-count { font: 200 clamp(64px, 18vw, 110px)/.95 var(--f-num); letter-spacing: -.05em; }
.lp-count.is-dim { color: rgb(var(--fg) / .42); }
.lp-count-unit { color: rgb(var(--fg) / .7); font-size: 16px; font-weight: 500; }
.lp-count-label { grid-column: 1 / -1; color: rgb(var(--fg) / .55); font-size: 13px; }
.lp-pending { margin-top: 16px; color: rgb(var(--fg) / .7); font-size: 15px; }
.lp-locked { display: grid; gap: 8px; justify-items: start; margin-top: 26px; padding: 18px 22px 20px; border: 1px solid var(--line); border-radius: 24px; background: rgb(var(--fg) / .03); cursor: pointer; }
.lp-reels { width: min(100%, 420px); margin: 0; }
.lp-locked-label { display: inline-flex; align-items: center; gap: 8px; color: rgb(var(--fg) / .8); font-size: 14px; font-weight: 500; }
.lp-locked-label svg { width: 16px; height: 16px; color: var(--accent); }
.lp-proof { margin-top: 18px; }
.lp-stores { display: grid; margin-top: 18px; }
.lp-stores a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.lp-stores a:hover .lp-store-name { text-decoration: underline; text-underline-offset: 3px; }
.lp-store-name { min-width: 0; overflow: hidden; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.lp-store-rec { display: inline-flex; flex: none; align-items: baseline; gap: 12px; }
.lp-store-rec .num { font-size: 16px; }
.lp-store-rec .is-plus { color: #ffb27f; }
.lp-store-rec .is-minus { color: #8fa9ff; }
.lp-store-rate { color: rgb(var(--fg) / .5); font-size: 12px; }
.lp-more-btn { margin-top: 16px; }
.lp-plans { display: grid; gap: 14px; margin-top: 22px; }
.lp-plan { display: grid; gap: 10px; align-content: start; padding: 24px 24px 26px; border-radius: 24px; }
.lp-plan--paid { box-shadow: inset 0 0 0 1px rgb(240 138 75 / .55); }
.lp-plan-name { color: rgb(var(--fg) / .7); font-size: 14px; font-weight: 500; }
.lp-plan--paid .lp-plan-name { color: var(--accent); }
.lp-plan-price { font-size: 16px; }
.lp-plan-price .num { margin: 0 4px; font: 300 44px/1 var(--f-num); letter-spacing: -.03em; }
.lp-plan ul { display: grid; gap: 8px; margin-top: 4px; padding: 0; list-style: none; font-size: 14px; }
.lp-plan li { position: relative; padding-left: 18px; color: rgb(var(--fg) / .86); }
.lp-plan li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--fg) / .45); }
.lp-plan--paid li::before { background: var(--accent); }
.lp-steps { display: grid; gap: 0; margin-top: 18px; padding: 0; list-style: none; counter-reset: step; }
.lp-steps li { display: grid; grid-template-columns: 4.5em 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; counter-increment: step; }
.lp-steps b { color: var(--accent); font-weight: 700; }
.lp-steps b::before { content: counter(step) '. '; color: rgb(var(--fg) / .4); font-weight: 400; }
.lp-steps span { color: rgb(var(--fg) / .86); }
.lp-end { display: grid; gap: 18px; justify-items: center; padding-bottom: 64px; text-align: center; }
.lp-end-title { font-size: clamp(26px, 7vw, 40px); font-weight: 700; }
@media (min-width: 700px) {
  .lp-plans { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; justify-items: start; text-align: left; }
  .lp-hero-text { justify-items: start; grid-row: 1; grid-column: 1; }
  .lp-lamp { grid-row: 1; grid-column: 2; justify-self: center; width: min(40vw, 500px); }
  .lp-facts, .lp-cta { justify-content: flex-start; }
}
.lp-check { display: grid; gap: 8px; margin-top: 28px; padding: 18px 20px 20px; border: 1px dashed rgb(var(--fg) / .2); border-radius: 20px; }
.lp-check-title { color: rgb(var(--fg) / .8); font-size: 14px; font-weight: 700; }
.lp-check-range { color: rgb(var(--fg) / .5); font-size: 12.5px; }
.lp-check-stats { margin-top: 4px; }
.lp-check-stats .stat-value { font-size: 22px; }
.lp-check-note { color: rgb(var(--fg) / .55); font-size: 12px; line-height: 1.75; }
