/* =========================================================
   The Queen's Presence — Design System v1
   Tokens + components. Mobile-first, 390pt reference width.
   ========================================================= */

:root {
  /* Ink & velvet (backgrounds) */
  --ink-950: #0a0605;
  --ink-900: #120a09;
  --ink-850: #1a0d0c;
  --wine-900: #240a0d;
  --wine-800: #3a0f15;
  --wine-700: #561520;
  --wine-600: #74202b;
  --crimson-500: #9b2632;

  /* Antique gold */
  --gold-200: #f1dcaa;
  --gold-300: #e6c887;
  --gold-400: #d6b06a;
  --gold-500: #c79a4b;
  --gold-600: #a67b35;
  --gold-700: #7d5a24;
  --gold-line: rgba(199, 154, 75, 0.32);
  --gold-line-soft: rgba(199, 154, 75, 0.16);

  /* Parchment (reading & journal only) */
  --parch-50: #f8eed8;
  --parch-100: #f1e3c4;
  --parch-200: #e7d3a8;
  --parch-400: #c8a973;
  --sepia-900: #2e1d12;
  --sepia-700: #4d3321;
  --sepia-500: #7a5a3c;

  /* Text on dark */
  --ivory: #f4eadb;
  --text-2: #d3c2a7;
  --text-3: #a8957b;

  /* Semantic */
  --success: #b9a15d;
  --focus: #f1dcaa;

  /* Type */
  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-editorial: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --f-reading: "EB Garamond", Georgia, serif;
  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing (4pt base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;

  /* Radius */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;

  /* Elevation */
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
  --glow-gold: 0 0 28px rgba(214, 176, 106, 0.28);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --t-fast: 180ms; --t-base: 280ms; --t-slow: 520ms;

  --velvet:
    radial-gradient(120% 70% at 50% 0%, rgba(116, 32, 43, 0.55) 0%, rgba(36, 10, 13, 0) 60%),
    radial-gradient(90% 60% at 50% 110%, rgba(86, 21, 32, 0.6) 0%, rgba(10, 6, 5, 0) 70%),
    linear-gradient(180deg, #1a0b0b 0%, #0e0706 100%);

  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.22  0 0 0 0 0.1  0 0 0 0.28 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 18px; height: 18px; }
svg.i.xs { width: 14px; height: 14px; }
svg.i.lg { width: 28px; height: 28px; }

/* ---------------- Board (presentation only) ---------------- */
body.board {
  background:
    radial-gradient(60% 40% at 20% 0%, rgba(116, 32, 43, 0.35), transparent 70%),
    radial-gradient(50% 40% at 90% 30%, rgba(86, 21, 32, 0.3), transparent 70%),
    #0b0606;
  color: var(--ivory);
  font-family: var(--f-ui);
  -webkit-font-smoothing: antialiased;
  padding: 64px 56px 120px;
}
.board-head { max-width: 1320px; margin: 0 auto 72px; text-align: center; }
.board-head .eyebrow { margin-bottom: 18px; }
.board-head h1 { font-family: var(--f-display); font-weight: 500; font-size: 56px; letter-spacing: .06em; color: var(--gold-400); line-height: 1.05; }
.board-head p { font-family: var(--f-editorial); font-size: 22px; color: var(--text-2); margin-top: 14px; font-style: italic; }
.board-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.board-nav a { font-family: var(--f-display); font-size: 12px; letter-spacing: .16em; color: var(--gold-300); text-decoration: none; border: 1px solid var(--gold-line); padding: 9px 16px; border-radius: 999px; }
.board-nav a:hover { background: rgba(199, 154, 75, .1); }

.section { max-width: 1760px; margin: 0 auto 110px; }
.section-head { display: flex; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--gold-line-soft); padding-bottom: 18px; margin-bottom: 44px; }
.section-head .num { font-family: var(--f-display); color: var(--gold-600); font-size: 15px; letter-spacing: .2em; }
.section-head h2 { font-family: var(--f-display); font-weight: 500; font-size: 30px; letter-spacing: .08em; color: var(--gold-300); }
.section-head p { margin-left: auto; color: var(--text-3); font-size: 14px; max-width: 520px; text-align: right; line-height: 1.5; }

.row { display: flex; flex-wrap: wrap; gap: 56px 40px; }
figure.art { width: 390px; }
figure.art.wide { width: 1100px; }
figure.art figcaption { margin-top: 18px; }
figure.art figcaption b { display: block; font-family: var(--f-display); font-weight: 500; letter-spacing: .12em; font-size: 14px; color: var(--gold-300); }
figure.art figcaption span { display: block; color: var(--text-3); font-size: 13px; line-height: 1.55; margin-top: 6px; }

/* ---------------- Screen artboard ---------------- */
.screen {
  width: 390px; height: 844px; position: relative; overflow: hidden;
  border-radius: 22px; background: var(--velvet); color: var(--ivory);
  border: 1px solid rgba(199, 154, 75, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0,0,0,.6);
  isolation: isolate; font-family: var(--f-ui); font-size: 15px;
}
.screen.wide { width: 1100px; height: 700px; }
.screen::after { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .35; pointer-events: none; mix-blend-mode: overlay; z-index: 50; }
.bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.scrim-b { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,6,5,.1) 0%, rgba(10,6,5,.15) 40%, rgba(14,6,6,.92) 78%, #0e0606 100%); }
.scrim-t { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,6,6,.92) 0%, rgba(14,6,6,.35) 30%, rgba(14,6,6,.2) 55%, rgba(14,6,6,.95) 88%); }
.scrim-full { position: absolute; inset: 0; z-index: 1; background: rgba(12, 6, 6, .72); }
.vignette { position: absolute; inset: 0; z-index: 1; box-shadow: inset 0 0 120px 30px rgba(0,0,0,.75); pointer-events: none; }
.content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; }
.scroll { flex: 1; overflow: hidden; padding: 0 20px; }
.pad { padding: 0 20px; }

.topbar { height: 64px; padding: 12px 10px 0; display: flex; align-items: center; justify-content: space-between; flex: none; }
.topbar .title { font-family: var(--f-editorial); font-size: 22px; color: var(--ivory); font-weight: 500; }
.topbar .title.center { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-400); position: relative; }
.icon-btn.ring { border: 1px solid rgba(199,154,75,.45); width: 40px; height: 40px; }
.icon-btn.solid { background: rgba(20,10,9,.6); border: 1px solid var(--gold-line); backdrop-filter: blur(6px); }

/* ---------------- Typography ---------------- */
.display { font-family: var(--f-display); font-weight: 500; letter-spacing: .04em; color: var(--gold-400); line-height: 1.05; text-transform: uppercase; }
.gilt { background: linear-gradient(180deg, #f3dca3 0%, #d6b06a 45%, #a67b35 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.eyebrow { font-family: var(--f-display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-500); }
.h1 { font-family: var(--f-editorial); font-size: 38px; line-height: 1.05; font-weight: 500; color: var(--ivory); }
.h2 { font-family: var(--f-editorial); font-size: 28px; line-height: 1.1; font-weight: 500; color: var(--ivory); }
.h3 { font-family: var(--f-editorial); font-size: 21px; line-height: 1.2; font-weight: 600; color: var(--ivory); }
.quote { font-family: var(--f-editorial); font-style: italic; font-size: 19px; line-height: 1.45; color: var(--text-2); }
.body { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.small { font-size: 13px; line-height: 1.45; color: var(--text-3); }
.tiny { font-size: 11px; letter-spacing: .02em; color: var(--text-3); }
.gold { color: var(--gold-400); }
.h1, .h2, .h3, .day-dot, .step-num, .ring-prog > span { font-variant-numeric: lining-nums; }
.ivory { color: var(--ivory); }
.center { text-align: center; }
.italic { font-style: italic; }

/* ---------------- Ornaments ---------------- */
.orn { display: flex; align-items: center; gap: 12px; color: var(--gold-500); justify-content: center; }
.orn::before, .orn::after { content: ""; height: 1px; flex: 1; max-width: 90px; background: linear-gradient(90deg, transparent, var(--gold-500)); }
.orn::after { background: linear-gradient(270deg, transparent, var(--gold-500)); }
.orn .diamond { width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid currentColor; }
.hair { height: 1px; background: var(--gold-line-soft); }

/* ---------------- Buttons (min 52px touch) ---------------- */
.btn { height: 54px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 28px; font-family: var(--f-display); font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.btn-block { width: 100%; }
.btn-gold { color: #2b0f0a; background: linear-gradient(180deg, #efd293 0%, #d4ac62 48%, #b08238 100%); box-shadow: inset 0 1px 0 rgba(255, 242, 205, .75), inset 0 -2px 0 rgba(110, 72, 25, .35), 0 8px 22px rgba(0,0,0,.5), var(--glow-gold); }
.btn-ghost { color: var(--gold-300); border: 1px solid rgba(214, 176, 106, .6); background: rgba(20, 8, 8, .35); }
.btn-text { height: 48px; color: var(--text-2); font-family: var(--f-display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.btn-sm { height: 44px; font-size: 12px; padding: 0 20px; }

/* ---------------- Surfaces ---------------- */
.card { border-radius: var(--r-md); border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(74, 18, 26, .5) 0%, rgba(22, 9, 9, .82) 100%); box-shadow: inset 0 1px 0 rgba(241, 220, 170, .07), var(--shadow-card); position: relative; }
.card.gilt-frame::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(199,154,75,.18); border-radius: 10px; pointer-events: none; }
.card.flat { background: rgba(26, 12, 11, .7); box-shadow: none; }

.parchment { position: relative; color: var(--sepia-900); background: radial-gradient(120% 90% at 50% 40%, #f8eed7 0%, #efdfbd 55%, #dcc393 100%); box-shadow: inset 0 0 50px rgba(122, 76, 30, .38), inset 0 0 6px rgba(90, 55, 20, .35); }
.parchment::before { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .9; mix-blend-mode: multiply; pointer-events: none; border-radius: inherit; }
.parchment.sepia { background: radial-gradient(120% 90% at 50% 40%, #ecd9b3 0%, #dcc08c 60%, #c5a46c 100%); }
.parchment > * { position: relative; }

/* ---------------- Segmented tabs ---------------- */
.seg { display: flex; padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--gold-line); background: rgba(14, 6, 6, .6); }
.seg button { flex: 1; height: 38px; border-radius: var(--r-pill); font-family: var(--f-ui); font-size: 13px; font-weight: 500; color: var(--text-2); }
.seg button.on { background: linear-gradient(180deg, #e4c47f, #b88a40); color: #2b0f0a; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,240,200,.6); }

/* ---------------- Progress ---------------- */
.bar { height: 4px; border-radius: 4px; background: rgba(199, 154, 75, .18); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #a67b35, #e6c887); box-shadow: 0 0 8px rgba(230,200,135,.6); }
.ring-prog { --p: 18; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold-400) calc(var(--p) * 1%), rgba(199,154,75,.16) 0); }
.ring-prog::before { content: ""; position: absolute; }
.ring-prog > span { width: 56px; height: 56px; border-radius: 50%; background: var(--ink-900); display: grid; place-items: center; font-family: var(--f-editorial); font-size: 18px; color: var(--gold-300); }

/* ---------------- Lists ---------------- */
.list-row { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 4px; border-bottom: 1px solid var(--gold-line-soft); }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .chev { color: var(--gold-600); }
.list-row .lbl { font-size: 15px; color: var(--ivory); }
.thumb { width: 46px; height: 58px; border-radius: 4px; border: 1px solid rgba(199,154,75,.55); background-size: cover; background-position: center; flex: none; box-shadow: 0 4px 10px rgba(0,0,0,.5); }

/* ---------------- Controls ---------------- */
.toggle { width: 46px; height: 28px; border-radius: 999px; background: rgba(199,154,75,.2); border: 1px solid var(--gold-line); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-3); }
.toggle.on { background: linear-gradient(180deg, #e0bd76, #a67b35); border-color: transparent; }
.toggle.on::after { left: 21px; background: #fff4dc; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--gold-line); display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.chip.on { border-color: var(--gold-400); color: var(--gold-200); background: rgba(199,154,75,.14); }
.field { height: 54px; border-radius: 12px; border: 1px solid var(--gold-line); background: rgba(12,6,6,.55); display: flex; align-items: center; gap: 12px; padding: 0 16px; color: var(--text-3); font-size: 15px; }
.field.focus { border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(214,176,106,.18); color: var(--ivory); }
.slider { position: relative; height: 4px; background: rgba(199,154,75,.25); border-radius: 4px; }
.slider i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--gold-400); }
.slider b { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f7e2b0, #c79a4b); box-shadow: 0 0 0 4px rgba(199,154,75,.18), 0 2px 6px rgba(0,0,0,.5); }

/* ---------------- Bottom nav ---------------- */
.tabbar { flex: none; height: 78px; display: flex; align-items: flex-start; padding-top: 10px; background: linear-gradient(180deg, rgba(14,7,6,.9), #0b0605); border-top: 1px solid var(--gold-line); position: relative; z-index: 5; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--text-3); font-size: 10.5px; letter-spacing: .04em; text-decoration: none; min-height: 48px; }
.tabbar a.on { color: var(--gold-300); }
.tabbar a.on::before { content: ""; position: absolute; top: -1px; width: 28px; height: 2px; background: var(--gold-400); box-shadow: 0 0 10px var(--gold-400); }
.tabbar a { position: relative; }

/* ---------------- Bottom sheet ---------------- */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; border-radius: 24px 24px 0 0; background: linear-gradient(180deg, #1f0e0d, #120807); border-top: 1px solid var(--gold-line); box-shadow: 0 -20px 60px rgba(0,0,0,.6); padding: 12px 20px 28px; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: rgba(199,154,75,.4); margin: 0 auto 14px; }

/* ---------------- Journey ---------------- */
.day-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-editorial); font-size: 16px; font-weight: 600; border: 1px solid var(--gold-line); color: var(--text-3); }
.day-dot.done { background: linear-gradient(180deg, #e6c887, #a67b35); color: #2b0f0a; border: 0; }
.day-dot.now { border: 1.5px solid var(--gold-300); color: var(--gold-200); box-shadow: 0 0 0 4px rgba(214,176,106,.14), var(--glow-gold); }
.step-num { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--f-editorial); font-weight: 600; font-size: 17px; color: #f4e3bb; background: radial-gradient(circle at 35% 30%, #74202b, #3a0f15); border: 1px solid rgba(199,154,75,.6); }
.step-num.done { background: radial-gradient(circle at 35% 30%, #e6c887, #a67b35); color: #2b0f0a; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11px; letter-spacing: .06em; border: 1px solid var(--gold-line); color: var(--gold-300); background: rgba(20,8,8,.5); }
.toast { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(18,8,8,.88); border: 1px solid var(--gold-line); color: var(--text-2); font-size: 12.5px; box-shadow: var(--shadow-card); }

/* ---------------- Book object ---------------- */
.book { position: relative; width: 196px; height: 282px; border-radius: 3px 8px 8px 3px; background: linear-gradient(90deg, #2a080c 0%, #5a141c 6%, #6a1822 50%, #4a0f16 100%); box-shadow: 0 30px 50px rgba(0,0,0,.7), 0 0 60px rgba(214,150,70,.22), inset -2px 0 0 rgba(0,0,0,.4); padding: 16px 16px 14px 22px; display: flex; flex-direction: column; align-items: center; }
.book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(255,220,160,.12) 60%, rgba(0,0,0,.4)); border-radius: 3px 0 0 3px; }
.book::after { content: ""; position: absolute; inset: 7px 7px 7px 17px; border: 1px solid rgba(214,176,106,.7); outline: 1px solid rgba(214,176,106,.3); outline-offset: 3px; pointer-events: none; }
.book .t { font-family: var(--f-display); text-align: center; line-height: 1; margin-top: 4px; }
.book .t small { display: block; font-size: 10px; letter-spacing: .3em; }
.book .t strong { display: block; font-weight: 500; font-size: 25px; letter-spacing: .04em; margin-top: 3px; }
.book .art { width: 100%; flex: 1; margin: 10px 0 8px; border: 1px solid rgba(214,176,106,.6); background: url(../assets/cover-art.jpg) center 30% / 150% auto no-repeat; border-radius: 60px 60px 2px 2px; }
.book .au { font-family: var(--f-display); font-size: 9.5px; letter-spacing: .32em; color: var(--gold-300); }

/* ---------------- Doc panels (system section) ---------------- */
.doc { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }
.doc .panel { border: 1px solid var(--gold-line); border-radius: 16px; padding: 26px; background: rgba(26,12,11,.6); }
.doc .panel h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: .12em; font-size: 15px; color: var(--gold-300); margin-bottom: 16px; }
.doc .panel p, .doc .panel li { color: var(--text-2); font-size: 14px; line-height: 1.6; }
.doc .panel ul { padding-left: 18px; }
.doc .panel code { font-size: 12.5px; color: var(--gold-200); background: rgba(199,154,75,.1); padding: 1px 6px; border-radius: 4px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.sw { border-radius: 12px; overflow: hidden; border: 1px solid var(--gold-line-soft); }
.sw div { height: 86px; }
.sw p { padding: 10px 12px; font-size: 12px; color: var(--text-2); background: #140a09; line-height: 1.5; }
.sw p b { color: var(--ivory); font-weight: 600; display: block; }
table.map { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.map th { text-align: left; font-family: var(--f-display); font-weight: 500; font-size: 11px; letter-spacing: .18em; color: var(--gold-500); padding: 10px 12px; border-bottom: 1px solid var(--gold-line); }
table.map td { padding: 11px 12px; border-bottom: 1px solid var(--gold-line-soft); color: var(--text-2); vertical-align: top; line-height: 1.5; }
table.map td:first-child { color: var(--gold-300); font-family: var(--f-editorial); font-size: 17px; white-space: nowrap; }
table.map td b { color: var(--ivory); font-weight: 600; }
table.map tr.phase td { font-family: var(--f-display); font-size: 12px; letter-spacing: .2em; color: var(--gold-400); background: rgba(116,32,43,.25); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Candle flicker for ambient glow (splash, completion) */
@keyframes flicker { 0%,100% { opacity: .85 } 45% { opacity: 1 } 60% { opacity: .78 } }
.glow-flicker { animation: flicker 3.2s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
.rise { animation: rise var(--t-slow) var(--ease) both; }

/* ---------------- Access & activation (additive) ---------------- */
.field-label { display: block; font-size: 12.5px; color: var(--text-2); margin: 0 0 6px 4px; letter-spacing: .02em; }
.field.error { border-color: #c4636b; box-shadow: 0 0 0 3px rgba(196, 99, 107, .16); color: var(--ivory); }
.field.valid { border-color: var(--gold-400); color: var(--ivory); }
.err-text { color: #eaa9ae; font-size: 12.5px; line-height: 1.45; }
.code { font-family: var(--f-display); letter-spacing: .16em; font-size: 20px; color: var(--gold-200); font-variant-numeric: lining-nums; }
.emblem { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-line); background: radial-gradient(circle, rgba(214,176,106,.18), transparent 70%); box-shadow: var(--glow-gold); color: var(--gold-400); }
.link { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(214,176,106,.5); }
.check-box { width: 22px; height: 22px; border-radius: 6px; flex: none; border: 1px solid var(--gold-400); display: grid; place-items: center; color: #2b0f0a; }
.check-box.on { background: linear-gradient(180deg, #e6c887, #a67b35); border: 0; }
.dev-banner { height: 34px; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--f-ui); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #f6d8a8; background: repeating-linear-gradient(135deg, rgba(155,38,50,.55) 0 14px, rgba(90,20,28,.55) 14px 28px); border-bottom: 1px solid rgba(214,176,106,.4); }
.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.issued { color: #e6c887; background: rgba(199,154,75,.12); }
.status.redeemed { color: #b7d3a4; background: rgba(120,160,100,.12); }
.status.revoked { color: #eaa9ae; background: rgba(196,99,107,.14); }
.status.suspended { color: #d9b98a; background: rgba(160,120,70,.14); }

.flow { display: flex; flex-direction: column; gap: 28px; }
.flow-lane { display: flex; align-items: stretch; gap: 0; }
.flow-lane .lane-title { width: 150px; padding-right: 14px; line-height: 1.6; flex: none; font-family: var(--f-display); font-size: 11px; letter-spacing: .2em; color: var(--gold-500); text-transform: uppercase; padding-top: 18px; }
.flow-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 0; flex: 1; }
.node { min-width: 140px; max-width: 190px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--gold-line); background: rgba(26,12,11,.75); }
.node b { display: block; font-family: var(--f-editorial); font-size: 17px; font-weight: 600; color: var(--ivory); line-height: 1.2; }
.node span { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 4px; line-height: 1.4; }
.node.screen-node { border-color: var(--gold-400); background: rgba(116,32,43,.3); }
.node.pending { border-style: dashed; }
.node.bad { border-color: rgba(196,99,107,.6); background: rgba(90,20,28,.3); }
.node .tag { display: inline-block; margin-top: 6px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px dashed rgba(214,176,106,.6); color: var(--gold-300); }
.arrow { width: 34px; flex: none; text-align: center; color: var(--gold-600); font-size: 18px; }

table.map td:first-child { font-variant-numeric: lining-nums; }
