/* LightCast v0.2 UI. Layout and interaction modelled on Rizon for iOS (dial clock, starts/ends, date bar, minimal uppercase type),
   in Born in Film colours: black, BIF red accent, BIF orange golden hour, BIF pink blue hour, white. Font: Cabinet Grotesk (Fontshare, ITF FFL). */
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/CabinetGrotesk-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/CabinetGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/CabinetGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/CabinetGrotesk-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/CabinetGrotesk-Extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/CabinetGrotesk-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
:root {
  /* Born in Film palette (bif-knowledge pack): red #E52329, black #111111, white, orange #FF762E, pink #F5A3BA, and BIF blue #11264B for surfaces (as DEVMAX). */
  --bg: #111111; --card: #11264B; --line: #1A3463; --ink: #FFFFFF; --mute: #9AA6BD; --dim: #8A97B4;
  /* v0.3.0 blue pass (Franz: no grey, BIF blue): surfaces = BIF blue #11264B (same as DEVMAX --card/--btn/--track), borders/hover #1A3463,
     selected fills #24427A. Text on blue: --mute 6.1:1, --dim 5.1:1, --red-t 4.9:1, white 15:1. */
  --blue: #11264B; --blue-2: #1A3463; --blue-3: #24427A;
  --red: #E52329;    /* accent fills: buttons, toggles, selection, badges (white text on it = 4.56:1) */
  --red-t: #FF5A5F;  /* BIF red tint for small red TEXT on black (5.6:1; pure #E52329 is 4.1:1) */
  --gold: #FF762E;   /* golden hour = BIF orange */
  --pink: #F5A3BA;   /* blue hour / twilight = BIF pink */
  --night: #11264B; --harsh: #C8C8C8;
  --font: "Cabinet Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400; }
body { min-height: 100vh; min-height: 100dvh; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
.hidden { display: none !important; }
.cap { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 500; color: var(--mute); }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-top: var(--safe-t); }
.view { flex: 1; display: flex; flex-direction: column; padding: 0 20px calc(84px + var(--safe-b)); }

/* header (hamburger / place / bell) */
.hdr { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 52px; padding: 0 8px; }
.ibtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 22px; position: relative; }
.ibtn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ibtn:active { background: #ffffff14; }
.ibtn .cnt { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--red); font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.where { text-align: center; line-height: 1.2; }
.where .city { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; }
.where .coord { font-size: 11px; color: var(--mute); letter-spacing: .08em; margin-top: 3px; }

/* dial */
.dialwrap { position: relative; width: min(84vw, 320px); aspect-ratio: 1; margin: 6px auto 0; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; }
.dialwrap:focus-visible { box-shadow: 0 0 0 2px var(--pink); border-radius: 50%; }
.dialwrap.drag { cursor: grabbing; }
.dialwrap svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dialc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.dtime { font-size: clamp(52px, 17vw, 68px); font-weight: 300; letter-spacing: .02em; line-height: 1; font-variant-numeric: tabular-nums; }
.dtime small { font-size: 15px; font-weight: 500; letter-spacing: .12em; margin-left: 4px; color: var(--mute); }
.dphase { margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.dsub { margin-top: 8px; font-size: 12px; color: var(--mute); letter-spacing: .04em; }
.k-golden { color: var(--gold); } .k-blue { color: var(--pink); } .k-day { color: #fff; } .k-harsh { color: var(--harsh); } .k-night { color: var(--mute); }

.se { display: grid; grid-template-columns: 1fr 1fr; text-align: center; margin: 18px 0 4px; }
.se .n { font-size: clamp(34px, 11vw, 44px); font-weight: 300; font-variant-numeric: tabular-nums; line-height: 1; }
.se .n small { font-size: 12px; font-weight: 500; color: var(--mute); margin-left: 2px; letter-spacing: .1em; }
.se .cap { margin-top: 8px; display: block; }
.cd { text-align: center; font-size: 13px; color: var(--mute); margin-top: 8px; min-height: 18px; }
.cd b { color: #fff; font-weight: 700; }
.outlook { display: flex; justify-content: center; margin-top: 10px; }
.obadge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 16px; background: var(--card); font-size: 12px; letter-spacing: .06em; }
.obadge .sc { font-weight: 800; }
.jump { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.jump button { background: var(--blue); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--mute); padding: 8px 10px; border-radius: 14px; border: 1px solid var(--line); }
.jump button.on { color: #fff; border-color: #fff; }
.jump button i { display: inline-block; width: 7px; height: 7px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; }

/* date bar */
.datebar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid #ffffff10; }
.datebar .mid { text-align: center; position: relative; }
.datebar .d1 { font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.datebar .d2 { font-size: 11px; color: var(--mute); letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.datebar input[type=date] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.nav { width: 44px; height: 44px; font-size: 22px; color: #fff; display: grid; place-items: center; }
.nav[disabled] { opacity: 0; pointer-events: none; }

/* tab bar */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #11264Bf2; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--blue-2); padding-bottom: var(--safe-b); }
.tabs .in { max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.tabs button { height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--dim); }
.tabs button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabs button.on { color: #fff; } .tabs button.on svg { stroke: var(--red-t); }

/* generic */
.sect { margin-top: 18px; }
.sect > .cap { display: block; margin-bottom: 10px; }
.card { background: var(--card); border-radius: 14px; padding: 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.btn { width: 100%; height: 48px; border-radius: 6px; background: var(--blue); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn.line { background: none; border: 1.5px solid var(--red); }
.btn.gold { background: var(--red); color: #fff; }
.btn.sm { height: 38px; font-size: 11px; }
.btn + .btn { margin-top: 10px; }
.msg { font-size: 13px; color: var(--mute); line-height: 1.45; margin-top: 10px; }
.msg.err { color: var(--red-t); }
.msg b { color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 12px; border: 1px solid var(--line); font-size: 11px; letter-spacing: .08em; color: var(--mute); }
.field { width: 100%; height: 44px; background: var(--blue); border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; color: #fff; outline: none; }
.field:focus { border-color: #9AA6BD; }
.seg { display: flex; background: var(--blue); border-radius: 8px; padding: 3px; gap: 3px; }
.seg button { flex: 1; height: 36px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.seg button.on { background: var(--blue-3); color: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ttl { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-align: center; margin: 4px 0 2px; }
.tsub { text-align: center; font-size: 12px; color: var(--mute); margin-bottom: 4px; }

/* full-screen overlays (Rizon style) */
.ov { position: fixed; inset: 0; z-index: 40; background: #111111fa; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ov .in { max-width: 480px; margin: 0 auto; min-height: 100%; padding: calc(16px + var(--safe-t)) 24px calc(24px + var(--safe-b)); display: flex; flex-direction: column; }
.ovfoot { margin-top: auto; padding-top: 24px; display: flex; justify-content: center; }
.circ { width: 44px; height: 44px; border-radius: 22px; border: 1.5px solid #ffffff60; display: grid; place-items: center; }
.circ svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; }
.ovhead { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); padding-bottom: 12px; border-bottom: 1px solid #ffffff14; margin: 18px 0 14px; }
.lockup { display: block; width: min(76%, 300px); margin: 6px auto 4px; }
.search { position: relative; } .search svg { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; stroke: var(--mute); fill: none; stroke-width: 1.8; }
.search input { padding-left: 38px; text-transform: none; letter-spacing: .04em; }
.locl { list-style: none; margin: 8px 0 0; padding: 0; }
.locl li { display: flex; align-items: center; border-bottom: 1px solid #ffffff0d; }
.locl li > button:first-child { flex: 1; text-align: left; padding: 15px 0; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.locl li > button:first-child span { display: block; font-size: 11px; color: var(--mute); letter-spacing: .08em; margin-top: 3px; font-weight: 400; }
.locl li.cur > button:first-child { color: var(--red-t); }
.locl .x { width: 36px; height: 36px; color: var(--dim); font-size: 14px; }
.uselocal { color: var(--red-t); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; padding: 14px 0; text-align: left; display: flex; gap: 10px; align-items: center; }
.uselocal svg { width: 18px; height: 18px; stroke: var(--red-t); fill: none; stroke-width: 1.8; }
.links { display: flex; justify-content: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.links button { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 700; padding: 6px 2px; }
details.more summary { cursor: pointer; list-style: none; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 700; padding: 14px 0; }
details.more summary::-webkit-details-marker { display: none; }

/* reminders */
.rlist { list-style: none; padding: 0; margin: 4px 0 0; }
.rlist li { border-top: 1px solid #ffffff12; }
.rlist li:last-child { border-bottom: 1px solid #ffffff12; }
.rrow { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.rrow .chev { color: var(--mute); font-size: 18px; }
.lead { display: flex; align-items: center; gap: 14px; } .lead button { width: 32px; height: 32px; font-size: 20px; color: #fff; } .lead b { min-width: 44px; text-align: center; font-weight: 700; letter-spacing: .06em; }
.up { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 12px 0; border-bottom: 1px solid #ffffff12; width: 100%; text-align: left; }
.up .p { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.up .c { font-size: 20px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.up .m { text-align: right; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--mute); }
.up .m b { display: block; font-size: 20px; color: var(--red-t); font-weight: 500; letter-spacing: .04em; }
.upact { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 0 0 12px; border-bottom: 1px solid #ffffff12; }
.tg { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #ffffff12; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.sw { width: 50px; height: 30px; border-radius: 15px; background: var(--blue-3); position: relative; transition: background .2s; flex: none; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 12px; background: #fff; transition: transform .2s; }
.sw.on { background: var(--red); } .sw.on::after { transform: translateX(20px); }
.honest { font-size: 12px; color: var(--mute); line-height: 1.5; margin-top: 14px; }

/* forecast */
.fstat { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--mute); margin-top: 4px; }
.fstat .dot { display: inline-block; width: 7px; height: 7px; border-radius: 4px; background: #4CD964; margin-right: 6px; vertical-align: 1px; } .fstat .dot.off { background: var(--gold); }
.fstat button { background: var(--blue); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 7px 12px; flex: none; }
.sess { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; } .sess::-webkit-scrollbar { display: none; }
.scard { flex: none; width: 148px; background: var(--card); border-radius: 12px; padding: 12px; text-align: left; border: 1px solid transparent; }
.scard.on { border-color: var(--red); }
.scard .p { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.scard .t { font-size: 13px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.scard .s { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; } .scard .s b { font-size: 28px; font-weight: 800; line-height: 1; } .scard .s span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.sbar { height: 4px; border-radius: 2px; background: var(--blue-2); margin-top: 8px; overflow: hidden; } .sbar i { display: block; height: 100%; background: var(--gold); }
.why { font-size: 12.5px; color: var(--mute); line-height: 1.5; margin: 8px 0 0; padding-left: 16px; }
.fgrid { position: relative; display: flex; margin-top: 10px; background: var(--blue); border-radius: 12px; overflow: hidden; }
.flab { flex: none; width: 74px; border-right: 1px solid var(--blue-2); background: var(--blue); z-index: 2; }
.fscroll { overflow-x: auto; flex: 1; position: relative; -webkit-overflow-scrolling: touch; }
.fcols { position: relative; }
.frow { display: flex; height: 26px; align-items: center; }
.frow.hd { height: 22px; } .frow.day { height: 22px; } .frow.ph { height: 12px; }
.flab .frow { padding-left: 8px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 700; white-space: nowrap; }
.flab .frow small { font-weight: 400; margin-left: 3px; letter-spacing: 0; text-transform: none; }
.fc { flex: none; width: 34px; height: 100%; display: grid; place-items: center; font-size: 11px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.frow.hd .fc { color: var(--mute); font-size: 10px; }
.frow.day .fc { justify-content: start; overflow: visible; white-space: nowrap; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: #fff; padding-left: 4px; }
.fc.wd svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fwin { position: absolute; top: 0; bottom: 0; z-index: 0; pointer-events: none; }
.fwin.golden { background: #FF762E26; border-left: 1px solid #FF762E99; border-right: 1px solid #FF762E99; }
.fwin.blue { background: #F5A3BA2E; }
.fnow { position: absolute; top: 0; bottom: 0; width: 2px; background: #ffffffb0; z-index: 0; pointer-events: none; }
.fph { position: absolute; height: 8px; top: 2px; border-radius: 1px; }
.flegend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 11px; color: var(--mute); }
.flegend i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }

/* light meter: Sekonic-style LCD panel */
.lcd { margin-top: 8px; border-radius: 16px; padding: 14px 16px 16px; background: linear-gradient(180deg, #132A54, #0E2041); border: 1px solid var(--blue-2); box-shadow: inset 0 0 0 4px #0B1A36, 0 8px 28px #0006; }
.lcd .top { display: flex; align-items: center; justify-content: space-between; }
.lcd .mode { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--pink); }
.lcd .mode svg { width: 22px; height: 22px; stroke: var(--pink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lcd .est { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--red-t); border: 1px solid #E5232999; border-radius: 4px; padding: 3px 6px; }
.lcd .main { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 14px 0 8px; font-variant-numeric: tabular-nums; }
.lcd .main .l { font-size: 22px; font-weight: 800; color: var(--mute); margin-right: 4px; }
.lcd .main .v { font-size: clamp(64px, 22vw, 92px); font-weight: 300; line-height: .9; letter-spacing: -.01em; }
.lcd .main .t { font-size: 26px; font-weight: 500; color: #fff; min-width: 1.4em; }
.lcd .main .t small { display: block; font-size: 10px; letter-spacing: .14em; color: var(--mute); font-weight: 700; text-transform: uppercase; }
.lcd .ex { text-align: center; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.lcd .fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; border-top: 1px solid #ffffff12; padding-top: 12px; }
.lcf { text-align: center; } .lcf .k { font-size: 10px; letter-spacing: .16em; color: var(--mute); font-weight: 800; }
.lcf .val { font-size: 20px; font-weight: 500; margin-top: 2px; font-variant-numeric: tabular-nums; }
.lcf.lock .val { color: var(--red-t); }
.step { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; background: var(--blue); border-radius: 10px; height: 52px; }
.step button { height: 52px; font-size: 22px; color: #fff; }
.step button:active { background: #ffffff10; }
.step .v { text-align: center; line-height: 1.1; } .step .v small { display: block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 800; } .step .v b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .steps.three { grid-template-columns: 1fr 1fr 1fr; }
.steps.three .step { grid-template-columns: 30px 1fr 30px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { padding: 8px 11px; border-radius: 16px; border: 1px solid var(--line); background: var(--blue); font-size: 12px; font-weight: 700; color: #fff; }
.chips button.on { background: #fff; color: var(--bg); border-color: #fff; }
.chips button small { font-weight: 400; color: var(--mute); margin-left: 4px; }
.cam { position: relative; width: 168px; height: 168px; margin: 12px auto 0; border-radius: 50%; overflow: hidden; background: #0A0A0A; border: 2px solid var(--blue-2); }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam .x { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #0008; }
.cam .off { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 11px; color: var(--mute); padding: 20px; letter-spacing: .06em; }

/* ND calculator */
.ndchips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ndchips button { height: 46px; border-radius: 8px; background: var(--blue); font-weight: 800; font-size: 12.5px; line-height: 1.05; }
.ndchips button small { display: block; font-size: 9.5px; color: var(--mute); font-weight: 600; margin-top: 2px; }
.ndchips button.on { background: var(--blue-3); box-shadow: inset 0 0 0 1.5px var(--red); }
.ndchips button .n { position: absolute; }
.stack { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-height: 32px; margin-top: 10px; }
.stack .s { background: var(--blue-2); border-radius: 14px; padding: 6px 10px; font-size: 12px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.stack .s button { color: var(--mute); font-size: 12px; }
.res { text-align: center; padding: 18px 12px; }
.res .big { font-size: clamp(48px, 16vw, 64px); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.res .sub { font-size: 12px; color: var(--mute); margin-top: 8px; line-height: 1.5; }
.res .film { margin-top: 10px; font-size: 14px; } .res .film b { color: var(--red-t); }
.timer { position: relative; width: 210px; height: 210px; margin: 6px auto 0; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.timer .c b { font-size: 46px; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.timer .c span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); font-weight: 800; margin-top: 4px; }
.timer.done .c b { color: var(--red-t); }
select.field { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9AA6BD 50%), linear-gradient(135deg, #9AA6BD 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }

/* sheets text */
.prose { font-size: 14px; line-height: 1.55; color: #D7DEEE; } .prose p { margin: 0 0 12px; } .prose b { color: #fff; }
.defs { margin: 6px 0 14px; } .def { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ffffff0d; }
.def i { flex: none; width: 14px; height: 14px; border-radius: 3px; margin-top: 3px; }
.def .t { font-weight: 700; font-size: 14px; } .def .t span { color: var(--mute); font-weight: 400; font-size: 12px; margin-left: 6px; } .def .s { font-size: 13px; color: var(--mute); margin-top: 3px; line-height: 1.45; }

/* toast + banner */
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); background: #fff; color: var(--bg); padding: 10px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; z-index: 60; max-width: 90vw; text-align: center; }
.banner { position: fixed; left: 12px; right: 12px; top: calc(12px + var(--safe-t)); z-index: 70; background: var(--red); color: #fff; border-radius: 14px; padding: 14px 44px 14px 16px; font-size: 14px; max-width: 456px; margin: 0 auto; box-shadow: 0 8px 30px #0008; }
.banner b { display: block; margin-bottom: 2px; } .banner button { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; color: #fff; }

@media (min-width: 760px) { .view { padding-top: 12px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.chv { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; margin: auto; }
.nav .chv { width: 22px; height: 22px; } .rrow .chev .chv { width: 16px; height: 16px; } .step .chv { width: 16px; height: 16px; }
.fscroll, .view, .sect, .fgrid { min-width: 0; }
.view { overflow-x: hidden; }

/* brand bar (every tab): Born in Film logo + LightCast lockup, like DEVMAX's brand bar */
.brandbar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 12px 4px; }
.brandbar .bif-link { display: inline-flex; line-height: 0; border-radius: 4px; flex: none; }
.brandbar .bif-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.brandbar .bif { display: block; height: 26px; width: auto; aspect-ratio: 800/311; }
.brandbar .bdiv { width: 1px; height: 22px; background: #ffffff38; flex: none; }
.brandbar .lc-lockup { display: block; height: 32px; width: auto; aspect-ratio: 1447/460; }
.aboutlogos { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 30px; }
.aboutlogos .bif { display: block; height: 40px; width: auto; aspect-ratio: 800/311; }
.aboutlogos .lockup { margin: 0 auto; }
@media (max-height: 700px) { .brandbar { padding-top: 6px; } .brandbar .bif { height: 20px; } .brandbar .lc-lockup { height: 26px; } }

/* ===== v0.3.0 beta: Beta tag + access gate (same flow as DEVMAX, LightCast's own BIF-palette look) ===== */
.beta-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1; vertical-align: middle; flex: none; }
.brandbar .beta-tag.bb { height: 16px; font-size: 9px; padding: 0 6px; margin-left: -4px; }
body.gate-locked { overflow: hidden; }
body.gate-locked #app, body.gate-locked #ov, body.gate-locked #toast, body.gate-locked .banner { display: none !important; }
.gt { position: fixed; inset: 0; z-index: 9000; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; overscroll-behavior: contain; }
.gt-wrap { margin: auto; width: 100%; max-width: 440px; display: flex; flex-direction: column; justify-content: center; min-height: 100%; padding: calc(28px + var(--safe-t)) 22px calc(28px + var(--safe-b)); }
.gt-lockup { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 14px; }
.gt-bif { display: inline-flex; line-height: 0; flex: none; }
.gt-bif img { display: block; height: 40px; width: auto; aspect-ratio: 800/311; }
.gt-lockup .bdiv { width: 1px; height: 34px; background: #ffffff38; flex: none; }
.gt-logo { display: block; height: 50px; width: auto; aspect-ratio: 1447/460; max-width: 58%; }
.gt-ver { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 26px; }
.gt-lead { font-size: 17px; font-weight: 300; line-height: 1.45; color: #D7DEEE; text-align: center; margin: 0 0 22px; }
.gt-card { display: block; background: var(--card); border-radius: 20px; padding: 20px 18px 18px; width: 100%; }
.gt-lbl { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--mute); margin: 0 0 8px; }
.gt-field { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; height: 52px; padding: 0 6px 0 14px; margin: 0 0 14px; }
.gt-field:focus-within { border-color: #9AA6BD; }
.gt-field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; height: 100%; font-size: 18px; font-weight: 300; letter-spacing: .06em; color: #fff; padding: 0; }
.gt-field input::placeholder { color: #7F8DAA; letter-spacing: .04em; }
.gt-toggle { flex: none; height: 44px; min-width: 56px; padding: 0 10px; border-radius: 10px; color: var(--mute); font-size: 13px; font-weight: 700; }
.gt-toggle:focus-visible, .gt-btn:focus-visible, .gt-regbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gt-err { display: none; color: var(--red-t); font-size: 14px; font-weight: 400; line-height: 1.4; margin: -4px 0 12px; }
.gt.is-error .gt-err { display: block; }
.gt.is-error .gt-field { border-color: var(--red); }
.gt-btn { display: flex; align-items: center; justify-content: center; height: 56px; width: 100%; border-radius: 16px; background: var(--red); color: #fff; font-size: 18px; font-weight: 700; }
.gt-btn:active { opacity: .75; } .gt-btn:disabled { opacity: .45; cursor: default; }
.gt-help { text-align: center; font-size: 14px; font-weight: 300; color: #C8C8C8; margin: 16px 0 0; line-height: 1.4; }
.gt-reg { margin: 18px 0 0; } .gt-reg .gt-help { margin: 0 0 10px; }
.gt-regbtn { display: flex; align-items: center; justify-content: center; height: 52px; width: 100%; border-radius: 16px; border: 2px solid #FFFFFF; color: #fff; background: transparent; font-size: 17px; font-weight: 700; text-decoration: none; }
.gt-regbtn:active { opacity: .75; }
.gt-reg.is-out { margin: 0 0 6px; } .gt-reg.is-out .gt-help { margin: 0 0 12px; font-size: 15px; }
.gt-reg.is-out .gt-regbtn { height: 58px; border: 0; background: var(--red); font-size: 18px; }
.gt-have { margin: 22px 0 14px; }
.gt-note { text-align: center; font-size: 13px; font-weight: 300; color: var(--mute); margin: 16px 0 0; line-height: 1.45; }
.gt-unset { text-align: center; padding: 22px 20px; } .gt-unset-h { font-weight: 800; font-size: 20px; color: var(--red-t); margin: 0 0 8px; } .gt-unset p { font-size: 15px; font-weight: 300; line-height: 1.45; color: #C8C8C8; }
.acc { margin: 0 0 22px; padding: 16px; border-radius: 16px; background: var(--card); text-align: left; }
.accrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 10px; }
.accpill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--pink); color: var(--pink); font-size: 13px; font-weight: 700; }
.accpill.owner { border-color: var(--gold); color: var(--gold); }
.acc .accout { width: auto; height: 40px; padding: 0 16px; flex: none; }
.acc p { margin: 0; font-size: 13px; font-weight: 300; line-height: 1.45; color: var(--mute); }
@media (max-height: 700px) { .gt-bif img { height: 32px; } .gt-logo { height: 40px; } .gt-ver { margin-bottom: 18px; } }
