  :root {
    --bg: #eef1f4;
    --surface: #ffffff;
    --surface-2: #0f2238;
    --surface-3: #112742;
    --text: #142033;
    --muted: #687487;
    --line: #d9e0e8;
    --accent: #f2c94c;
    --accent-2: #ffd84d;
    --shadow: 0 10px 24px rgba(15, 34, 56, 0.10);
    --radius: 16px;
    --radius-lg: 22px;
    --max: 1180px;
  }

  * { box-sizing: border-box; }
  html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

  body.modal-open {
    overflow: hidden;
  }

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.beta-notify-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200000;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 24px));
}

.beta-notify {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(17, 39, 66, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(15, 34, 56, 0.18);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
  backdrop-filter: blur(10px);
}

.beta-notify.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.beta-notify.is-leaving {
  transform: translateY(8px);
  opacity: 0;
}

.beta-notify--error {
  border-color: rgba(174, 44, 36, 0.24);
  background: linear-gradient(180deg, rgba(255, 245, 244, 0.98), rgba(255, 236, 233, 0.98));
}

.beta-notify--success {
  border-color: rgba(47, 125, 50, 0.22);
  background: linear-gradient(180deg, rgba(241, 251, 242, 0.98), rgba(229, 247, 231, 0.98));
}

.beta-notify--info {
  border-color: rgba(17, 39, 66, 0.12);
}

.beta-notify__body {
  display: grid;
  gap: 6px;
}

.beta-notify__title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #10233a;
}

.beta-notify__message {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(20, 32, 51, 0.84);
}

.beta-notify__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.beta-notify__action {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #10233a;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.beta-notify__action.is-secondary {
  background: #f2c94c;
  color: #3f2d00;
}

.beta-notify__action.is-danger {
  background: #b3352f;
}

.beta-notify__action.is-ghost {
  background: rgba(16, 35, 58, 0.08);
  color: #10233a;
}

  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; }

  .container {
    width: min(var(--max), calc(100% - 24px));
    margin: 0 auto;
  }

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: linear-gradient(
    180deg,
    rgba(20, 39, 66, 0.72) 0%,
    rgba(15, 34, 56, 0.58) 100%
  );
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

  .topbar-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .brand-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: #0f2238;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.16);
    flex: 0 0 auto;
  }

  .brand-copy {
    min-width: 0;
  }

  .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.20em;
    font-size: 10px;
    color: rgba(255,255,255,0.66);
    margin-bottom: 4px;
  }

  .brand h1 {
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.05;
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 15px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .nav-item {
    position: relative;
    display: flex;
    align-items: center;
  }

  .nav-item--has-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
  }

  .nav-link {
    display: inline-flex;
    align-items: center;
  }

  .nav-link--dropdown::after {
    content: "▾";
    margin-left: 8px;
    font-size: 10px;
    line-height: 1;
  }

.nav a {
  display: inline-block;
  padding: 10px;
  border-radius: 8px;
  color: rgba(255,255,255,0.88);
  transition: 180ms ease;
}

.nav a:hover,
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link {
  background-color: #f2c94c;
  color: #000;
  cursor: pointer;
}

  .nav-dropdown {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    min-width: 320px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(20, 39, 66, 0.98) 0%, rgba(15, 34, 56, 0.96) 100%);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 18px 36px rgba(0,0,0,0.24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    pointer-events: none;
    z-index: 40;
  }

  .nav-item--has-dropdown:hover .nav-dropdown,
  .nav-item--has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    cursor: pointer;
  }

  .nav-dropdown__group {
    position: relative;
  }

  .nav-dropdown__group::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 18px;
    height: 100%;
  }

  .nav-dropdown__group + .nav-dropdown__group {
    margin-top: 8px;
  }

  .nav-dropdown__group-label {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.88);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .nav-dropdown__group-label::after {
    content: "›";
    float: right;
    font-size: 14px;
    line-height: 1;
  }

  .nav-dropdown__group:hover > .nav-dropdown__group-label,
  .nav-dropdown__group:focus-within > .nav-dropdown__group-label {
    background-color: #f2c94c;
    color: #000;
  }

  .nav-flyout {
    position: absolute;
    top: -15px;
    left: calc(100% + 10px);
    min-width: 260px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(20, 39, 66, 0.98) 0%, rgba(15, 34, 56, 0.96) 100%);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 18px 36px rgba(0,0,0,0.24);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    pointer-events: none;
    display: grid;
    gap: 4px;
  }

  .nav-dropdown__group:hover > .nav-flyout,
  .nav-dropdown__group:focus-within > .nav-flyout {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-flyout::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -10px;
    width: 10px;
  }

  .nav-flyout a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.88);
  }

  .nav-flyout a:hover {
    background-color: #f2c94c;
    color: #000;
  }

  .nav-flyout__group {
    position: relative;
  }

  .nav-flyout__group::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 18px;
    height: 100%;
  }

  .nav-flyout__label {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.88);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .nav-flyout__label::after {
    content: "›";
    float: right;
    font-size: 14px;
    line-height: 1;
  }

  .nav-flyout__group:hover > .nav-flyout__label,
  .nav-flyout__group:focus-within > .nav-flyout__label {
    background-color: #f2c94c;
    color: #000;
  }

  .nav-flyout--nested {
    top: -12px;
    left: calc(100% + 20px);
  }

  .nav-flyout__group > .nav-flyout--nested {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    pointer-events: none;
  }

  .nav-flyout__group:hover > .nav-flyout--nested,
  .nav-flyout__group:focus-within > .nav-flyout--nested {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }

  .top-actions {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .nav-toggle__bars {
    display: inline-grid;
    gap: 4px;
  }

  .nav-toggle__bars span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-nav {
    display: none;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(20, 39, 66, 0.96) 0%, rgba(15, 34, 56, 0.94) 100%);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 18px 36px rgba(0,0,0,0.22);
  }

  .mobile-nav.is-open {
    display: block;
  }

  .mobile-nav .nav {
    display: grid;
    gap: 6px;
    justify-content: stretch;
  }

  .mobile-nav .nav a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
  }

  .mobile-nav .nav-item {
    display: grid;
    gap: 8px;
  }

  .mobile-nav .nav-link--dropdown::after {
    content: "▾";
    margin-left: auto;
    font-size: 11px;
  }

  .mobile-nav .nav-dropdown {
    position: static;
    min-width: 0;
    margin-top: 6px;
    padding: 0 0 0 12px;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    display: none;
  }

  .mobile-nav .nav-item.is-open > .nav-dropdown {
    display: grid;
    gap: 8px;
  }

  .mobile-nav .nav-dropdown__group + .nav-dropdown__group {
    margin-top: 10px;
  }

  .mobile-nav .nav-dropdown__group-label::after {
    content: "▾";
    float: right;
    font-size: 11px;
  }

  .mobile-nav .nav-flyout {
    position: static;
    min-width: 0;
    margin-top: 8px;
    padding: 0 0 0 12px;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    display: none;
  }

  .mobile-nav .nav-dropdown__group.is-open > .nav-flyout {
    display: grid;
    gap: 6px;
  }

  .mobile-nav .nav-flyout__group.is-open > .nav-flyout--nested {
    display: grid;
    gap: 6px;
  }

  .mobile-nav .nav-flyout a {
    background: rgba(255,255,255,0.03);
  }

  .mobile-nav .nav-flyout__group {
    display: grid;
    gap: 8px;
  }

  .mobile-nav .nav-flyout__group::after {
    display: none;
  }

  .mobile-nav .nav-flyout__label {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.88);
  }

  .mobile-nav .nav-flyout__label::after {
    content: "";
  }

  .mobile-nav .nav-flyout--nested {
    position: static;
    min-width: 0;
    margin-top: 0;
    padding: 0 0 0 12px;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  }

  .btn:hover {
    transform: translateY(-1px);
    background-color: #f2c94c;
    color: #000;  
  }

  .btn-outline {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.14);
  }

  .btn-primary {
    background: var(--accent);
    color: #162337;
    box-shadow: 0 10px 18px rgba(242, 201, 76, 0.22);
  }

  .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 800;
  transition: 160ms ease;
}

.btn-secondary {
  background: #223243;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
}

  .user-chip {
    display: inline-flex;
    align-items: center;
    max-width: 220px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.94);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
  }

  .user-chip:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
  }

  .login-modal[hidden] {
    display: none;
  }

  .login-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
  }

  .login-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 31, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .login-modal__panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    border-radius: 20px;
    background: linear-gradient(180deg, #223243 0%, #1c2a38 100%);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 18px 44px rgba(0,0,0,0.28);
    padding: 22px;
    color: #fff;
  }

  .login-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.86);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
  }

  .login-modal__close:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
  }

  .login-modal__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.20em;
    font-size: 10px;
    color: rgba(255,255,255,0.58);
    margin-bottom: 8px;
    font-weight: 700;
  }

  .login-modal__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.04;
    color: var(--accent-2);
  }

  .login-modal__subtitle {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.78);
  }

  .login-form {
    margin-top: 18px;
    display: grid;
    gap: 14px;
  }

  .login-form__field {
    display: grid;
    gap: 6px;
  }

  .login-form__field span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
  }

  .login-form__field input {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    background: rgba(9, 18, 29, 0.46);
    color: #fff;
    padding: 12px 14px;
    font: inherit;
  }

  .login-form__field input:focus {
    outline: none;
    border-color: rgba(242, 201, 76, 0.72);
    box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.18);
  }

  .login-form__message {
    min-height: 18px;
    font-size: 13px;
    color: rgba(255,255,255,0.72);
  }

  .login-form__message.is-error {
    color: #ffb9b9;
  }

  .login-form__message.is-success {
    color: #bff7c8;
  }

  .login-form__submit {
    width: 100%;
  }

.hero {
  position: relative;
  min-height: 220px;
  color: white;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 18, 31, 0.38) 0%, rgba(8, 18, 31, 0.20) 42%, rgba(8, 18, 31, 0.15) 75%),
    url('../style/images/tf_banner.png') 60% 35% / 112% auto no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 213, 91, 0.12), transparent 24%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 110px 0 28px;
  display: grid;
  grid-template-columns: 1.4fr 0.75fr;
  gap: 16px;
  align-items: center;
  min-height: 220px;
}


.hero-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 560px;
}

.hero-copy p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  max-width: 460px;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.hero-panel {
  justify-self: end;
  width: 100%;
  max-width: 200px;
  background: rgba(12, 26, 44, 0.70);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.14);
  padding: 12px;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-panel .panel-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 9px;
  color: rgba(255,255,255,0.58);
}

.hero-panel h3 {
  margin: 6px 0 5px;
  font-size: 18px;
}

.hero-panel p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.35;
  font-size: 12px;
}

.hero-panel .logo {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}


.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.stat {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 8px 5px;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--accent-2);
  font-size: 15px;
  margin-bottom: 1px;
}

.stat span {
  font-size: 9px;
  color: rgba(255,255,255,0.68);
}

  .section {
    display: flex;
    justify-content: center;
    padding: 30px 0;
  }

  .section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
  }

  .section-head .overline {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 700;
  }

  .section-head h3 {
    margin: 0;
    font-size: clamp(22px, 2.5vw, 32px);
    line-height: 1.04;
  }

  .section-head a {
    font-size: 12px;
    font-weight: 800;
    color: #7a5600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .events-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.events-section .section-head {
  width: 100%;
  max-width: 100%;
}

.events-section .ops-grid {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.section-head-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}


.ops-grid {
  display: grid;
  grid-template-columns: repeat(var(--event-columns, 4), minmax(0, 1fr));
  gap: 12px;
}

.op-card {
  position: relative;
  min-height: 252px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #223243 0%, #1c2a38 100%);
  box-shadow: var(--shadow);
}

.op-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center 59%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.34;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 0;
}

.op-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 20, 30, 0.48) 0%,
    rgba(18, 30, 44, 0.68) 34%,
    rgba(20, 33, 47, 0.94) 100%
  );
  z-index: 0;
}

.op-card:hover {
    cursor: pointer;
}

.op-card:hover::before {
  opacity: 0.28;
  transform: scale(1.03);
}

.op-card > * {
  position: relative;
  z-index: 1;
}

.op-card-head {
  display: grid;
  gap: 8px;
}

.op-card-head__kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.op-card-head__countdown-meta {
  display: grid;
  gap: 3px;
  color: #fff4c0;
}

.op-card-head__countdown-label {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.op-card-head__countdown-meta h4 {
  margin: 0;
  font-size: 12px !important;
  line-height: 1.02 !important;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.op-card-head__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.op-card .tag {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(242, 201, 76, 0.18);
  color: var(--accent-2);
  border: 1px solid rgba(242, 201, 76, 0.28);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.op-card .tag--training {
  background: rgba(242, 201, 76, 0.18);
  color: var(--accent-2);
  border-color: rgba(242, 201, 76, 0.28);
}

.op-card .tag--combat {
  background: rgba(232, 74, 95, 0.18);
  color: #ff8d9d;
  border-color: rgba(232, 74, 95, 0.34);
}

.op-card .tag--ext-training {
  background: rgba(86, 163, 255, 0.18);
  color: #8cc5ff;
  border-color: rgba(86, 163, 255, 0.34);
}

.op-card-date {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.countdown strong {
  margin: 0;
}

.op-card h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.04;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.28);
}

.op-meta {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.op-meta__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(12, 24, 36, 0.46);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.3;
}

.op-meta__label {
  color: rgba(255,255,255,0.66);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.op-meta strong {
  margin: 0;
  text-align: right;
  color: rgba(255,255,255,0.94);
  font-size: 13px;
  font-weight: 800;
}

.countdown {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 216, 77, 0.14), rgba(255, 216, 77, 0.06));
  border: 1px solid rgba(255, 216, 77, 0.2);
}

.countdown__caption {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.48);
}

.countdown strong {
  display: block;
  margin-top: 0;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.countdown.is-live strong {
  color: #ffe082;
}

.countdown.is-expired {
  background: linear-gradient(180deg, rgba(150, 24, 24, 0.92), rgba(96, 10, 10, 0.98));
  border-color: rgba(255, 128, 128, 0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 28px rgba(84, 10, 10, 0.28);
}

.countdown.is-expired .countdown__label {
  color: rgba(255, 225, 225, 0.84);
}

.countdown.is-expired strong {
  color: #ffb3b3;
  text-shadow: 0 0 12px rgba(255, 120, 120, 0.22);
}

.countdown.is-expired .countdown__caption {
  color: rgba(255, 230, 230, 0.54);
}

.op-card .btn {
  width: 100%;
  margin-top: 0;
  padding: 10px 12px;
  font-size: 12px;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.op-card-training::before {
  background-image: url("../style/events/v57th_event_clean.png");
}

.op-card-combat::before {
  background-image: url("../style/events/v57th_event_clean.png");
}

.op-card-v57th::after {
  background: linear-gradient(
    180deg,
    rgba(25, 35, 49, 0.26) 0%,
    rgba(22, 36, 50, 0.54) 34%,
    rgba(24, 38, 54, 0.92) 100%
  );
}

.op-card-v57th:hover::before {
  opacity: 0.22;
}

  .split {
    display: grid;
    grid-template-columns: 1.55fr 0.9fr;
    gap: 20px;
    align-items: start;
  }

  .gallery-wrap {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }

  .gallery-tile {
    height: 86px;
    background: linear-gradient(135deg, #9fc0db, #44698b);
    position: relative;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid rgba(17, 39, 66, 0.1);
  }

  .gallery-tile:hover {
    cursor: pointer;
  }

  .gallery-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(8, 18, 31, 0.22));
  }

  .gallery-empty {
    grid-column: 1 / -1;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border: 1px dashed rgba(24, 43, 68, 0.22);
    background: rgba(239, 244, 250, 0.82);
    color: #3f546c;
    text-align: center;
  }

  .gallery-cta {
    display: flex;
    justify-content: center;
    margin-top: 14px;
  }

  .gallery-cta .btn-outline-dark {
    background: #182b44;
    color: white;
    border: 0;
    padding-inline: 24px;
  }

  .gallery-modal[hidden] {
    display: none;
  }

  .gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(28px, 5vh, 56px) 28px 28px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
  }

  .gallery-modal.is-open {
    opacity: 1;
    visibility: visible;
  }

  .gallery-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 14, 24, 0.82);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 220ms ease;
  }

  .gallery-modal.is-open .gallery-modal__backdrop {
    opacity: 1;
  }

  .gallery-modal__panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 960px);
    margin: 0 auto;
    transform: translateY(26px);
    opacity: 0;
    transition: transform 240ms ease, opacity 240ms ease;
  }

  .gallery-modal.is-open .gallery-modal__panel {
    transform: translateY(0);
    opacity: 1;
  }

  .gallery-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(10, 18, 30, 0.68);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
  }

  .gallery-modal__figure {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #0b1622;
    border: 1px solid rgba(197, 214, 231, 0.2);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  }

  .gallery-modal__image {
    display: block;
    width: 100%;
    max-height: min(72vh, 860px);
    object-fit: contain;
    background: #09131e;
  }

  .gallery-modal__caption {
    padding: 16px 20px 18px;
    color: #edf4fb;
    background: linear-gradient(180deg, rgba(11, 22, 34, 0.9), rgba(20, 38, 56, 0.98));
    border-top: 1px solid rgba(197, 214, 231, 0.14);
    font-size: 0.97rem;
    line-height: 1.5;
  }

  .topgun-panel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px;
    min-height: 100%;
    color: #f4f7fb;
    background:
      linear-gradient(180deg, rgba(10, 20, 32, 0.16) 0%, rgba(10, 20, 32, 0.82) 48%, rgba(8, 16, 28, 0.98) 100%),
      radial-gradient(circle at top right, rgba(242, 201, 76, 0.30), transparent 28%),
      linear-gradient(145deg, #203349 0%, #0f1d2c 100%);
    border: 1px solid rgba(205, 218, 235, 0.14);
    box-shadow: 0 24px 64px rgba(7, 14, 25, 0.22);
  }

  .topgun-panel__backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 36%);
    opacity: 1;
    pointer-events: none;
  }

  .topgun-panel > * {
    position: relative;
    z-index: 1;
  }

  .topgun-panel__hero {
    margin-bottom: 20px;
  }

  .topgun-panel__eyebrow {
    margin-bottom: 8px;
    color: rgba(255, 225, 138, 0.86);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .topgun-panel__hero h4 {
    margin: 0;
    font-size: clamp(28px, 3vw, 30px);
    line-height: 0.95;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff4c0;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  }

  .topgun-panel__hero p {
    margin: 12px 0 0;
    max-width: 30rem;
    color: rgba(231, 239, 249, 0.86);
    font-size: 14px;
    line-height: 1.55;
  }

  .topgun-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
  }

  .topgun-stat {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(8, 18, 31, 0.46);
    border: 1px solid rgba(215, 227, 241, 0.12);
    backdrop-filter: blur(6px);
    text-align: center;
  }

  .topgun-stat__value {
    display: block;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
  }

  .topgun-stat__label {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(227, 236, 245, 0.74);
  }

  .topgun-board {
    display: grid;
    gap: 10px;
  }

  .topgun-board__row {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(213, 226, 240, 0.10);
  }

  .topgun-board__rank {
    display: grid;
    place-items: center;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffe287 0%, #f2c94c 100%);
    color: #1f232b;
    font-weight: 900;
    letter-spacing: 0.08em;
  }

  .topgun-board__pilot strong {
    display: block;
    font-size: 15px;
    line-height: 1.1;
    letter-spacing: 0.08em;
    color: #fff;
  }

  .topgun-board__pilot span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: rgba(222, 233, 244, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .topgun-board__score {
    font-size: 24px;
    font-weight: 900;
    color: #fff4c0;
  }

  .topgun-panel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(213, 226, 240, 0.12);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(220, 232, 244, 0.68);
  }

  .topgun-panel__footer a {
    color: #ffe287;
    font-weight: 800;
  }

  .forum-shell {
    display: grid;
    gap: 14px;
  }

  .forum-frame-wrap {
    min-height: 78vh;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(17, 39, 66, 0.10);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,247,252,0.98));
    box-shadow: 0 18px 36px rgba(13,27,45,0.10);
  }

  .forum-frame {
    display: block;
    width: 100%;
    min-height: 78vh;
    border: 0;
    background: #fff;
  }

  .topgun-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .topgun-section-title h3 {
    margin: 0;
  }

  .topgun-info-button {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 39, 66, 0.12);
    color: #153252;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(17, 39, 66, 0.12);
    transition: background 180ms ease, transform 180ms ease, color 180ms ease;
  }

  .topgun-info-button:hover,
  .topgun-info-button:focus-visible {
    background: rgba(17, 39, 66, 0.18);
    color: #0d2238;
    transform: translateY(-1px);
    outline: none;
  }

  .topgun-modal[hidden] {
    display: none;
  }

  .topgun-modal {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .topgun-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 31, 0.62);
    opacity: 0;
    transition: opacity 220ms ease;
  }

  .topgun-modal__panel {
    position: relative;
    width: min(100%, 620px);
    padding: 28px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(251, 252, 255, 0.98), rgba(238, 244, 251, 0.98));
    box-shadow: 0 28px 80px rgba(10, 19, 32, 0.28);
    border: 1px solid rgba(21, 50, 82, 0.10);
    color: #16314d;
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .topgun-modal.is-open .topgun-modal__backdrop {
    opacity: 1;
  }

  .topgun-modal.is-open .topgun-modal__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .topgun-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 39, 66, 0.08);
    color: #17314d;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .topgun-modal__eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7f93a8;
    margin-bottom: 10px;
  }

  .topgun-modal h4 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #10233a;
  }

  .topgun-modal__intro {
    margin: 0 0 18px;
    color: #50657b;
    line-height: 1.6;
  }

  .topgun-modal__formula {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(19, 40, 64, 0.96), rgba(14, 31, 49, 0.96));
    color: #f3f7fb;
  }

  .topgun-modal__formula strong {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f6da83;
  }

  .topgun-modal__formula span {
    font-size: 15px;
    line-height: 1.5;
  }

  .topgun-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .topgun-modal__item {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(17, 39, 66, 0.05);
    border: 1px solid rgba(17, 39, 66, 0.08);
  }

  .topgun-modal__item strong {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #17314d;
  }

  .topgun-modal__item span {
    color: #567087;
    line-height: 1.5;
  }

  footer {
    padding: 18px 0 28px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
  }

body.planner-modal-open {
  overflow: hidden;
}

  @media (max-width: 1180px) {
    .nav { display: none; }
    .nav-toggle { display: inline-flex; }
    .ops-grid { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; }
    .hero-inner { grid-template-columns: 1fr; align-items: center; }
    .hero-panel { justify-self: start; }
  }

  @media (max-width: 760px) {
    .topbar-inner {
      min-height: auto;
      padding: 12px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }
    .brand {
      display: flex;
      flex: 0 0 auto;
      gap: 0;
    }
    .brand-copy {
      display: none;
    }
    .brand-badge {
      width: 42px;
      height: 42px;
      border-radius: 12px;
    }
    .nav-toggle {
      flex: 0 0 auto;
    }
    .top-actions {
      flex: 1 1 auto;
      width: auto;
      justify-content: flex-end;
      flex-wrap: nowrap;
      margin-left: auto;
      min-width: 0;
    }
    .mobile-nav {
      width: 100%;
      order: 3;
    }
    .user-chip { max-width: 100%; }
    .hero { min-height: auto; }
    .hero-inner {
      padding: 112px 0 38px;
      min-height: auto;
      gap: 18px;
    }
    .hero-copy p { font-size: 16px; }
    .hero-panel {
      display: none;
    }
    .ops-grid { grid-template-columns: 1fr; }
    .gallery-wrap { grid-template-columns: repeat(2, 1fr); }
    .topgun-panel {
      padding: 20px;
    }
    .topgun-stats {
      grid-template-columns: 1fr 1fr;
    }
    .topgun-board__row {
      grid-template-columns: 46px 1fr auto;
      gap: 10px;
      padding: 11px 12px;
    }
    .topgun-panel__footer {
      flex-direction: column;
      align-items: flex-start;
    }
    .topgun-modal {
      padding: 16px;
    }
    .topgun-modal__panel {
      padding: 22px;
    }
    .topgun-modal__grid {
      grid-template-columns: 1fr;
    }
    .forum-shell {
      width: 100%;
      margin-left: 0;
    }
    .forum-frame-wrap,
    .forum-frame {
      min-height: 70vh;
    }
    .gallery-modal {
      padding: 18px;
    }
    .gallery-modal__image {
      max-height: 58vh;
    }
    .gallery-modal__caption {
      padding: 14px 16px 16px;
    }
    .forum-item { grid-template-columns: 1fr; }
    .section { padding: 24px 0; }
    .brand h1 { white-space: normal; }
  }

  .auth-warning {
  padding: 40px 0;
}

.auth-warning__card {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(17, 39, 66, 0.08);
  box-shadow: 0 20px 50px rgba(10, 22, 35, 0.12);
  text-align: center;
}

.auth-warning__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a7b18;
}

.auth-warning__title {
  margin: 0 0 12px;
}

.auth-warning__text {
  margin: 0 0 20px;
  color: #5b6570;
}

.txt-uppercase {
  text-transform: uppercase;
}
