:root {
  --bg: #fbf6ee;
  --bg2: #f3e9d8;
  --card: #ffffff;
  --ink: #2b1d14;
  --muted: #8a7566;
  --line: #eadfce;
  --brand: #b5651d;
  --brand-ink: #fff;
  --brand-soft: #f6e3cc;
  --green: #2f7d5b;
  --green-soft: #dcefe5;
  --sun: #ffb703;
  --flame: #ff6b2c;
  --danger: #c0392b;
  --shadow: 0 6px 24px rgba(80, 45, 15, .10);
  --r: 20px;
  --nav-h: 68px;
  --pad: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110d;
    --bg2: #1f1712;
    --card: #251b15;
    --ink: #f6ebdd;
    --muted: #a8917f;
    --line: #3a2c22;
    --brand: #e08a3c;
    --brand-ink: #1b1109;
    --brand-soft: #3a2616;
    --green: #5bc08f;
    --green-soft: #1e3629;
    --shadow: 0 6px 24px rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg2);
  color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  justify-content: center;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 22px; letter-spacing: -.02em; }
h3 { font-size: 16px; }
.muted { color: var(--muted); font-size: 13px; }

.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 520px) {
  body { background: var(--bg); }
  .app { max-width: 600px; --pad: 24px; box-shadow: 0 0 0 1px var(--line); }
}

/* top bar */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 8px;
  padding-top: max(14px, env(safe-area-inset-top));
}
.brand { display: flex; gap: 10px; align-items: center; }
.brand b { display: block; font-size: 17px; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 12px; }
.logo { width: 40px; height: 40px; display: grid; place-items: center; background: var(--brand); border-radius: 14px; font-size: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-weight: 600; font-size: 13px;
}

/* views */
main { flex: 1; min-height: 0; position: relative; }
.view { display: none; height: 100%; overflow-y: auto; padding: 8px var(--pad) calc(var(--nav-h) + 90px); scrollbar-width: none; }
.view::-webkit-scrollbar { display: none; }
.view.active { display: block; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#v-connect.active { display: flex; flex-direction: column; padding-bottom: calc(var(--nav-h) + 14px); }

.stack > * + * { margin-top: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 10px; }
.section-title a { color: var(--brand); font-weight: 600; font-size: 13px; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: var(--brand-ink);
  padding: 12px 18px; border-radius: 14px; font-weight: 700;
  transition: transform .12s, filter .12s;
}
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--brand-soft); color: var(--brand); }
.btn.green { background: var(--green); color: #fff; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* hero / streak */
.hero {
  background: linear-gradient(135deg, #b5651d, #7a3e0e 70%);
  color: #fff; border-radius: 26px; padding: 20px;
  position: relative; overflow: hidden;
}
.hero::after { content: "🍵"; position: absolute; right: -10px; bottom: -28px; font-size: 130px; opacity: .13; transform: rotate(-12deg); }
.hero small { opacity: .8; }
.hero h1 { font-size: 26px; letter-spacing: -.03em; margin: 2px 0 12px; line-height: 1.15; }
.streak-row { display: flex; align-items: center; gap: 14px; }
.flame { font-size: 44px; filter: drop-shadow(0 4px 10px rgba(255, 107, 44, .6)); animation: flick 1.6s ease-in-out infinite; }
@keyframes flick { 50% { transform: scale(1.08) rotate(-4deg); } }
.streak-num { font-size: 34px; font-weight: 800; line-height: 1; }
.week { display: flex; gap: 6px; margin-top: 14px; }
.week div { flex: 1; text-align: center; font-size: 11px; opacity: .95; }
.week i { display: grid; place-items: center; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .16); margin-bottom: 4px; font-style: normal; }
.week .done i { background: var(--sun); color: #3b2300; }
.week .today i { outline: 2px solid #fff; }

.progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .22); overflow: hidden; margin-top: 12px; }
.progress b { display: block; height: 100%; background: var(--sun); border-radius: 99px; transition: width .6s; }
.card .progress { background: var(--bg2); }

/* order tracker */
.track { display: flex; justify-content: space-between; position: relative; margin: 16px 4px 4px; }
.track::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; height: 3px; background: var(--line); }
.track div { position: relative; text-align: center; font-size: 12px; color: var(--muted); width: 70px; }
.track i { display: grid; place-items: center; margin: 0 auto 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); font-style: normal; font-size: 13px; }
.track .on { color: var(--ink); font-weight: 600; }
.track .on i { border-color: var(--green); background: var(--green); color: #fff; }
.token { font-size: 40px; font-weight: 800; letter-spacing: .04em; color: var(--brand); }
.pulse { animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* h-scroll */
.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.offer {
  flex: 0 0 78%; scroll-snap-align: start; position: relative;
  border-radius: 20px; padding: 16px; border: 1px dashed var(--brand);
  background: var(--brand-soft);
}
.offer.locked { filter: grayscale(.9); opacity: .65; }
.offer .code { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-weight: 700; background: var(--card); border-radius: 8px; padding: 2px 8px; font-size: 12px; margin-bottom: 6px; }
.offer p { font-size: 13px; color: var(--muted); }
.offer h3 { margin-bottom: 2px; }

.special { display: flex; gap: 14px; align-items: center; }
.special .big { font-size: 46px; }
.crowd { display: flex; gap: 4px; margin-top: 8px; }
.crowd i { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.crowd i.f { background: var(--green); }
.crowd i.f.hot { background: var(--flame); }

/* menu */
.cats { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 14px; padding: 4px var(--pad); scrollbar-width: none; position: sticky; top: -8px; background: var(--bg); z-index: 2; }
.cats button { flex: none; padding: 8px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.cats button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.item { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; }
.item .em { width: 58px; height: 58px; flex: none; display: grid; place-items: center; font-size: 30px; background: var(--brand-soft); border-radius: 16px; }
.item .info { flex: 1; min-width: 0; }
.item .info b { display: block; }
.item .info span { color: var(--muted); font-size: 12.5px; }
.item .price { font-weight: 700; margin-top: 2px; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--green-soft); color: var(--green); margin-left: 6px; vertical-align: middle; }
.tag.hot { background: #ffe1d3; color: #c2410c; }
.qty { display: flex; align-items: center; gap: 4px; background: var(--bg2); border-radius: 12px; padding: 3px; }
.qty button { width: 30px; height: 30px; border-radius: 10px; font-weight: 800; font-size: 17px; background: var(--card); }
.qty b { min-width: 20px; text-align: center; }
.add { background: var(--brand); color: var(--brand-ink); font-weight: 800; border-radius: 12px; padding: 8px 14px; }

/* bars */
.cart-bar {
  position: absolute; left: 14px; right: 14px; bottom: calc(var(--nav-h) + 12px);
  background: var(--ink); color: var(--bg); border-radius: 18px; padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3); cursor: pointer; z-index: 5; animation: rise .3s both;
}
.cart-bar b { font-size: 16px; }
.cart-bar span { opacity: .75; font-size: 12.5px; display: block; }
.cart-bar .go { background: var(--brand); color: var(--brand-ink); padding: 9px 14px; border-radius: 12px; font-weight: 800; }
.order-pill {
  position: absolute; left: 50%; transform: translateX(-50%); top: 66px; z-index: 6;
  background: var(--green); color: #fff; padding: 8px 14px; border-radius: 99px; font-weight: 700; font-size: 13px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25); white-space: nowrap;
}
.order-pill[hidden], .cart-bar[hidden] { display: none; }

.tabs {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--nav-h);
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(16px); border-top: 1px solid var(--line); z-index: 8;
}
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 11px; color: var(--muted); font-weight: 600; position: relative; }
.tabs button i { font-style: normal; font-size: 21px; filter: grayscale(1); opacity: .7; transition: transform .2s; }
.tabs button.on { color: var(--brand); }
.tabs button.on i { filter: none; opacity: 1; transform: translateY(-2px) scale(1.12); }
.tabs em { position: absolute; top: 8px; left: 56%; background: var(--flame); color: #fff; font-style: normal; font-size: 10px; min-width: 17px; height: 17px; line-height: 17px; border-radius: 9px; text-align: center; font-weight: 800; }

/* chai connect */
.connect-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; margin-right: 6px; box-shadow: 0 0 0 0 rgba(46, 204, 113, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }
.rooms { display: flex; gap: 8px; margin: 12px 0 8px; overflow-x: auto; scrollbar-width: none; }
.rooms button { flex: none; padding: 7px 13px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.rooms button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.presence { display: flex; margin: 2px 0 10px; }
.presence span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; border: 2px solid var(--bg); margin-left: -8px; }
.presence span:first-child { margin-left: 0; }
.chat { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 0; scrollbar-width: none; }
.msg { max-width: 82%; align-self: flex-start; }
.msg small { display: block; font-size: 11px; color: var(--muted); margin: 0 6px 2px; }
.msg p { background: var(--card); border: 1px solid var(--line); padding: 8px 13px; border-radius: 4px 18px 18px 18px; word-wrap: break-word; }
.msg.me { align-self: flex-end; text-align: right; }
.msg.me p { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); border-radius: 18px 4px 18px 18px; text-align: left; }
.msg.sys { align-self: center; max-width: 100%; }
.msg.sys p { background: none; border: 0; color: var(--muted); font-size: 12px; padding: 2px; }
.msg .hearts { font-size: 11px; margin: 2px 6px 0; }
.quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 6px; scrollbar-width: none; }
.quick button { flex: none; background: var(--brand-soft); color: var(--brand); border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; }
.composer { display: flex; gap: 8px; }
.composer input { flex: 1; padding: 13px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); outline: none; }
.composer input:focus { border-color: var(--brand); }
.send { width: 48px; border-radius: 16px; background: var(--brand); color: var(--brand-ink); font-size: 18px; }
.typing { color: var(--muted); font-size: 12px; margin-left: 6px; }

/* game */
.game-wrap { position: relative; border-radius: 24px; overflow: hidden; background: linear-gradient(#ffe9c8, #f7c98b); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .game-wrap { background: linear-gradient(#3a2616, #2a190d); } }
#gameCanvas { display: block; width: 100%; aspect-ratio: 3 / 4; touch-action: none; }
.hud { display: flex; justify-content: space-between; font-weight: 800; padding: 10px 14px; position: absolute; top: 0; left: 0; right: 0; pointer-events: none; font-size: 16px; }
.overlay { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px; padding: 24px; background: rgba(30, 14, 4, .62); color: #fff; backdrop-filter: blur(3px); }
.overlay[hidden] { display: none; }
.overlay h2 { font-size: 28px; }
.overlay p { opacity: .85; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; margin-top: 12px; }

/* me */
.profile { display: flex; gap: 14px; align-items: center; }
.avatar { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: var(--brand-soft); }
.badge { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); }
.badge.plus { background: var(--green); color: #fff; }
.badge.pro { background: linear-gradient(90deg, #f59e0b, #ef4444); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats div { text-align: center; padding: 12px 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.stats b { font-size: 22px; display: block; }
.stats span { font-size: 12px; color: var(--muted); }
.plan { position: relative; padding: 16px; border-radius: 20px; background: var(--card); border: 2px solid var(--line); margin-bottom: 12px; }
.plan.cur { border-color: var(--green); }
.plan.best::before { content: "MOST POPULAR"; position: absolute; top: -10px; right: 16px; background: var(--flame); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 99px; }
.plan header { display: flex; justify-content: space-between; align-items: baseline; }
.plan .pr { font-size: 22px; font-weight: 800; }
.plan .pr small { font-size: 12px; color: var(--muted); font-weight: 500; }
.plan ul { margin: 10px 0 14px; padding: 0; list-style: none; font-size: 13.5px; }
.plan li { padding: 2px 0; }
.plan li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.milestones { display: grid; gap: 8px; }
.mile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.mile .d { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg2); font-weight: 800; }
.mile.ok .d { background: var(--sun); color: #3b2300; }
.mile.ok { border-color: var(--sun); }
.link { color: var(--muted); text-decoration: underline; font-size: 12px; }

/* sheet */
.sheet-wrap { position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-end; }
.sheet-wrap[hidden] { display: none; }
.scrim { position: absolute; inset: 0; background: rgba(20, 10, 3, .55); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; width: 100%; max-height: 88%; overflow-y: auto; background: var(--bg); border-radius: 28px 28px 0 0; padding: 10px 18px 24px; animation: slide .3s cubic-bezier(.2, .9, .3, 1); }
@keyframes slide { from { transform: translateY(100%); } }
.sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; }
.row.total { font-size: 18px; font-weight: 800; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; }
.row .neg { color: var(--green); }
select.coupon { width: 100%; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.pay { display: flex; gap: 8px; margin: 12px 0; }
.pay button { flex: 1; padding: 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); font-weight: 700; font-size: 13px; }
.pay button.on { border-color: var(--brand); background: var(--brand-soft); }

.toast {
  position: absolute; left: 50%; bottom: calc(var(--nav-h) + 80px); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 14px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .3s; z-index: 30; max-width: 88%; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: absolute; top: -10px; font-size: 22px; pointer-events: none; z-index: 40; animation: fall 1.8s ease-in forwards; }
@keyframes fall { to { transform: translateY(105dvh) rotate(540deg); opacity: .2; } }

.install { display: none; }
.install:not([hidden]) { display: inline-flex; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.kbd { font-family: ui-monospace, Consolas, monospace; font-size: 11px; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--card); }
.desk-only { display: none; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- desktop web layout ---------- */
@media (min-width: 900px) {
  :root { --pad: 36px; }
  .app {
    max-width: 1280px; margin: 0 auto; box-shadow: none;
    display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
    border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  }
  .top { grid-column: 1 / -1; grid-row: 1; padding: 18px 28px 14px; border-bottom: 1px solid var(--line); }
  main { grid-column: 2; grid-row: 2; }
  .tabs {
    position: static; grid-column: 1; grid-row: 2; height: auto; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 4px; padding: 18px 14px; border-top: 0; border-right: 1px solid var(--line); background: var(--bg); backdrop-filter: none;
  }
  .tabs button { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 16px; border-radius: 14px; font-size: 15px; }
  .tabs button:hover { background: var(--bg2); }
  .tabs button.on { background: var(--brand-soft); }
  .tabs button i { font-size: 20px; }
  .tabs button.on i { transform: none; }
  .tabs em { position: static; margin-left: auto; }
  .desk-only { display: block; }
  .tabs .desk-note { margin-top: auto; padding: 12px 16px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

  .view { padding-top: 22px; padding-bottom: 110px; }
  h2 { font-size: 26px; }

  /* home */
  #v-home .stack { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  #v-home .stack > * + * { margin-top: 0; }
  #v-home .hero { grid-row: span 3; padding: 28px; }
  #v-home .hero h1 { font-size: 32px; }
  .offer { flex-basis: 320px; }
  .hscroll { scroll-snap-type: none; }

  /* menu */
  #v-menu.active { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-content: start; }
  #v-menu > h2, #v-menu > .cats { grid-column: 1 / -1; }
  #v-menu .cats { top: -22px; padding-top: 14px; }
  .item { transition: transform .15s, box-shadow .15s; }
  .item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

  /* connect */
  #v-connect.active { padding-bottom: 28px; }
  #v-connect > * { width: 100%; max-width: 780px; margin-left: auto; margin-right: auto; }
  .msg { max-width: 68%; }

  /* play */
  #v-play .stack { max-width: 520px; margin: 0 auto; }

  /* me */
  #v-me.active { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; align-content: start; }
  #v-me > * { grid-column: 1 / -1; }
  #v-me > .plan { grid-column: auto; margin-top: 10px; }
  #v-me .stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  #v-me .stack > * + * { margin-top: 0; }
  #v-me .milestones { grid-template-columns: 1fr 1fr; }

  /* floating bits sit over the content column, not the sidebar */
  .cart-bar { left: calc(250px + var(--pad)); right: var(--pad); bottom: 22px; max-width: 620px; }
  .order-pill { left: calc(50% + 125px); top: 78px; }
  .toast { bottom: 40px; left: calc(50% + 125px); }

  /* checkout as a centred modal */
  .sheet-wrap { align-items: center; justify-content: center; }
  .sheet { width: 520px; max-height: 86%; border-radius: 28px; padding: 22px 26px 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: pop .25s cubic-bezier(.2, .9, .3, 1); }
  .sheet::before { display: none; }
  @keyframes pop { from { transform: scale(.94); opacity: 0; } }

  .view { scrollbar-width: thin; }
  .view::-webkit-scrollbar { display: block; width: 8px; }
  .view::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
}
@media (min-width: 900px) and (max-height: 700px) { .hero::after { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- sponsored placements ---------- */
.ad-tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .22); color: #fff; }
.ad-tag.dark { background: var(--bg2); color: var(--muted); margin-left: auto; flex: none; }
.ad-card { flex: 0 0 72%; scroll-snap-align: start; position: relative; color: #fff; border-radius: 22px; padding: 16px; cursor: pointer; min-height: 168px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; transition: transform .15s; }
.ad-card:active { transform: scale(.98); }
.ad-card h3 { font-size: 18px; letter-spacing: -.02em; margin-top: 2px; }
.ad-card p { font-size: 13px; opacity: .92; }
.ad-card small { opacity: .75; font-size: 12px; }
.ad-card .ad-em { position: absolute; right: 10px; top: 18px; font-size: 52px; opacity: .9; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25)); }
.ad-card .ad-cta { margin-top: auto; padding-top: 10px; font-size: 14px; }
.ad-banner { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 4px 0 10px; background: var(--card); border: 1px dashed var(--line); border-radius: 16px; cursor: pointer; }
.ad-banner .ad-em { font-size: 26px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--brand-soft); border-radius: 12px; flex: none; }
.ad-banner b { display: block; font-size: 14px; line-height: 1.25; }
.ad-banner small { color: var(--muted); font-size: 12px; display: block; }
.ad-banner > div { min-width: 0; }
#chatAd .ad-banner { margin: 0 0 8px; }
.ad-detail { color: #fff; border-radius: 22px; padding: 22px; margin-bottom: 14px; text-align: center; }
.ad-detail h2 { margin: 4px 0 6px; }
.ad-detail p { opacity: .92; }
.ad-detail .meta { margin-top: 10px; font-size: 13.5px; opacity: .85; }
.ad-big { font-size: 64px; line-height: 1.2; margin-top: 8px; }
.card.reward { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card.reward p { margin: 0; }
@media (min-width: 900px) {
  .ad-card { flex-basis: 300px; }
  #v-menu > .ad-banner { grid-column: 1 / -1; }
}
