/* =========================================================
   USCCG Bank — Envelope Gacha (bank edition)
   ========================================================= */

:root {
  --bg: #0B0D12;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --tx: #EDE7DC;
  --tx-2: #B5B0A6;
  --tx-3: #7E828C;

  --letter: #FBF8F2;
  --ink: #16181D;
  --ink-2: #4A4F59;
  --ink-3: #8A8E96;
  --hair: #E6E0D4;

  --navy: #10223F;
  --navy-2: #1B355E;
  --gold: #C9A55C;
  --gold-2: #E8C77A;
  --green: #1E7A55;
  --red: #A3283A;
  --glow: #E8C35A;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, 'Songti SC', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.mono { font-family: var(--mono); }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-spot {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 42% at 50% 42%, rgba(255, 236, 205, 0.075), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(40, 70, 120, 0.25), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.6));
}

/* ================= Header ================= */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px;
  padding: 0 clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: linear-gradient(180deg, rgba(11, 13, 18, 0.94), rgba(11, 13, 18, 0.6) 70%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; }
.brand img { height: 20px; width: auto; }
.brand span { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.brand em { font-style: italic; color: var(--gold); }
.nav { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.nav a { padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--tx-2); transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--tx); }
.nav a.active { color: #15130F; background: linear-gradient(180deg, #F3E3BC, #D9B86E); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--tx-2); font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chip b { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--tx); }
#ptsChip svg { color: var(--gold-2); }
#envChip svg { color: #9CB7E6; }
.chip.bump { animation: bump 0.5s var(--ease-back); }
.chip-lang { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--gold-2); padding: 0 11px; }
.chip-lang:hover { background: rgba(232, 199, 122, 0.14); border-color: rgba(232, 199, 122, 0.45); color: #fff; }
.chip-data:hover { background: var(--panel-2); border-color: var(--line-2); color: var(--tx); }

/* ================= Views ================= */
main { min-height: 100dvh; }
.view { display: none; min-height: 100dvh; padding: 96px 0 64px; }
.view.active { display: block; animation: view-in 0.5s var(--ease-out); }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 10px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 18px 0 28px; }
.page-title { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.02em; line-height: 1; }
.page-count { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--tx-3); margin-left: 10px; vertical-align: middle; }
.sec { margin-top: 48px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.sec-head h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; }
.sec-link { font-size: 13px; color: var(--tx-3); transition: color 0.2s; }
.sec-link:hover { color: var(--tx); }

.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 32px; border-radius: 999px;
  background: linear-gradient(180deg, #F5E4BB 0%, #D7B163 100%); color: #1A150B; font-size: 15px; font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255, 230, 170, 0.4) inset, 0 14px 32px -12px rgba(215, 177, 99, 0.6);
  transition: transform 0.2s var(--ease-back), box-shadow 0.2s;
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-gold:disabled { opacity: 0.4; cursor: default; transform: none; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--tx); font-size: 13.5px; font-weight: 500; transition: background 0.2s, border-color 0.2s;
}
.btn-line:hover { background: var(--panel-2); }

/* ================= Envelope themes ================= */
.envelope, .mini-env {
  --paper: #F7F2E8; --paper-2: #ECE4D4; --inside: #B9AE98;
  --e-ink: #10223F; --accent: #10223F;
  --band: linear-gradient(90deg, #10223F, #1B355E); --band-tx: #F3E9D2;
}
.t-bank    { --paper: #FFFFFF; --paper-2: #EAEFF6; --inside: #96AAC4; --e-ink: #0E3263; --accent: #1857A8; --band: linear-gradient(90deg, #0B254A, #1B5AA8 76%, #C9A55C 76%); --band-tx: #fff; }
.t-chase   { --paper: #FFFFFF; --paper-2: #EDF1F6; --inside: #9FB0C6; --e-ink: #0F3A73; --accent: #1A62B8; --band: linear-gradient(90deg, #0F3A73, #1A62B8); --band-tx: #fff; }
.t-amex    { --paper: #F5F9FD; --paper-2: #E1EBF6; --inside: #8FA9C6; --e-ink: #014A8C; --accent: #016FD0;
             --band: repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 6px), linear-gradient(90deg, #016FD0, #2B8BE0); --band-tx: #fff; }
.t-citi    { --paper: #FFFFFF; --paper-2: #EEF2F7; --inside: #9DB1C7; --e-ink: #0A3D6B; --accent: #056DAE; --band: linear-gradient(90deg, #003B70, #056DAE 80%, #D2232A 80%); --band-tx: #fff; }
.t-boa     { --paper: #FFFFFF; --paper-2: #F4EFEF; --inside: #B59FA2; --e-ink: #012169; --accent: #E31837; --band: linear-gradient(90deg, #012169 65%, #E31837 65%); --band-tx: #fff; }
.t-c1      { --paper: #FFFFFF; --paper-2: #EDF2F6; --inside: #95ABB9; --e-ink: #004977; --accent: #D03027; --band: linear-gradient(90deg, #004977 72%, #D03027 72%); --band-tx: #fff; }
.t-wf      { --paper: #FDFBF6; --paper-2: #F2E8D8; --inside: #C2A486; --e-ink: #8E1B16; --accent: #D71E28; --band: linear-gradient(90deg, #B31B22 80%, #F2B705 80%); --band-tx: #fff; }
.t-usbank  { --paper: #FFFFFF; --paper-2: #EEF0F8; --inside: #98A0C0; --e-ink: #0C2074; --accent: #D1193E; --band: linear-gradient(90deg, #0C2074 75%, #D1193E 75%); --band-tx: #fff; }
.t-barclays{ --paper: #F5FBFF; --paper-2: #DFEFFA; --inside: #8AB5D4; --e-ink: #00395D; --accent: #00AEEF; --band: linear-gradient(90deg, #00395D, #00AEEF); --band-tx: #fff; }
.t-cardless{ --paper: #F7F7FA; --paper-2: #E6E6F2; --inside: #9C9EB8; --e-ink: #1C1B3A; --accent: #5C4AE8; --band: linear-gradient(90deg, #1C1B3A, #5C4AE8); --band-tx: #fff; }
.t-sync    { --paper: #FFFDF7; --paper-2: #F4EFE1; --inside: #BFB495; --e-ink: #2B2D30; --accent: #D49A1A; --band: linear-gradient(90deg, #2B2D30 75%, #F2B705 75%); --band-tx: #fff; }
.t-discover{ --paper: #FFFBF7; --paper-2: #F4EAE1; --inside: #C4A58B; --e-ink: #231F20; --accent: #E55C00; --band: linear-gradient(90deg, #231F20 70%, #E55C00 70%); --band-tx: #fff; }
.t-hsbc    { --paper: #FFFFFF; --paper-2: #F4EFEF; --inside: #BFA2A2; --e-ink: #1D1D1B; --accent: #DB0011; --band: linear-gradient(90deg, #1D1D1B 62%, #DB0011 62%); --band-tx: #fff; }
.t-bilt    { --paper: #1D1E22; --paper-2: #121317; --inside: #08090B; --e-ink: #F2EFEA; --accent: #C9B28B; --band: linear-gradient(90deg, #0C0D10, #2D3038); --band-tx: #EAE6DF; }
.t-fnbo    { --paper: #F7FAF8; --paper-2: #E4EEE8; --inside: #93B3A0; --e-ink: #0D4B2B; --accent: #1B7A47; --band: linear-gradient(90deg, #0D4B2B, #1B7A47); --band-tx: #fff; }
.t-hotel   { --paper: #F7F0E3; --paper-2: #E9DCC6; --inside: #B49C7C; --e-ink: #5A2A1E; --accent: #8C4A2F; --band: linear-gradient(90deg, #5A2A1E, #8C4A2F); --band-tx: #F7E7D2; }
.t-airline { --paper: #F4F9FE; --paper-2: #DCEAF7; --inside: #8DA9C4; --e-ink: #0B3B60; --accent: #2A86C9; --band: linear-gradient(90deg, #0B3B60, #2A86C9); --band-tx: #fff; }
.t-business{ --paper: #2C3139; --paper-2: #1F232A; --inside: #121418; --e-ink: #E6EAF0; --accent: #9FB3C8; --band: linear-gradient(90deg, #13161B, #3A414C); --band-tx: #C9D3DE; }
.t-premium { --paper: #1E1E23; --paper-2: #121216; --inside: #070708; --e-ink: #EBD49E; --accent: #C9A14A; --band: linear-gradient(90deg, #8E6C26, #E3C27A, #8E6C26); --band-tx: #1A1408; }
.t-archive { --paper: #EFE2C8; --paper-2: #DFCCA8; --inside: #A88F68; --e-ink: #5A2A22; --accent: #9C2B33; --band: linear-gradient(90deg, #5A2A22, #9C2B33); --band-tx: #F2E2C4; }
.t-legend  { --paper: #F6F3FB; --paper-2: #E2DCF0; --inside: #A69BC4; --e-ink: #3E2A8C; --accent: #7A5BE0; --band: linear-gradient(90deg, #FF9DE6, #7FE3FF, #FFF08A, #B79CFF); --band-tx: #2A1E5C; }
.t-refer   { --paper: #F2FAF6; --paper-2: #DCEFE6; --inside: #7BAE97; --e-ink: #0F4D35; --accent: #1E7A55; --band: linear-gradient(90deg, #0F4D35, #1E7A55 75%, #D7B163 75%); --band-tx: #F5FBF8; }

/* ================= Mini envelope (front view) ================= */
.mini-env {
  position: relative; width: 160px; aspect-ratio: 1.9; border-radius: 5px;
  background: linear-gradient(170deg, var(--paper), var(--paper-2));
  box-shadow: 0 18px 32px -14px rgba(0, 0, 0, 0.8), 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.mini-env::before {
  content: ""; position: absolute; left: 7%; top: 34%; width: 52%; height: 32%;
  border-radius: 3px; background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}
.mini-env::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 15%; background: var(--band); }
.t-business.mini-env::before, .t-premium.mini-env::before, .t-bilt.mini-env::before { background: rgba(255, 255, 255, 0.12); }
.mini-env.big { width: 200px; }
.mini-env.ghost { opacity: 0.35; filter: grayscale(1); }
.t-legend.mini-env { background: linear-gradient(120deg, #F3D9FF, #C9F1FF 30%, #FFF3C9 55%, #E3D4FF 80%, #C9FFE9); background-size: 300% 300%; animation: holo 5s linear infinite; }

/* ================= HOME ================= */
.acct-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin: 8px 0 22px; }
.home-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -0.025em; }
.balance { display: flex; align-items: baseline; gap: 10px; }
.balance small { font-size: 12px; color: var(--tx-3); }
.balance b { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.8vw, 38px); letter-spacing: -0.02em; }
.balance .dia { color: var(--gold-2); font-size: 0.62em; margin-right: 6px; vertical-align: 0.2em; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 18px; align-items: stretch; }
.panel { padding: 20px 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; margin-bottom: 14px; }
.panel-head h2 { font-family: var(--serif); font-weight: 500; font-size: 21px; display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.sim-month { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--gold); padding: 2px 8px; border-radius: 999px; background: rgba(232, 199, 122, 0.12); border: 1px solid rgba(232, 199, 122, 0.28); white-space: nowrap; }
.panel-head-actions { display: flex; align-items: center; gap: 10px; }
.panel-wait {
  height: 26px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  color: var(--gold-2); background: rgba(232, 199, 122, 0.12); border: 1px solid rgba(232, 199, 122, 0.35);
  transition: background 0.18s, transform 0.18s; white-space: nowrap;
}
.panel-wait:hover:not(:disabled) { background: rgba(232, 199, 122, 0.22); transform: translateY(-1px); }
.panel-wait:disabled { opacity: 0.45; color: var(--tx-3); border-color: var(--line); background: transparent; cursor: default; font-family: var(--mono); }
.panel-link, .panel-toggle { font-size: 12.5px; color: var(--tx-3); transition: color 0.2s; white-space: nowrap; }
.panel-link:hover, .panel-toggle:hover { color: var(--tx); }

.stack { position: relative; display: block; width: min(280px, 90%); aspect-ratio: 1.9 / 1.12; margin: 2px auto 16px; animation: float 6s ease-in-out infinite; }
.stack .mini-env { position: absolute; left: 50%; top: 52%; width: 84%; transition: transform 0.5s var(--ease-out); }
.stack .s1 { transform: translate(-50%, -50%) rotate(-3deg); z-index: 3; }
.stack .s2 { transform: translate(-46%, -58%) rotate(4deg); z-index: 2; filter: brightness(0.85); }
.stack .s3 { transform: translate(-54%, -64%) rotate(-8deg); z-index: 1; filter: brightness(0.7); }
.stack:hover .s1 { transform: translate(-50%, -55%) rotate(-1deg) scale(1.02); }
.stack:hover .s2 { transform: translate(-40%, -62%) rotate(8deg); }
.stack:hover .s3 { transform: translate(-60%, -68%) rotate(-13deg); }
.stack.empty .mini-env { opacity: 0.25; filter: grayscale(1); }
.stack-badge {
  position: absolute; right: 0; top: 0; z-index: 5; min-width: 44px; height: 44px; padding: 0 11px; border-radius: 999px;
  display: grid; place-items: center; font-family: var(--mono); font-size: 15px; font-weight: 600; color: #1A150B;
  background: linear-gradient(180deg, #F5E4BB, #D7B163); box-shadow: 0 10px 22px -8px rgba(215, 177, 99, 0.7);
}
.claims { display: flex; flex-direction: column; gap: 7px; }
.claim { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.claim-body { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.claim-body b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.claim-body span { font-family: var(--mono); font-size: 11px; color: var(--tx-3); white-space: nowrap; }
.claim-btn {
  flex-shrink: 0; height: 30px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: linear-gradient(180deg, #F5E4BB, #D7B163); color: #1A150B; transition: transform 0.2s var(--ease-back);
}
.claim-btn:hover:not(:disabled) { transform: translateY(-1px); }
.claim-btn:disabled { background: rgba(255, 255, 255, 0.06); color: var(--tx-3); cursor: default; }
.claim.ready { border-color: rgba(232, 199, 122, 0.35); }

.report-top { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.gauge { position: relative; width: 170px; flex-shrink: 0; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.g-track, .g-fill { fill: none; stroke-width: 12; stroke-linecap: round; }
.g-track { stroke: rgba(255, 255, 255, 0.08); }
.g-fill { stroke: url(#gGrad); stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset 1.4s var(--ease-out); }
.gauge-num { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; }
.gauge-num b { font-family: var(--serif); font-weight: 500; font-size: 38px; line-height: 1; }
.gauge-num span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tx-3); margin-top: 3px; }
.report-kpis { flex: 1; display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.36fr) minmax(0, 0.94fr); gap: 8px; }
.report-kpis > div, .report-kpis > .kpi-btn { padding: 10px 8px; border-radius: 11px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; text-align: left; color: inherit; }
.report-kpis small { font-size: 11px; color: var(--tx-3); white-space: nowrap; }
.report-kpis b { font-family: var(--mono); font-size: clamp(13px, 1.35vw, 15px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.factors { display: flex; flex-direction: column; gap: 10px; }
.fx-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.fx-name { font-size: 12.5px; font-weight: 600; }
.fx-name small { font-weight: 400; color: var(--tx-3); margin-left: 5px; font-size: 10.5px; }
.fx-val { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.fx-bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.fx-bar i { display: block; height: 100%; border-radius: 4px; transition: width 1s var(--ease-out); }
.fx-tip { display: none; grid-column: 1 / -1; font-size: 11.5px; color: var(--tx-3); line-height: 1.45; margin-top: 1px; }
.factors.show-tips .fx-tip { display: block; }
.q-good { color: #5BC79A; } .q-good + .fx-bar i, .fx-bar i.q-good-bg { background: #3FB37F; }
.q-ok { color: #E2B964; } .fx-bar i.q-ok-bg { background: #D9A84E; }
.q-bad { color: #E07A70; } .fx-bar i.q-bad-bg { background: #C2504A; }

.recent-strip { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: none; }
.recent-strip::-webkit-scrollbar { display: none; }
.rc { flex: 0 0 auto; width: 164px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: transform 0.25s var(--ease-out); }
.rc:hover { transform: translateY(-4px); }
.rc img { width: 100%; aspect-ratio: 1.586; object-fit: cover; border-radius: 9px; box-shadow: 0 0 0 1.5px var(--tc, transparent), 0 10px 22px -10px rgba(0, 0, 0, 0.8); }
.rc span { font-size: 12.5px; color: var(--tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-line { color: var(--tx-3); font-size: 14px; padding: 20px 0; }

/* ================= DRAW ================= */
.view-draw { padding-bottom: 32px; overflow: hidden; overflow: clip; }
.type-bar { display: flex; gap: 8px; padding: 6px 16px 2px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.type-bar::-webkit-scrollbar { display: none; }
.type-pill {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); font-size: 13px; color: var(--tx-2); transition: all 0.2s; white-space: nowrap;
}
.type-pill .mini-env { width: 34px; border-radius: 3px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); }
.type-pill b { font-family: var(--mono); font-size: 12px; color: var(--tx); }
.type-pill:hover { border-color: var(--line-2); color: var(--tx); }
.type-pill.active { border-color: rgba(232, 199, 122, 0.6); background: rgba(232, 199, 122, 0.1); color: var(--tx); }

.stage { position: relative; min-height: calc(100dvh - 180px); display: grid; padding: 24px 16px; overflow: clip; overflow-clip-margin: 0; }
.stage > .env-scene, .stage > .letter-scene, .stage > .draw-empty { grid-area: 1 / 1; }
.rays {
  position: absolute; left: 50%; top: 42%; width: 1300px; height: 1300px; margin: -650px 0 0 -650px; z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--glow) 34%, transparent) 0deg 5deg, transparent 5deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.55) 22%, transparent 58%);
          mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.55) 22%, transparent 58%);
  opacity: 0; transform: scale(0.7); transition: opacity 0.8s, transform 1.2s var(--ease-out); pointer-events: none;
}
.rays.on { opacity: 0.5; transform: scale(1); animation: spin 40s linear infinite; }

.env-scene { align-self: center; display: flex; flex-direction: column; align-items: center; width: 100%; transition: opacity 0.55s ease, transform 0.7s var(--ease-out); }
.env-scene.leaving { opacity: 0; transform: translateY(120px) scale(0.94); pointer-events: none; }
.env-tilt { perspective: 1400px; transition: transform 0.35s ease-out; will-change: transform; }
.env-float { animation: float 6s ease-in-out infinite; }
.env-scene.arriving .env-float { animation: drop-in calc(0.95s * var(--anim-scale, 1)) var(--ease-out) both, float 6s ease-in-out calc(0.95s * var(--anim-scale, 1)) infinite; }

.envelope {
  position: relative; width: min(580px, 90vw); aspect-ratio: 1.9;
  container-type: inline-size; cursor: grab; user-select: none; touch-action: pan-y; -webkit-tap-highlight-color: transparent;
}
.envelope.opened { cursor: default; }
.envelope.rumble { animation: rumble 0.12s linear infinite; }
.envelope.nope { animation: nope 0.45s ease; }

.env-stack-back {
  display: none; position: absolute; inset: 0; border-radius: 7px; z-index: 0; pointer-events: none;
  background: linear-gradient(170deg, var(--paper), var(--paper-2)); border: 1px solid rgba(0, 0, 0, 0.14);
}
.envelope.bundle .env-stack-back { display: block; }
.envelope.bundle .env-stack-back.b1 { transform: translate(7px, -7px) rotate(1.6deg); filter: brightness(0.92); }
.envelope.bundle .env-stack-back.b2 { transform: translate(-8px, -13px) rotate(-2deg); filter: brightness(0.84); }
.env-back {
  position: absolute; inset: 0; z-index: 1; border-radius: 7px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--inside) 70%, #000), var(--inside));
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.8), 0 12px 26px -10px rgba(0, 0, 0, 0.5);
}
.env-glow {
  position: absolute; left: 10%; right: 10%; top: -30%; height: 60%; z-index: 2; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, var(--glow), transparent 68%);
  filter: blur(24px); opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.env-glow.pulse { animation: glow-pulse 0.9s ease-in-out infinite; }

.env-letter { position: absolute; left: 4%; right: 4%; top: 6%; bottom: 5%; z-index: 3; overflow: hidden; border-radius: 3px 3px 0 0; transition: transform calc(1s * var(--anim-scale, 1)) var(--ease-out); }
.env-letter.out { transform: translateY(-58%); }
.env-letter > .letter { position: absolute; left: 0; top: 0; transform-origin: 0 0; animation: none; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.18); }

.env-front {
  position: absolute; left: 0; right: 0; top: 13%; bottom: 0; z-index: 4; border-radius: 0 0 7px 7px;
  background: linear-gradient(172deg, var(--paper) 0%, var(--paper) 55%, var(--paper-2) 100%);
  color: var(--e-ink); padding: 3.4cqw 4.4cqw 0; display: flex; flex-direction: column;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}
.env-front::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px); background-size: 10px 10px;
}
.t-legend .env-front::after, .t-legend.envelope .tear-remain::after {
  background: linear-gradient(120deg, #FF9DE6, #7FE3FF 25%, #FFF08A 50%, #B79CFF 75%, #8AFFC8);
  background-size: 300% 300%; mix-blend-mode: soft-light; opacity: 0.9; animation: holo 5s linear infinite;
}
.envelope.torn .env-front::before {
  content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 6px;
  background: linear-gradient(-45deg, var(--paper) 3px, transparent 0), linear-gradient(45deg, var(--paper) 3px, transparent 0);
  background-size: 8px 6px; background-position: left bottom; background-repeat: repeat-x;
}

.ef-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 3cqw; }
.ef-sender { display: flex; align-items: center; gap: 1.8cqw; }
.ef-logo { height: 3.8cqw; width: auto; }
.t-business .ef-logo, .t-premium .ef-logo, .t-bilt .ef-logo { filter: brightness(0) invert(1); opacity: 0.85; }
.ef-sender b { display: block; font-size: 2.35cqw; font-weight: 700; letter-spacing: -0.01em; }
.ef-sender span { display: block; font-size: 1.5cqw; opacity: 0.65; margin-top: 0.3cqw; }
.ef-indicia {
  display: flex; flex-direction: column; align-items: center; padding: 0.8cqw 1.4cqw; border: 1.5px solid currentColor; border-radius: 2px;
  font-family: var(--mono); font-size: 1.2cqw; line-height: 1.35; letter-spacing: 0.05em; opacity: 0.75;
}
.ef-indicia b { font-size: 1.5cqw; margin-top: 0.2cqw; }
.ef-window {
  position: relative; z-index: 1; margin-top: 3cqw; width: 58%; padding: 2cqw 2.6cqw; border-radius: 4px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(240, 246, 252, 0.86));
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  color: #10223F; display: flex; flex-direction: column; gap: 0.5cqw;
}
.ef-barcode { width: 70%; height: 1.6cqw; color: #4A5566; opacity: 0.8; margin-bottom: 0.4cqw; }
.ef-kicker { font-family: var(--mono); font-size: 1.3cqw; font-weight: 600; letter-spacing: 0.06em; color: #2A5DA8; }
.ef-title { font-family: var(--serif); font-weight: 600; font-size: 3.4cqw; line-height: 1.15; }
.ef-sub { font-family: var(--mono); font-size: 1.45cqw; letter-spacing: 0.08em; color: #5D6878; }
.ef-band {
  position: absolute; left: 0; right: 0; bottom: 0; height: 13%; z-index: 1; padding: 0 4.4cqw; border-radius: 0 0 7px 7px;
  display: flex; align-items: center; justify-content: space-between; background: var(--band); color: var(--band-tx);
  font-family: var(--mono); font-size: 1.35cqw; font-weight: 600; letter-spacing: 0.18em;
}
.ef-count { font-size: 2.6cqw; letter-spacing: 0; }

.postmark {
  position: absolute; right: 5%; top: 30%; z-index: 2; display: flex; align-items: center;
  color: color-mix(in srgb, var(--e-ink) 55%, transparent); opacity: 0; transform: rotate(-12deg) scale(1.6); pointer-events: none;
}
.postmark .pm-waves { width: 17cqw; margin-right: -2.5cqw; }
.postmark .pm-ring { width: 14cqw; }
.postmark.show { animation: stamp 0.42s cubic-bezier(0.3, 1.4, 0.5, 1) forwards; }

/* Tear strip */
.tear { position: absolute; left: 0; right: 0; top: 0; height: 13%; z-index: 5; }
.tear-remain, .tear-peel {
  position: absolute; inset: 0; border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--paper) 94%, #000));
  border-bottom: 1.5px dashed color-mix(in srgb, var(--e-ink) 40%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.tear-remain::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.tear-peel { clip-path: inset(0 100% 0 0); box-shadow: 0 6px 10px rgba(0, 0, 0, 0.28); will-change: transform, clip-path; }
.tear-text { font-family: var(--mono); font-size: 1.45cqw; font-weight: 600; letter-spacing: 0.22em; color: var(--accent); opacity: 0.8; }
.tear-remain::before {
  content: ""; position: absolute; left: 1.6cqw; top: 50%; width: 3.2cqw; height: 3.2cqw; margin-top: -1.6cqw; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
  animation: breathe 1.8s ease-in-out infinite;
}

.env-shadow { width: min(480px, 74vw); height: 24px; margin-top: 24px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, 0.6), transparent 70%); filter: blur(6px); animation: shadow 6s ease-in-out infinite; }
.env-hint { margin-top: 14px; font-size: 13px; letter-spacing: 0.16em; color: var(--tx-3); animation: breathe 2.6s ease-in-out infinite; }
.pull-switch {
  margin-top: 16px; display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
}
.pull-btn {
  height: 36px; padding: 0 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--tx-2); transition: background 0.18s, color 0.18s; white-space: nowrap;
}
.pull-btn:hover { color: var(--tx); }
.pull-btn.active { background: linear-gradient(180deg, #F5E4BB, #D7B163); color: #1A150B; }
.pull-btn.short { opacity: 0.55; }
.pull-note {
  margin-top: 14px; padding: 6px 14px; border-radius: 999px; font-size: 12px; color: var(--tx-3);
  border: 1px solid var(--line); background: var(--panel); letter-spacing: 0.04em;
}

.draw-empty { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.draw-empty h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin-top: 18px; }
.draw-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.regen { font-family: var(--mono); font-size: 12px; color: var(--tx-3); }

/* ================= Letter ================= */
.letter-scene { align-self: start; position: relative; z-index: 3; width: 100%; display: flex; justify-content: center; padding-top: 8px; }
.letter {
  position: relative; width: min(560px, 100%);
  background:
    linear-gradient(180deg, transparent calc(33.3% - 1px), rgba(0, 0, 0, 0.03) 33.3%, transparent calc(33.3% + 1px)),
    linear-gradient(180deg, transparent calc(66.6% - 1px), rgba(0, 0, 0, 0.03) 66.6%, transparent calc(66.6% + 1px)),
    var(--letter);
  color: var(--ink); border-radius: 4px; padding: 40px 40px 36px;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.8), 0 18px 36px -14px rgba(0, 0, 0, 0.5);
}
.letter.wide { width: min(940px, 100%); }
.letter.xl { width: min(1100px, 100%); padding: 32px 28px 30px; }
.letter.unfold { transform-origin: 50% 0; animation: unfold calc(0.8s * var(--anim-scale, 1)) var(--ease-out) both; }
.letter.leaving { animation: letter-leave calc(0.42s * var(--anim-scale, 1)) cubic-bezier(0.4, 0, 0.2, 1) forwards; pointer-events: none; }
.letter.shake { animation: shake 0.4s ease; }

.lt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--hair); }
.lt-brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--navy); }
.lt-brand img { height: 16px; width: auto; }
.lt-date { font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-align: right; }
.lt-date b { color: var(--ink); font-weight: 600; }
.lt-kicker { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.lt-kicker.green { color: var(--green); }
.lt-kicker.red { color: var(--red); }

.preq { display: flex; flex-direction: column; align-items: center; text-align: center; }
.preq > .lt-kicker { margin-bottom: 20px; }
.offers { width: 100%; display: grid; gap: 22px; }
.offers.n1 { grid-template-columns: 1fr; }
.offers.n2 { grid-template-columns: repeat(2, 1fr); }
.offers.n3 { grid-template-columns: repeat(3, 1fr); }
.offers.many { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 14px; }
.offers.many .card-stage { margin-bottom: 10px; }
.offers.many .face { border-radius: 9px; }
.offers.many .tier { height: 20px; min-width: 34px; padding: 0 7px; font-size: 10.5px; }
.offers.many .lt-name { font-size: 14.5px; margin-bottom: 8px; min-height: 2.5em; line-height: 1.25; }
.offers.many .figs { margin-bottom: 10px; }
.offers.many .figs > div { padding: 7px 2px; }
.offers.many .figs small { font-size: 10px; }
.offers.many .figs b { font-size: 11.5px; }
.offers.many .offer-date { font-size: 10.5px; margin-bottom: 8px; }
.offers.many .btn.sm { height: 34px; padding: 0 16px; font-size: 12.5px; width: 100%; }
.offers.many .offer-status { height: 34px; font-size: 11px; }
.preq-bar {
  width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 18px;
}
.preq-bar-note { font-size: 12.5px; color: var(--ink-2); }
.flip-all-btn {
  height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid #D7D0C2;
  font-size: 12.5px; font-weight: 600; color: var(--navy); transition: background 0.15s;
}
.flip-all-btn:hover { background: rgba(16, 34, 63, 0.06); }
.offer { display: flex; flex-direction: column; align-items: center; min-width: 0; }

.card-stage { position: relative; width: 100%; max-width: 380px; margin-bottom: 18px; perspective: 1200px; }
.card-stage::before { content: ""; position: absolute; inset: 8% 4% -6%; border-radius: 20px; background: var(--tc, var(--glow)); filter: blur(26px); opacity: 0; transition: opacity 0.6s; }
.card-stage.revealed::before { opacity: 0.55; }
.burst { position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--tc, var(--glow)); transform: translate(-50%, -50%) scale(0.2); opacity: 0; pointer-events: none; z-index: 3; }
.card-stage.revealed .burst { animation: burst 0.8s var(--ease-out); }
.flip { position: relative; z-index: 1; width: 100%; aspect-ratio: 1.586; transform-style: preserve-3d; transition: transform calc(0.85s * var(--anim-scale, 1)) cubic-bezier(0.5, 0.02, 0.2, 1); cursor: pointer; }
.flip.flipped { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 22px 40px -16px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.15); }
.face.front { transform: rotateY(180deg); }
.face.front img { width: 100%; height: 100%; object-fit: cover; }
.face.front .sheen {
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 58%; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.44) 50%, rgba(255, 255, 255, 0.08) 75%, transparent 100%);
  transform: translateX(-160%) skewX(-22deg);
  animation: sheen calc(3.4s * var(--anim-scale, 1)) linear 0.6s infinite;
  mix-blend-mode: soft-light; will-change: transform;
}
.cardback {
  background: radial-gradient(circle at 50% 50%, rgba(201, 165, 92, 0.22), transparent 55%), repeating-linear-gradient(135deg, rgba(201, 165, 92, 0.12) 0 1px, transparent 1px 10px), linear-gradient(135deg, #142a4d, #0b1830);
  display: grid; place-items: center;
}
.cardback img { width: 22%; height: auto; opacity: 0.9; }
.cardback span { position: absolute; bottom: 9%; font-family: var(--mono); font-size: 10px; letter-spacing: 0.4em; color: rgba(232, 199, 122, 0.7); }
.flip-hint { font-size: 12px; color: var(--ink-3); margin: -6px 0 14px; min-height: 16px; }

.reveal-info { width: 100%; display: flex; flex-direction: column; align-items: center; transition: opacity 0.5s, transform 0.5s var(--ease-out); }
.reveal-info.hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }
.tier-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tier { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 24px; padding: 0 9px; border-radius: 999px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; color: #fff; background: var(--tier-c, #9AA0AA); white-space: nowrap; }
.tier-UR { --tier-c: linear-gradient(135deg, #B8892E, #F0CF72 50%, #B8892E); color: #2A1E05; }
.tier-SSR { --tier-c: linear-gradient(135deg, #6E57E0, #A893FF); }
.tier-SR { --tier-c: linear-gradient(135deg, #2F6FD8, #6AA6FF); }
.tier-R { --tier-c: #5F918A; }
.tier-N { --tier-c: #A3A7AF; }
.tag-mute { font-size: 11px; color: var(--ink-3); border: 1px solid var(--hair); border-radius: 999px; padding: 2px 8px; }
.tag-new { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; color: #fff; background: #D9534F; border-radius: 999px; padding: 3px 8px; animation: pop 0.5s var(--ease-back); }
.lt-name { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 4vw, 31px); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 10px; }
.forum-note {
  font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-bottom: 16px; max-width: 44ch;
  padding: 5px 12px; border-radius: 8px; background: rgba(16, 34, 63, 0.045); border: 1px solid rgba(16, 34, 63, 0.07);
}
.cd-issuer { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.offers:not(.n1) .lt-name { font-size: 19px; margin-bottom: 12px; min-height: 2.3em; display: flex; align-items: center; }
.figs { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-bottom: 20px; }
.figs > div { padding: 12px 4px; display: flex; flex-direction: column; gap: 3px; }
.figs > div + div { border-left: 1px solid var(--hair); }
.figs small { font-size: 11px; color: var(--ink-3); }
.figs b { font-size: 14.5px; font-weight: 600; line-height: 1.3; word-break: break-word; }
.offers:not(.n1) .figs b { font-size: 12.5px; }
.offer-date { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-bottom: 12px; }
.offer-date b { color: var(--ink); }
.offer-status { height: 46px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; }
.offer-status.ok { color: var(--green); }
.offer-status.no { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 30px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 10px 24px -10px rgba(16, 34, 63, 0.7); transition: transform 0.18s var(--ease-back), background 0.18s;
}
.btn:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn.sm { height: 44px; padding: 0 24px; font-size: 14px; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px;
  border: 1px solid #D7D0C2; color: var(--ink); font-size: 14.5px; font-weight: 600; transition: border-color 0.18s, background 0.18s;
}
.btn-ghost:hover { border-color: var(--ink-2); background: rgba(0, 0, 0, 0.03); }
.btn-ghost:disabled { opacity: 0.45; cursor: default; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.preq .offers.n1 .btn { min-width: 240px; }
.links { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 13px; color: var(--ink-3); }
.links a:hover, .links button:hover { color: var(--ink); }

.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 48px); align-items: start; }
.result-main .lt-kicker { margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; }
.result-main .lt-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.congrats { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 62px); line-height: 1.02; letter-spacing: -0.03em; color: var(--navy); margin-bottom: 12px; }
.congrats span { display: inline-block; }
.letter.live .congrats span { animation: letter-pop 0.6s var(--ease-back) both; }
.subhead { font-size: clamp(19px, 2.4vw, 24px); font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px; }
.delivery { font-size: 15px; color: var(--ink-2); margin-bottom: 26px; }
.bonus { position: relative; padding: 22px 24px 24px; border-radius: 12px; background: #F4F0E7; border: 1px solid #E5DECF; overflow: hidden; }
.bonus::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--glow); opacity: 0.25; filter: blur(30px); }
.bonus-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.bonus-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-3); }
.bonus-hero { position: relative; z-index: 1; font-family: var(--sans); font-weight: 700; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-wrap: balance; }
.bonus-sub { position: relative; z-index: 1; margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.pts-earn { font-family: var(--mono); font-weight: 600; color: #8C6A1E; background: rgba(232, 199, 122, 0.25); border-radius: 999px; padding: 3px 10px; }
.bonus.b-N .bonus-hero { color: #7C818B; font-size: clamp(24px, 3.4vw, 34px); }
.bonus.b-UR { background: linear-gradient(135deg, #FBF3DE, #FFFBF1 55%, #F6E7BF); border-color: #E2C77E; }
.bonus.b-UR .bonus-hero { color: #6E4B0B; }
.bonus.b-UR::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 52%; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.78) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-22deg);
  animation: sheen calc(2.8s * var(--anim-scale, 1)) linear infinite;
  will-change: transform;
}
.bonus.b-SSR { background: linear-gradient(135deg, #F1EDFF, #FBFAFF); border-color: #D6CCFA; }
.bonus.b-SR { background: linear-gradient(135deg, #EDF3FD, #FAFCFF); border-color: #CADBF6; }

.result-card { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.slot { position: relative; width: 100%; aspect-ratio: 1.586; }
.slot .card-img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; box-shadow: 0 22px 40px -16px rgba(0, 0, 0, 0.55); }
.slot.burning .card-img, .slot.burned .card-img { opacity: 0; }
.slot.burned { border-radius: 13px; border: 1.5px dashed #D4CCBC; background: repeating-linear-gradient(45deg, #F5F1EA 0 8px, #EFEAE0 8px 16px); }
.slot.burned::after { content: "已化成灰"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; color: #A39B8C; }
.ash-canvas { position: absolute; inset: -26px; width: calc(100% + 52px); height: calc(100% + 52px); z-index: 4; pointer-events: none; }
.stamp {
  position: absolute; left: 50%; top: 50%; z-index: 5; padding: 6px 16px; border: 3px solid var(--red); border-radius: 4px; color: var(--red);
  background: rgba(251, 248, 242, 0.85); font-family: var(--mono); font-size: 18px; font-weight: 600; letter-spacing: 0.2em;
  opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(1.8); transition: opacity 0.22s, transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1); pointer-events: none;
}
.stamp.slam { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); }
.stamp.fade { opacity: 0; transition: opacity 0.5s; }
.rc-name { font-size: 14px; font-weight: 600; text-align: center; }
.decline-h { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.1; letter-spacing: -0.02em; color: var(--navy); margin-bottom: 22px; }
.reason { border-left: 3px solid var(--red); padding: 4px 0 4px 16px; margin-bottom: 24px; }
.reason b { display: block; font-size: 15.5px; color: var(--red); margin-bottom: 4px; }
.reason p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.recon-line { margin-top: 16px; min-height: 20px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.recon-line.calling::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green); animation: breathe 1s ease-in-out infinite; }
.recon-line.danger { color: var(--red); font-weight: 600; }

/* Recon Counter-Offer Box (same-issuer lower-tier card + random bonus) */
.counter-offer {
  margin-top: 16px; padding: 16px 18px; border-radius: 12px;
  background: linear-gradient(135deg, #F4F0E5, #FBF8F1); border: 1.5px solid #D9C48E;
  display: flex; flex-direction: column; gap: 12px; animation: view-in 0.35s var(--ease-out);
}
.co-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.co-kicker { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: #8C6A1E; }
.co-body { display: flex; align-items: center; gap: 14px; }
.co-body img { width: 108px; aspect-ratio: 1.586; object-fit: cover; border-radius: 8px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.45); flex-shrink: 0; }
.co-info { flex: 1; min-width: 0; }
.co-info b { display: block; font-size: 15px; font-weight: 600; color: var(--navy); margin: 4px 0 3px; }
.co-bonus { font-size: 13px; color: var(--ink-2); }
.co-bonus strong { color: #7C540B; font-weight: 700; }
.co-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.co-actions .btn, .co-actions .btn-ghost { height: 38px; padding: 0 18px; font-size: 13px; }

/* Referral Return Receipt Box (ACK code) */
.ack-box {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: rgba(30, 122, 85, 0.08); border: 1px solid rgba(30, 122, 85, 0.25);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12.5px; color: var(--ink-2);
}
.ack-box code { font-family: var(--mono); font-weight: 600; color: var(--green); background: rgba(255, 255, 255, 0.75); padding: 3px 8px; border-radius: 6px; }
.ack-copy { height: 28px; padding: 0 12px; border-radius: 999px; background: var(--green); color: #fff; font-size: 12px; font-weight: 600; }
.lt-foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.ledger { display: flex; flex-wrap: wrap; gap: 26px; }
.ledger div { display: flex; flex-direction: column; gap: 3px; }
.ledger small { font-size: 11.5px; color: var(--ink-3); }
.ledger b { font-family: var(--mono); font-size: 13.5px; font-weight: 600; }
.ledger .down { color: var(--red); }
.ledger .up { color: var(--green); }
.result .actions { justify-content: flex-start; }

/* ================= DEX ================= */
.dex-bars { display: flex; gap: 16px; flex-wrap: wrap; }
.db { display: flex; flex-direction: column; gap: 6px; min-width: 76px; }
.db small { font-family: var(--mono); font-size: 11px; color: var(--tx-3); display: flex; justify-content: space-between; gap: 8px; }
.db small b { color: var(--tx); font-weight: 600; }
.db div { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.db div i { display: block; height: 100%; background: var(--bc); border-radius: 4px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 24px; }
.f-btn { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 12.5px; font-weight: 500; color: var(--tx-2); transition: all 0.18s; }
.f-btn:hover { color: var(--tx); border-color: var(--line-2); }
.f-btn.active { color: #15130F; background: var(--tx); border-color: var(--tx); }
.f-sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.dex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 20px 16px; }
.dx { display: flex; flex-direction: column; gap: 8px; cursor: pointer; min-width: 0; }
.dx-art { position: relative; aspect-ratio: 1.586; border-radius: 10px; overflow: hidden; transition: transform 0.25s var(--ease-out), box-shadow 0.25s; box-shadow: 0 0 0 1px var(--line); }
.dx:hover .dx-art { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 0 0 1.5px var(--tc), 0 16px 30px -12px rgba(0, 0, 0, 0.8); }
.dx-art img { width: 100%; height: 100%; object-fit: cover; }
.dx.locked .dx-art { background: linear-gradient(135deg, #171A21, #0F1116); }
.dx.locked .dx-art::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 38px; color: rgba(255, 255, 255, 0.12); }
.dx.locked { cursor: default; }
.dx.locked:hover .dx-art { transform: none; box-shadow: 0 0 0 1px var(--line); }
.dx-own { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #1E7A55; color: #fff; }
.dx-meta { display: flex; align-items: center; gap: 7px; min-width: 0; }
.dx-meta .tier { height: 19px; min-width: 32px; padding: 0 6px; font-size: 10px; }
.dx-meta span:last-child { font-size: 12.5px; color: var(--tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx.locked .dx-meta span:last-child { color: var(--tx-3); }

/* ================= TROPHY ================= */
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tr { position: relative; display: flex; gap: 14px; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform 0.2s var(--ease-out), border-color 0.2s; }
.tr:hover { transform: translateY(-2px); border-color: var(--line-2); }
.tr-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: rgba(255, 255, 255, 0.05); filter: grayscale(1); opacity: 0.55; }
.tr-body { min-width: 0; flex: 1; }
.tr-name { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.tr-desc { font-size: 12.5px; color: var(--tx-3); line-height: 1.45; margin-bottom: 10px; }
.tr-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.tr-bar i { display: block; height: 100%; background: var(--tx-3); border-radius: 4px; }
.tr-foot { display: flex; justify-content: space-between; margin-top: 7px; font-family: var(--mono); font-size: 11px; color: var(--tx-3); }
.tr.done { border-color: rgba(232, 199, 122, 0.35); background: linear-gradient(135deg, rgba(232, 199, 122, 0.1), rgba(255, 255, 255, 0.02)); }
.tr.done .tr-icon { filter: none; opacity: 1; background: linear-gradient(135deg, rgba(240, 207, 114, 0.3), rgba(184, 137, 46, 0.15)); }
.tr.done .tr-bar i { background: linear-gradient(90deg, #B8892E, #F0CF72); }
.tr.done .tr-foot span:last-child { color: var(--gold-2); }

/* ================= MARKET ================= */
.market-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.shop { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); transition: transform 0.25s var(--ease-out), border-color 0.25s; }
.shop:hover { transform: translateY(-3px); border-color: var(--line-2); }
.shop-vis { height: 104px; display: grid; place-items: center; position: relative; }
.shop-vis .mini-env { width: 170px; transition: transform 0.4s var(--ease-back); }
.shop:hover .shop-vis .mini-env { transform: rotate(-4deg) scale(1.05); }
.shop-qty { position: absolute; right: 10%; top: 6px; font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(232, 199, 122, 0.16); color: var(--gold-2); border: 1px solid rgba(232, 199, 122, 0.35); }
.shop-icon { font-size: 52px; line-height: 1; transition: transform 0.4s var(--ease-back); }
.shop:hover .shop-icon { transform: rotate(-8deg) scale(1.1); }
.shop-name { font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shop-name small { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--tx-3); }
.shop-desc { font-size: 12.5px; color: var(--tx-3); line-height: 1.5; min-height: 36px; }
.shop-odds { display: flex; flex-wrap: wrap; gap: 5px; }
.shop-odds span { font-family: var(--mono); font-size: 10.5px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--tx-2); }
.shop-buy-row { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop-buy-row.single { grid-template-columns: 1fr; }
.buy-btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; background: linear-gradient(180deg, #F5E4BB, #D7B163); color: #1A150B; font-family: var(--mono); font-size: 12.5px; font-weight: 600; transition: transform 0.18s var(--ease-back); white-space: nowrap; }
.buy-btn.ten { background: rgba(232, 199, 122, 0.14); border: 1px solid rgba(232, 199, 122, 0.45); color: var(--gold-2); }
.buy-btn:hover { transform: translateY(-1px); }
.buy-btn.poor { background: rgba(255, 255, 255, 0.08); border-color: transparent; color: var(--tx-3); cursor: not-allowed; }
.sell-note { font-size: 13px; color: var(--tx-3); margin-bottom: 18px; }
.sell-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sell { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.sell img { width: 92px; aspect-ratio: 1.586; object-fit: cover; border-radius: 7px; flex-shrink: 0; }
.sell-info { flex: 1; min-width: 0; }
.sell-info b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sell-info span { font-family: var(--mono); font-size: 11.5px; color: var(--tx-3); }
.sell-btn { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(232, 199, 122, 0.4); color: var(--gold-2); font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.sell-btn:hover { background: rgba(232, 199, 122, 0.12); }
.sell.gone { animation: sold 0.5s ease forwards; }

/* ================= Referral Hub (Market -> Refer 推荐) ================= */
.refer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.refer-panel h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.refer-desc { font-size: 13px; color: var(--tx-2); line-height: 1.55; margin-bottom: 16px; }
.refer-desc code { font-family: var(--mono); font-size: 12px; color: var(--gold-2); background: rgba(232, 199, 122, 0.1); padding: 1px 6px; border-radius: 5px; }
.refer-input-row { display: flex; gap: 8px; }
.refer-input {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--tx);
  font-family: var(--mono); font-size: 12.5px; outline: none;
}
.refer-input:focus { border-color: var(--gold); }
.refer-redeem-btn { height: 42px; padding: 0 22px; font-size: 13.5px; }
.refer-hint { margin-top: 10px; font-size: 12.5px; color: var(--tx-3); min-height: 18px; }
.refer-hint.ok { color: #5BC79A; }
.refer-hint.err { color: #E07A70; }
.refer-my-list { display: flex; flex-direction: column; gap: 10px; max-height: 440px; overflow-y: auto; }
.refer-card-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
}
.refer-card-row img { width: 76px; aspect-ratio: 1.586; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.refer-card-info { flex: 1; min-width: 0; }
.refer-card-info b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.refer-card-info span { font-family: var(--mono); font-size: 11px; color: var(--tx-3); }
.refer-gen-btns { display: flex; gap: 6px; flex-shrink: 0; }
.refer-mini-btn {
  height: 30px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  border: 1px solid rgba(232, 199, 122, 0.4); color: var(--gold-2); background: rgba(232, 199, 122, 0.08);
  transition: background 0.15s; white-space: nowrap;
}
.refer-mini-btn:hover { background: rgba(232, 199, 122, 0.2); }
.cd-refer-row { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sell-claw { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 600; background: rgba(163, 40, 58, 0.22); color: #F08A96; border: 1px solid rgba(230, 120, 135, 0.35); }
.egg-pill { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 600; background: rgba(16, 34, 63, 0.08); color: var(--navy); }
.egg-pill.gold { background: rgba(232, 199, 122, 0.28); color: #7C540B; }
.egg-pill.red { background: rgba(163, 40, 58, 0.12); color: var(--red); }

/* ================= Bank Event Modal (Anniversary Retention & FR 4506-C) ================= */
.ev-box { padding: 28px 26px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.ev-box .ev-card { width: min(260px, 80%); aspect-ratio: 1.586; object-fit: cover; border-radius: 12px; box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.45); }
.ev-box h2 { font-family: var(--serif); font-size: clamp(22px, 3.6vw, 28px); font-weight: 500; color: var(--navy); line-height: 1.15; }
.ev-box p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; max-width: 44ch; }
.ev-result { width: 100%; padding: 12px 14px; border-radius: 10px; background: rgba(16, 34, 63, 0.05); border: 1px solid var(--hair); font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.ev-result.ok { background: rgba(30, 122, 85, 0.09); border-color: rgba(30, 122, 85, 0.28); color: var(--green); font-weight: 600; }
.ev-result.bad { background: rgba(163, 40, 58, 0.09); border-color: rgba(163, 40, 58, 0.28); color: var(--red); font-weight: 600; }
.ev-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; margin-top: 4px; }
.ev-actions .btn, .ev-actions .btn-ghost { height: 42px; padding: 0 20px; font-size: 13.5px; }

/* ================= Data / Offline Transfer Code & 3-Step Reset ================= */
.data-box { padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 20px; }
.data-head { text-align: center; padding: 0 36px; }
.data-head h2 { font-family: var(--serif); font-size: clamp(24px, 4vw, 30px); font-weight: 500; margin-top: 2px; }
.data-sec {
  padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px;
}
.data-sec.danger { border-color: rgba(230, 120, 135, 0.28); background: rgba(163, 40, 58, 0.07); }
.data-sec h3 { font-size: 15px; font-weight: 600; color: var(--tx); }
.data-sec p { font-size: 12.5px; color: var(--tx-2); line-height: 1.55; }
.data-sec p b { color: var(--gold-2); }
.data-sec code { font-family: var(--mono); font-size: 11.5px; color: var(--gold-2); background: rgba(232, 199, 122, 0.12); padding: 1px 6px; border-radius: 5px; }
.data-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px;
  background: rgba(163, 40, 58, 0.85); color: #fff; font-size: 13px; font-weight: 600; border: 1px solid rgba(255, 140, 155, 0.35);
  transition: background 0.18s, opacity 0.18s;
}
.btn-danger:hover:not(:disabled) { background: #C23247; }
.btn-danger:disabled { opacity: 0.38; cursor: not-allowed; }
.reset-step-box { padding: 12px 14px; border-radius: 10px; background: rgba(163, 40, 58, 0.14); border: 1px solid rgba(230, 120, 135, 0.35); display: flex; flex-direction: column; gap: 10px; }
.reset-step-box p { color: #F5C2C9; font-weight: 500; }

/* Full-screen Offline Handoff Lock Overlay */
.offline-screen {
  position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(ellipse at 50% 35%, rgba(28, 36, 54, 0.96), rgba(9, 11, 16, 0.99));
  backdrop-filter: blur(14px); overflow-y: auto;
}
.offline-card {
  width: min(620px, 100%); padding: 32px 28px; border-radius: 20px; text-align: center;
  background: linear-gradient(165deg, #161B26, #0E1118); border: 1px solid rgba(232, 199, 122, 0.3);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.75); display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.offline-card h1 { font-family: var(--serif); font-size: clamp(26px, 4.5vw, 34px); font-weight: 500; }
.offline-card p { font-size: 13.5px; color: var(--tx-2); line-height: 1.55; max-width: 48ch; }
.xfer-code-box {
  width: 100%; max-height: 130px; padding: 12px 14px; border-radius: 12px; resize: none;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(232, 199, 122, 0.35); color: var(--gold-2);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.45; word-break: break-all; outline: none;
}
.offline-import-area { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ================= Sheet ================= */
.sheet { width: min(560px, calc(100vw - 24px)); max-height: min(88dvh, 820px); padding: 0; border: 0; border-radius: 16px; background: var(--letter); color: var(--ink); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6); overscroll-behavior: contain; overflow-y: auto; }
.sheet:modal { overscroll-behavior: contain; }
.sheet[open] { animation: unfold 0.45s var(--ease-out); }
.sheet::backdrop { background: rgba(5, 6, 9, 0.72); backdrop-filter: blur(6px); overflow: hidden; overscroll-behavior: contain; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: rgba(255, 255, 255, 0.7); }
.cd { padding: 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cd .card-img { width: min(360px, 100%); aspect-ratio: 1.586; object-fit: cover; border-radius: 14px; box-shadow: 0 22px 40px -16px rgba(0, 0, 0, 0.55); margin-bottom: 20px; }

/* ================= Post Office Sorting Hub Dialog ================= */
.sheet-dark {
  width: min(680px, calc(100vw - 24px));
  background: linear-gradient(165deg, #141822 0%, #0D1017 100%);
  color: var(--tx); border: 1px solid rgba(232, 199, 122, 0.22);
}
.sheet-wide { width: min(820px, calc(100vw - 24px)); }

/* Home Credit Panel Quick Tools + Clickable 5/24 KPI */
.kpi-btn {
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.kpi-btn:hover { border-color: rgba(232, 199, 122, 0.5); background: rgba(232, 199, 122, 0.08); }
.kpi-btn small { color: var(--gold); text-decoration: underline dotted rgba(232, 199, 122, 0.45); text-underline-offset: 3px; }
.report-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.rt-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--tx); background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.rt-btn:hover { border-color: rgba(232, 199, 122, 0.5); background: rgba(232, 199, 122, 0.09); color: var(--gold-2); }
.rt-btn.pulse {
  border-color: rgba(232, 199, 122, 0.55); color: var(--gold-2);
  background: rgba(232, 199, 122, 0.1); box-shadow: 0 0 18px -6px rgba(232, 199, 122, 0.55);
}
.sell-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.sell-head-row .sell-note { margin-bottom: 0; flex: 1 1 320px; }
.shrink-0 { flex-shrink: 0; }

/* Settings Language Segmented Switch */
.lang-seg {
  display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  border-radius: 999px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); width: fit-content;
}
.lang-seg button {
  height: 34px; padding: 0 20px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--tx-2); transition: background 0.2s, color 0.2s;
}
.lang-seg button.active {
  background: linear-gradient(135deg, #F0CF72, #C49438); color: #1A1407;
  box-shadow: 0 4px 12px -4px rgba(232, 199, 122, 0.5);
}

/* Draw Rest Lock Screen — Full-bleed Centered Frosted Veil Covering #typeBar + #stage */
.rest-veil {
  position: fixed; left: 0; right: 0; top: 64px; bottom: 0; z-index: 45;
  display: grid; place-items: center; padding: 24px 18px;
  background: radial-gradient(ellipse at 50% 45%, rgba(20, 25, 38, 0.82), rgba(8, 10, 15, 0.92));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.rest-veil[hidden] { display: none; }
.rest-card {
  width: min(440px, 100%); padding: 30px 26px; border-radius: 22px; text-align: center;
  background: linear-gradient(165deg, rgba(24, 29, 41, 0.96), rgba(14, 17, 24, 0.98));
  border: 1px solid rgba(232, 199, 122, 0.34); box-shadow: 0 34px 70px rgba(0, 0, 0, 0.65);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.rest-card h2 { font-family: var(--serif); font-size: clamp(26px, 4.5vw, 32px); font-weight: 500; }
.rest-card .regen { font-size: 13.5px; color: var(--tx-2); line-height: 1.55; max-width: 34ch; margin-bottom: 4px; }
.rest-orb {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 32px;
  background: radial-gradient(circle at 35% 30%, rgba(240, 207, 114, 0.24), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(232, 199, 122, 0.45); box-shadow: 0 14px 36px -12px rgba(0, 0, 0, 0.65);
}

/* Floating Top-Layer Recon Script Roll Modal */
.recon-roll-sheet {
  width: min(500px, calc(100vw - 24px));
  background: radial-gradient(ellipse at 50% 0%, #242117 0%, #12151E 55%, #0B0E14 100%);
  border: 1px solid rgba(240, 207, 114, 0.45);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 60px -18px rgba(240, 207, 114, 0.45);
}
.recon-roll-sheet::backdrop { background: rgba(5, 7, 11, 0.78); backdrop-filter: blur(8px); }
.rc-roll-box { padding: 30px 26px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.rc-roll-box h2 { font-family: var(--serif); font-size: clamp(24px, 4.5vw, 30px); font-weight: 500; color: #F7EBD0; }
.rc-roll-sub { font-size: 13px; color: var(--tx-2); }
.rc-roll-big {
  font-family: var(--mono); font-size: clamp(42px, 8vw, 56px); font-weight: 700; line-height: 1;
  background: linear-gradient(180deg, #FFF5D1 0%, #F0C75E 55%, #B88625 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 22px rgba(240, 199, 94, 0.45));
  margin: 4px 0;
}
.rc-roll-meter { width: 100%; position: relative; padding: 12px 0 8px; }
.rc-roll-track {
  position: relative; height: 34px; border-radius: 999px; overflow: hidden;
  background: linear-gradient(90deg, #253146 0%, #3A5678 32%, #7D6224 66%, #E4B94E 90%, #FFE48F 100%);
  border: 1px solid rgba(255, 240, 195, 0.28);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.55), 0 0 24px -8px rgba(240, 199, 94, 0.35);
}
.rc-roll-ticks {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: rgba(255, 255, 255, 0.88); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65); pointer-events: none;
}
.rc-roll-needle {
  position: absolute; top: 4px; bottom: 2px; left: 5%; width: 5px; margin-left: -2.5px;
  border-radius: 999px; background: #FFFBF0;
  box-shadow: 0 0 0 2px rgba(24, 18, 6, 0.8), 0 0 18px 3px rgba(255, 224, 130, 0.95);
  z-index: 3; will-change: left;
}
.rc-roll-needle::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 8px solid #FFE28A;
}
.rc-roll-calc {
  font-family: var(--mono); font-size: 13px; color: var(--tx-2); min-height: 20px;
}
.rc-roll-calc b { color: #67E2A5; font-size: 15px; }

/* Concise Event & Result Bullet Lists */
.ev-bullets {
  margin: 8px 0 2px; padding-left: 18px; text-align: left;
  display: flex; flex-direction: column; gap: 5px; font-size: 13px; line-height: 1.48;
}
.ev-bullets li b { color: inherit; font-weight: 700; }

/* Credit Builder Locked Apply Button & Bold Hint on Pre-Q Letter */
.btn.bld-locked, .btn:disabled {
  background: #C9C3B7; color: #6B665D; border-color: transparent;
  box-shadow: none; cursor: not-allowed; opacity: 0.72;
}
.bld-lock-hint {
  margin-top: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: #145338; background: rgba(63, 179, 127, 0.16); border: 1px solid rgba(63, 179, 127, 0.42);
  display: inline-block; line-height: 1.35;
}
.preq-boost-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #7C5205; background: rgba(240, 199, 94, 0.28);
  border: 1px solid rgba(212, 165, 58, 0.55); margin: -6px 0 14px;
}

/* Zero-AF Sock-Drawer Keep-Alive Banner on Home */
.sock-banner {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 13px;
  background: rgba(217, 168, 78, 0.08); border: 1px solid rgba(217, 168, 78, 0.34);
  display: flex; flex-direction: column; gap: 8px;
}
.sock-banner-head { font-size: 12.5px; font-weight: 600; color: var(--gold-2); }
.sock-list { display: flex; flex-direction: column; gap: 6px; }
.sock-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 10px; border-radius: 9px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line);
}
.sock-item span { font-size: 12px; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sock-swipe-btn {
  flex-shrink: 0; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: linear-gradient(135deg, #F0CF72, #C49438); color: #1A1407;
}
.sock-swipe-btn:hover { filter: brightness(1.08); }

/* Refer Monthly Quota Line */
.refer-cap {
  font-family: var(--mono); font-size: 11.5px; color: var(--gold-2); margin-bottom: 10px;
}

/* Arcade Canvas Mini-Games inside Bank Lounge */
.arcade-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.arcade-hint { font-size: 12.5px; color: var(--tx-2); text-align: center; line-height: 1.45; }
.arcade-canvas {
  width: 100%; max-width: 560px; height: auto; display: block; border-radius: 14px;
  border: 1px solid rgba(232, 199, 122, 0.28); background: #0D1119;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.7); touch-action: none; cursor: pointer;
}
.arcade-canvas.snake { max-width: 440px; }
.arcade-ctrls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.arc-btn {
  height: 40px; padding: 0 20px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--tx); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2);
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.arc-btn.primary { background: linear-gradient(135deg, #F0CF72, #C49438); color: #1A1407; border-color: transparent; }
.arc-btn:active { transform: scale(0.96); }
.dpad { display: grid; grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(2, 42px); gap: 6px; }
.dpad button {
  border-radius: 11px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-2);
  color: var(--tx); font-size: 16px; font-weight: 700; display: grid; place-items: center;
  touch-action: manipulation; user-select: none;
}
.dpad button:active { background: rgba(232, 199, 122, 0.24); color: var(--gold-2); }
.dpad .up { grid-column: 2; grid-row: 1; }
.dpad .left { grid-column: 1; grid-row: 2; }
.dpad .down { grid-column: 2; grid-row: 2; }
.dpad .right { grid-column: 3; grid-row: 2; }
.arcade-result {
  width: 100%; padding: 11px 14px; border-radius: 11px; text-align: center; font-size: 13px;
  color: var(--tx); background: rgba(232, 199, 122, 0.09); border: 1px solid rgba(232, 199, 122, 0.3);
}
.arcade-result b { color: var(--gold-2); }

/* Issuer Cooldown Calendar Dialog */
.cal-box { padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 18px; }
.cal-head { padding-right: 44px; }
.cal-head h2 { font-family: var(--serif); font-size: clamp(24px, 4vw, 32px); font-weight: 500; margin-top: 2px; }
.cal-sub { font-size: 13px; color: var(--tx-2); margin-top: 4px; font-family: var(--mono); }
.cal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cal-card {
  padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px;
}
.cal-card.st-danger { border-color: rgba(230, 108, 108, 0.42); background: rgba(194, 80, 74, 0.08); }
.cal-card.st-warn { border-color: rgba(232, 199, 122, 0.42); background: rgba(217, 168, 78, 0.06); }
.cal-card.st-ok { border-color: rgba(63, 179, 127, 0.26); }
.cal-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-issuer { font-weight: 600; font-size: 14px; color: var(--tx); }
.cal-issuer small { font-family: var(--mono); font-size: 11px; color: var(--tx-3); margin-left: 6px; font-weight: 500; }
.cal-badge {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
}
.cal-badge.ok { background: rgba(63, 179, 127, 0.16); color: #67D9A2; }
.cal-badge.warn { background: rgba(217, 168, 78, 0.18); color: var(--gold-2); }
.cal-badge.danger { background: rgba(224, 90, 90, 0.2); color: #FF9A9A; }
.cal-metric { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cal-metric b { font-family: var(--mono); font-size: 18px; color: var(--tx); }
.cal-metric span { font-family: var(--mono); font-size: 11.5px; color: var(--gold-2); }
.cal-note { font-size: 12px; color: var(--tx-2); line-height: 1.45; }

.cal-tl-sec { display: flex; flex-direction: column; gap: 10px; }
.cal-tl-sec h3 { font-size: 14px; font-weight: 600; color: var(--gold-2); letter-spacing: 0.04em; }
.cal-tl {
  display: flex; flex-direction: column; gap: 8px; position: relative; padding-left: 16px;
  border-left: 2px solid rgba(232, 199, 122, 0.22);
}
.cal-ev {
  position: relative; padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.cal-ev::before {
  content: ''; position: absolute; left: -22px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: var(--tx-3); border: 2px solid #121620;
}
.cal-ev.crit { border-color: rgba(232, 199, 122, 0.45); background: rgba(232, 199, 122, 0.08); }
.cal-ev.crit::before { background: var(--gold-2); box-shadow: 0 0 10px rgba(240, 199, 94, 0.8); }
.cal-ev-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-ev-left b { font-size: 13px; color: var(--tx); }
.cal-ev-left span { font-size: 11.5px; color: var(--tx-2); }
.cal-ev-right { text-align: right; font-family: var(--mono); flex-shrink: 0; }
.cal-ev-right strong { display: block; font-size: 13.5px; color: var(--gold-2); }
.cal-ev-right small { font-size: 10.5px; color: var(--tx-3); }

/* Recon Horizontal Probability Gauge & Script Dice Strip (Inside Light Paper Result Letter) */
.recon-gauge-box {
  margin-top: 16px; padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(160deg, #171B24, #0F1219); color: #F2ECE1;
  border: 1px solid rgba(212, 174, 96, 0.38); box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.35);
  display: flex; flex-direction: column; gap: 14px;
  animation: unfold 0.36s var(--ease-out);
}
.rg-block { display: flex; flex-direction: column; gap: 7px; }
.rg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.rg-head b { color: #F5DF9F; font-weight: 600; letter-spacing: 0.02em; }
.rg-head span { font-family: var(--mono); font-size: 11.5px; color: #C2C8D4; }
.rg-script-track {
  position: relative; height: 28px; border-radius: 999px; overflow: hidden;
  background: linear-gradient(90deg, #273042 0%, #3E536E 45%, #8D6A23 80%, #E7BE59 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.rg-script-ticks {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  color: rgba(255, 255, 255, 0.78); pointer-events: none;
}
.rg-track-wrap { position: relative; padding: 8px 0 4px; }
.rg-track {
  position: relative; height: 26px; border-radius: 999px; overflow: hidden; display: flex;
  background: #232732; border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}
.rg-seg { height: 100%; transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1); position: relative; }
.rg-seg.win { background: linear-gradient(90deg, #218B5B, #3CCB8A); }
.rg-seg.alt { background: linear-gradient(90deg, #C78A28, #EBB753); }
.rg-seg.dhp { background: linear-gradient(90deg, #8F2B6B, #C43D72); }
.rg-seg.deny { background: linear-gradient(90deg, #6A252C, #9B2E38); }
.rg-needle {
  position: absolute; top: 0; bottom: 0; left: 0%; width: 4px; margin-left: -2px;
  background: #FFF9E6; border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(24, 20, 12, 0.75), 0 0 14px 2px rgba(245, 211, 114, 0.95);
  pointer-events: none; z-index: 3; will-change: left;
}
.rg-needle::before {
  content: ''; position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid #F5D57C;
}
.rg-needle.script { top: -2px; bottom: -2px; }
.rg-legend {
  display: flex; flex-wrap: wrap; gap: 6px 12px; font-family: var(--mono); font-size: 11px; color: #C5CBD6;
}
.rg-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.rg-legend .c-win { background: #3CCB8A; }
.rg-legend .c-alt { background: #EBB753; }
.rg-legend .c-dhp { background: #C43D72; }
.rg-legend .c-deny { background: #9B2E38; }
.rg-status { font-size: 12.5px; font-weight: 600; color: #F5DF9F; min-height: 18px; }
.rg-status.ok { color: #67E2A5; }
.rg-status.bad { color: #FF9C9C; }

/* Bank Lounge Mini-Games Dialog */
.lounge-box { padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 16px; }
.lounge-head { padding-right: 44px; }
.lounge-head h2 { font-family: var(--serif); font-size: clamp(24px, 4vw, 32px); font-weight: 500; margin-top: 2px; }
.lounge-sub { font-size: 13px; color: var(--tx-2); line-height: 1.5; margin-top: 4px; }
.lounge-cap {
  font-family: var(--mono); font-size: 11.5px; color: var(--gold-2);
  padding: 9px 14px; border-radius: 10px; background: rgba(232, 199, 122, 0.08);
  border: 1px solid rgba(232, 199, 122, 0.24);
}
.lounge-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.lounge-stage {
  padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-height: 220px;
}
.lg-meta { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--tx-3); }
.lg-prompt {
  padding: 16px 18px; border-radius: 12px; background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lg-prompt small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 5px; }
.lg-prompt b { font-size: 16px; line-height: 1.45; color: var(--tx); }
.lg-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lg-opt {
  padding: 12px 14px; border-radius: 12px; text-align: left; font-size: 13px; font-weight: 500;
  color: var(--tx); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  transition: border-color 0.18s, background 0.18s, transform 0.12s;
}
.lg-opt:hover:not(:disabled) { border-color: rgba(232, 199, 122, 0.55); background: rgba(232, 199, 122, 0.1); transform: translateY(-1px); }
.lg-opt.good { border-color: #3FB37F; background: rgba(63, 179, 127, 0.18); color: #A6F0CB; }
.lg-opt.bad { border-color: #D45858; background: rgba(212, 88, 88, 0.18); color: #FFB3B3; }
.lg-fb { font-size: 13px; line-height: 1.5; min-height: 20px; color: var(--tx-2); }
.lg-fb.good { color: #7EE4B1; }
.lg-fb.bad { color: #FF9D9D; }
.lg-summary {
  padding: 18px; border-radius: 14px; text-align: center;
  background: rgba(232, 199, 122, 0.08); border: 1px solid rgba(232, 199, 122, 0.3);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.lg-summary p { font-size: 14.5px; color: var(--tx); line-height: 1.5; }
.lg-summary b { color: var(--gold-2); }
.ev-warn { font-size: 11.5px; color: #9C4E12; background: rgba(217, 168, 78, 0.16); padding: 7px 12px; border-radius: 8px; margin-bottom: 10px; line-height: 1.45; }
.sheet-close.dark { background: rgba(255, 255, 255, 0.08); color: var(--tx-2); }
.sheet-close.dark:hover { background: rgba(255, 255, 255, 0.15); color: var(--tx); }
.post-box { padding: 28px 26px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.post-title { font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); font-weight: 500; line-height: 1.1; margin-bottom: 8px; }
.post-sub { font-size: 13.5px; color: var(--tx-2); margin-bottom: 18px; line-height: 1.5; }
.post-sub b { color: var(--gold-2); font-weight: 600; }
.post-odds {
  width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  margin-bottom: 20px;
}
.po-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; color: var(--tx-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
}
.po-pill b { font-family: var(--mono); font-size: 11px; color: var(--tx); }
.po-pill.r-epic { border-color: rgba(168, 147, 255, 0.35); color: #CFC4FF; }
.po-pill.r-legend { border-color: rgba(240, 199, 94, 0.5); color: var(--gold-2); background: rgba(240, 199, 94, 0.08); }

.post-drop {
  width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin-bottom: 22px;
}
.post-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px 12px;
  border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line);
  animation: post-pop 0.48s var(--ease-back) both;
}
.post-item .mini-env { width: 104px; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.75); }
.post-item b { font-size: 12.5px; font-weight: 600; color: var(--tx); line-height: 1.25; }
.post-rarity { font-family: var(--mono); font-size: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--tx-3); }
.post-item.r-rare { border-color: rgba(91, 155, 255, 0.35); }
.post-item.r-rare .post-rarity { background: rgba(91, 155, 255, 0.16); color: #8CBCFF; }
.post-item.r-epic { border-color: rgba(168, 147, 255, 0.5); background: linear-gradient(155deg, rgba(160, 139, 255, 0.12), rgba(255, 255, 255, 0.03)); }
.post-item.r-epic .post-rarity { background: rgba(168, 147, 255, 0.22); color: #D4C8FF; }
.post-item.r-legend { border-color: rgba(240, 199, 94, 0.7); background: linear-gradient(155deg, rgba(240, 199, 94, 0.18), rgba(160, 139, 255, 0.08)); box-shadow: 0 0 24px -8px rgba(240, 199, 94, 0.55); }
.post-item.r-legend .post-rarity { background: linear-gradient(135deg, #B8892E, #F0CF72); color: #241905; font-weight: 700; }

.post-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.post-timer-line { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--tx-3); min-height: 16px; }
@keyframes post-pop { from { opacity: 0; transform: translateY(16px) scale(0.86); } to { opacity: 1; transform: none; } }

/* ================= Overlays ================= */
.tier-slam { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; pointer-events: none; font-family: var(--serif); font-weight: 600; font-style: italic; font-size: clamp(110px, 22vw, 260px); letter-spacing: -0.04em; color: transparent; opacity: 0; }
.tier-slam.go { animation: slam 1.2s var(--ease-out) forwards; }
.tier-slam.UR { background: linear-gradient(180deg, #FFF3C4, #E8B840 60%, #A87A1E); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 40px rgba(240, 199, 94, 0.55)); }
.tier-slam.SSR { background: linear-gradient(180deg, #F0EAFF, #A893FF 60%, #6447D6); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 40px rgba(160, 139, 255, 0.55)); }
.flash { position: fixed; inset: 0; z-index: 94; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash 0.7s ease-out; }
.flash.gold { background: radial-gradient(circle, #FFF6D8, #F0C75E 60%, transparent); }
.trophy-banner {
  position: fixed; left: 50%; top: 80px; z-index: 110; display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; border-radius: 999px;
  background: linear-gradient(135deg, #2A2213, #16130C); border: 1px solid rgba(232, 199, 122, 0.5); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -140px); opacity: 0; transition: transform 0.55s var(--ease-back), opacity 0.3s; pointer-events: none;
}
.trophy-banner.show { transform: translate(-50%, 0); opacity: 1; }
.tb-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, #F0CF72, #B8892E); }
.tb-text small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; color: var(--gold); }
.tb-text b { font-size: 15px; font-weight: 600; color: #F7EBD0; }
.tb-pts { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--gold-2); margin-left: 6px; }
.fly { position: fixed; z-index: 120; left: 0; top: 0; pointer-events: none; font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--gold-2); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); white-space: nowrap; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 96; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 130; transform: translate(-50%, 14px); padding: 11px 20px; border-radius: 999px; background: rgba(237, 231, 220, 0.96); color: var(--ink); font-size: 13.5px; font-weight: 500; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.dock { display: none; }

/* ================= Keyframes ================= */
@keyframes view-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.92); opacity: 0.75; } }
@keyframes breathe { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes spin { to { transform: scale(1) rotate(360deg); } }
@keyframes holo { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
@keyframes letter-pop { from { opacity: 0; transform: translateY(0.4em) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes drop-in { 0% { transform: translateY(-75vh) rotate(-8deg); } 70% { transform: translateY(10px) rotate(1.5deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes rumble { 0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-2px, 1px) rotate(-0.6deg); } 50% { transform: translate(2px, -1px) rotate(0.6deg); } 75% { transform: translate(-1px, -1px) rotate(-0.3deg); } 100% { transform: translate(1px, 1px) rotate(0.3deg); } }
@keyframes nope { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@keyframes glow-pulse { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-12deg) scale(1.6); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes unfold { 0% { opacity: 0; transform: translateY(70px) rotateX(-28deg) scale(0.94); } 100% { opacity: 1; transform: none; } }
@keyframes letter-leave { 0% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-56px) scale(0.96); } }
@keyframes sheen {
  0% { transform: translateX(-160%) skewX(-22deg); }
  58% { transform: translateX(300%) skewX(-22deg); }
  100% { transform: translateX(300%) skewX(-22deg); }
}
@keyframes burst { 0% { opacity: 1; transform: translate(-50%, -50%) scale(0.2); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(3.2); border-width: 1px; } }
@keyframes slam { 0% { opacity: 0; transform: scale(2.6); } 22% { opacity: 1; transform: scale(0.95); } 32% { transform: scale(1.02); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12); } }
@keyframes flash { 0% { opacity: 0.8; } 100% { opacity: 0; } }
@keyframes sold { to { opacity: 0; transform: translateX(30px) scale(0.96); } }

/* Global Animation Speed Modes (Slow / Normal / Fast / None) */
:root { --anim-scale: 1; }
:root[data-speed="slow"] { --anim-scale: 1.5; }
:root[data-speed="fast"] { --anim-scale: 0.45; }
:root[data-speed="none"] { --anim-scale: 0.001; }
:root[data-speed="none"] *, :root[data-speed="none"] *::before, :root[data-speed="none"] *::after {
  animation-duration: 0.01ms !important;
  animation-delay: 0ms !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0ms !important;
}
:root[data-speed="none"] .face.front .sheen,
:root[data-speed="none"] .bonus.b-UR::before { display: none; }

/* Settings 4-Way Animation Speed Switch */
.speed-seg {
  display: inline-grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px;
  border-radius: 999px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); width: min(360px, 100%);
}
.speed-seg button {
  height: 34px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--tx-2); transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.speed-seg button.active {
  background: linear-gradient(135deg, #F0CF72, #C49438); color: #1A1407;
  box-shadow: 0 4px 12px -4px rgba(232, 199, 122, 0.5);
}

/* Mailbox Capacity & Limited-Time Expiry Badges */
.cap-pill {
  font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); color: var(--tx-2); border: 1px solid var(--line); margin-left: 8px;
}
.cap-pill.full { background: rgba(224, 90, 90, 0.18); border-color: rgba(224, 90, 90, 0.45); color: #FF9A9A; }
.type-exp {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; padding: 1px 6px; border-radius: 999px;
  background: rgba(232, 174, 72, 0.2); color: #F5CE75; border: 1px solid rgba(232, 174, 72, 0.4);
}
.type-exp.urgent { background: rgba(224, 90, 90, 0.22); color: #FFA2A2; border-color: rgba(224, 90, 90, 0.45); }
.env-exp-badge {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 4px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  background: rgba(232, 174, 72, 0.14); color: #F5D27F; border: 1px solid rgba(232, 174, 72, 0.4);
}
.env-exp-badge.urgent { background: rgba(224, 90, 90, 0.16); color: #FF9E9E; border-color: rgba(224, 90, 90, 0.45); }

/* USCCG Credit Builder Low-Score Rescue Banner & Modal */
.builder-banner {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 13px;
  background: linear-gradient(145deg, rgba(63, 179, 127, 0.14), rgba(232, 199, 122, 0.08));
  border: 1px solid rgba(63, 179, 127, 0.4); display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.builder-banner.active {
  background: linear-gradient(145deg, rgba(232, 199, 122, 0.14), rgba(63, 179, 127, 0.10));
  border-color: rgba(232, 199, 122, 0.45);
}
.builder-banner-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.builder-banner-info b { font-size: 13px; color: var(--tx); }
.builder-banner-info span { font-size: 11.5px; color: var(--tx-2); line-height: 1.4; }
.bld-box { padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 16px; }
.bld-head { padding-right: 44px; }
.bld-head h2 { font-family: var(--serif); font-size: clamp(24px, 4vw, 31px); font-weight: 500; margin-top: 2px; }
.bld-card-art {
  width: min(320px, 100%); aspect-ratio: 1.586; margin: 0 auto; border-radius: 15px; padding: 18px 20px;
  background: linear-gradient(135deg, #163229 0%, #0E1F2A 55%, #1E2534 100%);
  border: 1px solid rgba(114, 219, 170, 0.45); box-shadow: 0 22px 42px -16px rgba(0, 0, 0, 0.7);
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.bld-card-art::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 217, 162, 0.28), transparent 70%);
}
.bld-art-top { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: #9DE5C2; letter-spacing: 0.12em; }
.bld-art-mid { font-family: var(--serif); font-size: 21px; font-weight: 500; color: #F4EFE4; }
.bld-art-bot { display: flex; align-items: flex-end; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: rgba(244, 239, 228, 0.72); }
.bld-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bld-panel {
  padding: 14px 16px; border-radius: 13px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.bld-panel.pros { border-color: rgba(63, 179, 127, 0.35); }
.bld-panel.cons { border-color: rgba(230, 120, 135, 0.35); }
.bld-panel h4 { font-size: 13px; font-weight: 600; color: var(--tx); }
.bld-panel ul { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--tx-2); line-height: 1.45; }
.bld-prog {
  padding: 14px 16px; border-radius: 13px; background: rgba(232, 199, 122, 0.08); border: 1px solid rgba(232, 199, 122, 0.3);
  display: flex; flex-direction: column; gap: 8px;
}
.bld-prog-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bld-prog-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3FB37F, #F0CF72); border-radius: 999px; transition: width 0.4s; }

/* Activity & Audit Log Modal */
.log-box { padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 14px; }
.log-head { padding-right: 44px; }
.log-head h2 { font-family: var(--serif); font-size: clamp(24px, 4vw, 31px); font-weight: 500; margin-top: 2px; }
.log-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.log-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.log-list {
  display: flex; flex-direction: column; gap: 6px; max-height: 46dvh; overflow-y: auto;
  padding: 10px; border-radius: 13px; background: rgba(0, 0, 0, 0.34); border: 1px solid var(--line);
}
.log-row {
  padding: 9px 11px; border-radius: 9px; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex; flex-direction: column; gap: 4px; font-size: 12.5px;
}
.log-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; color: var(--tx-3); }
.log-cat { padding: 1px 7px; border-radius: 999px; font-weight: 600; background: rgba(255, 255, 255, 0.07); color: var(--tx-2); }
.log-cat.c-apply, .log-cat.c-recon { background: rgba(91, 155, 255, 0.16); color: #95C3FF; }
.log-cat.c-credit { background: rgba(63, 179, 127, 0.16); color: #7EE4B1; }
.log-cat.c-event { background: rgba(224, 90, 90, 0.18); color: #FF9E9E; }
.log-cat.c-market, .log-cat.c-mail { background: rgba(232, 199, 122, 0.16); color: var(--gold-2); }
.log-msg { color: var(--tx); line-height: 1.45; word-break: break-word; }
.log-deltas { display: flex; gap: 8px; font-family: var(--mono); font-size: 11px; }
.log-deltas .pos { color: #67D9A2; }
.log-deltas .neg { color: #FF9494; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ================= Responsive ================= */
@media (max-width: 1240px) { .hide-sm { display: none; } }
@media (max-width: 900px) {
  .top { grid-template-columns: auto 1fr; }
  .nav { display: none; }
  .home-grid { grid-template-columns: 1fr; }
  .refer-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .result-card { max-width: 340px; width: 100%; margin: 0 auto; }
  .lt-foot { flex-direction: column; align-items: stretch; }
  .result .actions .btn, .result .actions .btn-ghost { flex: 1 1 auto; }
  .offers.n2, .offers.n3 { grid-template-columns: 1fr; }
  .offers.many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offers:not(.n1):not(.many) .card-stage { max-width: 320px; }
  .view { padding-bottom: 110px; }
  .dock {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; left: 12px; right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60; height: 64px; padding: 0 6px 8px; border-radius: 22px;
    background: rgba(20, 22, 28, 0.86); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  .dock a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; color: var(--tx-3); }
  .dock a svg { width: 22px; height: 22px; }
  .dock a.active { color: var(--gold-2); }
  .dock-orb { width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; color: #1A150B; background: linear-gradient(180deg, #F5E4BB, #D7B163); box-shadow: 0 10px 24px -6px rgba(215, 177, 99, 0.7), 0 0 0 5px var(--bg); }
  .toast { bottom: 96px; }
  .rest-veil { top: 60px; bottom: 86px; }
}
@media (max-width: 560px) {
  .top { height: 60px; padding: 0 12px; gap: 8px; }
  .brand { gap: 7px; }
  .brand img { height: 17px; }
  .brand span { font-size: 16px; }
  .top-actions { gap: 5px; }
  .chip { height: 30px; padding: 0 8px; gap: 5px; font-size: 12px; }
  .chip b { font-size: 11.5px; }
  .view { padding-top: 76px; }
  .balance { text-align: left; }
  .report-top { flex-direction: column; }
  .report-kpis { width: 100%; }
  .letter { padding: 22px 16px 24px; }
  .letter.xl { padding: 20px 14px 22px; }
  .offers.many { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .claim-body { flex-direction: column; align-items: flex-start; gap: 2px; }
  .preq .offers.n1 .btn { width: 100%; }
  .ledger { gap: 18px; }
  .dex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .rc { width: 140px; }
  .trophy-banner { width: calc(100vw - 24px); top: 70px; }
  .stage { min-height: calc(100dvh - 220px); }
  .ef-window { width: 70%; }
  .post-box { padding: 22px 16px 20px; }
  .post-drop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .post-item .mini-env { width: 88px; }
  .co-body { flex-direction: column; align-items: flex-start; }
  .refer-card-row { flex-wrap: wrap; }
  .cal-grid { grid-template-columns: 1fr; }
  .lg-opts { grid-template-columns: 1fr; }
  .bld-grid { grid-template-columns: 1fr; }
  .cal-box, .lounge-box, .bld-box, .log-box { padding: 22px 16px 20px; }
  .builder-banner { flex-direction: column; align-items: flex-start; }
}

/* ==================== FIRST-TIME ONBOARDING GUIDE ==================== */
.guide-sheet {
  width: min(580px, calc(100vw - 24px));
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}
@media (prefers-reduced-motion: no-preference) {
  .guide-sheet { transform: translateY(10px) scale(0.97); }
}
.guide-sheet[open] {
  animation: none;
  opacity: 1;
}
@starting-style {
  .guide-sheet[open] { opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .guide-sheet[open] { transform: translateY(0) scale(1); }
  @starting-style {
    .guide-sheet[open] { transform: translateY(10px) scale(0.97); }
  }
}
.guide-sheet::backdrop {
  background: rgba(5, 6, 9, 0);
  transition-property: background-color, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}
.guide-sheet[open]::backdrop {
  background: rgba(5, 6, 9, 0.78);
}
@starting-style {
  .guide-sheet[open]::backdrop { background: rgba(5, 6, 9, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .guide-sheet, .guide-sheet::backdrop { transition-duration: 0.1s; }
}

.guide-box { padding: 24px 26px 24px; }
.guide-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.guide-lang {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.guide-lang button {
  height: 26px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  color: var(--tx-2); transition: background 0.15s, color 0.15s;
}
.guide-lang button.active { background: var(--gold); color: #12100b; }
.guide-step-pill {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em;
  color: var(--tx-3); padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
}
.guide-close-btn {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); color: var(--tx-2); font-size: 13px;
}
.guide-close-btn:hover { background: rgba(255, 255, 255, 0.16); color: var(--tx); }

.guide-hero {
  position: relative; overflow: hidden;
  border-radius: 14px; padding: 20px 18px; margin-bottom: 18px;
  border: 1px solid rgba(232, 198, 122, 0.22);
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(232, 198, 122, 0.18), transparent 60%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.guide-mini-env {
  width: 156px; height: 92px; border-radius: 9px; position: relative;
  background: linear-gradient(145deg, #f8f2e4, #e5dac2);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(232, 198, 122, 0.45);
  display: flex; flex-direction: column; justify-content: space-between; padding: 10px 12px;
  color: #1c1914;
}
.guide-mini-env .gme-strip {
  height: 11px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, rgba(169, 134, 62, 0.28) 0 8px, transparent 8px 12px);
  border-bottom: 1px dashed rgba(169, 134, 62, 0.55);
}
.guide-mini-env .gme-brand {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--serif); font-size: 12.5px; font-weight: 600;
}
.guide-mini-env .gme-seal {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #f0cf7b, #c5983e); color: #1a150b;
  font-size: 11px; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.guide-mini-env .gme-win {
  height: 18px; border-radius: 4px; background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(28, 25, 20, 0.14); font-family: var(--mono);
  font-size: 9px; display: flex; align-items: center; padding: 0 7px; color: #544b3c;
  letter-spacing: 0.06em;
}
.guide-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 7px;
}
.guide-pill {
  padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(11, 13, 18, 0.65);
  color: var(--tx); display: inline-flex; align-items: center; gap: 5px;
}
.guide-pill.gold {
  border-color: rgba(232, 198, 122, 0.45); color: var(--gold);
  background: rgba(232, 198, 122, 0.1);
}
.guide-pill.green {
  border-color: rgba(74, 212, 138, 0.4); color: #6ce5a3;
  background: rgba(74, 212, 138, 0.1);
}
.guide-pill.blue {
  border-color: rgba(91, 155, 255, 0.4); color: #8cbaff;
  background: rgba(91, 155, 255, 0.1);
}
.guide-score-badge {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 18px; border-radius: 12px;
  background: rgba(11, 13, 18, 0.75); border: 1px solid rgba(74, 212, 138, 0.35);
}
.guide-score-badge small { font-family: var(--mono); font-size: 10.5px; color: var(--tx-3); letter-spacing: 0.12em; }
.guide-score-badge b { font-family: var(--serif); font-size: 30px; line-height: 1; color: #6ce5a3; }

.guide-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--gold); margin-bottom: 6px;
}
.guide-title {
  font-family: var(--serif); font-size: 25px; line-height: 1.25; font-weight: 500;
  color: var(--tx); margin: 0 0 14px;
}
.guide-list {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: grid; gap: 10px;
}
.guide-list li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13.5px; line-height: 1.55; color: var(--tx-2);
}
.guide-list li b { color: var(--tx); font-weight: 600; }
.guide-ico {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(232, 198, 122, 0.12); color: var(--gold); font-size: 14px;
}

.guide-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.guide-dots { display: flex; align-items: center; gap: 7px; }
.guide-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.2); transition: width 0.2s, background 0.2s;
}
.guide-dot.active { width: 22px; background: var(--gold); }
.guide-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 560px) {
  .guide-box { padding: 18px 16px 18px; }
  .guide-title { font-size: 21px; }
  .guide-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .guide-dots { justify-content: center; }
  .guide-actions { justify-content: space-between; }
}

