:root {
  --bg: #09090a;
  --bg-soft: #101012;
  --panel: #151517;
  --panel-2: #1c1c20;
  --panel-3: #232329;
  --line: #2a2a30;
  --line-soft: #202026;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --red: #ff0000;
  --red-soft: rgba(255, 0, 0, 0.14);
  --red-line: rgba(255, 0, 0, 0.55);
  --green: #22c55e;
  --blue: #7dd3fc;
  --radius: 18px;
  --tap: 46px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  background:
    radial-gradient(1000px 500px at 50% -20%, rgba(255, 0, 0, 0.07), transparent 60%),
    var(--bg);
  min-height: 100dvh;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
img { max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 10px 0 0; }
.form-error { color: #ff8a8a; font-size: 14px; margin: 12px 0 0; }

.container {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 16px max(14px, env(safe-area-inset-left)) calc(28px + env(safe-area-inset-bottom));
}
.container.narrow { width: min(560px, 100%); }

/* ---------------- Top bar ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 9, 10, 0.78);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /* Keep the frosted bar below the status bar instead of letting the blur
     bleed into the top safe zone. The extra 16px nudges the controls down a
     touch on iOS. */
  padding-top: calc(env(safe-area-inset-top, 0px) + 16px);
}
.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(env(safe-area-inset-top, 0px) + 16px);
  background: linear-gradient(to bottom, var(--bg) 0, var(--bg) calc(100% - 3px), transparent 100%);
  pointer-events: none;
}
.topbar-inner {
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  flex: 0 0 auto;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover, .icon-btn:focus-visible { background: var(--panel-2); border-color: var(--line); }
.icon-btn:active { background: var(--panel-3); }
.icon-btn.danger { color: var(--red); }
.icon-btn.danger:hover, .icon-btn.danger:focus-visible {
  background: var(--red-soft);
  border-color: var(--red-line);
}
.nav-icon.is-active,
.nav-icon.is-active:hover,
.nav-icon.is-active:focus-visible {
  background: var(--red-soft);
  border-color: var(--red-line);
  color: var(--red);
}
.profile-icon { flex: 0 0 auto; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}
.btn:hover { background: var(--panel-3); }
.btn:active { transform: scale(0.985); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.btn svg { width: 18px; height: 18px; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 11px; }
.btn.wide { width: 100%; }
.btn.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn.primary:hover { background: #e60000; }
.btn.primary:disabled {
  background: #2a2a2e;
  border-color: #2a2a2e;
  color: #6b6b74;
  cursor: not-allowed;
}
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger:hover { background: #e60000; }
.btn.success { background: var(--green); border-color: var(--green); color: #04140a; }
.btn.success:hover { background: #2dd46a; }
.btn.copy { min-width: 62px; }
.linklike {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 10px;
  font-size: 14px;
}
.linklike:hover { color: var(--text); }
.linklike.center { display: block; margin: 6px auto 0; }

/* ---------------- Login ---------------- */
.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px max(18px, env(safe-area-inset-left)) 24px max(18px, env(safe-area-inset-right));
}
.login-card {
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-card input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 16px;
  outline: none;
}
.login-card input::placeholder { color: var(--muted-2); }
.login-card input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.login-card .btn { height: 54px; margin-top: 4px; }

/* ---------------- Reward grid ---------------- */
.reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.reward {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 132px;
  padding: 10px 8px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--text);
  transition: border-color 120ms ease, background 120ms ease, transform 80ms ease;
  overflow: hidden;
}
.reward:hover:not(:disabled) { border-color: #3b3b43; }
.reward:active:not(:disabled) { transform: scale(0.985); }
.reward:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.reward[aria-pressed="true"] {
  border-color: var(--red);
  background: linear-gradient(180deg, rgba(255, 0, 0, 0.15), var(--panel));
  box-shadow: 0 0 0 1px rgba(255, 0, 0, 0.25), 0 8px 26px -14px rgba(255, 0, 0, 0.65);
}
.reward[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.9);
}
.reward.empty, .reward:disabled {
  opacity: 0.42;
  filter: grayscale(1);
  cursor: not-allowed;
}
.reward-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
}
.reward-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  pointer-events: none;
}
.reward-meta {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}
.reward-meta .count {
  display: inline-block;
  min-width: 18px;
  padding: 1px 6px;
  margin-right: 2px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
}
.reward-meta .oos { color: var(--muted-2); letter-spacing: 0.01em; }

.generate { margin-top: 16px; height: 58px; font-size: 16px; letter-spacing: 0.01em; }

/* The main menu always fits one phone screen: the grid shrinks, the generate
   button stays pinned above the bottom safe area. */
body[data-page="index"] {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}
body[data-page="index"] .topbar { flex: 0 0 auto; }
body[data-page="index"] .container {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
body[data-page="index"] .reward-grid {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}
body[data-page="index"] .reward {
  min-height: 0;
  padding: 8px 8px 7px;
}
body[data-page="index"] .reward-img {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
}
body[data-page="index"] .reward-img img { height: 100%; }
body[data-page="index"] .generate {
  flex: 0 0 auto;
  height: 54px;
  margin-top: 10px;
}

/* ---------------- Dialogs ---------------- */
/* Make the dialog itself a full-screen, safe-area-aware centering box. This
   keeps tall panels (the account list) clear of the status bar and the home
   indicator instead of centering them in the raw viewport. */
dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  padding:
    calc(env(safe-area-inset-top, 0px) + 30px)
    calc(env(safe-area-inset-right, 0px) + 10px)
    calc(env(safe-area-inset-bottom, 0px) + 14px)
    calc(env(safe-area-inset-left, 0px) + 10px);
  background: transparent;
  color: var(--text);
}
dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.dialog-card {
  width: min(560px, 100%);
  max-height: 100%;
  min-height: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.dialog-head h2, .page-head h1 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.dialog-head .muted { margin: 3px 0 0; font-size: 13px; }
.dialog-head-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }

/* ---------------- Profile rows ---------------- */
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
}
.row-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 0, 0, 0.22);
  border-radius: 13px;
  background: var(--red-soft);
  color: var(--red);
}
.row-icon svg { width: 20px; height: 20px; }
.row-copy { flex: 1 1 auto; min-width: 0; }
.row-copy strong { display: block; font-size: 14px; }
.row-copy p { margin: 2px 0 0; }
.push-toggle {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--panel-2);
}
.push-toggle svg { width: 16px; height: 16px; }
.push-toggle[data-on="1"] {
  border-color: var(--red-line);
  background: var(--red-soft);
  color: #ffd2d2;
}
.push-toggle .icon-bell-off { display: none; }
.push-toggle[data-on="1"] .icon-bell { display: none; }
.push-toggle[data-on="1"] .icon-bell-off { display: block; }
.push-hint { margin: 10px 2px 0; }
.signout { margin-top: 22px; }

/* ---------------- Fields / copy ---------------- */
.field { margin: 14px 0; }
.field-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.copy-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.copy-row code, .copy-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
}
.copy-row code {
  display: block;
  line-height: 26px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.copy-row input { outline: none; }
.copy-row input:focus { border-color: var(--red); }
.otp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}
.otp {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.otp.waiting { color: var(--muted-2); font-size: 15px; letter-spacing: 0.04em; font-weight: 500; }

/* ---------------- Manual accounts ---------------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 14px;
  flex-wrap: wrap;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  user-select: none;
}
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.account-list { display: flex; flex-direction: column; gap: 16px; }
.tier-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted-2);
}
.tier-head::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}
.account-row.unsynced { border-color: rgba(255, 138, 0, 0.35); }
.account-main { flex: 1 1 auto; min-width: 0; }
.account-email {
  display: block;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--panel-3);
  color: var(--muted);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge.warn { background: rgba(255, 138, 0, 0.13); color: #ffb35c; }
.badge.ok { background: rgba(34, 197, 94, 0.12); color: #6ee7a0; }
.account-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.account-actions .btn { min-height: 36px; padding: 0 11px; font-size: 12.5px; }

/* ---------------- Barcode ---------------- */
.barcode-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(18px + env(safe-area-inset-top));
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.barcode-card {
  background: #fff;
  border-radius: 22px;
  padding: 22px 14px;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
}
.barcode-card svg { display: block; width: 100%; height: auto; }
.legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 14px 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.requested { background: var(--red); box-shadow: 0 0 8px rgba(255, 0, 0, 0.7); }
.dot.extra { background: var(--blue); box-shadow: 0 0 8px rgba(125, 211, 252, 0.5); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  font-size: 12.5px;
  color: var(--text);
}
.chip img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: contain;
}
.chip.requested { border-color: var(--red-line); background: rgba(255, 0, 0, 0.1); }
.chip.extra { border-color: rgba(125, 211, 252, 0.45); background: rgba(125, 211, 252, 0.07); }
.barcode-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.barcode-actions .btn { flex: 1; height: 52px; }
.share-result { margin-top: 14px; }
.share-result .copy-row { align-items: stretch; }
.share-result #share-url { font-size: 12px; }
.barcode-expiry { text-align: center; margin-top: 14px; }
.center-card { text-align: center; }
.center-card h1 { margin-top: 0; }

/* Status pages such as "Barcode expired" have no top bar; center the card in
   the safe area instead of letting it sit under the status bar. */
body[data-page="expired"] .container {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

/* ---------------- Page heads / history ---------------- */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 16px;
}
.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.history-head .btn, .history-head .badge { flex: 0 0 auto; }
.history-icons { display: flex; gap: 5px; flex-wrap: wrap; }
.history-icons img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}
.history-facts { margin: 0; display: flex; flex-direction: column; }
.history-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}
.history-fact:first-child { border-top: 0; }
.history-fact dt {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.history-fact dd {
  margin: 0;
  min-width: 0;
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.history-fact dd.on { color: #6ee7a0; }
.history-item.expired { opacity: 0.62; }

/* ---------------- Leaderboard ---------------- */
.lb-list { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.lb-rank {
  width: 24px;
  text-align: center;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 13px;
}
.lb-row.top-1 { border-color: var(--red-line); background: linear-gradient(90deg, rgba(255, 0, 0, 0.13), var(--panel)); }
.lb-row.top-2 { border-color: rgba(255, 120, 0, 0.4); }
.lb-row.top-3 { border-color: rgba(255, 220, 0, 0.3); }
.lb-row.top-1 .lb-rank { color: var(--red); }
.lb-row.top-2 .lb-rank { color: #ff8a3d; }
.lb-row.top-3 .lb-rank { color: #ffd84d; }
.lb-name { flex: 1 1 auto; min-width: 0; }
.lb-name strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name .muted { font-size: 12px; }
.lb-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.section-block { margin-top: 24px; }
.section-block h2 { font-size: 15px; margin: 0 0 10px; }
.reward-stat { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.reward-stat img { width: 28px; height: 28px; object-fit: contain; border-radius: 7px; }
.reward-stat .val { margin-left: auto; font-weight: 700; }

/* ---------------- Add account ---------------- */
.step-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  padding: 16px;
}
.step-line { display: flex; align-items: flex-start; gap: 11px; margin: 18px 0 4px; }
.step-line:first-child { margin-top: 0; }
.step-dot {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.step-dot.active { border-color: var(--red); background: var(--red); color: #fff; box-shadow: 0 0 14px rgba(255, 0, 0, 0.4); }
.step-dot.done { border-color: rgba(34, 197, 94, 0.5); background: rgba(34, 197, 94, 0.15); color: #6ee7a0; }
.step-copy strong { display: block; font-size: 14px; }
.step-copy p { margin: 2px 0 0; }
.actions-row { display: flex; gap: 10px; margin-top: 20px; }
.actions-row .btn { height: 50px; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  z-index: 100;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-3);
  color: var(--text);
  font-size: 13.5px;
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255, 0, 0, 0.55); color: #ffb3b3; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.reward, .history-item, .lb-row, .account-row { animation: fadeUp 180ms ease both; }

@media (min-width: 620px) {
  .reward-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-page="index"] .reward-grid { grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .reward { min-height: 168px; padding: 14px 12px 11px; }
  .reward-meta { font-size: 12.5px; }
  .container { padding-left: 22px; padding-right: 22px; }
}

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