/* Portal-only refinement. No game assets, card art or runtime logic touched. */
.app {
  --polish-text: #eef1e5;
  --polish-secondary: #c4cdb8;
  --polish-border: #424d36;
  --polish-accent: #d4f86b;
}
.app ::selection { background: #d4f86b; color: #17200b; }
.app input { caret-color: var(--polish-accent); }
.app :is(.wallet, .rd-stats, .top > span:last-child) {
  font-variant-numeric: tabular-nums;
}
.app :is(h1,h2,h3) { text-wrap: balance; scroll-margin-top: 88px; }
.app .side .nav {
  min-height: 44px;
  font-size: 14px;
  line-height: 1.3;
  padding-block: 11px;
}
.app .rd-nav-label {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .1em;
  padding-top: 20px;
  padding-bottom: 9px;
}
.app .rd-wordmark small { font-size: 9px; line-height: 1.5; letter-spacing: .055em; }
.app .rd-topline { font-size: 11px; letter-spacing: .08em; }
.app .rd-topline > span:last-child { font-size: 10px; letter-spacing: .04em; }
.app .hero h1 {
  line-height: 1.06;
  letter-spacing: -.04em;
  margin-bottom: 20px;
}
.app .hero > div > p:first-child {
  font-size: 11px !important;
  line-height: 1.5;
  letter-spacing: .07em !important;
  color: var(--polish-secondary) !important;
}
.app .hero .lead {
  font-size: 15px;
  line-height: 1.65;
  max-width: 38ch;
}
.app .hero .row > div > span { font-size: 12px !important; line-height: 1.5; }
.app .rd-section-title { margin-top: 32px; margin-bottom: 16px; gap: 16px; }
.app .rd-section-title h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }
.app .rd-section-title p { font-size: 12px; line-height: 1.5; }
.app .rd-game { min-height: 88px; padding: 16px; gap: 12px; align-items: center; }
.app .rd-game > span:nth-child(2) { min-width: 0; }
.app .rd-game strong { font-size: 15px; line-height: 1.3; }
.app .rd-game small { font-size: 12px; line-height: 1.5; margin-top: 4px; color: var(--polish-secondary); }
.app .rd-game-icon { width: 28px; flex: 0 0 28px; }
.app .rd-action > span:last-of-type { font-size: 12px; line-height: 1.5; padding-right: 12px; }
.app .rd-action { min-height: 136px; }
.app .rd-action i { bottom: 18px; }
.app .rd-home > .cols h3 { font-size: 14px; line-height: 1.4; }
.app .rd-home > .cols .lead { font-size: 12px; }
.app .rd-footer { font-size: 12px; line-height: 1.5; }
.app .rd-footer a { min-height: 44px; text-underline-offset: .2em; }
.app .side .nav, .app .rd-game, .app .rd-action {
  transition: background-color 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out;
}
.app .rd-action:hover { transform: none; }
.app :is(.rd-action,.rd-game,.side .nav):active { background-color: #303c24; }
@media(max-width:860px) {
  .app .hero { padding: 24px 22px; }
  .app .hero h1 { font-size: clamp(36px, 10.6vw, 48px); }
  .app .hero .lead { font-size: 14px; line-height: 1.65; }
  .app .hero > div > p:first-child { font-size: 10px !important; letter-spacing: .04em !important; }
  .app .hero .row > div > .btn { min-height: 44px; }
  .app .rd-section-title h2 { font-size: 22px; }
  .app .rd-game { padding: 13px 11px; gap: 8px; min-height: 100px; }
  .app .rd-game strong { font-size: 14px; }
  .app .rd-game small { font-size: 12px; }
  .app .rd-game > span:last-child { display: none; }
  .app .rd-action { padding: 16px; }
  .app .rd-action strong { font-size: 18px; }
  .app .bottom :is(button,a), .app .bottom .rd-lb-tab { font-size: 10px; line-height: 1.3; }
  .app .rd-footer { gap: 10px 18px; }
}
@media(prefers-reduced-motion:reduce) {
  .app :is(.side .nav,.rd-game,.rd-action) { transition: none; }
}

/* Final portal readability and alignment corrections. */
.app .hero > p:first-child {
  font-size: 11px !important;
  line-height: 1.5;
  letter-spacing: .07em !important;
  color: var(--polish-secondary) !important;
}
.app .rd-locked-tag { font-size: 11px; }
.app .rd-games .rd-section-title { justify-content: flex-start; gap: 20px; }
@media(min-width:861px) {
  .app .rd-topline { padding-right: 64px; }
}
@media(max-width:860px) {
  .app .hero > p:first-child { font-size: 10px !important; letter-spacing: .04em !important; }
  .app .rd-footer nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px 12px; }
  .app .rd-footer nav a { justify-content: center; text-align: center; min-height: 44px; }
  .app .fan .nm { font-size: 10px; }
}
@media(max-width:860px) {
  .app .rd-footer nav a:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}
