:root {
  --hero-offset: 160px;
  --quick-nav-height: 60px;
  --section-scroll-offset: 238px;
  color-scheme: dark;
  --bg: #070812;
  --text: #f5f7ff;
  --muted: #b6b8d7;
  --blue: #66d7ff;
  --pink: #ff4fbf;
  --gold: #ffcf6e;
  --danger: #ff8b8b;
  --ok: #7cf2bd;
  --shadow-blue: 0 0 28px rgba(102, 215, 255, 0.22);
  --shadow-pink: 0 0 28px rgba(255, 79, 191, 0.2);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; touch-action: pan-x pan-y pinch-zoom; }

body {
  margin: 0;
  min-height: 100vh;
  touch-action: pan-x pan-y pinch-zoom;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(123, 73, 255, 0.18), transparent 38%),
    radial-gradient(circle at 20% 15%, rgba(255, 79, 191, 0.16), transparent 28%),
    linear-gradient(180deg, #090a16 0%, #0c1020 45%, #090a13 100%);
  position: relative;
  overflow-x: visible;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.18;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 15%, rgba(0,0,0,0.9) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 18, 0.12) 0%, rgba(5, 8, 18, 0.62) 35%, rgba(5, 8, 18, 0.82) 100%),
    url('/assets/poster-bg.webp') center top / cover no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.page-glow {
  position: fixed;
  width: 36rem;
  height: 36rem;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.22;
  z-index: 0;
}
.page-glow-left { top: -8rem; left: -10rem; background: rgba(255, 52, 150, 0.48); }
.page-glow-right { top: 20rem; right: -10rem; background: rgba(89, 176, 255, 0.4); }

img { max-width: 100%; display: block; }
a { color: var(--blue); }
button { font: inherit; }
code { white-space: nowrap; }
h1, h2, h3 { margin: 0; }

.hero-shell,
.app-shell { position: relative; z-index: 1; }

.hero-shell {
  padding: 1rem 1rem 0.75rem;
  position: relative;
  z-index: 10;
}

.hero-card {
  position: relative;
  transition: transform 0.18s ease, border-radius 0.18s ease, box-shadow 0.18s ease;
  max-width: 1220px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(143, 173, 255, 0.26);
  background: linear-gradient(135deg, rgba(9, 13, 29, 0.95) 0%, rgba(11, 16, 32, 0.92) 42%, rgba(14, 12, 32, 0.88) 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(255, 79, 191, 0.13), transparent 35%),
    linear-gradient(305deg, rgba(102, 215, 255, 0.18), transparent 38%);
  pointer-events: none;
}
.hero-card-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(8, 11, 23, 0.45) 0%, rgba(8, 11, 23, 0.78) 55%, rgba(8, 11, 23, 0.92) 100%),
    url('/assets/background_header.jpeg') center center / cover no-repeat;
  opacity: 0.94;
}
.hero-content {
  position: relative;
  padding: 1.15rem;
  display: grid;
  gap: 1rem;
}

.hero-meta-stack {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  z-index: 2;
  display: grid;
  gap: 0.38rem;
  justify-items: end;
}
.hero-version-badge,
.hero-users-badge {
  padding: 0.3rem 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 154, 255, 0.28);
  background: linear-gradient(135deg, rgba(13, 18, 40, 0.82), rgba(20, 26, 52, 0.7));
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 18px rgba(98, 183, 255, 0.12);
}
.hero-users-badge {
  font-size: 0.66rem;
  color: rgba(210, 243, 255, 0.96);
}
.brand-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: center;
}
.brand-logo-shell {
  position: relative;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-logo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid rgba(112, 209, 255, 0.52);
  box-shadow: 0 0 20px rgba(102, 215, 255, 0.28), 0 0 34px rgba(255, 79, 191, 0.22), inset 0 0 20px rgba(255,255,255,0.08);
  animation: logo-orbit-pulse 3.3s ease-in-out infinite;
}
.brand-logo-ring::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 89, 182, 0.28);
  animation: logo-orbit-spin 10s linear infinite;
}
.brand-logo {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255,255,255,0.12)) drop-shadow(0 0 18px rgba(98, 183, 255, 0.25));
}
.brand-copy {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}
.brand-title-shell {
  position: relative;
  width: min(100%, 580px);
  max-width: 100%;
  margin: 0 auto;
  isolation: isolate;
  animation: title-shell-float 6s ease-in-out infinite;
}
.brand-title-shell::before {
  content: "";
  position: absolute;
  inset: 7% -1.5% 11% -1.5%;
  background: radial-gradient(circle at 50% 45%, rgba(255, 231, 158, 0.18), rgba(255, 84, 184, 0.1) 42%, rgba(80, 170, 255, 0.06) 68%, transparent 80%);
  filter: blur(22px);
  opacity: 0.92;
  z-index: 0;
  pointer-events: none;
  animation: title-shell-breathe 4.8s ease-in-out infinite;
}
.brand-title-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 14%, rgba(255,255,255,0.05) 28%, rgba(255,255,255,0.2) 34%, rgba(255,255,255,0.04) 40%, transparent 54%);
  mix-blend-mode: screen;
  transform: translateX(-42%);
  opacity: 0.72;
  pointer-events: none;
  animation: title-shell-sweep 8.5s ease-in-out infinite;
}
.brand-title-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(255, 245, 211, 0.28)) drop-shadow(0 0 36px rgba(255, 79, 191, 0.2)) drop-shadow(0 0 18px rgba(91, 197, 255, 0.16)) brightness(1.06) saturate(1.12);
  mix-blend-mode: screen;
  opacity: 0.98;
  mask-image: radial-gradient(ellipse 92% 82% at 50% 46%, black 50%, rgba(0,0,0,0.75) 68%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 92% 82% at 50% 46%, black 50%, rgba(0,0,0,0.75) 68%, transparent 88%);
}
#appTitle { display: none; }
#appTitle.companion-app-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  line-height: 1.02;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(235, 245, 255, 0.96);
  text-shadow: 0 0 12px rgba(124, 219, 255, 0.26), 0 0 24px rgba(255, 89, 182, 0.14);
  animation: companion-neon-breathe 3.2s ease-in-out infinite;
}
@keyframes companion-neon-breathe {
  0%, 100% { opacity: 0.88; transform: translateY(0); text-shadow: 0 0 12px rgba(124, 219, 255, 0.26), 0 0 24px rgba(255, 89, 182, 0.14); }
  50% { opacity: 1; transform: translateY(-1px); text-shadow: 0 0 16px rgba(124, 219, 255, 0.36), 0 0 34px rgba(255, 89, 182, 0.22); }
}

@keyframes title-shell-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@keyframes title-shell-breathe {
  0%, 100% { opacity: 0.7; transform: scale(0.992); }
  50% { opacity: 1; transform: scale(1.006); }
}

@keyframes title-shell-sweep {
  0%, 100% { transform: translateX(-42%); opacity: 0.28; }
  18% { opacity: 0.6; }
  48% { transform: translateX(42%); opacity: 0.82; }
  60% { opacity: 0.22; }
}

@keyframes logo-orbit-pulse {
  0%, 100% { transform: scale(0.98); opacity: 0.72; }
  50% { transform: scale(1.02); opacity: 1; }
}

@keyframes logo-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.meta-pill {
  margin: 0;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 169, 255, 0.18);
  background: rgba(12, 18, 35, 0.74);
  backdrop-filter: blur(10px);
  font-size: 0.92rem;
}
.muted { color: var(--muted); }
.status { color: #fff6fe; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), var(--shadow-pink); }
.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.meta-refresh-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  min-width: 2.85rem;
  min-height: 2.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 84, 184, 0.32);
  background: rgba(12,18,35,0.82);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), var(--shadow-pink);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.meta-refresh-button:hover { transform: translateY(-1px); }
.meta-refresh-button.is-spinning .meta-refresh-icon { animation: spin-refresh 0.8s linear infinite; }
.meta-refresh-button:disabled { opacity: 0.7; }
.meta-refresh-icon {
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
}
@keyframes spin-refresh { from { transform: rotate(0deg);} to { transform: rotate(360deg);} }
.neo-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 177, 255, 0.22);
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(12, 18, 35, 0.92), rgba(16, 18, 36, 0.82));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 10px 30px rgba(0,0,0,0.26);
  letter-spacing: 0.01em;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.neo-button:hover { transform: translateY(-1px); }
.is-bouncing { animation: button-bounce 0.28s ease; }

@keyframes button-bounce {
  0% { transform: scale(1); }
  40% { transform: scale(0.96); }
  70% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.neo-button-blue {
  border-color: rgba(94, 211, 255, 0.38);
  box-shadow: inset 0 0 0 1px rgba(103, 225, 255, 0.08), 0 0 0 1px rgba(103, 225, 255, 0.06), var(--shadow-blue);
}
.neo-button-blue.is-active {
  border-color: rgba(94, 211, 255, 0.6);
  background: rgba(94, 211, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(103, 225, 255, 0.14), 0 0 0 1px rgba(103, 225, 255, 0.12), 0 4px 24px rgba(103, 225, 255, 0.18);
}
.neo-button-pink {
  border-color: rgba(255, 84, 184, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255, 121, 207, 0.08), 0 0 0 1px rgba(255, 121, 207, 0.06), var(--shadow-pink);
}
.neo-button-green {
  border-color: rgba(113, 247, 179, 0.36);
  box-shadow: inset 0 0 0 1px rgba(113, 247, 179, 0.08), 0 0 0 1px rgba(113, 247, 179, 0.06), 0 4px 18px rgba(113, 247, 179, 0.08);
}
.neo-button-green.is-active {
  border-color: rgba(113, 247, 179, 0.6);
  background: rgba(113, 247, 179, 0.1);
  box-shadow: inset 0 0 0 1px rgba(113, 247, 179, 0.14), 0 0 0 1px rgba(113, 247, 179, 0.12), 0 4px 24px rgba(113, 247, 179, 0.18);
}

.neo-button:disabled,
.neo-button.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}
.banner {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 139, 139, 0.36);
  background: rgba(58, 18, 31, 0.48);
  backdrop-filter: blur(10px);
}
.banner.ok { border-color: rgba(124, 242, 189, 0.34); background: rgba(11, 48, 42, 0.42); }
.banner-announcement { position: relative; overflow: hidden; }
.banner-announcement::after {
  content: '';
  position: absolute;
  inset: -20% auto -20% -35%;
  width: 24%;
  transform: skewX(-24deg) translateX(0);
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0.06) 75%, transparent 100%);
  opacity: 0;
  pointer-events: none;
}
.banner-announcement.is-sweeping::after { animation: banner-sweep 1.1s ease; }
@keyframes banner-sweep {
  0% { opacity: 0; transform: skewX(-24deg) translateX(0); }
  15% { opacity: 0.75; }
  100% { opacity: 0; transform: skewX(-24deg) translateX(560%); }
}
.banner.hidden, .hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.icon-only-button {
  width: 3.35rem;
  min-width: 3.35rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.fighter-card-button-icon {
  width: 1.85rem;
  height: 1.85rem;
  object-fit: contain;
  display: inline-block;
  filter: drop-shadow(0 0 0.35rem rgba(255, 82, 138, 0.45));
}

body.fighter-card-viewer-open,
body.modal-open {
  overflow: hidden;
}

.fighter-card-viewer {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(3, 6, 16, 0.96);
  display: grid;
  grid-template-rows: auto 1fr;
  padding: max(0.8rem, env(safe-area-inset-top)) max(0.8rem, env(safe-area-inset-right)) max(0.8rem, env(safe-area-inset-bottom)) max(0.8rem, env(safe-area-inset-left));
}

.fighter-card-viewer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
}

.fighter-card-viewer-title {
  margin: 0;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  text-align: right;
}

.fighter-card-viewer-body {
  min-height: 0;
  min-width: 0;
  overflow: auto;
  padding: 0.5rem 0 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.fighter-card-viewer-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 1200px);
  max-height: 100%;
  object-fit: contain;
  align-self: flex-start;
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(126,154,255,0.2), 0 24px 70px rgba(0,0,0,0.5);
  background: rgba(9, 12, 24, 0.9);
}

.fighter-card-viewer-state {
  width: min(42rem, 100%);
  padding: 1.1rem 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(126,154,255,0.24);
  background: linear-gradient(180deg, rgba(10, 16, 34, 0.96), rgba(8, 12, 28, 0.94));
  box-shadow: 0 24px 70px rgba(0,0,0,0.42);
  text-align: center;
  color: rgba(255,255,255,0.92);
}

.fighter-card-viewer-state.is-loading::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  border: 3px solid rgba(126,154,255,0.2);
  border-top-color: rgba(126,154,255,0.95);
  animation: spin-refresh 0.9s linear infinite;
}

.fighter-card-viewer-state.is-error {
  border-color: rgba(255, 104, 104, 0.34);
  box-shadow: 0 24px 70px rgba(0,0,0,0.42), 0 0 0 1px rgba(255,104,104,0.12);
}

.fighter-card-viewer-state h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

@media (max-width: 720px) {
  .fighter-card-viewer {
    padding-left: max(0.55rem, env(safe-area-inset-left));
    padding-right: max(0.55rem, env(safe-area-inset-right));
    padding-bottom: max(0.55rem, env(safe-area-inset-bottom));
  }

  .fighter-card-viewer-body {
    align-items: flex-start;
  }

  .fighter-card-viewer-image {
    max-width: 100%;
  }
}

.fighter-card-viewer-state p {
  margin: 0;
  color: rgba(255,255,255,0.78);
}
.fighter-card-viewer-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.banner-announcement { margin-top: 0.35rem; }
.banner-system { margin-top: 0.35rem; }
.banner-info { border-color: rgba(84, 214, 134, 0.42); background: rgba(12, 56, 36, 0.56); }
.banner-warning { border-color: rgba(255, 215, 77, 0.45); background: rgba(74, 52, 10, 0.56); }
.banner-install { border-color: rgba(102, 215, 255, 0.34); background: rgba(11, 35, 48, 0.48); }
.banner-urgent {
  border-color: rgba(255, 80, 80, 0.7);
  background: rgba(90, 10, 18, 0.72);
  animation: urgent-pulse 1.4s ease-in-out infinite;
}
.banner-urgent .announcement-title { font-size: 1.05rem; }
@keyframes urgent-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,80,80,0.18), 0 0 18px rgba(255,60,60,0.22); }
  50%       { box-shadow: 0 0 0 1px rgba(255,80,80,0.55), 0 0 36px rgba(255,60,60,0.48); }
}
.system-status-inner {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}
.system-status-copy {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}
.system-status-issue {
  display: grid;
  gap: 0.18rem;
}
.system-status-title,
.system-status-message {
  margin: 0;
}
.system-status-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.84);
}
.system-status-message {
  color: rgba(255,255,255,0.9);
}
.system-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}
.banner-action-button {
  min-height: 2.5rem;
  text-decoration: none;
}
.announcement-inner { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; }
.announcement-copy { min-width: 0; }
.announcement-level { margin: 0 0 0.2rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.8); }
.announcement-title { margin: 0 0 0.25rem; font-size: 1rem; }
.announcement-message { margin: 0; color: #fff; }
.announcement-meta { display: grid; gap: 0.45rem; justify-items: end; text-align: right; }
.announcement-updated { font-size: 0.82rem; color: rgba(255,255,255,0.72); }
.announcement-pager { display: inline-flex; align-items: center; gap: 0.45rem; }
.announcement-nav { min-width: 2rem; min-height: 2rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); background: rgba(8,10,18,0.34); color: var(--text); }
.announcement-count { font-size: 0.82rem; color: rgba(255,255,255,0.82); }
@media (max-width: 720px) {
  .system-status-inner,
  .announcement-inner {
    display: grid;
    grid-template-columns: 1fr;
  }
  .system-status-actions,
  .announcement-meta {
    justify-content: flex-start;
    text-align: left;
  }
}
.app-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(0.35rem, 1.4vw, 0.75rem) clamp(0.7rem, 2.2vw, 1rem) calc(1.5rem + env(safe-area-inset-bottom));
}
.content-section {
  margin-bottom: 1.2rem;
  scroll-margin-top: var(--section-scroll-offset);
  content-visibility: auto;
  contain-intrinsic-size: 680px;
  padding: 1rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(10, 12, 26, 0.84), rgba(10, 11, 22, 0.72));
  border: 1px solid rgba(102, 215, 255, 0.16);
  box-shadow: 0 20px 50px rgba(0,0,0,0.24), 0 0 30px rgba(102, 215, 255, 0.04), 0 0 60px rgba(255, 79, 191, 0.03);
  backdrop-filter: blur(12px);
}
.section-title-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.section-title-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}
.view-mode-tag {
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.view-mode-tag--fighter {
  color: rgba(94, 211, 255, 0.9);
  border-color: rgba(94, 211, 255, 0.35);
  background: rgba(94, 211, 255, 0.08);
}
.view-mode-tag--workshop {
  color: #71f7b3;
  border-color: rgba(113, 247, 179, 0.35);
  background: rgba(113, 247, 179, 0.08);
}
.view-mode-tag-icon {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
  border-radius: 3px;
}
.section-title-actions { display: flex; gap: 0.5rem; align-items: center; }
.tt-now-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 79, 191, 0.4);
  background: rgba(12, 16, 32, 0.85);
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 79, 191, 0.12);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.tt-now-button:hover:not(:disabled) { border-color: rgba(255, 79, 191, 0.7); box-shadow: 0 0 18px rgba(255, 79, 191, 0.28); }
.tt-now-button:disabled { opacity: 0.35; cursor: default; }
.tt-filter-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.tt-filter-input { flex: 1; min-width: 0; }
.tt-use-my-name {
  flex-shrink: 0;
  min-height: 2.6rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  border-color: rgba(102, 215, 255, 0.3);
  box-shadow: var(--shadow-blue);
}
.timetable-grid .tt-cell-match {
  outline: 2px solid rgba(255, 220, 80, 0.65);
  outline-offset: -2px;
  background: rgba(255, 220, 80, 0.1) !important;
  text-shadow: 0 0 8px rgba(255, 220, 80, 0.45);
  color: #fff9d6 !important;
}
.section-title-row h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  color: #fff9ff;
  text-shadow: 0 0 18px rgba(255, 79, 191, 0.16);
}
.section-title-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(102, 215, 255, 0.22));
}
.section-caption { margin: 0; color: var(--muted); }
.section-caption--tournament { color: rgba(94, 211, 255, 0.85); }
.section-caption--workshop { color: #71f7b3; }
.stack { display: grid; gap: 0.9rem; min-width: 0; }
.card,
.sheet-section {
  background: linear-gradient(180deg, rgba(14, 18, 38, 0.92), rgba(10, 13, 29, 0.86));
  border: 1px solid rgba(128, 160, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 14px 36px rgba(0,0,0,0.22);
}
.card.error { border-color: rgba(255, 139, 139, 0.45); }
.sheet-section { padding: 1rem; min-width: 0; }
.section-heading {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.section-heading h3 { font-size: 1.05rem; letter-spacing: 0.01em; }
.section-subtitle { margin: 0.25rem 0 0; }

.pill--compact {
  padding: 0.26rem 0.52rem;
  font-size: 0.78rem;
  min-height: 0;
}
.section-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(97, 207, 255, 0.26);
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(12, 17, 34, 0.95), rgba(17, 22, 43, 0.86));
  box-shadow: var(--shadow-blue);
}
.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  overscroll-behavior-x: contain;
  border-radius: var(--radius-md);
  background: rgba(9, 12, 24, 0.74);
  border: 1px solid rgba(102, 215, 255, 0.18);
  box-shadow: 0 0 24px rgba(102, 215, 255, 0.08), 0 0 48px rgba(255, 79, 191, 0.05);
}
.table-wrap::-webkit-scrollbar { height: 10px; }
.table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(89, 201, 255, 0.55), rgba(255, 77, 182, 0.55));
  border-radius: 999px;
}
.table-wrap table { width: max-content; min-width: max-content; border-collapse: separate; border-spacing: 0; }
.table-wrap th,
.table-wrap td {
  text-align: center;
  vertical-align: middle;
  padding: 0.7rem;
  border-right: 1px solid rgba(126, 154, 255, 0.12);
  border-bottom: 1px solid rgba(126, 154, 255, 0.12);
}
.table-wrap tr:last-child td,
.table-wrap tr:last-child th { border-bottom: 0; }
.table-wrap tr td:last-child,
.table-wrap tr th:last-child { border-right: 0; }
.timetable-wrap { padding: 0; touch-action: pan-x pan-y pinch-zoom; cursor: grab; }
.timetable-wrap.is-dragging { cursor: grabbing; }
.timetable-wrap { position: relative; }
.tt-now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
  z-index: 6;
  background: var(--pink);
  box-shadow: 0 0 8px rgba(255, 79, 191, 0.8), 0 0 22px rgba(255, 79, 191, 0.45);
  transition: top 0.5s ease;
}
.tt-now-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px rgba(255, 79, 191, 0.9);
}
.timetable-grid { width: max-content; min-width: max-content; table-layout: auto; }
.timetable-grid .tt-col-time { width: 5.6ch; }
.timetable-grid th,
.timetable-grid td {
  min-width: 152px;
  white-space: pre-line;
  line-height: 1.42;
  background: rgba(10, 14, 28, 0.96);
  font-size: 1rem;
  font-weight: 500;
}
.timetable-grid .tt-header {
  background: linear-gradient(180deg, rgba(23, 31, 62, 0.98), rgba(17, 22, 44, 0.96));
  font-weight: 700;
  color: #fff8fd;
  text-shadow: 0 0 14px rgba(98, 215, 255, 0.28);
  border-bottom: 1px solid rgba(102, 215, 255, 0.25);
}
.timetable-grid .tt-header.tt-time {
  font-size: 0.82rem;
  line-height: 1;
  text-transform: none;
}
.timetable-grid .tt-time {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  position: sticky;
  left: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(17, 21, 39, 0.99), rgba(14, 18, 33, 0.99));
  font-weight: 700;
  white-space: normal;
  line-height: 1.08;
  padding: 0.26rem 0.14rem;
  font-size: 0.84rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.timetable-grid .tt-empty { background: rgba(12, 15, 28, 0.85); }
.timetable-grid .tt-row-header .tt-header,
.timetable-grid .tt-row-header .tt-time { position: sticky; top: 0; z-index: 3; }
.timetable-grid .tt-row-header .tt-time { z-index: 4; }
.timetable-grid .tt-cell { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.015); }
.timetable-grid .tt-cell span { display: inline-block; }
.timetable-grid .tt-time span { display: block; width: 100%; line-height: 1.05; white-space: nowrap; }
.timetable-grid .tt-time .tt-time-icon { font-size: 0.95rem; line-height: 1; }
.timetable-grid .tt-label {
  display: block;
  font-weight: 300 !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  color: #ffffff !important;
  letter-spacing: 0.01em;
  margin: 1rem 0 0.28rem;
}
.timetable-grid .tt-label:first-child {
  margin-top: 0;
}
.timetable-grid .tt-time .tt-label {
  margin-top: 0;
  text-decoration: none;
}
.timetable-grid .tt-section-break {
  display: block;
  height: 0.55rem;
  line-height: 0;
}
.timetable-grid .tt-theme-yellow {
  background:
    radial-gradient(circle at top left, rgba(255, 248, 210, 0.24), transparent 44%),
    linear-gradient(135deg, rgba(246, 223, 123, 0.42) 0%, rgba(228, 185, 73, 0.34) 44%, rgba(177, 131, 41, 0.26) 100%);
  border-color: rgba(246, 219, 122, 0.28);
  box-shadow: inset 0 0 0 1px rgba(246, 219, 122, 0.22), 0 0 22px rgba(239, 201, 102, 0.18);
  text-shadow: 0 0 10px rgba(255, 230, 140, 0.3);
  color: #fff8e8;
}
.timetable-grid .tt-theme-orange {
  background:
    radial-gradient(circle at top left, rgba(255, 232, 206, 0.24), transparent 44%),
    linear-gradient(135deg, rgba(238, 171, 106, 0.42) 0%, rgba(214, 128, 80, 0.34) 46%, rgba(160, 92, 55, 0.26) 100%);
  border-color: rgba(239, 169, 110, 0.28);
  box-shadow: inset 0 0 0 1px rgba(239, 169, 110, 0.22), 0 0 22px rgba(223, 141, 93, 0.18);
  text-shadow: 0 0 10px rgba(255, 190, 130, 0.3);
  color: #fff2e6;
}
.timetable-grid .tt-theme-blue {
  background:
    radial-gradient(circle at top left, rgba(207, 240, 255, 0.22), transparent 44%),
    linear-gradient(135deg, rgba(115, 209, 233, 0.42) 0%, rgba(79, 148, 217, 0.34) 46%, rgba(56, 92, 173, 0.26) 100%);
  border-color: rgba(102, 215, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(123, 213, 235, 0.22), 0 0 22px rgba(89, 180, 223, 0.2);
  text-shadow: 0 0 10px rgba(102, 215, 255, 0.35);
  color: #eaf8ff;
}
.timetable-grid .tt-theme-purple {
  background:
    radial-gradient(circle at top left, rgba(245, 220, 255, 0.22), transparent 44%),
    linear-gradient(135deg, rgba(204, 126, 236, 0.42) 0%, rgba(151, 104, 221, 0.34) 46%, rgba(103, 75, 172, 0.26) 100%);
  border-color: rgba(204, 126, 236, 0.28);
  box-shadow: inset 0 0 0 1px rgba(214, 142, 235, 0.22), 0 0 22px rgba(170, 111, 223, 0.2);
  text-shadow: 0 0 10px rgba(214, 142, 235, 0.35);
  color: #f8eeff;
}
.timetable-grid .tt-theme-green {
  background:
    radial-gradient(circle at top left, rgba(220, 255, 228, 0.22), transparent 44%),
    linear-gradient(135deg, rgba(127, 225, 170, 0.42) 0%, rgba(78, 184, 139, 0.34) 46%, rgba(46, 126, 98, 0.26) 100%);
  border-color: rgba(127, 225, 170, 0.28);
  box-shadow: inset 0 0 0 1px rgba(137, 225, 175, 0.22), 0 0 22px rgba(103, 203, 154, 0.2);
  text-shadow: 0 0 10px rgba(127, 225, 170, 0.35);
  color: #eefff3;
}
.timetable-grid .tt-theme-pink {
  background:
    radial-gradient(circle at top left, rgba(255, 210, 240, 0.24), transparent 44%),
    linear-gradient(135deg, rgba(255, 79, 191, 0.42) 0%, rgba(230, 60, 160, 0.34) 46%, rgba(180, 40, 120, 0.26) 100%);
  border-color: rgba(255, 114, 209, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 114, 209, 0.24), 0 0 22px rgba(255, 79, 191, 0.22);
  text-shadow: 0 0 10px rgba(255, 114, 209, 0.4);
  color: #fff0fa;
}

/* ── Table zoom (mobile) ──────────────────────────────────────── */
.table-zoom-container {
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}
.table-zoom-container.is-zoomed-out {
  touch-action: pan-y;
}
.table-zoom-container .timetable-wrap {
  transform-origin: top left;
  will-change: transform;
}
.table-zoom-container.is-zoomed-out .timetable-wrap {
  overflow: visible;
  cursor: default;
}
.table-zoom-container.is-zoomed-out .table-swipe-hint {
  display: none;
}
.table-zoom-hint {
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  text-align: center;
}

.content-section,
.tabset,
.tab-list,
.tab-panel,
.section-heading,
.section-actions,
.my-schedule-columns,
.summary-grid {
  min-width: 0;
}

.tabset { display: grid; gap: 0.85rem; }
.tab-list { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.tab-button {
  appearance: none;
  border: 1px solid rgba(143, 173, 255, 0.2);
  color: var(--text);
  background: linear-gradient(180deg, rgba(14, 19, 38, 0.96), rgba(18, 16, 36, 0.86));
  border-radius: 14px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.tab-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(85, 211, 255, 0.18), rgba(255, 70, 182, 0.16));
  opacity: 0;
  transition: opacity 0.18s ease;
}
.tab-button:hover::before,
.tab-button.is-active::before { opacity: 1; }
.tab-button.is-active {
  border-color: rgba(255, 114, 209, 0.3);
  box-shadow: var(--shadow-pink);
}
.tab-button.is-pulsing {
  animation: tab-glow-pulse 0.65s ease;
}
.tab-panel { display: none; min-width: 0; }
.tab-panel.is-active { display: block; }
.tab-panel.is-entering { animation: panel-slide-fade 0.34s ease; }

@keyframes panel-slide-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tab-glow-pulse {
  0% { box-shadow: var(--shadow-pink); }
  45% { box-shadow: 0 0 0 1px rgba(255,121,207,0.16), 0 0 28px rgba(255,79,191,0.38), 0 0 42px rgba(102,215,255,0.22); }
  100% { box-shadow: var(--shadow-pink); }
}
pre { margin: 0; white-space: pre-wrap; }

.scorecard-page-section { display: grid; gap: 0.9rem; min-width: 0; }
.scorecard-page-tabset .tab-panel,
.scorecard-weapon-tabset .tab-panel { display: none; }
.scorecard-page-tabset .tab-panel.is-active,
.scorecard-weapon-tabset .tab-panel.is-active { display: block; }
.nested-tabset {
  padding-top: 0.15rem;
}
.scorecard-lines {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 114, 209, 0.16);
  background: linear-gradient(180deg, rgba(19, 16, 40, 0.84), rgba(14, 16, 32, 0.78));
  padding: 0.9rem 1rem;
}
.scorecard-lines ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.42rem;
}
.scorecard-lines li { color: var(--text); }
.scorecard-table-wrap { margin-top: 0.2rem; }
.scorecard-table-title {
  margin: 0;
  padding: 0.8rem 0.85rem 0;
  font-size: 0.96rem;
  color: #fbe7ff;
}
@media (max-width: 719px) {
  .hero-shell { padding: 0.75rem 0.75rem 0.5rem; }
  .schedule-day-filter { width: 100%; }
  .hero-content { padding: 1rem; }
  .hero-card-bg { background-position: center top; }
  .hero-actions { grid-template-columns: 1fr; }
  .content-section { padding: 0.85rem; }
  .tab-button { flex: 1 1 calc(50% - 0.65rem); }
}
@media (min-width: 720px) {
  .hero-content { padding: 1.35rem 1.45rem 1.3rem; }
  .brand-logo-shell { width: clamp(86px, 8.6vw, 104px); height: clamp(86px, 8.6vw, 104px); }
  .brand-logo { width: clamp(78px, 8vw, 94px); height: clamp(78px, 8vw, 94px); }
  .brand-title-shell { width: min(100%, 680px); }
}
@media (min-width: 980px) {
  .hero-content { min-height: 280px; align-content: space-between; }
  .brand-title-shell { width: min(100%, 720px); }
  .content-section { padding: 1.15rem; }
}


.scorecard-embed-wrap {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.92);
  min-height: 65vh;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.scorecard-frame {
  display: block;
  width: 100%;
  min-height: clamp(55vh, 72dvh, 78vh);
  border: 0;
  background: #ffffff;
}


.is-hidden { display: none !important; }
.my-schedule-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.my-schedule-search {
  display: grid;
  gap: 0.45rem;
}
.search-label {
  font-weight: 700;
  color: #fff7ff;
}
.search-input {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(98, 215, 255, 0.26);
  background: rgba(10, 14, 28, 0.9);
  color: var(--text);
  font-size: 1rem;
  box-shadow: var(--shadow-blue);
}
.admin-form input,
.admin-form select,
.admin-form textarea {
  font-size: 1rem;
}
.my-schedule-actions {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.action-button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.action-button-label {
  font-size: 0.65rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
}
.view-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.view-toggle-block {
  display: grid;
  gap: 0.45rem;
}
.view-toggle-label {
  margin: 0;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.78);
}
.toggle-button {
  min-height: 2.8rem;
  border-radius: 14px;
  border: 1px solid rgba(128, 160, 255, 0.18);
  background: rgba(12, 18, 35, 0.76);
  color: var(--text);
}
.toggle-button.is-active {
  border-color: rgba(255, 84, 184, 0.38);
  box-shadow: var(--shadow-pink);
}
.my-schedule-status {
  margin-bottom: 1rem;
}
.schedule-day-filter {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 420px);
  margin: 0 0 1rem;
}
.schedule-day-timeline {
  margin-bottom: 1rem;
}
.schedule-card--timeline {
  backdrop-filter: blur(10px);
}
.schedule-kind-badge {
  margin: 0;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #f4f7ff;
}
.schedule-kind-badge--fight {
  color: #8bc4ff;
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.12);
}
.schedule-kind-badge--referee {
  color: #e4a6ff;
  border-color: rgba(213, 108, 255, 0.3);
  background: rgba(213, 108, 255, 0.12);
}
.schedule-kind-badge--workshop {
  color: #8ff6c3;
  border-color: rgba(113, 247, 179, 0.3);
  background: rgba(113, 247, 179, 0.12);
}
.selected-name-highlight {
  color: #fff;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96,220,255,0.18), rgba(255,85,180,0.18));
  border: 1px solid rgba(126,154,255,0.18);
  box-shadow: 0 0 16px rgba(98,215,255,0.12), 0 0 22px rgba(255,84,184,0.1);
}
.summary-grid {
  display: none;
}
.summary-card {
  min-height: 100%;
}
.summary-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 207, 110, 0.92);
}
.summary-main {
  margin: 0.3rem 0;
  font-weight: 700;
}
.my-schedule-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0.9rem;
}
.schedule-card h4 {
  margin: 0.15rem 0 0.35rem;
}
.schedule-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}
.schedule-chip,
.schedule-role {
  margin: 0;
  font-size: 0.88rem;
}
.schedule-chip {
  color: rgba(255, 207, 110, 0.92);
}
.schedule-role {
  color: var(--blue);
  font-weight: 700;
}
.schedule-role--declarant {
  color: #ff9a3d;
}
.schedule-role--table {
  color: #d56cff;
}
.schedule-role--workshop {
  color: #71f7b3;
}
.schedule-role--conflict {
  color: #ff6b6b;
}
.schedule-location {
  margin: 0;
  color: var(--muted);
}
.my-workshops-column {
  display: grid;
  gap: 1rem;
}
.my-workshops-subsection {
  display: grid;
  gap: 0.75rem;
}
.available-workshops-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
}
.available-workshops-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.my-workshops-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.available-workshops-card.is-expanded .my-workshops-toggle-icon {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.48);
}
.available-workshops-card-body {
  display: grid;
  gap: 0.75rem;
}
.available-workshops-card-body[hidden],
.my-workshops-panel[hidden] {
  display: none !important;
}
.my-workshops-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}
.my-workshops-panel {
  display: grid;
  gap: 0.75rem;
}
.my-workshops-subtitle {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.76);
}
.workshop-selector {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  cursor: pointer;
}
.workshop-checkbox {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
}
.workshop-selector-copy {
  display: grid;
  gap: 0.2rem;
}
.schedule-card.workshop.is-selected {
  border-color: rgba(113, 247, 179, 0.4);
  box-shadow: 0 0 0 1px rgba(113, 247, 179, 0.18), 0 0 18px rgba(113, 247, 179, 0.14);
}
.fight-info-btn,
.workshop-info-btn {
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  min-height: unset;
}
.workshop-info-btn {
  margin-top: 0.5rem;
  align-self: flex-start;
}
.workshop-info-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.45rem 1rem;
  margin: 0.85rem 0 0;
}
.workshop-info-dl dt {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.83rem;
  white-space: nowrap;
}
.workshop-info-dl dd { margin: 0; }
.workshop-info-dl .dt-declarant { color: #ff9a3d; }
.workshop-info-dl .dt-assesseur { color: #66d7ff; }
.workshop-info-dl .dt-table     { color: #d56cff; }
.tt-cell[data-workshop-id] { cursor: pointer; }
.tt-cell[data-workshop-id]:hover { filter: brightness(1.25); }
.tt-cell-selected { outline: 2px solid rgba(102, 215, 255, 0.7) !important; outline-offset: -2px; }
.schedule-card { --card-accent-rgb: 128, 160, 255; }
.schedule-card.referee-table {
  --card-accent-rgb: 213, 108, 255;
  border-color: rgba(213, 108, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(213, 108, 255, 0.16), 0 0 18px rgba(213, 108, 255, 0.14);
}
.schedule-card.referee-declarant {
  --card-accent-rgb: 255, 154, 61;
  border-color: rgba(255, 154, 61, 0.44);
  box-shadow: 0 0 0 1px rgba(255, 154, 61, 0.18), 0 0 18px rgba(255, 154, 61, 0.14);
}
.schedule-card.referee-assesseur {
  --card-accent-rgb: 102, 215, 255;
  border-color: rgba(102, 215, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(102, 215, 255, 0.16), 0 0 18px rgba(102, 215, 255, 0.14);
}
.schedule-card.fight-longsword {
  --card-accent-rgb: 96, 165, 250;
  border-color: rgba(96, 165, 250, 0.44);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.18), 0 0 18px rgba(96, 165, 250, 0.14);
}
.schedule-card.fight-sidesword {
  --card-accent-rgb: 255, 134, 149;
  border-color: rgba(255, 134, 149, 0.44);
  box-shadow: 0 0 0 1px rgba(255, 134, 149, 0.18), 0 0 18px rgba(255, 134, 149, 0.14);
}
.schedule-thread {
  position: relative;
  gap: 1rem;
  padding-left: 1.55rem;
  --schedule-thread-line: rgba(102, 215, 255, 0.34);
  --schedule-thread-dot: #66d7ff;
}
.schedule-thread::before {
  content: '';
  position: absolute;
  left: 0.48rem;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), var(--schedule-thread-line), rgba(255,255,255,0.08));
  box-shadow: 0 0 10px var(--schedule-thread-line);
}
.schedule-thread > .card {
  position: relative;
}
.schedule-thread > .card::before {
  content: '';
  position: absolute;
  left: -1.18rem;
  top: 1.1rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  border: 2px solid rgba(8, 12, 28, 0.92);
  background: var(--schedule-thread-dot);
  box-shadow: 0 0 0 4px rgba(102, 215, 255, 0.12), 0 0 14px rgba(102, 215, 255, 0.22);
}
.schedule-thread > .card::after {
  content: '';
  position: absolute;
  left: -0.62rem;
  top: 1.42rem;
  width: 0.62rem;
  height: 2px;
  background: linear-gradient(90deg, var(--schedule-thread-line), rgba(255,255,255,0.08));
}
.schedule-thread--fights {
  --schedule-thread-line: rgba(96, 165, 250, 0.34);
  --schedule-thread-dot: #60a5fa;
}
.schedule-thread--refereeing {
  --schedule-thread-line: rgba(213, 108, 255, 0.28);
  --schedule-thread-dot: #d56cff;
}
.schedule-thread--workshops {
  --schedule-thread-line: rgba(113, 247, 179, 0.3);
  --schedule-thread-dot: #71f7b3;
}

.schedule-thread--fights > .card::before {
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12), 0 0 14px rgba(96, 165, 250, 0.24);
}
.schedule-thread--refereeing > .card::before {
  box-shadow: 0 0 0 4px rgba(213, 108, 255, 0.12), 0 0 14px rgba(213, 108, 255, 0.24);
}
.schedule-thread--workshops > .card::before {
  box-shadow: 0 0 0 4px rgba(113, 247, 179, 0.12), 0 0 14px rgba(113, 247, 179, 0.24);
}
.schedule-thread--crossday {
  --schedule-thread-line: rgba(194, 149, 255, 0.28);
  --schedule-thread-dot: #ff9bd8;
}
.schedule-thread--crossday::before {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.28), rgba(213, 108, 255, 0.28), rgba(113, 247, 179, 0.24));
  box-shadow: 0 0 12px rgba(194, 149, 255, 0.22);
}
.schedule-thread--crossday > .card::before {
  box-shadow: 0 0 0 4px rgba(255, 155, 216, 0.12), 0 0 14px rgba(194, 149, 255, 0.24);
}
.schedule-conflict-card {
  margin-bottom: 1rem;
  border-color: rgba(255, 80, 80, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 80, 80, 0.16), 0 0 18px rgba(255, 80, 80, 0.16);
}
.schedule-conflict-card h3 {
  margin: 0 0 0.5rem;
  color: #ff6b6b;
}
.schedule-conflict-card p {
  margin: 0 0 0.75rem;
}
.schedule-conflict-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.65rem;
}
.schedule-conflict-list li {
  color: rgba(255,255,255,0.92);
}
.workshop-day-divider {
  padding: 0.35rem 0 0.15rem;
}
.workshop-day-label {
  display: inline-block;
  color: #f5c842;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(245, 200, 66, 0.3);
  padding-bottom: 0.15rem;
}
@media (min-width: 860px) {
  .my-schedule-controls {
    align-items: end;
  }
}


body {
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}
.hero-shell {
  padding-top: max(0.8rem, env(safe-area-inset-top));
}
.hero-actions .neo-button {
  gap: 0.65rem;
}
.hero-actions .neo-button span {
  display: inline-flex;
  align-items: center;
}

.button-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 1.35rem;
  object-fit: contain;
}
.action-button-large {
  min-height: 4.2rem;
  width: 4.2rem;
  min-width: 4.2rem;
  padding: 0.4rem;
}
.action-button-icon {
  width: 3.4rem;
  height: 3.4rem;
  flex-basis: 3.4rem;
}
.button-icon-large {
  width: 1.7rem;
  height: 1.7rem;
  flex-basis: 1.7rem;
}
.button-icon-invert {
  filter: brightness(0) invert(1);
}
.quick-nav {
  position: sticky;
  top: max(0.35rem, env(safe-area-inset-top));
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 0.55rem;
  width: min(1120px, calc(100% - 1.4rem));
  margin: 0.25rem auto 0.85rem;
  padding: 0.55rem;
  border-radius: 20px;
  border: 1px solid rgba(126, 154, 255, 0.18);
  background: rgba(10, 14, 28, 0.76);
  box-shadow: 0 14px 40px rgba(0,0,0,0.2);
  backdrop-filter: blur(12px);
}
.quick-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  padding: 0.65rem 0.75rem;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid rgba(126, 154, 255, 0.12);
  background: linear-gradient(180deg, rgba(14, 19, 38, 0.94), rgba(18, 16, 36, 0.82));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.quick-nav-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 1.4rem;
  object-fit: contain;
}
.quick-nav-link.is-active {
  border-color: rgba(255, 114, 209, 0.3);
  box-shadow: var(--shadow-pink);
}

body.is-hero-condensed .hero-shell {
  padding-bottom: 0.3rem;
}
body.is-hero-condensed .hero-card {
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.24);
}
body.is-hero-condensed .hero-content {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
  gap: 0.65rem;
}
body.is-hero-condensed .brand-logo-shell {
  width: clamp(60px, 7.6vw, 76px);
  height: clamp(60px, 7.6vw, 76px);
}
body.is-hero-condensed .brand-logo {
  width: clamp(52px, 7vw, 68px);
  height: clamp(52px, 7vw, 68px);
}
body.is-hero-condensed .eyebrow {
  margin-bottom: 0.08rem;
}
body.is-hero-condensed .hero-meta {
  gap: 0.38rem;
}
body.is-hero-condensed .meta-pill {
  min-height: 2rem;
  padding: 0.38rem 0.62rem;
}
body.is-hero-condensed .brand-title-shell {
  width: min(100%, 360px);
}
body.is-hero-condensed .hero-actions {
  gap: 0.55rem;
}
body.is-hero-condensed .hero-actions .neo-button {
  min-height: 2.8rem;
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
}
.table-swipe-hint {
  margin: 0 0 0.55rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.86rem;
  text-align: right;
  position: relative;
  overflow: hidden;
}
.table-swipe-hint::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -22%;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  opacity: 0.42;
  animation: shimmer-swipe-hint 2.8s ease-in-out infinite;
}
@keyframes shimmer-swipe-hint {
  0%, 55% { transform: translateX(0); opacity: 0; }
  65% { opacity: 0.3; }
  100% { transform: translateX(700%); opacity: 0; }
}
@media (max-width: 719px) {
  .page-glow { opacity: 0.38; filter: blur(72px); }
  .hero-shell { padding: max(0.35rem, env(safe-area-inset-top)) 0.65rem 0.35rem; }
  .hero-card { border-radius: 22px; }
  .hero-content { padding: 0.85rem 0.85rem 0.95rem; gap: 0.85rem; }
  .hero-card-bg { opacity: 0.32; background-position: center top; }
  .brand-block { align-items: center; gap: 0.75rem; }
  .brand-logo-shell { width: 74px; height: 74px; }
  .brand-logo { width: 64px; height: 64px; }
  .brand-title-shell { width: min(100%, 420px); }
  #appTitle.companion-app-title { font-size: 1rem; letter-spacing: 0.11em; }
  .hero-meta { gap: 0.45rem; }
  .meta-pill { min-height: 2rem; padding: 0.4rem 0.65rem; font-size: 0.8rem; }
  .hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .hero-actions .neo-button { min-height: 2.9rem; padding: 0.65rem 0.7rem; font-size: 0.9rem; }
  .button-icon { width: 1.15rem; height: 1.15rem; flex-basis: 1.15rem; }
  .button-icon-large { width: 1.45rem; height: 1.45rem; flex-basis: 1.45rem; }
  .quick-nav-icon { width: 1.2rem; height: 1.2rem; flex-basis: 1.2rem; }
  .section-title-icon { width: 2.1rem; height: 2.1rem; flex-basis: 2.1rem; }
  .quick-nav { top: max(0.25rem, env(safe-area-inset-top)); width: calc(100% - 1rem); margin: 0 auto 0.7rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-nav-link { min-height: 2.75rem; font-size: 0.9rem; padding: 0.55rem 0.65rem; }
  .app-shell { gap: 0.9rem; padding: 0 0.65rem 1.1rem; }
  .content-section { padding: 0.8rem; }
  .section-title-row { margin-bottom: 0.75rem; }
  .table-swipe-hint { text-align: left; font-size: 0.76rem; }
  .timetable-grid .tt-col-time { width: 5.15ch; }
  .timetable-grid th, .timetable-grid td { min-width: 132px; padding: 0.55rem 0.5rem; font-size: 0.98rem; }
  .timetable-grid .tt-time {
    padding: 0.22rem 0.12rem;
    font-size: 0.82rem;
    line-height: 1.06;
  }
  .tab-list { gap: 0.5rem; }
  .tab-button { flex: 1 1 calc(50% - 0.5rem); padding: 0.65rem 0.8rem; }
  .scorecard-embed-wrap { min-height: 50vh; }
  .scorecard-frame { min-height: 56dvh; }
}

@media (max-width: 720px) {
  .hero-meta-stack { top: 0.6rem; right: 0.65rem; gap: 0.28rem; }
  .hero-version-badge, .hero-users-badge { font-size: 0.72rem; padding: 0.28rem 0.48rem; }
  .hero-users-badge { font-size: 0.68rem; }
  .timetable-grid .tt-col-time { width: 4.95ch; }
  .timetable-grid .tt-time { font-size: 0.8rem; padding: 0.18rem 0.1rem; }
}

.suggestion-row { margin-top: 0.55rem; display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.suggestion-chip {
  border: 1px solid rgba(126, 154, 255, 0.24);
  background: rgba(12, 18, 35, 0.78);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 12, 0.74);
  backdrop-filter: blur(6px);
}
.modal-dialog {
  position: relative;
  width: min(680px, calc(100% - 1.4rem));
  margin: max(0.9rem, env(safe-area-inset-top)) auto;
  background: linear-gradient(180deg, rgba(12, 16, 34, 0.96), rgba(8, 11, 24, 0.96));
  border: 1px solid rgba(126, 154, 255, 0.2);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 22px 60px rgba(0,0,0,0.34);
  max-height: calc(100dvh - 2 * max(0.9rem, env(safe-area-inset-top)));
  overflow-y: auto;
}
.modal-dialog.fight-longsword {
  border-color: rgba(96, 165, 250, 0.5);
  background: linear-gradient(160deg, rgba(96, 165, 250, 0.09) 0%, rgba(12, 16, 34, 0.96) 55%);
}
.modal-dialog.fight-sidesword {
  border-color: rgba(255, 134, 149, 0.5);
  background: linear-gradient(160deg, rgba(255, 134, 149, 0.09) 0%, rgba(12, 16, 34, 0.96) 55%);
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.8rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(16, 18, 36, 0.86);
  color: var(--text);
  font-size: 1.25rem;
}
.admin-panel { display: grid; gap: 1rem; }
.admin-panel-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; padding-right: 2.4rem; }
.admin-form { display: grid; gap: 0.65rem; }
.admin-textarea { resize: vertical; min-height: 7rem; }
.admin-actions { display: flex; gap: 0.75rem; justify-content: flex-start; flex-wrap: wrap; }
.admin-separator { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 0.25rem 0; }
.admin-announcement-list { display: grid; gap: 0.75rem; }
.admin-schedule-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.admin-schedule-field { display: grid; gap: 0.3rem; }
@media (max-width: 540px) { .admin-schedule-row { grid-template-columns: 1fr; } }
.announce-schedule-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.announce-badge-scheduled { background: rgba(102,215,255,0.14); border: 1px solid rgba(102,215,255,0.3); color: var(--blue); }
.announce-badge-expired   { background: rgba(255,139,139,0.12); border: 1px solid rgba(255,139,139,0.28); color: var(--danger); }
.admin-announcement-card.is-expired { opacity: 0.6; }
.admin-announcement-card {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(126,154,255,0.18);
  background: rgba(12, 18, 35, 0.75);
}
.admin-level-info { border-color: rgba(84,214,134,0.28); }
.admin-level-warning { border-color: rgba(255,215,77,0.28); }
.admin-level-urgent { border-color: rgba(255,104,104,0.32); }
.admin-delete-button { min-height: 2.4rem; padding: 0.5rem 0.8rem; }
#adminButton { min-height: 3rem; }
@media (max-width: 767px) {
  .announcement-inner { grid-template-columns: 1fr; display: grid; }
  .announcement-meta { justify-items: start; text-align: left; }
  .modal-dialog { width: calc(100% - 0.8rem); }
  .admin-panel-head, .admin-announcement-card { grid-template-columns: 1fr; display: grid; }
}


@media (max-width: 719px) {
  .action-button-large { min-height: 4rem; width: 4rem; min-width: 4rem; padding: 0.4rem; }
  .action-button-icon { width: 3.2rem; height: 3.2rem; flex-basis: 3.2rem; }
  .meta-refresh-button { width: 2.55rem; min-width: 2.55rem; min-height: 2.55rem; }
  .meta-refresh-icon { width: 1.7rem; height: 1.7rem; }
}


#adminButton .button-icon { width: 1.45rem; height: 1.45rem; flex-basis: 1.45rem; }

.hero-actions #adminButton .button-icon-large { width: 1.55rem; height: 1.55rem; }


/* v1.40 brighter active states */
.tab-button.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(28, 34, 70, 0.98), rgba(28, 19, 58, 0.92));
  border-color: rgba(255, 123, 214, 0.56);
  box-shadow: 0 0 0 1px rgba(255,123,214,0.18), 0 0 26px rgba(255,86,191,0.26), 0 0 38px rgba(99,215,255,0.18);
  text-shadow: 0 0 10px rgba(255,255,255,0.12);
}
.tab-button.is-active::before { opacity: 1; }
.quick-nav-link.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(28, 34, 70, 0.98), rgba(26, 18, 54, 0.92));
  border-color: rgba(255, 123, 214, 0.56);
  box-shadow: 0 0 0 1px rgba(255,123,214,0.18), 0 0 26px rgba(255,86,191,0.24), 0 0 38px rgba(99,215,255,0.18);
}
.toggle-button.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(28, 34, 70, 0.98), rgba(26, 18, 54, 0.92));
  border-color: rgba(255, 123, 214, 0.56);
  box-shadow: 0 0 0 1px rgba(255,123,214,0.18), 0 0 22px rgba(255,86,191,0.2), 0 0 32px rgba(99,215,255,0.14);
}
.admin-tab-list { margin-bottom: 0.5rem; }
.admin-tab-button { min-width: 160px; }
.admin-tab-panel { display: none; }
.admin-tab-panel.is-active { display: block; animation: panel-slide-fade 0.28s ease; }
.admin-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(126,154,255,0.14);
  background: rgba(12, 18, 35, 0.72);
  color: var(--text);
}
.admin-toggle-row input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  accent-color: #66d7ff;
}

#availableWorkshopsPanel {
  max-height: 28rem;
  overflow: auto;
  padding-right: 0.2rem;
}
#availableWorkshopsPanel .schedule-card,
#myWorkshops .schedule-card,
#myScheduleTimeline .schedule-card {
  padding: 0.8rem 0.9rem;
}
#availableWorkshopsPanel .schedule-card h4,
#myWorkshops .schedule-card h4,
#myScheduleTimeline .schedule-card h4 {
  font-size: 0.98rem;
}
#availableWorkshopsPanel .schedule-chip,
#myWorkshops .schedule-chip,
#myScheduleTimeline .schedule-chip {
  font-size: 0.74rem;
}

.banner-warning {
  margin-top: 0.35rem;
  border-color: rgba(255, 193, 94, 0.34);
  background: linear-gradient(135deg, rgba(54, 35, 12, 0.92), rgba(40, 24, 10, 0.9));
  color: #fff2d8;
  box-shadow: 0 0 0 1px rgba(255, 193, 94, 0.12), 0 0 20px rgba(255, 170, 93, 0.12);
}

.summary-grid.is-active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0.9rem;
  margin: 0 0 1rem;
}
.summary-grid.is-active.event-day-dashboard {
  grid-template-columns: minmax(0, 1fr);
}
.event-day-card {
  min-width: 0;
}
.event-day-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.event-day-card--overview {
  background:
    radial-gradient(circle at top right, rgba(255, 210, 122, 0.12), transparent 32%),
    radial-gradient(circle at bottom left, rgba(102, 215, 255, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(17, 22, 45, 0.96), rgba(10, 13, 29, 0.92));
}
.event-day-card--empty {
  border-style: dashed;
}
.event-day-overview-head {
  display: grid;
  gap: 1rem;
}
.event-day-heading {
  display: grid;
  gap: 0.45rem;
}
.event-day-title {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.35rem);
  line-height: 1.05;
  color: #fffaf3;
}
.event-day-countdown {
  display: grid;
  gap: 0.28rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 10, 24, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.event-day-countdown--current {
  border-color: rgba(113, 247, 179, 0.28);
  background: linear-gradient(180deg, rgba(17, 44, 34, 0.82), rgba(10, 22, 18, 0.76));
}
.event-day-countdown--upcoming {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(180deg, rgba(14, 32, 56, 0.82), rgba(10, 20, 40, 0.76));
}
.event-day-countdown--completed {
  border-color: rgba(255, 193, 94, 0.24);
  background: linear-gradient(180deg, rgba(54, 35, 12, 0.82), rgba(32, 22, 10, 0.76));
}
.event-day-countdown--idle {
  border-color: rgba(255,255,255,0.12);
}
.event-day-countdown-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.event-day-countdown-main {
  margin: 0;
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.event-day-countdown-meta {
  margin: 0;
  color: rgba(255,255,255,0.76);
}
.event-day-card--alerts {
  border-color: rgba(255, 114, 209, 0.22);
}
.event-day-alert-list {
  display: grid;
  gap: 0.75rem;
}
.event-day-alert {
  display: grid;
  gap: 0.28rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 116, 181, 0.2);
  background: linear-gradient(180deg, rgba(58, 17, 43, 0.75), rgba(33, 11, 27, 0.74));
}
.event-day-alert-label,
.event-day-alert-meta {
  margin: 0;
  font-size: 0.78rem;
}
.event-day-alert-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 207, 110, 0.92);
}
.event-day-alert-title,
.event-day-alert-message {
  margin: 0;
}
.event-day-alert-title {
  font-size: 1rem;
}
.event-day-alert-message,
.event-day-alert-meta {
  color: rgba(255,255,255,0.78);
}
.rank-section {
  margin-bottom: 0.9rem;
}
.rank-section .summary-label {
  margin-bottom: 0.5rem;
}
.rank-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.rank-card {
  text-align: center;
}
.rank-value {
  margin: 0.4rem 0 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.rank-disclaimer {
  margin: 0.4rem 0 0;
  font-size: 0.74rem;
  color: var(--muted);
  font-style: italic;
}
.summary-entry-line {
  display: grid;
  gap: 0.28rem;
}
.summary-entry-line + .summary-entry-line {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.summary-sub,
.summary-empty {
  margin: 0;
  color: var(--muted);
}
.summary-timing-chip {
  display: inline-flex;
  width: fit-content;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid rgba(126,154,255,0.18);
  background: rgba(255,255,255,0.06);
}
.summary-timing-chip--upcoming,
.schedule-countdown-chip--upcoming {
  color: #98ccff;
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.12);
}
.summary-timing-chip--current,
.schedule-countdown-chip--current {
  color: #8ff6c3;
  border-color: rgba(113, 247, 179, 0.34);
  background: rgba(113, 247, 179, 0.14);
}
@media (min-width: 860px) {
  .summary-grid.is-active.event-day-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-day-card--overview,
  .event-day-card--alerts {
    grid-column: 1 / -1;
  }
  .event-day-overview-head {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
    align-items: center;
  }
}
.schedule-time-filter {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 460px);
  margin: 0 0 1rem;
}
.section-heading-collapsible {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}
.collapsible-section-body[hidden] {
  display: none !important;
}
.section-collapse-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(12, 18, 35, 0.7);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.section-collapse-icon {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}
.collapsible-section.is-collapsed,
.developer-time-card.is-collapsed {
  padding-bottom: 0.9rem;
}
.developer-time-card {
  margin-bottom: 1rem;
}
.developer-time-grid {
  display: grid;
  gap: 0.8rem;
}
.developer-time-actions {
  flex-wrap: wrap;
}
.schedule-card-meta-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.schedule-countdown-chip {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}
.schedule-card.is-current {
  box-shadow: 0 0 0 1px rgba(113, 247, 179, 0.18), 0 0 24px rgba(113, 247, 179, 0.12);
}
@keyframes now-border-pulse {
  0%, 100% {
    border-color: rgba(255, 79, 191, 0.45);
    box-shadow: 0 0 0 1px rgba(255,79,191,0.15), 0 0 20px rgba(255,79,191,0.15);
  }
  40% {
    border-color: rgba(255, 79, 191, 1);
    box-shadow: 0 0 0 2px rgba(255,79,191,0.55), 0 0 42px rgba(255,79,191,0.5);
  }
}
@keyframes next-border-pulse {
  0%, 100% {
    border-color: rgba(var(--card-accent-rgb), 0.2);
    box-shadow: none;
  }
  50% {
    border-color: rgba(var(--card-accent-rgb), 0.7);
    box-shadow: 0 0 0 1px rgba(var(--card-accent-rgb), 0.22), 0 0 24px rgba(var(--card-accent-rgb), 0.22);
  }
}
.schedule-card.is-now {
  animation: now-border-pulse 1.4s ease-in-out infinite;
}
.schedule-card.is-next {
  animation: next-border-pulse 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .schedule-card.is-now {
    border-color: rgba(255, 79, 191, 0.5);
    box-shadow: 0 0 0 1px rgba(255,79,191,0.22), 0 0 28px rgba(255,79,191,0.18);
    animation: none;
  }
  .schedule-card.is-next {
    border-color: rgba(var(--card-accent-rgb), 0.45);
    animation: none;
  }
}
.schedule-card.is-completed {
  opacity: 0.72;
}
.schedule-timing-tag,
.view-mode-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid;
  flex-shrink: 0;
}
.schedule-timing-tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.schedule-timing-tag--now {
  color: #ff9ef5;
  border-color: rgba(255, 79, 191, 0.5);
  background: rgba(255, 79, 191, 0.15);
}
.schedule-timing-tag--next {
  color: rgba(255, 207, 110, 0.95);
  border-color: rgba(255, 207, 110, 0.35);
  background: rgba(255, 207, 110, 0.1);
}
.schedule-card-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.fight-info-highlight {
  color: #ffd96e;
  font-weight: 700;
}
.admin-card-actions {
  display: grid;
  gap: 0.55rem;
}
.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0.9rem;
}
.diagnostics-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}
.diagnostics-card-wide {
  grid-column: 1 / -1;
}
.diagnostics-card h4 {
  margin: 0;
}
.diagnostics-stat {
  display: grid;
  gap: 0.15rem;
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(126,154,255,0.12);
  background: rgba(12, 18, 35, 0.56);
}
.diagnostics-stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.diagnostics-stat-value {
  color: var(--text);
  word-break: break-word;
}
.diagnostics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.diagnostics-issues {
  display: grid;
  gap: 0.75rem;
}
.diagnostics-issue {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(12, 18, 35, 0.72);
}
.diagnostics-issue-warn {
  border-color: rgba(255, 215, 77, 0.28);
}
.diagnostics-issue-error {
  border-color: rgba(255, 104, 104, 0.32);
}
.diagnostics-issue-head,
.diagnostics-issue-message {
  margin: 0;
}
.diagnostics-issue-head {
  font-size: 0.8rem;
  color: var(--muted);
}
.diagnostics-issue-message {
  margin-top: 0.35rem;
}
.diagnostics-issue-extra {
  margin: 0.55rem 0 0;
  padding: 0.7rem;
  border-radius: 12px;
  background: rgba(8, 12, 28, 0.75);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(214, 236, 255, 0.88);
  font-size: 0.78rem;
  overflow: auto;
}
.admin-edit-button,
.admin-delete-button {
  min-height: 2.4rem;
  padding: 0.5rem 0.8rem;
}
@media (max-width: 767px) {
  .schedule-time-filter,
  .schedule-day-filter {
    width: 100%;
  }
  .section-heading-collapsible {
    align-items: center;
  }
  .developer-time-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .diagnostics-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.fighter-gallery-viewer {
  position: fixed;
  inset: 0;
  z-index: 139;
  background: rgba(3, 6, 16, 0.96);
  display: grid;
  grid-template-rows: auto 1fr;
  padding: max(0.8rem, env(safe-area-inset-top)) max(0.8rem, env(safe-area-inset-right)) max(0.8rem, env(safe-area-inset-bottom)) max(0.8rem, env(safe-area-inset-left));
}
.fighter-gallery-viewer-body {
  min-height: 0;
  overflow: auto;
  padding: 0.5rem 0 1rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.fighter-gallery-thumb-counter {
  margin: 0.4rem 0.5rem 0.6rem;
  font-size: 0.78rem;
  color: rgba(245,247,255,0.5);
  text-align: center;
}
.fighter-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.9rem;
  align-items: start;
}
.fighter-gallery-card {
  width: 100%;
  text-align: left;
  padding: 0.65rem;
  border-radius: 22px;
  border: 1px solid rgba(126,154,255,0.16);
  background: linear-gradient(180deg, rgba(10, 16, 34, 0.96), rgba(8, 12, 28, 0.94));
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  color: var(--text);
}
.fighter-gallery-card:hover,
.fighter-gallery-card:focus-visible {
  border-color: rgba(126,154,255,0.34);
  box-shadow: 0 18px 48px rgba(0,0,0,0.36), 0 0 0 1px rgba(126,154,255,0.18);
}
.fighter-gallery-thumb-wrap {
  aspect-ratio: 0.7 / 1;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(6, 10, 22, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.fighter-gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 1;
  transition: opacity 160ms ease;
}
.fighter-gallery-thumb.is-pending {
  opacity: 0.01;
}
.fighter-gallery-thumb-placeholder {
  padding: 0.75rem;
  text-align: center;
  color: rgba(255,255,255,0.68);
  font-size: 0.82rem;
}
.fighter-gallery-card h4 {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  line-height: 1.35;
}
.fighter-gallery-card p {
  margin: 0.22rem 0 0;
  color: rgba(255,255,255,0.66);
  font-size: 0.78rem;
}
.section-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.section-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  min-height: 1.8rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(126,154,255,0.22);
  background: rgba(12, 18, 35, 0.8);
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
@media (max-width: 720px) {
  .fighter-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Landscape adjustments ──────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-shell { padding-top: max(0.25rem, env(safe-area-inset-top)); padding-bottom: 0.25rem; }
  .hero-content { padding: 0.5rem 0.85rem; gap: 0.5rem; }
  .brand-title-shell { width: min(100%, 320px); }
  .brand-logo-shell { width: 52px; height: 52px; }
  .brand-logo { width: 44px; height: 44px; }
  .hero-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; }
  .hero-actions .neo-button { min-height: 2.6rem; font-size: 0.85rem; }
  .quick-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick-nav-link { min-height: 2.5rem; }
  .modal-dialog { max-height: calc(100dvh - 1rem); overflow-y: auto; }
  .fighter-card-viewer,
  .fighter-gallery-viewer { padding: max(0.4rem, env(safe-area-inset-top)) max(0.4rem, env(safe-area-inset-right)) max(0.4rem, env(safe-area-inset-bottom)) max(0.4rem, env(safe-area-inset-left)); }
  .scorecard-frame { min-height: 70dvh; }
}

/* ── Backdrop-filter fallback for weak GPUs ─────────────────── */
@media (max-width: 719px) {
  .page-glow { display: none; }
  body::before { opacity: 0.08; }
}
@media (update: slow) {
  .modal-backdrop { backdrop-filter: none; background: rgba(2, 4, 12, 0.88); }
  .quick-nav { backdrop-filter: none; background: rgba(8, 12, 28, 0.96); }
  .meta-pill { backdrop-filter: none; }
  .page-glow { display: none; }
  body::before { display: none; }
}
