/* SUVIKK Almirah (D-23). Tokens = 01 BRAND TOKENS (locked); small text = --muted-text (D-17); gold = decor only. */
:root {
  --gold: #c4963a; --navy: #1e2d52; --bg: #f7f0e3; --bg-alt: #ede3d0; --bg-card: #fdfaf5;
  --text: #2a2218; --muted-text: #6b5c46; --border: #ddd0bc;
  --f-display: 'Cormorant Garamond', Georgia, serif; --f-ui: 'Montserrat', system-ui, sans-serif; --f-body: 'Lato', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--f-body); overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.al { min-height: 100svh; width: min(560px, 100%); margin-inline: auto; padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 16px; }
.al[data-radio="on"] { padding-bottom: 300px; }
.al__top { display: flex; align-items: center; justify-content: space-between; }
.al__logo img { display: block; width: 96px; height: auto; }
.al__mute { min-height: 44px; padding: 0 12px; background: none; border: 1px solid var(--border); border-radius: 2px; font: 600 11px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); cursor: pointer; }
.al__label { margin: 0; font: 600 11px/1.3 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--muted-text); }
.al__h { margin: 0; font: 600 34px/1.1 var(--f-display); color: var(--navy); text-align: center; }
.al__h span { font-style: italic; font-weight: 500; }
.al__h2 { margin: 0; font: 600 30px/1.1 var(--f-display); color: var(--navy); }
.al__note { margin: 0; font-size: 14px; color: var(--muted-text); }
.al__link { min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; padding: 0; font: 500 14px/1.4 var(--f-ui); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.al__exit { margin-top: 8px; min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; font: 500 14px/1.4 var(--f-ui); color: var(--navy); text-underline-offset: 3px; }
.al__foot { margin-top: auto; text-align: center; font-size: 13px; color: var(--muted-text); }

/* ---- Closed almirah: two doors swing open (perspective) ---- */
.doors { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 4px; }
.cab { position: relative; width: min(300px, 82vw); aspect-ratio: 3 / 4.2; padding: 0; border: 0; background: var(--text); border-radius: 4px 4px 2px 2px;
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px var(--text), 0 18px 30px -16px rgba(42, 34, 24, .7); perspective: 900px; cursor: pointer; }
.cab::after { content: ''; position: absolute; left: -10px; right: -10px; bottom: -14px; height: 10px; background: var(--text); border-radius: 2px; }
.cab__door { position: absolute; top: 6px; bottom: 6px; width: calc(50% - 7px); background: linear-gradient(160deg, #3a2f22, var(--text) 55%, #1f1911);
  border: 1px solid #4a3c2b; transition: transform 1.1s cubic-bezier(.3, .1, .2, 1); z-index: 2; }
.cab__door--l { left: 6px; transform-origin: left center; }
.cab__door--r { right: 6px; transform-origin: right center; }
.cab__panel { position: absolute; inset: 14px 12px; border: 1.5px solid var(--gold); border-radius: 2px;
  background: radial-gradient(circle at 50% 50%, rgba(196, 150, 58, .55) 0 1.4px, transparent 2px) 0 0 / 16px 16px; opacity: .9; }
.cab__knob { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.cab__door--l .cab__knob { right: 5px; } .cab__door--r .cab__knob { left: 5px; }
.cab__inside { position: absolute; inset: 6px; display: flex; flex-direction: column; gap: 6px; padding: 10px; background: var(--bg-alt); z-index: 1; }
.cab__inside span { flex: 1; border-radius: 1px;
  background: linear-gradient(var(--gold) 0 4px, transparent 4px calc(100% - 4px), var(--gold) calc(100% - 4px)), radial-gradient(circle, var(--navy) 0 1.4px, transparent 2px) 0 0 / 14px 12px, var(--bg-card); }
.cab__inside span:nth-child(2) { background-color: #f1e2c4; } .cab__inside span:nth-child(3) { background-color: #e9d6d2; }
.doors__hint { margin: 0; font: italic 500 20px/1.3 var(--f-display); color: var(--navy); }
.al[data-state="opening"] .cab__door--l, .al[data-state="open"] .cab__door--l { transform: rotateY(-105deg); }
.al[data-state="opening"] .cab__door--r, .al[data-state="open"] .cab__door--r { transform: rotateY(105deg); }
.al[data-state="closed"] .cab { animation: nudge 2.6s ease-in-out 1.2s infinite; }
@keyframes nudge { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-1deg); } 95% { transform: rotate(1deg); } }

/* ---- Drawers ---- */
.inside { display: flex; flex-direction: column; gap: 14px; animation: rise .5s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.drawers { display: flex; flex-direction: column; gap: 10px; }
.drawer { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 76px; padding: 14px 16px 14px 18px; text-decoration: none;
  background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--navy); border-radius: 2px; box-shadow: 0 6px 12px -10px rgba(42, 34, 24, .6); }
.drawer__t { font: 600 24px/1.1 var(--f-display); color: var(--navy); }
.drawer__s { font: 500 13px/1.3 var(--f-ui); color: var(--muted-text); }
.drawer__h { position: absolute; right: 16px; top: 50%; width: 34px; height: 8px; margin-top: -4px; border-radius: 4px; background: var(--gold); }
.drawer--locked { opacity: .65; border-left-color: var(--border); }
.drawer--locked .drawer__h { background: var(--border); }

/* ---- Panels ---- */
.panel { display: flex; flex-direction: column; gap: 14px; animation: rise .35s ease-out; }
.panel__back { align-self: flex-start; min-height: 44px; padding: 0; background: none; border: 0; font: 500 14px/1 var(--f-ui); color: var(--navy); cursor: pointer; }
.quiz__q { margin: 0; font: 600 30px/1.15 var(--f-display); color: var(--navy); }
.quiz__opts { display: flex; flex-direction: column; gap: 8px; }
.opt { min-height: 52px; padding: 12px 16px; text-align: left; background: var(--bg-card); border: 1px solid var(--border); border-radius: 2px; font: 400 16px/1.35 var(--f-body); cursor: pointer; }
.opt:active, .opt[aria-pressed="true"] { border-color: var(--navy); background: var(--bg-alt); }
.result { display: flex; flex-direction: column; gap: 12px; }
.result__name { margin: 0; font: 600 44px/1 var(--f-display); color: var(--navy); }
.result__line { margin: 0; font: italic 500 22px/1.3 var(--f-display); }
.result__how { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.result__card { width: min(260px, 70%); height: auto; align-self: center; border: 1px solid var(--border); box-shadow: 0 10px 22px -14px rgba(42, 34, 24, .7); }
.result__alt { display: flex; flex-direction: column; gap: 6px; }
.btn { width: 100%; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px;
  background: var(--navy); color: var(--bg); border: 0; border-radius: 2px; text-decoration: none; font: 600 13px/1.2 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.btn--ghost { background: none; color: var(--navy); border: 1.5px solid var(--navy); }

/* ---- Radio (D-24): inline Spotify card in drawer 2, no fixed/sticky overlay ---- */
.al__ctl { display: flex; gap: 6px; }
.al__geet { padding: 0 10px; letter-spacing: .06em; white-space: nowrap; }
.geet { display: flex; flex-direction: column; gap: 6px; }
.al[data-panel="drape"] .geet { display: none; } /* quiz drawer: card hidden, music keeps playing */
.geet__player, .geet__player iframe, .geet__player > div { width: 100%; height: 152px; display: block; border: 0; border-radius: 12px; }
.geet__bar { display: flex; align-items: center; gap: 8px; }
.geet__title { flex: 1; min-width: 0; margin: 0; font: 500 13px/1.3 var(--f-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.geet__bar button { min-height: 44px; padding: 0 12px; background: none; border: 1px solid var(--border); border-radius: 2px; font: 600 12px/1 var(--f-ui); color: var(--navy); cursor: pointer; }
.geet__rights { margin: 0; font-size: 11px; color: var(--muted-text); }

@media (min-width: 768px) { .al__h { font-size: 44px; } .cab { width: 320px; } }
@media (prefers-reduced-motion: reduce) {
  .cab__door { transition: none; } .al[data-state="closed"] .cab { animation: none; }
  .inside, .panel { animation: none; }
}
