/* CWS street collage: magazine cutouts, graph paper and sticker accents. */
:root{font-family:Arial,Helvetica,sans-serif;color:#24241f;background:#d6d3cb;color-scheme:light;--ink:#24241f;--green:#007651}
body{background:linear-gradient(120deg,#ffffff45,transparent 48%),repeating-linear-gradient(0deg,#373b3410 0 1px,transparent 1px 24px),repeating-linear-gradient(90deg,#373b3410 0 1px,transparent 1px 24px),#dcd9d0;background-attachment:fixed}
.app{max-width:560px;padding:25px 22px 115px;min-height:100dvh;background:#f0eee680;border-inline:1px solid #25251f17}header{margin-bottom:26px;padding-bottom:20px;border-bottom:1px solid #292c2740}
.brand { display: block; color: var(--ink); letter-spacing: 0; }
.brand-logo { display: block; position: relative; width: clamp(124px, 38vw, 154px); }
.brand-logo img { display: block; width: 100%; height: auto; }
:root[data-theme="dark"] .brand-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  mask: url("/design/cws-card-logo.png") center / 100% 100% no-repeat;
  clip-path: inset(0 0 0 64%);
}
.brand small { font: 700 7px Arial; letter-spacing: 2.1px; color: #5f6256; margin-top: 3px; }
.card-mark { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.card-letters { display: inline-flex; gap: 3px; font: 900 clamp(21px, 6.3vw, 27px)/1 Georgia,serif; }
.card-letters b { display: inline-block; padding: 2px 4px 3px; box-shadow: 1px 2px 2px #10181030; transform: rotate(-5deg); color: #e3684e; background: #303a35; }
.card-letters b:nth-child(2) { color: #00b78c; background: #163e33; font-family: Arial,sans-serif; transform: rotate(4deg); }
.card-letters b:nth-child(3) { color: #00684f; background: #eee9d5; transform: rotate(-3deg); }
.card-label { font: 900 italic clamp(16px, 4.5vw, 19px)/1 Arial,sans-serif; letter-spacing: -.3px; padding: 6px 8px; background: var(--accent-face); color: var(--label-ink); box-shadow: var(--paper-rim); transform: rotate(-2deg); }
.brand:has(.card-mark) small { display: block; margin-top: 8px; }
#channel-check-status:empty { display: none; }
#channel-check-status { font-size: 14px; line-height: 1.5; color: var(--ink); }
.background-search-empty { grid-column: 1 / -1; }
.avatar{background:#007651;color:#f1eee0;border:1px solid #183d2d;border-radius:2px;font-weight:800}.eyebrow{font:700 9px Arial;letter-spacing:2px;color:var(--green)}h1,h2,h3{font-family:Arial,Helvetica,sans-serif;color:var(--ink)}h1{font-weight:900}h2{font-weight:800}p{color:#64635c}
.cutout-title{display:flex;flex-wrap:wrap;gap:7px 13px;margin:13px 0 14px;font-size:clamp(23px,6.1vw,34px);letter-spacing:0;line-height:1.2}.cutout-word{display:inline-flex;gap:3px;white-space:nowrap}.cutout-letter{display:inline-block;padding:0 .12em .03em;min-width:.65em;text-align:center;background:#252621;color:#f0ece0;font-weight:900;box-shadow:1px 2px 1px #262b2730;transform:rotate(-5deg)}.cutout-letter:nth-child(3n+2){background:#e9e6da;color:#22251f;font-family:Georgia,serif;transform:rotate(5deg)}.cutout-letter:nth-child(3n){background:#007651;color:#eee8d4;font-style:italic;transform:rotate(-3deg)}.cutout-word:nth-child(2n) .cutout-letter:first-child{background:#c43b30;color:#f3ead6;font-family:Georgia,serif;transform:rotate(6deg)}.balance{background:#eae7da;border:1px solid #77786955;border-radius:2px;font-weight:700;white-space:nowrap;padding:9px 10px}.balance span{color:var(--green)}
.garage-cover{margin:20px 0 0;position:relative;border:6px solid #f6f3e9;box-shadow:2px 4px 0 #282b2624;transform:rotate(-1.3deg);background:#ccc9c1}.garage-cover::before{content:"";position:absolute;width:76px;height:23px;background:#d8c89a99;top:-14px;left:calc(50% - 38px);transform:rotate(5deg);z-index:1}.garage-cover img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}.garage-cover figcaption{padding:9px 7px 6px;display:flex;justify-content:space-between;gap:8px;font:700 8px monospace;letter-spacing:1.3px;color:#53594d}
.section-head{margin:23px 0 15px}.section-head h2{font-size:14px}.section-head span{color:#686b5e;font-family:monospace;font-size:10px}
.empty,.panel,.trade{background:#f5f2e8;border:1px solid #7e82705c;border-radius:3px;box-shadow:3px 3px #383c3020}.empty{padding:27px 18px 23px;border-top:3px solid #313c30}.empty>span{display:inline-grid;place-items:center;width:42px;height:37px;background:#007651;color:#efe8d4;font-size:30px;transform:rotate(-8deg);margin-bottom:14px}.empty h3{font-size:15px}.empty p{font-size:12px;max-width:320px;margin:9px auto 0}
.hero{background:repeating-linear-gradient(0deg,#293b2810 0 1px,transparent 1px 22px),repeating-linear-gradient(90deg,#293b2810 0 1px,transparent 1px 22px),#e4e3d4;border:1px solid #777e6566;border-radius:3px;padding:23px;box-shadow:4px 4px #29332726;overflow:visible;margin-bottom:22px}.hero::before{content:"CWS / STREET ARCHIVE";display:block;font:700 8px monospace;letter-spacing:2px;color:#5b6653;border-bottom:1px solid #4d584440;padding-bottom:10px;margin-bottom:14px}.hero h2{font-size:28px;font-weight:900;letter-spacing:-1px;max-width:270px;line-height:1.1}.hero p{color:#5b6152}.tag{border-radius:1px;color:#006548;background:#d2e2c7;border:1px solid #65855d66;font-weight:700;font-size:8px;transform:rotate(2deg)}
.primary{background:#007651;color:#fff9e8;border:1px solid #00593d;border-radius:2px;font-weight:800;box-shadow:3px 3px #193d2833}.secondary{background:#eeeade;color:#303a29;border:1px solid #79816a70;border-radius:2px;font-weight:700}.quiet{color:#006a47;font-weight:700}.primary:hover{background:#005d40}.secondary:hover{background:#e2dfd0}.collectible{background:#f4f0e6;border:1px solid #6f756252;border-radius:2px;box-shadow:3px 3px #303c2726}.collectible img{border:6px solid #f5f1e8}.collectible .content{border-top:1px dashed #94988377;padding:13px}.collectible .code{color:#6d7062;font-family:monospace}.pill{color:#546245;font-weight:800}.pill.legendary{color:#8d5900}.pill.epic{color:#813b80}.pill.rare{color:#276299}.pill.uncommon{color:#006b4b}
.uploader{border:1px dashed #707b5d;border-radius:2px;background:#e5e4d7}.uploader>span{color:#007651}.uploader small{color:#646958}.number-drop-entry{border:1px solid #6a795c88;border-radius:2px;background:#d9dfcd;box-shadow:3px 3px #303c2720}.number-drop-entry>span{color:#007651}.number-drop-entry small{color:#596650}.country button,.drop-countries button{background:#efeddf;border:1px solid #747e6370;border-radius:2px}.country button.selected{background:#cee1ce;border-color:#007651}.drop-countries button span{color:#006e4d}.drop-value{border:1px solid #66825866;background:#dbe6cf;border-radius:2px}.drop-value span{color:#5a6650}.drop-value strong{color:#005d40}.saved-state{color:#006346}
.shopicon{background:#dce4d0;color:#007651;border-radius:2px;width:35px;height:39px}.shopitem{grid-template-columns:36px 1fr auto;gap:9px}.price small,.statgrid small{color:#696e5c}input,select,textarea,.ref{border:1px solid #7b836a80;background:#fffdf3;color:#242a20;border-radius:2px}label,.tiny{color:#616955}select option{background:#f2efdf}.ref{color:#006346}
nav{max-width:560px;background:#252b23f7;border-top:3px solid #007651;backdrop-filter:blur(18px);padding-top:12px;gap:4px}nav button{color:#bfc4b4;position:relative;padding:4px 0;font-weight:700;font-size:10px}nav button span{font-size:24px;padding:2px 12px}nav button.active{color:#f1eedc}nav button.active span{color:#17382a;background:#c7df9c;filter:none;transform:rotate(-6deg);box-shadow:2px 2px #0006}
.preview{background:#e7dfc7;color:#6a5a35;border:1px dashed #96866480;border-radius:1px;font-size:9px;padding:9px;line-height:1.5}.close{color:#4d5645}dialog{background:#eeebdf;color:#252b20;border:1px solid #7b8663;border-radius:4px;box-shadow:8px 8px #0004}dialog::backdrop{background:#161d19aa}dialog img{border-radius:2px}#toast{background:#263e2c;color:#f4f0df;border:1px solid #8caa76;border-radius:2px}.trade .tag{transform:none}.admin-stats>div,.admin-user{background:#e6e6d7;border-color:#7b836a66;border-radius:2px}.admin-stats small,.admin-user small{color:#616955}footer{font:700 8px monospace;color:#66705c;letter-spacing:1.7px;margin-top:29px;padding-top:16px;border-top:1px dashed #7d876a88}.skeleton{background:#dddccd;border-radius:2px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #007651;outline-offset:3px}button:disabled{opacity:.55}
@media(min-width:700px){.app{margin:30px auto 0;box-shadow:0 12px 70px #252c2422;min-height:calc(100dvh - 30px)}}
@media(max-width:380px){.app{padding:20px 15px 110px}.headrow{gap:6px}.cutout-title{font-size:23px;gap:6px 10px}.balance{font-size:11px;padding:8px}.hero{padding:17px}.hero .line{gap:6px}.tag{padding:5px}.shopitem{gap:6px}.shopitem h3{font-size:12px}.shopitem button{padding:8px;font-size:9px}}
.account {
  min-width: 0;
  max-width: 172px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px 6px 5px;
  border: 1px solid #26382a45;
  border-radius: 1px;
  background: #f4f0e6;
  box-shadow: 3px 3px #26382a26;
  text-align: left;
}
.account .avatar {
  width: 30px;
  height: 34px;
  border: 0;
  border-radius: 0;
  color: #f6efdc;
  background: #007651;
  box-shadow: 1px 2px #24352a4d;
  font: 900 24px/.9 Georgia, serif;
  transform: rotate(-6deg);
}
.account-copy { display: grid; gap: 3px; min-width: 0; }
.account-label {
  color: #006749;
  font: 700 8px/1 monospace;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.account #nickname { font-size: 11px; font-weight: 800; white-space: nowrap; }
.account-arrow { align-self: start; color: #006749; font-size: 13px; }
.account:hover { background: #fffaf0; }

[data-profile-avatar] {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
[data-profile-avatar] img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.profile-id span { color: var(--green); font-size: 16px; }

.segments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 27px 0 20px;
  padding: 0;
  border: 0;
  background: none;
}
.segments button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 43px;
  padding: 7px 9px;
  border: 1px solid #26382a45;
  border-radius: 1px;
  background: #f4f0e6;
  color: #262d23;
  box-shadow: 2px 2px #26382a29;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}
.segments button.selected {
  background: #006749;
  color: #fff7e6;
  border-color: #00513a;
  box-shadow: 2px 3px #25372c55;
}
.segment-icon { color: #006749; font-size: 18px; line-height: 1; }
.selected .segment-icon { color: #e4e6bb; }
.segment-count {
  min-width: 24px;
  padding: 4px;
  background: #dfded0;
  color: #26382a;
  font: 800 11px/1 monospace;
  text-align: center;
  transform: rotate(4deg);
}
.selected .segment-count { background: #e4e6bb; }

.drop-cover {
  position: relative;
  margin: 22px 2px 5px;
  padding: 6px 6px 0;
  background: #f8f4e8;
  box-shadow: 3px 4px #26382a36;
  transform: rotate(-1.5deg);
}
.drop-cover::after {
  content: "";
  position: absolute;
  top: -7px;
  right: 13%;
  width: 55px;
  height: 16px;
  background: #d8c89ac7;
  transform: rotate(10deg);
  pointer-events: none;
}
.drop-cover-art {
  display: grid;
  place-items: center;
  min-height: 130px;
  aspect-ratio: 1.95;
  overflow: hidden;
  background:
    radial-gradient(circle, var(--print-grid) 1px, transparent 1.3px) 0 0 / 6px 6px,
    linear-gradient(154deg, var(--print-first) 0 56%, var(--print-second) 56% 73%, var(--print-third) 73%);
}
.drop-cover-art img {
  display: block;
  width: 91%;
  height: auto;
  filter: drop-shadow(2px 10px 5px #1c322777);
  transform: rotate(1.5deg);
}
.drop-cover figcaption {
  padding: 8px 3px;
  color: #344236;
  font: 700 9px/1.2 monospace;
  letter-spacing: .1em;
}

.number-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 30 / 17;
  background: var(--board-bottom);
}
#dialog .number-art {
  border: 4px solid #faf6e9;
  border-radius: 1px;
  box-shadow: var(--paper-raised);
}
.plate-collectible .number-art {
  aspect-ratio: 30 / 17;
  object-fit: contain;
  border: 0;
}
.number-stage {
  margin: 16px 0;
  padding: clamp(10px, 4vw, 23px);
  background:
    repeating-linear-gradient(0deg, #485b3317 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, #485b3317 0 1px, transparent 1px 22px),
    #e6e3d5;
  border: 1px solid #a2ab94;
  box-shadow: var(--paper-lift);
}
.plate.number-reels {
  min-height: clamp(61px, 17vw, 97px);
  margin: 0;
  padding: 8px 5px;
  background: linear-gradient(#fbfaf2, #eeeee1);
  color: #26322b;
  border: 4px double #657265;
  border-radius: 7px;
  box-shadow: 0 4px 0 #8d978c, 0 7px 9px #23362745, inset 0 2px #fff;
  font-family: 'Courier New', monospace;
  font-weight: 900;
}
.number-reel { height: 1.2em; line-height: 1.2em; overflow: hidden; }
.number-reel.spinning, .number-reel.locked {
  animation: none;
  color: inherit;
  filter: none;
}
.reel-strip, .reel-strip > span { display: block; }
.reel-strip > span { height: 1.2em; line-height: 1.2em; }

.number-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5b6656;
  font: 700 10px/1 monospace;
}
#detail .drop-value {
  padding: 12px 14px;
  box-shadow: inset 0 1px #fff8, var(--paper-lift);
}
#detail .drop-value strong { font-size: 22px; }

/* The same paper edge and light direction run through every screen. */
:root {
  --desk: #aeb0a0;
  --desk-light: #cfcebc;
  --sheet: #c8c7b8;
  --sheet-grid: #46544320;
  --muted: #414d3e;
  --frame: #dad8c8;
  --edge-glint: #e9e6d1a0;
  --panel-ink: #2b362a;
  --board-top: #d3d2bf;
  --board-bottom: #c2c4ad;
  --accent-face: #c6d2b7;
  --field: #d8d8c9;
  --label-fill: #bec9ad;
  --label-ink: #244431;
  --focus: #005c42;
  --print-grid: #354d333b;
  --print-first: #adb998;
  --print-second: #96a384;
  --print-third: #c8c3ab;
  --paper-edge: #888f7a;
  --paper-face: linear-gradient(145deg, #dedbcd, #d0cebf 88%);
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23grain)' opacity='.07'/%3E%3C/svg%3E");
  --paper-rim: inset 0 1px var(--edge-glint), inset 0 -2px #5c66533d;
  --paper-lift: 0 2px 4px #27302125, 0 10px 18px -12px #27302180;
  --paper-raised: 0 4px 7px #2730212b, 0 19px 29px -16px #27302185;
  --pressed: inset 0 1px 3px #25302539, 0 1px 2px #25302529;
  --settle: cubic-bezier(.22,.75,.25,1);
}
body {
  background:
    var(--paper-grain),
    radial-gradient(ellipse at 25% 0%, var(--desk-light), transparent 70%),
    var(--desk);
}
.app {
  background:
    var(--paper-grain),
    repeating-linear-gradient(0deg, var(--sheet-grid) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, var(--sheet-grid) 0 1px, transparent 1px 24px),
    var(--sheet);
  border-inline: 1px solid var(--paper-edge);
  box-shadow: 0 1px 3px #26302530, 0 22px 64px #26302534;
}
header {
  position: relative;
  border-bottom: 1px solid var(--paper-edge);
  box-shadow: 0 1px var(--edge-glint);
}
footer { border-top-color: var(--paper-edge); box-shadow: 0 -1px var(--edge-glint); }

.panel, .trade, .empty, .collectible, .uploader, .number-drop-entry,
.account, .segments button, .secondary, .country button, .drop-countries button,
.admin-stats > div, .admin-user, .statgrid > div, .balance {
  background: var(--paper-grain), var(--paper-face);
  border: 1px solid var(--paper-edge);
  border-radius: 2px;
  box-shadow: var(--paper-rim), var(--paper-lift);
}
.panel, .trade, .empty, .collectible, .hero, .number-stage, .cws-dialog { border-bottom-width: 2px; }
.hero, .number-stage {
  background:
    var(--paper-grain),
    repeating-linear-gradient(0deg, var(--sheet-grid) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, var(--sheet-grid) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, var(--board-top), var(--board-bottom));
  border-color: var(--paper-edge);
  box-shadow: var(--paper-rim), var(--paper-raised);
}
.empty { border-top: 2px solid #677b61; }
.uploader { border-style: dashed; }
.number-drop-entry { background: var(--paper-grain), linear-gradient(145deg, var(--accent-face), var(--board-bottom)); }
.statgrid > div { padding: 8px 3px; }
.shopitem > div { min-width: 0; }
.shopicon, .avatar, .empty > span {
  box-shadow: inset 0 1px #fff5, 1px 2px 3px #2a372833;
}
.tag, .segment-count {
  box-shadow: inset 0 1px #fff6, 0 2px 2px #27302125;
}
.garage-cover, .drop-cover {
  background-color: var(--frame);
  box-shadow: inset 0 1px var(--edge-glint), 2px 4px 5px #29312436, 0 15px 19px -12px #2931247a;
}
.collectible img { border: 5px solid var(--frame); }
.plate-collectible img.number-art { border: 0; }
.collectible .content { box-shadow: inset 0 1px var(--edge-glint); }
.number-art { box-shadow: none; }
#dialog .number-art { box-shadow: var(--paper-raised); }

.primary, .segments button.selected {
  background: var(--paper-grain), linear-gradient(165deg, #0a8059, #005d43);
  border: 1px solid #174d37;
  border-bottom-color: #123b2a;
  box-shadow: inset 0 1px #b6e5b54d, inset 0 -2px #063f2b73, var(--paper-lift);
}
.primary:hover { background-color: #005d43; }
.country button.selected {
  background: var(--paper-grain), linear-gradient(var(--accent-face), var(--label-fill));
  border-color: #538366;
}
input, select, textarea, .ref {
  background: var(--field);
  color: var(--ink);
  border-color: var(--paper-edge);
  box-shadow: inset 0 2px 3px #33402b17, 0 1px var(--edge-glint);
}
input:focus, select:focus, textarea:focus { border-color: var(--focus); }
a { color: var(--focus); }
.preview {
  background: var(--paper-grain), linear-gradient(var(--board-top), var(--board-bottom));
  box-shadow: var(--paper-lift);
}
.car-model-credit {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  margin: 6px 0 12px;
}

nav {
  background: var(--paper-grain), linear-gradient(#344037, #242e27);
  border-top: 1px solid #8a9c82;
  backdrop-filter: none;
  box-shadow: inset 0 1px #c8d6b831, 0 -4px 19px #26332339;
}
nav button { min-width: 0; flex: 1; }
nav button span { border: 1px solid transparent; }
nav button.active span {
  background: var(--paper-grain), linear-gradient(#dbe9b7, #b9cf91);
  border-color: #8ea471;
  box-shadow: inset 0 1px #fff8, 0 3px 5px #131e1766;
}
nav button .nav-icon {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 31px;
  padding: 2px 10px;
}
.nav-icon svg { display: block; width: 24px; height: 24px; }
.nav-icon-accent { stroke: #d9bb71; stroke-width: 2.2; }
nav button.active .nav-icon-accent { stroke: #99601c; }
#toast {
  background: var(--paper-grain), linear-gradient(#38533e, #293e2d);
  box-shadow: var(--paper-rim), var(--paper-raised);
}
.cws-dialog {
  border: 1px solid var(--paper-edge);
  border-bottom-width: 2px;
  border-radius: 3px;
  background: var(--paper-grain), var(--paper-face);
  box-shadow: var(--paper-rim), 0 4px 10px #1d281d36, 0 25px 57px -14px #1525169c;
}
.cws-dialog::backdrop { background: #18241b76; backdrop-filter: blur(2px); }
#detail .drop-value { box-shadow: var(--paper-rim), var(--paper-lift); }

.cws-dialog.car-drop-dialog {
  width: min(100% - 16px, 540px);
  max-width: none;
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  padding: 0;
  scrollbar-gutter: stable both-edges;
}
.car-drop-dialog #close {
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--paper-edge);
  border-radius: 50%;
  background: var(--board-bottom);
  color: var(--ink);
}
.car-reveal-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, calc(52dvh * 1063 / 1535));
  aspect-ratio: 1063 / 1535;
  margin-inline: auto;
  background: var(--paper-grain), linear-gradient(145deg, var(--board-top), var(--board-bottom));
}
.car-reveal-stage[data-phase="error"] {
  aspect-ratio: auto;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
}
.car-reveal-stage[data-phase="waiting"]::before,
.car-reveal-stage[data-phase="reveal"]:not(:has(img[src]))::before {
  content: "";
  position: absolute;
  inset: 4%;
  border: 1px solid var(--paper-edge);
  border-radius: 10px;
  background: var(--paper-grain), linear-gradient(155deg, var(--accent-face), var(--board-bottom));
}
.car-reveal-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}
.car-reveal-stage img:not([src]) { visibility: hidden; }
.car-race-intro {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.car-race-playing .car-reveal-wave { visibility: hidden; }
.car-reveal-stage.car-race-playing { background: var(--paper-grain), var(--paper-face); }
.car-reveal-stage.car-race-playing::before { visibility: hidden; }
.car-race-intro { mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); }
/* Portable RGBA sprites: no luminance CSS mask or complete card on the moving layer. */
.car-reveal-stage[data-phase="arrival"] .car-reveal-wave { visibility: hidden; }
.car-reveal-stage > .car-arrival-card {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (prefers-reduced-motion: no-preference) {
  .car-arrival-card { animation: car-card-arrive 380ms ease-out both; }
}
@keyframes car-card-arrive { from { opacity: 0; } to { opacity: 1; } }
.car-reveal-wave {
  position: absolute;
  inset: 0 -18% auto;
  height: 42%;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle, #fbffeddb 0 1.1px, transparent 1.8px) 0 0 / 13px 13px,
    radial-gradient(circle, #d8efbaae 0 .8px, transparent 1.5px) 6px 6px / 13px 13px,
    linear-gradient(180deg, transparent, #ddf2b94d 64%, #f8ffe09c 82%, transparent 96%);
  -webkit-mask-image: radial-gradient(ellipse 75% 52% at 50% 60%, #000 46%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 52% at 50% 60%, #000 46%, transparent 100%);
}
.car-drop-dialog #car-drop-status {
  margin: 0;
  min-height: 52px;
  padding: 11px 52px;
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}
.car-reveal-details { padding: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .car-reveal-stage[data-phase="waiting"] .car-reveal-wave,
  .car-reveal-stage[data-phase="reveal"]:not(:has(img[src])) .car-reveal-wave {
    animation: car-drop-wave 1550ms linear infinite;
    animation-delay: -350ms;
  }
  .car-reveal-stage[data-phase="reveal"]:has(img[src]) .car-reveal-wave {
    animation: car-drop-wave 950ms linear both;
  }
  .car-reveal-stage[data-phase="reveal"] img[src] {
    animation: car-drop-art 950ms linear both;
  }
  :is(.account, .segments button, .number-drop-entry, .collectible, .uploader,
      .primary, .secondary, .country button, .drop-countries button, .admin-user, .close),
  nav button span {
    transition: transform 250ms var(--settle), box-shadow 250ms var(--settle),
                border-color 190ms ease, color 190ms ease;
  }
  :is(.account, .segments button, .number-drop-entry, .collectible, .uploader,
      .primary, .secondary, .country button, .drop-countries button, .admin-user):active:not(:disabled) {
    transform: translateY(1.5px);
    box-shadow: var(--pressed);
  }
  nav button:active span, .close:active { transform: scale(.94); }
  #dialog .number-art[src] { animation: print-appear 270ms var(--settle) both; }
  #toast { animation: print-appear 210ms var(--settle) both; }
  @media (hover: hover) and (pointer: fine) {
    :is(.account, .segments button, .number-drop-entry, .collectible, .uploader,
        .primary, .secondary, .drop-countries button, .admin-user):hover:not(:active):not(:disabled) {
      transform: translateY(-2px);
      box-shadow: var(--paper-rim), var(--paper-raised);
    }
  }
  @supports (transition-behavior: allow-discrete) {
    .cws-dialog {
      opacity: 0;
      transform: translateY(10px) scale(.99);
      transition: opacity 220ms var(--settle), transform 290ms var(--settle),
                  display 290ms allow-discrete, overlay 290ms allow-discrete;
    }
    .cws-dialog[open] { opacity: 1; transform: none; }
    .cws-dialog::backdrop {
      opacity: 0;
      transition: opacity 220ms ease, display 290ms allow-discrete, overlay 290ms allow-discrete;
    }
    .cws-dialog[open]::backdrop { opacity: 1; }
    @starting-style {
      .cws-dialog[open] { opacity: 0; transform: translateY(10px) scale(.99); }
      .cws-dialog[open]::backdrop { opacity: 0; }
    }
  }
  @supports not (transition-behavior: allow-discrete) {
    .cws-dialog[open] { animation: print-appear 270ms var(--settle) both; }
  }
}
@keyframes car-drop-wave {
  0% { opacity: 0; transform: translateY(-63%) rotate(-8deg); }
  16%, 82% { opacity: .92; }
  100% { opacity: 0; transform: translateY(204%) rotate(-8deg); }
}
@keyframes car-drop-art {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}
@keyframes print-appear {
  from { opacity: .35; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
#confirm-action { max-width: 420px; }
#confirm-message { white-space: pre-line; }
#confirm-reason { width: 100%; padding: 9px; resize: vertical; font: inherit; }
.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}

:root { background: var(--sheet); color: var(--ink); }
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edeadd;
  --green: #a9ce9e;
  --desk: #171e18;
  --desk-light: #30382b;
  --sheet: #242c25;
  --sheet-grid: #b3c1a51a;
  --muted: #b9c2b1;
  --frame: #465041;
  --edge-glint: #b7c3a62a;
  --panel-ink: #e5e7d9;
  --board-top: #343f34;
  --board-bottom: #293428;
  --accent-face: #394938;
  --field: #252e26;
  --label-fill: #405840;
  --label-ink: #d4e7c4;
  --focus: #b1d8a5;
  --paper-edge: #63725c;
  --paper-face: linear-gradient(145deg, #374137, #2e372e 88%);
  --paper-lift: 0 2px 4px #080e0870, 0 10px 18px -12px #080e08d0;
  --paper-raised: 0 4px 7px #080e086e, 0 19px 29px -16px #080e08de;
  --pressed: inset 0 1px 4px #080e0880, 0 1px 2px #080e0860;
  --print-grid: #c3d2ad3d;
  --print-first: #607a57;
  --print-second: #495f49;
  --print-third: #74816a;
}
:root[data-theme="dark"] nav {
  background: var(--paper-grain), linear-gradient(#26342a, #1e281f);
  border-top-color: var(--paper-edge);
}
p, .hero p, .number-drop-entry small, .uploader small, .tiny, label,
.statgrid small, .admin-stats small, .admin-user small, .collectible .code,
.section-head span, .price small, .number-meta, .brand small, footer,
.garage-cover figcaption, .drop-cover figcaption, .preview { color: var(--muted); }
.secondary, .segments button, .cws-dialog, .admin-user, .country button,
select option { color: var(--panel-ink); }
select option { background: var(--field); }
.eyebrow, .account-label, .account-arrow, .segment-icon, .shopicon,
.number-drop-entry > span, .uploader > span, .quiet, .ref, .saved-state,
.drop-countries button span, .close, .drop-value strong { color: var(--focus); }
.hero::before { color: var(--muted); border-bottom-color: var(--paper-edge); }
.tag, .segment-count, .shopicon, .drop-value {
  background: var(--label-fill);
  color: var(--label-ink);
  border-color: var(--paper-edge);
}
.drop-value span { color: var(--label-ink); }
.drop-cover, .garage-cover, #dialog .number-art { border-color: var(--frame); }
.secondary.delete-asset { margin-top: 16px; color: #762f22; }
:root[data-theme="dark"] .secondary.delete-asset { color: #ffb8a6; }
.coin-icon {
  display: inline-block;
  width: 1.28em;
  height: 1em;
  vertical-align: -.14em;
  background-color: currentColor;
  -webkit-mask: url("/design/cws-coin.svg") center / contain no-repeat;
  mask: url("/design/cws-coin.svg") center / contain no-repeat;
}
.balance { align-items: center; }
.balance .coin-icon { font-size: 18px; color: var(--green); }
.shopicon .coin-icon { font-size: 21px; }
.ui-icon { display: block; width: 1.1em; height: 1.1em; }
.shopicon .ui-icon, .empty-icon .ui-icon { width: 23px; height: 23px; }
.empty > .empty-icon { display: inline-grid; place-items: center; }
.segments .segment-icon, .number-drop-entry .number-entry-icon { display: inline-flex; align-items: center; }
.plate-icon {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid currentColor;
  border-radius: 2px;
  padding-left: 2px;
  color: inherit;
  background: transparent;
  font: 900 8px/1.45 'Courier New', monospace;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.plate-icon > span { border-left: 1px solid currentColor; padding: 0 2px; margin-left: 2px; }
.number-entry-icon .plate-icon { font-size: 10px; }
.ranking-list { display: grid; gap: 6px; padding: 0; margin: 16px 0; list-style: none; }
.ranking-row {
  display: grid;
  grid-template-columns: 2.8em minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--paper-edge);
  background: var(--paper-face);
}
.ranking-row strong { overflow-wrap: anywhere; }
.ranking-place, .ranking-row b { font-variant-numeric: tabular-nums; }
.ranking-place { color: var(--muted); }
.ranking-self { border-color: var(--green); }
.sale-tabs { margin: 12px 0; }
.garage-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 0 0 14px;
}
.garage-filters label { flex: 1; min-width: 130px; }
.garage-filters select { display: block; width: 100%; margin: 5px 0 0; }
.garage-filters select, .garage-filters button { height: 44px; padding-block: 0; }
.garage-filters button[aria-pressed="true"] { background: var(--label-fill); color: var(--label-ink); border-color: var(--green); }
.sale-tabs button { display: block; text-align: center; }
.catalog-grid .collectible {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  padding: 0;
}
.catalog-grid .collectible .content {
  display: grid;
  align-content: space-between;
  gap: 4px;
  padding: 7px 9px;
}
.catalog-model-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.25;
}
.catalog-grid [hidden] { display: none; }
.catalog-price { font-size: 11px; font-weight: 700; }
#catalog-card h1 { overflow-wrap: anywhere; }
.sale-preview img { display: block; max-height: 32vh; width: 100%; object-fit: contain; }
.subscription-link { display: block; text-align: center; text-decoration: none; }
.skeleton { background: var(--board-bottom); }
.pill.common { color: #535b50; }
.pill.uncommon { color: #007455; }
.pill.old { color: #895039; }
.pill.rare { color: #235f9d; }
.pill.epic { color: #813b80; }
.pill.legendary { color: #875700; }
.pill.exclusive { color: #9b3439; }
.pill.unassessed { color: #625b72; }
:root[data-theme="dark"] .pill.common { color: #c6cec3; }
:root[data-theme="dark"] .pill.uncommon { color: #a5dfae; }
:root[data-theme="dark"] .pill.old { color: #e5b89a; }
:root[data-theme="dark"] .pill.rare { color: #a6d2f5; }
:root[data-theme="dark"] .pill.epic { color: #e4b4ed; }
:root[data-theme="dark"] .pill.legendary { color: #f4d186; }
:root[data-theme="dark"] .pill.exclusive { color: #ffa9ad; }
:root[data-theme="dark"] .pill.unassessed { color: #c6b9d6; }
.pill.personal { color: var(--personal-color, #37567d); --personal-colors: #056b52, #37567d, #973e72; }
:root[data-theme="dark"] .pill.personal { --personal-color: #a7dcdf; --personal-colors: #a3edb7, #a7dcff, #f2b8de; }
@supports (background-clip: text) {
  .pill.personal {
    display: inline-block;
    width: fit-content;
    background-image: linear-gradient(110deg, var(--personal-colors));
    background-clip: text;
    color: transparent;
  }
}
:root[data-theme="dark"] .cutout-letter:nth-child(3n+2) { background: #c0baa5; }
:root[data-theme="dark"] .cws-dialog::backdrop { background: #0d130ec2; }
:root[data-theme="dark"] .close { color: #dde8d3; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline-color: var(--focus);
}
.theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}
.theme-options button { min-height: 42px; }
.theme-options button span { margin-right: 4px; font-size: 16px; vertical-align: middle; }
.theme-options button[aria-pressed="true"] {
  background: var(--paper-grain), linear-gradient(165deg, #0a8059, #005d43);
  color: #fff7e6;
  border-color: #174d37;
}
.account:hover, .secondary:hover { background: var(--paper-grain), linear-gradient(var(--field), var(--board-top)); }
.theme-options button[aria-pressed="true"]:hover {
  background: var(--paper-grain), linear-gradient(165deg, #0a8059, #005d43);
}
.segments button.selected .segment-count {
  background: #e4e6bb;
  color: #233229;
}
.drop-hero { margin-top: 12px; }
.drop-hero::before { display: none; }
.drop-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.drop-actions button { min-height: 44px; padding: 9px 6px; }
#drop-timer { min-height: 1.5em; margin: 10px 0 0; }
.mystery-car {
  margin: 14px 2px 8px;
  padding: 4px;
}
.mystery-car img {
  display: block;
  width: 100%;
  height: auto;
}

.garage-showcase { width: 100%; margin: 14px 0; }
.garage-showcase p { margin: 0 0 8px; }
.garage-showcase.collectible .content p { margin: 4px 0 0; }
.artwork-preview {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
}
.garage-art { aspect-ratio: 800 / 1155; }
.plate-art { aspect-ratio: 15 / 7; }
.artwork-preview img,
.collectible .artwork-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  border: 0;
}
.collectible .garage-art.has-cutout img { padding: 8px; }
.collectible .catalog-artwork,
.collectible .car-tile-artwork {
  position: relative;
  display: grid;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 708 / 1067;
  border-radius: 5% / 3.3%;
  box-shadow: 0 5px 9px #10170f40;
}
.collectible .catalog-artwork > img {
  position: absolute;
  inset: -4.7% -7.2%;
  width: 114.4%;
  height: 109.4%;
  max-width: none;
  border: 0;
  object-fit: fill;
}
.collectible .car-tile-artwork > img { object-fit: cover; }
.sale-preview .garage-art { max-height: 48dvh; }
.garage-showcase .garage-art { aspect-ratio: 1.65; }
.garage-card, .garage-card .content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.garage-card .content {
  flex: 1;
  width: 100%;
  overflow-wrap: anywhere;
}
.garage-card .code { margin-top: auto; }
.car-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.car-specs div { padding: 8px; border: 1px solid var(--paper-edge); }
.car-specs dt { font-size: 11px; color: var(--muted); }
.car-specs dd { font-weight: 700; margin: 3px 0 0; }

.daily-bonus { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.daily-bonus h2, .channel-offer h2 { margin: 0; }
.daily-bonus button { min-height: 44px; }
.bonus-state { margin: 0; color: var(--focus); font-weight: 800; }
.market-listing { display: grid; gap: 8px; overflow-wrap: anywhere; }
.market-listing p { margin: 3px 0 0; }
.market-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.market-actions button { min-height: 44px; }
.market-actions [data-review-vote][aria-pressed="true"] {
  background: var(--label-fill);
  color: var(--label-ink);
  border-color: var(--focus);
  box-shadow: inset 0 0 0 2px var(--focus);
}
.secondary, a.telegram-button.secondary {
  border-color: #627454;
  background: var(--paper-grain), #e9ecdb;
  color: #24351e;
}
.secondary:hover, a.telegram-button.secondary:hover { background: #d9e3ce; }
:root[data-theme="dark"] .secondary {
  background: var(--paper-grain), #465944;
  border-color: #99ad86;
  color: #f4f5eb;
}
:root[data-theme="dark"] .secondary:hover { background: #53694f; }
.secondary.delete-asset { color: #762f22; }
:root[data-theme="dark"] .secondary.delete-asset { color: #ffccbf; }
a.telegram-button { display: inline-grid; place-items: center; min-height: 44px; text-decoration: none; }
.shopitem { grid-template-columns: 36px minmax(0, 1fr) auto; }
.shopicon { width: 35px; overflow: hidden; }
.shopicon .ui-icon { display: block; width: 23px; height: 23px; }
.shopicon .plate-icon { max-width: 31px; font-size: 5px; padding: 2px 1px; box-shadow: none; }
.shopicon .plate-icon > span { padding: 0 1px; margin-left: 1px; }

.number-image-stage { display: grid; place-items: center; margin: 12px 0; text-align: center; }
.number-loading {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  width: 100%;
  aspect-ratio: 15 / 7;
  border: 1px solid var(--paper-edge);
  font-size: 12px;
}
.image-spinner {
  width: 23px;
  height: 23px;
  border: 2px solid var(--paper-edge);
  border-top-color: var(--focus);
  border-radius: 50%;
  animation: image-spin 800ms linear infinite;
}
@keyframes image-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .image-spinner { animation: none; } }
.number-art, .plate-collectible .number-art { aspect-ratio: 15 / 7; object-fit: contain; }
#dialog .number-art { border: 0; margin: 0; }
.number-result-actions button, #streetform button, #confirm-model, .asset-pin { min-height: 44px; }
.number-result-actions { margin-top: 14px; }
.detail-action-group {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--paper-edge);
}
.detail-action-group > button:first-child, .detail-action-group .wide { margin-top: 0; }
.detail-action-group > p:first-child { margin-top: 0; }
.asset-pin { margin-top: 4px; }
.number-result-actions .detail-action-group { margin-top: 8px; }
.number-result-actions .detail-action-group button, .photo-change button { width: 100%; }
#streetpreview { display: block; width: 100%; max-height: 30dvh; object-fit: contain; margin: 8px 0 12px; }
.cws-dialog {
  max-height: min(85dvh, calc(var(--tg-viewport-height, 100dvh) - 36px));
  padding: 22px clamp(15px, 4vw, 25px) 18px;
  overflow-wrap: anywhere;
}
.cws-dialog h1 { padding-inline-end: 24px; }
.car-drop-dialog .car-reveal-stage img { max-height: 52dvh; object-fit: contain; }
.car-drop-dialog .car-reveal-stage:not(:has(img[src])) { max-height: 52dvh; }
.car-detail-image { display: block; width: 100%; max-height: 48dvh; object-fit: contain; }
.car-image-stage .number-loading { aspect-ratio: auto; min-height: min(48dvh, 300px); }
.background-stage {
  width: min(100%, 33dvh);
  aspect-ratio: 800 / 1155;
  margin: 0 auto 12px;
  filter: drop-shadow(0 6px 9px #10170f65);
  touch-action: pan-y;
  user-select: none;
}
.background-preview,
.car-arrival-card,
.car-detail-image.catalog-detail {
  clip-path: inset(4.3% 6.25% round 4.6% / 3.3%);
}
.background-preview { display: block; width: 100%; height: 100%; object-fit: contain; }
.car-detail-image.catalog-detail { width: auto; max-width: 100%; margin-inline: auto; }
.profile-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 122px), 1fr));
  gap: 8px 16px;
  margin: 14px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--paper-edge);
}
.profile-details dt { color: var(--muted); font-size: 12px; }
.profile-details dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.background-controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.background-controls button { min-height: 44px; }
.background-controls p { margin: 0; color: var(--ink); font-weight: 700; }
#background-hint { min-height: 1.8em; margin-bottom: 0; text-align: center; }
.car-reveal-details #share-card { margin-top: 8px; min-height: 44px; }
#toast {
  inset: calc(max(env(safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px)) + 10px) 0 auto;
  transform: none;
  width: min(calc(100% - 24px), 460px);
  margin: 0 auto;
  overflow-wrap: anywhere;
  pointer-events: none;
}
#toast:popover-open, #toast.toast-visible { display: block; }
#toast[data-kind="error"] { background: var(--paper-grain), #742d2b; color: #fff6ee; border-color: #e6a299; }
#toast[data-kind="info"] { background: var(--paper-grain), #3d4b4d; border-color: #a5baba; }

/* Centre drops in the usable Telegram viewport, above the bottom navigation. */
.cws-dialog.car-drop-dialog {
  --drop-viewport: min(100dvh, var(--drop-client-height, 100dvh), var(--tg-viewport-height, 100dvh));
  --drop-top: max(12px, env(safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px));
  --drop-bottom: calc(76px + max(env(safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px)));
  top: var(--drop-top);
  bottom: calc(var(--drop-client-height, 100dvh) - var(--drop-viewport) + var(--drop-bottom));
  margin: auto;
  max-height: calc(var(--drop-viewport) - var(--drop-top) - var(--drop-bottom));
}

/* Keep the parked car and its card at the same coordinates when details appear. */
.cws-dialog.car-drop-dialog[data-drop-anchored="true"] {
  --drop-current-top: max(var(--drop-top), min(var(--drop-anchor-top), calc(var(--drop-viewport) - var(--drop-bottom) - 200px)));
  top: var(--drop-current-top);
  margin-block: 0;
  max-height: calc(var(--drop-viewport) - var(--drop-current-top) - var(--drop-bottom));
}

.car-arrival-3d { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; pointer-events: none; }
.car-reveal-stage:is([data-phase="arrival-3d"], [data-phase="ready-3d"]) .car-reveal-wave { visibility: hidden; }
.car-drop-dialog #car-drop-status { height: 52px; min-height: 52px; line-height: 15px; padding-block: 6px; display: grid; place-items: center; }

/* Street discoveries lead the first screen; keep the free collection path close. */
.street-discovery {
  margin: 0 0 18px; padding: 18px; border: 1px solid var(--paper-edge);
  border-left: 5px solid var(--green, #087956); background: var(--paper-grain), var(--paper-face);
  box-shadow: 2px 4px 7px #10170f20;
}
.street-discovery h2 { margin: 9px 0 7px; font-size: clamp(20px, 5vw, 25px); }
.street-discovery p { color: var(--ink); font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.street-discovery .eyebrow { font-size: 11px; letter-spacing: .08em; }
.street-discovery button { min-height: 44px; }
.intro-dialog { max-width: 460px; padding: 22px; }
.intro-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.intro-top .eyebrow { font-size: 11px; letter-spacing: .07em; line-height: 1.5; }
.intro-top button { flex-shrink: 0; min-height: 44px; }
.intro-illustration {
  display: grid; place-items: center; width: 94px; height: 94px; margin: 20px auto 16px;
  background: #087956; color: #f4f1dc; transform: rotate(-4deg);
  box-shadow: 4px 5px 0 #10170f20;
}
.intro-illustration svg { width: 58px; height: 62px; }
.intro-dialog h2 { font-size: 25px; line-height: 1.16; margin: 12px 0; }
.intro-dialog p { font-size: 15px; line-height: 1.55; color: var(--ink); }
.intro-dialog .intro-count { font-size: 12px; margin: 0; }
.intro-dialog .intro-hint { font-size: 13px; border-left: 2px solid var(--paper-edge); padding-left: 10px; }
.intro-progress { display: flex; justify-content: center; gap: 7px; margin: 20px 0; }
.intro-progress span { width: 26px; height: 4px; background: var(--paper-edge); }
.intro-progress .current { background: var(--green, #087956); }
.intro-controls { display: flex; gap: 10px; }
.intro-controls button { flex: 1; min-height: 46px; }
#intro-error:empty { display: none; }
#intro-error, #feedback-error { font-size: 14px; }
.analytics-periods { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.analytics-periods button { flex: 1; min-width: 62px; min-height: 44px; }
.analytics-periods [aria-pressed="true"] { background: var(--green, #087956); color: #fff8e9; }
.analytics-note { color: var(--ink); opacity: .85; font-size: 13px; line-height: 1.55; }
.analytics-empty { font-size: 14px; line-height: 1.55; }
.analytics-summary small { font-size: 13px; line-height: 1.4; }
.analytics-trend { display: block; width: 100%; height: auto; margin-top: 14px; overflow: visible; }
.analytics-grid { stroke: var(--paper-edge); stroke-width: 1; }
.analytics-line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.analytics-line.visitors { stroke: #087956; }
.analytics-line.players { stroke: #b66c2b; stroke-dasharray: 7 4; }
.analytics-dot { fill: #087956; }
.analytics-axis { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.analytics-legend { display: grid; gap: 5px; font-size: 13px; }
.analytics-legend span:first-child { color: #087956; }
.analytics-legend span:last-child { color: #9e571e; }
.analytics-table { overflow-x: auto; max-width: 100%; }
.analytics-table table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.analytics-table th, .analytics-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--paper-edge); white-space: nowrap; }
.analytics-bars { display: grid; gap: 15px; margin: 16px 0 24px; }
.analytics-bar > div:first-child { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 1.45; }
.analytics-bar-track { height: 7px; background: #7a8e7d30; margin-top: 7px; }
.analytics-bar-track span { display: block; height: 100%; background: #087956; }
.retention-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 20px 0; }
.retention-card { border: 1px solid var(--paper-edge); padding: 12px 8px; }
.retention-card > * { display: block; }
.retention-card > span { font-size: 14px; font-weight: 700; }
.retention-card strong { font-size: clamp(20px,6vw,30px); margin: 8px 0; }
.retention-card small { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
[data-theme="dark"] .analytics-line.visitors { stroke: #7ac2a3; }
[data-theme="dark"] .analytics-dot, [data-theme="dark"] .analytics-bar-track span { fill: #7ac2a3; background: #7ac2a3; }
[data-theme="dark"] .analytics-line.players { stroke: #eab27d; }
[data-theme="dark"] .analytics-legend span:first-child { color: #7ac2a3; }
[data-theme="dark"] .analytics-legend span:last-child { color: #eab27d; }
@media(max-height:650px) { .intro-illustration { width: 60px; height: 60px; margin: 12px auto; } .intro-illustration svg { width: 42px; height: 46px; } }

/* Guided first session: the highlighted controls remain real, clickable controls. */
.coach-layer { position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0; padding:0; border:0; background:transparent; overflow:visible; pointer-events:none; color:var(--ink); }
.coach-layer::backdrop { background:transparent; pointer-events:none; }
.coach-spotlight { position:fixed; border:2px solid #16b58b; border-radius:5px; box-shadow:0 0 0 200vmax #07191085; pointer-events:none; }
.coach-panel { position:fixed; box-sizing:border-box; width:min(340px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; padding:16px; border:1px solid var(--paper-edge,#74806d); background:var(--panel,#eeebdf); color:var(--ink); box-shadow:0 6px 24px #0004; pointer-events:auto; border-radius:4px; }
.coach-panel h2 { font-size:20px; line-height:1.2; margin:10px 0; }
.coach-panel p { font-size:15px; line-height:1.45; margin:0; color:var(--ink); }
.coach-top { display:flex; align-items:center; justify-content:space-between; gap:6px; font-size:12px; }
.coach-top button { min-height:44px; padding:6px; }
:root[data-theme="dark"] .coach-panel { background:#303b32; }
.collection-goal { margin:18px 0; padding:18px; border:1px solid var(--paper-edge,#77816d); background:var(--accent-face,#e4e5d8); border-radius:3px; }
.collection-goal h2 { font-size:20px; line-height:1.25; margin:10px 0; }
.collection-goal p { font-size:14px; line-height:1.5; color:var(--ink); }
.goal-progress { height:5px; margin:14px 0; background:#7b85634d; overflow:hidden; }
.goal-progress span { display:block; height:100%; background:var(--green); }
.catalog-buy-help { margin-top:14px; padding:14px; border:1px solid var(--paper-edge,#77816d); }
.catalog-buy-help p { color:var(--ink); font-size:14px; line-height:1.5; }
.car-management { margin-top:20px; padding-top:14px; border-top:1px solid var(--paper-edge,#77816d); }
.car-management summary { padding:10px 0; font-size:14px; cursor:pointer; }
#reveal-to-garage { margin:0 0 18px; }
.discovery-alternative { font-size:13px; }

/* Printed identity and specifications stay hidden until the arrival has finished. */
.car-reveal-stage[data-phase="arrival-3d"] > .car-arrival-card { clip-path:inset(26% 6.25% 34% 6.25%); }
.car-reveal-stage[data-phase="reveal"] > img { clip-path:inset(0 0 34% 0); }
@keyframes car-drop-art { from { clip-path:inset(0 0 100% 0); } to { clip-path:inset(0 0 34% 0); } }
.drop-specifications { margin:16px 0; border:1px solid var(--paper-edge); padding:12px; }
.drop-specifications summary { cursor:pointer; min-height:28px; font-weight:700; }
.showcase-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.showcase-heading button { min-height:44px; }
.showcase-cards .garage-showcase { margin-top:0; width:100%; }
.showcase-carousel { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:12px; padding-bottom:8px; }
.showcase-carousel .garage-showcase { flex:0 0 88%; min-width:0; scroll-snap-align:start; }
.collection-goal progress { width:100%; accent-color:var(--green); }

body { min-width:0; }
.garage-featured,.showcase-cards { min-width:0; }
