/* URBANOVA DISTRICTS · homepage v2
   Studio layout: oversized display hero, dark specimen card holding
   a living isometric city plate, hairline stat bands, cream consoles,
   cartography captions. Interactive layer: plate tilt, tile tooltip,
   growth pulse, district drawer, day-rhythm claim clock. */

.hero { max-width: 1220px; margin: 0 auto; padding: clamp(18px, 3vw, 34px) var(--pad) 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.chip { background: var(--ink); color: var(--paper); font-family: var(--font-m); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; padding: 7px 13px; border-radius: 999px; }
.chip.dim { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); }

/* ===== cinematic hero panel: contemporary district at dusk ===== */
.hero2 {
  position: relative; border-radius: clamp(22px, 3.4vw, 36px); overflow: hidden;
  min-height: min(82vh, 780px); display: flex; align-items: flex-end;
  background: var(--dark); isolation: isolate;
  box-shadow: 0 60px 100px -50px rgba(60, 25, 8, .7);
}
.hero2-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; z-index: -2; }
.hero2-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(29,19,13,.38) 0%, rgba(29,19,13,0) 26%),
    linear-gradient(0deg, rgba(29,19,13,.88) 0%, rgba(29,19,13,.45) 34%, rgba(29,19,13,0) 62%),
    linear-gradient(96deg, rgba(29,19,13,.42) 0%, rgba(29,19,13,0) 55%);
}
.hero2-in { width: 100%; padding: clamp(120px, 16vh, 190px) clamp(20px, 4.4vw, 54px) clamp(24px, 3.4vw, 40px); }
.hero2 .chips { margin-bottom: 18px; }
.hero2 .chip { background: var(--org-2); color: var(--ink); box-shadow: 0 3px 0 var(--org-3); }
.hero2 .chip.dim { background: rgba(29,19,13,.42); color: var(--paper); border: 1px solid rgba(251,243,232,.4); box-shadow: none; backdrop-filter: blur(6px); }
.hero2 h1 { font-size: clamp(50px, 9.2vw, 118px); line-height: .9; letter-spacing: -.045em; max-width: 1020px; color: var(--paper); text-shadow: 0 4px 34px rgba(29,19,13,.35); }
.hero2 .sub { font-size: clamp(15.5px, 1.55vw, 18.5px); line-height: 1.55; color: rgba(251,243,232,.86); max-width: 540px; margin: 18px 0 0; }
.hero2 .sub b, .hero2 .sub strong { color: var(--paper); }
.live-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 26px;
  background: rgba(29,19,13,.55); border: 1px solid rgba(244,166,110,.35); border-radius: 20px;
  backdrop-filter: blur(10px); overflow: hidden;
}
.live-strip .ls { padding: 15px 18px 17px; min-width: 0; }
.live-strip .ls + .ls { border-left: 1px solid rgba(251,243,232,.13); }
.live-strip .ls b { display: block; font-family: var(--font-d); font-weight: 800; font-size: clamp(23px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.02; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-strip .ls span { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--org-2); }
@media (max-width: 759px) { .live-strip .ls:nth-child(3) { border-left: 0; } .live-strip .ls:nth-child(n+3) { border-top: 1px solid rgba(251,243,232,.13); } }
@media (min-width: 760px) { .live-strip { grid-template-columns: repeat(4, 1fr); } }
.hero2 .cta-row { margin-top: 22px; }
.btn.ghost.light { background: rgba(29,19,13,.35); color: var(--paper); border-color: rgba(251,243,232,.55); backdrop-filter: blur(6px); }
.btn.ghost.light:hover { background: rgba(29,19,13,.55); color: var(--paper); }
@media (max-width: 640px) {
  .hero2 { min-height: 0; }
  .hero2-in { padding-top: 96px; }
  .hero2 h1 { font-size: clamp(41px, 11.6vw, 58px); }
}

/* ===== specimen stage: dark card, key visual first ===== */
.stage { position: relative; margin: clamp(26px, 4vw, 44px) 0 0; perspective: 1600px; }
.stage-glow { position: absolute; inset: 4% 10% auto; height: 62%; background: radial-gradient(closest-side, rgba(244,166,110,.42), transparent); filter: blur(22px); pointer-events: none; }
.stage-frame {
  position: relative; background: var(--dark); border-radius: 30px; padding: 14px 14px 0;
  box-shadow: 0 50px 90px -42px rgba(60, 25, 8, .65), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  transform-style: preserve-3d; will-change: transform;
}
.sp-pin {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); z-index: 4;
  background: var(--org-2); color: var(--ink); font-family: var(--font-m); font-weight: 700;
  font-size: 11px; letter-spacing: .12em; padding: 6px 16px; border-radius: 0 0 12px 12px;
  box-shadow: 0 3px 0 var(--org-3); white-space: nowrap;
}
.stage-frame canvas { display: block; width: 100%; height: auto; border-radius: 20px; background: #f7ead3; cursor: pointer; touch-action: manipulation; }
.sp-tick { position: absolute; font-family: var(--font-m); font-size: 10px; letter-spacing: .1em; color: rgba(247,233,210,.5); z-index: 3; pointer-events: none; }
.sp-tick.tl { top: 24px; left: 26px; } .sp-tick.tr { top: 24px; right: 26px; }
.sp-foot { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 10px; padding: 17px 10px 19px; color: var(--paper); }
.sp-foot span { display: grid; gap: 3px; font-family: var(--font-d); font-weight: 700; font-size: clamp(14px, 2.4vw, 17px); letter-spacing: -.01em; min-width: 0; }
.sp-foot span:nth-child(2) { text-align: center; }
.sp-foot span:last-child { text-align: right; }
.sp-foot i { font-style: normal; font-family: var(--font-b); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: rgba(251,243,232,.45); font-weight: 600; }
.stage-caption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-family: var(--font-m); font-size: 11.5px; color: var(--mute); }
.stage-caption b { color: var(--ink-2); font-weight: 700; }

/* tile tooltip + growth pulse chips */
.tile-tip {
  position: absolute; z-index: 6; pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 14px)) scale(.96);
  background: var(--ink); color: var(--paper); border-radius: 12px; padding: 9px 12px;
  font-family: var(--font-m); font-size: 11.5px; line-height: 1.45; white-space: nowrap;
  box-shadow: 0 16px 30px -14px rgba(42,29,21,.6); transition: opacity .18s, transform .22s var(--spring);
}
.tile-tip.on { opacity: 1; transform: translate(-50%, calc(-100% - 14px)) scale(1); }
.tile-tip b { display: block; font-family: var(--font-d); font-size: 13.5px; letter-spacing: -.01em; }
.tile-tip span { color: var(--org-2); }
.growth-chip {
  position: absolute; z-index: 6; pointer-events: none; opacity: 0;
  background: var(--org-2); color: var(--ink); font-family: var(--font-d); font-weight: 800;
  font-size: 15px; padding: 8px 15px; border-radius: 999px; box-shadow: 0 14px 28px -12px rgba(201,109,52,.7);
  transform: translate(-50%, -50%);
}
.growth-chip.show { animation: growthRise 1.8s var(--ease) forwards; }
@keyframes growthRise {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(.8); }
  14% { opacity: 1; transform: translate(-50%, -70%) scale(1.05); }
  26% { transform: translate(-50%, -78%) scale(1); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -150%) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .growth-chip.show { animation-duration: .01s; } }

/* ===== verdict gauge ===== */
.gauge { background: var(--cream); border: 1px solid var(--line); border-radius: 26px; padding: clamp(18px, 2.6vw, 26px); margin-top: 22px; box-shadow: 0 1px 0 #fff inset, 0 30px 60px -42px rgba(80, 40, 15, .35); }
.gauge-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.gauge-head .gauge-live { font-family: var(--font-m); font-weight: 400; font-size: 12.5px; color: var(--ink-2); }
.gauge-head .gauge-live b { color: var(--ink); }
.gauge-tube { position: relative; height: 14px; border-radius: 999px; background: var(--paper-3); overflow: visible; }
.gauge-fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: linear-gradient(90deg, var(--org-2), var(--org-3)); border-radius: 999px; transition: width .9s var(--ease); min-width: 0; }
.gauge-needle { position: absolute; top: -7px; width: 3px; height: 28px; background: var(--ink); border-radius: 2px; left: 0%; transition: left .9s var(--ease); }
.gauge-needle::after { content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top: 7px solid var(--ink); }
.gauge .mark { position: absolute; top: 0; width: 2px; height: 100%; background: rgba(251,243,232,.85); }
.gauge .mark.m25 { left: 8.33%; } .gauge .mark.m100 { left: 33.33%; }
.gauge-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; font-family: var(--font-m); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); flex-wrap: wrap; }
.gauge-note { font-size: 13.5px; color: var(--ink-2); margin: 10px 0 0; max-width: 72ch; }

/* ===== stat bands (hairline facts style) ===== */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 26px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.stats .stat { padding: 20px 18px 22px; min-width: 0; }
.stats .stat + .stat { border-left: 1px solid var(--line); }
@media (max-width: 759px) { .stats .stat:nth-child(3) { border-left: 0; } .stats .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat b { display: block; font-family: var(--font-d); font-weight: 800; font-size: clamp(24px, 3.4vw, 38px); letter-spacing: -.03em; line-height: 1.02; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { display: block; margin-top: 5px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.ledger { display: grid; grid-template-columns: 1fr; margin-top: 0; border-bottom: 1px solid var(--line-2); background: rgba(255,250,243,.55); }
.ledger .stat { padding: 16px 18px 18px; min-width: 0; }
.ledger .stat b { font-size: clamp(20px, 2.8vw, 30px); }
.claim-stats .stat b { font-size: clamp(19px, 2.3vw, 28px); white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.04; }
@media (min-width: 760px) { .ledger { grid-template-columns: repeat(3, 1fr); } .ledger .stat + .stat { border-left: 1px solid var(--line); } }
@media (max-width: 759px) { .ledger .stat + .stat { border-top: 1px solid var(--line); } }
.board-note { font-size: 14.5px; color: var(--ink-2); background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--org-2); padding: 13px 16px; border-radius: 0 14px 14px 0; margin: 18px 0 0; max-width: 76ch; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* ===== facts band ===== */
.facts-band { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-top: clamp(52px, 7vw, 84px); }
.facts-in { max-width: 1220px; margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(2, 1fr); }
.facts-in span { display: grid; gap: 3px; padding: 22px 18px 24px; font-size: 13px; color: var(--mute); min-width: 0; }
.facts-in span + span { border-left: 1px solid var(--line); }
.facts-in b { font-family: var(--font-d); font-weight: 800; font-size: clamp(19px, 2.2vw, 27px); letter-spacing: -.02em; color: var(--ink); line-height: 1.05; }
@media (max-width: 759px) { .facts-in span:nth-child(odd) { border-left: 0; padding-left: 0; } .facts-in span:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (min-width: 760px) { .facts-in { grid-template-columns: repeat(5, 1fr); } .facts-in span:first-child { padding-left: 0; } .facts-in span:last-child { padding-right: 0; } }

/* ===== sections ===== */
.sec { max-width: 1220px; margin: 0 auto; padding: clamp(72px, 9vw, 118px) var(--pad) 6px; }
.sec-head { max-width: 720px; margin-bottom: clamp(26px, 3.4vw, 40px); }
.sec-kick { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--org-3); }
.sec-kick::before { content: ""; width: 26px; height: 2px; background: var(--org-2); border-radius: 2px; }
.sec-head h2 { font-size: clamp(34px, 5.4vw, 58px); line-height: .95; letter-spacing: -.035em; margin: 12px 0 12px; }
.sec-head p { color: var(--ink-2); margin: 0; max-width: 600px; font-size: clamp(15px, 1.5vw, 17px); }

/* ===== class plates ===== */
.class-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .class-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .class-row { grid-template-columns: repeat(4, 1fr); } }
.class-card { background: var(--cream); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; transition: transform .3s var(--spring), box-shadow .3s; }
.class-card:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -26px rgba(80, 40, 15, .4); }
.class-card .cc-art { position: relative; background: #f7ead3; border-bottom: 1px solid var(--line); }
.class-card .cc-art img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.class-card .cc-art::after { content: attr(data-plate); position: absolute; left: 12px; bottom: 10px; font-family: var(--font-m); font-size: 10px; font-weight: 700; letter-spacing: .12em; background: rgba(29,19,13,.85); color: var(--org-2); padding: 4px 9px; border-radius: 7px; }
.class-card .cc-body { padding: 20px 22px 22px; }
.class-card h3 { font-size: 25px; letter-spacing: -.02em; }
.cc-thr { display: block; font-family: var(--font-m); font-size: 11px; letter-spacing: .05em; color: var(--org-3); font-weight: 700; margin: 5px 0 9px; text-transform: uppercase; }
.class-card p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0 0 14px; }
.cc-claim { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-m); font-size: 12px; font-weight: 700; background: var(--paper-2); border-radius: 999px; padding: 5px 12px; }
.cc-claim::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--org-3); }
.class-card.nova { border-color: rgba(217,164,65,.55); box-shadow: 0 24px 44px -28px rgba(217,164,65,.65); }

/* ===== archive ===== */
.arch-row { display: grid; gap: 14px; }
@media (min-width: 760px) { .arch-row { grid-template-columns: 1fr 1fr 1fr; } }
.arch-card { background: var(--cream); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; cursor: pointer; text-align: left; transition: transform .3s var(--spring), box-shadow .3s; }
.arch-card:hover, .arch-card:focus-visible { transform: translateY(-3px); box-shadow: 0 24px 40px -24px rgba(80, 40, 15, .4); outline: none; }
.arch-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 14px; }
.arch-no { font-family: var(--font-m); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.arch-verdict { font-family: var(--font-m); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper-2); }
.arch-verdict.metro { background: var(--org-2); }
.arch-verdict.block { background: #f2c894; }
.arch-nums { display: flex; gap: 20px; }
.arch-nums div b { display: block; font-family: var(--font-d); font-weight: 800; font-size: 23px; letter-spacing: -.02em; }
.arch-nums div span { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.arch-open { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-family: var(--font-m); font-size: 11px; color: var(--org-3); font-weight: 700; letter-spacing: .05em; }
.arch-empty { font-size: 15px; color: var(--ink-2); background: var(--cream); border: 1px dashed var(--line-2); border-radius: 18px; padding: 20px 22px; margin: 0; }

/* ===== consoles (calc, prompts, claim checker) ===== */
.glass { background: var(--cream); border: 1px solid var(--line); border-radius: 26px; padding: clamp(18px, 2.6vw, 26px); margin-bottom: 16px; box-shadow: 0 1px 0 #fff inset, 0 30px 60px -42px rgba(80, 40, 15, .35); }
.calc-head, .console-head, .cp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.calc-head b, .console-head b, .cp-head b { font-family: var(--font-d); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.calc-head span, .cp-head span { font-family: var(--font-m); font-size: 11.5px; color: var(--mute); }
.calc-row { display: flex; align-items: center; gap: 18px; }
.calc-row input[type="range"] { flex: 1; accent-color: var(--org-3); min-width: 0; height: 28px; }
.calc-n { text-align: center; }
.calc-n span { font-family: var(--font-d); font-weight: 800; font-size: 34px; display: block; line-height: 1; letter-spacing: -.02em; }
.calc-n small { color: var(--mute); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.calc-rows { font-family: var(--font-m); font-size: 12.5px; color: var(--ink-2); word-break: break-word; }
.calc-out { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line-2); padding-top: 12px; font-size: 15px; font-weight: 700; }
.calc-out b { font-family: var(--font-d); font-size: 24px; letter-spacing: -.02em; }
.calc-note { font-size: 13px; color: var(--mute); margin: 9px 0 0; }
.console pre { background: var(--dark); color: var(--cream-on-dark); border-radius: 16px; padding: 18px; margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-m); font-size: 12.5px; line-height: 1.65; max-height: 340px; overflow: auto; }
.fine { font-size: 12.5px; color: var(--mute); margin: 11px 0 0; }

/* ===== build ladder ===== */
.ladder { display: grid; gap: 10px; margin-bottom: 16px; }
.rung { display: flex; align-items: center; gap: 18px; background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; transition: transform .3s var(--spring), box-shadow .3s; }
.rung:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -24px rgba(80,40,15,.4); }
.r-n { font-family: var(--font-d); font-weight: 800; font-size: 29px; letter-spacing: -.03em; min-width: 58px; color: var(--org-2); }
.r-t { flex: 1; font-weight: 700; font-size: 15.5px; min-width: 0; }
.r-t b { display: block; font-weight: 500; font-size: 13px; color: var(--mute); margin-top: 2px; }
.r-p { font-family: var(--font-m); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.r-p.free { background: var(--org-2); color: var(--ink); padding: 5px 12px; border-radius: 999px; font-family: var(--font-b); font-size: 12px; letter-spacing: .08em; }

/* ===== claim clock (day rhythm) ===== */
.dayclock { margin-bottom: 16px; }
.dc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.dc-head b { font-family: var(--font-d); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.dc-head span { font-family: var(--font-m); font-size: 11.5px; color: var(--mute); }
.dc-phase { font-size: 14px; color: var(--ink-2); margin: 0 0 16px; }
.dc-phase b { color: var(--ink); }
.dc-track { position: relative; height: 16px; border-radius: 999px; background: var(--paper-3); margin: 26px 2px 30px; cursor: crosshair; }
.dc-fill { position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--org-2), var(--org-3)); transition: width 1s linear; }
.dc-open-zone { position: absolute; top: 0; bottom: 0; left: 37.5%; right: 0; border-radius: 0 999px 999px 0; background: rgba(42,29,21,.08); pointer-events: none; }
.dc-mark { position: absolute; top: -5px; width: 2.5px; height: 26px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); }
.dc-mark i { position: absolute; left: 50%; transform: translateX(-50%); font-style: normal; font-family: var(--font-m); font-size: 10px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; color: var(--ink-2); }
.dc-mark i.up { bottom: 32px; } .dc-mark i.dn { top: 32px; color: var(--mute); }
.dc-needle { position: absolute; top: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 2px 8px rgba(42,29,21,.4); transform: translateX(-50%); transition: left 1s linear; z-index: 2; }
.dc-tip { position: absolute; z-index: 5; pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 16px)); background: var(--ink); color: var(--paper); border-radius: 10px; padding: 7px 11px; font-family: var(--font-m); font-size: 11px; white-space: nowrap; transition: opacity .15s; }
.dc-tip.on { opacity: 1; }
.dc-tip span { color: var(--org-2); }
.dc-legend { display: flex; gap: 8px 22px; flex-wrap: wrap; font-family: var(--font-m); font-size: 11px; color: var(--mute); }
.dc-legend b { color: var(--ink-2); }

/* ===== claim ===== */
.claim-stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-bottom: 14px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.claim-stats .stat { padding: 18px; min-width: 0; }
.claim-stats .stat + .stat { border-left: 1px solid var(--line); }
@media (max-width: 759px) { .claim-stats .stat:nth-child(3) { border-left: 0; } .claim-stats .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (min-width: 760px) { .claim-stats { grid-template-columns: repeat(4, 1fr); } }
.cp-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cp-row input { flex: 1; min-width: 180px; border: 1.5px solid var(--line-2); border-radius: 13px; background: var(--paper); padding: 13px 15px; font-family: var(--font-m); font-size: 15px; color: var(--ink); transition: border-color .2s; }
.cp-row input:focus { outline: none; border-color: var(--org-3); }
.cp-result { background: #fdf6e9; border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 13px 15px; font-size: 14.5px; color: var(--ink-2); }
.cp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ===== link cards + faq ===== */
.link-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .link-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .link-cards { grid-template-columns: repeat(3, 1fr); } }
.lcard { background: var(--cream); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; color: var(--ink); transition: transform .3s var(--spring), box-shadow .3s; }
.lcard:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 24px 40px -24px rgba(80,40,15,.4); }
.lcard b { font-family: var(--font-d); font-weight: 800; font-size: 20px; letter-spacing: -.01em; display: block; margin-bottom: 4px; }
.lcard span { font-size: 13.5px; color: var(--mute); }
.faq { margin-top: 26px; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 19px 42px 19px 2px; position: relative; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-size: 26px; font-weight: 400; color: var(--org-3); transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); font-size: 14.5px; margin: 0; padding: 0 2px 20px; max-width: 66ch; }

/* ===== district drawer ===== */
.drawer-wrap { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer-wrap.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(29,19,13,.5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.drawer-wrap.open .drawer-bg { opacity: 1; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 94vw);
  background: var(--paper); box-shadow: -30px 0 60px -30px rgba(29,19,13,.5);
  transform: translateX(106%); transition: transform .45s var(--spring);
  display: flex; flex-direction: column; overflow: hidden;
}
.drawer-wrap.open .drawer { transform: none; }
.drawer-head { background: var(--dark); color: var(--paper); padding: 20px 22px 18px; display: flex; align-items: flex-start; gap: 12px; }
.drawer-head .dh-t { flex: 1; min-width: 0; }
.drawer-head .dh-k { font-family: var(--font-m); font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--org-2); }
.drawer-head h3 { font-size: 31px; letter-spacing: -.02em; margin-top: 5px; }
.drawer-head .dh-v { display: inline-block; margin-top: 9px; font-family: var(--font-m); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--org-2); color: var(--ink); }
.drawer-close { flex: none; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(244,166,110,.45); background: transparent; color: var(--paper); font-size: 19px; cursor: pointer; line-height: 1; transition: background .2s; }
.drawer-close:hover { background: rgba(251,243,232,.1); }
.drawer-body { padding: 20px 22px 26px; overflow-y: auto; }
.drawer-art { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #f7ead3; }
.drawer-art img { display: block; width: 100%; aspect-ratio: 1.7; object-fit: cover; }
.drawer-art figcaption { font-family: var(--font-m); font-size: 10.5px; color: var(--mute); padding: 9px 13px; letter-spacing: .05em; }
.drawer-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.drawer-stats .stat b { font-size: 20px; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.08; }
.drawer-stats .stat { padding: 14px 12px; min-width: 0; }
.drawer-stats .stat b { font-size: 25px; }
.drawer-stats .stat:nth-child(even) { border-left: 1px solid var(--line); }
.drawer-stats .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.drawer-rate { margin-top: 18px; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.drawer-rate span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.drawer-rate b { font-family: var(--font-d); font-weight: 800; font-size: 27px; letter-spacing: -.02em; white-space: nowrap; }
.drawer-rows { margin-top: 16px; display: grid; gap: 0; }
.drawer-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px dashed var(--line-2); font-size: 14px; }
.drawer-rows div:last-child { border-bottom: 0; }
.drawer-rows span { color: var(--mute); }
.drawer-rows b { font-family: var(--font-m); font-size: 13px; font-weight: 700; text-align: right; }
.drawer-note { font-size: 13.5px; color: var(--ink-2); margin: 14px 0 0; }
@media (max-width: 640px) {
  .drawer { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 84vh; border-radius: 26px; transform: translateY(108%); }
  .drawer-wrap.open .drawer { transform: none; }
}

/* ===== v3 upgrade: fly, glow, feed, scrub, claim calc, drawer spring ===== */
.fly-btn {
  font-family: var(--font-m); font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 999px;
  padding: 7px 14px; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), transform .25s var(--spring), box-shadow .25s;
}
.fly-btn:hover { background: #3a291e; transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(42,29,21,.55); }
.fly-btn:active { transform: scale(.96); }
.fly-btn.on { background: var(--org-3); }
.hero-glow {
  position: absolute; z-index: 0; width: 360px; height: 360px; left: 0; top: 0;
  border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease);
  background: radial-gradient(closest-side, rgba(244,166,110,.34), transparent);
  filter: blur(10px); will-change: transform;
}
.stage:hover .hero-glow { opacity: 1; }
.stage-frame { z-index: 1; }

.live-feed { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; min-height: 27px; }
.lf-tag {
  flex: none; display: inline-flex; align-items: center; gap: 7px; margin-top: 1px;
  font-family: var(--font-m); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--dark); color: var(--org-2); border-radius: 999px; padding: 5px 11px;
}
.lf-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--org-2); animation: pulseDot 2.2s infinite; }
.live-feed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; min-width: 0; }
.live-feed li {
  font-family: var(--font-m); font-size: 12px; color: var(--ink-2); line-height: 1.45;
  border-left: 2px solid var(--org-2); padding-left: 10px;
  animation: feedIn .55s var(--ease) both;
}
.live-feed li time { color: var(--mute); margin-right: 8px; font-size: 11px; }
.live-feed li.lf-wait { border-left-color: var(--line-2); color: var(--mute); animation: none; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .live-feed li { animation: none; } .lf-tag i { animation: none; } }

.dc-scrub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.dc-scrub-lab { font-family: var(--font-m); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.dc-scrub input[type="range"] { flex: 1; min-width: 140px; accent-color: var(--org-3); height: 28px; cursor: pointer; }
.dc-scrub-t { font-family: var(--font-m); font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
.dc-live-btn {
  font-family: var(--font-m); font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: var(--org-2); color: var(--ink); border: 0; border-radius: 999px; padding: 6px 12px;
  cursor: pointer; transition: background .2s, transform .2s var(--spring);
}
.dc-live-btn:hover { background: #f7b885; }
.dc-live-btn:active { transform: scale(.95); }
.dc-hint { font-size: 12.5px; color: var(--mute); margin: 8px 0 0; }

.cc-classes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cc-cls {
  font-family: var(--font-m); font-size: 12px; font-weight: 700; letter-spacing: .04em;
  background: var(--paper-2); color: var(--ink-2); border: 1.5px solid var(--line-2);
  border-radius: 999px; padding: 8px 15px; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--spring);
}
.cc-cls:hover { color: var(--ink); border-color: rgba(201,109,52,.55); transform: translateY(-1px); }
.cc-cls:active { transform: scale(.96); }
.cc-cls.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cc-cls[data-cls="4"].on { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* Drawer: spring slide with visibility held until a close finishes. */
.drawer-wrap { transition: visibility 0s linear .6s; }
.drawer-wrap.open { transition-delay: 0s; }
.drawer { transition: transform .55s var(--spring); }
.drawer-bg { transition: opacity .35s var(--ease); }

/* ===== mobile bar ===== */
.mobilebar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; background: var(--dark); color: var(--cream-on-dark); border-radius: 18px; padding: 11px 13px; display: flex; align-items: center; gap: 10px; box-shadow: 0 18px 36px -14px rgba(33,21,16,.55); border: 1px dashed rgba(244,166,110,.4); outline: 1px solid rgba(29,19,13,.9); outline-offset: -5px; }
.mb-info { min-width: 0; }
.mb-info small { display: block; font-family: var(--font-m); font-size: 9.5px; color: var(--org-2); text-transform: uppercase; letter-spacing: .1em; }
.mb-info b { font-size: 13.5px; white-space: nowrap; }
.mb-btn { margin-left: auto; background: var(--org-2); color: var(--ink); font-weight: 700; font-size: 13.5px; padding: 10px 14px; border-radius: 12px; white-space: nowrap; }
.mb-btn.ghost { background: transparent; border: 1.5px solid rgba(244,166,110,.55); color: var(--cream-on-dark); margin-left: 0; }
.mb-btn:hover { text-decoration: none; }
@media (min-width: 860px) { .mobilebar { display: none; } }
@media (max-width: 859px) { body { padding-bottom: 78px; } }
