/* ATONgames.com — shared styles */

:root {
  --bg: #fffdf8;
  --ink: #1d1b16;
  --muted: #6d675c;
  --line: #ebe4d6;
  --card: #ffffff;
  --soft: #f6f1e6;
  --accent: #ffd23f;
  --good: #1f9d55;
  --bad: #e5484d;
  --radius: 20px;
  --shadow: 0 1px 0 rgba(29, 27, 22, .04), 0 12px 32px -16px rgba(29, 27, 22, .25);
  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-quote: 'Fraunces', Georgia, 'Times New Roman', serif;

  --t-common: #8a8f98;
  --t-uncommon: #1f9d55;
  --t-rare: #2f7cf6;
  --t-epic: #9b51e0;
  --t-legendary: #f28c18;
  --t-mythic: #e0357a;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ logo */

.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  letter-spacing: -.02em;
  text-decoration: none;
  line-height: 1;
}
.logo .l { display: inline-block; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), color .2s; }
.logo:hover .l { transform: translateY(-6px) rotate(-4deg); }
.logo:hover .l:nth-child(even) { transform: translateY(-3px) rotate(5deg); }
.logo .l:nth-child(1) { transition-delay: 0s; }
.logo .l:nth-child(2) { transition-delay: .02s; }
.logo .l:nth-child(3) { transition-delay: .04s; }
.logo .l:nth-child(4) { transition-delay: .06s; }
.logo .l:nth-child(5) { transition-delay: .08s; }
.logo .l:nth-child(6) { transition-delay: .10s; }
.logo .l:nth-child(7) { transition-delay: .12s; }
.logo .l:nth-child(8) { transition-delay: .14s; }
.logo .l:nth-child(9) { transition-delay: .16s; }
.logo .dotcom { color: var(--muted); font-weight: 500; }

/* ------------------------------------------------------------ home */

.home-top { padding-bottom: 0; }
.home-header {
  text-align: center;
  padding: 28px 20px 28px;
}
.home-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; }

/* the logo easter egg: click it and it falls apart */
.logo.broken .l, .logo.broken .dotcom .p { transition: none !important; will-change: transform; position: relative; z-index: 50; }
.logo.mending .l, .logo.mending .dotcom .p { transition: transform .7s cubic-bezier(.3, 1.4, .5, 1) !important; position: relative; z-index: 50; }
.logo .dotcom .p { display: inline-block; }
.tagline {
  margin: 18px auto 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.15rem;
}

.games {
  width: 100%;
  max-width: 1120px;
  margin: 24px auto 0;
  padding: 0 20px 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 36px 28px;
}
/* the home page: ATON Universe (one shared economy) first, then everything else */
.home-games { width: 100%; }
.games-sec { margin: 0 auto; }
.games-sec + .games-sec { margin-top: 8px; }
.games-h, .games-sub { width: 100%; max-width: 1120px; margin-left: auto; margin-right: auto; padding: 0 24px; }
.games-h { margin-top: 28px; margin-bottom: 0; font: 700 clamp(1.6rem, 4vw, 2.1rem)/1.15 var(--font-display); letter-spacing: -.01em; }
.games-sub { margin-top: 4px; margin-bottom: 0; color: var(--muted); font-weight: 600; }
.games-sec .games { margin-top: 18px; padding-bottom: 40px; }
.games-sec:last-child .games { padding-bottom: 64px; }

.game-card {
  display: block;
  text-decoration: none;
  color: inherit;
  outline: none;
}
.game-card .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: var(--c, #eee);
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}
.game-card .thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-card:hover .thumb,
.game-card:focus-visible .thumb {
  transform: scale(1.04);
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .07), 0 18px 30px -18px rgba(0, 0, 0, .45);
}
.game-card:focus-visible .thumb { outline: 3px solid var(--ink); outline-offset: 4px; }
.game-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  margin: 14px 4px 2px;
  line-height: 1.2;
}
.game-card p { margin: 0 4px; color: var(--muted); }
.game-card .new-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 2px 8px 3px;
  font: 600 .72rem/1.2 var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 99px;
  background: var(--ink);
  color: var(--card);
}
.game-card.soon .thumb {
  background: transparent;
  border: 3px dashed var(--line);
  box-shadow: none;
  display: grid;
  place-items: center;
  font: 700 4rem/1 var(--font-display);
  color: var(--line);
}
.game-card.soon:hover .thumb { box-shadow: none; color: var(--muted); }
/* Settings → Menu size (per device, early access: menusize): smaller tiles so more games fit on the screen */
html[data-menu="m"] .games { grid-template-columns: repeat(auto-fill, minmax(min(200px, calc(50% - 8px)), 1fr)); gap: 24px 16px; }
html[data-menu="m"] .game-card .thumb { border-radius: 16px; }
html[data-menu="m"] .game-card h2 { font-size: 1.15rem; margin: 10px 2px 2px; }
html[data-menu="m"] .game-card p { margin: 0 2px; font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[data-menu="m"] .game-card.soon .thumb { font-size: 3rem; }
html[data-menu="s"] .games { grid-template-columns: repeat(auto-fill, minmax(min(130px, calc(33.33% - 8px)), 1fr)); gap: 14px 12px; }
html[data-menu="s"] .games-sec .games { margin-top: 12px; padding-bottom: 24px; }
html[data-menu="s"] .games-h { margin-top: 18px; font-size: 1.35rem; }
html[data-menu="s"] .game-card .thumb { border-radius: 12px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .07); }
html[data-menu="s"] .game-card h2 { font-size: .95rem; margin: 6px 2px 0; }
html[data-menu="s"] .game-card p { display: none; }
html[data-menu="s"] .game-card .new-tag { margin-left: 4px; padding: 1px 6px 2px; font-size: .6rem; }
html[data-menu="s"] .game-card.soon .thumb { font-size: 2rem; border-width: 2px; }
/* on hover only the box grows: nothing inside it moves */
@keyframes bob { 50% { transform: translateY(-10px); } } /* the Do you remember? page uses it */

/* ------------------------------------------------------------ game pages */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}
.mini-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.mini-logo span { color: var(--muted); font-weight: 500; }
.mini-logo:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.account { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; font-weight: 700; }
.account .who { font-family: var(--font-display); font-weight: 600; }

.page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 20px 64px;
  flex: 1;
}
.page-wide { max-width: 1040px; }

.game-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 4rem);
  line-height: 1.05;
  text-align: center;
  margin: 20px 0 8px;
  letter-spacing: -.02em;
}
.game-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 auto 28px;
  max-width: 40ch;
}

.card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.fine { color: var(--muted); font-size: .92rem; text-align: center; }
.muted { color: var(--muted); font-weight: 600; }

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  padding: 28px 20px 36px;
}
.site-footer a { color: var(--muted); }
.site-footer .discord-link { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; font-weight: 700; color: #5865f2; text-decoration: none; }
.site-footer .discord-link:hover { text-decoration: underline; }
.home-footer .discord-link { margin-left: 0; }
.site-footer .rules-link { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; font-weight: 700; text-decoration: none; }
.site-footer .rules-link:hover { text-decoration: underline; }
.home-footer .rules-link { margin: 0; }

/* report a player, quote or Vote! entry (ATON.report), and ban appeals */
.report-why { display: grid; gap: 4px; margin: 4px 0 12px; }
.report-why label { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 2px solid var(--soft); border-radius: 12px; font-weight: 600; cursor: pointer; }
.report-why label:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.report-form .small { font-size: .85rem; margin: 10px 0 0; }
.banner[data-banned] a { font-weight: 700; }
.banner[data-banned] .btn { margin-left: 6px; }
.appeal-wait { display: inline-block; margin-left: 6px; font-weight: 600; opacity: .8; }
.appeal-ans { margin: 6px 0; font-weight: 600; }
.flag-btn { background: none; border: 0; padding: 2px; cursor: pointer; opacity: .55; line-height: 0; }
.flag-btn:hover, .flag-btn:focus-visible { opacity: 1; }
.flag-btn .stk { width: 18px; height: 18px; }

/* ------------------------------------------------------------ controls */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
  padding: 13px 22px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--ink); }
.btn-primary { background: var(--accent); }
.btn-dark { background: var(--ink); color: var(--card); }
.btn-good { background: #7ee2a8; }
.btn-danger { background: #ffb4b4; }
.btn-xl { font-size: 1.35rem; padding: 17px 34px 18px; }
.btn-small { font-size: .9rem; padding: 8px 14px 9px; box-shadow: 0 3px 0 var(--ink); }
.btn-small:hover { box-shadow: 0 4px 0 var(--ink); }
.btn-small:active { box-shadow: 0 0 0 var(--ink); transform: translateY(3px); }
.btn-block { width: 100%; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-weight: 700;
}
.link-btn:hover { color: var(--ink); }

.input {
  width: 100%;
  font: 600 1.05rem/1.3 var(--font-body);
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent); }
.input::placeholder { color: #b3ab9c; font-weight: 600; }
.input-xl { font-size: 1.4rem; padding: 18px 20px; border-radius: 18px; }

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.tab {
  font: 600 1rem/1 var(--font-display);
  padding: 10px 16px 11px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--soft);
  cursor: pointer;
  color: var(--muted);
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--ink); color: var(--card); }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px;
}
.loading { text-align: center; color: var(--muted); padding: 28px 0; }
.loading::after { content: ''; display: inline-block; width: 1em; text-align: left; animation: dots 1s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* ------------------------------------------------------------ toast, banner, modal */

.toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 100;
  pointer-events: none;
  width: calc(100% - 32px);
}
.toast {
  pointer-events: auto;
  max-width: 480px;
  background: var(--ink);
  color: var(--card);
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  animation: toast-in .25s cubic-bezier(.3, 1.5, .5, 1);
}
.toast.bad { background: var(--bad); }
.toast.good { background: var(--good); }
.toast.out { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }

.banner {
  background: #fff4d6;
  border: 2px solid #f0c55a;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 24px;
  font-weight: 600;
}
.banner code {
  background: var(--card);
  border: 1px solid #f0c55a;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .92em;
}

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(29, 27, 22, .45);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 90;
  animation: fade .15s ease;
}
.modal {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--card);
  border-radius: 24px;
  padding: 28px 24px 24px;
  border: 2px solid var(--ink);
  box-shadow: 0 8px 0 var(--ink);
  position: relative;
  animation: pop .22s cubic-bezier(.3, 1.5, .5, 1);
}
.modal-wide { max-width: 860px; }
.modal h2 { font-family: var(--font-display); font-weight: 700; margin: 0 0 6px; font-size: 1.7rem; line-height: 1.15; }
.modal p { margin: 0 0 16px; color: var(--muted); }
.modal .close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--soft);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}
.modal .close:hover { background: var(--line); }
.modal form { display: grid; gap: 12px; }
.modal .switch { text-align: center; margin: 14px 0 0; color: var(--muted); }
.modal .error { color: var(--bad); font-weight: 700; min-height: 1.4em; margin: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } }

/* confetti */
.confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 120;
}

/* ------------------------------------------------------------ rarity tiers */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 600 .78rem/1 var(--font-display);
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 10px 6px;
  border-radius: 99px;
  color: #fff;
  background: var(--tc, var(--t-common));
  white-space: nowrap;
}
.tier-common { --tc: var(--t-common); }
.tier-uncommon { --tc: var(--t-uncommon); }
.tier-rare { --tc: var(--t-rare); }
.tier-epic { --tc: var(--t-epic); }
.tier-legendary { --tc: var(--t-legendary); }
.tier-mythic { --tc: var(--t-mythic); }
.badge.tier-mythic {
  background: linear-gradient(90deg, #ff4f8b, #a45cff, #36c5f0, #ff4f8b);
  background-size: 300% 100%;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }

/* ------------------------------------------------------------ account menu, announcements */

.acct { position: relative; }
.acct-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 12px 7px 8px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  position: relative;
}
.acct-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.acct-bal {
  background: var(--accent);
  border-radius: 999px;
  padding: 3px 9px 4px;
  font: 700 .9rem/1 var(--font-display);
}
.acct-caret { color: var(--muted); font-size: .8rem; }
.acct-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bad);
  border: 2px solid #fff;
}
.acct-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 6px 0 var(--ink);
  padding: 8px;
  z-index: 80;
  animation: pop .18s cubic-bezier(.3, 1.5, .5, 1);
}
.acct-head { padding: 8px 10px 10px; border-bottom: 1.5px solid var(--line); margin-bottom: 6px; font-weight: 600; line-height: 1.35; }
.acct-head .muted { font-size: .82rem; }
.acct-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 9px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
.acct-item:hover, .acct-item:focus-visible { background: var(--soft); outline: none; }
.acct-daily { background: #fff4d6; }
.acct-n {
  margin-left: auto;
  background: var(--bad);
  color: #fff;
  border-radius: 99px;
  padding: 1px 8px 2px;
  font-size: .8rem;
}

.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--ink);
  color: var(--card);
  padding: 10px 16px;
  font-weight: 700;
  text-align: center;
}
.announce button { background: none; border: 0; color: var(--card); opacity: .7; cursor: pointer; font-size: 1rem; }
.announce button:hover { opacity: 1; }
.announce a { color: #fff; text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.announce-luck { background: #6b3fd1; }
.announce-farm { background: #23874f; }
.announce-me, .announce-me button { background: #1f68c9; color: #fff; }
.ev-left { font-weight: 600; opacity: .8; white-space: nowrap; }
.role-check .stk { width: 1.05em; height: 1.05em; vertical-align: -.16em; margin-left: .22em; }
.role { display: inline-flex; align-items: center; gap: 3px; margin-left: 2px; padding: 2px 8px 2px 3px; border: 2px solid var(--ink); border-radius: 99px; background: #fff; color: #1d1b16; font: 800 .72rem/1.1 var(--font-body); vertical-align: .18em; white-space: nowrap; -webkit-text-stroke: 0; }
.role .stk { width: 1.3em; height: 1.3em; }
.role-og { background: #eadbff; }
.role-owner { background: #ffd0d8; }
.role-mod { background: #cfe5ff; }
.role-bugfinder { background: #d2f5dc; }
.sg-tabs { margin: -4px 0 12px; }
.sg-tabs .stk { width: 1.15em; height: 1.15em; vertical-align: -.2em; }
.role-top1 { background: #ffe8a3; }
.acct-adm { font: 700 .68rem/1 ui-monospace, Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: #5865f2; border-radius: 5px; padding: 3px 5px; }
.acct-prof { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 2px 8px 8px; border-bottom: 1.5px solid var(--line); margin-bottom: 6px; }
.acct-prof .muted { font-size: .8rem; font-weight: 600; margin-right: auto; }
.acct-prof button { font: inherit; font-size: .8rem; font-weight: 700; padding: 4px 9px; border-radius: 8px; border: 1.5px solid var(--line); background: transparent; color: inherit; cursor: pointer; }
.acct-prof button:hover { background: var(--soft); }
.acct-prof button.on { background: #5865f2; border-color: #5865f2; color: #fff; cursor: default; }
.acct-test { background: #e8890c; }
.acct-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 0 8px 8px; border-bottom: 1.5px solid var(--line); margin-bottom: 6px; }
.acct-tools button { white-space: nowrap; display: flex; align-items: center; gap: 5px; font: inherit; font-size: .78rem; font-weight: 700; padding: 5px 7px; border-radius: 8px; border: 1.5px solid var(--line); background: transparent; color: inherit; cursor: pointer; text-align: left; }
.acct-tools button:hover { background: var(--soft); }
.acct-tools .stk { width: 16px; height: 16px; flex: none; }
.acct-kbd { margin-left: auto; font: 600 .75rem ui-monospace, Menlo, Consolas, monospace; color: var(--muted, #777); border: 1px solid currentColor; border-radius: 5px; padding: 0 5px; }
.banner-bad { background: #ffe3e3; border-color: var(--bad); }
textarea.input { resize: vertical; min-height: 110px; font-weight: 600; }

/* ------------------------------------------------------------ get more Ⱥ, Google sign in */

.earn-btn { background: #fff4d6; }
.earn-list { display: grid; gap: 8px; margin: 4px 0 14px; }
.earn-way {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  text-decoration: none;
  line-height: 1.35;
  border: 2px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}
a.earn-way:hover, button.earn-way:hover, .earn-way:focus-visible { border-color: var(--ink); outline: none; }
.earn-buy { margin: 4px 0 14px; padding: 12px; border-radius: 16px; border: 2px solid var(--ink); background: color-mix(in srgb, var(--accent) 22%, var(--card)); }
.earn-buy > p { margin: 8px 0 0; font-size: .82rem; }
.earn-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 6px; margin-top: 8px; }
.earn-pack { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.earn-pack:hover, .earn-pack:focus-visible { border-color: var(--ink); outline: none; }
.earn-pack > b { font: 700 1.05rem/1.1 var(--font-display); white-space: nowrap; }
.earn-pack .muted { font-size: .76rem; white-space: nowrap; }
.earn-pack[disabled] { opacity: .6; cursor: wait; }
.earn-way span:last-child { font-size: .92rem; }
.earn-way b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.earn-e { font-size: 1.6rem; line-height: 1; flex: none; width: 1.8rem; text-align: center; }
.earn-daily { background: #fff4d6; border-color: var(--ink); }
.earn-farm { background: #e6f8ea; }
.earn-done { cursor: default; opacity: .75; }
.earn-secret { margin: 0; font-size: .85rem; text-align: center; }

.g-box { display: flex; justify-content: center; min-height: 44px; }
.g-box.ac-g { justify-content: flex-start; }
.g-off { margin: 0; text-align: center; font-size: .9rem; }
.auth-note { font-size: .9rem; }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-weight: 700; font-size: .85rem; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; border-top: 1.5px solid var(--line); }

/* ------------------------------------------------------------ small screens */

@media (max-width: 560px) {
  body { font-size: 16px; }
  .home-header { padding-top: 16px; }
  .card { padding: 18px; border-radius: 18px; }
  .topbar { padding: 14px 16px; }
  .page { padding: 8px 16px 48px; }
  .games { padding: 0 16px 48px; gap: 28px; }
  .games-h, .games-sub { padding: 0 16px; }
  .input-xl { font-size: 1.2rem; padding: 15px 16px; }
  .acct-btn .who { display: none; }
  .earn-txt { display: none; }
  .logo { font-size: clamp(1.7rem, 10vw, 2.6rem); white-space: nowrap; }
  .mini-logo { font-size: 1.1rem; }
  .account .btn-small { padding-left: 10px; padding-right: 10px; }
  .btn-xl { font-size: 1.2rem; padding: 15px 26px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.earn-ad { background: #e8f4ff; }
.earn-way:disabled { cursor: wait; opacity: .7; }

/* ------------------------------------------------------------ shop themes (html[data-theme], set by common.js; .tp-ID = a preview in the Shop) */

html[data-theme=mint], .tp-mint { --bg: #f1fbf5; --soft: #e0f4e8; --line: #cbe8d6; --accent: #6fe0a6; --muted: #56705f; }
html[data-theme=mint] body, .tp-mint { background-image: radial-gradient(#cfeedd 1.4px, transparent 1.8px); background-size: 22px 22px; }

html[data-theme=ocean], .tp-ocean { --bg: #f1f7ff; --soft: #e1edfc; --line: #cadcf3; --accent: #7cc4ff; --muted: #566985; }
html[data-theme=ocean] body, .tp-ocean { background-image: repeating-linear-gradient(135deg, transparent 0 22px, rgba(124, 196, 255, .12) 22px 25px); }

html[data-theme=sakura], .tp-sakura { --bg: #fff5f8; --soft: #fde5ee; --line: #f5d1de; --accent: #ffa3c6; --muted: #86606f; }
html[data-theme=sakura] body, .tp-sakura {
  background-image: radial-gradient(#ffd3e3 2.4px, transparent 3px), radial-gradient(#ffe4ee 1.6px, transparent 2.1px);
  background-size: 46px 46px, 46px 46px;
  background-position: 0 0, 23px 23px;
}

html[data-theme=peach], .tp-peach { --bg: #fff6ef; --soft: #ffe8d8; --line: #f6d7c0; --accent: #ffb38a; --muted: #83665a; }
html[data-theme=peach] body, .tp-peach { background-image: linear-gradient(180deg, #fff8f2, #ffe7d6); }

html[data-theme=grape], .tp-grape { --bg: #f8f4ff; --soft: #ece4ff; --line: #ddd0f7; --accent: #c6a6ff; --muted: #6c6287; }
html[data-theme=grape] body, .tp-grape {
  background-image: radial-gradient(#d9c9ff 1.6px, transparent 2px), radial-gradient(#e8deff 1px, transparent 1.4px);
  background-size: 34px 34px, 34px 34px;
  background-position: 0 0, 17px 11px;
}

html[data-theme=graph], .tp-graph { --bg: #fbfcff; --soft: #eef1f8; --line: #dde2ee; --accent: #ffd23f; --muted: #5f6678; }
html[data-theme=graph] body, .tp-graph {
  background-image: linear-gradient(#e6ebf5 1px, transparent 1px), linear-gradient(90deg, #e6ebf5 1px, transparent 1px);
  background-size: 24px 24px;
}

html[data-theme=confetti] body, .tp-confetti {
  background-image:
    radial-gradient(circle, #ff9ec4 0 3px, transparent 3.5px), radial-gradient(circle, #8fd0ff 0 3px, transparent 3.5px),
    radial-gradient(circle, #ffd23f 0 3.5px, transparent 4px), radial-gradient(circle, #7ee2a8 0 2.5px, transparent 3px),
    radial-gradient(circle, #b9a4ff 0 3px, transparent 3.5px);
  background-size: 130px 130px, 110px 110px, 150px 150px, 90px 90px, 170px 170px;
  background-position: 10px 20px, 60px 80px, 100px 30px, 30px 60px, 140px 120px;
}

html[data-theme=gold], .tp-gold { --bg: #fffaea; --soft: #fbefc8; --line: #ecd9a0; --accent: #f5c542; --muted: #7a693a; }
html[data-theme=gold] body, .tp-gold { background-image: repeating-linear-gradient(45deg, transparent 0 30px, rgba(232, 186, 60, .1) 30px 34px); }
html[data-theme=gold] .btn-primary, .tp-gold .tp-btn { background: linear-gradient(180deg, #ffe17a, #f5c542); }

/* paid themes (Premium shop) */
html[data-theme=aurora], .tp-aurora { --bg: #f3fbfb; --soft: #def3f1; --line: #c6e6e3; --accent: #6ee7c8; --muted: #4f6e6c; }
html[data-theme=aurora] body, .tp-aurora {
  background-image:
    radial-gradient(ellipse 60% 45% at 18% 0%, rgba(110, 231, 200, .45), transparent),
    radial-gradient(ellipse 55% 50% at 72% 6%, rgba(165, 130, 255, .35), transparent),
    radial-gradient(ellipse 50% 40% at 45% 24%, rgba(90, 200, 255, .28), transparent);
}
html[data-theme=aurora] body { background-attachment: fixed; }

html[data-theme=candy], .tp-candy { --bg: #fff7fd; --soft: #fbe6f6; --line: #f0d3ea; --accent: #ffa6dc; --muted: #7d6278; }
html[data-theme=candy] body, .tp-candy {
  background-image: radial-gradient(closest-side, rgba(255, 182, 225, .5), transparent), radial-gradient(closest-side, rgba(160, 210, 255, .5), transparent);
  background-size: 260px 160px, 220px 140px;
  background-position: 0 0, 130px 80px;
}

/* ------------------------------------------------------------ shop profile designs (.design-ID on a profile card) */

.design-stripes { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--c) 24%, var(--card)) 0 14px, var(--card) 14px 28px); }
.design-dots {
  background: radial-gradient(color-mix(in srgb, var(--c) 40%, var(--card)) 3.5px, transparent 4px) 0 0 / 18px 18px, var(--card);
}
.design-sunset { background: linear-gradient(120deg, #ffd29a, #ff9eb5 55%, #c7b3ff); border-color: transparent; }
.design-bubbles {
  background:
    radial-gradient(circle, rgba(255, 255, 255, .95) 0 5px, transparent 6px) 0 0 / 70px 90px,
    radial-gradient(circle, rgba(255, 255, 255, .7) 0 9px, transparent 10px) 30px 40px / 110px 120px,
    linear-gradient(180deg, #b8e2ff, #e9f7ff);
  animation: design-bubbles 9s linear infinite;
}
@keyframes design-bubbles { to { background-position: 0 -90px, 30px -80px, 0 0; } }
.design-galaxy {
  background:
    radial-gradient(1.6px 1.6px at 12% 30%, #fff, transparent), radial-gradient(1.4px 1.4px at 38% 72%, #fff, transparent),
    radial-gradient(2px 2px at 64% 22%, #fff, transparent), radial-gradient(1.2px 1.2px at 82% 64%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 92% 18%, #ffe9a8, transparent), radial-gradient(1.3px 1.3px at 24% 88%, #c9b8ff, transparent),
    radial-gradient(ellipse at 75% 30%, rgba(255, 122, 200, .35), transparent 55%),
    linear-gradient(135deg, #1b1240, #3a1d6e 60%, #0d2a4a);
  color: #fff;
  border-color: #1b1240;
}
.design-galaxy .muted, .design-galaxy .ac-since, .design-galaxy .ac-bio { color: #d9d2ff; }
.design-galaxy .link-btn, .design-galaxy a:not(.btn) { color: #fff; }
.design-rainbow {
  border: 4px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(90deg, #ff5a5f, #ff9b3d, #ffd23f, #3ccf7a, #4d9dff, #a46bff, #ff5a5f) 0 0 / 200% 100% border-box;
  animation: design-rainbow 4s linear infinite;
}
.design-rainbow .ac-h1, .design-rainbow .sh-name {
  background: linear-gradient(90deg, #ff5a5f, #ff9b3d, #e0b400, #23b465, #3b8cff, #9a5cff, #ff5a5f) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: design-rainbow 4s linear infinite;
}
@keyframes design-rainbow { to { background-position: 200% 0, 200% 0; } }
.design-fire { position: relative; background: linear-gradient(0deg, #ffb347, #ffd76a 45%, #fff6d8); border-color: #f28c18; }
.design-fire::after {
  content: '';
  position: absolute;
  right: 14px;
  bottom: 10px;
  width: 2.6rem;
  height: 2.6rem;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20class%3D%22stk%22%20viewBox%3D%220%200%20100%20100%22%20aria-hidden%3D%22true%22%20focusable%3D%22false%22%3E%3Cg%20stroke%3D%22%231d1b16%22%20stroke-width%3D%225%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M50%2094%20C26%2094%2014%2078%2014%2060%20C14%2042%2028%2032%2030%2014%20C40%2022%2044%2032%2044%2040%20C50%2030%2054%2018%2052%206%20C70%2018%2086%2038%2086%2060%20C86%2080%2072%2094%2050%2094Z%22%20fill%3D%22%23ff9b3d%22%2F%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M50%2092%20C38%2092%2032%2084%2032%2074%20C32%2062%2042%2056%2044%2046%20C52%2054%2056%2060%2058%2066%20C62%2062%2064%2058%2064%2054%20C70%2062%2070%2070%2070%2076%20C70%2086%2062%2092%2050%2092Z%22%20fill%3D%22%23ffd23f%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / contain no-repeat;
  pointer-events: none;
  animation: design-flicker .9s ease-in-out infinite alternate;
}
.design-fire .ac-h1 { text-shadow: 0 0 12px rgba(255, 120, 0, .55); }
@keyframes design-flicker { from { transform: scale(1) rotate(-4deg); } to { transform: scale(1.15) rotate(5deg); } }
.design-royal { background: linear-gradient(135deg, #fff6d2, #f7d774 50%, #fff3c4); border: 3px solid #c9a227; }
.design-royal .ac-avatar { position: relative; }
.design-royal .ac-avatar::before { content: ''; position: absolute; top: -.58em; left: 50%; width: .9em; height: .9em; transform: translateX(-50%) rotate(-8deg); background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20class%3D%22stk%22%20viewBox%3D%220%200%20100%20100%22%20aria-hidden%3D%22true%22%20focusable%3D%22false%22%3E%3Cg%20stroke%3D%22%231d1b16%22%20stroke-width%3D%225%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M10%2032%20L28%2058%20L50%2022%20L72%2058%20L90%2032%20L82%2080%20H18Z%22%20fill%3D%22%23ffd23f%22%2F%3E%0A%20%20%20%20%20%20%3Crect%20x%3D%2216%22%20y%3D%2278%22%20width%3D%2268%22%20height%3D%2212%22%20rx%3D%223%22%20fill%3D%22%23ffd23f%22%2F%3E%0A%20%20%20%20%20%20%3Ccircle%20cx%3D%2210%22%20cy%3D%2230%22%20r%3D%226%22%20fill%3D%22%23ffd23f%22%2F%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2219%22%20r%3D%226%22%20fill%3D%22%23ffd23f%22%2F%3E%3Ccircle%20cx%3D%2290%22%20cy%3D%2230%22%20r%3D%226%22%20fill%3D%22%23ffd23f%22%2F%3E%0A%20%20%20%20%20%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2264%22%20r%3D%227%22%20fill%3D%22%23ff5a5f%22%20stroke-width%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2268%22%20r%3D%225%22%20fill%3D%22%234d9dff%22%20stroke-width%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2270%22%20cy%3D%2268%22%20r%3D%225%22%20fill%3D%22%233ccf7a%22%20stroke-width%3D%223.5%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / contain no-repeat; }

/* paid designs (Premium shop) */
.design-holo {
  background:
    linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .8) 50%, transparent 58%) 0 0 / 300% 100%,
    linear-gradient(115deg, #ffd6f5, #d6e8ff 17%, #d4ffe8 33%, #fff4c2 50%, #ffd6f5 67%, #d6e8ff 83%, #ffd6f5) 0 0 / 300% 100%;
  border-color: transparent;
  animation: design-holo 7s linear infinite;
}
@keyframes design-holo { to { background-position: -300% 0, 300% 0; } }
.design-waves {
  background:
    radial-gradient(circle at 20px -8px, transparent 0 17px, #5fb4f5 18px) 0 100% / 40px 26px repeat-x,
    radial-gradient(circle at 20px -8px, transparent 0 17px, #a7dcff 18px) 20px calc(100% - 12px) / 40px 26px repeat-x,
    linear-gradient(180deg, #f2fbff, #d9f0ff);
  animation: design-waves 2.6s linear infinite;
}
@keyframes design-waves { to { background-position: 40px 100%, -20px calc(100% - 12px), 0 0; } }

/* ------------------------------------------------------------ profile effects (shop): .has-fx card + ATON.effectHTML layer */

.has-fx { position: relative; }
.has-fx > :not(.fx) { position: relative; z-index: 1; }
.fx { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; font-size: 1.25rem; }
.fx-p {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--z) * 1em);
  height: calc(var(--z) * 1em);
  margin-left: calc(var(--z) * -.5em);
  opacity: .6;
  animation: var(--d) linear var(--t) infinite;
}
.fx-p .stk { display: block; width: 100%; height: 100%; }
.fx-fall { animation-name: fx-fall; }
.fx-sway { animation-name: fx-sway; }
.fx-rise { animation-name: fx-rise; }
.fx-twinkle { animation-name: fx-twinkle; animation-timing-function: ease-in-out; }
.fx-flash { width: calc(var(--z) * 1.9em); height: calc(var(--z) * 1.9em); opacity: 0; animation-name: fx-flash; }
@keyframes fx-fall { from { top: -15%; transform: rotate(0); } to { top: 105%; transform: rotate(220deg); } }
@keyframes fx-sway {
  0% { top: -15%; transform: translateX(0) rotate(-25deg); }
  25% { transform: translateX(.9em) rotate(10deg); }
  50% { transform: translateX(0) rotate(25deg); }
  75% { transform: translateX(-.9em) rotate(-10deg); }
  100% { top: 105%; transform: translateX(0) rotate(-25deg); }
}
@keyframes fx-rise { 0% { top: 105%; opacity: 0; transform: scale(.7); } 15% { opacity: .7; } 80% { opacity: .55; } 100% { top: -15%; opacity: 0; transform: scale(1.1); } }
@keyframes fx-twinkle { 0%, 100% { opacity: 0; transform: scale(0) rotate(0); } 50% { opacity: .85; transform: scale(1) rotate(35deg); } }
@keyframes fx-flash { 0%, 84%, 100% { opacity: 0; } 85%, 90% { opacity: 1; } 88% { opacity: .25; } 93% { opacity: 0; } }
/* shooting stars: a quick dash with a tail, then a long pause */
.fx-shoot { opacity: 0; animation-name: fx-shoot; animation-timing-function: ease-in; }
.fx-shoot::after { content: ''; position: absolute; left: 50%; top: 50%; width: 3em; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #fff3a8, transparent); transform: rotate(-31deg); transform-origin: left center; }
@keyframes fx-shoot { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 3% { opacity: .95; } 20% { opacity: 0; transform: translate(-7em, 4.2em) scale(.9); } 100% { opacity: 0; transform: translate(-7em, 4.2em); } }
/* fireflies: soft dots that drift and glow */
.fx-glow {
  width: calc(var(--z) * .45em);
  height: calc(var(--z) * .45em);
  border-radius: 50%;
  background: radial-gradient(circle, #fffbd0 0 30%, #d8f05a 60%, transparent 72%);
  box-shadow: 0 0 10px 3px rgba(190, 230, 50, .6);
  opacity: 0;
  animation-name: fx-glow;
  animation-timing-function: ease-in-out;
}
@keyframes fx-glow {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: .95; }
  40% { opacity: .35; transform: translate(1.2em, -.8em); }
  60% { opacity: 1; transform: translate(.4em, -1.8em); }
  80% { opacity: .4; transform: translate(-.8em, -1em); }
}
/* the sky lights up with every bolt (a bolt every 2 seconds, see effectHTML) */
.fx-storm::before { content: ''; position: absolute; inset: 0; background: #fff; opacity: 0; animation: fx-sky 2s linear infinite; }
@keyframes fx-sky { 0%, 52%, 79%, 100% { opacity: 0; } 55% { opacity: .5; } 60% { opacity: .1; } 70% { opacity: .4; } }
.fx-on-aura .ac-avatar { animation: fx-aura 2.6s ease-in-out infinite; }
.fx-on-aura .has-pfp { animation-name: fx-aura-pfp; }
@keyframes fx-aura {
  0%, 100% { filter: drop-shadow(0 0 3px var(--c, #ffd23f)) drop-shadow(0 0 1px #fff); }
  50% { filter: drop-shadow(0 0 14px var(--c, #ffd23f)) drop-shadow(0 0 5px #fff); }
}
@keyframes fx-aura-pfp {
  0%, 100% { filter: drop-shadow(0 3px 0 var(--ink)) drop-shadow(0 0 3px var(--c, #ffd23f)) drop-shadow(0 0 1px #fff); }
  50% { filter: drop-shadow(0 3px 0 var(--ink)) drop-shadow(0 0 14px var(--c, #ffd23f)) drop-shadow(0 0 5px #fff); }
}
@media (prefers-reduced-motion: reduce) {
  .fx-p, .fx-storm::before, .fx-on-aura .ac-avatar, .design-holo, .design-waves { animation: none !important; }
  .fx-shoot::after { display: none; }
  .fx-p { opacity: .5; }
  .fx-flash { opacity: 0; }
}

/* ------------------------------------------------------------ stickers (assets/js/stickers.js), no emoji */

.stk { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -.28em; flex: none; overflow: visible; }
.stk-in { width: 1.15em; height: 1.15em; vertical-align: -.24em; }
.stk-h { width: 1.05em; height: 1.05em; vertical-align: -.14em; }
.stk-badge { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: -.4em; flex: none; }
.tab .stk { margin-right: 3px; vertical-align: -.3em; }
.toast .stk, .toast .stk-badge { margin-right: 8px; }
.toast .stk-badge { width: 1.7em; height: 1.7em; vertical-align: -.5em; }
.acct-item .stk { width: 1.4em; height: 1.4em; }
.earn-btn .stk { width: 1.35em; height: 1.35em; vertical-align: -.32em; }
.music-btn { padding-left: 8px; padding-right: 8px; background: #efe6ff; }
.music-btn .stk { width: 1.6em; height: 1.6em; vertical-align: -.45em; margin: -.1em 0; }
.music-btn.off { background: var(--card); }
html[data-dark] .music-btn:not(.off) { background: #2e2740; }
.snd-pop {
  position: absolute;
  width: 270px;
  max-width: calc(100vw - 16px);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 6px 0 var(--ink);
  padding: 12px 14px 14px;
  z-index: 90;
  animation: pop .18s cubic-bezier(.3, 1.5, .5, 1);
}
.snd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.snd-sep { margin-top: 12px; padding-top: 12px; border-top: 1.5px solid var(--line); }
.snd-sw { position: relative; width: 46px; height: 26px; border-radius: 99px; border: 2px solid var(--ink); background: var(--soft); padding: 0; cursor: pointer; flex: none; }
.snd-sw i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform .15s; }
.snd-sw.on { background: var(--good); }
.snd-sw.on i { transform: translateX(20px); background: #fff; }
.snd-vol { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .85rem; color: var(--muted); }
.snd-vol input { flex: 1; min-width: 0; accent-color: var(--ink); }
.snd-vol em { font-style: normal; width: 3em; text-align: right; font-variant-numeric: tabular-nums; }
.snd-songs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.snd-song { border: 1.5px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 99px; padding: 4px 10px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.snd-song.on { border-color: var(--ink); background: var(--accent); color: #1d1b16; }
.snd-pop .dim { opacity: .45; }
.earn-e .stk { width: 1.9rem; height: 1.9rem; vertical-align: 0; }
.acct-pfp { width: 26px; height: 26px; vertical-align: middle; }
/* a player's picture: their advancement badge fills the avatar box */
.has-pfp { background: none !important; border-color: transparent !important; box-shadow: none !important; filter: drop-shadow(0 3px 0 var(--ink)); }
.has-pfp .stk-badge { width: 100%; height: 100%; }
/* a badge a player gave a dark disc (stickers.js): in dark mode it gets a light edge, or it would melt into the page */
html[data-dark] .stk-badge-dk { filter: drop-shadow(0 0 1.5px var(--ink)); }
/* a picture they uploaded (api/pic.php) */
.pfp-img { display: inline-block; width: 1.5em; height: 1.5em; object-fit: cover; vertical-align: -.4em; background: #fff; border: 2px solid var(--ink); border-radius: 22%; }
.has-pfp .pfp-img { width: 100%; height: 100%; border-width: 3px; vertical-align: 0; }
.pfp-sm { width: 1.35em; height: 1.35em; vertical-align: -.36em; margin-right: 4px; }

/* ------------------------------------------------------------ dark mode (html[data-dark], picked in Settings; each page's head script sets it before the first paint) */

html[data-dark] {
  color-scheme: dark;
  --bg: #1a1917;
  --ink: #efe9dc;
  --muted: #a69e8f;
  --line: #3b372f;
  --card: #262420;
  --soft: #302d28;
  --good: #3fcf7f;
  --bad: #ff6b70;
  --shadow: 0 1px 0 rgba(0, 0, 0, .35), 0 12px 32px -16px rgba(0, 0, 0, .8);
}
/* a shop theme still shows through: its pattern sits under a dark veil and its accent colour stays */
html[data-dark][data-theme] body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--bg); opacity: .8; pointer-events: none; }
/* things that stay light on purpose: collectible cards, light profile designs, shop theme previews */
html[data-dark] :is(.cd-face, .cd-front, .cd-back-flat, .cd-die, .cd-slot, .design-sunset, .design-bubbles, .design-fire, .design-holo, .design-waves, .sh-tp, .role) {
  --ink: #1d1b16; --muted: #6d675c; --line: #ebe4d6; --card: #fff; --soft: #f6f1e6;
  color: #1d1b16;
}
/* dark text on the bright yellow / green / red fills */
html[data-dark] :is(.btn-primary, .btn-good, .btn-danger, .acct-bal) { color: #1d1b16; }
html[data-dark] .banner, html[data-dark] .acct-daily, html[data-dark] .earn-btn, html[data-dark] .earn-daily { background: #3a3220; }
html[data-dark] .banner-bad { background: #43221f; }
html[data-dark] .earn-farm { background: #1f3326; }
html[data-dark] .earn-ad { background: #1d2c3d; }
html[data-dark] .modal-back { background: rgba(0, 0, 0, .6); }
html[data-dark] .pfp-img { background: var(--card); }
html[data-dark] img:not(.pfp-img) { opacity: .92; }

/* box odds (ATON.boxOdds): every chance in a box */
.acct-n.acct-cr { background: var(--good, #1e9e5a); }
.pay-ways { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pay-ways .btn { flex: 1 1 180px; }
/* the PayPal.me order box (common.js sendBox) */
.pm-steps { margin: 0 0 4px; padding-left: 22px; display: grid; gap: 8px; }
.pm-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.1rem; letter-spacing: .04em; user-select: all; -webkit-user-select: all; }
/* the card box (common.js cardBox): PayPal's own card fields dressed like .input */
.pc-what { margin: -4px 0 14px; color: var(--muted); font-weight: 700; }
.pc-form { display: grid; gap: 6px; margin-bottom: 6px; }
.pc-l { font: 600 .92rem/1.2 var(--font-display); letter-spacing: .04em; color: var(--muted); margin-top: 4px; }
.pc-f {
  height: 54px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.pc-f:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent); }
.pc-f > * { display: block; width: 100%; height: 100%; }
.pc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-row > div { display: grid; gap: 6px; }
.pc-wait { margin: 6px 0 0; color: var(--muted); font-weight: 700; }
.pc-safe { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }
.pc-test { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--soft); font-size: .9rem; font-weight: 700; }
.pc-alt { margin: 10px 0 0; text-align: center; }
.bo-t { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-weight: 700; font-size: .92rem; }
.bo-t td { padding: 5px 8px; border-bottom: 1.5px solid var(--line); }
.bo-t .bo-p { width: 1%; white-space: nowrap; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.bo-notes { margin: 0; padding-left: 20px; color: var(--muted); font-size: .88rem; font-weight: 600; }
