/* Daily Analogy — "The Dictionary You Play" (ink & paper world) */
:root {
  --paper: #f6f0e0;      /* desk / ground */
  --page: #fbf7ec;       /* cards = pages */
  --page2: #f2ebd9;      /* inset trays */
  --ink: #262219;        /* print ink */
  --ink-soft: #4b4638;   /* readable muted text */
  --ink-faint: #5c5544;  /* readable secondary text */
  --rule: #e0d7bf;       /* hairlines between lines of type */
  --red: #a93a2c;        /* red pen — action & correction */
  --red-deep: #8f2f24;
  --green: #2f7a4e;      /* green pen — right answers */
  --amber: #a16207;
  --radius: 14px;
  /* Legibility first: familiar system sans-serif type. */
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-sc: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgba(38, 34, 25, 0.05), 0 6px 20px rgba(38, 34, 25, 0.07);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  font-size: 18px;
  min-height: 100dvh;
}
/* paper grain + warm light + the book's red fore-edge */
body {
  background:
    repeating-linear-gradient(0deg, rgba(38, 34, 25, 0.022) 0 1px, transparent 1px 3px),
    radial-gradient(1200px 600px at 50% -10%, rgba(255, 248, 226, 0.9), transparent 60%),
    var(--paper);
}
::selection { background: var(--red); color: var(--page); }
#app { max-width: 640px; margin: 0 auto; padding: 16px 18px 96px; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 3px; }
button { font-family: var(--font); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- header ---------- */
.topbar { display: flex; align-items: center; gap: 10px; padding: 12px 2px 18px; }
.logo {
  font-family: var(--font);
  font-weight: 800; font-size: 23px; letter-spacing: -0.01em;
  color: var(--ink);
}
.logo .dot { color: var(--red); }
.logo:hover { text-decoration: none; }
.topbar .spacer { flex: 1; }
.pill {
  background: var(--page); border: 1px solid var(--rule);
  color: var(--ink); border-radius: 999px; padding: 6px 12px;
  font-size: 15px; font-weight: 650; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.08s var(--ease-out);
}
.pill:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.pill:active { transform: scale(0.96); }
.pill.primary { background: var(--red); color: var(--page); border: none; }
.pill.primary:hover { background: var(--red-deep); color: var(--page); }
.pill.timer { cursor: default; }
.pill.timer:hover { border-color: var(--rule); color: var(--ink); }

/* ---------- pages (cards) ---------- */
.card {
  background: var(--page);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 8px; font-size: 20px; font-weight: 750; letter-spacing: -0.01em; }
.card .sub { color: var(--ink); font-size: 17px; font-weight: 500; margin: 0 0 14px; line-height: 1.55; }

/* ---------- buttons (base) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--rule); border-radius: 12px; padding: 12px 16px;
  font-weight: 700; font-size: 17px; cursor: pointer;
  font-family: var(--font); color: var(--ink); text-decoration: none;
  background: var(--page);
  transition: filter 0.15s ease, transform 0.08s var(--ease-out), border-color 0.15s ease;
}
.btn:hover { filter: brightness(0.985); border-color: var(--red); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: default; filter: none; }
.btn.primary { background: var(--red); color: var(--page); border: none; }
.btn.primary:hover { background: var(--red-deep); filter: none; }
.btn.ghost { background: var(--page); color: var(--ink); }
.btn.small { padding: 9px 13px; font-size: 15px; border-radius: 10px; }
.btn.block { width: 100%; }

/* ---------- link rows ---------- */
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.link-grid .btn { justify-content: center; }
.link-line { color: var(--ink); font-size: 17px; font-weight: 500; line-height: 1.6; }
.link-line a { color: var(--red); font-weight: 600; font-style: normal; }

/* ---------- mode cards (home, dictionary entries) ---------- */
.mode-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--page); border: 1px solid var(--rule);
  margin-bottom: 12px; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.12s var(--ease-out), border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none; color: var(--ink);
}
.mode-card:hover { border-color: var(--red); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(38,34,25,.06), 0 10px 26px rgba(38,34,25,.09); text-decoration: none; }
.mode-card:active { transform: scale(0.985); }
.mode-card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  background: var(--page2); border: 1px solid var(--rule);
}
.mode-card.done { border-color: rgba(47, 122, 78, 0.5); }
.mode-card .name { font-family: var(--font-sc); font-weight: 750; font-size: 18px; letter-spacing: 0; }
.mode-card .desc { color: var(--ink); font-size: 16px; font-weight: 500; margin-top: 4px; line-height: 1.45; }
.mode-card .right { margin-left: auto; text-align: right; }
.mode-card .score { font-weight: 800; font-size: 15px; }
.mode-card .check { color: var(--green); font-size: 17px; }

/* ---------- tier switch ---------- */
.tier-switch {
  display: flex; gap: 4px; background: var(--page2);
  border: 1px solid var(--rule); border-radius: 999px; padding: 4px;
  width: fit-content; margin: 0 auto 16px;
}
.tier-switch button {
  border: none; background: transparent; color: var(--ink-soft);
  font-weight: 700; font-size: 15px; padding: 8px 16px; border-radius: 999px;
  cursor: pointer; font-family: var(--font);
  transition: background 0.15s ease, color 0.15s ease;
}
.tier-switch button:hover { color: var(--red); }
.tier-switch button.active { background: var(--red); color: var(--page); }
.tier-switch button.active:hover { color: var(--page); }
/* ---------- classic game ---------- */
.analogy {
  background: var(--page); border: 1px solid var(--rule);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  font-size: 21px; line-height: 1.6; font-weight: 500;
}
.analogy .idx { font-family: var(--font-sc); font-style: normal; color: var(--red); font-weight: 700; margin-right: 8px; font-size: 14px; letter-spacing: 0.5px; }
.analogy .blank {
  display: inline-block;
  min-width: var(--blank-w, 6ch);
  text-align: center;
  color: var(--ink);
  font-weight: 700;
  font-style: normal;
  padding: 0 2px 5px;
  cursor: pointer;
  /* the signature motif: red-pen dashed underline, broken per word */
  background-image: repeating-linear-gradient(to right, var(--red) 0 8px, transparent 8px 12px);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 2.5px;
  transition: color 0.15s ease;
}
.analogy .blank.filled { background-image: linear-gradient(var(--ink), var(--ink)); color: var(--ink); }
.analogy.correct { border-color: var(--green); }
.analogy.correct .blank { background-image: linear-gradient(var(--green), var(--green)); color: var(--green); }
.analogy.wrong { border-color: var(--red); }
.analogy.wrong .blank { background-image: linear-gradient(var(--red), var(--red)); color: var(--red); text-decoration: line-through; text-decoration-color: var(--red); text-underline-offset: 6px; }
.analogy.revealed .blank { background-image: linear-gradient(var(--green), var(--green)); color: var(--green); }

/* ---------- word bank ---------- */
.bank {
  display: flex; flex-wrap: wrap; gap: 8px;
  background: var(--page2); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 14px; margin: 14px 0;
}
.bank-label {
  font-family: var(--font-sc); font-size: 14px; letter-spacing: 0.8px;
  color: var(--ink-soft); width: 100%; margin-bottom: 2px;
}
.chip {
  background: var(--page); border: 1px solid var(--rule);
  color: var(--ink); border-radius: 999px; padding: 9px 16px;
  font-size: 17px; font-weight: 650; cursor: pointer; user-select: none;
  transition: transform 0.08s var(--ease-out), border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.chip:hover { border-color: var(--red); color: var(--red); background: #fffdf6; }
.chip:active { transform: scale(0.94); }
.chip.used { opacity: 0.3; pointer-events: none; }
.chip:disabled { opacity: 0.3; pointer-events: none; }

.guess-bar { display: flex; gap: 8px; margin-top: 4px; }
.guess-bar .btn { flex: 1; padding: 15px; font-weight: 800; font-size: 17px; }
.btn.guess { background: var(--red); color: var(--page); border: none; }
.btn.guess:hover { background: var(--red-deep); }
.btn.guess:disabled { opacity: 0.4; cursor: default; background: var(--red); }
.btn.clear { background: var(--page); color: var(--ink-soft); border: 1px solid var(--rule); }

.hud { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; font-family: var(--font-sc); letter-spacing: 0.5px; }
.hud b { color: var(--ink); font-family: var(--font); font-weight: 700; letter-spacing: 0; }
.hud.extra { margin-top: 14px; }

.hint {
  background: var(--page2);
  border: 1px dashed rgba(169, 58, 44, 0.45);
  color: var(--ink); font-size: 16px; font-weight: 500;
  border-radius: 10px; padding: 9px 12px; margin: 10px 0 0;
  line-height: 1.5;
}

/* ---------- odd one out ---------- */
.pair-card {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--page); border: 1.5px solid var(--rule);
  border-radius: 12px; padding: 18px; margin-bottom: 10px;
  font-size: 19px; font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.08s var(--ease-out);
}
.pair-card .a, .pair-card .b { background: var(--page2); border: 1px solid var(--rule); padding: 9px 14px; border-radius: 9px; }
.pair-card:hover { border-color: var(--red); transform: translateY(-1px); }
.pair-card.picked { border-color: var(--red); }
.pair-card.wrong-pick { border-color: var(--red); color: var(--red); }
.pair-card.wrong-pick .a, .pair-card.wrong-pick .b { border-color: rgba(169,58,44,.4); text-decoration: line-through; text-decoration-color: var(--red); }
.pair-card.correct-pick { border-color: var(--green); }
.pair-card.correct-pick .a, .pair-card.correct-pick .b { border-color: rgba(47,122,78,.4); }
.pair-card.dim { opacity: 0.45; filter: grayscale(0.3); }

/* ---------- connection ---------- */
.conn {
  background: var(--page); border: 1px solid var(--rule);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.conn .pair { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.conn .pair .a { color: var(--ink); }
.conn .pair .sep { color: var(--red); margin: 0 8px; font-weight: 800; }
.conn .pair .b { color: var(--ink); }
.conn .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.conn .opt {
  border: 1px solid var(--rule); background: var(--page2); color: var(--ink);
  border-radius: 10px; padding: 12px; font-size: 16px; font-weight: 600;
  cursor: pointer; font-family: var(--font);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.conn .opt:hover { border-color: var(--red); color: var(--red); }
.conn .opt.correct { border-color: var(--green); color: var(--green); background: rgba(47,122,78,0.08); }
.conn .opt.wrong { border-color: var(--red); color: var(--red); text-decoration: line-through; text-decoration-color: var(--red); }
.conn .opt:disabled { opacity: 0.6; cursor: default; }
.conn .explain { margin-top: 10px; font-size: 17px; color: var(--green); font-weight: 500; }
/* ---------- results ---------- */
.result-hero {
  text-align: center; padding: 26px 18px;
  animation: rise 0.45s var(--ease-out) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-hero .big { font-size: 52px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.result-hero .big small { font-size: 18px; color: var(--ink-soft); font-weight: 600; }
.result-hero .stats { display: flex; justify-content: center; gap: 26px; margin: 18px 0 6px; }
.result-hero .stat { text-align: center; }
.result-hero .stat b { display: block; font-size: 21px; font-weight: 800; }
.result-hero .stat span { font-size: 14px; color: var(--ink-soft); font-family: var(--font-sc); text-transform: none; letter-spacing: 0.5px; }
.grid-share { font-size: 22px; letter-spacing: 4px; line-height: 1.5; margin: 12px 0; }
.actions { display: grid; gap: 8px; margin-top: 8px; }
.actions .btn { display: block; text-align: center; padding: 14px; font-weight: 800; font-size: 15.5px; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.badge-row.left { justify-content: flex-start; }
.badge {
  /* rubber stamp */
  font-family: var(--font-sc);
  background: transparent;
  border: 1.5px solid var(--red);
  color: var(--red);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  transform: rotate(-1.5deg);
}

.big-result { font-size: 40px; font-weight: 900; line-height: 1.1; }
.duel-verdict { margin-top: 10px; font-weight: 800; font-size: 15px; }
.explain-line { font-size: 17px; font-weight: 500; }
.promo { color: var(--green); font-size: 15px; }
.releg { color: var(--red); font-size: 15px; }
.zone { font-size: 16px; color: var(--ink); font-weight: 500; margin-top: 10px; }

.code-display {
  background: var(--page2); border: 1.5px dashed rgba(169,58,44,0.55); border-radius: 12px;
  padding: 14px; text-align: center; font-size: 26px; font-weight: 900;
  letter-spacing: 6px; color: var(--red); margin: 12px 0;
  font-family: var(--font-sc);
}
.code-display.alt { color: var(--green); border-color: rgba(47,122,78,0.55); }

/* ---------- league ---------- */
.rank-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 10px; font-size: 16px;
}
.rank-row:nth-child(odd) { background: rgba(38, 34, 25, 0.03); }
.rank-row.me { background: rgba(169, 58, 44, 0.08); border: 1px solid rgba(169,58,44,0.35); }
.rank-row .pos { width: 26px; font-weight: 800; color: var(--ink-soft); }
.rank-row .pts { margin-left: auto; font-weight: 800; color: var(--ink); }

/* ---------- forms ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--ink-soft); margin-bottom: 7px; font-family: var(--font-sc); letter-spacing: 0.5px; }
.field input {
  width: 100%; background: var(--page); border: 1px solid var(--rule);
  color: var(--ink); border-radius: 12px; padding: 14px 15px; font-size: 17px;
  font-family: var(--font); outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: var(--ink-soft); font-weight: 500; }
.input-lg {
  width: 100%; background: var(--page); border: 1px solid var(--rule);
  color: var(--ink); border-radius: 12px; padding: 13px 14px;
  font-size: 18px; text-align: center; letter-spacing: 3px;
  text-transform: uppercase; font-family: var(--font); outline: none;
}
.input-lg:focus, .field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(169, 58, 44, 0.18);
}

/* ---------- misc ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(80px);
  background: var(--page); border: 1px solid var(--rule); color: var(--ink);
  box-shadow: 0 4px 18px rgba(38, 34, 25, 0.18);
  padding: 13px 20px; border-radius: 999px; font-size: 16px; font-weight: 600;
  opacity: 0; transition: all 0.25s ease; z-index: 99; pointer-events: none;
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: var(--red); color: var(--red); }
@media (prefers-reduced-motion: reduce) {
  .result-hero { animation: none; }
  .spin { animation-duration: 1.8s; }
}
.muted { color: var(--ink-soft); }
.center { text-align: center; }
h1.title { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 4px; line-height: 1.15; text-align: center; }
.date-line { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; font-family: var(--font-sc); letter-spacing: 0.5px; text-align: center; }
.section-title { font-size: 15px; font-weight: 750; font-family: var(--font-sc); letter-spacing: 0.8px; color: var(--ink-soft); margin: 20px 0 11px; }
.spin { display: inline-block; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { text-align: center; padding: 60px 0; color: var(--ink); font-size: 17px; font-weight: 500; }
.streak-flame { color: var(--red); }
.dialog { position: fixed; inset: 0; background: rgba(38, 34, 25, 0.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.dialog .box { background: var(--page); border: 1px solid var(--rule); border-radius: 20px; padding: 22px; max-width: 420px; width: 100%; max-height: 86dvh; overflow-y: auto; box-shadow: 0 12px 40px rgba(38,34,25,.25); }
.dialog h3 { margin: 0 0 10px; }
.nav-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid .day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; background: var(--page); border: 1px solid var(--rule);
  font-size: 15px; color: var(--ink-faint); text-decoration: none;
  transition: border-color 0.15s ease, transform 0.08s var(--ease-out);
}
.cal-grid .day:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); text-decoration: none; }
.cal-grid .day.has { color: var(--red); border-color: rgba(169,58,44,0.4); font-weight: 700; }
.cal-grid .day.today { background: var(--red); color: var(--page); border: none; font-weight: 800; }
.cal-grid .day.played { color: var(--green); border-color: rgba(47,122,78,0.4); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-box { background: var(--page); border: 1px solid var(--rule); border-radius: 14px; padding: 14px; text-align: center; box-shadow: var(--shadow); }
.stat-box b { display: block; font-size: 23px; font-weight: 800; }
.stat-box span { font-size: 14px; color: var(--ink-soft); font-family: var(--font-sc); letter-spacing: 0.5px; }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 18px 18px 44px; color: var(--ink-soft); font-size: 15px; }
.footer::before {
  content: ""; display: block; width: 56px; margin: 0 auto 16px;
  border-top: 1px solid var(--rule);
}
.footer .footer-label {
  display: block; font-family: var(--font-sc); font-size: 13px;
  letter-spacing: 0.8px; color: var(--ink-faint); margin-bottom: 4px;
}
.footer a { color: var(--red); font-weight: 600; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 3px; }

/* ---------- sponsored: Asia Pathway ad (ink & paper) ---------- */
.ap-ad {
  max-width: 640px;
  margin: -56px auto 0;
  padding: 10px 18px 6px;
}
.ap-ad-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--page);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 176px 20px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease-out, transform 0.1s ease-out, box-shadow 0.15s ease-out;
}
.ap-ad-link::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: var(--red);
  opacity: 0.9;
}
.ap-ad-link:hover {
  border-color: var(--red);
  box-shadow: 0 3px 0 var(--red), var(--shadow);
  text-decoration: none;
  transform: translateY(-2px);
}
.ap-ad-link:active { transform: translateY(0) scale(0.99); }
.ap-ad-stamp {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--font-sc);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 4px;
  padding: 2px 7px;
  transform: rotate(-1.5deg);
  opacity: 0.9;
}
.ap-ad-body { display: block; }
.ap-ad-kicker {
  display: block;
  font-family: var(--font-sc);
  font-size: 14px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 5px;
}
.ap-ad-title {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
}
.ap-ad-title em {
  font-style: normal;
  font-weight: 700;
  color: var(--red);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.ap-ad-sub {
  display: block;
  margin-top: 7px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}
.ap-ad-proof {
  display: block;
  margin-top: 9px;
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--green);
  font-weight: 700;
}
.ap-ad-proof-mark {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  border: 1px solid var(--green);
  border-radius: 50%;
  font-family: var(--font);
  font-size: 11px;
}
.ap-ad-cta {
  position: absolute;
  right: 28px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--red);
  color: var(--page);
  font-family: var(--font-sc);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.6px;
  border-radius: 10px;
  padding: 9px 12px;
}
.ap-ad-link:hover .ap-ad-cta { background: var(--red-deep); }
@media (max-width: 480px) {
  .ap-ad { margin-top: -40px; }
  .ap-ad-link { padding: 18px 18px 18px 16px; }
  .ap-ad-stamp { position: static; display: inline-block; margin-bottom: 10px; }
  .ap-ad-title { font-size: 25px; }
  .ap-ad-cta { position: static; margin-top: 13px; }
  .ap-ad-link::after { width: 5px; }
}
