/* Superstar Racing community site: the look of superstarracing.net around 2009-2010.
   950px centered page on black, sky-and-metal masthead, dark tab bar with a raised orange active tab, glossy panels and
   buttons, Arial text, orange links. Shared by every page and by the forum (forum.css adds the forum parts). */
:root {
  --bg: #000;
  --text: #fff;
  --muted: #b5b5b5;
  --faint: #8a8a8a;
  --orange: #ff6600;
  --orange-hi: #ffa21f;
  --panel: #1b1b1b;
  --line: #333;
  --line-hi: #4a4a4a;
  --row-hover: #222;
  --font: Arial, Helvetica, sans-serif;
  --font-title: "Trebuchet MS", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-impact: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body {
  margin: 0;
  background: #000 radial-gradient(ellipse 900px 520px at 50% 0, #17232c 0%, #06090c 55%, #000 100%) no-repeat;
  color: var(--text);
  font: 14px/1.55 var(--font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-hi); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 2px; }
.skip { position: absolute; left: 10px; top: -50px; z-index: 10; background: var(--orange); color: #000; padding: 8px 14px; font-weight: bold; }
.skip:focus { top: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.page { width: 950px; max-width: 100%; margin: 0 auto 36px; background: #000; box-shadow: 0 0 0 1px #151515, 0 10px 60px rgba(0, 0, 0, 0.9); }

/* ---------------------------------------------------------------- masthead (logo, page title, tabs) */
.masthead {
  position: relative; height: 150px; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 11, 18, 0.96) 0%, rgba(3, 11, 18, 0.82) 34%, rgba(3, 11, 18, 0.25) 66%, rgba(3, 11, 18, 0.05) 100%),
    url("../img/masthead-2009.webp") right -10px / auto 120% no-repeat,
    linear-gradient(180deg, #0a1a27 0%, #1f5577 58%, #0a1622 100%);
}
.masthead::before {          /* the bright sky streak across the banner */
  content: ""; position: absolute; inset: -40px 0 30px 30%; pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 45% 45%, rgba(190, 230, 255, 0.55), rgba(120, 190, 235, 0.18) 45%, transparent 70%);
  transform: rotate(-4deg);
}
.masthead::after {           /* metal edge above the tabs */
  content: ""; position: absolute; left: 0; right: 0; bottom: 38px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35) 30%, rgba(255, 255, 255, 0.35) 70%, transparent);
}
.masthead-logo { position: absolute; left: 16px; top: 8px; z-index: 2; }
.masthead-logo img { width: 360px; height: auto; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.7)); }
.masthead-title {
  position: absolute; right: 36px; top: 34px; z-index: 2; margin: 0;
  font: 36px/1 var(--font-title); color: #eef8ff; letter-spacing: 0.01em;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.85), 0 0 18px rgba(110, 190, 245, 0.45);
}

.tabs {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 38px;
  display: flex; align-items: flex-end; padding-left: 10px;
  background: linear-gradient(180deg, #4b4b4b 0%, #2b2b2b 48%, #151515 52%, #202020 100%);
  border-top: 1px solid #5e5e5e;
}
.tabs a {
  position: relative; display: block; padding: 0 28px; height: 38px; line-height: 38px;
  color: #c6c6c6; font-size: 13px; text-decoration: none;
}
.tabs a + a::before { content: ""; position: absolute; left: 0; top: 12px; width: 1px; height: 14px; background: #777; }
.tabs a:hover { color: #fff; text-decoration: none; }
.tabs a[aria-current="page"] {
  height: 34px; line-height: 33px; margin: 0 2px; color: var(--orange); font-weight: bold;
  background: linear-gradient(180deg, #2c2c2c, #0e0e0e);
  border: 1px solid #5a5a5a; border-bottom: 0; border-radius: 6px 6px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.tabs a[aria-current="page"]::before, .tabs a[aria-current="page"] + a::before { display: none; }
.tabs .tab-download { margin-left: auto; margin-right: 10px; color: #fff; font-weight: bold; }
.tabs .tab-download span { color: var(--orange-hi); }

/* ---------------------------------------------------------------- content */
.content { padding: 26px 36px 40px; }
.content h1 { margin: 0 0 24px; font: bold 26px/1.2 var(--font); color: #fff; }
.content h2 { margin: 30px 0 12px; font: bold 17px/1.3 var(--font); color: var(--orange); }
.content h3 { margin: 0 0 6px; font: bold 15px/1.35 var(--font); color: #fff; }
.content p { margin: 0 0 12px; }
.fine { color: var(--faint); font-size: 11.5px; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- shared pieces */
.panel {
  position: relative; border-radius: 6px; padding: 18px 20px;
  background: linear-gradient(180deg, #2a2a2a 0, #181818 70px, #121212 100%);
  border: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px #2e2e2e, 0 3px 10px rgba(0, 0, 0, 0.7);
}
.content .panel-title, .panel-title {
  margin: -18px -20px 16px; padding: 9px 16px; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #3a3a3a 0%, #262626 50%, #1a1a1a 51%, #202020 100%);
  border-bottom: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font: bold 15px/1.3 var(--font); color: #fff; text-transform: uppercase; letter-spacing: 0.04em;
}
.panel-title .accent, .accent { color: var(--orange); }

.btn {
  display: inline-block; padding: 8px 18px; border-radius: 6px; cursor: pointer;
  border: 1px solid #b83a00; color: #fff; font: bold 14px/1.2 var(--font); text-decoration: none; text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
  background: linear-gradient(180deg, #ffbb5c 0%, #ff8d1f 48%, #ff6a00 52%, #ff4d00 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 5px rgba(0, 0, 0, 0.6);
}
.btn:hover { color: #fff; text-decoration: none; filter: brightness(1.08); }
.btn:active { filter: brightness(0.95); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35); }
.btn-dark {
  display: inline-block; padding: 7px 16px; border-radius: 6px; cursor: pointer;
  border: 1px solid #000; color: #e8e8e8; font: bold 13px/1.2 var(--font); text-decoration: none;
  background: linear-gradient(180deg, #4a4a4a 0%, #2c2c2c 50%, #1a1a1a 51%, #262626 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.6);
}
.btn-dark:hover { color: #fff; text-decoration: none; filter: brightness(1.15); }
.btn[aria-disabled="true"] { filter: grayscale(1) brightness(0.7); cursor: default; }

.stars { list-style: none; margin: 0 0 14px; padding: 0; }
.stars li { position: relative; padding-left: 22px; margin: 5px 0; }
.stars li::before { content: "\2605"; position: absolute; left: 0; top: -1px; color: #ffbf1f; font-size: 15px; text-shadow: 0 0 6px rgba(255, 170, 0, 0.5); }

.notice, .error { margin: 0 0 16px; padding: 10px 14px; border-radius: 5px; border: 1px solid; }
.notice { background: #141d10; border-color: #3d5e1c; color: #d9f3b5; }
.error { background: #241010; border-color: #6e2020; color: #ffc9c9; }

.frame { display: block; padding: 4px; border-radius: 6px; background: linear-gradient(180deg, #5a5a5a, #1d1d1d); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.8); }
.frame img { border-radius: 3px; }

/* ---------------------------------------------------------------- footer bar */
.footbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px;
  padding: 10px 20px 12px; color: #9a9a9a; font-size: 12px; letter-spacing: 0.03em;
  background: linear-gradient(180deg, #2e2e2e 0%, #1c1c1c 50%, #121212 51%, #191919 100%);
  border-top: 1px solid #444;
}
.footbar p { margin: 0; }
.footbar nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footbar nav a { color: #c8c8c8; }
.footbar nav a:hover { color: #fff; }
.footbar .fine { flex-basis: 100%; color: #6f6f6f; }

/* ---------------------------------------------------------------- home: banner */
.masthead-home { height: 196px; }
.masthead-home .masthead-logo { top: 12px; }
.tagline { position: absolute; left: 30px; top: 116px; z-index: 2; margin: 0; color: #e4e4e4; font: bold 12px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; text-shadow: 0 1px 2px #000; }
.counter {
  position: absolute; left: 66px; top: 136px; z-index: 2; margin: 0; padding: 3px 18px;
  color: var(--orange); font: bold 11.5px/1.4 var(--font); letter-spacing: 0.06em; text-transform: uppercase;
  background: linear-gradient(180deg, #050505, #1a1a1a); border: 1px solid #000; border-radius: 2px;
  box-shadow: 0 0 0 2px #cfcfcf, 0 0 0 3px #555, inset 0 1px 3px rgba(0, 0, 0, 0.9);
}
.burst {
  position: absolute; right: 34px; top: 22px; z-index: 2; width: 132px; height: 132px; transform: rotate(-12deg);
  display: grid; place-items: center; text-align: center;
  clip-path: polygon(50% 0%, 61% 13%, 77% 6%, 80% 23%, 97% 25%, 89% 40%, 100% 54%, 86% 63%, 91% 80%, 74% 81%, 66% 97%, 52% 88%, 37% 99%, 30% 83%, 12% 85%, 15% 68%, 0% 58%, 11% 45%, 3% 28%, 20% 24%, 22% 7%, 38% 13%);
  background: radial-gradient(circle at 40% 35%, #fff3b0 0%, #ffc21a 35%, #ff7a00 75%, #e04800 100%);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}
.burst span { display: block; font: 800 25px/0.92 var(--font-impact); color: #fff; text-transform: uppercase; text-shadow: 0 2px 0 #9a2b00, 0 0 4px #b43a00; }
.burst small { display: block; font: bold 11px/1.1 var(--font); color: #5a1a00; letter-spacing: 0.04em; margin-top: 3px; }

/* ---------------------------------------------------------------- home: screen + play box */
.home-top { display: grid; grid-template-columns: 468px 1fr; gap: 10px; margin-bottom: 10px; }
.screen { padding: 14px 14px 10px; }
.screen-view { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid #000; box-shadow: 0 0 0 1px #3a3a3a; overflow: hidden; }
.screen-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.screen-view img.is-on { opacity: 1; }
.screen-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 5px 8px; border-radius: 3px; background: linear-gradient(180deg, #2f2f2f, #121212); border: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.screen-bar button { all: unset; cursor: pointer; width: 24px; height: 20px; display: grid; place-items: center; color: #e5e5e5; border-radius: 3px; }
.screen-bar button:hover { background: #3a3a3a; }
.screen-bar button:focus-visible { outline: 2px solid var(--orange-hi); }
.screen-bar svg { width: 12px; height: 12px; fill: currentColor; }
.screen-caption { flex: 0 0 auto; color: #cfcfcf; font-size: 11px; min-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-track { flex: 1; height: 4px; border-radius: 2px; background: #3a3a3a; overflow: hidden; }
.screen-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff8d1f, #ffbb5c); transition: width 0.4s; }

.playbox { padding: 18px 22px; }
.playbox h2 {
  margin: 0 0 12px; font: 700 30px/1 var(--font-impact); text-transform: uppercase; letter-spacing: 0.02em;
  color: #ffb13b; background: linear-gradient(180deg, #ffd27a 0%, #ff9b1f 55%, #ff6a00 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #000);
}
.btn-play {
  display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; padding: 12px 18px 11px;
  font: 700 38px/1 var(--font-impact); letter-spacing: 0.03em; text-transform: uppercase; border-radius: 7px;
  text-shadow: 0 2px 2px rgba(110, 30, 0, 0.7);
}
.btn-play svg { width: 26px; height: 30px; fill: #fff; filter: drop-shadow(0 2px 1px rgba(110, 30, 0, 0.7)); }
.playbox .fine { margin: 6px 0 14px; }
.release { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #2c2c2c; color: var(--muted); font-size: 12px; }
.release strong { color: #fff; }

/* ---------------------------------------------------------------- home: tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 30px; }
.tile { position: relative; display: block; height: 150px; padding: 0; overflow: hidden; color: #fff; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.tile:hover { text-decoration: none; color: #fff; }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.75)); }
.tile-label {
  position: absolute; left: 50%; bottom: 12px; z-index: 1; transform: translateX(-50%); white-space: nowrap;
  padding: 6px 16px; border-radius: 4px; font: 16px/1.2 var(--font-title); letter-spacing: 0.02em;
  background: linear-gradient(180deg, rgba(60, 60, 60, 0.95), rgba(14, 14, 14, 0.95)); border: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.8);
}
.statcard { padding: 14px 18px; }
.statcard h2 { margin: 0 0 10px; font: 15px/1.2 var(--font-title); color: #fff; }
.statcard h2 span { color: #ffbf1f; letter-spacing: 0.05em; }
.statcard dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 12px; }
.statcard dt { color: #cfcfcf; text-align: right; text-transform: uppercase; letter-spacing: 0.04em; }
.statcard dd { margin: 0; color: var(--orange); font-weight: bold; }

/* ---------------------------------------------------------------- home: game blocks and news */
.game-block { margin: 0 0 12px; }
.game-grid { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.game-grid p { color: #e3e3e3; }
.banner { margin: -18px -20px 16px; border-radius: 6px 6px 0 0; overflow: hidden; border-bottom: 1px solid #000; }
.gallery { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery button { all: unset; display: block; cursor: zoom-in; }
.gallery button:focus-visible .frame { outline: 2px solid var(--orange-hi); outline-offset: 2px; }
.gallery img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.gallery span { display: block; margin-top: 6px; text-align: center; color: #cfcfcf; font-size: 12px; }

.newsbox { margin: 0 0 30px; }
.news { list-style: none; margin: 0; padding: 0; }
.news li { padding: 10px 0 12px; border-top: 1px dotted #3a3a3a; }
.news li:first-child { border-top: 0; padding-top: 2px; }
.news-date { display: block; color: var(--orange); font-weight: bold; font-size: 14px; margin-bottom: 3px; }
.news-title { color: #fff; font-weight: bold; }
.news-text { color: #e6e6e6; margin: 2px 0 0; }
.news-tag { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 3px; font-size: 11px; font-weight: bold; vertical-align: 1px; color: #000; background: #ffbf1f; }
.news-tag.exp { background: #ff5a1f; color: #fff; }
.news-empty { color: var(--muted); }
.more-link { display: inline-block; margin-top: 8px; font-weight: bold; }

/* news page: the classic list (orange date, then white lines) */
.newslist .day { margin: 0 0 18px; }
.newslist .day h2 { margin: 0 0 8px; font-size: 15px; }
.newslist .day p { margin: 0 0 9px; color: #fff; }

/* ---------------------------------------------------------------- FAQ */
.faq-index { margin-bottom: 34px; }
.faq-index h2 { margin-top: 24px; }
.faq-index ul { margin: 0 0 6px; padding-left: 34px; }
.faq-index li { margin: 3px 0; }
.faq-answers > section { margin: 0 0 14px; padding: 16px 20px; }
.faq-answers h2 { margin-top: 36px; }
.faq-answers h3 { scroll-margin-top: 14px; }
.faq-answers p:last-child { margin-bottom: 0; }
.back-top { font-size: 12px; }

/* ---------------------------------------------------------------- lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.lightbox img { max-height: 86vh; width: auto; border: 4px solid #3a3a3a; border-radius: 6px; box-shadow: 0 10px 50px #000; }
.lightbox-close { position: absolute; top: -40px; right: 0; }

/* ---------------------------------------------------------------- smaller screens (the 2009 layout, stacked) */
@media (max-width: 960px) {
  .page { width: 100%; margin-bottom: 0; }
  .home-top { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr; }
  .burst { width: 104px; height: 104px; right: 14px; }
  .burst span { font-size: 20px; }
}
@media (max-width: 700px) {
  .content { padding: 20px 14px 30px; }
  .masthead { height: 132px; background-position: 0 0, right -10px top 0, 0 0; }
  .masthead-logo img { width: 250px; }
  .masthead-title { left: 16px; right: auto; top: 66px; font-size: 22px; }
  .masthead-home { height: 186px; }
  .tagline { left: 16px; top: 88px; font-size: 10.5px; letter-spacing: 0.05em; }
  .counter { left: 16px; top: 108px; font-size: 10px; padding: 2px 10px; }
  .burst { display: none; }
  .tabs { padding-left: 0; overflow-x: auto; scrollbar-width: none; }
  .tabs a { padding: 0 15px; flex: 0 0 auto; }
  .tabs .tab-download { display: none; }
  .tiles, .gallery { grid-template-columns: 1fr; }
  .tile { height: 130px; }
  .btn-play { font-size: 30px; }
  .footbar { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
