:root {
  --a50: #faf5f2; --a100: #f1e5dc; --a200: #dcc2b0; --a300: #c29a82; --a400: #a3745a;
  --a500: #8a5a42; --a600: #6f4531; --a700: #5a3728; --a800: #432820; --a900: #2e1b16;
  --bg: #fbf7f2; --surface: #ffffff; --text: #2e1b16; --muted: rgba(46, 27, 22, .64);
  --line: rgba(90, 55, 40, .14); --accent: var(--a700); --on-accent: #fbf7f2;
  --band: var(--a50);
  --display: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a110e; --surface: #241813; --text: #f3e9e1; --muted: rgba(243, 233, 225, .62);
    --line: rgba(220, 194, 176, .14); --accent: var(--a200); --on-accent: #1a110e; --band: #20150f;
  }
}
:root[data-theme="dark"] {
  --bg: #1a110e; --surface: #241813; --text: #f3e9e1; --muted: rgba(243, 233, 225, .62);
  --line: rgba(220, 194, 176, .14); --accent: var(--a200); --on-accent: #1a110e; --band: #20150f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; padding-bottom: env(safe-area-inset-bottom); background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--a400); outline-offset: 3px; border-radius: 6px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--display); font-size: 22px; text-decoration: none; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 26px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; } :root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }
.menu-btn { display: none; }
@media (max-width: 760px) { .nav-links, .nav-actions .admin { display: none; } .menu-btn { display: inline-grid; } }

/* Buttons */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; transition: transform .15s, background .2s, color .2s; }
.pill:active { transform: scale(.97); }
.pill-solid { background: var(--accent); color: var(--on-accent); }
.pill-solid:hover { background: var(--a800); color: #fbf7f2; }
.pill-outline { border: 1px solid var(--line); padding: 7px 14px; font-weight: 500; }
.pill-outline:hover { border-color: var(--accent); }
.pill-ghost { color: var(--accent); }
.pill-ghost:hover { background: var(--a100); color: var(--a800); }

/* Hero */
.hero { padding-top: clamp(56px, 10vw, 120px); padding-bottom: 24px; }
.eyebrow { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.eyebrow-icon { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(44px, 8.5vw, 96px); line-height: 1.02; }
h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 560px; margin: 24px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Sections */
.section { padding-top: clamp(64px, 9vw, 112px); padding-bottom: 8px; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 46px); line-height: 1.1; }
.section-head .muted { margin: 10px 0 0; }
.band { background: var(--band); margin-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.band .section { padding-top: clamp(56px, 8vw, 96px); }

/* Cards */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.card { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(46, 27, 22, .35); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--a300), var(--a700)); }
.card-media[data-tone="2"] { background: linear-gradient(135deg, var(--a200), var(--a500)); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.06); }
.badge { position: absolute; top: 14px; left: 14px; background: rgba(251, 247, 242, .92); color: var(--a800); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.card-body { padding: 24px; }
.card-body h3 { font-size: clamp(24px, 3vw, 30px); margin-top: 6px; }
.card-body .muted { margin: 4px 0 0; font-size: 15px; }
.tags { list-style: none; padding: 0; margin: 18px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 12.5px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.card-link { font-weight: 600; font-size: 14px; color: var(--accent); display: inline-flex; gap: 8px; }
.arrow { transition: transform .25s; }
.card:hover .arrow { transform: translateX(5px); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.num { font-family: var(--display); font-style: italic; font-size: 40px; color: var(--accent); line-height: 1; }
.steps h3 { font-size: 22px; margin: 14px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-family: var(--display); font-size: 28px; font-weight: 300; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; color: var(--muted); }

/* Instagram */
.ig { display: flex; flex-wrap: wrap; gap: 12px; }
.ig-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; background: var(--surface); transition: border-color .2s, transform .2s; }
.ig-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.ig-btn svg { color: var(--accent); flex: none; }
.ig-btn span { display: flex; flex-direction: column; line-height: 1.3; }
.ig-btn strong { font-weight: 600; font-size: 14.5px; }
.ig-btn small { font-size: 12px; color: var(--muted); }

/* Footer */
.footer { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; font-size: 13px; color: var(--muted); }
.footer-inner a { text-decoration: none; }


/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card-media img, .arrow { transition: none; }
}

/* Hero art */
.hero { display: grid; gap: 48px; align-items: center; grid-template-columns: 1.1fr .9fr; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero-art { position: relative; aspect-ratio: 1 / 1.05; }
.frame { position: absolute; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(46, 27, 22, .45); background: linear-gradient(135deg, var(--a300), var(--a700)); }
.frame[data-tone="2"] { background: linear-gradient(135deg, var(--a200), var(--a500)); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame span { position: absolute; left: 14px; bottom: 14px; background: rgba(251,247,242,.92); color: var(--a800); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.f1 { inset: 0 28% 18% 0; transform: rotate(-3deg); }
.f2 { inset: 30% 0 0 34%; transform: rotate(4deg); border: 6px solid var(--bg); }
@media (max-width: 860px) { .hero-art { aspect-ratio: 4 / 3; max-width: 520px; } }

/* Marquee */
.marquee { margin-top: clamp(40px, 6vw, 72px); border-block: 1px solid var(--line); overflow: hidden; padding: 10px 0; }
.marquee-track { display: flex; gap: 32px; padding-right: 32px; width: max-content; animation: marquee 24s linear infinite; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }
/* Web (mouse): compact strip. Touch screens: bigger text and tap targets (at least 44px tall). */
@media (pointer: fine) { .marquee-track { font-size: 12px; gap: 28px; padding-right: 28px; } .mq-ic { width: 15px !important; height: 15px !important; } }
@media (pointer: coarse) {
  .marquee { padding: 4px 0; }
  .marquee-track { font-size: 15px; gap: 18px; padding-right: 18px; }
  .mq-item { min-height: 44px; padding: 0 10px; gap: 10px; border-radius: 999px; }
  .mq-item:active { background: var(--a100); color: var(--accent); }
  .mq-ic { width: 22px !important; height: 22px !important; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
.mq-item { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; padding: 4px 2px; transition: color .2s; }
.mq-item:hover, .mq-item:focus-visible { color: var(--accent); }
.mq-item:hover .mq-ic { animation-duration: .8s; }
.mq-ic { flex: none; width: 18px; height: 18px; color: var(--a400); overflow: visible; }
/* Each icon gets its own little loop, staggered so they never move in sync */
.mq-bob    { animation: mq-bob 2.4s ease-in-out infinite; }
.mq-beat   { animation: mq-beat 1.4s ease-in-out infinite; transform-origin: 50% 60%; }
.mq-wiggle { animation: mq-wiggle 2.8s ease-in-out infinite .3s; transform-origin: 50% 90%; }
.mq-toss   { animation: mq-toss 3.2s cubic-bezier(.3,.7,.3,1) infinite .6s; }
.mq-swing  { animation: mq-swing 2.6s ease-in-out infinite .2s; transform-origin: 50% 5%; }
.mq-shout  { animation: mq-shout 2s ease-in-out infinite .4s; transform-origin: 20% 50%; }
@keyframes mq-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes mq-beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(.95); } 45% { transform: scale(1.1); } }
@keyframes mq-wiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-10deg); } 84% { transform: rotate(8deg); } 92% { transform: rotate(-4deg); } }
@keyframes mq-toss { 0%, 55%, 100% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-10px) rotate(-200deg); } 85% { transform: translateY(-2px) rotate(-360deg); } 90% { transform: translateY(0) rotate(-360deg); } }
@keyframes mq-swing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(9deg); } 75% { transform: rotate(-9deg); } }
@keyframes mq-shout { 0%, 50%, 100% { transform: scale(1) rotate(0); } 10% { transform: scale(1.15) rotate(-8deg); } 20% { transform: scale(1.05) rotate(4deg); } 30% { transform: scale(1.12) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .marquee-track, .mq-ic { animation: none !important; } }

/* Menu sheet */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 12, 9, .45); opacity: 0; transition: opacity .25s; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 26px 26px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.7,.2,1); display: flex; flex-direction: column; }
.sheet.open .sheet-backdrop { opacity: 1; } .sheet.open .sheet-panel { transform: none; }
.sheet-grip { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 12px; }
.sheet-panel a { text-decoration: none; font-family: var(--display); font-size: 26px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.sheet-panel a:last-child { border: 0; font-family: var(--sans); font-size: 15px; color: var(--muted); }

/* Mobile booking bar */
.bookbar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; gap: 8px; padding: 6px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 16px 40px -16px rgba(46,27,22,.45); transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.bookbar a { flex: 1; text-align: center; text-decoration: none; background: var(--accent); color: var(--on-accent); border-radius: 14px; padding: 9px 8px; font-weight: 600; font-size: 14px; line-height: 1.2; }
.bookbar a + a { background: var(--a100); color: var(--a800); }
.bookbar small { display: block; font-size: 11px; font-weight: 500; opacity: .75; }
@media (max-width: 640px) { .bookbar { display: flex; } .footer { padding-bottom: 84px; } }
.show-bookbar .bookbar { transform: none; }

/* Pose idea generator */
.ideas { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; align-items: stretch; }
@media (max-width: 760px) { .ideas { grid-template-columns: 1fr; } }
.idea-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.idea-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.idea-card .row:last-of-type { border: 0; }
.idea-card dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.idea-card dd { margin: 0; font-family: var(--display); font-size: 20px; text-align: right; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -1px; margin-right: 8px; border: 1px solid var(--line); }
.idea-card.spin dd { animation: flick .45s ease; }
@keyframes flick { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
.idea-side { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.idea-side .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.idea-actions { display: flex; gap: 10px; flex-wrap: wrap; }
button.pill { border: 0; cursor: pointer; font-family: inherit; }
.count { font-size: 13px; color: var(--muted); margin: 0; }
.count:empty { display: none; }
@media (max-width: 760px) { .ideas { gap: 18px; } }

/* Blog cards */
.posts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.post { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .3s, border-color .3s; }
.post:hover { transform: translateY(-2px); border-color: var(--accent); }
.post .meta { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.post h3 { font-size: 23px; line-height: 1.2; margin: 12px 0 10px; }
.post p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.post .card-link { margin-top: auto; }
.more { margin-top: 24px; }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) 20px 0; }
.article .crumbs { font-size: 13px; color: var(--muted); }
.article .crumbs a { text-decoration: none; }
.article h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; margin: 18px 0 16px; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.article h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 44px 0 12px; }
.article p, .article li { font-size: 17.5px; line-height: 1.75; }
.article li { margin-bottom: 8px; }
.article blockquote { margin: 32px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--a300); font-family: var(--display); font-style: italic; font-size: 22px; color: var(--accent); }
.cta-box { margin: 56px 0 0; padding: 28px; border-radius: var(--radius); background: var(--band); border: 1px solid var(--line); }
.cta-box h2 { margin: 0 0 8px; }
.cta-box .hero-cta { margin-top: 18px; }

/* Maps */
.maps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.map-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-frame { aspect-ratio: 16 / 10; background: var(--a100); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: sepia(.25) saturate(.9); }
.map-body { padding: 22px 24px 24px; }
.map-body .eyebrow { margin-bottom: 4px; }
.map-body h3 { font-size: 26px; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Team */
.team { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.avatar { aspect-ratio: 4 / 5; display: grid; place-items: center; background: linear-gradient(160deg, var(--a200), var(--a600)); color: #fbf7f2; font-family: var(--display); font-size: 64px; font-style: italic; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-body { padding: 18px 20px 20px; }
.member h3 { font-size: 22px; }
.member .role { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 4px 0 8px; }
.member p { margin: 0; color: var(--muted); font-size: 14.5px; }
.member .ig-link { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--accent); text-decoration: none; }
.page-hero { padding-top: clamp(48px, 8vw, 96px); }
.page-hero h1 { font-size: clamp(40px, 7vw, 76px); }

/* Game cards */
.game-card .card-media { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.game-emoji { font-size: 72px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.25)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.game-card:hover .game-emoji { transform: scale(1.15) rotate(-8deg); }

.credit { font-size: 12px; opacity: .8; }
.credit a { text-decoration: underline; }

/* ===== App mode (phones and installed app): bottom tab bar, one tab at a time ===== */
.tabbar, .app-only { display: none; }
.app-mode .app-only { display: inline-flex; }
.app-mode body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.app-mode .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(46,27,22,.4); }
.tabbar a { flex: 1; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 500; position: relative; -webkit-tap-highlight-color: transparent; }
.tabbar a::before { content: ""; position: absolute; top: 4px; width: 56px; height: 30px; border-radius: 15px; background: var(--a100); transform: scaleX(.3); opacity: 0; transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s; }
:root[data-theme="dark"] .tabbar a::before { background: #3a271e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabbar a::before { background: #3a271e; } }
.tabbar a svg { width: 22px; height: 22px; position: relative; margin-top: 4px; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.tabbar a span { position: relative; }
.tabbar a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.tabbar a[aria-current="page"]::before { transform: none; opacity: 1; }
.tabbar a[aria-current="page"] svg { transform: scale(1.06); }
.tabbar a:active svg { transform: scale(.88); }
.app-mode [data-tab]:not(.tab-on) { display: none !important; }
.app-mode .tab-anim { animation: tab-in .35s cubic-bezier(.2,.7,.2,1); }
@keyframes tab-in { from { opacity: 0; transform: translateY(12px); } }
.app-mode .tab-first.section, .app-mode .tab-first .section { padding-top: 28px; }
.app-mode .tab-first.band { margin-top: 0; }
.app-mode .tab-first.hero { padding-top: 32px; }
.app-mode .bookbar, .app-mode .menu-btn, .app-mode .sheet { display: none !important; }
.app-mode .footer { margin-top: 32px; padding-bottom: 0; }
.app-mode .nav { position: sticky; }
.app-mode .reveal { opacity: 1; transform: none; }
.app-mode .hero-art { display: none; }
.app-mode .hero { padding-bottom: 0; }
.app-mode .section { padding-top: 40px; }
.app-mode .marquee { margin-top: 28px; }
.app-mode .lead { margin: 16px 0 22px; }
.app-mode .band { margin-top: 0; padding-bottom: 40px; }

/* ===== Login gate (app layout only) ===== */
.locked body > *:not(.gate):not(.intro) { display: none !important; }
.locked body { padding-bottom: 0; }
.gate { position: fixed; inset: 0; z-index: 100; background: var(--bg); overflow-y: auto; transition: opacity .35s, transform .35s; }
.gate.gate-out { opacity: 0; transform: scale(1.03); }
.gate-inner { min-height: 100%; max-width: 440px; margin: 0 auto; padding: calc(24px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 36px; }
.gate .brand { font-size: 22px; }
.gate h1 { font-size: clamp(40px, 12vw, 56px); line-height: 1.02; margin: 0 0 10px; }
.gate h1 em { font-style: italic; font-weight: 300; color: var(--accent); }
.gate .muted { margin: 0; }
.gate form { display: flex; flex-direction: column; gap: 16px; margin-top: auto; }
.gate label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.gate input { font: inherit; font-size: 18px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px; width: 100%; min-height: 54px; letter-spacing: .08em; }
.gate input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.gate .pw { position: relative; display: block; }
.gate .pw input { padding-right: 116px; }
.gate .pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; padding: 10px 12px; cursor: pointer; }
.gate-err { min-height: 1.3em; margin: -4px 0 0; color: #c0392b; font-size: 14px; }
.gate .big-btn { width: 100%; justify-content: center; min-height: 54px; border: 0; cursor: pointer; font-family: inherit; }
.gate .big-btn:disabled { opacity: .6; }
.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .shake { animation: none; } .gate { transition: none; } }
button.ig-btn { font: inherit; color: inherit; cursor: pointer; text-align: left; }
@media (max-height: 700px) {
  .gate-inner { gap: 18px; padding-top: calc(16px + env(safe-area-inset-top)); }
  .gate h1 { font-size: 34px; }
  .gate form { gap: 10px; }
  .gate input, .gate .big-btn { min-height: 48px; padding-top: 11px; padding-bottom: 11px; }
}

/* ===== Super-app home (app layout only) ===== */
.super { display: none; }
.app-mode .super { display: block; padding: 0 0 8px; }
.app-mode .hero, .app-mode .marquee, .app-mode #lokasi { display: none !important; }
.sa-top { background: linear-gradient(160deg, #6f4531, #2e1b16); color: #fbf7f2; padding: 18px 16px 22px; border-radius: 0 0 28px 28px; position: relative; }
.sa-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sa-greet { margin: 0; font-size: 14px; opacity: .8; }
.sa-q { margin: 2px 0 0; font-family: var(--display); font-size: 26px; line-height: 1.15; }
.sa-city { position: relative; flex: none; }
.sa-city > button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(251,247,242,.3); background: rgba(251,247,242,.12); color: #fbf7f2; border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 600; min-height: 40px; cursor: pointer; }
.sa-city > button svg { width: 16px; height: 16px; }
.sa-city > button b { font-size: 10px; opacity: .8; }
.sa-city-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 6px; min-width: 200px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.4); }
.sa-city-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.sa-city-menu button:active { background: var(--a100); }
.sa-city-menu small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.sa-search { display: flex; align-items: center; gap: 10px; margin-top: 16px; background: var(--surface); color: var(--muted); border-radius: 16px; padding: 0 14px; min-height: 50px; }
.sa-search svg { width: 20px; height: 20px; flex: none; }
.sa-search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text); outline: none; min-width: 0; }
.sa-results { position: absolute; left: 16px; right: 16px; top: calc(100% - 14px); z-index: 15; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); }
.sa-results a, .sa-list a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none; color: inherit; }
.sa-results a:active, .sa-list a:active { background: var(--a100); }
.sa-results b, .sa-list b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.sa-results small, .sa-list small { color: var(--muted); font-size: 12px; }
.sa-empty { margin: 10px; color: var(--muted); font-size: 14px; }
.sa-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; color: #fff; flex: none; box-shadow: 0 8px 18px -10px rgba(46,27,22,.6); }
.sa-ic svg { width: 58%; height: 58%; }
.sa-ic.sm { width: 42px; height: 42px; border-radius: 13px; }
.sa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 6px; padding: 22px 12px 6px; }
.sa-svc { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: var(--text); font-size: 12.5px; font-weight: 500; text-align: center; }
.sa-svc:active .sa-ic { transform: scale(.92); }
.sa-ic { transition: transform .15s; }
.sa-carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 16px 4px; scrollbar-width: none; scroll-padding: 0 16px; }
.sa-carousel::-webkit-scrollbar { display: none; }
.sa-banner { flex: 0 0 100%; scroll-snap-align: start; min-height: 128px; border-radius: 22px; color: #fbf7f2; text-decoration: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px; overflow: hidden; }
.sa-banner b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.15; }
.sa-banner small { display: block; opacity: .85; font-size: 13px; margin-top: 4px; }
.sa-banner em { display: inline-block; font-style: normal; font-size: 12.5px; font-weight: 600; margin-top: 10px; background: rgba(251,247,242,.18); padding: 5px 10px; border-radius: 999px; }
.sa-banner svg { width: 78px; height: 78px; flex: none; opacity: .9; }
.sa-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 2px; }
.sa-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .25s, background .25s; }
.sa-dots i.on { width: 18px; background: var(--accent); }
.sa-h { font-family: var(--display); font-weight: 400; font-size: 21px; margin: 24px 16px 12px; }
.sa-h-row { display: flex; justify-content: space-between; align-items: baseline; }
.sa-h-row a { margin-right: 16px; font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none; padding: 8px 0; }
.sa-studio { margin: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 38% 1fr; }
.sa-studio-img { background: linear-gradient(135deg, var(--a300), var(--a700)); min-height: 150px; }
.sa-studio-img img { width: 100%; height: 100%; object-fit: cover; }
.sa-studio-body { padding: 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sa-studio-body small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.sa-studio-body b { font-family: var(--display); font-weight: 400; font-size: 20px; }
.sa-studio-body span { font-size: 12.5px; color: var(--muted); }
.sa-studio-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sa-studio-btns .pill { padding: 9px 14px; font-size: 13px; min-height: 40px; }
.sa-games { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 4px; }
.sa-games::-webkit-scrollbar { display: none; }
.sa-game { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; text-decoration: none; color: inherit; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 10px; align-items: center; min-width: 0; }
.sa-game .sa-ic { grid-row: 1 / span 3; }
.sa-game b { font-weight: 600; font-size: 13.5px; line-height: 1.25; overflow-wrap: anywhere; }
.sa-game small { color: var(--muted); font-size: 12px; }
.sa-game em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent); }
.sa-list { margin: 0 8px; }
.app-mode .tab-first.super { padding-top: 0; }
.app-mode .super ~ .marquee + #lokasi { display: none; }
.app-mode .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.sa-carousel { margin: 18px 16px 0; padding: 0; scroll-padding: 0; }
.sa-studio-img { position: relative; min-height: 140px; }
.sa-studio-img img { position: absolute; inset: 0; }

/* ===== Transparent brown "glass" theme for the app layout and the login (no blur anywhere) ===== */
:root {
  --glass-bg:
    radial-gradient(60% 40% at 12% 6%, rgba(214, 150, 104, .42), transparent 70%),
    radial-gradient(55% 35% at 92% 28%, rgba(168, 86, 58, .36), transparent 70%),
    radial-gradient(70% 45% at 28% 88%, rgba(128, 82, 54, .42), transparent 70%),
    linear-gradient(170deg, #3b2419 0%, #25160f 55%, #1a0f0b 100%);
}
:root.app-mode, .gate {
  --bg: #24150f;
  --surface: rgba(255, 236, 220, .075);
  --text: #f7ece2;
  --muted: rgba(247, 236, 226, .66);
  --line: rgba(255, 226, 204, .16);
  --accent: #e9c19d;
  --on-accent: #2a1810;
  --band: rgba(255, 236, 220, .035);
  --a100: rgba(233, 193, 157, .16);
  --a800: #f2d6bd;
  color-scheme: dark;
}
:root.app-mode { background: #1f120d; }
.app-mode body { background: transparent; color: var(--text); }
.app-mode body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--glass-bg); }
.gate { background: var(--glass-bg); color: var(--text); }

/* glass surfaces: translucent fill, hairline light border, soft top highlight */
.app-mode .card, .app-mode .map-card, .app-mode .post, .app-mode .steps li, .app-mode .ig-btn, .app-mode .idea-card,
.app-mode .member, .app-mode .sa-studio, .app-mode .sa-game, .app-mode .sa-search, .gate input {
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 240, 228, .08), 0 18px 40px -28px rgba(0, 0, 0, .7);
}
.app-mode .nav { background: linear-gradient(#2c1b13, rgba(44, 27, 19, .94)); border-bottom-color: var(--line); }
.app-mode #theme { display: none; }
.app-mode .tabbar { background: rgba(30, 18, 13, .96); border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, .7); }
.app-mode .tabbar a::before { background: rgba(233, 193, 157, .16); }
.app-mode .tabbar a[aria-current="page"] { color: var(--accent); }

/* super-app home */
.app-mode .sa-top { background: transparent; padding-top: 10px; }
.app-mode .sa-q { color: var(--text); }
.app-mode .sa-city > button { background: rgba(255, 236, 220, .08); border-color: var(--line); }
.app-mode .sa-search { color: var(--muted); }
.app-mode .sa-search input::placeholder { color: var(--muted); }
.app-mode .sa-city-menu, .app-mode .sa-results { background: #2e1c14; border-color: var(--line); }
.sa-ic { background: color-mix(in srgb, var(--c, #8a5a42) 58%, rgba(255, 240, 228, .06)); border: 1px solid rgba(255, 228, 206, .2); box-shadow: inset 0 1px 0 rgba(255, 245, 235, .18), 0 10px 22px -14px rgba(0, 0, 0, .8); }
.sa-ic svg { color: #fff6ee; }
.app-mode .sa-svc { color: var(--text); }
.app-mode .sa-banner { border: 1px solid rgba(255, 228, 206, .18); box-shadow: inset 0 1px 0 rgba(255, 245, 235, .14); opacity: .96; }
.app-mode .sa-banner em { background: rgba(255, 240, 228, .16); border: 1px solid rgba(255, 228, 206, .2); }
.app-mode .sa-dots i { background: rgba(255, 226, 204, .2); }
.app-mode .sa-dots i.on { background: var(--accent); }
.app-mode .sa-h, .app-mode h2, .app-mode h3 { color: var(--text); }
.app-mode .pill-solid { background: var(--accent); color: var(--on-accent); }
.app-mode .pill-outline { border-color: var(--line); color: var(--text); }
.app-mode .pill-ghost { color: var(--accent); }
.app-mode .band { background: var(--band); }
.app-mode .card-link, .app-mode .num, .app-mode .faq summary::after { color: var(--accent); }
.app-mode .map-frame iframe { filter: sepia(.35) saturate(.85) brightness(.92); }

/* login in the same style */
.gate .pill-solid { background: var(--accent); color: var(--on-accent); }
.gate h1 em { color: var(--accent); }
.gate input { color: var(--text); }
.gate input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(233, 193, 157, .22); }
.gate-err { color: #ffb4a2; }

/* Center Booking button with a rolling studio name */
.tb-book { flex: 1.25; display: flex; justify-content: center; align-items: center; position: relative; }
.tb-book-main { margin-top: -26px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 132px; height: 62px; padding: 0 30px 0 22px; border-radius: 22px; text-decoration: none; color: #2a1810;
  background: linear-gradient(150deg, #f3d3b4 0%, #e2b089 45%, #c98a60 100%);
  border: 1px solid rgba(255, 238, 222, .55);
  box-shadow: inset 0 1px 0 rgba(255, 250, 244, .7), inset 0 -6px 14px rgba(120, 66, 36, .25), 0 14px 30px -12px rgba(0, 0, 0, .75), 0 0 0 6px rgba(30, 18, 13, .96);
  transition: transform .15s; -webkit-tap-highlight-color: transparent; user-select: none; }
.tb-book-main:active { transform: scale(.96); }
.tb-book-main small { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.tb-roll-win { display: block; height: 24px; overflow: hidden; }
.tb-roll-track { display: flex; flex-direction: column; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.tb-roll-track b { height: 24px; line-height: 24px; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 20px; text-align: center; }
.tb-roll { position: absolute; left: 50%; margin-left: 46px; top: -34px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 238, 222, .6); background: #2a1810; color: #f3d3b4; display: grid; place-items: center; padding: 0; cursor: pointer; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .8); }
.tb-roll svg { width: 15px; height: 15px; }
.tb-roll.spin svg { animation: tb-spin .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes tb-spin { from { transform: rotate(0); } to { transform: rotate(180deg); } }
@media (prefers-reduced-motion: reduce) { .tb-roll-track { transition: none; } .tb-roll.spin svg { animation: none; } }
.app-mode body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.tabbar a.tb-book-main { flex: none; min-height: 0; gap: 0; color: #2a1810; font-size: inherit; }
.tabbar a.tb-book-main::before { display: none; }
.tabbar a.tb-book-main small { opacity: .62; }
.tabbar a.tb-book-main b { color: #2a1810; }

/* Bottom bar is now just the floating Booking button */
.app-mode .tabbar.only-book { background: transparent; border: 0; box-shadow: none; pointer-events: none; justify-content: center; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.tabbar.only-book .tb-book { pointer-events: auto; flex: none; }
.tabbar.only-book .tb-book-main { margin-top: 0; box-shadow: inset 0 1px 0 rgba(255, 250, 244, .7), inset 0 -6px 14px rgba(120, 66, 36, .25), 0 18px 36px -12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 238, 222, .25); }
.tabbar.only-book .tb-roll { top: -10px; }
.app-mode body { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.app-info { display: none; text-decoration: none; }
.app-mode .app-info { display: inline-grid; }

/* Login clock */
.gate-clock { text-align: center; margin-top: 8px; }
.clk { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 300; font-size: clamp(76px, 25vw, 112px); line-height: 1; letter-spacing: -.02em; color: var(--text);
  text-shadow: 0 10px 40px rgba(233, 193, 157, .25); font-variant-numeric: tabular-nums; }
.dg { display: inline-block; height: 1em; overflow: hidden; width: .62em; text-align: center; }
.dg-track { display: flex; flex-direction: column; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.dg-track b { height: 1em; font-weight: 300; }
.colon { display: inline-block; margin: 0 .04em; transform: translateY(-.06em); color: var(--accent); animation: colon 2s ease-in-out infinite; }
@keyframes colon { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.gate-date { margin: 10px 0 0; font-size: 15px; letter-spacing: .06em; color: var(--muted); text-transform: capitalize; }
.gate h1 { font-size: clamp(30px, 9vw, 40px); }
@media (max-height: 700px) { .clk { font-size: 62px; } .gate-date { margin-top: 4px; font-size: 13px; } .gate h1 { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .dg-track { transition: none; } .colon { animation: none; } }

/* ===== Logo (login + app header) ===== */
.logo { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 6px 8px; color: var(--text); cursor: pointer; text-decoration: none; font: inherit; -webkit-tap-highlight-color: transparent; }
.logo-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: italic 400 21px/1 var(--display); color: #2a1810;
  background: linear-gradient(150deg, #f3d3b4, #c98a60); box-shadow: inset 0 1px 0 rgba(255, 250, 244, .7), 0 6px 16px -6px rgba(0, 0, 0, .6); padding-bottom: 2px; }
.logo-word { display: inline-flex; font: 500 15px/1 var(--sans); letter-spacing: .32em; margin-right: -.32em; }
.logo-word i { font-style: normal; display: inline-block; }
.logo:active .logo-mark { transform: scale(.9); }
.logo.pop .logo-mark { animation: logo-spin .8s cubic-bezier(.34, 1.56, .64, 1); }
.logo.pop .logo-word i { animation: logo-wave .6s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i) * 45ms + 80ms); }
@keyframes logo-spin { from { transform: rotate(0) scale(.85); } to { transform: rotate(360deg) scale(1); } }
@keyframes logo-wave { 0% { transform: none; } 40% { transform: translateY(-7px); color: var(--accent); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .logo.pop .logo-mark, .logo.pop .logo-word i { animation: none; } }
.gate .logo { align-self: center; }
.app-mode .nav-inner { justify-content: center; position: relative; }
.app-mode .nav-actions { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.app-mode .nav .brand { font-size: inherit; }
/* very short screens (iPhone SE) */
@media (max-height: 600px) {
  .gate-inner { gap: 10px; }
  .clk { font-size: 52px; }
  .gate h1 { font-size: 22px; margin-bottom: 0; }
  .gate .muted { display: none; }
  .gate form { gap: 8px; }
  .gate label { gap: 4px; }
}

/* ===== Glass icons on the home screen (layered light, no blur) ===== */
.sa-ic { position: relative; overflow: hidden; isolation: isolate;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .07) 40%, rgba(255, 255, 255, 0) 62%),
    color-mix(in srgb, var(--c, #8a5a42) 46%, rgba(255, 240, 228, .05));
  border: 1px solid rgba(255, 236, 220, .34);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, .55),
    inset 0 -12px 20px -10px color-mix(in srgb, var(--c, #8a5a42) 85%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    0 14px 26px -16px rgba(0, 0, 0, .95),
    0 6px 24px -10px color-mix(in srgb, var(--c, #8a5a42) 70%, transparent);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s; }
/* glossy reflection across the top */
.sa-ic::before { content: ""; position: absolute; left: 7%; right: 7%; top: 3%; height: 48%; z-index: 0; pointer-events: none;
  border-radius: 45% 45% 50% 50% / 70% 70% 30% 30%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .04)); transition: transform .35s ease; }
/* soft rim light at the bottom + a light sweep on tap */
.sa-ic::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 22% at 50% 96%, rgba(255, 238, 222, .45), transparent 70%),
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 48%, transparent 64%) no-repeat;
  background-size: 100% 100%, 260% 100%; background-position: 0 0, 160% 0; }
.sa-ic svg { position: relative; z-index: 1; filter: drop-shadow(0 2px 2.5px rgba(40, 20, 12, .45)); }
.sa-ic svg path { fill: url(#sa-glyph); }
a:active > .sa-ic, .sa-svc:active .sa-ic { transform: scale(.9); }
a:active > .sa-ic::before, .sa-svc:active .sa-ic::before { transform: translateY(8%); }
a:active > .sa-ic::after, .sa-svc:active .sa-ic::after, .sa-ic.shine::after { background-position: 0 0, -60% 0; transition: background-position .6s ease; }
@media (prefers-reduced-motion: reduce) { .sa-ic, .sa-ic::before, .sa-ic::after { transition: none !important; } }
/* banner illustrations get the same glassy glyph */
.app-mode .sa-banner svg path { fill: url(#sa-glyph); }
.app-mode .sa-banner svg { filter: drop-shadow(0 6px 10px rgba(30, 12, 8, .45)); opacity: .95; }
.app-mode .nav { background: #2a1912; }

.app-back { display: none; }
.app-mode .app-back { display: inline-grid; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); text-decoration: none; transition: transform .2s; }
.app-mode .app-back:active { transform: translateY(-50%) scale(.88); }
/* Glass logo mark: caramel glass tile, glossy top, rim light, frosted "S" */
.logo-mark { position: relative; overflow: hidden; isolation: isolate; width: 36px; height: 36px; color: transparent;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .08) 42%, rgba(255, 255, 255, 0) 64%),
    color-mix(in srgb, #c98a60 58%, rgba(255, 240, 228, .08));
  border: 1px solid rgba(255, 236, 220, .45);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .65), inset 0 -10px 16px -8px rgba(150, 82, 44, .9),
    0 10px 20px -10px rgba(0, 0, 0, .9), 0 4px 18px -6px rgba(201, 138, 96, .7); }
.logo-mark::before { content: ""; position: absolute; left: 8%; right: 8%; top: 4%; height: 46%; z-index: 0; pointer-events: none;
  border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%; background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .05)); }
.logo-mark::after { content: "S"; position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding-bottom: 2px;
  font: italic 500 22px/1 var(--display);
  background: linear-gradient(180deg, #fffaf5 10%, #f6dcc4 60%, #e2b48e 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1.5px 1.5px rgba(70, 35, 18, .55)); }
.logo.pop .logo-mark::before { animation: gloss .8s ease; }
@keyframes gloss { 0% { transform: translateY(0); } 40% { transform: translateY(14%); opacity: .6; } 100% { transform: none; } }

/* ===================================================================
   PS5 design rules (Swassana brown), whole app on touch devices
   1. Focus = cream ring + soft glow + slight lift (on press / keyboard focus)
   2. One big primary button (cream, dark text); secondary actions are round glass
   3. Light, large titles over full-bleed art; small spaced eyebrow above
   4. Rounded-square tiles and cards (radius 16-22), dark glass surfaces
   5. Motion: 250-450ms ease-out, spring only for focus changes
   =================================================================== */
:root { --ps-ring: 0 0 0 2px #fbeee2, 0 0 0 5px rgba(251, 238, 226, .18), 0 0 26px 2px rgba(240, 201, 164, .35); --ps-ease: cubic-bezier(.2, .8, .2, 1); --ps-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* ---------- Home launcher ---------- */
.app-mode .super { position: relative; min-height: calc(100dvh - 80px); padding: 0 0 20px; isolation: isolate; }
.ps-art { position: absolute; left: 0; right: 0; top: -70px; height: 520px; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 45%, transparent 100%); mask-image: linear-gradient(#000 45%, transparent 100%); }
.ps-bg { position: absolute; inset: 0; opacity: 0; transition: opacity .55s var(--ps-ease);
  background: radial-gradient(80% 70% at 75% 30%, color-mix(in srgb, var(--c, #8a5a42) 70%, transparent), transparent 70%), linear-gradient(170deg, color-mix(in srgb, var(--c, #8a5a42) 45%, #1a0f0b), #1a0f0b 80%); }
.ps-bg.show { opacity: 1; }
.ps-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.08); transition: transform 6s ease-out; }
.ps-bg.show img { transform: scale(1); }
.ps-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 11, 8, .55), rgba(20, 11, 8, .15) 35%, rgba(20, 11, 8, .7)); }
.ps-glyph { position: absolute; right: -12%; top: 6%; width: 78%; aspect-ratio: 1; opacity: .16; transform: rotate(-8deg) scale(.96); transition: transform .9s var(--ps-ease); }
.ps-bg.show .ps-glyph { transform: rotate(-8deg) scale(1); }
.ps-glyph svg { width: 100%; height: 100%; color: #fbe9d8; }

.ps-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px; }
.ps-cats { display: flex; gap: 22px; }
.ps-cats button { border: 0; background: none; padding: 6px 0; font: 600 17px var(--sans); color: rgba(247, 236, 226, .5); cursor: pointer; position: relative; transition: color .25s; }
.ps-cats button[aria-selected="true"] { color: var(--text); }
.ps-cats button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--text); transform: scaleX(0); transition: transform .35s var(--ps-spring); }
.ps-cats button[aria-selected="true"]::after { transform: scaleX(1); }
.ps-tools { display: flex; align-items: center; gap: 12px; }
.ps-tool { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 236, 220, .08); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .2s var(--ps-spring); }
.ps-tool svg { width: 18px; height: 18px; }
.ps-tool:active { transform: scale(.88); }
.ps-time { font: 500 16px var(--sans); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ps-search { padding: 4px 16px 6px; position: relative; }
.ps-search .sa-results { top: calc(100% - 2px); }

.ps-row { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 14px 14px 10px; min-height: 92px; }
.ps-row.swap .ps-tile { animation: tile-in .45s var(--ps-ease) both; }
.ps-row.swap .ps-tile:nth-child(2) { animation-delay: .03s; } .ps-row.swap .ps-tile:nth-child(3) { animation-delay: .06s; } .ps-row.swap .ps-tile:nth-child(4) { animation-delay: .09s; }
.ps-row.swap .ps-tile:nth-child(5) { animation-delay: .12s; } .ps-row.swap .ps-tile:nth-child(6) { animation-delay: .15s; } .ps-row.swap .ps-tile:nth-child(7) { animation-delay: .18s; }
@keyframes tile-in { from { opacity: 0; transform: translateX(18px); } }
.ps-tile { border: 0; background: none; padding: 0; cursor: pointer; flex: 0 1 auto; -webkit-tap-highlight-color: transparent; }
.ps-tile .sa-ic { width: clamp(38px, 10.6vw, 46px); height: clamp(38px, 10.6vw, 46px); border-radius: 13px; transition: width .4s var(--ps-spring), height .4s var(--ps-spring), border-radius .4s, box-shadow .3s, transform .2s; }
.ps-tile.on .sa-ic { width: clamp(56px, 16vw, 66px); height: clamp(56px, 16vw, 66px); border-radius: 18px; box-shadow: var(--ps-ring), inset 0 1.5px 1px rgba(255, 255, 255, .55), 0 14px 26px -12px rgba(0, 0, 0, .9); animation: ring-pulse 2.4s ease-in-out infinite; }
@keyframes ring-pulse { 50% { box-shadow: 0 0 0 2px #fbeee2, 0 0 0 7px rgba(251, 238, 226, .1), 0 0 34px 4px rgba(240, 201, 164, .45), inset 0 1.5px 1px rgba(255, 255, 255, .55), 0 14px 26px -12px rgba(0, 0, 0, .9); } }
.ps-tile:active .sa-ic { transform: scale(.92); }

.ps-hero { padding: 26px 18px 6px; min-height: 270px; display: flex; flex-direction: column; justify-content: flex-end; touch-action: pan-y; }
.ps-hero.swap > * { animation: hero-in .45s var(--ps-ease) both; }
.ps-hero.swap > *:nth-child(2) { animation-delay: .04s; } .ps-hero.swap > *:nth-child(3) { animation-delay: .08s; } .ps-hero.swap > *:nth-child(4) { animation-delay: .12s; }
@keyframes hero-in { from { opacity: 0; transform: translateX(16px); } }
.ps-eyebrow { margin: 0; font: 600 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.ps-title { margin: 8px 0 8px; font: 300 clamp(32px, 9.5vw, 42px)/1.05 var(--display); letter-spacing: -.02em; color: var(--text); }
.ps-desc { margin: 0 0 20px; color: var(--muted); font-size: 15px; max-width: 34ch; }
.ps-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ps-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: 168px; padding: 0 28px; border-radius: 999px; background: #fbeee2; color: #24150f; font: 700 16px var(--sans); text-decoration: none;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .8); transition: transform .2s var(--ps-spring), box-shadow .25s; }
.ps-btn:active { transform: scale(.95); box-shadow: var(--ps-ring); }
.ps-city { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 236, 220, .1); color: var(--text); font: 600 14px var(--sans); cursor: pointer; transition: transform .2s var(--ps-spring); }
.ps-city svg { width: 16px; height: 16px; }
.ps-city b { opacity: .7; }
.ps-city:active { transform: scale(.94); box-shadow: var(--ps-ring); }

.ps-h { margin: 28px 18px 12px; font: 600 15px var(--sans); letter-spacing: .02em; color: var(--text); }
.ps-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.ps-card { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px 8px 12px; min-width: 0; transition: transform .25s var(--ps-spring), box-shadow .25s; }
.ps-card-art { display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; margin-bottom: 8px; background: linear-gradient(135deg, var(--a300), var(--a700)); }
.ps-card-art img { width: 100%; height: 100%; object-fit: cover; }
.ps-card-glyph { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(80% 90% at 70% 20%, color-mix(in srgb, var(--c) 75%, transparent), transparent 75%), linear-gradient(150deg, color-mix(in srgb, var(--c) 50%, #2a1810), #1d110c); }
.ps-card-glyph svg { width: 42%; height: auto; aspect-ratio: 1; }
.ps-card-glyph svg path { fill: url(#sa-glyph); }
.ps-card b { font-weight: 600; font-size: 14px; line-height: 1.25; padding: 0 4px; overflow-wrap: anywhere; }
.ps-card small { color: var(--muted); font-size: 12px; padding: 0 4px; }

/* ---------- Whole app: PS5 focus ring + press on every interactive surface ---------- */
.app-mode :is(.card, .map-card, .post, .steps li, .ig-btn, .idea-card, .member, .ps-card, .faq details, .sa-results a, .pill, .icon-btn, .chip):is(:active, :focus-visible) { box-shadow: var(--ps-ring); }
.app-mode :is(.card, .map-card, .post, .ig-btn, .member, .ps-card, .pill, .chip):active { transform: scale(.97); }
.app-mode :is(.card, .map-card, .post, .ig-btn, .member, .pill, .chip) { transition: transform .25s var(--ps-spring), box-shadow .25s, border-color .25s; }
.app-mode :focus-visible { outline: none; box-shadow: var(--ps-ring); }
.app-mode .section-head .eyebrow, .app-mode .page-hero .eyebrow, .app-mode .article .crumbs { letter-spacing: .18em; color: var(--accent); font-weight: 600; }
.app-mode .section-head h2, .app-mode .page-hero h1, .app-mode .article h1 { font-weight: 300; letter-spacing: -.02em; }
.app-mode .card, .app-mode .map-card, .app-mode .post, .app-mode .member, .app-mode .steps li { border-radius: 20px; }
.app-mode .pill-solid { background: #fbeee2; color: #24150f; }
.app-mode .tab-anim { animation: tab-in .4s var(--ps-ease); }
@keyframes tab-in { from { opacity: 0; transform: translateX(16px); } }
@media (prefers-reduced-motion: reduce) {
  .ps-tile.on .sa-ic, .ps-row.swap .ps-tile, .ps-hero.swap > * { animation: none !important; }
  .ps-bg, .ps-bg img, .ps-glyph { transition: none !important; }
}
.ps-city[hidden] { display: none; }
.app-mode .nav-actions .pill { display: none; }
@media (max-width: 360px) {
  .ps-row { padding-inline: 10px; gap: 2px; }
  .ps-tile .sa-ic { width: 34px; height: 34px; border-radius: 11px; }
  .ps-tile.on .sa-ic { width: 50px; height: 50px; border-radius: 15px; }
}

/* Only the focused (leftmost) tile is sharp; the others sit back, softly blurred and dimmed */
.ps-row { justify-content: flex-start; gap: 8px; }
.ps-tile .sa-ic { filter: blur(1.6px) saturate(.85); opacity: .6; transition: width .4s var(--ps-spring), height .4s var(--ps-spring), border-radius .4s, box-shadow .3s, transform .2s, filter .35s ease, opacity .35s ease; }
.ps-tile.on .sa-ic { filter: none; opacity: 1; }
.ps-tile.on { margin-right: 6px; }
@media (max-width: 360px) { .ps-row { gap: 5px; } .ps-tile.on { margin-right: 3px; } }

/* Tile row v3: icons only (no square tile), glass glyphs; focused + 2 blurred neighbours, the rest vanish */
.ps-row { justify-content: flex-start; align-items: center; gap: 22px; padding: 18px 22px 12px; min-height: 104px; overflow: hidden; }
.ps-tile { position: relative; display: grid; place-items: center; transition: opacity .4s ease, filter .4s ease, transform .45s var(--ps-spring), width .4s var(--ps-spring), margin .4s; width: 40px; }
.ps-glass { display: block; width: 40px; height: 40px; transition: width .45s var(--ps-spring), height .45s var(--ps-spring); }
.ps-glass svg { width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .55)) drop-shadow(0 6px 10px rgba(20, 10, 6, .55)) drop-shadow(0 0 14px color-mix(in srgb, var(--c) 75%, transparent)); }
.ps-glass svg path { fill: url(#sa-glass); stroke: rgba(255, 248, 240, .7); stroke-width: 6; paint-order: stroke; }
.ps-tile.on { width: 66px; }
.ps-tile.on .ps-glass { width: 66px; height: 66px; }
.ps-tile.on::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 22px; height: 3px; border-radius: 3px; translate: -50% 0; background: #fbeee2; box-shadow: 0 0 10px rgba(251, 238, 226, .8); animation: bar-in .45s var(--ps-spring); }
@keyframes bar-in { from { width: 0; opacity: 0; } }
.ps-tile.n1 { filter: blur(1.5px); opacity: .55; }
.ps-tile.n2 { filter: blur(3px); opacity: .28; }
.ps-tile.gone { opacity: 0; width: 0; margin-right: -22px; pointer-events: none; filter: blur(4px); }
.ps-tile.on .ps-glass { animation: glass-pop .5s var(--ps-spring); }
@keyframes glass-pop { from { transform: scale(.8); } }
.ps-tile:active .ps-glass { transform: scale(.9); }
@media (prefers-reduced-motion: reduce) { .ps-tile, .ps-glass, .ps-tile.on::after, .ps-tile.on .ps-glass { transition: none !important; animation: none !important; } }

/* ===== Home fits exactly one screen: nothing split apart, sizes scale with screen height ===== */
.app-mode .super { display: flex; flex-direction: column; height: calc(100dvh - var(--nav-h, 69px)); min-height: 0; padding-bottom: calc(92px + env(safe-area-inset-bottom)); overflow: hidden; }
.app-mode body:has(.super.tab-on) { padding-bottom: 0; }
.app-mode .super .ps-top { flex: none; padding-top: clamp(6px, 1.6vh, 14px); }
.app-mode .super .ps-row { flex: none; min-height: 0; padding-top: clamp(10px, 2.4vh, 22px); padding-bottom: clamp(14px, 2.6vh, 22px); }
.app-mode .super .ps-tile { width: clamp(40px, 6vh, 50px); }
.app-mode .super .ps-glass { width: clamp(40px, 6vh, 50px); height: clamp(40px, 6vh, 50px); }
.app-mode .super .ps-tile.on { width: clamp(64px, 11vh, 92px); }
.app-mode .super .ps-tile.on .ps-glass { width: clamp(64px, 11vh, 92px); height: clamp(64px, 11vh, 92px); }
/* hero sits right under the icons and grows to fill the middle */
.app-mode .super .ps-hero { flex: 1 1 auto; min-height: 0; justify-content: flex-start; padding: clamp(6px, 1.6vh, 16px) 20px 0; }
.app-mode .super .ps-title { font-size: clamp(34px, 6.4vh, 54px); margin: 6px 0 clamp(6px, 1.4vh, 12px); }
.app-mode .super .ps-desc { font-size: clamp(14px, 2.1vh, 17px); margin-bottom: clamp(12px, 2.6vh, 24px); max-width: 30ch; }
.app-mode .super .ps-btn, .app-mode .super .ps-city { min-height: clamp(48px, 7vh, 58px); }
.app-mode .super .ps-btn { font-size: clamp(15px, 2.2vh, 18px); min-width: 180px; }
/* activity: compact 2x2 at the bottom, image left + text right, nothing clipped */
.app-mode .super .ps-h { flex: none; margin: 0 20px 10px; }
.app-mode .super .ps-acts { flex: none; gap: 10px; padding: 0 16px; }
.app-mode .super .ps-card { flex-direction: row; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; min-height: 0; }
.app-mode .super .ps-card-art { flex: none; width: clamp(40px, 6.4vh, 52px); height: clamp(40px, 6.4vh, 52px); aspect-ratio: auto; margin: 0; border-radius: 12px; }
.app-mode .super .ps-card > b, .app-mode .super .ps-card > small { padding: 0; }
.app-mode .super .ps-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; }
.app-mode .super .ps-card-art { grid-row: 1 / span 2; }
.app-mode .super .ps-card b { font-size: 13px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; align-self: end; }
.app-mode .super .ps-card small { font-size: 11.5px; align-self: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-mode .super .ps-art { height: 100%; top: -70px; }
/* very short screens: drop the description so everything still fits */
/* hero keeps its natural size; the activity block sits at the bottom; JS (fit) removes extras if space runs out */
.app-mode .super .ps-hero { flex: 0 0 auto; }
.app-mode .super .ps-h { margin-top: auto; padding-top: 12px; }
.app-mode .super.fit-1 .ps-card:nth-child(n+3) { display: none; }
.app-mode .super.fit-2 .ps-desc { display: none; }
.app-mode .super.fit-3 .ps-h, .app-mode .super.fit-3 .ps-acts { display: none; }
.app-mode .super .ps-card small { white-space: normal; }

/* =====================================================================
   2026 layer (app layout + login): line icons, soft mesh glows, modern sans
   titles, flat buttons, hairline surfaces. Four palettes via data-pal.
   ===================================================================== */
:root.app-mode, :root.locked .gate {
  --bg: #0d0907; --bg-2: #1a120e; --surface: rgba(255, 255, 255, .06); --surface-2: rgba(255, 255, 255, .1);
  --text: #fff6ef; --muted: rgba(255, 246, 239, .62); --line: rgba(255, 255, 255, .1);
  --accent: #ffb385; --on-accent: #1a0f0a; --primary: #fff6ef; --on-primary: #140d0a;
  --soft: #0d0907; --sat: 100%; --glow: .55;
  --mesh-1: #ff8a5c; --mesh-2: #ff6f91; --mesh-3: #ffc46b;
}
/* B. Mocha Mist: soft dark, dusty pastels */
:root.app-mode[data-pal="mist"], :root[data-pal="mist"] .gate {
  --bg: #2a2320; --bg-2: #352c28; --surface: rgba(255, 244, 236, .07); --surface-2: rgba(255, 244, 236, .11);
  --text: #f3e9e2; --muted: rgba(243, 233, 226, .62); --line: rgba(255, 244, 236, .1);
  --accent: #e8b9a0; --on-accent: #2a2320; --primary: #f3e9e2; --on-primary: #2a2320;
  --soft: #c9b8ae; --sat: 55%; --glow: .35; --mesh-1: #c98f7a; --mesh-2: #b98a9a; --mesh-3: #c9ae86;
}
/* C. Latte: light cream, mocha text, soft pastels */
:root.app-mode[data-pal="latte"], :root[data-pal="latte"] .gate {
  --bg: #f6efe8; --bg-2: #efe4da; --surface: rgba(255, 255, 255, .7); --surface-2: #fff;
  --text: #3a2a22; --muted: rgba(58, 42, 34, .6); --line: rgba(58, 42, 34, .1);
  --accent: #b86b4b; --on-accent: #fff; --primary: #3a2a22; --on-primary: #f6efe8;
  --soft: #f6efe8; --sat: 62%; --glow: .45; --mesh-1: #f4b79a; --mesh-2: #f2b6c3; --mesh-3: #f3d6a1; color-scheme: light;
}
/* D. Blush Sand: light pastel pink + sand */
:root.app-mode[data-pal="blush"], :root[data-pal="blush"] .gate {
  --bg: #fbeee9; --bg-2: #f7e1da; --surface: rgba(255, 255, 255, .72); --surface-2: #fff;
  --text: #4a2c2a; --muted: rgba(74, 44, 42, .6); --line: rgba(74, 44, 42, .09);
  --accent: #e46f6f; --on-accent: #fff; --primary: #e46f6f; --on-primary: #fff;
  --soft: #fbeee9; --sat: 70%; --glow: .5; --mesh-1: #f7a8a0; --mesh-2: #f5c2cf; --mesh-3: #f6d8b8; color-scheme: light;
}
:root.app-mode { background: var(--bg); }
.app-mode body { color: var(--text); }
.app-mode body::before, .gate { background:
  radial-gradient(70% 45% at 10% 0%, color-mix(in oklab, var(--mesh-1) calc(var(--glow) * 60%), transparent), transparent 70%),
  radial-gradient(60% 40% at 100% 30%, color-mix(in oklab, var(--mesh-2) calc(var(--glow) * 45%), transparent), transparent 70%),
  radial-gradient(70% 50% at 40% 100%, color-mix(in oklab, var(--mesh-3) calc(var(--glow) * 40%), transparent), transparent 70%),
  var(--bg); }
.app-mode .nav { background: var(--bg); border-bottom-color: var(--line); }
.app-mode h1, .app-mode h2, .app-mode h3, .app-mode .sa-h { font-family: var(--sans); font-weight: 650; letter-spacing: -.03em; color: var(--text); }
.app-mode .section-head h2, .app-mode .page-hero h1, .app-mode .article h1 { font-weight: 650; }
.app-mode .eyebrow { color: var(--accent); letter-spacing: .12em; }
.app-mode :is(.card, .map-card, .post, .steps li, .ig-btn, .idea-card, .member, .ps-card, .sa-studio, .sa-game, .sa-search) { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.app-mode .pill-solid { background: var(--primary); color: var(--on-primary); }
.app-mode .pill-outline { border-color: var(--line); color: var(--text); }
.app-mode .card-link, .app-mode .num { color: var(--accent); }

/* tile colours softened per palette */
.app-mode { --tile: color-mix(in oklab, var(--c, #ff8a5c) var(--sat), var(--soft)); }

/* home launcher, 2026 */
.app-mode .ps-art { top: -70px; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.app-mode .ps-bg { background: none; }
.app-mode .ps-bg::after { display: none; }
.app-mode .ps-bg i { position: absolute; border-radius: 50%; display: block; }
.app-mode .ps-bg .m1 { width: 90%; aspect-ratio: 1; left: 30%; top: -18%; background: radial-gradient(closest-side, color-mix(in oklab, color-mix(in oklab, var(--c) var(--sat), var(--soft)) calc(var(--glow) * 120%), transparent), transparent); }
.app-mode .ps-bg .m2 { width: 70%; aspect-ratio: 1; left: -20%; top: 10%; background: radial-gradient(closest-side, color-mix(in oklab, var(--mesh-2) calc(var(--glow) * 60%), transparent), transparent); }
.app-mode .ps-bg .m3 { width: 60%; aspect-ratio: 1; left: 55%; top: 35%; background: radial-gradient(closest-side, color-mix(in oklab, var(--mesh-3) calc(var(--glow) * 50%), transparent), transparent); }
.app-mode .ps-bg.show .m1 { animation: drift 12s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-6%, 4%) scale(1.06); } }
.app-mode .ps-cats { gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.app-mode .ps-cats button { padding: 7px 16px; border-radius: 999px; font: 600 14px var(--sans); color: var(--muted); transition: background .3s, color .3s; }
.app-mode .ps-cats button::after { display: none; }
.app-mode .ps-cats button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.app-mode .ps-tool { background: var(--surface); border-color: var(--line); color: var(--text); }
.app-mode .ps-time { color: var(--text); }
/* tiles: line icons only */
.app-mode .ps-glass svg { filter: none; color: var(--tile); stroke-width: 1.6; }
.app-mode .ps-glass svg path, .app-mode .ps-glass svg * { fill: none !important; stroke: currentColor !important; paint-order: normal; }
.app-mode .ps-tile.on .ps-glass svg { color: var(--text); stroke-width: 1.5; }
.app-mode .ps-tile.on::after { background: var(--tile); box-shadow: none; width: 18px; }
.app-mode .ps-tile.n1 { filter: blur(1.2px); opacity: .5; }
.app-mode .ps-tile.n2 { filter: blur(2.4px); opacity: .25; }
/* hero type */
.app-mode .ps-eyebrow { color: var(--tile); letter-spacing: .1em; font-weight: 650; }
.app-mode .ps-title { font-family: var(--sans); font-weight: 650; letter-spacing: -.035em; line-height: 1.02; }
.app-mode .ps-desc { color: var(--muted); }
.app-mode .ps-btn { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.app-mode .ps-city { background: var(--surface); border-color: var(--line); color: var(--text); }
.app-mode .ps-h { color: var(--muted); font-weight: 600; letter-spacing: 0; }
/* activity cards: flat, line icon on a soft tint */
.app-mode .ps-card-glyph { background: color-mix(in oklab, var(--c) calc(var(--sat) * .28), var(--surface-2)); color: color-mix(in oklab, var(--c) var(--sat), var(--text)); }
.app-mode .ps-card-glyph svg { width: 50%; }
.app-mode .ps-card-glyph svg * { fill: none !important; stroke: currentColor !important; }
.app-mode .sa-results, .app-mode .sa-city-menu { background: var(--bg-2); border-color: var(--line); }
.app-mode .sa-results .sa-ic { background: color-mix(in oklab, var(--c) 25%, var(--surface-2)); border: 0; box-shadow: none; color: color-mix(in oklab, var(--c) var(--sat), var(--text)); }
.app-mode .sa-results .sa-ic::before, .app-mode .sa-results .sa-ic::after { display: none; }
.app-mode .sa-results .sa-ic svg * { fill: none !important; stroke: currentColor !important; }
/* booking button: flat capsule */
.tabbar.only-book .tb-book-main { background: var(--primary); color: var(--on-primary); border: 0; box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .55); }
.tabbar a.tb-book-main, .tabbar a.tb-book-main b { color: var(--on-primary); }
.tabbar.only-book .tb-roll { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.tb-roll-track b { font-family: var(--sans); font-style: normal; font-weight: 650; font-size: 18px; letter-spacing: -.02em; }
/* logo: flat monogram */
.app-mode .logo-mark, .gate .logo-mark { background: var(--primary); border: 0; box-shadow: none; }
.app-mode .logo-mark::before, .gate .logo-mark::before { display: none; }
.app-mode .logo-mark::after, .gate .logo-mark::after { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--on-primary); filter: none; font: 700 18px/1 var(--sans); font-style: normal; }
.app-mode .logo-word, .gate .logo-word { color: var(--text); font-weight: 600; }
/* login, 2026 */
.gate .clk { font-family: var(--sans); font-weight: 500; letter-spacing: -.05em; text-shadow: none; color: var(--text); }
.gate .colon { color: var(--accent); }
.gate h1 { font-family: var(--sans); font-weight: 650; letter-spacing: -.03em; color: var(--text); }
.gate h1 em { font-style: normal; color: var(--accent); }
.gate input { background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: none; }
.gate .pill-solid { background: var(--primary) !important; color: var(--on-primary) !important; }
.gate .muted, .gate-date, .gate label { color: var(--muted); }
.app-mode .ps-glass svg * { stroke-width: 1.6 !important; }
.app-mode .ps-tile.on .ps-glass svg * { stroke-width: 1.4 !important; }

.app-only-block { display: none; }
.app-mode .app-only-block { display: block; }
.pal-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pal-picker button { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 14px var(--sans); cursor: pointer; text-align: left; min-height: 60px; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s; }
.pal-picker button:active { transform: scale(.96); }
.pal-picker button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--accent); }
.pal-picker .sw { flex: none; width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--a) 0 50%, var(--b) 50% 80%, var(--c) 80% 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
/* light palettes: keep the PS5 focus ring visible on light backgrounds */
:root[data-pal="latte"], :root[data-pal="blush"] { --ps-ring: 0 0 0 2px var(--accent), 0 0 0 5px color-mix(in oklab, var(--accent) 22%, transparent); }

/* Login polaroid clock */
.gate-clock { display: grid; place-items: center; margin-top: 4px; }
@media (max-height: 800px) { .gate-inner { gap: 20px; } }
@media (max-height: 820px) { .gate-inner { gap: 14px; padding-top: calc(14px + env(safe-area-inset-top)); padding-bottom: calc(18px + env(safe-area-inset-bottom)); } .gate .muted { display: none; } .gate form { gap: 10px; } }
@media (max-height: 600px) { .gate-inner { gap: 10px; } .gate h1 { font-size: 20px; } .gate input, .gate .big-btn { min-height: 44px; } }

/* Login clock modes: Kalimat <-> Polaroid every 5 minutes, crossfading in the same spot */
.gate-clock { display: grid; place-items: center; }
.gate-clock > * { grid-area: 1 / 1; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.gkal { width: 100%; text-align: left; align-self: center; }
.gkal p { margin: 0; font: 650 clamp(28px, 8.4vw, 38px)/1.08 var(--sans); letter-spacing: -.035em; color: var(--text); }
.gkal p span { display: inline-block; }
.gkal p .num { color: var(--accent); }
.gkal p.rise span { animation: kal-rise .6s cubic-bezier(.34, 1.56, .64, 1) calc(var(--k) * 70ms) both; }
@keyframes kal-rise { from { opacity: 0; transform: translateY(10px); } }
.gkal small { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; letter-spacing: .02em; }
@media (max-height: 700px) { .gkal p { font-size: clamp(22px, 7vw, 28px); } .gkal small { margin-top: 6px; font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) { .gate-clock > *, .gkal p.rise span { transition: none; animation: none !important; } }
.gkal p .num { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.04em; letter-spacing: -.02em; color: var(--accent); }
@media (max-height: 920px) { .gate-inner { gap: 14px; } .gate .muted { display: none; } .gate form { gap: 10px; } .gkal p { font-size: clamp(26px, 7.6vw, 34px); } }
@media (max-height: 600px) { .gate-inner { gap: 10px; } .gkal p { font-size: 22px; } }

/* the icon row is a touch target across its full width (empty space = "next") */
.app-mode .ps-row { touch-action: pan-y; cursor: pointer; -webkit-user-select: none; user-select: none; }

/* Rotating multilingual greeting (login) */
.hello-tag { margin: 0 0 6px; font: 600 11.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gate h1.hello { min-height: 2.2em; margin: 0; }
.gate h1.hello .h1l, .gate h1.hello .h2l { display: inline-block; }
.gate h1.hello.dict .h1l { font-family: var(--display); font-style: italic; font-weight: 500; color: var(--accent); letter-spacing: -.02em; }
.gate h1.hello.dict .h2l { font-size: .52em; line-height: 1.3; font-weight: 500; color: var(--muted); margin-top: 4px; letter-spacing: -.01em; }
.swap { animation: hello-in .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes hello-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .swap { animation: none; } }

.hello-tag { display: flex; align-items: center; gap: 8px; }
.hello-tag .lc { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font: 700 10.5px var(--sans); letter-spacing: .08em; }
/* sbctv. badge replaces the "S" monogram */
.logo-mark, .app-mode .logo-mark, .gate .logo-mark { width: 44px; height: 44px; padding: 0; border: 0; background: url(icons/sbctv-128.png) center / cover no-repeat; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45); color: transparent; font-size: 0; }
.logo-mark::before, .logo-mark::after, .app-mode .logo-mark::after, .gate .logo-mark::after { display: none !important; content: none; }
.gate .logo .logo-mark { width: 52px; height: 52px; }
.gate h1.hello.dict .h1l { font-size: .82em; }
.hello-tag { margin: 0 0 2px; line-height: 18px; }
.hello-tag .lc { height: 18px; min-width: 28px; font-size: 10px; }
.gate h1.hello { min-height: 2.12em; }
@media (max-height: 920px) { .gate-inner { gap: 12px; } }
@media (max-height: 600px) { .gate-inner { gap: 8px; } }

.hello-tag .crest { flex: none; width: 20px; height: 22px; filter: drop-shadow(0 2px 3px rgba(58, 42, 34, .25)); }
.hello-tag { gap: 9px; }
.hello-tag .crest { filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .28)); }

/* ===== Greeting transition: letters out -> crest coin-flip -> letters in, second line ink-wipe (no blur) ===== */
.gate h1.hello .wd { display: inline-block; white-space: nowrap; }
.gate h1.hello .ch { display: inline-block; will-change: transform, opacity; }
.gate h1.hello.in .ch { animation: ch-in .75s cubic-bezier(.2, .9, .25, 1) both; animation-delay: calc(var(--i) * 26ms); }
@keyframes ch-in { 0% { opacity: 0; transform: translateY(.5em) rotate(6deg); } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.gate h1.hello.out .ch { animation: ch-out .3s cubic-bezier(.5, 0, .75, 0) both; animation-delay: calc(var(--i) * 12ms); }
@keyframes ch-out { to { opacity: 0; transform: translateY(-.35em) rotate(-3deg); } }
.gate h1.hello.in .h2l { animation: ink-wipe 1s cubic-bezier(.65, 0, .25, 1) .22s both; }
@keyframes ink-wipe { from { clip-path: inset(-.4em 100% -.4em -.2em); opacity: .2; } to { clip-path: inset(-.4em -.4em -.4em -.2em); opacity: 1; } }
.gate h1.hello.out .h2l { animation: line-out .28s ease-in both; }
@keyframes line-out { to { opacity: 0; transform: translateY(-4px); } }
.hello-tag { perspective: 300px; }
.hello-tag.in .crest { animation: coin-in .7s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes coin-in { from { transform: rotateY(-90deg) scale(.9); } to { transform: none; } }
.hello-tag.out .crest { animation: coin-out .26s ease-in both; }
@keyframes coin-out { to { transform: rotateY(90deg) scale(.9); } }
.hello-tag.in .tg { animation: tag-in .6s cubic-bezier(.2, .8, .2, 1) .08s both; display: inline-block; }
@keyframes tag-in { from { opacity: 0; transform: translateX(-10px); letter-spacing: .3em; } }
.hello-tag.out .tg { animation: line-out .24s ease-in both; display: inline-block; }
.gate h1.hello.swap, .hello-tag.swap { animation: none; }
@media (prefers-reduced-motion: reduce) { .gate h1.hello .ch, .gate h1.hello .h2l, .hello-tag .crest, .hello-tag .tg { animation: none !important; } }
.hello-tag .crest { filter: drop-shadow(0 3px 6px rgba(58, 42, 34, .14)); }
.hello-tag .crest { width: 20px; height: 20px; color: var(--text); opacity: .72; filter: none; }

/* ---------- Opening splash and logout outro (js/intro.js) ---------- */
@property --iris { syntax: '<length>'; inherits: false; initial-value: 0px; }
html.intro-pending { background: #f6efe8; }
html.intro-pending[data-pal="espresso"], html.intro-pending[data-pal="mist"] { background: #1a120e; }
html.intro-pending body { visibility: hidden; animation: intro-failsafe 0s 3s forwards; }
@keyframes intro-failsafe { to { visibility: visible; } }
.intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden;
  background: var(--bg); color: var(--text); --iris: 0px;
  -webkit-mask: radial-gradient(circle at 50% 46%, transparent var(--iris), #000 calc(var(--iris) + 1px));
          mask: radial-gradient(circle at 50% 46%, transparent var(--iris), #000 calc(var(--iris) + 1px)); }
.intro-glow { position: absolute; inset: -20%; opacity: .55;
  background: radial-gradient(40% 30% at 30% 30%, var(--mesh-1, #f4b79a), transparent 70%),
              radial-gradient(40% 30% at 72% 62%, var(--mesh-2, #f2b6c3), transparent 70%),
              radial-gradient(35% 25% at 40% 80%, var(--mesh-3, #f3d6a1), transparent 70%);
  animation: intro-drift 2.4s ease-out both; }
@keyframes intro-drift { from { transform: rotate(-8deg) scale(1.15); opacity: 0; } to { transform: none; opacity: .55; } }
.intro-mid { position: relative; display: grid; justify-items: center; gap: 14px; margin-top: -8vh; }
.intro-badge { width: 92px; height: 92px; border-radius: 50%; background: url(icons/sbctv.png) center / cover no-repeat;
  box-shadow: 0 18px 40px -16px rgba(58, 42, 34, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
  animation: intro-pop .9s cubic-bezier(.34, 1.56, .64, 1) .1s both; }
@keyframes intro-pop { 0% { transform: scale(.3) rotate(-120deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.intro-ring { position: absolute; top: 46px; left: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  border: 1.5px solid var(--accent); opacity: 0; animation: intro-ring 1.3s cubic-bezier(.2, .7, .2, 1) .45s both; }
.intro-ring.r2 { animation-delay: .7s; }
@keyframes intro-ring { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
.intro-word { display: flex; gap: .42em; font: 600 15px/1 var(--body, 'Instrument Sans', sans-serif); letter-spacing: 0; margin-top: 6px; }
.intro-word i { font-style: normal; display: inline-block; animation: intro-rise .7s cubic-bezier(.2, .8, .2, 1) calc(.5s + var(--i) * 55ms) both; }
@keyframes intro-rise { from { transform: translateY(14px) rotateX(70deg); opacity: 0; } to { transform: none; opacity: 1; } }
.intro-tag { font: italic 400 15px/1.3 var(--display, Fraunces, serif); color: var(--muted); animation: intro-fade .8s ease 1.1s both; }
@keyframes intro-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.intro-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
/* open: shutter flash, then the lens iris opens from the badge */
.intro.open { animation: intro-iris-open .85s cubic-bezier(.7, 0, .2, 1) forwards; }
.intro.open .intro-flash { animation: intro-flash .45s ease-out; }
.intro.open .intro-mid { animation: intro-away .6s cubic-bezier(.7, 0, .2, 1) forwards; }
@keyframes intro-iris-open { from { --iris: 0px; } to { --iris: 150vmax; } }
@keyframes intro-flash { 0% { opacity: 0; } 15% { opacity: .85; } 100% { opacity: 0; } }
@keyframes intro-away { to { transform: scale(1.35); opacity: 0; } }
html.intro-on body > *:not(.intro) { visibility: hidden; }
html.intro-reveal body > *:not(.intro) { animation: intro-under .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes intro-under { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
/* logout: the iris closes onto the badge, "Sampai jumpa lagi" */
.intro-out { --iris: 150vmax; }
.intro-out.close { animation: intro-iris-close .75s cubic-bezier(.7, 0, .3, 1) forwards; }
@keyframes intro-iris-close { from { --iris: 150vmax; } to { --iris: 0px; } }
.intro-out .intro-badge { animation-delay: .45s; }
.intro-out .intro-ring { animation-delay: .8s; } .intro-out .intro-ring.r2 { animation-delay: 1s; }
.intro-out .intro-word i { animation-delay: calc(.6s + var(--i) * 40ms); }
.intro-out .intro-tag { animation-delay: .85s; }
html.intro-bye body > *:not(.intro) { animation: intro-bye .75s cubic-bezier(.7, 0, .3, 1) forwards; }
@keyframes intro-bye { to { transform: scale(.94); opacity: .3; } }

/* Logout on the home screen: first tap asks, second tap logs out */
.ps-out { width: auto; min-width: 38px; padding: 0 10px; border-radius: 19px; gap: 6px; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ps-spring), background .25s, color .25s, padding .3s var(--ps-spring); }
.ps-out span { max-width: 0; overflow: hidden; white-space: nowrap; font: 600 13px/1 var(--body, 'Instrument Sans', sans-serif); transition: max-width .35s var(--ps-spring); }
.ps-out.ask { background: var(--accent); color: var(--on-accent, #fff); border-color: transparent; padding: 0 14px 0 12px; }
.ps-out.ask span { max-width: 80px; }
.ps-out.ask svg { animation: out-nudge .9s ease-in-out infinite; }
@keyframes out-nudge { 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .ps-out.ask svg { animation: none; } }

/* Polaroid seconds counter */

/* ---------- Login Lensa clock (replaces the Polaroid; alternates with Kalimat every 5 minutes) ---------- */
.gate-clock[data-mode="kal"] .glens, .gate-clock[data-mode="lens"] .gkal { opacity: 0; transform: scale(.94); pointer-events: none; }
.glens { display: grid; justify-items: center; gap: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.glens-dial { position: relative; width: min(46vw, 190px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 22px 40px -20px rgba(58, 42, 34, .6), 0 0 0 1px rgba(58, 42, 34, .08); }
.glens-dial svg { display: block; width: 100%; height: 100%; }
.glens-dial text { font-family: var(--sans); }
.glens-rot { transform-origin: 100px 100px; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.glens-glass { transform-origin: 100px 100px; }
.glens-time { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; pointer-events: none; color: #fbefe4; }
.glens-time b { font: 650 clamp(22px, 7.4vw, 31px)/1 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.glens-time i { font: 600 11px/1 var(--sans); font-style: normal; letter-spacing: .14em; opacity: .75; font-variant-numeric: tabular-nums; }
.glens-time i.tk { animation: lens-tk .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes lens-tk { from { transform: translateY(5px); opacity: 0; } }
.glens-cap { margin: 0; font: italic 400 15px/1.2 var(--display); color: var(--muted); }
/* mode switch: the lens arrives like a lens being mounted — a quarter turn on the bayonet, the aperture opens,
   then the time appears */
.glens.focus .glens-dial { animation: lens-mount .95s cubic-bezier(.34, 1.4, .64, 1) both; }
.glens.focus .glens-glass { animation: lens-aperture 1.1s cubic-bezier(.2, .8, .2, 1) .15s both; }
.glens.focus .glens-time { animation: intro-fade .6s ease .55s both; }
.glens.focus .glens-cap { animation: intro-fade .6s ease .7s both; }
@keyframes lens-mount { from { transform: rotate(-90deg) scale(.82); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes lens-aperture { from { transform: scale(.15); } to { transform: none; } }
/* tap: rack focus, the barrel twists and the glass breathes */
.glens.rack .glens-dial { animation: lens-rack .9s cubic-bezier(.34, 1.56, .64, 1); }
.glens.rack .glens-glass { animation: lens-breathe .9s ease; }
@keyframes lens-rack { 35% { transform: rotate(-28deg) scale(.97); } }
@keyframes lens-breathe { 35% { transform: scale(.7); } }
/* Kalimat leaving/arriving: words already rise in one by one; the outgoing view slides down a little */
.gate-clock[data-mode="lens"] .gkal { transform: translateY(8px) scale(.97); }
@media (max-height: 800px) { .glens-dial { width: min(40vw, 160px); } .glens { gap: 7px; } .glens-cap { font-size: 13px; } }
@media (max-height: 700px) { .glens-dial { width: min(38vw, 148px); } .glens-time b { font-size: 24px; } }
@media (max-height: 600px) { .glens { gap: 4px; } .glens-dial { width: 106px; } .glens-time b { font-size: 20px; } .glens-time i { font-size: 9.5px; } .glens-cap { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .glens-rot { transition: none; } .glens *, .glens { animation: none !important; } }

/* Login greeting ("quotes") centred */
.gate .hello-tag { justify-content: center; }
.gate h1.hello { text-align: center; }

/* Kalimat minute change: only the words that changed swap; the rest of the sentence stays still */
.gkal p span.leave { animation: kal-leave .36s cubic-bezier(.5, 0, .75, 0) calc(var(--k) * 40ms) both; }
.gkal p span.enter { animation: kal-enter .9s cubic-bezier(.2, .8, .2, 1) calc(var(--k) * 90ms) both; }
@keyframes kal-leave { to { opacity: 0; transform: translateY(-.28em); letter-spacing: .02em; } }
@keyframes kal-enter { 0% { opacity: 0; transform: translateY(.32em); letter-spacing: .06em; } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gkal p span.leave, .gkal p span.enter { animation: none; } }

/* No blue tap flash on Android: taps already have their own press animations.
   Keyboard focus still shows a ring (:focus-visible). */
html, * { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }

/* sbctv. badge next to the Swassana wordmark on the website (nav and footer); the app logo has its own */
.brand:not([data-logo]) { display: inline-flex; align-items: center; gap: .42em; }
.brand:not([data-logo])::before { content: ""; flex: none; width: 1.7em; height: 1.7em; border-radius: 50%;
  background: url(icons/sbctv-128.png) center / cover no-repeat; box-shadow: 0 3px 8px -3px rgba(58, 42, 34, .45); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
a.brand:not([data-logo]):hover::before { transform: rotate(-12deg) scale(1.06); }

/* The greeting sits in the middle of the free space between the clock and the form,
   and its lines wrap evenly (no single character left alone on the last line) */
.gate .gate-hello { margin-block: auto; padding-block: 8px; }
.gate .gate-hello ~ form { margin-top: 0; }
.gate h1.hello .h1l, .gate h1.hello .h2l { text-wrap: balance; max-width: 100%; }
.gate h1.hello:not(.dict):lang(ja) .h2l { font-size: .84em; }
@media (max-height: 700px) { .gate .gate-hello { padding-block: 0; } }


/* Login: double tap the quote for the next one (no zoom on double tap) */
.gate .gate-hello { touch-action: manipulation; cursor: pointer; -webkit-user-select: none; user-select: none; }

/* the meaning / second line wraps inside the screen width instead of running past it */
.gate h1.hello .h2l { display: block; }

/* ===== Login v2: one hero (the clock), one action (Masuk), games as a quiet invitation below ===== */
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gate .gate-inner { gap: 16px; }
/* quiet header */
.gate .logo { padding-block: 0; }
.gate .logo .logo-mark { width: 34px; height: 34px; box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .4); }
.gate .logo .logo-word i { font-size: 12.5px; }
/* clock: the one hero, calmer */
.glens-dial { width: min(40vw, 152px); }
.glens-time b { font-size: clamp(20px, 6.2vw, 26px); }
.glens { gap: 8px; }
.glens-cap { font-size: 13px; }
.gate .gkal { text-align: center; }
.gate .gkal p { font-size: clamp(24px, 7vw, 30px); text-wrap: balance; }
.gate .gkal small { margin-top: 8px; font-size: 13px; }
/* greeting: a supporting line */
.gate .hello-tag { font-size: 10.5px; margin-bottom: 4px; opacity: .85; }
.gate .hello-tag .crest { width: 16px; height: 16px; }
.gate h1.hello { font-size: clamp(22px, 6.4vw, 26px); line-height: 1.15; min-height: 0; }
.gate h1.hello .h2l { font-size: .8em; }
.gate h1.hello.dict .h1l { font-size: 1.15em; }
.gate h1.hello.dict .h2l { font-size: .6em; margin-top: 4px; }
.gate h1.hello:not(.dict):lang(ja) .h2l { font-size: .72em; }
/* form: no repeated labels, normal spacing */
.gate form { gap: 10px; }
.gate form label { gap: 0; }
.gate form input { font-size: 16px; letter-spacing: .02em; min-height: 52px; padding-block: 12px; }
.gate form input::placeholder { color: var(--muted); opacity: .8; letter-spacing: .02em; }
.gate .big-btn { min-height: 52px; }
/* games: "Belum mau masuk? Main dulu" + six round icon buttons */
.gate-play { display: grid; justify-items: center; gap: 10px; margin-top: 2px; }
.gate-play p { margin: 0; font: 500 13px/1 var(--sans); color: var(--muted); }
.gate-play p span { color: var(--accent); font-weight: 600; }
.gate-play p { white-space: nowrap; transition: opacity .22s ease, transform .22s ease; }
.gate-play p.fade { opacity: 0; transform: translateY(3px); }
.gate-play p.hint { color: var(--text); }
.gate-play div { display: flex; gap: 10px; }
.gate-play a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--accent);
  background: color-mix(in oklab, var(--surface, #fff) 70%, transparent); border: 1px solid var(--line); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), background .2s; }
.gate-play a:active { transform: scale(.88); background: color-mix(in oklab, var(--accent) 14%, transparent); }
.gate-play svg { width: 19px; height: 19px; }
.gate-play .nudge a { animation: play-nudge .7s ease-in-out both; }
.gate-play .nudge a:nth-child(2) { animation-delay: .06s; } .gate-play .nudge a:nth-child(3) { animation-delay: .12s; }
.gate-play .nudge a:nth-child(4) { animation-delay: .18s; } .gate-play .nudge a:nth-child(5) { animation-delay: .24s; } .gate-play .nudge a:nth-child(6) { animation-delay: .3s; }
@keyframes play-nudge { 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .gate-play .nudge a { animation: none; } }
/* shorter phones */
@media (max-height: 820px) {
  .gate .gate-inner { gap: 12px; }
  .glens-dial { width: 136px; }
  .gate form input, .gate .big-btn { min-height: 48px; }
  .gate-play a { width: 38px; height: 38px; }
  .gate-play { gap: 8px; }
}
@media (max-height: 700px) { .glens-dial { width: 118px; } .gate .gkal p { font-size: 22px; } .gate h1.hello { font-size: 20px; } }
@media (max-height: 600px) {
  .gate .gate-inner { gap: 8px; }
  .glens-dial { width: 96px; } .glens-time b { font-size: 17px; } .glens-cap { font-size: 11.5px; }
  .gate .gkal p { font-size: 20px; } .gate h1.hello { font-size: 18px; }
  .gate form input, .gate .big-btn { min-height: 44px; }
  .gate-play p { font-size: 12px; } .gate-play a { width: 34px; height: 34px; } .gate-play svg { width: 16px; height: 16px; }
}

/* Lensa colours: soft latte ceramic by default (cream barrel, taupe marks, peach glass);
   the dark palettes get a muted mocha version. */
.glens { --gl-body: #efe3d6; --gl-ring: #e4d3c3; --gl-tick: #8c7264; --gl-num: #8c7264; --gl-mark: #c98a6c;
  --gl-g1: #fde9dc; --gl-g2: #efc2a6; --gl-g3: #d79c7e; --gl-shine: #fff; --gl-time: #fff; }
:root[data-pal="blush"] .glens { --gl-body: #f6e4df; --gl-ring: #efd3cc; --gl-tick: #9a6f6a; --gl-num: #9a6f6a; --gl-mark: #e46f6f;
  --gl-g1: #fde6e3; --gl-g2: #f4bdb6; --gl-g3: #df8f88; }
:root[data-pal="espresso"] .glens, :root[data-pal="mist"] .glens { --gl-body: #4a3a33; --gl-ring: #574640; --gl-tick: #e9d8ca; --gl-num: #e9d8ca; --gl-mark: #e9c19d;
  --gl-g1: #f1c9ae; --gl-g2: #c99278; --gl-g3: #8a6352; }
.glens .gl-body { fill: var(--gl-body); }
.glens .gl-ring { fill: var(--gl-ring); }
.glens .gl-tick { stroke: var(--gl-tick); opacity: .45; }
.glens .gl-tick.big { opacity: .85; }
.glens .gl-num { fill: var(--gl-num); opacity: .8; }
.glens .gl-mark { fill: var(--gl-mark); }
.glens .gl-shine { fill: var(--gl-shine); opacity: .35; }
.glens .gl-g1 { stop-color: var(--gl-g1); } .glens .gl-g2 { stop-color: var(--gl-g2); } .glens .gl-g3 { stop-color: var(--gl-g3); }
.glens-dial { box-shadow: 0 16px 34px -20px rgba(58, 42, 34, .45), 0 0 0 1px rgba(58, 42, 34, .07), inset 0 1px 0 rgba(255, 255, 255, .6); }
.glens-time { color: var(--gl-time); text-shadow: 0 1px 6px rgba(120, 70, 45, .35); }
/* light lens: warm brown digits on the peach glass (white was too low-contrast) */
.glens { --gl-time: #4a2e24; }
:root[data-pal="espresso"] .glens, :root[data-pal="mist"] .glens { --gl-time: #fff; }
.glens-time { text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
:root[data-pal="espresso"] .glens-time, :root[data-pal="mist"] .glens-time { text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.glens-time i { opacity: .7; }

/* ===== Lensa by time of day: the glass takes the light of the hour =====
   dawn: pale gold · day: latte peach · golden hour: amber rose · dusk: lavender · night: mocha barrel, indigo glass, stars */
.gate .glens[data-phase="dawn"]   { --gl-body: #f3e8d8; --gl-ring: #eadbc5; --gl-tick: #937a5c; --gl-num: #937a5c; --gl-mark: #d9a35c;
  --gl-g1: #fff3dc; --gl-g2: #f6d7a4; --gl-g3: #e2ad6e; --gl-time: #4d3420; }
.gate .glens[data-phase="day"]    { --gl-body: #efe3d6; --gl-ring: #e4d3c3; --gl-tick: #8c7264; --gl-num: #8c7264; --gl-mark: #c98a6c;
  --gl-g1: #fde9dc; --gl-g2: #efc2a6; --gl-g3: #d79c7e; --gl-time: #4a2e24; }
.gate .glens[data-phase="golden"] { --gl-body: #f1e1d3; --gl-ring: #e9cfbd; --gl-tick: #93664f; --gl-num: #93664f; --gl-mark: #e07a4f;
  --gl-g1: #ffe2c9; --gl-g2: #f4ad84; --gl-g3: #d9775d; --gl-time: #4a2418; }
.gate .glens[data-phase="dusk"]   { --gl-body: #ebe3e6; --gl-ring: #ddd0d9; --gl-tick: #7d6a7d; --gl-num: #7d6a7d; --gl-mark: #b98bb0;
  --gl-g1: #f5e3ee; --gl-g2: #cdb3d6; --gl-g3: #8f7bb0; --gl-time: #3b2c45; }
.gate .glens[data-phase="night"]  { --gl-body: #4b3d38; --gl-ring: #594a45; --gl-tick: #eadfd4; --gl-num: #eadfd4; --gl-mark: #e9c19d;
  --gl-g1: #a9a6d6; --gl-g2: #5f5a93; --gl-g3: #2c2a4a; --gl-time: #fbf6ee; }
.gate .glens[data-phase="night"] .glens-time { text-shadow: 0 1px 8px rgba(20, 18, 50, .6); }
.gate .glens[data-phase="night"] .gl-shine { opacity: .14; }
.gate .glens[data-phase="night"] .glens-dial { box-shadow: 0 18px 36px -18px rgba(30, 22, 40, .55), 0 0 0 1px rgba(58, 42, 34, .15); }
/* colours drift instead of jumping when the hour changes */
.glens .gl-body, .glens .gl-ring, .glens .gl-mark { transition: fill 2s ease; }
.glens .gl-tick { transition: stroke 2s ease, opacity 2s ease; }
.glens .gl-num { transition: fill 2s ease; }
.glens stop { transition: stop-color 2s ease; }
.glens-time { transition: color 2s ease, text-shadow 2s ease; }
/* night: tiny stars twinkle inside the glass */
.glens .gl-stars circle { fill: #fff; opacity: 0; transition: opacity 2s ease; }
.gate .glens[data-phase="night"] .gl-stars circle { opacity: .7; animation: gl-twinkle 3.6s ease-in-out var(--d) infinite; }
@keyframes gl-twinkle { 0%, 100% { opacity: .75; } 50% { opacity: .2; } }
.glens-phase { font-style: italic; opacity: .75; }
@media (prefers-reduced-motion: reduce) { .gate .glens[data-phase="night"] .gl-stars circle { animation: none; } }

/* Indonesian translation under a foreign greeting: small, muted, fades with the greeting */
.gate .hello-tr { margin: 6px 0 0; min-height: 1.3em; font: 500 12.5px/1.3 var(--sans); color: var(--muted); text-align: center; text-wrap: balance; transition: opacity .3s ease; }
.gate .hello-tr.out { opacity: 0; }
.gate .hello-tr.in { animation: tr-in .8s ease .5s both; }
@keyframes tr-in { from { opacity: 0; transform: translateY(3px); } }
@media (max-height: 600px) { .gate .hello-tr { margin-top: 3px; font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .gate .hello-tr.in { animation: none; } }

/* ===== Login proportions (art direction pass) =====
   One type scale, ratio ~1.25: clock sentence 28 > greeting 20 > compliment 15.5 > translation 12.5.
   The clock leads (largest), the greeting supports, the translation whispers. */
.gate .gkal p { font-size: 28px; line-height: 1.12; }
.gate h1.hello { font-size: 20px; line-height: 1.25; }
.gate h1.hello .h2l { font-size: 15.5px; line-height: 1.35; margin-top: 2px; }
.gate h1.hello.dict .h1l { font-size: 24px; }
.gate h1.hello.dict .h2l { font-size: 13px; }
.gate .hello-tr { font-size: 12.5px; margin-top: 6px; }
.gate h1.hello:lang(ja) { line-height: 1.4; }
.gate h1.hello:lang(ja) .h2l { font-size: 14px; line-height: 1.5; margin-top: 4px; }
/* the lens grows with the screen so it stays the hero on tall phones */
@media (min-height: 821px) { .glens-dial { width: min(46vw, 184px); } .glens-time b { font-size: 30px; } .gate .gkal p { font-size: 32px; } }
@media (max-height: 700px) {
  .gate .gkal p { font-size: 23px; }
  .gate h1.hello { font-size: 18px; } .gate h1.hello .h2l { font-size: 14px; }
  .gate h1.hello.dict .h1l { font-size: 21px; } .gate h1.hello.dict .h2l { font-size: 12px; }
  .gate .hello-tr { font-size: 11.5px; margin-top: 4px; }
}
@media (max-height: 600px) { .gate .gkal p { font-size: 20px; } .gate h1.hello { font-size: 17px; } .gate h1.hello .h2l { font-size: 13px; } }

/* ===== Caption under the clock: poetic date ⇄ fact of the day, soft crossfade ===== */
.glens-cap, .gkal small { transition: opacity .28s ease, transform .28s ease; text-wrap: balance; }
.glens-cap.cap-fade, .gkal small.cap-fade { opacity: 0; transform: translateY(3px); }
.glens-cap { max-width: 92%; margin-inline: auto; text-align: center; line-height: 1.3; }

/* ===== Twin time easter egg, 5 s, no words ===== */
@property --irisp { syntax: '<percentage>'; inherits: false; initial-value: 75%; }
.gate-clock { position: relative; }
.glens-dial { isolation: isolate; }
.glens-iris { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0; z-index: 1;
  background: repeating-conic-gradient(from 15deg, var(--gl-ring) 0deg 54deg, var(--gl-tick) 54deg 60deg);
  -webkit-mask: radial-gradient(circle, transparent var(--irisp), #000 calc(var(--irisp) + .5%));
          mask: radial-gradient(circle, transparent var(--irisp), #000 calc(var(--irisp) + .5%)); }
.glens-time { z-index: 2; }
.glens-dial::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, .6) 40%, transparent 70%); opacity: 0; pointer-events: none; z-index: 3; }
/* 0–0.5 s iris closes while turning · 0.5 s flash · 0.6–1.2 s iris opens · 0.6–2.4 s barrel turns a full circle */
.gate-clock.egg .glens-iris { animation: egg-iris 1.3s cubic-bezier(.7, 0, .3, 1) both; }
@keyframes egg-iris { 0% { opacity: 1; --irisp: 75%; transform: rotate(0); } 38% { --irisp: 0%; transform: rotate(-50deg); } 48% { --irisp: 0%; transform: rotate(-50deg); }
  100% { opacity: 1; --irisp: 75%; transform: rotate(0); } }
.gate-clock.egg .glens-dial::after { animation: egg-flash .7s ease-out .5s both; }
@keyframes egg-flash { 0% { opacity: 0; } 20% { opacity: .95; } 100% { opacity: 0; } }
.gate-clock.egg .glens-dial svg { animation: egg-spin 1.8s cubic-bezier(.5, 0, .2, 1) .6s both; }
@keyframes egg-spin { to { transform: rotate(360deg); } }
.gate-clock.egg .glens-time b { animation: egg-glow 3.6s ease-in-out 1.1s both; }
@keyframes egg-glow { 0%, 100% { text-shadow: 0 1px 0 rgba(255, 255, 255, .35); } 35%, 65% { text-shadow: 0 0 14px color-mix(in oklab, var(--gl-mark) 80%, transparent), 0 0 2px #fff; } }
/* Kalimat: a light sweep runs through the number words twice */
.gate-clock.egg .gkal p .num { background: linear-gradient(100deg, var(--accent) 0%, var(--accent) 35%, #ffe2c6 50%, var(--accent) 65%, var(--accent) 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: egg-sweep 2.2s ease-in-out .2s 2 both; }
@keyframes egg-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* bokeh lights drift up around the clock and fade (soft discs, no blur filter) */
.egg-bokeh { position: absolute; inset: -10px -24px 0; pointer-events: none; z-index: 4; }
.egg-bokeh i { position: absolute; bottom: 12%; width: var(--sz); height: var(--sz); margin-left: calc(var(--sz) / -2); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .95), color-mix(in oklab, var(--gl-mark, var(--accent)) 55%, transparent) 55%, transparent 72%);
  animation: egg-float var(--t) cubic-bezier(.2, .7, .3, 1) var(--d) both; }
@keyframes egg-float { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 18% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--dx), -170px) scale(1); } }
@media (prefers-reduced-motion: reduce) { .gate-clock.egg * { animation: none !important; } .egg-bokeh { display: none; } }
.glens-phase { white-space: nowrap; }
/* caption spans the clock column so it keeps to one line where it fits */
.gate .glens { width: 100%; }
.glens-cap { max-width: 100%; }
.gate-clock { -webkit-user-select: none; user-select: none; touch-action: manipulation; }
@media (max-height: 700px) { .glens-cap, .gate .gkal small { font-size: 12px; } }
@media (max-height: 600px) { .glens-cap, .gate .gkal small { font-size: 11px; margin-top: 4px; } }


/* ---------- swassanastudio.com additions ---------- */
/* Public site: no app logout */
#psOut, #logoutBtn { display: none !important; }
/* Game cards show a real screenshot in a phone-like frame */
.game-card .card-media { position: relative; overflow: hidden; }
.game-card .card-media .game-shot { position: absolute; left: 50%; top: 16%; width: 38%; height: auto; object-fit: initial; max-width: 210px; border-radius: 20px; box-shadow: 0 18px 40px rgba(40, 24, 16, .3); transform: translateX(-50%) rotate(-3deg); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.game-card:hover .card-media .game-shot { transform: translateX(-50%) translateY(-8px) rotate(0deg); }
/* Closing call to action */
.cta-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: linear-gradient(135deg, var(--surface, #fff), color-mix(in srgb, var(--accent, #c06a45) 14%, transparent)); border: 1px solid var(--line, rgba(0,0,0,.08)); }
.cta-band h2 { margin: 6px 0 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
.cta-band h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
.cta-band .muted { margin: 0; }
.cta-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cta-actions .pill { justify-content: center; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-actions { grid-template-columns: 1fr; } }


/* ---------- Web delights ---------- */
/* Next open slot on the studio cards */
.next-slot { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.next-slot b { color: var(--text); font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3f9d6a; box-shadow: 0 0 0 0 rgba(63, 157, 106, .5); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(63, 157, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 157, 106, 0); } }

/* Viewfinder over photos */
.vf { position: absolute; inset: 14px; pointer-events: none; opacity: 0; transform: scale(1.06); transition: opacity .25s, transform .35s cubic-bezier(.2,.7,.2,1); z-index: 2; }
.vf i { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(255, 255, 255, .92); filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.vf i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.vf i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.vf i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.vf i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.vf-dot { position: absolute; left: var(--fx, 50%); top: var(--fy, 50%); width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid rgba(255, 255, 255, .95); border-radius: 4px; transition: left .12s ease-out, top .12s ease-out; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.vf-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #ff6b4a; }
.vf-read { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: #fff; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.hero-art .frame:hover .vf, .card:hover .card-media .vf { opacity: 1; transform: none; }
.hero-art .frame { cursor: pointer; }
.hero-art .frame .vf { inset: 10px; }
.hero-art .frame .vf-read { top: 12px; bottom: auto; }

/* Hero polaroids lean toward the cursor */
.hero .hero-art.in, .hero .hero-art { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.frame.snap { animation: snap .45s cubic-bezier(.2,.7,.2,1); }
@keyframes snap { 30% { scale: .96; } 60% { scale: 1.03; } }

/* Shutter flash and the developing polaroid */
.flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 90; }
.flash.go { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.shot { position: fixed; right: 28px; bottom: 28px; z-index: 80; width: 210px; padding: 12px 12px 14px; background: #fffdf9; color: #2e1b16; border-radius: 6px; box-shadow: 0 24px 60px rgba(40, 24, 16, .28); transform: rotate(3deg); }
.shot.dev { animation: shot-in .5s cubic-bezier(.2,.7,.2,1); }
.shot-photo { aspect-ratio: 1; border-radius: 3px; overflow: hidden; background: #2e1b16; }
.shot-photo img { width: 100%; height: 100%; object-fit: cover; animation: develop 2.2s ease-out both; }
@keyframes develop { 0% { filter: brightness(.15) sepia(1) blur(3px); opacity: .6; } 100% { filter: none; opacity: 1; } }
@keyframes shot-in { from { transform: translateY(40px) rotate(6deg); opacity: 0; } }
.shot-cap { margin: 12px 2px 6px; font-family: var(--display); font-size: 17px; line-height: 1.25; }
.shot-cap span { display: block; margin-bottom: 4px; font: 600 10px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #a3745a; }
.shot-more { font-size: 13px; font-weight: 600; color: #5a3728; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .vf, .vf-dot, .hero-art { transition: none; } .pulse, .shot.dev, .shot-photo img { animation: none; } }


/* ---------- Hidden admin door (js/sesame.js) ---------- */
.sesame-door { position: fixed; right: 24px; top: 84px; z-index: 85; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font: 600 14px/1 var(--sans); text-decoration: none; box-shadow: 0 16px 40px -12px rgba(40, 24, 16, .5); }
.sesame-door:hover { transform: translateY(-1px); }
.app-mode .sesame-door { top: auto; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); }
.sesame-door.opening { animation: door-in .7s cubic-bezier(.2,.9,.25,1.3); }
.sesame-door.opening .shackle { animation: unlock .6s .25s ease-out both; transform-origin: 17px 11px; }
@keyframes door-in { 0% { opacity: 0; transform: scale(.4) rotate(-12deg); filter: blur(6px); } 60% { opacity: 1; filter: none; } }
@keyframes unlock { 0% { transform: none; } 100% { transform: translateY(-2px) rotate(-18deg); } }
@media (prefers-reduced-motion: reduce) { .sesame-door.opening, .sesame-door.opening .shackle { animation: none; } }

/* ---------- Same composition on every screen (web layout) ---------- */
/* Large screens scale the whole page up from the 1280×720 design, limited by width and height so nothing gets cropped. */
@media (min-width: 1440px) and (min-height: 700px) { html:not(.app-mode) { zoom: 1.125; } }
@media (min-width: 1600px) and (min-height: 775px) { html:not(.app-mode) { zoom: 1.25; } }
@media (min-width: 1760px) and (min-height: 850px) { html:not(.app-mode) { zoom: 1.375; } }
@media (min-width: 1920px) and (min-height: 930px) { html:not(.app-mode) { zoom: 1.5; } }
@media (min-width: 2240px) and (min-height: 1085px) { html:not(.app-mode) { zoom: 1.75; } }
@media (min-width: 2560px) and (min-height: 1240px) { html:not(.app-mode) { zoom: 2; } }
@media (min-width: 3200px) and (min-height: 1550px) { html:not(.app-mode) { zoom: 2.5; } }
/* Stacked hero (narrow windows): keep the photos in proportion to the headline */
@media (max-width: 860px) { html:not(.app-mode) .hero-art { max-width: 460px; width: 100%; } }

/* Session-type strip stays pinned under the header while scrolling (web layout) */
html:not(.app-mode) .marquee { position: sticky; top: 68px; z-index: 19; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
html:not(.app-mode) { scroll-padding-top: 124px; }


/* ---------- Secret admin reel on the phone booking button (js/tabs.js) ---------- */
.tb-roll::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(#ff8a5c var(--hold, 0%), transparent 0); -webkit-mask: radial-gradient(circle, transparent 15px, #000 16px); mask: radial-gradient(circle, transparent 15px, #000 16px); opacity: 0; pointer-events: none; }
.tb-roll.charging::after { opacity: 1; animation: tb-hold 1.5s linear forwards; }
@property --hold { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes tb-hold { to { --hold: 100%; } }
.tabbar .tb-book-main.tb-admin, .tabbar.only-book .tb-book-main.tb-admin { background: linear-gradient(150deg, #3a2a22, #120b08); color: #ffd9c2; box-shadow: 0 0 0 1px rgba(255, 138, 92, .45), 0 0 26px -4px rgba(255, 138, 92, .55), 0 14px 30px -12px rgba(0, 0, 0, .8); }
.tabbar a.tb-book-main.tb-admin b, .tabbar a.tb-book-main.tb-admin small { color: #ffd9c2; }
.tb-book-main.tb-unlock { animation: tb-unlock .6s cubic-bezier(.2, .9, .25, 1.4); }
@keyframes tb-unlock { 0% { transform: scale(.9); } 50% { transform: scale(1.08) rotate(-2deg); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tb-roll.charging::after { animation: none; --hold: 100%; } .tb-book-main.tb-unlock { animation: none; } }
