/* Green pitch theme. Platform names and destinations live in js/sites.js. */
:root {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
  --page: #0b2118;
  --text: #f0f3e6;
  --muted: #9aae9d;
  --accent: #d3e88d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; min-height: 100svh; color: var(--text); background: radial-gradient(ellipse at 80% 0, #1e3e2b 0, transparent 58%), var(--page); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, p { margin: 0; }
.arena-shell { width: min(1080px, 100%); margin: 0 auto; padding: 24px 24px 20px; }
.arena-masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.arena-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.arena-badge { width: 36px; height: 36px; flex: none; }
.arena-brand h1 { font-size: 1.5rem; line-height: 1.4; font-weight: 700; letter-spacing: .6px; }
.masthead-sports {
  display: flex; align-items: center; gap: 11px; flex: none;
  padding: 8px 13px; border: 1px solid #b9ce8c30; border-radius: 100px;
  color: #d3dfba; background: #c7e18b08; font-size: .75rem; line-height: 1.3; letter-spacing: 1px;
}
.masthead-sports i { width: 3px; height: 3px; border-radius: 50%; background: #c7df80; }
.arena-banner { margin: 0; overflow: hidden; border: 1px solid #b9ce8c2b; border-radius: 16px; background: #0b2118; box-shadow: 0 10px 28px #0002; }
.banner-art { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; }
.platforms { margin-top: 24px; }
.platforms-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.platforms-heading h2 { display: flex; align-items: center; gap: 9px; font-size: 1.0625rem; line-height: 1.5; font-weight: 600; letter-spacing: .8px; }
.platforms-heading h2::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--accent); }
.platforms-heading p { color: var(--muted); font-size: .75rem; line-height: 1.5; }
.platforms-heading p span { margin-left: 5px; color: var(--accent); }
#sites-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; outline: none; }
.site-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; align-items: stretch;
  min-width: 0; min-height: 128px; gap: 14px; padding: 17px 19px 14px;
  border: 1px solid #e2ead0; border-radius: 12px;
  background: linear-gradient(145deg, #f5f7ed, #e6edda);
  box-shadow: 0 3px 8px #04170f24;
  color: #193425; cursor: pointer;
  transition: background-color .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.site-logo { display: flex; align-items: center; justify-content: center; align-self: center; flex: none; width: 112px; max-width: 100%; height: 51px; }
.site-logo-image { display: block; width: 100%; height: 100%; object-fit: contain; border: 0; background: transparent; }
.site-logo-fallback { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #3756424a; border-radius: 12px; color: #466540; }
.site-logo-fallback::before { content: "↗"; font-size: 1.5rem; }
.site-card-caption { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-width: 0; }
.site-name { min-width: 0; font-size: 1.0625rem; line-height: 1.5; font-weight: 700; letter-spacing: .2px; overflow-wrap: anywhere; }
.site-arrow { display: grid; place-items: center; flex: none; width: 27px; height: 27px; border: 1px solid #78955940; border-radius: 50%; background: #d6e3bf66; color: #48613a; }
.site-arrow svg { width: 14px; height: 14px; }
.site-card:focus-visible { outline: 3px solid #d9f48c; outline-offset: 4px; }
.site-card:active { transform: scale(.985); background: #dce7cb; }
.arena-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid #c2d6a51f;
  color: #93a992; font-size: .75rem; line-height: 1.5; letter-spacing: .3px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; color: #c4d2b5; font-weight: 600; }
.footer-mark { position: relative; width: 17px; height: 12px; border: 1px solid #b6cc8677; border-radius: 2px; }
.footer-mark::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid #b6cc8677; }
.footer-mark::after { content: ""; position: absolute; width: 5px; height: 5px; top: 50%; left: 50%; border: 1px solid #b6cc8677; border-radius: 50%; transform: translate(-50%, -50%); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 11px 15px; border-radius: 6px; background: #e4efc3; color: #153123; transform: translateY(-160%); }
.skip-link:focus { transform: none; outline: 2px solid var(--accent); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .site-card:hover { border-color: #daf08e; box-shadow: 0 6px 20px #030f0955; transform: translateY(-3px); }
  .site-card:hover .site-arrow { background: #c9dc9b; }
}
@media (min-width: 761px) and (max-height: 800px) {
  .arena-shell { max-width: 960px; padding: 18px 22px; }
  .arena-masthead { margin-bottom: 16px; }
  .arena-brand h1 { font-size: 1.375rem; }
  .arena-badge { width: 32px; height: 32px; }
  .platforms { margin-top: 18px; }
  .platforms-heading { margin-bottom: 12px; }
  .site-card { min-height: 104px; padding: 12px 16px; gap: 8px; }
  .site-logo { height: 42px; }
  .site-name { font-size: 1rem; }
  .arena-footer { margin-top: 20px; padding-top: 12px; }
}
@media (max-width: 760px) {
  .arena-shell {
    display: flex; flex-direction: column;
    width: 100%; max-width: 560px;
    min-height: 100vh; min-height: 100svh; min-height: 100dvh;
    padding: max(20px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  }
  .arena-masthead { flex: none; margin-bottom: 17px; gap: 10px; }
  .arena-brand { gap: 9px; }
  .arena-badge { width: 33px; height: 33px; }
  .arena-brand h1 { font-size: 1.25rem; letter-spacing: .3px; }
  .masthead-sports { padding: 6px 10px; gap: 8px; font-size: .6875rem; letter-spacing: 0; }
  .arena-banner { flex: none; border-radius: 12px; }
  .platforms { display: flex; flex: 1; flex-direction: column; margin-top: 23px; }
  .platforms-heading { flex: none; margin-bottom: 13px; }
  .platforms-heading h2 { font-size: 1rem; letter-spacing: .5px; }
  .platforms-heading p { font-size: .6875rem; }
  #sites-grid { flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(104px, 1fr); gap: 11px; }
  .site-card { justify-content: center; min-height: 104px; padding: 14px 16px 12px; gap: 13px; border-radius: 12px; }
  .site-logo { width: 105px; height: 46px; }
  .site-card-caption { gap: 6px; }
  .site-name { font-size: 1rem; letter-spacing: .2px; }
  .site-arrow { width: 25px; height: 25px; }
  .site-arrow svg { width: 13px; height: 13px; }
  .arena-footer { flex: none; margin-top: 21px; padding-top: 14px; font-size: .6875rem; }
}
@media (max-width: 760px) and (max-height: 740px) {
  .arena-shell { padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .arena-masthead { margin-bottom: 13px; }
  .platforms { margin-top: 18px; }
  .platforms-heading { margin-bottom: 11px; }
  #sites-grid { grid-auto-rows: minmax(92px, 1fr); gap: 9px; }
  .site-card { min-height: 92px; padding-block: 10px; gap: 9px; }
  .site-logo { height: 39px; }
  .arena-footer { margin-top: 17px; padding-top: 12px; }
}
@media (max-width: 360px) {
  .arena-shell { padding-inline: 12px; }
  .arena-brand { gap: 7px; }
  .arena-brand h1 { font-size: 1.125rem; }
  .arena-badge { width: 29px; height: 29px; }
  .masthead-sports { padding: 5px 8px; gap: 6px; font-size: .625rem; }
  .site-card { padding-inline: 12px; }
  .site-name { font-size: .9375rem; }
  .site-arrow { width: 23px; height: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .site-card:hover, .site-card:active { transform: none; }
}
