/* The polished look for the front page (index.html). Loaded after the page's own
   <style>, so it wins. Same idea as app/polish.css: the logo's red and white, soft
   rounded boxes with shadows instead of hard borders and 2011 gloss, calmer type,
   gentle motion, and dark mode (theme.js adds the switch). */

:root {
  --blue: #e11d2a; --blue-dark: #b3121d; --link: #c8141f; --gb-red-soft: rgba(225, 29, 42, .1);
  --panel: #ffffff; --panel2: #f6f7f9; --text: #15171c; --muted: #6b7280; --line: #e5e7eb; --line-strong: #d1d5db; --bg: #f2f3f5;
  --head1: var(--panel); --head2: var(--panel); --headText: var(--text); --tile1: var(--panel); --tile2: var(--panel2);
  --r-lg: 22px; --r-md: 14px; --r-sm: 10px;
  --sh-xs: 0 1px 2px rgba(16, 24, 40, .06);
  --sh-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --sh-md: 0 8px 20px -6px rgba(16, 24, 40, .14), 0 3px 6px -3px rgba(16, 24, 40, .08);
  --sh-lg: 0 22px 44px -14px rgba(16, 24, 40, .25), 0 6px 12px -6px rgba(16, 24, 40, .1);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #f0414c; --link: #ff7b82; --gb-red-soft: rgba(240, 65, 76, .16);
    --panel: #16191f; --panel2: #1d2129; --text: #eceef2; --muted: #9ba3af; --line: #2a2f39; --line-strong: #3a404c; --bg: #0c0e12;
    --head1: var(--panel); --head2: var(--panel); --headText: var(--text); --tile1: var(--panel); --tile2: var(--panel2);
    --sh-xs: 0 1px 2px rgba(0, 0, 0, .4); --sh-sm: 0 1px 3px rgba(0, 0, 0, .45);
    --sh-md: 0 10px 24px -8px rgba(0, 0, 0, .6); --sh-lg: 0 26px 50px -16px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) #download h2 { background: none; color: var(--text); }
  :root:not([data-theme="light"]) .dl > div { background: var(--panel2); }
  :root:not([data-theme="light"]) .dl .coming-soon { background: repeating-linear-gradient(135deg, #1d2129 0 8px, #191c23 8px 16px); }
  :root:not([data-theme="light"]) .auction-promo { background: linear-gradient(120deg, #2a1416, #1d1214); border-color: #5a1f24; }
  :root:not([data-theme="light"]) .auction-promo-copy h3, :root:not([data-theme="light"]) .auction-promo-bid strong,
  :root:not([data-theme="light"]) .auction-promo-main { color: #f6e9e9; }
  :root:not([data-theme="light"]) .auction-promo-head { background: rgba(255, 255, 255, .04); border-color: #5a1f24; }
}
:root[data-theme="light"] { color-scheme: light; }

body { font-size: 14px; line-height: 1.6; background: var(--bg);
  background-image: radial-gradient(1200px 500px at 50% -200px, var(--gb-red-soft), transparent 70%); background-repeat: no-repeat; }
a:hover { text-decoration: none; color: var(--blue); }
::selection { background: rgba(225, 29, 42, .22); }
.wrap { max-width: 1060px; padding: 0 16px; }

/* Top bars */
.topbar { position: relative; border: 0; background:
  radial-gradient(900px 200px at 15% -60px, rgba(255, 255, 255, .22), transparent 70%),
  linear-gradient(135deg, #ec2a35 0%, #c8141f 55%, #a10f19 100%); }
.topbar .wrap { min-height: 64px; }
.logo img { height: 50px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); transition: transform .25s var(--ease); }
.logo:hover img { transform: scale(1.03) rotate(-1deg); }
.acct a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
nav { background: rgba(143, 13, 22, .92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border: 0; box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .4); }
nav .wrap { gap: 2px; padding-top: 6px; padding-bottom: 6px; }
nav a, nav a:first-child { font-family: var(--gb-display); font-weight: 700; font-size: 13.5px; text-shadow: none; border: 0; box-shadow: none;
  border-radius: 999px; padding: 7px 14px; color: rgba(255, 255, 255, .88); transition: background-color .18s ease, color .18s ease; }
nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
nav a.dl-nav { border: 0; background: linear-gradient(180deg, #2bc866, #15a04a); color: #fff; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }

main { max-width: 1060px; margin: 24px auto 0; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--sh-sm); padding: 22px 22px 8px; }

/* The big banner */
.hero { border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-lg); }
.hero::after { background: linear-gradient(90deg, rgba(10, 8, 12, .86) 0%, rgba(10, 8, 12, .55) 42%, rgba(10, 8, 12, 0) 72%); }
.hero-text { padding: 34px 34px; }
.hero h1 { font-family: var(--gb-display); font-weight: 800; font-size: 46px; letter-spacing: -.035em; line-height: 1.04;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero h1 em { color: #ff5b63; }
.hero .tag { font-size: 15.5px; color: rgba(255, 255, 255, .9); text-shadow: none; max-width: 470px; }
.hero .caption { border-radius: 999px; padding: 4px 11px; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .dots button { transition: background-color .2s ease, transform .2s var(--ease); }
.hero .dots button.on { transform: scale(1.15); }
.ribbon { border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 4px 12px; text-shadow: none;
  background: rgba(225, 29, 42, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Buttons */
.btn { font-family: var(--gb-display); font-weight: 700; border-radius: var(--r-sm); text-shadow: none; filter: none; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s ease; }
.btn:hover { filter: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.play { border-color: transparent; background: linear-gradient(180deg, #2bc866, #15a04a); border-radius: var(--r-md);
  box-shadow: 0 10px 24px -8px rgba(21, 160, 74, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.blue { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .14); box-shadow: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn.blue:hover { background: rgba(255, 255, 255, .24); }
.btn.grey { border-color: transparent; background: #6b7280; box-shadow: none; }

/* Facts strip */
.facts { border: 1px solid var(--line); border-radius: var(--r-md); margin-top: 16px; background: var(--panel); box-shadow: var(--sh-xs); overflow: hidden; }
.facts div { padding: 14px 6px; }
.facts b { font-family: var(--gb-display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; color: var(--blue); }
.facts span { font-size: 12px; }

/* Sections */
section { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); box-shadow: var(--sh-xs); margin: 18px 0; overflow: hidden; }
section > *:not(h2) { margin-left: 20px; margin-right: 20px; }
h2 { font-family: var(--gb-display); font-weight: 700; font-size: 17px; letter-spacing: -.015em; color: var(--text); background: none;
  padding: 15px 20px 13px 32px; border-bottom: 1px solid var(--line); position: relative; margin-bottom: 16px; }
h2::before { content: ""; position: absolute; left: 20px; top: 16px; bottom: 15px; width: 4px; border-radius: 4px;
  background: linear-gradient(var(--blue), var(--blue-dark)); }
h2 a { font-family: var(--gb-font); font-weight: 600; font-size: 13px; }
h3 { font-family: var(--gb-display); font-weight: 800; letter-spacing: -.015em; color: var(--text); font-size: 18px; }
.lead { font-size: 14px; }
.new li { font-size: 13.5px; }
.new li::before { color: var(--blue); }
.show { border-bottom: 1px solid var(--line); padding: 10px 0 18px; gap: 26px; }
.show img, .two img, .gallery img, .card img { border: 0; border-radius: var(--r-md); box-shadow: var(--sh-md); }
.gallery img, .card img { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.gallery figure:hover img, .card:hover img { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.pill { border-radius: 999px; padding: 1px 7px; background: #4b5563; }
.pill.new { background: var(--blue); }
.cats div { border-radius: var(--r-md); background: var(--panel2); border-color: var(--line); }
.cats b { color: var(--text); font-family: var(--gb-display); font-weight: 700; }
pre { border: 0; border-radius: var(--r-md); box-shadow: var(--sh-md); padding: 14px 16px; }
.ticks li::before { color: var(--blue); }
.card b { color: var(--text); font-family: var(--gb-display); font-weight: 700; }
.card:hover b { color: var(--blue); }

/* Download */
#download { border-color: var(--line); box-shadow: var(--sh-sm); }
#download h2 { background: none; color: var(--text); border-color: var(--line); }
#download .platform-count { border: 0; border-radius: 999px; background: var(--blue); padding: 2px 9px; text-shadow: none; }
.dl > div { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); box-shadow: var(--sh-xs); padding: 16px 9px 15px; }
.dl > div:not(.coming-soon):hover { border-color: var(--line-strong); box-shadow: var(--sh-md); transform: translateY(-3px); }
.dl > div.mine { border: 2px solid #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .12); }
.dl > div.mine::before { border: 0; border-radius: 999px; background: #16a34a; padding: 2px 9px; text-shadow: none; }
.dl .platform-icon { border: 0; border-radius: 12px; width: 44px; height: 40px; text-shadow: none;
  background: linear-gradient(180deg, #f0414c, #c8141f); box-shadow: 0 6px 14px -6px rgba(200, 20, 31, .6); }
.dl .os { color: var(--text); font-family: var(--gb-display); font-weight: 700; }
.dl .coming-soon { border-style: dashed; border-color: var(--line-strong); background: var(--panel2); }
.dl .coming-soon .platform-icon { background: #9ca3af; box-shadow: none; }
.dl .soon-label { border: 0; border-radius: var(--r-sm); background: var(--line); color: var(--muted); text-shadow: none; }
.steps div::before { background: linear-gradient(180deg, #f0414c, #c8141f); }
summary { color: var(--text); font-family: var(--gb-display); font-weight: 700; }
footer { max-width: 1060px; color: var(--muted); font-size: 12.5px; padding: 22px 16px 40px; }

/* Auction promo: rounder, softer */
.auction-promo { border-width: 1px; border-radius: var(--r-md); box-shadow: var(--sh-sm); }
.auction-promo-head h2 { padding: 10px 0; }
.auction-promo-head h2::before { display: none; }
.auction-promo-art, .auction-promo-more > a { border-radius: var(--r-sm); }
.auction-promo-cta, .auction-promo-watch, .auction-promo-control { border-radius: 999px; text-shadow: none; }

/* The light / dark switch */
.theme-toggle { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; cursor: pointer;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12); color: #fff;
  transition: background-color .2s ease, transform .3s var(--ease); }
.theme-toggle:hover { background: rgba(255, 255, 255, .24); transform: rotate(-15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
html.is-dark .theme-toggle .sun { display: none; }
html.is-dark .theme-toggle .moon { display: block; }

@media (max-width: 820px) {
  .hero-text { padding: 20px 18px 44px; }
  .hero h1 { font-size: 32px; }
  .hero::after { background: linear-gradient(0deg, rgba(10, 8, 12, .92) 0%, rgba(10, 8, 12, .6) 55%, rgba(10, 8, 12, .1) 100%); }
}
@media (max-width: 720px) {
  .hero { min-height: 540px; }
  .hero h1 { font-size: 30px; }
  main { margin-top: 0; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; padding: 14px 14px 6px; }
  .hero { border-radius: 18px; }
  section > *:not(h2) { margin-left: 14px; margin-right: 14px; }
  h2 { padding: 13px 14px 12px 26px; }
  h2::before { left: 14px; top: 14px; bottom: 13px; }
  .theme-toggle { margin-left: auto; width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Classic auction banner: make active bidding the first major homepage promotion. */
.auction-promo > .auction-promo-head,
.auction-promo > .auction-promo-feature,
.auction-promo > .auction-promo-more { margin-left: 0; margin-right: 0; }
.auction-promo {
  margin: 0 0 22px;
  border: 3px solid #a30f1c;
  border-radius: 16px;
  background: linear-gradient(112deg, #fff 0%, #fff4f2 52%, #ffd9d7 100%);
  box-shadow: 0 12px 28px -10px rgba(125, 10, 20, .38), inset 0 0 0 1px rgba(255, 255, 255, .75);
}
.auction-promo-head {
  min-height: 52px;
  gap: 12px;
  padding: 8px 14px;
  background: linear-gradient(100deg, #8f101a 0%, #c71925 58%, #e52d36 100%);
  border: 0;
}
.auction-promo-ribbon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid #ffdf70;
  border-radius: 4px;
  background: linear-gradient(#ffe98b, #f7c844);
  color: #4b1113;
  font: 900 13px/1 var(--gb-display);
  letter-spacing: 1.2px;
  box-shadow: 0 2px 0 rgba(50, 0, 0, .24);
}
.auction-promo-head h2 {
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: 900 19px/1.1 var(--gb-display);
  letter-spacing: .06em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.auction-promo-head h2::before { display: none; }
.auction-promo-head a { color: #fff; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.auction-promo-position { color: #ffe7e7; font-size: 10px; }
.auction-promo-control { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.14); color: #fff; }
.auction-promo-control:hover:not(:disabled) { background: rgba(255,255,255,.28); }
.auction-promo-main {
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) minmax(180px, 220px);
  gap: 22px;
  padding: 20px;
  color: #321719;
}
.auction-promo-main:hover { background: rgba(255,255,255,.38); color: #321719; }
.auction-promo-art {
  border: 2px solid #d4a4a1;
  border-radius: 10px;
  background: radial-gradient(circle, #fff 0%, #f4d9d7 76%);
  box-shadow: 0 5px 14px rgba(80, 15, 20, .15), inset 0 1px 5px rgba(0,0,0,.08);
}
.auction-promo-kicker { color: #a20f1c; font-size: 12px; letter-spacing: 1.5px; }
.auction-promo-copy h3 { margin: 4px 0 8px; color: #301416; font-size: clamp(25px, 3vw, 34px); }
.auction-promo-copy p { color: #65494a; font-size: 13px; }
.auction-promo-bid { margin-top: 8px; }
.auction-promo-bid span, .auction-promo-clock > span { color: #754b4d; font-size: 10px; letter-spacing: 1px; }
.auction-promo-bid strong { color: #2a1113; font-size: 25px; }
.auction-promo-clock {
  align-self: stretch;
  justify-content: center;
  padding: 16px;
  border: 1px solid #dca6a2;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,.88), rgba(255,229,227,.82));
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(100, 15, 20, .08);
}
.auction-promo-clock strong { color: #a30f1c; font-size: clamp(24px, 2.8vw, 32px); }
.auction-promo-cta {
  align-self: stretch;
  margin-top: 8px;
  padding: 12px 16px;
  border: 1px solid #740d17;
  border-radius: 8px;
  background: linear-gradient(#ed343e, #a90e1a);
  box-shadow: 0 5px 12px rgba(130, 10, 20, .24), inset 0 1px 0 rgba(255,255,255,.3);
  text-align: center;
  font-size: 14px;
  letter-spacing: .8px;
}
.auction-promo-more { padding-top: 0; }
.auction-promo-more > a { border-radius: 8px; border-color: #d7aaa7; }
.auction-promo-actions { padding-bottom: 14px; }
.auction-promo-watch { padding: 7px 12px; border-radius: 7px; }
.auction-promo.urgent, .auction-promo.last-five-minutes, .auction-promo.last-minute {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12), 0 12px 28px -10px rgba(125, 10, 20, .4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .auction-promo {
    border-color: #a91d29;
    background: linear-gradient(112deg, #211519 0%, #2a171b 58%, #421b20 100%);
    box-shadow: 0 12px 28px -10px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.04);
  }
  :root:not([data-theme="light"]) .auction-promo-main,
  :root:not([data-theme="light"]) .auction-promo-main:hover { color: #f8e9e9; }
  :root:not([data-theme="light"]) .auction-promo-copy h3,
  :root:not([data-theme="light"]) .auction-promo-bid strong { color: #fff0f0; }
  :root:not([data-theme="light"]) .auction-promo-copy p,
  :root:not([data-theme="light"]) .auction-promo-bid span,
  :root:not([data-theme="light"]) .auction-promo-clock > span { color: #d6b9bb; }
  :root:not([data-theme="light"]) .auction-promo-art { background: radial-gradient(circle, #3c2a2d, #211519 78%); border-color: #6d3a40; }
  :root:not([data-theme="light"]) .auction-promo-clock { background: linear-gradient(160deg, #321d21, #26171a); border-color: #6d3a40; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
  :root:not([data-theme="light"]) .auction-promo-clock strong { color: #ff727b; }
  :root:not([data-theme="light"]) .auction-promo-more > a { background: rgba(255,255,255,.06); border-color: #58343a; color: #f5e7e8; }
}
@media (max-width: 680px) {
  .auction-promo { margin-bottom: 16px; border-width: 2px; border-radius: 12px; }
  .auction-promo-head { min-height: 44px; gap: 7px; padding: 6px 9px; }
  .auction-promo-ribbon { min-height: 26px; padding: 4px 8px; font-size: 11px; }
  .auction-promo-head h2 { font-size: 14px; }
  .auction-promo-main { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 11px; }
  .auction-promo-art { grid-row: span 2; }
  .auction-promo-copy h3 { font-size: 20px; }
  .auction-promo-copy p { font-size: 11px; }
  .auction-promo-bid strong { font-size: 20px; }
  .auction-promo-clock {
    grid-column: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 8px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .auction-promo-clock > span { width: 100%; }
  .auction-promo-clock strong { font-size: clamp(17px, 4vw, 22px); }
  .auction-promo-cta { align-self: auto; margin: 0; padding: 7px 9px; font-size: 10px; }
  .auction-promo-actions { padding: 0 11px 11px; }
  .auction-promo-more { grid-template-columns: 1fr; padding: 0 11px 11px; }
}
