/* livetokyo.com — renewal "Kumomi" (2026-10). The only stylesheet of site_renewal/.
   Canon: renewal/DESIGN.md (this lifts v3's no-shadow / no-gradient / no-animation rules on purpose; the words rules stay).
   Contract kept from v3 (LSN-0239): the curtain (.viewport::after) only COVERS the player. Never hide the video element
   with display:none / visibility:hidden / opacity:0. Only the player's camera is "Live" (red is for that word alone). */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg: #f7f4ee;              /* paper, same as the art's background */
  --bg-2: #f1ede4;
  --surface-1: #ffffff;
  --surface-2: #f4f1fb;       /* lavender mist: hover, chips */
  --surface-3: #e9e5fa;       /* selected */
  --line: rgba(47, 42, 58, .09);
  --line-strong: rgba(47, 42, 58, .18);
  --ink: #221f2b;
  --ink-2: #4a4655;
  --ink-3: #6b6677;           /* 4.6:1 on paper */
  --ink-4: #a7a2b2;
  --accent: #4f46b8;          /* Wisteria, kept from v3 */
  --accent-2: #8f86e0;
  --accent-soft: #e4e1fb;
  --sun: #ffe08a;
  --sakura: #ffb3c7;
  --sky: #a9ddf5;
  --live: #d92b1f;            /* the word "Live" only */
  --player-bg: #15131c;
  --font-latin: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-round: "Nunito", "M PLUS Rounded 1c", var(--font-latin);
  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-ja-round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", var(--font-ja);
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 9999px;
  --hd-h: 68px;
  --row-h: 68px;
  --max: 1320px;
  --gutter: clamp(16px, 3vw, 28px);
  --t: 180ms cubic-bezier(.2, .8, .2, 1);
  --pop: 420ms cubic-bezier(.34, 1.56, .64, 1);
  --shadow-1: 0 1px 0 rgba(47, 42, 58, .05), 0 6px 18px -10px rgba(47, 42, 58, .22);
  --shadow-2: 0 2px 0 rgba(47, 42, 58, .05), 0 18px 40px -18px rgba(47, 42, 58, .32);
  --sticker: 0 0 0 1.5px rgba(47, 42, 58, .14);
  color-scheme: light;
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font-family: var(--font-latin), var(--font-ja);
  font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ja"] body { font-family: var(--font-ja), var(--font-latin); letter-spacing: .01em; }
h1, h2, h3 { color: var(--ink); font-family: var(--font-round); font-weight: 800; line-height: 1.3; margin: 0; letter-spacing: -.005em; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { font-family: var(--font-ja-round); font-weight: 800; letter-spacing: .01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: var(--r); }
.skip:focus { left: 8px; }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }
.muted { color: var(--ink-3); }
.t-body-sm { font-size: 14px; }
.t-headline { font-size: clamp(24px, 3.4vw, 32px); }
.t-page { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.18; }

/* ── Header: a strip of the sky over Japan right now ────── */
.hd { position: sticky; top: 0; z-index: 40; color: var(--ink); isolation: isolate; }
.hd__sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, #86c9f0, #e4f4fb); transition: background 1s ease; }
html[data-sky="dawn"] .hd__sky { background: linear-gradient(180deg, #9fb0ea, #ffd9c8); }
html[data-sky="dusk"] .hd__sky { background: linear-gradient(180deg, #7a72d6, #ffc4a6); }
html[data-sky="night"] .hd__sky { background: linear-gradient(180deg, #1b1f4d, #3d4278); }
.hd__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s ease; }
.hd.has-3d .hd__canvas { opacity: 1; }
.hd__sun { position: absolute; right: 7%; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: #fff1b8; box-shadow: 0 0 0 6px rgba(255, 241, 184, .35); }
html[data-sky="night"] .hd__sun { background: #fff6d8; box-shadow: inset -7px -3px 0 0 #1b1f4d00, 0 0 0 5px rgba(255, 246, 216, .12); }
.hd__cloud { position: absolute; height: 14px; border-radius: 99px; background: rgba(255, 255, 255, .85); animation: drift 60s linear infinite; }
.hd__cloud::before, .hd__cloud::after { content: ""; position: absolute; bottom: 4px; border-radius: 50%; background: inherit; }
.hd__cloud::before { left: 10px; width: 22px; height: 22px; }
.hd__cloud::after { left: 26px; width: 16px; height: 16px; }
.hd__cloud--a { width: 64px; top: 38px; left: 18%; }
.hd__cloud--b { width: 48px; top: 16px; left: 58%; animation-duration: 85s; animation-delay: -30s; }
html[data-sky="night"] .hd__cloud { background: rgba(255, 255, 255, .16); }
.hd.has-3d .hd__sun, .hd.has-3d .hd__cloud { display: none; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(80vw); } }

.hd__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: var(--hd-h); display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.brand__face { width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: var(--sticker), var(--shadow-1); }
.brand__word { font-family: "Nunito", var(--font-latin); font-weight: 900; font-size: 21px; letter-spacing: -.01em; color: var(--ink); }
.kumomi { position: relative; width: 64px; height: 64px; flex: 0 0 auto; border-radius: 50%; touch-action: manipulation; }
.kumomi__img { width: 64px; height: 64px; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 4px 4px rgba(47, 42, 58, .14)); transition: opacity .4s ease; }
.hd.has-3d .kumomi__img { opacity: 0; }
.kumomi.is-hop .kumomi__img { animation: hop .6s var(--pop), bob 3.2s ease-in-out .6s infinite; }
.kumomi:focus-visible { outline-offset: -4px; border-radius: 50%; }
html[data-kumomi="offline"] .kumomi__img { filter: grayscale(.25) drop-shadow(0 4px 4px rgba(47, 42, 58, .14)); }
@keyframes bob { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-4px); } }
@keyframes hop { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-10px) scale(1.06, .95); } 60% { transform: translateY(0) scale(.96, 1.05); } 100% { transform: translateY(0) scale(1); } }

.hello { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .72); box-shadow: var(--sticker); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; min-width: 0; overflow: hidden; }
.hello__time { font-family: "Nunito", var(--font-latin); font-weight: 900; font-size: 14px; padding: 2px 9px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-variant-numeric: tabular-nums; }
.hello__word { overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; gap: 4px; margin-left: auto; padding: 4px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .72); box-shadow: var(--sticker); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background var(--t), color var(--t); }
.nav a:hover { background: rgba(79, 70, 184, .08); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.hd__tools { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .72); box-shadow: var(--sticker); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lang a, .lang span { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: background var(--t), color var(--t); }
.lang a:hover { color: var(--ink); background: rgba(79, 70, 184, .08); }
.lang [aria-current="true"] { background: var(--accent); color: #fff; }
html[data-sky="night"] .brand__word { color: #fff; }
.menu { display: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .8); box-shadow: var(--sticker); flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu span { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform var(--t), opacity var(--t); }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* speech bubble: floats under the header, never moves the layout */
.say { position: absolute; top: calc(100% + 8px); left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter) + 150px)); z-index: 45; max-width: min(380px, calc(100vw - 2 * var(--gutter))); padding: 12px 16px; border-radius: 18px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.55; box-shadow: var(--sticker), var(--shadow-2); animation: pop .35s var(--pop); cursor: pointer; }
.say::before { content: ""; position: absolute; top: -7px; left: 26px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); box-shadow: -1.5px -1.5px 0 0 rgba(47, 42, 58, .14); border-radius: 3px 0 0 0; }
@keyframes pop { from { transform: translateY(-6px) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }

.drawer { display: none; position: sticky; top: var(--hd-h); z-index: 39; background: var(--bg); box-shadow: var(--shadow-2); }
.drawer[data-open="true"] { display: block; animation: pop .25s ease; }
.drawer ul { padding: 8px var(--gutter) 14px; }
.drawer a { display: block; padding: 12px 10px; color: var(--ink); font-size: 16px; font-weight: 700; border-radius: var(--r); }
.drawer a:hover { background: var(--surface-2); }

/* ── Buttons, search, chips ─────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--r-pill); font-size: 15px; font-weight: 700; white-space: nowrap; transition: background var(--t), color var(--t), transform var(--t), box-shadow var(--t); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 3px 0 #352e8a; }
.btn--primary:hover { background: #4239a6; }
.btn--ghost { background: var(--surface-1); color: var(--ink); box-shadow: var(--sticker); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn--sm[aria-pressed="true"] { background: var(--sun); color: var(--ink); box-shadow: 0 0 0 1.5px #e7c14f; }
.search { position: relative; }
.search input { width: 100%; height: 46px; padding: 0 16px 0 44px; border-radius: var(--r-pill); background: var(--bg); border: 0; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink); outline: 0; transition: box-shadow var(--t), background var(--t); }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-soft); }
.search::before { content: ""; position: absolute; left: 17px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-radius: 50%; border: 2.5px solid var(--accent); }
.search::after { content: ""; position: absolute; left: 29px; top: 50%; width: 7px; height: 2.5px; margin-top: 4px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 3px 2px 5px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 12px; border-radius: var(--r-pill); background: var(--surface-1); box-shadow: var(--sticker); color: var(--ink-2); font-size: 13px; font-weight: 700; white-space: nowrap; transition: background var(--t), color var(--t), transform var(--t); flex: 0 0 auto; }
.chip:has(.chip__img) { padding-left: 4px; }
.chip__img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--bg); }
.chip:hover { background: var(--surface-2); color: var(--ink); transform: translateY(-1px); }
.chip[aria-current="true"] { background: var(--ink); color: #fff; box-shadow: none; }

/* ── Thumbnail ──────────────────────────────────────────── */
.th { position: relative; flex: 0 0 auto; width: 104px; height: 58px; border-radius: 12px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; box-shadow: var(--sticker); }
.th__i { font-family: "Nunito", var(--font-latin); font-weight: 900; font-size: 14px; color: var(--accent-2); line-height: 1; }
.th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.th img.is-broken { display: none; }
.row:hover .th img { transform: scale(1.06); }

/* ── Home: player + list in one screen ──────────────────── */
.home { max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter) 40px; }
.home__grid { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 24px; align-items: start; }
.stage { min-width: 0; }

.viewport { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--player-bg); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.viewport iframe, .viewport #lt-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* the curtain: Kumomi focusing the camera while the video arrives (covers only; the iframe stays visible underneath) */
.viewport::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: url("/assets/r/img/loading.webp") center 46% / min(34%, 220px) no-repeat, radial-gradient(circle at 50% 46%, #ffffff 0, #f4f1fb 40%, #d9d4f6 100%); }
.viewport[data-curtain="on"]::after { opacity: 1; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { background-position: center 42%, 0 0; } }
.viewport__idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; color: var(--ink-2); font-size: 14px;
  background: radial-gradient(circle at 50% 30%, #ffffff 0, #f4f1fb 45%, #dcd7f7 100%); }
.viewport__idle[data-kind="offline"] { background: radial-gradient(circle at 50% 30%, #4a4f8a 0, #2b2f63 55%, #1b1f4d 100%); color: #e7e6f5; }
.viewport__idle p { max-width: 42ch; }
.idle__kumomi { width: clamp(72px, 16vw, 120px); height: auto; animation: bob 3.2s ease-in-out infinite; }
.idle__say { font-family: var(--font-round); font-weight: 800; font-size: 17px; color: inherit; }
html[lang="ja"] .idle__say { font-family: var(--font-ja-round); }
.viewport__idle .btn { margin: 2px 4px 0; }
.viewport__idle .btn--primary + .btn--primary { background: #fff; color: var(--ink); box-shadow: 0 3px 0 rgba(47, 42, 58, .18); }

.now { display: flex; align-items: center; gap: 10px 14px; min-height: 64px; margin-top: 14px; padding: 10px 12px 10px 16px; border-radius: var(--r-lg); background: var(--surface-1); box-shadow: var(--sticker), var(--shadow-1); flex-wrap: wrap; }
.now__state { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 10px; border-radius: var(--r-pill); background: var(--bg-2); font-size: 12px; font-weight: 800; color: var(--ink-3); white-space: nowrap; }
.now__state .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-4); }
.now[data-state="loading"] .dot { animation: blink 1s ease-in-out infinite; }
.now[data-state="live"] .now__state { color: var(--live); background: #fdecea; }
.now[data-state="live"] .dot { background: var(--live); box-shadow: 0 0 0 0 rgba(217, 43, 31, .5); animation: ping 1.8s ease-out infinite; }
.now[data-state="tap"] .now__state { color: var(--accent); background: var(--accent-soft); }
.now[data-state="tap"] .dot { background: var(--accent); }
@keyframes blink { 50% { opacity: .3; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(217, 43, 31, .45); } 80%, 100% { box-shadow: 0 0 0 7px rgba(217, 43, 31, 0); } }
.now__name { font-family: var(--font-round); font-size: 18px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46%; }
html[lang="ja"] .now__name { font-family: var(--font-ja-round); }
.now__place { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now__actions { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.now__official { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--bg-2); white-space: nowrap; transition: background var(--t); }
.now__official:hover { background: var(--surface-3); color: var(--ink); }
.now__official .short { display: none; }
.now__msg { margin: 10px 4px 0; padding: 10px 14px; border-radius: var(--r); background: var(--bg-2); font-size: 13px; color: var(--ink-2); }

.info { padding: 16px 6px 0; }
.info__meta { font-size: 12px; font-weight: 600; color: var(--ink-3); }
/* Kumomi's speech line: the hour, the weather and the sun in the camera's prefecture */
.info__time { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 52px; padding: 8px 16px 8px 58px; border-radius: 18px; background: #fff; box-shadow: var(--sticker); font-size: 14px; font-weight: 600; color: var(--ink); }
.info__time::before { content: ""; position: absolute; left: 8px; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; background: var(--bg) url("/assets/r/img/kumomi-face.webp") center / cover; box-shadow: var(--sticker); }
.info__time:empty { display: none; }
.info__desc { margin-top: 8px; font-size: 15px; color: var(--ink-2); max-width: 70ch; }
.info__foot { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--ink-3); align-items: center; }
.info__foot a, .info__foot button { color: var(--accent); font-weight: 700; }
.info__foot a:hover, .info__foot button:hover { text-decoration: underline; }
.info__details summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 700; padding: 10px 0; min-height: 44px; list-style: none; display: flex; align-items: center; gap: 6px; }
.info__details summary::-webkit-details-marker { display: none; }
.info__details summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); font-size: 14px; line-height: 1; transition: transform var(--t); }
.info__details[open] summary::before { transform: rotate(45deg); }
.info__details[open] summary { padding-bottom: 0; }

/* ── The list panel ─────────────────────────────────────── */
.browser { position: sticky; top: calc(var(--hd-h) + 16px); max-height: calc(100vh - var(--hd-h) - 32px); display: flex; flex-direction: column; min-width: 0; background: var(--surface-1); border-radius: var(--r-lg); box-shadow: var(--sticker), var(--shadow-2); overflow: hidden; }
.browser__top { padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #fbfaff, #fff); border-bottom: 1px solid var(--line); }
.browser__filters, .browser__switches { display: flex; gap: 8px; align-items: center; }
.browser__filters > label { flex: 1; min-width: 0; }
.browser select { width: 100%; min-height: 42px; max-width: 100%; padding: 6px 28px 6px 12px; border: 0; border-radius: 12px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234f46b8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center no-repeat; -webkit-appearance: none; appearance: none; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-size: 13px; font-weight: 600; }
.view-switch { display: flex; padding: 3px; border-radius: var(--r-pill); background: var(--bg-2); }
.view-switch button { min-height: 36px; min-width: 60px; padding: 0 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; color: var(--ink-2); transition: background var(--t), color var(--t); }
.view-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--sticker), 0 2px 6px -2px rgba(47, 42, 58, .2); }
.browser__switches .browser__results { flex: 1; min-width: 0; }
.browser__results { display: flex; align-items: center; justify-content: space-between; min-height: 32px; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.browser__results button, .map-pane__tools button { color: var(--accent); min-height: 44px; font-size: 12px; font-weight: 700; }
.browser__list { overflow-y: auto; overscroll-behavior: contain; padding: 2px 8px 10px; flex: 1 1 auto; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--accent-soft) transparent; }
.browser__none { padding: 22px 12px 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.browser__none img { width: 112px; height: auto; }
.browser__empty-say { font-family: var(--font-round); font-weight: 800; color: var(--ink); }
html[lang="ja"] .browser__empty-say { font-family: var(--font-ja-round); }
.browser__empty { font-size: 14px; color: var(--ink-3); }
.grp { position: sticky; top: 0; z-index: 1; display: flex; gap: 8px; align-items: center; margin: 0 -8px; padding: 12px 16px 6px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: var(--font-round); font-size: 14px; font-weight: 800; color: var(--ink); }
html[lang="ja"] .grp { font-family: var(--font-ja-round); }
.grp__img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--bg); box-shadow: var(--sticker); }
.grp .n { margin-left: 2px; padding: 0 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-family: "Nunito", var(--font-latin); font-size: 12px; font-weight: 900; line-height: 20px; }
.row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--row-h); padding: 5px 8px; border-radius: 16px; text-align: left; color: var(--ink); transition: background var(--t), transform var(--t); }
.row:hover { background: var(--surface-2); }
.row:active { transform: scale(.99); }
.row[aria-current="true"] { background: var(--surface-3); }
.row[aria-current="true"]::after { content: ""; position: absolute; right: 10px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: #fff url("/assets/r/img/kumomi-face.webp") center / cover; box-shadow: var(--sticker); }
.row[aria-current="true"] .row__body { padding-right: 30px; }
.row__body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.row__name { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__meta { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__star { flex: 0 0 auto; font-size: 15px; color: #e3b23c; }
.row[aria-current="true"] .row__star { margin-right: 30px; }
.browser__foot { padding: 12px 16px 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-3); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; background: #fbfaff; }
.browser__foot a { color: var(--accent); font-weight: 800; }
.browser__foot a:hover { text-decoration: underline; }

.map-pane { min-height: 0; overflow: auto; }
.map-pane > [role="status"] { padding: 8px 14px; font-size: 13px; color: var(--ink-2); }
.map-pane__tools { display: flex; gap: 12px; padding: 0 14px; flex-wrap: wrap; }
.camera-map { height: clamp(320px, 48vh, 520px); width: 100%; background: var(--surface-2); }
.map-pane__caption { padding: 10px 14px 14px; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.map-pane__caption a { color: var(--accent); }
.map-choices { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; }
.map-choices button { text-align: left; min-height: 44px; padding: 6px 8px; color: var(--accent); font-weight: 700; }
.camera-map .maplibregl-ctrl-group button { width: 44px; height: 44px; }
.camera-map .maplibregl-popup-close-button { min-width: 32px; min-height: 32px; }
.camera-map .maplibregl-ctrl-attrib { font-size: 10px; line-height: 1.5; }
.camera-map .maplibregl-popup-content { border-radius: 14px; box-shadow: var(--shadow-2); font-family: var(--font-latin), var(--font-ja); }

/* ── Where shall we go? (place cards, below the first screen) ── */
.places { padding: 30px 0 8px; }
.places__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.places__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.places__head img { width: 84px; height: auto; flex: 0 0 auto; }
.places__head h2 { font-size: clamp(22px, 2.8vw, 30px); }
.places__head p { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.places__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.place { position: relative; display: flex; flex-direction: column; height: 100%; padding: 12px 16px 16px; border-radius: var(--r-lg); background: var(--surface-1); box-shadow: var(--sticker), var(--shadow-1); color: var(--ink); transition: transform var(--pop), box-shadow var(--t); overflow: hidden; }
.place:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--sticker), var(--shadow-2); }
.place__img { width: 72%; max-width: 190px; aspect-ratio: 1; height: auto; margin: 0 auto 4px; object-fit: contain; transition: transform var(--pop); }
.place:hover .place__img { transform: translateY(-4px) scale(1.04); }
.place__name { font-family: var(--font-round); font-weight: 900; font-size: 19px; line-height: 1.25; }
html[lang="ja"] .place__name { font-family: var(--font-ja-round); font-weight: 800; }
.place__lede { margin: 4px 0 10px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.place__n { align-self: flex-start; margin-top: auto; padding: 2px 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; }

/* ── How LiveTokyo works ────────────────────────────────── */
.trust { padding: 28px 0 0; }
.trust__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.trust__title { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 14px; }
.trust__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust__card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 16px; border-radius: var(--r-lg); background: var(--bg-2); }
.trust__card img { grid-row: span 2; width: 76px; height: auto; }
.trust__card h3 { font-size: 16px; margin-top: 4px; }
.trust__card p { font-size: 14px; color: var(--ink-2); }

/* ── Comments: the central drawer theme styles the controls; only placement here ── */
.comments-section { max-width: 788px; margin: 0 auto; padding: 28px var(--gutter) 48px; }
.comments-section > h2 { margin: 0 0 20px; font-size: 20px; }

/* ── Footer: Kumomi asleep on the moon ──────────────────── */
.ft__moon { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 48px; text-align: center; }
.ft__moon img { width: 132px; height: auto; margin-bottom: -26px; position: relative; z-index: 1; }
.ft__moon p { display: none; }
.ft { position: relative; padding-top: 28px; border-radius: 36px 36px 0 0; background: linear-gradient(180deg, #2c3066, #1b1f4d); color: #c9c7e2; }
.ft::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .6;
  background: radial-gradient(1.4px 1.4px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 32% 64%, #fff 50%, transparent 51%), radial-gradient(1.6px 1.6px at 58% 18%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 78% 52%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 90% 26%, #fff 50%, transparent 51%), radial-gradient(1.1px 1.1px at 46% 80%, #fff 50%, transparent 51%); }
.ft__in { position: relative; max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 22px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; font-size: 13px; }
.ft__brand { font-family: "Nunito", var(--font-latin); font-weight: 900; color: #fff; font-size: 20px; margin-bottom: 6px; }
.ft h2 { font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.ft li { margin: 6px 0; }
.ft a { color: #dcdaf2; }
.ft a:hover { color: #fff; text-decoration: underline; }
.ft__base { position: relative; max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter) 26px; font-size: 12px; color: #a9a6cc; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); }

/* ── Camera page ────────────────────────────────────────── */
html[data-page="cam"] .now__name, html[data-page="cam"] .now__place { display: none; }
.cam { max-width: 1000px; margin: 0 auto; padding: 20px var(--gutter) 40px; }
.crumbs { font-size: 13px; font-weight: 600; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.crumbs a { color: var(--accent); }
.crumbs a:hover { text-decoration: underline; }
.cam__head { margin-bottom: 16px; }
.cam__head h1 { font-size: clamp(26px, 4vw, 38px); }
.cam__place { display: inline-flex; margin-top: 6px; padding: 2px 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800; }
.cam .info { padding: 12px 6px 0; }
.cam__note { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 18px; padding: 16px 18px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sticker), var(--shadow-1); }
.cam__kumomi { width: 64px; height: auto; }
.cam__desc { font-size: 15px; color: var(--ink-2); }
.facts { margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.facts div { padding: 12px 14px; border-radius: 16px; background: var(--bg-2); font-size: 14px; }
.facts dt { margin: 0; font-size: 11px; font-weight: 800; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; }
.facts a { color: var(--accent); }
.facts a:hover { text-decoration: underline; }
.related { margin-top: 30px; padding: 16px 10px 10px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sticker), var(--shadow-1); }
.related h2 { font-size: 18px; margin: 0 8px 8px; }
.cam__more { margin-top: 20px; font-size: 14px; }

/* ── All cameras ────────────────────────────────────────── */
.list-page { max-width: var(--max); margin: 0 auto; padding: 30px var(--gutter) 40px; }
.list-page .lead { font-size: 15px; color: var(--ink-2); margin-top: 8px; max-width: 70ch; }
.list-page h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; margin-top: 40px; scroll-margin-top: calc(var(--hd-h) + 16px); }
.h2__img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: var(--sticker); }
.list-page h2 .muted { font-family: "Nunito", var(--font-latin); font-size: 13px; padding: 0 9px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); line-height: 22px; }
.list-page .lede { font-size: 14px; color: var(--ink-3); margin: 6px 0 12px; }
.tbl-wrap { overflow-x: auto; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sticker), var(--shadow-1); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl th { font-weight: 800; color: var(--ink-3); font-size: 12px; background: #fbfaff; }
.tbl td a { color: var(--accent); font-weight: 600; }
.tbl td a:hover { text-decoration: underline; }
.tbl td:first-child a { color: var(--ink); font-weight: 700; }

/* ── About / reading pages ──────────────────────────────── */
.prose { max-width: 760px; margin: 0 auto; padding: 30px var(--gutter) 40px; }
.prose h1 { margin-bottom: 10px; }
.prose .lead { font-size: 18px; color: var(--ink-2); margin-bottom: 10px; }
.prose h2 { font-size: 23px; margin: 34px 0 10px; }
.prose h3 { font-size: 18px; margin: 24px 0 6px; }
.prose p { margin: 0 0 14px; color: var(--ink-2); }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-soft); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 14px; color: var(--ink-2); }
.prose li { margin: 5px 0; }
.prose .tbl-wrap { margin: 14px 0 8px; }
.story .tbl td:nth-child(4), .story .tbl td:nth-child(5), .story .tbl th:nth-child(4), .story .tbl th:nth-child(5) { text-align: right; }
.article-illust { margin: 20px 0 26px; }
.article-illust img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.about__hero { margin: 18px 0 8px; }
.about__hero img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.meet { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 36px; padding: 22px; border-radius: 28px; background: linear-gradient(160deg, #f4f1fb, #fff7ea); box-shadow: var(--sticker); }
.meet h2 { margin-top: 0; }
.meet__stage { position: relative; aspect-ratio: 1; border-radius: 24px; background: radial-gradient(circle at 50% 40%, #fff 0, #eef6fd 70%); touch-action: pan-y; cursor: grab; overflow: hidden; }
.meet__stage img { width: 86%; height: auto; margin: 7% auto 0; animation: bob 3.2s ease-in-out infinite; transition: opacity .4s ease; }
.meet__stage.has-3d img { opacity: 0; position: absolute; }
.meet__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.meet__stage.has-3d::after { content: attr(data-hint); position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-3); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1180px) {
  .home__grid { grid-template-columns: minmax(0, 1fr) 350px; }
  .hello__word { display: none; }
  .hello { padding-right: 6px; }
}
@media (max-width: 959px) {
  :root { --hd-h: 56px; }
  .hd__in { gap: 8px; }
  .hello, .nav { display: none !important; }
  .kumomi { width: 52px; height: 52px; margin-left: auto; }
  .kumomi__img { width: 52px; height: 52px; }
  .brand__word { font-size: 19px; }
  .brand__face { display: none; }
  .menu { display: inline-flex; }
  .lang a, .lang span { min-height: 36px; padding: 0 10px; }
  .say { left: var(--gutter); right: var(--gutter); max-width: none; }
  .say::before { left: auto; right: 112px; }
  .home { padding: 0 0 28px; }
  .home__grid { display: block; }
  .stage { display: contents; }               /* so the sticky player spans the whole page (sakaota lesson 7) */
  .stage__sticky { position: sticky; top: var(--hd-h); z-index: 30; background: var(--bg); }
  .viewport { border-radius: 0; box-shadow: none; }
  .now { margin: 0; border-radius: 0; box-shadow: 0 1px 0 var(--line); padding: 8px var(--gutter); gap: 4px 10px; }
  .home .now__name { order: -1; flex: 1 1 100%; font-size: 16px; }
  .home .now__place { display: none; }
  .now__name { max-width: 100%; }
  .now .btn--sm, .now__official { min-height: 44px; }
  .now__official .long { display: none; }
  .now__official .short { display: inline; }
  .now__msg { margin: 8px var(--gutter) 0; }
  .info { padding: 8px var(--gutter) 0; }
  .home .info__time { margin-top: 4px; min-height: 44px; padding: 6px 12px 6px 50px; font-size: 13px; }
  .home .info__time::before { width: 34px; height: 34px; margin-top: -17px; }
  .home .info__details + .info__foot { margin-top: 0; }
  .home .info__meta { font-size: 11.5px; }
  .home .info__foot { margin-top: 0; gap: 2px 14px; font-size: 12px; }
  .home .info__details summary { padding: 6px 0; }
  .home .now__msg { padding: 7px 12px; font-size: 12.5px; line-height: 1.5; }
  .home .info__time { font-size: 12.5px; line-height: 1.45; }
  .search input { height: 42px; }
  .chip { height: 34px; }
  .browser__switches .view-switch button { min-height: 34px; }
  .browser { position: static; max-height: none; margin: 6px 8px 0; border-radius: var(--r-lg); }
  .browser__top { gap: 8px; padding: 10px 10px 6px; }
  .browser__list { overflow: visible; padding: 2px 6px 8px; }
  .grp { position: static; }
  .row { scroll-margin-top: calc(var(--hd-h) + 56.25vw + 12px); }
  .browser select, .search input { font-size: 16px; }
  .camera-map { height: 420px; max-height: 65svh; }
  .trust__grid { grid-template-columns: 1fr; gap: 12px; }
  .ft__in { grid-template-columns: 1fr; gap: 18px; }
  .meet { grid-template-columns: 1fr; }
  .meet__stage { max-width: 280px; width: 100%; margin: 0 auto; }
  .places__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .place { padding: 10px 12px 12px; }
  .place__name { font-size: 16px; }
  .place__lede { display: none; }
  .place__name { margin-bottom: 8px; }
  .cam .info { padding: 10px 0 0; }
  .cam .now { margin: 12px 0 0; border-radius: var(--r-lg); padding: 8px 12px; }
  .cam .stage__sticky { margin: 0 calc(-1 * var(--gutter)); }
  .cam .now__msg { margin: 8px 0 0; }
}
@media (min-width: 960px) { .home .info__place { display: none; } }
@media (max-width: 480px) {
  .trust__card { grid-template-columns: 60px minmax(0, 1fr); }
  .trust__card img { width: 60px; }
  .cam__note { grid-template-columns: 48px minmax(0, 1fr); padding: 14px; }
  .cam__kumomi { width: 48px; }
  .places__head img { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
