/* Live arena: layout and presentation, scoped away from the admin console. */
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1000; background: #6ee7b7; color: #061b15; padding: 12px 18px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid #6ee7b7; outline-offset: 4px; }
.public-body { background: #0b0f19; background-image: radial-gradient(ellipse at 80% 10%, rgba(16,185,129,.09), transparent 42%), radial-gradient(ellipse at 5% 55%,rgba(56,189,248,.025),transparent 55%); }
.public-body .ambient-glow { display: none; }
.public-body .site-header { padding: 18px 36px; background: rgba(11,15,25,.88); border-color: #1e293b; }
.public-body .header-container { max-width: 1440px; gap: 24px; }
.public-body .brand-link { gap: 12px; }
.public-body .brand-logo { width: 68px; height: 44px; filter: none; }
.public-body .brand-name { font: 800 17px var(--font-sans); letter-spacing: .09em; color: #f1f5f9; background: none; -webkit-text-fill-color: currentColor; }
.public-body .brand-tagline { margin-top: 5px; font-size: 8px; letter-spacing: .18em; color: #8492a6; }
.public-body .live-clock-card { display: flex; flex-direction: column; align-items: center; gap: 7px; border: 0; box-shadow: none; background: none; padding: 0; }
.public-body .clock-time { font-size: 13px; letter-spacing: .02em; color: #dce5f1; }
.public-body .clock-date { font: 11px var(--font-sans); color: #8492a6; }
.public-body .btn-admin { min-height: 42px; padding: 10px 16px; background: #12251f; border: 1px solid #245644; color: #6ee7b7; box-shadow: none; border-radius: 8px; font-size: 12px; }
.public-body .btn-admin:hover { background: #193c2e; transform: translateY(-1px); }
.public-body .main-content { max-width: 1440px; padding: 42px 36px 28px; }
.public-body .dashboard-hero { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(340px,.85fr); align-items: center; gap: 48px; text-align: left; margin-bottom: 40px; }
.public-body .hero-badge { gap: 9px; padding: 0; margin-bottom: 16px; border: 0; background: none; box-shadow: none; font-size: 11px; letter-spacing: .16em; color: #6ee7b7; }
.public-body .hero-badge .live-dot { background: #10b981; width: 6px; height: 6px; box-shadow: 0 0 12px #10b98155; }
.public-body .hero-title { font: 650 clamp(36px,4vw,54px)/1.1 var(--font-sans); color: #f1f5f9; letter-spacing: -.055em; text-shadow: none; margin-bottom: 16px; }
.hero-period { color: #10b981; }
.public-body .hero-subtitle { max-width: 480px; margin: 0; font-size: 15px; line-height: 1.75; color: #a8b8cc; }
.arena-summary { position: relative; padding: 26px; border: 1px solid #2b3e50; border-radius: 18px; background: linear-gradient(140deg,rgba(24,45,52,.84),rgba(17,24,39,.88)); box-shadow: 0 20px 50px -35px #000,inset 0 1px #ffffff06; }
.arena-summary-heading { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #dde7f3; }
.summary-mark { display: grid; place-items: center; width: 30px; height: 30px; background: #102f27; color: #6ee7b7; border: 1px solid #214a3d; border-radius: 8px; font-size: 19px; }
.arena-summary-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 28px 0; gap: 16px; }
.arena-summary-values > div { display: flex; flex-direction: column; gap: 12px; }
.arena-summary-values > div + div { padding-left: 20px; border-left: 1px solid #253245; }
.summary-value { color: #eef5fb; font-size: 36px; font-weight: 500; letter-spacing: -.05em; font-variant-numeric: tabular-nums; line-height: 1; }
.arena-summary-values > div:first-child .summary-value { color: #6ee7b7; }
.summary-label { display: flex; align-items: center; gap: 7px; font-size: 12px; white-space: nowrap; color: #b4c3d5; }
.legend-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; vertical-align: middle; }
.legend-dot.available { background: #10b981; }
.legend-dot.occupied { background: #f87171; }
.legend-dot.paused { background: #fbbf24; }
.arena-sync-status { display: flex; align-items: center; gap: 8px; padding-top: 18px; border-top: 1px solid #2b3b4b; font-size: 12px; color: #b2c2d4; }
.connection-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.is-offline .connection-dot { background: #fbbf24; }
.is-offline { color: #fbbf24; }
.arena-section-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.section-eyebrow { font-size: 10px; letter-spacing: .17em; color: #a3b4c8; font-weight: 700; }
.arena-section-heading h2 { margin-top: 8px; font-size: 25px; font-weight: 650; letter-spacing: -.04em; }
.arena-update-label { font: 11px var(--font-mono); color: #a3b4c8; }
.public-body .tables-grid-section { margin-bottom: 0; }
.public-body .tables-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.public-body .table-card { min-width: 0; border-radius: 16px; background: linear-gradient(155deg,#162133,#101827 65%); border: 1px solid #2b3a50; box-shadow: 0 16px 36px -26px #0009,inset 0 1px #ffffff05; backdrop-filter: none; }
.public-body .table-card::before { content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg,transparent,#34d39970,transparent); pointer-events: none; }
.public-body .table-card.occupied::before { background: linear-gradient(90deg,transparent,#fb718570,transparent); }
.public-body .table-card.paused::before { background: linear-gradient(90deg,transparent,#fbbf2470,transparent); }
.public-body .table-card:hover { border-color: #3f685e; transform: translateY(-3px); box-shadow: 0 20px 36px -24px #000a; }
.public-body .table-card-header { min-height: 80px; padding: 18px 20px 14px; border-bottom: none; }
.public-body .table-name-title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.5; }
.public-body .table-name-subtitle { color: #a3b4c8; font-size: 11px; font-weight: 500; margin-top: 3px; }
.public-body .table-header-right { gap: 9px; }
.public-body .status-badge { padding: 5px 9px; font-size: 10px; letter-spacing: .035em; gap: 6px; border-radius: 6px; box-shadow: none; line-height: 1.5; }
.public-body .status-badge .live-dot { width: 5px; height: 5px; animation: none; box-shadow: none; }
.public-body .status-badge.available { color: #6ee7b7; border-color: #225b47; background: #102f27; }
.public-body .status-badge.occupied { color: #fca5a5; border-color: #703739; background: #352025; }
.public-body .status-badge.paused { color: #fcd889; border-color: #6c5433; background: #30271c; }
.public-body .table-rate-tag { background: none; border: 0; color: #b0c1d5; font-size: 11px; font-weight: 400; padding: 0; }
.public-body .table-visual-wrap { margin: 0 20px; padding: 10px 12px; border: 1px solid #2a403f; border-radius: 10px; background: radial-gradient(ellipse at center,#14382e,#0b1722); }
.public-body .table-board-svg { max-width: 100%; height: auto; aspect-ratio: 540/280; filter: drop-shadow(0 10px 10px #0005); border-radius: 0; }
.public-body .table-card-body { padding: 16px 20px 14px; gap: 12px; }
.public-body .table-players-box { background: none; padding: 0 0 14px; border: 0; border-bottom: 1px solid #223044; border-radius: 0; min-height: 58px; gap: 7px; }
.public-body .players-label { font-size: 11px; text-transform: none; letter-spacing: .02em; color: #a3b4c8; }
.public-body .players-names { font-size: 14px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; color: #e2e8f0; }
.public-body .players-empty { font-size: 13px; color: #cbd5e1; font-style: normal; }
.public-body .table-timer-box { padding: 7px 0 12px; background: none; border: 0; border-radius: 0; text-align: left; }
.public-body .table-timer-box::before { display: none; }
.public-body .timer-label { color: #a3b4c8; font-size: 11px; text-transform: none; letter-spacing: .02em; margin-bottom: 10px; }
.public-body .timer-value { font-size: clamp(25px,2.6vw,36px); font-weight: 400; color: #f1f5f9; letter-spacing: -.04em; text-shadow: none; font-variant-numeric: tabular-nums; }
.public-body .timer-value.active { color: #6ee7b7; text-shadow: none; }
.public-body .timer-value.paused { color: #fcd889; text-shadow: none; }
.public-body .timer-value.idle { color: #9aadc5; }
.public-body .timer-subtext { color: #a3b4c8; margin-top: 10px; font-size: 11px; }
.public-body .table-rate-box { background: #0d1422; border: 1px solid #253145; border-radius: 7px; padding: 12px; }
.public-body .rate-box-label { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #b1c0d4; }
.public-body .rate-box-label svg { display: none; }
.public-body .rate-box-value { font-size: 14px; font-weight: 500; letter-spacing: -.03em; color: #dce7f4; }
.public-body .table-card-footer { border-color: #253548; padding-top: 12px; font-size: 10px; color: #a3b4c8; }
.public-body .table-card.skeleton { min-height: 460px; }
.public-body .card-loading { font-size: 12px; }
.arena-floor-note { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding: 20px 0; font-size: 12px; color: #a3b4c8; }
.arena-floor-note > span { display: flex; align-items: center; gap: 6px; }
.arena-floor-note .floor-note-detail { margin-left: auto; font-size: 11px; }
.public-body .sync-banner { justify-content: flex-start; background: #30271c; border-color: #6c5433; color: #fcd889; border-radius: 8px; padding: 12px 16px; font-size: 12px; line-height: 1.7; gap: 12px; margin-bottom: 24px; }
.btn-retry { margin-left: auto; background: #49371d; color: #fcd889; border: 1px solid #816133; font-size: 11px; padding: 8px 12px; }
.btn-retry:disabled { opacity: .55; cursor: wait; }
.arena-empty { grid-column: 1/-1; border: 1px dashed #334155; border-radius: 14px; text-align: center; padding: 64px 24px; color: #94a3b8; }
.arena-empty h3 { font-size: 18px; font-weight: 600; color: #e2e8f0; margin-bottom: 10px; }
.arena-empty p { font-size: 13px; line-height: 1.8; max-width: 440px; margin: auto; }
.empty-symbol { display: block; font-size: 32px; color: #fbbf24; margin-bottom: 16px; }
.is-stale .table-card { border-style: dashed; }
.is-stale .table-board-svg * { animation-play-state: paused; }
.public-body .site-footer { background: transparent; padding: 24px 36px; border-top: 1px solid #1e293b; }
.public-body .footer-container { max-width: 1368px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.public-body .footer-name { font: 700 11px var(--font-sans); letter-spacing: .12em; color: #94a3b8; }
.public-body .designer-name { color: #a3b0c2; font-family: var(--font-sans); font-size: 11px; text-shadow: none; }
.public-body .designer-by { color: #8492a6; font-size: 10px; }
.public-body .hosting-expiry-footer { background: #0b0f19; border-top: 1px solid #1a2433; padding: 10px 16px; text-align: center; }
.public-body .hosting-expiry-text { color: #8492a6; font: 10px var(--font-sans); }
.public-body .hosting-expiry-text strong { color: #a3b0c2; font-weight: 500; }
.public-body .hosting-days-badge { background: #172133; color: #a3b0c2; border: 1px solid #253145; padding: 2px 6px; border-radius: 4px; }
@media (min-width: 1700px) { .public-body .main-content { padding-top: 80px; } }
@media (max-width: 1050px) {
  .public-body .dashboard-hero { gap: 32px; grid-template-columns: 1.1fr 1fr; }
  .arena-summary { padding: 22px; }
  .public-body .table-card-header { flex-direction: column; gap: 12px; }
  .public-body .table-header-right { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .public-body .table-visual-wrap { margin: 0 14px; padding: 12px 6px; }
  .public-body .table-card-body { padding: 18px 14px 14px; }
}
@media (max-width: 760px) {
  .public-body .site-header { padding: 14px 20px; }
  .public-body .header-container { grid-template-columns: 1fr auto; gap: 12px; }
  .public-body .header-center { grid-column: 1/-1; grid-row: 2; justify-self: stretch; border-top: 1px solid #1e293b; padding-top: 12px; }
  .public-body .live-clock-card { flex-direction: row; gap: 12px; }
  .public-body .clock-time { font-size: 10px; }
  .public-body .clock-date { font-size: 10px; }
  .public-body .header-actions { grid-column: 2; grid-row: 1; }
  .public-body .brand-logo { width: 54px; height: 38px; }
  .public-body .brand-name { font-size: 13px; }
  .public-body .brand-tagline { font-size: 6px; }
  .public-body .brand-link { gap: 8px; }
  .public-body .btn-admin { min-height: 38px; font-size: 10px; padding: 8px 10px; }
  .public-body .btn-admin svg { width: 13px; height: 13px; }
  .public-body .main-content { padding: 36px 20px 20px; }
  .public-body .dashboard-hero { grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
  .public-body .hero-title { font-size: clamp(36px,8vw,52px); margin-bottom: 16px; }
  .public-body .hero-subtitle { font-size: 14px; }
  .public-body .hero-badge { margin-bottom: 16px; font-size: 11px; }
  .arena-summary-values { padding: 22px 0; }
  .summary-value { font-size: 32px; }
  .public-body .tables-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .arena-floor-note .floor-note-detail { width: 100%; margin-left: 0; line-height: 1.7; }
  .arena-section-heading h2 { font-size: 21px; }
  .arena-update-label { font-size: 10px; }
  .public-body .site-footer { padding: 22px 20px; }
  .public-body .footer-container { flex-direction: row; }
  .public-body .sync-banner { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .public-body .tables-grid { grid-template-columns: minmax(0,1fr); }
  .public-body .table-card-header { flex-direction: row; padding: 20px; }
  .public-body .table-header-right { width: auto; flex-direction: column; align-items: flex-end; gap: 8px; }
  .public-body .table-visual-wrap { margin: 0 20px; padding: 16px 20px; }
  .public-body .table-card-body { padding: 18px 20px 16px; }
  .public-body .timer-value { font-size: 36px; }
  .arena-summary-values > div + div { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
