/* booker.cy public restaurant site (dark, cinematic layout).
   Colours/fonts come from the restaurant's theme: the server injects :root variables (server/theme.js);
   the values below are only fallbacks. html classes: art-tokyo|art-glow|art-plain, icons-kanji|icons-numbers|icons-none, has-mark.
   The "akiba" preset (red sun, torii, Fuji, brush kanji) is Akiba's own look from its printed menu.
   Palette: sumi #0E0E0E · coal #161616 · akiba red #D7262E · washi cream #F4EEE3 · stone #5E5A55 */
:root {
  --sumi: #0E0E0E; --coal: #161616; --coal-2: #1F1F1F; --red: #D7262E; --red-dk: #B21C24; --cream: #F4EEE3;
  /* names used by the panel / forms below */
  --nori: #111111; --nori-2: #1F1F1F; --rice: #F4EEE3; --paper: #FFFFFF; --maguro: #D7262E; --maguro-dk: #B21C24;
  --wasabi: #7E9535; --hinoki: #EADFCB; --ink: #5E5A55; --line: #DDD3C2;
  --font: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --display: var(--font); --accent-rgb: 215, 38, 46; --accent-light: #F08A8F; --accent-soft: #F7D7D8;
  --brush: 'Yuji Syuku', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  --r-sm: 4px; --r-md: 10px;
  --maxw: 1200px;
  --top-h: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--nori); background: var(--sumi); -webkit-font-smoothing: antialiased; }
main { background: var(--cream); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--ink); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h2 { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -.01em; line-height: 1.05; font-weight: 500; margin: 0 0 10px; }
h3 { font-size: 20px; margin: 0 0 12px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ''; width: 4px; height: 18px; background: var(--red); }
.eyebrow.light { color: var(--accent-light); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 15px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; transition: background .15s, color .15s, border-color .15s; }
.btn.sm { padding: 9px 16px; font-size: 13px; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dk); }
.btn.ghost { border-color: var(--nori); background: transparent; }
.btn.ghost:hover { background: var(--nori); color: #fff; }
.btn.ghost.light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn.ghost.light:hover { background: #fff; color: var(--sumi); }
.btn.dark { background: var(--nori); color: #fff; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
/* panel buttons stay friendly (no uppercase) */
.panel .btn { text-transform: none; letter-spacing: 0; font-size: 16px; border-radius: 999px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 28px; padding: 0 max(24px, calc((100% - var(--maxw)) / 2 + 24px)); background: var(--sumi); color: #fff; border-bottom: 1px solid #262626; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; }
.brand img { height: 40px; width: auto; }
.seal-mini { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 4px; background: var(--red); color: #fff; font-size: 13px; line-height: 1; writing-mode: vertical-rl; font-family: var(--brush); font-style: normal; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #CFCAC2; }
.nav a:hover { color: #fff; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { border: 1px solid #3A3A3A; background: transparent; color: #fff; border-radius: var(--r-sm); padding: 6px 10px; font-weight: 600; font-size: 13px; cursor: pointer; }
.lang:hover { border-color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; }
.topbar .icon-btn { color: #fff; }
.icon-btn:hover { background: rgba(127, 127, 127, .15); }
.basket-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #3A3A3A; background: transparent; color: #fff; padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600; font-size: 14px; cursor: pointer; }
.basket-btn:hover { border-color: #fff; }
.basket-btn .count { background: var(--red); min-width: 22px; height: 22px; border-radius: 11px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; }
.basket-btn.bump { animation: bump .35s ease; }
/* bookings + menu website (no online-ordering add-on): no basket, no order modes */
html.menu-only .basket-btn, html.menu-only #modes, html.menu-only #liveOrder { display: none !important; }
@keyframes bump { 50% { transform: scale(1.08); } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--top-h)); display: flex; align-items: center; background: var(--sumi); color: #fff; overflow: hidden; }
.hero-visual { position: absolute; inset: 0; }
.hero-art { width: 100%; height: 100%; display: block; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual.has-img .hero-art { display: none; }
.hero-visual.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,14,14,.92) 0%, rgba(14,14,14,.55) 55%, rgba(14,14,14,.25) 100%); }
.hero-text { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 60px 24px 90px; }
.hero h1 { font-family: var(--display); font-size: clamp(54px, 9vw, 128px); line-height: .9; letter-spacing: -.01em; font-weight: 900; font-style: italic; text-transform: uppercase; margin: 0; max-width: 9ch; }
.kanji-line { font-family: var(--brush); font-size: clamp(34px, 5vw, 60px); color: var(--red); margin: 6px 0 8px; line-height: 1.1; }
.tagline { font-size: clamp(20px, 2.4vw, 28px); color: #E9E3D9; max-width: 30ch; margin: 0 0 24px; font-weight: 300; }
.status-line { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; margin-bottom: 28px; padding: 8px 14px; border: 1px solid #333; border-radius: 999px; background: rgba(14,14,14,.6); font-size: 15px; }
.status-line .dot { width: 9px; height: 9px; border-radius: 50%; background: #8FC14A; box-shadow: 0 0 0 4px rgba(143, 193, 74, .2); }
.status-line.closed .dot { background: #8A847C; box-shadow: 0 0 0 4px rgba(138, 132, 124, .2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.modes { color: #A9A39A; margin-top: 18px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; z-index: 1; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- three tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--sumi); }
.tile { position: relative; overflow: hidden; display: grid; align-content: end; gap: 10px; min-height: 300px; padding: 36px 32px; color: #fff; text-decoration: none; background: var(--coal); border-right: 1px solid #262626; transition: background .2s; }
.tile:nth-child(2) { background: #1A1A1A; }
.tile:last-child { border-right: 0; }
.tile:hover { background: rgba(var(--accent-rgb), .12); }
.tile h2 { font-size: 30px; margin: 0; font-weight: 500; position: relative; }
.tile p { margin: 0; color: #BEB8AE; max-width: 34ch; position: relative; }
.tile-no { position: absolute; top: 28px; left: 32px; font-size: 13px; letter-spacing: .2em; color: var(--red); font-weight: 600; }
.tile-kanji { position: absolute; top: 10px; right: 16px; font-family: var(--brush); font-size: 110px; line-height: 1; color: rgba(255,255,255,.05); writing-mode: vertical-rl; transition: color .2s; }
.tile:hover .tile-kanji { color: rgba(var(--accent-rgb), .22); }
.tile-link { margin-top: 8px; font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; position: relative; }
.tile-link i { font-style: normal; color: var(--red); display: inline-block; transition: transform .2s; }
.tile:hover .tile-link i { transform: translateX(6px); }

/* ---------- categories grid ---------- */
.serve { padding: 96px 0 40px; }
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 36px; }
.cat-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 3.4; padding: 22px; color: #fff; text-decoration: none; background: var(--coal); }
.cat-tile:nth-child(4n+2), .cat-tile:nth-child(4n+4) { background: #1C1C1C; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-tile.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.8) 100%); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile .ck { position: absolute; right: 14px; top: 8px; font-family: var(--brush); font-size: 64px; line-height: 1; color: var(--red); opacity: .9; writing-mode: vertical-rl; transition: transform .3s; }
.cat-tile .ck.long { font-size: 38px; }
.cat-tile.has-img .ck { color: #fff; opacity: .85; text-shadow: 0 2px 12px rgba(0,0,0,.5); z-index: 1; }
.cat-tile:hover .ck { transform: translateY(4px); }
.cat-tile .cn { position: relative; z-index: 1; font-size: 12px; letter-spacing: .2em; color: #CFC9BF; font-weight: 600; }
.cat-tile .ct { position: relative; z-index: 1; font-size: 22px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; line-height: 1.15; }
.cat-tile .ct::after { content: ''; display: block; width: 0; height: 2px; background: var(--red); margin-top: 8px; transition: width .25s; }
.cat-tile:hover .ct::after { width: 48px; }

/* ---------- menu ---------- */
.menu { padding: 70px 0 70px; }
.menu-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cat-bar { position: sticky; top: var(--top-h); z-index: 20; display: flex; gap: 4px; overflow-x: auto; padding: 10px max(24px, calc((100% - var(--maxw)) / 2 + 24px)); margin: 18px 0 8px; background: var(--sumi); scrollbar-width: none; }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar a { flex: none; padding: 8px 14px; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #CFCAC2; }
.cat-bar a:hover { color: #fff; }
.cat-bar a.on { background: var(--red); color: #fff; }
.menu-list { display: grid; gap: 10px; }
.menu-cat { padding-top: 40px; }
.menu-cat h3 { font-family: var(--display); display: flex; align-items: baseline; gap: 14px; font-size: 30px; font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 6px; padding-bottom: 12px; border-bottom: 2px solid var(--nori); }
.menu-cat h3 .hk { font-family: var(--brush); font-style: normal; font-weight: 400; font-size: 26px; color: var(--red); }
.menu-cat .items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.item-main { display: grid; gap: 4px; }
.item-title { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.item-name { font-weight: 600; font-size: 18px; }
.item-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--red-dk); }
.item-desc { color: var(--ink); font-size: 14.5px; line-height: 1.5; margin: 0; }
.item-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tag { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; background: var(--hinoki); }
.tag.hot { background: var(--accent-soft); color: var(--red-dk); }
.item-side { display: grid; justify-items: end; gap: 10px; }
.item-img { width: 104px; height: 104px; object-fit: cover; border-radius: var(--r-sm); background: var(--hinoki); }
.add { display: inline-grid; place-items: center; min-width: 44px; height: 40px; padding: 0 14px; border-radius: var(--r-sm); border: 1.5px solid var(--nori); background: transparent; font-weight: 600; cursor: pointer; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.add:hover { background: var(--nori); color: #fff; }
.add.in { background: var(--red); border-color: var(--red); color: #fff; }
.item.soldout .item-name, .item.soldout .item-price { color: var(--ink); }
.item.soldout .item-img { filter: grayscale(1); opacity: .6; }
.soldout-label { font-size: 13px; font-weight: 600; color: var(--maguro); }
.allergen-note { margin: 34px 0 0; font-size: 14px; color: var(--ink); }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; background: var(--sumi); color: #fff; }
.story-art { position: relative; min-height: 520px; overflow: hidden; background: var(--coal); display: grid; place-items: center; }
.story-sun { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--red); filter: blur(.4px); box-shadow: 0 0 120px rgba(var(--accent-rgb), .35); }
.story-kanji { position: relative; font-family: var(--brush); font-size: clamp(110px, 14vw, 190px); line-height: 1.02; color: var(--sumi); text-align: center; }
.story-text { padding: 90px max(24px, 7vw); display: grid; align-content: center; justify-items: start; gap: 6px; }
.story-text h2 { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; }
.about { font-size: 19px; font-weight: 300; color: #D9D3C9; max-width: 44ch; margin: 6px 0 24px; }

/* ---------- reserve ---------- */
.reserve { background: var(--coal); color: #fff; }
.reserve-inner { max-width: var(--maxw); margin: 0 auto; padding: 90px 24px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.reserve .muted { color: #B5AFA6; }
.reserve-form { display: grid; gap: 14px; }
.reserve label span { color: #DCD6CC; }
.reserve input, .reserve select { background: var(--sumi); border-color: #3A3A3A; color: #fff; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; min-height: 10px; }
.slot { padding: 8px 14px; border-radius: var(--r-sm); border: 1px solid #3A3A3A; background: transparent; color: #fff; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot.on { background: var(--red); border-color: var(--red); }
.reserve .form-error { color: #FFB4B8; }

/* ---------- footer ---------- */
.footer { background: var(--sumi); color: #CFCAC2; font-size: 15px; }
.foot-grid { max-width: var(--maxw); margin: 0 auto; padding: 80px 24px 50px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-mark { display: block; font-family: var(--display); font-size: 30px; font-weight: 900; font-style: italic; color: #fff; letter-spacing: .02em; margin-bottom: 14px; }
.foot-mark span { font-family: var(--brush); font-style: normal; font-weight: 400; color: var(--red); font-size: 24px; margin-left: 6px; }
.foot-brand p { margin: 0 0 16px; max-width: 34ch; }
.foot-h { font-size: 19px; font-weight: 600; color: #fff; margin: 4px 0 18px; letter-spacing: .01em; }
.footer p { margin: 0 0 8px; }
.footer a { color: #fff; font-weight: 500; text-decoration: none; border-bottom: 1px solid #444; }
.footer a:hover { border-color: var(--red); }
.hours { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.hours td { padding: 6px 0; border-bottom: 1px solid #262626; }
.hours td:last-child { text-align: right; color: #fff; }
.hours tr.today td { color: #fff; font-weight: 600; }
.hours tr.today td:first-child::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: middle; }
.social { display: flex; gap: 10px; }
.social a { display: inline-grid; place-items: center; height: 36px; padding: 0 14px; border: 1px solid #3A3A3A; border-radius: 999px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.social a:hover { background: var(--red); border-color: var(--red); }
.foot-bottom { max-width: var(--maxw); margin: 0 auto; padding: 22px 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1px solid #262626; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #8A847C; }
.foot-bottom .credit { letter-spacing: .06em; text-transform: none; }
/* "Our other restaurants" (brand group) */
.brands { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 40px; }
.brand-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.footer a.brand-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #2E2E2E; border-radius: var(--r-sm); color: #fff; text-decoration: none; border-bottom: 1px solid #2E2E2E; transition: border-color .15s, background .15s; }
.footer a.brand-card:hover { border-color: var(--red); background: #181818; }
.brand-card img, .brand-ini { width: 48px; height: 48px; flex: none; border-radius: 10px; object-fit: contain; background: #1E1E1E; }
.brand-ini { display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; background: #333; }
.brand-card span { display: grid; gap: 2px; min-width: 0; }
.brand-card small { color: #9A948B; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* restaurant runs its website in one language only */
.one-lang .lang { display: none; }
@media (max-width: 640px) { .brands { padding: 0 16px 30px; } }
.footer .foot-bottom .credit a { color: #CFCAC2; border-bottom-color: #3A3A3A; }
.footer .foot-bottom .credit a:hover { color: #fff; border-bottom-color: var(--red); }

/* ---------- forms ---------- */
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); font-size: 16px; font-weight: 400; }
textarea { resize: vertical; min-height: 70px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: var(--maguro-dk); font-weight: 600; margin: 0; min-height: 0; }
.form-error:empty { display: none; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 2px solid var(--nori); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 11px; font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--nori); color: #fff; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); cursor: pointer; font-weight: 500; font-size: 15px; }
.choice input { width: auto; margin-top: 3px; accent-color: var(--maguro); }
.choice b { display: block; font-size: 16px; }
.choice:has(input:checked) { border-color: var(--nori); box-shadow: inset 0 0 0 1px var(--nori); }

/* ---------- panel ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 40; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--rice); z-index: 50; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0, 0, 0, .35); animation: slidein .22s ease-out; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line); background: var(--sumi); color: #fff; }
.panel-head .icon-btn { color: #fff; }
.panel-head h2 { font-size: 20px; margin: 0; flex: 1; font-weight: 600; letter-spacing: .02em; }
.panel-body { flex: 1; overflow-y: auto; padding: 20px 22px; display: grid; gap: 16px; align-content: start; }
.panel-foot { padding: 16px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); display: grid; gap: 10px; }
.panel-foot:empty { display: none; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.line-name { font-weight: 600; }
.line-price { font-variant-numeric: tabular-nums; font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 18px; cursor: pointer; border-radius: 50%; }
.qty span { min-width: 24px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.line .note-btn { border: 0; background: none; color: var(--ink); text-decoration: underline; font-size: 14px; cursor: pointer; justify-self: start; padding: 0; }
.line input.note { font-size: 14px; padding: 8px 10px; grid-column: 1 / -1; }
.sum { display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.sum div { display: flex; justify-content: space-between; }
.sum .total { font-weight: 700; font-size: 19px; padding-top: 6px; border-top: 1px solid var(--line); }
.notice { padding: 12px 14px; border-radius: var(--r-sm); background: var(--hinoki); font-size: 15px; }
.notice.warn { background: var(--accent-soft); color: var(--maguro-dk); font-weight: 600; }
.code-input { font-size: 30px; letter-spacing: .4em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.linkish { border: 0; background: none; padding: 0; text-decoration: underline; cursor: pointer; color: var(--ink); font-size: 15px; justify-self: start; }
.empty { text-align: center; padding: 40px 10px; color: var(--ink); }
.empty .seal { display: inline-grid; margin-bottom: 14px; padding: 10px 12px; border-radius: 6px; background: var(--red); color: #fff; font-family: var(--brush); font-size: 34px; line-height: 1; }

/* order tracking */
.track { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding-bottom: 18px; position: relative; color: var(--ink); }
.step::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); margin: 4px 0 0 4px; z-index: 1; }
.step:not(:last-child)::after { content: ''; position: absolute; left: 12px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.step.done { color: var(--nori); }
.step.done::before { background: var(--wasabi); border-color: var(--wasabi); }
.step.now { color: var(--nori); font-weight: 700; }
.step.now::before { border-color: var(--maguro); background: var(--maguro); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .2); }
.big-code { font-size: 34px; font-weight: 800; letter-spacing: .04em; }
.order-card { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.order-card .top { display: flex; justify-content: space-between; font-weight: 600; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--hinoki); }
.pill.accepted, .pill.ready, .pill.completed { background: #E2EAC9; }
.pill.rejected, .pill.expired { background: var(--accent-soft); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--sumi); color: #fff; padding: 12px 20px; border-radius: var(--r-sm); border-left: 4px solid var(--red); font-weight: 500; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: calc(100% - 40px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* mobile basket bar */
.mobile-bar { display: none; }

@media (max-width: 1020px) {
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .menu-cat .items { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --top-h: 60px; }
  .nav, .order-top { display: none; }
  .topbar { gap: 12px; padding: 0 16px; }
  .wrap, .hero-text { padding-left: 16px; padding-right: 16px; }
  .hero { min-height: calc(92svh - var(--top-h)); align-items: flex-end; }
  .hero-text { padding-bottom: 80px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 220px; border-right: 0; border-bottom: 1px solid #262626; padding: 30px 20px; }
  .tile-no { left: 20px; }
  .serve { padding-top: 64px; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
  .cat-tile { padding: 16px; }
  .cat-tile .ck { writing-mode: horizontal-tb; font-size: 32px; right: 12px; top: 10px; }
  .cat-tile .ck.long { font-size: 22px; }
  .cat-tile .ct { font-size: 17px; }
  .cat-bar { padding: 8px 16px; }
  .story { grid-template-columns: 1fr; }
  .story-art { min-height: 300px; }
  .story-text { padding: 60px 16px; }
  .reserve-inner { grid-template-columns: 1fr; gap: 28px; padding: 64px 16px; }
  .foot-grid { padding: 60px 16px 40px; gap: 34px; }
  .foot-bottom { padding: 20px 16px 30px; }
  html { scroll-padding-top: 110px; }
  .item-img { width: 84px; height: 84px; }
  .add { height: 44px; min-width: 64px; }
  .topbar { height: calc(var(--top-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .basket-btn [data-t] { display: none; }
  .mobile-bar { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25; }
  .mobile-bar .btn { width: 100%; justify-content: space-between; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); text-transform: none; letter-spacing: 0; font-size: 16px; }
  body.has-items { padding-bottom: 84px; }
  .panel { width: 100%; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .brand #brandName { display: none; }
}
@media (max-width: 860px) { body.has-items .toast { bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------- theme switches (classes on <html>, set by the server from the restaurant's theme) ---------- */
.hero-glow { position: absolute; inset: 0; display: none; overflow: hidden; }
.hero-glow::before { content: ''; position: absolute; width: min(70vw, 760px); aspect-ratio: 1; right: -8%; top: 50%; transform: translateY(-55%); border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .55) 0%, rgba(var(--accent-rgb), .18) 38%, rgba(var(--accent-rgb), 0) 70%); }
.hero-glow span { position: absolute; width: min(34vw, 360px); aspect-ratio: 1; right: 10%; top: 50%; transform: translateY(-62%); border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb), .55); box-shadow: 0 0 0 28px rgba(var(--accent-rgb), .08), 0 0 0 64px rgba(var(--accent-rgb), .05); }
html.art-glow .hero-glow { display: block; }
html:not(.art-tokyo) .hero-art { display: none; }
.hero-visual.has-img .hero-glow { display: none; }
/* decorative mark (e.g. 秋葉) and Japanese characters only when the theme uses them */
html:not(.has-mark) .kanji-line, html:not(.has-mark) #footMark { display: none; }
html:not(.icons-kanji) .tile-kanji, html:not(.icons-kanji) .menu-cat h3 .hk { display: none; }
.story-kanji { font-family: var(--brush); }
html:not(.has-mark) .story-kanji { font-family: var(--display); font-weight: 800; }
/* category tiles: big outlined numbers instead of kanji */
.cat-tile .cnum { position: absolute; right: 14px; top: 4px; font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(var(--accent-rgb), .9); }
.cat-tile.has-img .cnum { -webkit-text-stroke-color: rgba(255,255,255,.85); z-index: 1; }
@media (max-width: 860px) { .cat-tile .cnum { font-size: 40px; } }

/* ---------- removals ("Without onion"), table mode, popup, add-to-home ---------- */
.line-rm { font-size: 13.5px; color: var(--red-dk); font-weight: 600; }
.opt-list { display: grid; gap: 8px; }
.table-banner { position: sticky; top: var(--top-h); z-index: 21; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; justify-content: center;
  padding: 10px 16px; background: var(--red); color: #fff; text-align: center; }
.table-banner b { font-size: 17px; letter-spacing: .02em; }
.table-banner span { font-size: 14px; opacity: .9; }
.table-banner.bad { background: #6b1b1b; }
body.table-mode .cat-bar { top: calc(var(--top-h) + 44px); }
body.table-mode #reserve, body.table-mode #navReserve, body.table-mode #heroReserve, body.table-mode .modes { display: none !important; }
.promo-wrap { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .6); animation: fadein .25s ease-out; }
@keyframes fadein { from { opacity: 0; } }
.promo-card { position: relative; width: min(440px, 100%); max-height: 90vh; overflow: auto; background: var(--cream); color: var(--nori); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.promo-card img { width: 100%; max-height: 300px; object-fit: cover; display: block; }
.promo-body { padding: 22px 24px 24px; display: grid; gap: 12px; justify-items: start; }
.promo-body h2 { font-family: var(--display); font-size: 28px; margin: 0; }
.promo-body p { margin: 0; color: var(--ink); white-space: pre-line; }
.promo-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.promo-x:hover { background: var(--red); }
.install-guide { display: grid; justify-items: center; gap: 14px; text-align: center; }
.install-guide img { border-radius: 22px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.reserve-offers { background: transparent; border-color: #3A3A3A; color: #DCD6CC; }
.reserve-offers span { color: #DCD6CC; font-weight: 500; }

/* ---------- Continue with Google / Microsoft ---------- */
.sso { display: grid; gap: 10px; }
.panel .btn.sso-btn { background: #fff; color: #1f1f1f; border: 1px solid #c7c7c7; border-radius: 999px; justify-content: center; gap: 10px; font-weight: 600; text-decoration: none; }
.panel .btn.sso-btn:hover { background: #f4f4f4; }
.sso-or { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; margin: 4px 0; }
.sso-or::before, .sso-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* tiny map (public/minimap.js) – delivery pin */
.mm { position: relative; overflow: hidden; height: 240px; border-radius: 12px; background: #DDD8CF; user-select: none; cursor: grab; }
.mm:active { cursor: grabbing; }
.mm-tiles img { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.mm-pin { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -30px 0 0 -15px; pointer-events: none;
  background: var(--red, #D7262E); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.mm-mark { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #111; border: 2px solid #fff; }
.mm-mark b { position: absolute; left: 16px; top: -4px; white-space: nowrap; font-size: 12px; background: #fff; color: #111; padding: 0 4px; border-radius: 4px; }
.mm-zoom { position: absolute; right: 8px; top: 8px; display: grid; gap: 4px; }
.mm-zoom button { width: 34px; height: 34px; border-radius: 8px; border: 0; background: #fff; color: #111; font-size: 20px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; }
.mm-attr { position: absolute; right: 4px; bottom: 2px; font-size: 10px; background: rgba(255,255,255,.8); color: #333 !important; padding: 0 4px; border-radius: 3px; text-decoration: none; border: 0 !important; }
.pin-box { display: grid; gap: 8px; }
.pin-box .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tips { display: flex; gap: 8px; flex-wrap: wrap; }
.tips button { flex: 1; min-width: 56px; padding: 10px 8px; border-radius: 10px; border: 1px solid #ccc; background: #fff; color: #111; font-weight: 600; cursor: pointer; }
.tips button.on { background: var(--red, #D7262E); border-color: var(--red, #D7262E); color: #fff; }
.tips input { width: 90px; }

/* live order banner (homepage) */
.live-order { position: sticky; top: var(--top-h, 64px); z-index: 29; display: grid; gap: 6px; padding: 8px 12px; background: #111; border-bottom: 1px solid #2A2A2A; }
.lo-item { display: flex; align-items: center; gap: 10px; width: 100%; max-width: var(--maxw, 1180px); margin: 0 auto; padding: 10px 14px; border-radius: 12px; border: 0;
  background: var(--red, #D7262E); color: #fff; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.lo-item b { font-weight: 800; letter-spacing: .02em; }
.lo-item span:nth-of-type(2) { flex: 1; }
.lo-pending { background: #6B5B2A; } .lo-ready { background: #1F7A4D; }
.lo-go { font-weight: 700; white-space: nowrap; }
.lo-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; flex: none; animation: lo-pulse 1.4s ease-in-out infinite; }
@keyframes lo-pulse { 50% { opacity: .25; } }
@media (max-width: 640px) { .lo-item { font-size: 14px; padding: 9px 11px; } .lo-go { display: none; } }

/* rewards (loyalty add-on): tokens, spin wheel, shop, vouchers */
.rw-btn { position: relative; font-size: 20px; }
.rw-dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: #E8A33A; }
.rw-bal { display: grid; text-align: center; gap: 2px; padding: 16px; border-radius: 14px; background: var(--red, #D7262E); color: #fff; }
.rw-bal b { font-size: 44px; line-height: 1.1; } .rw-bal small { opacity: .85; }
.rw-box { margin-top: 16px; padding: 14px; border: 1px solid rgba(0,0,0,.12); border-radius: 14px; display: grid; gap: 10px; }
.rw-box h3 { margin: 0; font-size: 18px; } .rw-box summary { cursor: pointer; font-weight: 600; }
.wheel-wrap { position: relative; width: min(280px, 80vw); aspect-ratio: 1; margin: 6px auto 4px; }
.wheel { width: 100%; height: 100%; border-radius: 50%; border: 6px solid #111; box-shadow: 0 6px 20px rgba(0,0,0,.25); position: relative; overflow: hidden; }
.wheel .wl { position: absolute; left: 50%; top: 0; height: 50%; width: 0; transform-origin: bottom center; }
.wheel .wl b { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); writing-mode: vertical-rl; text-orientation: mixed; font-size: 12px; font-weight: 700;
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8); white-space: nowrap; max-height: 47%; overflow: hidden; text-overflow: ellipsis; }
.wheel .wl.flip b { transform: translateX(-50%) rotate(180deg); }
@media (max-width: 400px) { .wheel .wl b { font-size: 10.5px; } }
.wheel-ptr { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 28px; color: #111; text-shadow: 0 2px 0 #fff; }
.rw-shop { display: grid; gap: 10px; }
.rw-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; }
.rw-item img, .rw-ic { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; font-size: 28px; background: rgba(0,0,0,.06); }
.rw-cost { font-weight: 700; color: var(--red, #D7262E); font-size: 14px; }
.rw-v { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: rgba(0,0,0,.04); }
.rw-v.used, .rw-v.expired, .rw-v.cancelled { opacity: .5; }
.rw-code { font-family: ui-monospace, monospace; font-weight: 800; letter-spacing: .08em; padding: 4px 8px; border: 2px dashed currentColor; border-radius: 8px; white-space: nowrap; }
