/* DogeNord – nordic light theme */
:root {
  --bg: #F2F5F8;
  --surface: #FFFFFF;
  --line: #E1E7EE;
  --line-soft: #EDF1F5;
  --field: #CBD5E0;
  --ink: #0E1A2B;
  --ink-2: #3E4C5E;
  --muted: #5A6879;
  --blue: #1F5FD6;
  --blue-hover: #184FB5;
  --ice: #DCEBF8;
  --ice-soft: #EEF5FC;
  --blue-text: #164A9E;
  --chip: #EDF1F5;
  --green: #15703F; --green-bg: #E4F4EB; --green-line: #BDE1CB;
  --red: #B42318;   --red-bg: #FCEBEA;   --red-line: #F4C7C3;
  --amber: #6B4E00; --amber-bg: #FFF3D6; --amber-line: #F1DA9C;
  --display: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-card: 28px; --r-tile: 16px; --r-field: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 var(--body); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
a:hover { color: var(--blue-text); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
img, svg { display: block; }
.icon { display: inline-block; flex: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* layout */
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.page { padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.col-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.col-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spread { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* header */
.topbar { padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.navbar {
  flex: 1 1 520px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; padding-right: 8px; text-decoration: none; }
.brand-mark {
  width: auto; height: 44px; flex: none; display: block;
  filter: drop-shadow(0 1px 2px rgba(14,26,43,.16));
  transition: transform .2s;
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-name { font: 800 20px var(--display); letter-spacing: -0.02em; }
.brand-name span { color: var(--blue); }
.brand-tag { height: 24px; padding: 0 8px; border-radius: 6px; background: var(--chip); font-size: 12px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a {
  height: 40px; padding: 0 10px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.nav a:hover { background: var(--line-soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ice-soft); color: var(--blue-text); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.balance-pill {
  height: 48px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none;
}
.coin-dot { width: 20px; height: 20px; border-radius: 999px; background: var(--ice); color: var(--blue-text); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.account { position: relative; }
.account summary { list-style: none; cursor: pointer; }
.account summary::-webkit-details-marker { display: none; }
.avatar {
  width: 48px; height: 48px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.menu {
  position: absolute; right: 0; top: 56px; z-index: 20; min-width: 240px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(14,26,43,.10);
}
.menu .who { padding: 8px 12px 12px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; word-break: break-all; }
.menu .who strong { display: block; color: var(--ink); font-size: 14px; }
.menu a, .menu button { width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; display: flex; align-items: center; gap: 10px; font: 500 14px var(--body); color: var(--ink); text-decoration: none; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--line-soft); }

/* buttons */
.btn {
  height: 48px; padding: 0 20px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1C2C42; color: #fff; }
.btn-soft { background: var(--chip); color: var(--ink); }
.btn-soft:hover { background: #E1E7EE; color: var(--ink); }
.btn-outline { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; font-weight: 700; }
.btn-sm { height: 40px; padding: 0 14px; font-size: 14px; }
.btn[disabled], .btn.is-disabled { background: #E7ECF1; color: #6C7988; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.card-sm { padding: 24px 28px; gap: 12px; border-radius: 24px; }
.card h2 { font-size: 24px; }
.card-title { display: flex; align-items: center; gap: 10px; }
.count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--chip); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 0 4px 8px; }
.page-head .lead { display: flex; align-items: center; gap: 16px; }
.page-icon { width: 56px; height: 56px; flex: none; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }
.page-head h1 { font-size: 32px; }

/* alerts */
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; font-size: 15px; font-weight: 600; border: 1px solid; }
.alert-success { background: var(--green-bg); color: var(--green); border-color: var(--green-line); }
.alert-error { background: var(--red-bg); color: var(--red); border-color: var(--red-line); }
.alert-warn { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line); font-weight: 500; }
.alert-info { background: var(--ice-soft); color: var(--blue-text); border-color: var(--ice); font-weight: 500; }
.flashes { display: flex; flex-direction: column; gap: 8px; }

/* badges */
.badge { height: 28px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge-ice { background: var(--ice); color: var(--blue-text); }
.badge-ok { background: var(--green-bg); color: var(--green); }
.badge-bad { background: var(--red-bg); color: var(--red); }
.badge-warn { background: var(--amber-bg); color: var(--amber); }
.badge-soft { background: var(--chip); color: var(--ink-2); }
.dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-size: 14px; font-weight: 600; }
.input, .select, .textarea {
  height: 48px; width: 100%; padding: 0 14px; border-radius: var(--r-field); border: 1px solid var(--field); background: var(--surface);
  font: 15px var(--body); color: var(--ink);
}
.textarea { height: auto; min-height: 88px; padding: 12px 14px; }
.input:focus, .select:focus { border-color: var(--blue); outline: 2px solid var(--ice); outline-offset: 0; }
.input-lg { height: 56px; font-size: 16px; border-radius: 14px; }
.input-group { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 14px; border-radius: var(--r-field); border: 1px solid var(--field); background: var(--surface); }
.input-group:focus-within { border-color: var(--blue); outline: 2px solid var(--ice); }
.input-group input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: 600 15px var(--body); color: var(--ink); outline: none; }
.input-group .unit { font-size: 13px; color: var(--muted); padding-right: 8px; }
.help { font-size: 13px; color: var(--muted); }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.switch-row:first-of-type { border-top: 0; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--field); transition: background .15s; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + .track { background: var(--blue); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 2px solid var(--blue); outline-offset: 3px; }

/* segmented control */
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.seg a { height: 40px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.seg a[aria-current="true"], .seg a[aria-current="page"] { background: var(--ink); color: #fff; font-weight: 600; }

/* lists & tables */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.list > li:first-child { border-top: 0; }
.list .grow { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.list .title { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.list .sub { font-size: 13px; color: var(--muted); }
.tile-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 10px 8px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table .num { text-align: right; }
.table tr.is-selected td { background: var(--ice-soft); }
dl { margin: 0; }
dd { margin: 0; }
.kv { display: flex; flex-direction: column-reverse; }
.kv dt { font-size: 13px; color: var(--muted); }
.kv dd { font-size: 20px; font-weight: 700; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.kv-box { padding: 14px 16px; border-radius: var(--r-tile); background: var(--bg); }
.kv-box dd { font-size: 18px; }

/* home: faucet hero */
.hero { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px; padding: 40px; }
.hero-copy { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: 44px; line-height: 1.02; letter-spacing: -0.025em; }
.hero-art { flex: none; margin: 0 auto; }
.mascot { display: flex; justify-content: center; max-width: 100%; }
.doge { display: block; max-width: 100%; height: auto; }
.mascot .doge { filter: drop-shadow(0 18px 24px rgba(14,26,43,.14)); transition: transform .3s; }
.hero:hover .mascot .doge { transform: translateY(-4px) rotate(-1.5deg); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 24px 0 8px; }
.empty .doge { width: 120px; }
.captcha-box { min-height: 76px; display: flex; align-items: center; }
.captcha-off { width: 304px; max-width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--amber-bg); color: var(--amber); font-size: 13px; }

/* streak */
.streak-head { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.big-num { font: 800 40px/1 var(--display); letter-spacing: -0.02em; }
.segments { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.segments span { height: 8px; border-radius: 999px; background: var(--line-soft); }
.segments span.on { background: var(--blue); }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.days li { border-radius: var(--r-tile); padding: 12px 10px; min-width: 0; background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.days li .d { font-size: 13px; font-weight: 500; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.days li .r { font-size: 15px; font-weight: 700; }
.days li.done { background: var(--ice); }
.days li.done .d { color: var(--blue-text); }
.days li.today { box-shadow: inset 0 0 0 2px var(--ink); background: var(--surface); }

/* wallet */
.wallet-amount { font: 800 40px/1.05 var(--display); letter-spacing: -0.02em; word-break: break-all; }
.bar { height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.bar.ok > span { background: var(--green); }
.note-box { padding: 14px 16px; border-radius: var(--r-tile); background: var(--bg); display: flex; flex-direction: column; gap: 2px; }

/* offerwalls */
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.wall-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.wall-card h2 { font-size: 22px; }
.wall-card .btn { margin-top: auto; }
.wall-mono { width: 48px; height: 48px; border-radius: 14px; background: var(--ice); color: var(--blue-text); display: inline-flex; align-items: center; justify-content: center; font: 800 17px var(--display); }
.frame { width: 100%; height: 75vh; min-height: 560px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
/* Recent offers keeps ten entries; the three oldest fade like the flip history. */
.offer-history > li { transition: opacity .3s; }
.offer-history > li:nth-child(8) { opacity: .6; }
.offer-history > li:nth-child(9) { opacity: .35; }
.offer-history > li:nth-child(10) { opacity: .15; }
.offer-history > li:nth-child(n+11) { display: none; }

/* ptc viewer */
.ptc-bar { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.ptc-bar .container { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.ptc-progress { flex: 1 1 200px; }
.ptc-frame { width: 100%; height: calc(100vh - 74px); border: 0; display: block; background: #fff; }

/* login */
.login-wrap { padding-top: 16px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.login-card { flex: 999 1 460px; padding: 48px 40px; justify-content: center; gap: 28px; }
.login-card h1 { font-size: 48px; line-height: 1; letter-spacing: -0.03em; }
.login-form { max-width: 420px; display: flex; flex-direction: column; gap: 8px; }
.features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.features li { display: flex; gap: 12px; align-items: flex-start; }
.features .n { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--ice-soft); color: var(--blue-text); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }

/* admin */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.stat dt { font-size: 14px; color: var(--muted); }
.stat .v { font: 800 32px/1.05 var(--display); letter-spacing: -0.02em; }
.stat .delta { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.chart { display: flex; gap: 12px; height: 220px; }
.chart-y { width: 36px; display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: 12px; color: var(--muted); padding-bottom: 24px; }
.chart-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chart-bars { position: relative; flex: 1; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--field);
  background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), var(--line-soft) calc(25% - 1px), var(--line-soft) 25%); }
.chart-bars button { flex: 1; height: 100%; padding: 0 2px; border: 0; background: transparent; display: flex; align-items: flex-end; cursor: default; }
.chart-bars button span { display: block; width: 100%; border-radius: 4px 4px 0 0; background: #9DB4CE; min-height: 2px; }
.chart-bars button.is-active span, .chart-bars button:hover span, .chart-bars button:focus-visible span { background: var(--blue); }
.chart-x { display: flex; gap: 2px; height: 24px; align-items: flex-end; }
.chart-x span { flex: 1; text-align: center; font-size: 12px; color: var(--muted); }
.hbar { height: 10px; border-radius: 999px; background: var(--line-soft); }
.hbar > span { display: block; height: 100%; border-radius: 999px; background: var(--ink-2); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; align-self: flex-start; }
.tabs a { height: 40px; padding: 0 16px; border-radius: 12px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; font-weight: 600; }
.code { flex: 1 1 260px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--bg); font-size: 13px; }
.inline-form { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }

/* footer */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px 4px 0; font-size: 13px; color: var(--muted); }
.footer a { color: var(--muted); }

/* static pages */
.prose { max-width: 680px; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 22px; margin-top: 8px; }
.prose p, .prose li { color: var(--ink-2); }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .card { padding: 24px 20px; border-radius: 24px; }
  .hero { padding: 28px 20px; }
  .hero h1 { font-size: 36px; }
  .login-card { padding: 32px 20px; }
  .login-card h1 { font-size: 38px; }
  .top-actions .balance-pill { padding: 0 12px; }
  .wallet-amount, .big-num { font-size: 34px; }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* bot trap: visually hidden honeypot */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* PTC claim row (shown after the timer) */
.ptc-claim { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 0; padding-bottom: 12px; }
.ptc-claim[hidden] { display: none; }

/* ad slots */
.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ad-slot iframe { width: 100%; max-width: 728px; border: 0; display: block; background: transparent; }
.ad-side iframe { max-width: 300px; }
.ad-label { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }

/* shortlinks & referrals */
.ref-link { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ref-link .input { flex: 1 1 260px; font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.locked { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }

/* one-bar header: brand · navigation · wallet + account */
.appbar {
  flex: 1 1 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
}
.appbar .nav { justify-self: center; flex-wrap: nowrap; }
.appbar .top-actions { gap: 6px; }
.appbar .avatar { width: 44px; height: 44px; background: var(--bg); border: 0; }
.wallet-btn {
  height: 44px; padding: 0 6px 0 8px; border-radius: 999px; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px;
  transition: background .15s, transform .15s;
}
.wallet-btn:hover, .wallet-btn[aria-current="page"] { background: var(--blue); color: #fff; }
.wallet-btn:active { transform: scale(.98); }
.wallet-btn .coin-dot { width: 28px; height: 28px; font-size: 13px; }
.wallet-go { width: 32px; height: 32px; border-radius: 999px; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 860px) {
  .appbar { grid-template-columns: 1fr auto; }
  .appbar .nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; overflow-x: auto; scrollbar-width: none; }
  .appbar .nav a { flex: none; }
}

/* home: referral box */
.ref-card { gap: 10px; padding: 18px 20px; overflow: hidden; }
.ref-card .ref-head { display: flex; align-items: center; gap: 12px; }
.ref-card .ref-head .doge { width: 64px; flex: none; }
.ref-card .input { height: 38px; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.ref-card .ref-link .btn { height: 38px; }
.doge.brand-mark { height: 40px; width: auto; }
.ref-card .ref-link { flex-wrap: nowrap; }
.ref-card .ref-link .input { flex: 1 1 0; min-width: 0; }
@media (max-width: 480px) {
  .appbar .brand-name { display: none; }
  .appbar .brand { padding-right: 0; }
  .mascot .doge { width: 150px; }
  .wallet-btn { font-size: 14px; }
}
.appbar .brand { min-width: 0; }

/* home: faucet + side boxes share one row and end on the same line */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: stretch; }
.side-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side-stack .ref-card { flex: 1; }
.side-stack .ref-card > .spread { margin-top: auto; }
.home-top .hero { position: relative; overflow: hidden; align-items: flex-start; }
.home-top .hero-copy { padding-right: 140px; }
.home-top .hero .mascot { position: absolute; right: 20px; bottom: -10px; margin: 0; pointer-events: none; }
.home-top .hero .mascot .doge { width: 150px; }
@media (max-width: 860px) {
  .home-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .home-top .hero-copy { padding-right: 0; padding-bottom: 128px; }
  .home-top .hero .mascot .doge { width: 100px; }
  .home-top .hero .mascot { right: 12px; }
}

/* home bottom row: streak as wide as the faucet box, 300x250 banner next to it */
.home-bottom { margin-top: 0; }
.ad-card { align-items: center; justify-content: center; padding: 20px; }
.home-top .hero .mascot { right: -6px; }

/* 300x250 ad box with placeholder */
.ad-box { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.ad-box iframe { width: 300px; height: 250px; max-width: 100%; border: 0; display: block; }
.ad-placeholder {
  width: 300px; max-width: 100%; height: 250px; border: 2px dashed var(--field); border-radius: 16px; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-weight: 600;
}

/* modal */
dialog.modal {
  border: 0; padding: 0; border-radius: 28px; width: min(420px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto;
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgba(14,26,43,.28);
}
dialog.modal::backdrop { background: rgba(14,26,43,.5); } /* no backdrop blur: with an animated ad frame inside it made the popup flicker */
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-body [hidden] { display: none !important; }
.icon-btn { width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--chip); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.btn-block { width: 100%; }

/* coin flip */
.flip { display: flex; flex-direction: column; gap: 16px; }
.coin-stage { display: flex; justify-content: center; perspective: 700px; padding: 4px 0; }
.coin { width: 120px; height: 120px; position: relative; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.coin-face {
  position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #F3DD8A, #C9A537 60%, #A88A23); box-shadow: inset 0 0 0 4px #A88A23, 0 10px 24px rgba(14,26,43,.18);
}
.coin-heads .doge { width: 70px; }
.coin-tails { transform: rotateY(180deg); font: 800 60px var(--display); color: #fff; text-shadow: 0 2px 0 #A88A23; }
.coin.show-tails { transform: rotateY(180deg); }
.coin.spinning { animation: coinspin .9s linear infinite; }
@keyframes coinspin { from { transform: rotateY(0); } to { transform: rotateY(1080deg); } }
.flip-odds { display: flex; justify-content: center; gap: 20px; font-size: 14px; color: var(--ink-2); margin: 0; }
.flip-form { display: flex; flex-direction: column; gap: 14px; }
.flip-form .input-group .btn { height: 36px; padding: 0 12px; }
.flip-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.flip-choices .btn .doge { width: 22px; }
.tails-mark { font-weight: 800; font-size: 17px; }
.flip-result { min-height: 22px; margin: 0; text-align: center; font-weight: 700; }
.flip-result.is-good { color: var(--green); }
.flip-result.is-bad { color: var(--red); }

/* coin link in the header */
.coin-link { display: inline-flex; border-radius: 999px; transition: transform .2s; }
.coin-link:hover { transform: rotate(-12deg) scale(1.05); }
.coin-link[aria-current="page"] { box-shadow: 0 0 0 3px var(--ice); }

/* coin flip: nordic blue coin, quick bet buttons, live warnings */
.coin-face {
  background: radial-gradient(circle at 35% 30%, #A9D4F5, #2F74DE 58%, #164A9E);
  box-shadow: inset 0 0 0 4px #164A9E, inset 0 0 0 9px rgba(191,224,247,.55), 0 10px 24px rgba(14,26,43,.18);
}
.coin-tails { text-shadow: 0 2px 0 #164A9E; }
.bet-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bet-quick .btn { height: 36px; padding: 0; }
.bet-input input { font: 700 20px var(--display); }
.bet-input:has(input[aria-invalid="true"]) { border-color: var(--red); outline-color: var(--red-bg); }
.bet-warn { min-height: 18px; margin: 0; font-size: 13px; font-weight: 600; color: var(--red); }
.bet-warn:empty { min-height: 0; }
.flip-choices .btn[disabled] { opacity: .45; }
.flip-history .flip-new { animation: flipin .35s ease-out; }
@keyframes flipin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.flip-history > li { flex-wrap: nowrap; }
.flip-history .grow { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.flip-history .when { display: block; font-size: 12px; opacity: .8; }   /* time on its own line, never cut off */
/* only the newest 7 flips; rows 5–7 fade out in steps */
.flip-history > li { transition: opacity .3s; }
.flip-history > li:nth-child(5) { opacity: .6; }
.flip-history > li:nth-child(6) { opacity: .35; }
.flip-history > li:nth-child(7) { opacity: .15; }
.flip-history > li:nth-child(n+8) { display: none; }
.flip-history strong { white-space: nowrap; }
.ptc-card { align-items: center; text-align: center; }
.ptc-timer { position: relative; width: 160px; height: 160px; }
.ptc-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 44px var(--display); }
.ptc-status { margin: 0; color: var(--ink-2); }
.extra-card { align-items: center; text-align: center; max-width: 560px; margin: 0 auto; width: 100%; }
.extra-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--ice); color: var(--blue-text); display: flex; align-items: center; justify-content: center; }

/* extra bonus: small, bottom left in the faucet box */
.home-top .hero-copy { align-self: stretch; }
.extra-inline { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.extra-btn {
  height: 40px; padding: 0 14px 0 6px; border: 1px solid var(--ice); border-radius: 999px; background: var(--ice-soft); color: var(--blue-text);
  display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--body); cursor: pointer; transition: background .15s, transform .15s;
}
.extra-btn:hover { background: var(--ice); }
.extra-btn:active { transform: scale(.98); }
.extra-btn strong { font-weight: 800; }
.extra-btn.is-off { cursor: default; color: var(--muted); background: var(--bg); border-color: var(--line); }
.extra-gift { width: 28px; height: 28px; border-radius: 999px; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.extra-btn.is-off .extra-gift { background: var(--field); }

/* PTC inline timer */
.ptc-item { flex-wrap: wrap; }
.ptc-panel { flex: 1 1 100%; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--bg); }
.ptc-panel[hidden], .ptc-claim-form[hidden] { display: none; }
.ptc-progress-row { display: flex; align-items: center; gap: 12px; }
.ptc-progress-row .bar { flex: 1; }
.ptc-secs { font: 800 18px var(--display); min-width: 40px; text-align: right; }
.ptc-claim-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* advertise popup */
dialog.modal-wide { width: min(560px, calc(100vw - 24px)); }
.adv-balance { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--ice-soft); }
.adv-topup summary { cursor: pointer; color: var(--blue-text); font-weight: 600; }
.adv-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; border-radius: 14px; background: var(--bg); }
.adv-total strong { font: 800 20px var(--display); }
.adv-list > li { padding: 12px 0; }

/* the hidden attribute always wins over component display rules */
[hidden] { display: none !important; }

/* logo text a bit bigger */
.brand-name { font-size: 28px; }

/* black button as the top part of a card (PTC: Advertise on top of "Today") */
.card.has-topbtn { padding-top: 0 !important; overflow: hidden; }
.card-topbtn {
  margin: 0 -28px 4px; padding: 16px 28px; border: 0; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font: 700 16px var(--body); text-align: left; cursor: pointer; transition: background .15s;
}
.card-topbtn > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.card-topbtn:hover { background: var(--blue); }
.card-topbtn:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; }

/* compact popups: everything visible without scrolling */
.modal-compact .modal-body, #claim-modal .modal-body { padding: 18px 20px; gap: 10px; }
.modal-compact .field { gap: 4px; }
.modal-compact .field label { font-size: 13px; }
.modal-compact .input, .modal-compact .select { height: 40px; font-size: 14px; padding: 0 12px; }
.modal-compact .icon-btn, #claim-modal .icon-btn { width: 34px; height: 34px; }
.adv-balance { padding: 10px 14px; gap: 16px; }
.adv-bal-item { display: flex; flex-direction: column; }
.adv-bal-item strong { font: 800 18px var(--display); }
.adv-balance .btn { margin-left: auto; }
.adv-form { display: flex; flex-direction: column; gap: 8px; }
.adv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.adv-total { padding: 8px 14px; }
.adv-total strong { font-size: 18px; }
.modal-compact .btn-block { height: 44px; }
.adv-list-wrap { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.adv-list > li { padding: 6px 0; gap: 8px; }
.adv-list .btn-sm { height: 32px; }
@media (max-width: 520px) { .adv-grid { grid-template-columns: 1fr; } }

/* claim popup with coin flip */
#claim-modal h3 { font-size: 17px; margin: 0; }
#claim-modal .alert { padding: 8px 12px; font-size: 14px; }
#claim-modal .flip { gap: 8px; }
#claim-modal .coin { width: 84px; height: 84px; }
#claim-modal .coin-heads .doge { width: 50px; }
#claim-modal .coin-tails { font-size: 42px; }
#claim-modal .flip-form { gap: 8px; }
#claim-modal .bet-input { height: 42px; }
#claim-modal .bet-input input { font-size: 17px; }
#claim-modal .bet-quick .btn { height: 30px; font-size: 13px; }
#claim-modal .flip-choices .btn { height: 42px; }
#claim-modal .btn-block { height: 40px; }
#claim-modal .ad-placeholder { height: 230px; }

/* login page: login + earn box on top, stats + advertise below, same column widths */
.login-grid { padding-top: 16px; padding-bottom: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: stretch; }
.login-grid .login-card { padding: 48px 40px; justify-content: center; gap: 28px; }
.earn-card { position: relative; overflow: hidden; gap: 20px; padding: 32px 32px 150px; }
.earn-card .mascot { position: absolute; right: -6px; bottom: -10px; pointer-events: none; }
.earn-card .mascot .doge { width: 120px; }
.stats-card { flex-direction: row; gap: 0; padding: 0; }
.stats-half { flex: 1 1 0; display: flex; align-items: center; gap: 14px; padding: 24px 32px; }
.stats-half + .stats-half { border-left: 1px solid var(--line-soft); }
.stats-half > div { display: flex; flex-direction: column; }
.stats-half strong { font: 800 30px/1.1 var(--display); letter-spacing: -0.02em; }
.stats-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--ice); color: var(--blue-text); display: inline-flex; align-items: center; justify-content: center; }
.adv-card { gap: 10px; padding: 24px 28px; justify-content: center; }
@media (max-width: 860px) { .login-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .stats-card { flex-direction: column; }
  .stats-half + .stats-half { border-left: 0; border-top: 1px solid var(--line-soft); }
  .login-grid .login-card { padding: 32px 20px; }
}

/* five earn points in the same box height */
.earn-card { gap: 14px; padding-bottom: 130px; }
.earn-card .features { gap: 10px; }
.earn-card .features .n { width: 30px; height: 30px; font-size: 12px; }
.earn-card .features p { line-height: 1.35; }

/* sign in / create account */
.login-grid .login-card { gap: 20px; padding: 40px; }
.auth-box { display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--chip); }
.auth-tabs a { height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.auth-tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(14,26,43,.08); }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form .btn-lg { margin-top: 4px; }
.btn-google { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--field); gap: 10px; height: 48px; }
.btn-google:hover { background: var(--bg); color: var(--ink); }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.account-grid .card { padding: 28px; gap: 14px; }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } }

/* ---------- landing (guest home): light nordic ---------- */
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(14,26,43,.06); color: var(--ink); }
.ln-hero { position: relative; padding-bottom: 90px; }

.ln-topbar { position: relative; z-index: 4; }

.ln-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; align-items: stretch; padding-top: 40px; }
/* left column as tall as the sign-in box: the claim preview sits on the same bottom line */
.ln-intro { display: flex; flex-direction: column; padding-top: 8px; }
.ln-intro .ln-preview { margin-top: auto; }
.ln-auth-wrap { display: flex; flex-direction: column; }
.ln-auth { flex: 1; }
.ln-intro h1 { font-size: 64px; line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 18px; }
.ln-intro .ln-lead { margin-bottom: 30px; }
.ln-lead-strong { color: var(--ink); font-weight: 700; }
.ln-grad { color: var(--blue); }
.ln-lead { font-size: 18px; color: var(--ink-2); max-width: 440px; }

.ln-preview { max-width: 470px; display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 40px -28px rgba(14,26,43,.3); }
.ln-ring { flex: none; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--blue) 0 72%, var(--ice) 72% 100%); }
.ln-ring span { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font: 700 13px var(--body); }
.ln-pv-main { flex: 1; min-width: 0; }
.ln-preview small { display: block; font-size: 12px; color: var(--muted); }
.ln-preview strong { display: block; font: 800 24px var(--display); letter-spacing: -0.01em; }
.ln-plus { color: var(--blue); }
.ln-dots { display: flex; gap: 5px; margin-top: 6px; }
.ln-dots i { width: 22px; height: 6px; border-radius: 3px; background: var(--ice); }
.ln-dots i.on { background: var(--blue); }
.ln-pv-side { text-align: left; }
.ln-pv-main strong, .ln-pv-side strong { white-space: nowrap; }
.ln-pv-main strong { font-size: 22px; }
.ln-pv-side strong { font-size: 15px; }

.ln-auth-wrap { position: relative; }
.ln-auth { position: relative; z-index: 1; background: var(--surface); border-radius: 28px; padding: 28px;
  box-shadow: 0 40px 80px -36px rgba(14,26,43,.35), 0 0 0 6px rgba(255,255,255,.6); display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 16px; }
.ln-auth h2 { font-size: 26px; }
.ln-auth-sub { margin-top: -8px; }
.ln-auth .auth-box { max-width: none; }
.ln-forgot { align-self: flex-end; color: var(--muted); }
.ln-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.ln-trust span::before { content: "✓ "; color: var(--blue); font-weight: 700; }
/* doge sits in the gap: behind the claim box, in front of the sign-in box edge */
/* doge stands in front of both boxes; the claim box keeps its right edge free for it */
.ln-hero-doge { position: absolute; z-index: 3; left: -112px; bottom: -6px; pointer-events: none; }
.ln-intro .ln-preview { position: relative; z-index: 2; padding-right: 72px; gap: 14px; }

.ln-bar { position: relative; z-index: 3; margin-top: -58px; }
.ln-bar-in { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 20px 40px -26px rgba(14,26,43,.3); }
.ln-bar-in div { padding: 18px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column-reverse; }
.ln-bar-in div:last-child { border-right: 0; }
.ln-bar-in dt { font-size: 13px; color: var(--muted); }
.ln-bar-in dd { margin: 0; font: 800 22px var(--display); letter-spacing: -0.01em; }

.ln-page { padding-bottom: 32px; }
.ln-section { padding-top: 72px; }
.ln-eyebrow { font-size: 13px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.ln-head { text-align: center; max-width: 680px; margin: 0 auto 30px; }
.ln-head h2 { font-size: 42px; margin: 8px 0 10px; }
.ln-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 168px; gap: 16px; }
.ln-tile { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.ln-tile h3 { font-size: 22px; }
.ln-tile p { font-size: 14px; color: var(--muted); max-width: 280px; }
.ln-val { margin-top: auto; font: 800 20px var(--display); color: var(--blue); position: relative; }
.ln-t-wide { grid-column: span 2; }
.ln-t-full { grid-column: 1 / -1; }
.ln-tile, .ln-section { scroll-margin-top: 24px; }
.ln-t-faucet { grid-column: span 2; grid-row: span 2; }
.ln-t-faucet h3 { font-size: 30px; }
.ln-t-faucet p { max-width: 260px; }
.ln-big { margin-top: auto; font: 800 50px var(--display); letter-spacing: -0.03em; line-height: 1; position: relative; z-index: 1; }
.ln-big small { display: block; margin-top: 6px; font-size: 16px; letter-spacing: 0; color: var(--muted); }
.ln-t-faucet .doge { position: absolute; right: -6px; bottom: -14px; }
.ln-week { display: flex; gap: 6px; margin-top: auto; }
.ln-week span { flex: 1; height: 40px; border-radius: 10px; background: var(--ice-soft); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #6C7C92; }
.ln-week span.done { background: var(--blue); color: #fff; }
.ln-week span.day7 { gap: 3px; color: var(--blue); }
.ln-week span.today { background: #fff; border: 2px dashed var(--blue); color: var(--blue); }
.ln-t-deep { background: var(--blue); border-color: var(--blue); color: #fff; }
.ln-t-deep p { color: #CFE0FA; }
.ln-t-deep .ln-val { color: #fff; }
.ln-coin { position: absolute; right: 20px; bottom: 16px; transform: rotate(-12deg); filter: drop-shadow(0 10px 16px rgba(8,30,80,.5)); }

.ln-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 32px; }
.ln-faq { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; }
.ln-faq h2 { font-size: 30px; margin: 8px 0 8px; }
.ln-faq details { padding: 14px 0; border-top: 1px solid var(--line); }
.ln-faq details:first-of-type { border-top: 0; }
.ln-faq summary { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; }
.ln-faq summary::-webkit-details-marker { display: none; }
.ln-faq summary::after { content: "+"; color: var(--blue); font-size: 18px; line-height: 1; }
.ln-faq details[open] summary::after { content: "–"; }
.ln-faq details p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.ln-final { position: relative; overflow: hidden; border-radius: 28px; padding: 32px; min-height: 320px; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); }
.ln-final h2 { position: relative; font-size: 36px; max-width: 320px; }
.ln-final p { position: relative; color: var(--ink-2); max-width: 260px; }
.ln-final .btn { position: relative; z-index: 1; align-self: flex-start; margin-top: auto; }
.ln-final .doge { position: absolute; right: -16px; bottom: -22px; }

@media (max-width: 900px) { .ln-hero-doge { display: none; } .ln-intro .ln-preview { padding-right: 18px; } }
@media (max-width: 900px) {
  .ln-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .ln-intro h1 { font-size: 46px; }
  .ln-bar-in { grid-template-columns: 1fr 1fr; }
  .ln-bar-in div:nth-child(2) { border-right: 0; }
  .ln-bar-in div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ln-bento { grid-template-columns: 1fr 1fr; }
  .ln-duo { grid-template-columns: 1fr; }
  .ln-head h2 { font-size: 34px; }
}
@media (max-width: 560px) {
  .ln-intro h1 { font-size: 40px; }
  .ln-preview { gap: 12px; padding: 14px; }
  .ln-pv-side { display: none; }
  .ln-auth { padding: 22px 18px; }
  .ln-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .ln-tile, .ln-t-faucet, .ln-t-wide, .ln-t-full { grid-column: auto; grid-row: auto; min-height: 150px; }
  .ln-t-faucet { min-height: 260px; }
}

/* shortlink hand-over page (quick links) */
.go-card { max-width: 520px; width: 100%; margin: 24px auto; align-items: center; text-align: center; gap: 14px; padding: 36px 32px; }
.go-card h1 { font-size: 30px; }
.go-amt { color: var(--blue); white-space: nowrap; }
.go-btn { margin-top: 6px; }
.extra-msg { color: var(--red); }

/* doge picker (second captcha in the claim popup) */
.dp { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.dp-task { font-weight: 700; font-size: 15px; text-align: center; }
/* the five tiles together are as wide as the Turnstile box (300 px; app.js matches the real width) */
.dp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: 300px; max-width: 100%; }
.dp-tile { padding: 3px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .15s, transform .15s; }
.dp-tile img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; }
.dp-tile:hover { border-color: var(--field); }
.dp-tile[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px var(--ice); transform: scale(1.04); }

/* every two-column page splits like the faucet page: content + 300 px side column */
.col-main { flex: 1 1 0; }
.col-side { flex: 0 0 340px; } /* 340 = 300 x 250 banner + box padding */
@media (max-width: 860px) {
  .col-main, .col-side { flex: 1 1 100%; }
}

/* doge sitting on the bottom right edge of a side box (wallet) */
.corner-card { position: relative; overflow: hidden; }
.corner-card .corner-doge { position: absolute; right: 2px; bottom: -8px; pointer-events: none; }
.corner-card .features { padding-right: 62px; }

/* ---------- phones: slim sticky header + app bar at the bottom ---------- */
.tabbar { display: none; }
@media (max-width: 720px) {
  .topbar { position: sticky; top: 0; z-index: 30; padding-top: 8px; padding-bottom: 8px; background: rgba(242,245,248,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .appbar { grid-template-columns: 1fr auto; padding: 6px 6px 6px 10px; border-radius: 18px; }
  .appbar .nav, .appbar .coin-link, .appbar .gift-link, .wallet-go { display: none; }
  .appbar .brand-name { display: inline; font-size: 22px; }
  .appbar .brand { gap: 6px; }
  .doge.brand-mark { height: 34px; }
  .appbar .avatar { width: 40px; height: 40px; }
  .wallet-btn { height: 40px; padding: 0 12px 0 6px; gap: 6px; }
  .menu { top: 50px; }

  /* flush with the bottom edge: does not jump when the browser bar slides in and out */
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(66px + env(safe-area-inset-bottom)); padding: 0 8px env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 30px -16px rgba(14,26,43,.30);
    transform: translateZ(0); -webkit-transform: translateZ(0); will-change: transform;
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; }
  .tabbar .tb-ic { width: 44px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
  .tabbar a[aria-current="page"] { color: var(--blue); }
  .tabbar a[aria-current="page"] .tb-ic { background: var(--ice-soft); }
  .tabbar .tb-coin { position: relative; top: -16px; }
  .tabbar .tb-coin svg { filter: drop-shadow(0 8px 12px rgba(31,95,214,.45)); transition: transform .2s; }
  .tabbar .tb-coin:active svg { transform: rotate(-12deg) scale(.96); }
  .tabbar .tb-coin span { margin-top: -4px; }
  .tabbar .tb-coin[aria-current="page"] svg { filter: drop-shadow(0 0 0 3px var(--ice)) drop-shadow(0 8px 12px rgba(31,95,214,.45)); }
  /* room for the bar at the end of every page */
  body:has(.tabbar) .page { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}


/* ---------- phones: quick-start homepage (desktop and tablet unchanged) ---------- */
.ln-quick, .ln-m-doge { display: none; }
@media (max-width: 720px) {
  .ln-topbar .top-actions .btn-dark { display: none; }
  .ln-topbar .top-actions .btn-soft { background: none; padding: 0 8px; color: var(--ink-2); }
  .ln-hero { padding-bottom: 24px; }
  .ln-grid { padding-top: 14px; gap: 18px; }
  .ln-intro { position: relative; padding-top: 0; }
  .ln-intro h1 { font-size: 40px; margin-bottom: 12px; }
  .ln-intro .ln-lead { font-size: 15px; max-width: 225px; margin-bottom: 18px; }
  .ln-intro .ln-lead br, .ln-intro .ln-lead-strong { display: none; }
  .ln-m-doge { display: block; position: absolute; right: -10px; top: -6px; width: 116px; height: auto; pointer-events: none; }
  .ln-intro .ln-preview { max-width: none; padding: 10px 12px; gap: 12px; }
  .ln-ring { width: 50px; height: 50px; }
  .ln-ring span { width: 40px; height: 40px; font-size: 12px; }
  .ln-pv-main strong { font-size: 19px; }
  .ln-pv-side { display: block; flex: none; max-width: 92px; }
  .ln-pv-side strong { font-size: 13px; white-space: normal; line-height: 1.2; }
  .ln-grid { grid-template-columns: minmax(0, 1fr); }
  .ln-intro, .ln-pv-main { min-width: 0; }

  .ln-quick { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
  .ln-q-btn { height: 52px; font-size: 16px; font-weight: 700; }
  .ln-quick .btn-primary { box-shadow: 0 10px 22px -10px rgba(31,95,214,.7); }
  .ln-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
  .ln-ways .ln-way { display: flex; flex-direction: column; gap: 1px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
  .ln-ways .ic { width: 30px; height: 30px; border-radius: 10px; background: var(--ice); color: var(--blue-text); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
  .ln-ways .ic-coin { background: none; }
  .ln-ways strong { font-size: 13px; }
  .ln-ways span:last-child { font-size: 11px; font-weight: 700; color: var(--blue); }

  /* the form only after a tap (or with a message); then the quick start steps aside */
  .ln-grid:not(.ln-show-auth) .ln-auth-wrap { display: none; }
  .ln-show-auth .ln-quick { display: none; }
  .ln-auth { scroll-margin-top: 84px; } /* stop below the sticky header */
  /* shorter page: earn tiles, facts bar and the closing box are covered by the quick start */
  .ln-bar, #earn, .ln-final { display: none; }
  .ln-duo { padding-top: 8px; }
}
.ptc-panel.is-paused .bar span { background: var(--field); }
.ptc-panel.is-paused [data-ptc-secs] { color: var(--muted); }

/* ---------- daily coupon ---------- */
.today-card { overflow: hidden; }
.coupon-strip { display: flex; align-items: center; gap: 8px; margin: -24px -24px 0; padding: 11px 16px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.coupon-strip:hover { color: #fff; background: #1C2C42; }
.coupon-strip .cs-ic { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; }
.coupon-strip .cs-new { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--blue); color: #fff; letter-spacing: .04em; }
.coupon-strip .cs-go { margin-left: auto; opacity: .8; font-weight: 500; }
.tg-card { display: flex; align-items: center; gap: 18px; padding: 24px 28px; border-radius: var(--r-card); background: var(--ink); color: #fff; }
.tg-card .tg-ic { width: 56px; height: 56px; border-radius: 18px; background: #229ED9; display: flex; align-items: center; justify-content: center; flex: none; }
.tg-card h2 { font-size: 24px; color: #fff; }
.tg-card p { color: #B9C6DC; font-size: 14px; margin-top: 4px; }
.btn-tg { background: #229ED9; color: #fff; }
.btn-tg:hover { background: #1C8BC0; color: #fff; }
.coupon-input { display: flex; width: 100%; max-width: 460px; height: 60px; border: 1px solid var(--field); border-radius: 16px; overflow: hidden; background: var(--surface); }
.coupon-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--ice); }
.coupon-input input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 18px; font: 700 20px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: transparent; }
.coupon-input input::placeholder { color: #9AA7B8; }
.coupon-paste { width: 60px; border: 0; border-left: 1px solid var(--field); background: var(--bg); color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.coupon-paste:hover { color: var(--blue); }
.coupon-hist li b { color: var(--green); font-size: 14px; }
@media (max-width: 640px) {
  .tg-card { flex-wrap: wrap; padding: 20px; }
  .tg-card .btn { width: 100%; }
}

/* PTC link tip: a normal list row, only the "Sponsored" badge differs (styles come from .list li) */

/* banner box: the 300 x 250 banner always fits completely */
.ad-card { padding: 20px; }
.ad-card .ad-box iframe { width: 300px; height: 250px; max-width: none; flex: none; }
@media (max-width: 380px) { .ad-card { padding: 20px 8px; } }

/* home: live DOGE/USD tile in the Today box */
.px-tile { background: var(--ice-soft, #EEF5FC); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
.px-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--blue-text); text-transform: uppercase; letter-spacing: .05em; }
.px-live::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--blue); box-shadow: 0 0 0 3px var(--ice); }
.px-price { font-size: 22px; font-weight: 800; letter-spacing: -.01em; grid-column: 1; }
.px-spark { grid-column: 2; grid-row: 1 / span 2; width: 110px; height: 34px; color: var(--blue); }
.px-chg { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--muted); }

/* referrals: claim card (commission collects here until the user claims it) */
.rc-card { position: relative; overflow: hidden; flex-direction: row; align-items: center; gap: 24px; padding: 28px 170px 28px 32px; border: 2px solid var(--blue); }
.rc-card.is-empty { border-color: var(--line); }
.rc-card .rc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.rc-card h2.rc-k { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--blue-text); text-transform: uppercase; letter-spacing: .06em; }
.rc-v { font: 800 44px/1 var(--display); letter-spacing: -.02em; }
.rc-v small { font-size: 20px; color: var(--muted); font-weight: 700; }
.rc-card > .doge { position: absolute; right: 22px; bottom: -34px; width: 120px; height: auto; pointer-events: none; }
@media (max-width: 720px) {
  .rc-card { flex-direction: column; align-items: flex-start; padding: 24px 24px 24px; }
  .rc-card .rc-v { font-size: 36px; }
  .rc-card > .doge { width: 90px; right: 12px; bottom: -26px; }
  .rc-card form { padding-right: 90px; }
}

/* PTC: DOGE ads / Points ads tabs */
.ptc-tabs a { gap: 8px; }
.tab-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }


/* ---------- rewards page ---------- */
.lv-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px 28px; }
.lv-ring { --p: 0%; width: 84px; height: 84px; border-radius: 999px; background: conic-gradient(var(--blue) 0 var(--p), var(--ice) var(--p) 100%); display: grid; place-items: center; flex: none; }
.lv-ring > span { width: 68px; height: 68px; border-radius: 999px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.lv-ring small { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lv-ring b { font: 800 28px/1 var(--display); margin-top: 2px; }
.lv-main h2 { font-size: 22px; }
.xp { height: 10px; border-radius: 99px; background: var(--ice); overflow: hidden; margin: 10px 0 6px; }
.xp i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.perks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--ice-soft); color: var(--blue-text); white-space: nowrap; }
.pill-hot { background: var(--blue); color: #fff; }
.lv-card .bal { text-align: right; }
.lv-card .bal b { display: block; font: 800 34px/1 var(--display); }
.lv-card .bal span { font-size: 13px; color: var(--muted); }

.rw-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.wh-card, .mn-card { padding: 24px; gap: 14px; }
.wh-card { align-items: center; text-align: center; }
.wh-card h2, .mn-card h2, .earn-card h2 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.wh-wrap { position: relative; width: min(280px, 100%); aspect-ratio: 1; margin-top: 8px; }
.wh { width: 100%; height: 100%; display: block; filter: drop-shadow(0 12px 22px rgba(14,26,43,.14)); transform-origin: 50% 50%; }
.wh-pointer { position: absolute; left: 50%; top: -10px; width: 34px; height: 29px; transform: translateX(-50%); z-index: 1; filter: drop-shadow(0 3px 4px rgba(14,26,43,.3)); }
.wh-result { min-height: 24px; margin: 0; font-weight: 700; }
.wh-result.is-win { color: var(--blue-text); }
.wh-result.is-error { color: var(--bad, #B42318); }
.spin-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.mn-card { position: relative; overflow: hidden; }
.mn-card > .doge { position: absolute; right: 16px; top: 14px; width: 74px; height: auto; pointer-events: none; }
.mn-card .hs b { display: block; font: 800 34px/1 var(--display); }
.mn-card .hs span { font-size: 13px; color: var(--muted); }
.store { background: var(--bg); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.store .l { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.store .l b { color: var(--ink); font-size: 15px; }
.store .bar { height: 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.store .bar i { display: block; height: 100%; background: repeating-linear-gradient(135deg, var(--blue) 0 10px, #2F74DE 10px 20px); }
.mn-note { display: flex; gap: 6px; align-items: flex-start; margin: 0; }
.shop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.shop form { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.shop b { font-size: 16px; color: var(--ink); }
.shop .btn { margin-top: 6px; }
.shop form.can { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 95, 214, .10); }
/* miner live counter */
.store [data-mn-val] { font-variant-numeric: tabular-nums; }
.mn-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1DB66B; margin-right: 6px; vertical-align: 1px; animation: mnPulse 1.4s ease-in-out infinite; }
@keyframes mnPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(29, 182, 107, .45); } 50% { box-shadow: 0 0 0 5px rgba(29, 182, 107, 0); } }
.store.mining .bar i { background-size: 28.28px 28.28px; animation: mnFlow 1.2s linear infinite; }
@keyframes mnFlow { from { background-position: 0 0; } to { background-position: 28.28px 0; } }
@media (prefers-reduced-motion: reduce) { .mn-live, .store.mining .bar i { animation: none; } }

.earn-card { padding: 24px; gap: 14px; }
.earn-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.earn-list li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.earn-list li.is-done { background: var(--bg); }
.earn-list .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.earn-list .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.earn-list .sub { font-size: 13px; color: var(--blue-text); font-weight: 600; }
.earn-ic { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--ice-soft); color: var(--blue-text); }
.earn-ic.earn-x { background: var(--ink); color: #fff; }
.earn-ic.earn-telegram { background: #229ED9; color: #fff; }

/* level on the avatar: ring = progress to the next level, "LV 7" label below */
.avatar.has-lv { --p: 0%; position: relative; overflow: visible; }
.avatar.has-lv::before { content: ""; position: absolute; inset: 0; border-radius: 999px; pointer-events: none;
  background: conic-gradient(var(--blue) 0 var(--p), var(--ice) var(--p) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px)); }
.avatar .lv-pill { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); padding: 3px 6px; border-radius: 99px; background: var(--blue); color: #fff; font: 800 9px/1 var(--body); letter-spacing: .02em; white-space: nowrap; border: 2px solid var(--surface); pointer-events: none; }

/* "+2 XP" toast after an action */
.pts-toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 16px; font-weight: 700; box-shadow: 0 14px 30px -12px rgba(14,26,43,.5); animation: pts-toast 4.5s ease forwards; pointer-events: none; }
@keyframes pts-toast { 0% { opacity: 0; transform: translateY(12px); } 8%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .pts-toast { animation: none; } }

@media (max-width: 860px) {
  .rw-row { grid-template-columns: 1fr; }
  .earn-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .lv-card { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 20px; }
  .lv-card .lv-main { grid-column: 1 / -1; grid-row: 2; }
  .lv-card .bal { grid-column: 2; grid-row: 1; }
  .lv-ring { width: 72px; height: 72px; }
  .lv-ring > span { width: 58px; height: 58px; }
  .lv-ring b { font-size: 24px; }
  .lv-main h2 { font-size: 19px; }
  .pill { white-space: normal; }
  .shop form { padding: 8px; }
  .shop b { font-size: 14px; }
  .mn-card > .doge { width: 60px; }
  .pts-toast { bottom: calc(96px + env(safe-area-inset-bottom)); right: 16px; }
}

/* admin: earn tasks rows */
.task-row { display: grid; grid-template-columns: 130px minmax(0, 1.2fr) minmax(0, 1.4fr) 110px 120px auto auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.task-row.task-add { grid-template-columns: 130px minmax(0, 1.2fr) minmax(0, 1.4fr) 110px 120px auto; }
@media (max-width: 1000px) { .task-row, .task-row.task-add { grid-template-columns: 1fr 1fr; } }

/* ---------- phones: compact PTC and shortlink lists ---------- */
.m-sum, .m-only { display: none; }
@media (max-width: 720px) {
  .d-only, .m-hide { display: none !important; }
  .m-only { display: inline; }
  .page-head-compact { padding-bottom: 0; }
  .page-head-compact .page-icon { display: none; }
  .page-head-compact h1 { font-size: 26px; }
  .page-head-compact p { font-size: 13px; }
  .ptc-tabs { display: grid; grid-template-columns: 1fr 1fr; align-self: stretch; }
  .ptc-tabs a { justify-content: center; }
  .m-sum { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
  .m-sum .r { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
  .m-sum b { color: var(--ink); font-size: 15px; }
  .m-sum .bar { height: 6px; border-radius: 99px; background: var(--ice); overflow: hidden; }
  .m-sum .bar span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
  .list-card { padding: 4px 14px !important; border-radius: 18px; }
  .list-card > .card-title { display: none; }
  .list-compact > li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; }
  .list-compact .tile-icon { width: 36px; height: 36px; border-radius: 11px; }
  .list-compact .grow { flex: none; }
  .list-compact .title { font-size: 15px; white-space: nowrap; }
  .list-compact .sub { font-size: 12.5px; }
  .list-compact .m-amt { color: var(--blue-text); }
  .list-compact .rw-badge { display: none; }
  .list-compact .row-btn { width: auto !important; min-width: 72px; height: 36px; padding: 0 16px; font-size: 14px; }
  .list-compact .badge.row-btn { height: 28px; padding: 0 10px; font-size: 12px; min-width: 0; }
  .list-compact form { margin: 0; }
  .list-compact .ptc-panel { grid-column: 1 / -1; }
  .list-compact .ptc-tip .badge { display: none; }
  .list-compact li:has(.badge-ok) .title, .list-compact li:has(.badge-ok) .sub { opacity: .6; }
  .m-dots { display: inline-flex; gap: 3px; vertical-align: middle; margin: 0 2px; }
  .m-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--ice); }
  .m-dots i.on { background: var(--blue); }
  .ptc-today > :not(.card-topbtn) { display: none !important; }
  .ptc-today { padding: 0 !important; overflow: hidden; }
  .ptc-today .card-topbtn { margin: 0; border-radius: 18px; }
}


/* phones: lower faucet box, the doge sits bottom right next to the Extra Bonus (no empty strip below) */
@media (max-width: 640px) {
  .home-top .hero { padding: 24px 20px 22px; }
  .home-top .hero-copy { padding-bottom: 0; gap: 16px; }
  .home-top .hero-copy > :last-child { padding-right: 90px; }   /* room for the doge */
  .home-top .hero .extra-inline { margin-top: -4px; }
  .home-top .hero .extra-btn { white-space: nowrap; }
  .home-top .hero .mascot { right: 2px; bottom: -14px; }
  .home-top .hero .mascot .doge { width: 82px; }
}
@media (max-width: 380px) {
  .home-top .hero .extra-btn { font-size: 14px; gap: 8px; padding-right: 12px; }
  .home-top .hero .mascot .doge { width: 64px; }
  .home-top .hero-copy > :last-child { padding-right: 70px; }
}
@media (max-width: 380px) {
  .home-top .hero-copy { flex-basis: auto; min-width: 0; width: 100%; }
}
@media (max-width: 340px) {
  .home-top .hero .mascot { display: none; }
  .home-top .hero-copy > :last-child { padding-right: 0; }
}

/* claim popup: the timer bar moves on its own compositing layer (transform, no layout),
   and the ad frame is boxed in, so a busy banner can't make the popup repaint/flicker */
#claim-modal .bar { contain: strict; height: 8px; transform: translateZ(0); }
#claim-modal .bar > [data-claim-fill] { --p: 0; width: 100% !important; transform: translateX(calc((var(--p) - 1) * 100%)); will-change: transform; transition: transform .25s linear; }
#claim-modal .ad-box { contain: layout paint; }
#claim-modal .ad-box iframe { transform: translateZ(0); }
#claim-modal [data-claim-label] { min-height: 1.5em; font-variant-numeric: tabular-nums; }

/* collect step (shortlinks, extra bonus, PTC, miner): big box left, two 300x250 banners right */
.collect-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: stretch; margin-top: 8px; }
.collect-grid .go-card { max-width: none; margin: 0; justify-content: center; }
.collect-ads { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 860px) {
  .collect-grid { grid-template-columns: 1fr; }
}


/* ---------- link list (public) ---------- */
.ll { display: flex; flex-direction: column; gap: 14px; }
.ll-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ll-search { display: flex; align-items: center; gap: 8px; flex: 1 1 240px; height: 46px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.ll-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--ice); }
.ll-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); }
.ll-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.ll-filters button { height: 38px; padding: 0 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font: 600 14px var(--body); color: var(--ink-2); cursor: pointer; }
.ll-filters button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ll-rows { list-style: none; margin: 0; padding: 4px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.ll-rows > li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.ll-rows > li:first-child { border-top: 0; }
.ll-rows > li[hidden] { display: none; }
.ll-fav { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: var(--bg); box-shadow: inset 0 0 0 1px rgba(14,26,43,.06); }
.ll-letter { display: grid; place-items: center; color: #fff; font: 800 20px var(--display); }
.ll-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ll-title { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.ll-top { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--blue); color: #fff; letter-spacing: .03em; }
.ll-desc { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ll-cat { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.ll-go { gap: 6px; }
.ll-note { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); margin: 0 4px; }
.ll-none { text-align: center; margin: 0; }
@media (max-width: 720px) {
  .ll-rows { padding: 2px 14px; }
  .ll-rows > li { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; }
  .ll-cat { display: none; }
  .ll-fav { width: 40px; height: 40px; }
  .ll-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .ll-filters button { flex: none; }
  .ll-desc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* admin: link list rows */
.ll-admin { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.ll-admin.is-off { opacity: .6; }
.ll-admin-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ll-admin-head .grow { flex: 1; min-width: 180px; }
.ll-clicks { display: flex; gap: 16px; margin: 0; }
.ll-clicks div { display: flex; flex-direction: column-reverse; align-items: flex-end; }
.ll-clicks dt { font-size: 11.5px; color: var(--muted); }
.ll-clicks dd { margin: 0; font-weight: 800; font-size: 17px; }
.ll-admin-fields { display: grid; grid-template-columns: 1fr 1.2fr 1.5fr 1.5fr 150px 100px 110px; gap: 8px; }
@media (max-width: 1100px) { .ll-admin-fields { grid-template-columns: 1fr 1fr; } }

/* ---------- admin dashboard ---------- */
.dh { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.dh h1 { font-size: 32px; }
.dr { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; position: relative; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: #1E9B5B; box-shadow: 0 0 0 4px #DCF2E5; margin-right: 8px; vertical-align: 1px; animation: livepulse 2s infinite; }
@keyframes livepulse { 50% { box-shadow: 0 0 0 7px rgba(30,155,91,.12); } }
@media (prefers-reduced-motion: reduce) { .live { animation: none; } }
.dcustom summary { list-style: none; cursor: pointer; gap: 6px; }
.dcustom summary::-webkit-details-marker { display: none; }
.dcustom-form { position: absolute; right: 0; top: 46px; z-index: 20; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 18px 40px -20px rgba(14,26,43,.35); }
.dcustom-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.dcustom-form .input { height: 38px; }
.fchips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13px; text-decoration: none; }
.fchip:hover { color: #fff; background: #1C2C42; }
.dtabs { align-self: stretch; }
.dtabs a { gap: 6px; }
.dtabs a:last-child { margin-left: auto; color: var(--blue-text); }
.dl { font-size: 12px; font-weight: 700; }
.dl.g { color: var(--green); } .dl.b { color: var(--red); } .dl.n { color: var(--muted); }
.dcmp { margin: -6px 4px 0; }
.g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.cc { padding: 20px 24px; gap: 10px; }
.an-chart { width: 100%; height: 230px; display: block; }
.an-chart rect:hover { fill: rgba(31,95,214,.06); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { font: 700 13px var(--body); padding: 7px 12px; border-radius: 99px; background: var(--bg); color: var(--ink-2); border: 0; cursor: pointer; }
.chips button[aria-selected="true"] { background: var(--blue); color: #fff; }
.ks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0; gap: 0; overflow: hidden; }
.ks .k { padding: 16px 18px; border: 0; border-right: 1px solid var(--line-soft); background: none; text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 2px; }
.ks .k:last-child { border-right: 0; }
.ks button.k { cursor: pointer; }
.ks .k[aria-selected="true"] { background: var(--ice-soft); box-shadow: inset 0 -3px 0 var(--blue); }
.ks dt { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ks dd { margin: 2px 0 0; font: 800 26px var(--display); }
.pn { padding: 18px 22px; gap: 4px; }
.pt { display: flex; gap: 16px; margin-bottom: 6px; flex-wrap: wrap; }
.pt button { font: 800 12px var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.pt button[aria-selected="true"] { color: var(--ink); box-shadow: 0 2px 0 var(--blue); }
.rh { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 8px; }
.br { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 7px 8px; font-size: 14px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.br:hover:not(.static) { background: var(--bg); color: var(--ink); }
.br[hidden] { display: none; }
.br i { position: absolute; left: 0; top: 2px; bottom: 2px; background: var(--ice-soft); border-radius: 8px; z-index: 0; }
.br span { position: relative; min-width: 0; }
.br .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br .v { font-weight: 700; flex: none; }
.more { font: 600 13px var(--body); color: var(--blue-text); background: none; border: 0; padding: 6px 8px; cursor: pointer; text-align: left; }
.fn { padding: 22px 26px; gap: 6px; }
.fn h2 { font-size: 20px; }
.fs { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.fl { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.fl b { font-size: 16px; }
.fl em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--blue-text); background: var(--ice-soft); padding: 2px 8px; border-radius: 99px; }
.fb { height: 12px; border-radius: 99px; background: var(--bg); overflow: hidden; margin-top: 5px; }
.fb i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .ks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ks .k { border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 760px) {
  .g2 { grid-template-columns: 1fr; }
  .ks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dtabs a:last-child { margin-left: 0; }
}

@media (max-width: 600px) {
  .an-chart { height: 170px; }
  .an-chart text { display: none; }   /* stretched by the wide chart; values show on touch/hover above */
  .dcustom-form { left: 0; right: auto; }
}

/* admin: Telegram post preview (auto daily code) */
.tg-preview { background: #DCE7F1; border-radius: 16px; padding: 14px; }
.tg-bubble { background: #fff; border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 14px; line-height: 1.5; color: #0E1A2B; word-break: break-word; }
/* admin auto code: history + preview side by side, stacked on phones */
.ac-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .ac-split { grid-template-columns: minmax(0, 1fr); } }
.tg-bubble code { white-space: nowrap; font-family: ui-monospace, Menlo, monospace; font-size: 15px; background: #EAF1FB; color: #1F5FD6; padding: 1px 6px; border-radius: 6px; }
.tg-btn { margin-top: 6px; background: rgba(255,255,255,.75); border-radius: 10px; text-align: center; padding: 7px; font-size: 13px; font-weight: 600; color: #1F5FD6; }

/* admin 2-step sign in: QR + steps */
.totp-setup { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
.totp-qr { width: 200px; height: 200px; background: #fff; border: 1px solid #E1E7EE; border-radius: 14px; padding: 6px; display: grid; place-items: center; flex: none; }
.totp-qr svg { width: 100%; height: 100%; display: block; }
.totp-steps { margin: 0; padding-left: 18px; display: grid; gap: 8px; flex: 1 1 240px; line-height: 1.5; }

.store [hidden] { display: none !important; }

/* admin dashboard: ref links */
.rl-new { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 10px; align-items: end; }
.rl-new .input-group { gap: 1px; }
.rl-new .input-group .unit { color: var(--muted); white-space: nowrap; }
.rl-table tr.on td { background: var(--bg); }
@media (max-width: 760px) { .rl-new { grid-template-columns: minmax(0, 1fr); } }

/* footer: social icons */
.footer { align-items: center; }
.footer-social { display: inline-flex; gap: 8px; }
.footer-social a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: background .15s, color .15s, border-color .15s; }
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (max-width: 640px) { .footer { justify-content: center; text-align: center; } }

/* contact / support page */
.contact-row { align-items: flex-start; }
.ct-msg { height: auto; min-height: 150px; padding: 12px 14px; line-height: 1.5; resize: vertical; font: 500 15px var(--body); }
.contact-help { gap: 12px; }
.qh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.qh-list a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); font-weight: 500; }
.qh-list a:hover { color: var(--blue); }
.qh-list a::after { content: " →"; color: var(--muted); }
.qh-tg { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.qh-tg .btn { gap: 6px; }

/* admin: contact messages */
.chips .chip { display: inline-flex; padding: 7px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chips .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.msg-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); padding: 0; gap: 0; overflow: hidden; }
.msg-list { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--line); max-height: 640px; overflow-y: auto; }
.msg-list a { display: grid; gap: 3px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.msg-list a:hover { background: var(--bg); }
.msg-list a.on { background: var(--ice, #EAF1FB); }
.msg-list .mh { display: flex; justify-content: space-between; gap: 8px; align-items: center; min-width: 0; }
.msg-list .mh b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-list a.unread .mh b { font-weight: 700; color: var(--ink); }
.msg-list .ms { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-list .mt { font-size: 12px; color: var(--muted); }
.msg-view { padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.msg-text { background: var(--bg); border-radius: 14px; padding: 16px 18px; line-height: 1.6; color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 860px) { .msg-box { grid-template-columns: minmax(0, 1fr); } .msg-list { border-right: 0; max-height: 300px; } }

/* FAQ accordion */
.prose .faq-search { margin: 4px 0 6px; max-width: 420px; }
.faq-group { display: flex; flex-direction: column; gap: 8px; }
.faq-group[hidden], .faq-item[hidden] { display: none; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); scroll-margin-top: 90px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 18px; font-weight: 600; color: var(--ink); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--muted); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] { border-color: var(--blue); }
.faq-a { padding: 0 18px 14px; }
.faq-a p { margin: 0; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; margin: 0; }
.msg-list a, .chips .chip, .qh-list a, .footer-social a { text-decoration: none; }
.msg-list a.on .badge { background: #fff; }

/* start page: sponsored banner (A-Ads checks the page for its unit) */
.ln-ad { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ln-ad-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ln-ad-box { width: 300px; max-width: 100%; min-height: 250px; display: grid; place-items: center; border-radius: 6px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.ln-ad-box iframe { max-width: 100%; }

/* link list: top picks as cards, then the full list */
.ll { gap: 34px; }
.ll-featured[hidden] { display: none; }
.ll-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ll-sec-head h2 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.ll-star { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--amber-bg); color: #B7791F; font-size: 16px; }
.ll-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ll-card { background: linear-gradient(180deg, #FFFBF0 0, #fff 80px); border: 2px solid #F1C75B; border-radius: 22px; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; transition: transform .15s, box-shadow .15s; }
.ll-card:first-child { border-color: var(--blue); background: linear-gradient(180deg, var(--ice-soft) 0, #fff 80px); }
.ll-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(14,26,43,.08); }
.ll-rank { font: 800 11px var(--body); letter-spacing: .08em; color: #B7791F; }
.ll-card:first-child .ll-rank { color: var(--blue); }
.ll-card-head { display: flex; gap: 12px; align-items: center; }
.ll-card-head .ll-fav { width: 52px; height: 52px; border-radius: 14px; }
.ll-card-name { min-width: 0; display: flex; flex-direction: column; }
.ll-card-name strong { font: 800 18px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ll-card-name span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ll-card-desc { margin: 0; flex: 1; font-size: 14px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ll-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ll-filters button b { font-weight: 700; color: var(--muted); margin-left: 3px; }
.ll-filters button.is-on b { color: #9FB0C6; }
.ll-bar { margin-bottom: 14px; }
.ll-search { border-radius: 99px; }
.ll-rows { counter-reset: llrank; }
.ll-rows.has-featured:not(.is-filtered) { counter-reset: llrank 6; }
.ll-rows > li { grid-template-columns: 28px 44px minmax(0, 1fr) auto auto; }
.ll-rows > li:not([hidden]) { counter-increment: llrank; }
.ll-num::before { content: counter(llrank); font: 800 15px var(--display); color: #9AA7B6; }
.ll-num { text-align: center; }
.ll-rows > li:not([hidden]) ~ li:not([hidden]) { border-top: 1px solid var(--line-soft); }
.ll-rows > li { border-top: 0; }
@media (max-width: 900px) { .ll-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .ll-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; gap: 12px; margin: 0 -16px; padding: 2px 16px 10px; }
  .ll-card { flex: 0 0 82%; scroll-snap-align: start; }
  .ll-sec-head .small { display: none; }
  .ll-rows > li { grid-template-columns: 22px 40px minmax(0, 1fr) auto; gap: 10px; }
  .ll-rows .ll-cat { display: none; }
  .ll-desc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* admin link list: icon upload */
.ll-upload { position: relative; gap: 6px; cursor: pointer; }
.ll-upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ll-upload.has-file { background: var(--ice); color: var(--blue-text); }

/* admin user: accounts on the same IP */
.same-ip { margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--amber-bg); border: 1px solid var(--amber-line); display: grid; gap: 4px; }
.same-ip-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; text-decoration: none; color: var(--ink); padding: 4px 0; }
.same-ip-row:hover strong { color: var(--blue); text-decoration: underline; }

/* all banners: rounded corners and a thin frame, like the start page banner */
.ad-box iframe, .ad-slot iframe { border-radius: 6px; outline: 1px solid var(--line); outline-offset: -1px; background: var(--surface); overflow: hidden; }
.ln-ad-box iframe { border: 0; border-radius: 0; outline: 0; display: block; }

/* Aruble banners (built by app.js): same rounded frame as the other slots */
.aruble-slot { width: 300px; max-width: 100%; border-radius: 6px; overflow: hidden; outline: 1px solid var(--line); outline-offset: -1px; background: var(--surface); margin: 0 auto; line-height: 0; }
.aruble-slot iframe { border-radius: 6px; }
.ln-ad-box .aruble-slot { outline: 0; border-radius: 0; }

/* Google sign-in: recommended note, and the button in the "confirm your email" bar */
.verify-bar .btn-google { gap: 6px; white-space: nowrap; }
.verify-bar { flex-wrap: wrap; }

/* start page hero (desktop): same look, compact. Top-aligned columns, the claim card right under the text,
   a tighter sign-in box. Phones keep their own layout. */
@media (min-width: 901px) {
  .ln-grid { align-items: start; gap: 48px; padding-top: 28px; }
  .ln-intro { padding-top: 22px; }
  .ln-intro h1 { font-size: 54px; margin-bottom: 14px; }
  .ln-intro .ln-lead { margin-bottom: 22px; font-size: 17px; }
  .ln-intro .ln-preview { margin-top: 96px; }
  .ln-auth { flex: none; padding: 22px 24px; gap: 10px; border-radius: 22px; }
  .ln-auth h2 { font-size: 21px; }
  .ln-auth-sub { margin-top: -6px; }
  .ln-auth .auth-box { gap: 10px; }
  .ln-auth .auth-tabs a { height: 36px; }
  .ln-auth .btn-google, .ln-auth .auth-form .btn { height: 44px; min-height: 44px; }
  .ln-auth .input { height: 42px; }
  .ln-auth .field { gap: 4px; }
  .ln-auth .auth-form { gap: 10px; }
  .ln-hero { padding-bottom: 70px; }
  .ln-hero-doge { width: 120px; height: auto; left: -96px; bottom: -4px; }
}

/* header: rewards as a round gift button next to the coin flip coin (phones use the tab bar) */
.gift-link { width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  color: var(--blue); background: var(--ice-soft, #EEF5FC); box-shadow: inset 0 0 0 1px var(--ice); transition: transform .2s, background .2s; }
.gift-link:hover { transform: rotate(-8deg) scale(1.06); background: var(--ice); }
.gift-link[aria-current="page"] { background: var(--ice); box-shadow: 0 0 0 3px var(--ice-soft), inset 0 0 0 1px var(--blue); }
