:root {
  color-scheme: dark;
  --ink: #f4f0e8;
  --muted: #a7a39d;
  --dim: #77766f;
  --night: #070d19;
  --panel: #0d1728;
  --line: rgba(231, 225, 213, 0.13);
  --coral: #d900ff;
  --lime: #00e5ff;
  --mono: "DM Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Manrope", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

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

.site-wrap {
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5, 9, 16, 0.76), rgba(5, 9, 16, 0.58) 52%, rgba(5, 9, 16, 0.68)),
    linear-gradient(0deg, rgba(5, 9, 16, 0.28), rgba(5, 9, 16, 0.12)),
    url("/images/foogs-top-banner.jpg") center 46% / cover;
}

.navbar {
  min-height: clamp(104px, 12vw, 160px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-sigil {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(217, 0, 255, 0.56);
  border-radius: 50%;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
}

.brand-name {
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-header .brand-name {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-header .brand-mark {
  width: 52px;
  height: 52px;
}

.brand-name b {
  color: var(--coral);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.2vw, 42px);
  color: #c5c2bc;
  font-size: 12px;
  font-weight: 600;
}

.nav-links > a:not(.nav-join),
.footer-meta a {
  transition: color 160ms ease;
}

.nav-links > a:hover,
.footer-meta a:hover {
  color: var(--lime);
}

.nav-join {
  padding: 12px 17px;
  border: 1px solid rgba(217, 0, 255, 0.62);
  border-radius: 2px;
  color: var(--coral);
}

.nav-join:hover {
  background: rgba(217, 0, 255, 0.1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 4px 0;
  background: var(--ink);
}

.nav-logout {
  display: inline-flex;
}

.nav-link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 680px;
  background:
    radial-gradient(ellipse at 77% 51%, rgba(67, 84, 102, 0.24), transparent 32%),
    radial-gradient(ellipse at 51% 102%, rgba(0, 229, 255, 0.08), transparent 40%),
    #080d18;
}

.hero-grid {
  min-height: 624px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 4%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 70px 0 58px;
}

.kicker {
  margin: 0;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
}

.kicker-dot,
.note-mark {
  color: var(--lime);
}

.hero h1,
.page-hero h1,
.auth-panel h1,
.message-panel h1,
.account-panel h1,
.admin-panel h1 {
  margin: 22px 0;
  font-size: clamp(48px, 6.5vw, 84px);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.99;
}

.coral {
  color: var(--coral);
}

.hero-lede,
.page-lede {
  max-width: 490px;
  color: #b4b2ae;
  font-size: 15px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--coral);
  color: #160e0d;
}

.button-primary:hover {
  background: #eb5cff;
}

.button-quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover {
  border-color: rgba(231, 225, 213, 0.4);
}

.arrow {
  font-size: 16px;
  font-weight: 400;
}

.hero-note {
  margin-top: 25px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.045em;
}

.note-mark {
  padding-right: 5px;
}

.hero-art {
  position: relative;
  width: min(100%, 570px);
  aspect-ratio: 1.1;
  margin-inline: auto;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(231, 225, 213, 0.18);
  background: #101827;
}

.hero-art::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 13, 24, 0.08), rgba(8, 13, 24, 0.03) 55%, rgba(8, 13, 24, 0.42)),
    linear-gradient(0deg, rgba(8, 13, 24, 0.65), transparent 34%);
  content: "";
}

.hero-carousel {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide {
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-carousel-controls {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel-button {
  min-width: 34px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(231, 225, 213, 0.42);
  border-radius: 2px;
  background: rgba(7, 13, 25, 0.76);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.carousel-button:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.art-caption {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 10%;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #96948d;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.caption-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 11px rgba(0, 229, 255, 0.8);
}

.hero-bottom {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.scroll-line {
  display: inline-block;
  width: 24px;
  height: 1px;
  margin-right: 9px;
  vertical-align: middle;
  background: var(--coral);
}

.intro-section,
.front-games,
.content-section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.intro-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.intro-section::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 13, 25, 0.86), rgba(7, 13, 25, 0.68)),
    linear-gradient(0deg, rgba(7, 13, 25, 0.8), rgba(7, 13, 25, 0.38));
  content: "";
}

.intro-background-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  pointer-events: none;
}

.intro-section > .container {
  position: relative;
  z-index: 2;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 8%;
}

.section-marker {
  display: block;
  margin-top: 41px;
  color: var(--lime);
  font-size: 21px;
}

.intro-copy h2,
.section-topline h2,
.two-column h2,
.page-callout h2,
.join-band h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.12;
}

.muted-text {
  color: #777d83;
}

.intro-copy p {
  max-width: 620px;
  margin: 25px 0 0;
  color: #aaa9a4;
  font-size: 14px;
  line-height: 1.9;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 21px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
}

.text-link .arrow {
  font-size: 15px;
}

.front-games {
  position: relative;
  overflow: visible;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 95% 50%, rgba(63, 71, 76, 0.1), transparent 35%),
    #0b111c;
}

.front-games::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 17, 28, 0.88), rgba(11, 17, 28, 0.5) 55%, rgba(11, 17, 28, 0.34));
  content: "";
}

.front-games::after {
  position: absolute;
  z-index: 2;
  top: 62%;
  left: 38%;
  width: min(1800px, 140vw);
  aspect-ratio: 1949 / 768;
  background: url("/images/community-games-background.png") center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.65));
  opacity: 0.9;
  pointer-events: none;
  transform: translate(-50%, -50%) scaleX(-1) rotate(-8deg);
}

.front-games > .container {
  position: relative;
}

.front-games .section-topline {
  position: relative;
  z-index: 3;
}

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

.section-topline .kicker {
  margin-bottom: 17px;
}

.section-aside {
  max-width: 280px;
  margin: 0 0 5px;
  color: #92928d;
  font-size: 12px;
  line-height: 1.8;
}

.game-cards {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 17px;
}

.front-games .game-card > * {
  position: relative;
  z-index: 3;
  text-shadow: 0 1px 5px rgba(7, 13, 25, 0.9);
}

.game-card {
  position: relative;
  min-height: 275px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px 25px;
  border: 1px solid var(--line);
  background: #121b28;
  transition: border-color 160ms ease, transform 160ms ease;
}

.game-card:hover {
  border-color: rgba(0, 229, 255, 0.5);
  transform: translateY(-3px);
}

.star-card {
  background:
    radial-gradient(ellipse at 76% 35%, rgba(107, 130, 139, 0.2), transparent 24%),
    radial-gradient(ellipse at 93% 112%, rgba(217, 0, 255, 0.14), transparent 42%),
    rgba(18, 27, 40, 0.76);
}

.other-card {
  background:
    radial-gradient(ellipse at 83% 36%, rgba(0, 229, 255, 0.12), transparent 28%),
    rgba(18, 27, 40, 0.76);
}

.game-index,
.activity-number {
  color: #8c8f8b;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.game-symbol {
  position: absolute;
  top: 25px;
  right: 28px;
  color: rgba(217, 0, 255, 0.9);
  font-size: 35px;
}

.other-card .game-symbol {
  color: var(--lime);
}

.game-card-copy {
  max-width: 365px;
  display: grid;
  gap: 9px;
}

.front-games .game-card-copy {
  position: relative;
  isolation: isolate;
  padding: 8px 10px 8px 0;
}

.front-games .game-card-copy::before {
  position: absolute;
  z-index: -1;
  inset: -24px -52px -24px -24px;
  background: radial-gradient(ellipse 72% 100% at 24% 50%, rgba(7, 13, 25, 0.88), rgba(7, 13, 25, 0.54) 52%, transparent 100%);
  content: "";
  filter: blur(16px);
  pointer-events: none;
}

.game-card-copy strong {
  font-size: 26px;
  letter-spacing: -0.04em;
}

.game-card-copy span {
  max-width: 320px;
  color: #a4a5a1;
  font-size: 12px;
  line-height: 1.7;
}

.card-arrow {
  position: absolute;
  right: 25px;
  bottom: 24px;
  color: var(--lime);
  font-size: 19px;
}

.join-band {
  padding: 74px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 8% 50%, rgba(0, 229, 255, 0.12), transparent 34%),
    radial-gradient(ellipse at 92% 50%, rgba(217, 0, 255, 0.12), transparent 36%),
    #0b1424;
}

.join-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.join-band .kicker {
  margin-bottom: 13px;
}

.join-band h2 {
  font-size: clamp(28px, 3.6vw, 44px);
}

.join-symbol {
  color: var(--coral);
  font-size: 28px;
}

.join-discord {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  background: rgba(7, 13, 25, 0.6);
  transition: border-color 160ms ease, background 160ms ease;
}

.join-discord:hover {
  border-color: var(--lime);
  background: rgba(0, 229, 255, 0.06);
}

.join-discord img {
  display: block;
  width: 104px;
  height: 104px;
  padding: 5px;
  background: #fff;
}

.join-discord-copy {
  display: grid;
  gap: 5px;
}

.join-discord-label,
.join-discord-invite {
  color: #9ba4b3;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.join-discord-label {
  color: var(--lime);
}

.join-discord-copy strong {
  font-size: 16px;
}

.join-discord-invite {
  color: #bab5c1;
  letter-spacing: 0.02em;
}



.page-hero {
  padding: 105px 0 95px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 82% 50%, rgba(217, 0, 255, 0.12), transparent 35%),
    #0a101b;
}

.page-hero h1 {
  max-width: 860px;
  margin: 25px 0 18px;
  font-size: clamp(50px, 7vw, 86px);
}

.page-lede {
  max-width: 600px;
  margin: 0;
}

.page-hero .hero-actions {
  margin-top: 27px;
}

.content-section {
  padding-block: 100px;
}

.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 12%;
}

.two-column h2 {
  margin-top: 17px;
}

.prose {
  color: #aeada8;
  font-size: 14px;
  line-height: 1.9;
}

.prose p:first-child {
  margin-top: 0;
}

.prose p:last-child {
  margin-bottom: 0;
}

.activity-grid,
.other-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 60px;
}

.activity-card,
.other-game-card,
.account-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 200px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(17, 24, 37, 0.68);
}

.activity-card h3,
.other-game-card h3,
.account-card h2 {
  margin: 33px 0 10px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.activity-card p,
.other-game-card p,
.account-card p {
  margin: 0;
  color: #a4a5a1;
  font-size: 12px;
  line-height: 1.8;
}

.activity-number {
  color: var(--coral);
}

.activity-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.activity-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 14, 23, 0.91), rgba(9, 14, 23, 0.58)),
    linear-gradient(0deg, rgba(9, 14, 23, 0.55), transparent);
  content: "";
}

.activity-card > :not(.activity-card-image) {
  position: relative;
  z-index: 2;
}

.activity-card-image,
.game-card-image,
.account-card-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.games-page-hero {
  background:
    radial-gradient(ellipse at 75% 50%, rgba(0, 229, 255, 0.08), transparent 35%),
    #0a101b;
}

.other-game-grid {
  margin-top: 0;
}

.other-game-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  isolation: isolate;
  background: #111825;
}

.other-game-card::after,
.account-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 11, 18, 0.9), rgba(7, 11, 18, 0.56)),
    linear-gradient(0deg, rgba(7, 11, 18, 0.62), transparent 76%);
  content: "";
}

.other-game-card > :not(.game-card-image),
.account-card > :not(.account-card-image) {
  position: relative;
  z-index: 2;
}

.other-game-card .game-card-image,
.account-card .account-card-image {
  opacity: 0.76;
  transition: transform 220ms ease;
}

.other-game-card:hover .game-card-image,
.account-card:hover .account-card-image {
  transform: scale(1.04);
}

.large-symbol {
  display: block;
  margin-top: 27px;
  color: var(--lime);
  font-size: 26px;
}

.other-game-card h3 {
  margin-top: 26px;
}

.scene-break {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.scene-break::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 13, 24, 0.88), rgba(8, 13, 24, 0.36) 68%, rgba(8, 13, 24, 0.55)),
    linear-gradient(0deg, rgba(8, 13, 24, 0.4), transparent 55%);
  content: "";
}

.scene-break-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-break-copy {
  position: relative;
  z-index: 2;
}

.scene-break-copy > p:last-child {
  max-width: 670px;
  margin: 14px 0 0;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.page-hero {
  position: relative;
  min-height: clamp(390px, 43vw, 560px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 13, 24, 0.96), rgba(8, 13, 24, 0.68) 54%, rgba(8, 13, 24, 0.25)),
    linear-gradient(0deg, rgba(8, 13, 24, 0.58), transparent 55%);
  content: "";
}

.page-hero-image,
.page-hero-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-image {
  opacity: 0.78;
}

.page-hero-video {
  pointer-events: none;
}

.page-hero > .container {
  position: relative;
  z-index: 2;
}

.page-callout {
  padding: 66px 0;
  border-top: 1px solid var(--line);
  background: #0d1420;
}

.page-callout-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-callout .kicker {
  margin-bottom: 12px;
}

.page-callout h2 {
  max-width: 700px;
  font-size: clamp(28px, 4vw, 44px);
}

.auth-section,
.account-section {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 72px 24px;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(217, 0, 255, 0.1), transparent 42%),
    var(--night);
}

main.login .auth-section {
  background:
    linear-gradient(90deg, rgba(8, 13, 24, 0.74), rgba(8, 13, 24, 0.92)),
    url("/images/urban-cqb.webp") center 42% / cover,
    var(--night);
}

main.apply .auth-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}

main.apply .auth-section::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 13, 24, 0.75), rgba(8, 13, 24, 0.94));
  content: "";
}

.auth-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  filter: saturate(0.9) contrast(1.08);
  pointer-events: none;
}

main.account .account-section {
  background:
    linear-gradient(90deg, rgba(8, 13, 24, 0.8), rgba(8, 13, 24, 0.94)),
    url("/images/armored-squad.jpg") center 35% / cover,
    var(--night);
}

main.admin .account-section {
  background:
    linear-gradient(90deg, rgba(8, 13, 24, 0.78), rgba(8, 13, 24, 0.94)),
    url("/images/training-team.jpg") center 40% / cover,
    var(--night);
}

.auth-panel,
.message-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 470px);
  padding: 36px;
  border: 1px solid var(--line);
  background: rgba(16, 24, 39, 0.88);
}

.auth-panel h1,
.message-panel h1,
.account-panel h1,
.admin-panel h1 {
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.auth-intro,
.account-lede {
  margin: 0 0 25px;
  color: #a4a5a1;
  font-size: 12px;
  line-height: 1.8;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  margin-top: 7px;
  color: #d9d7d0;
  font-size: 11px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0b111d;
  color: var(--ink);
  font-size: 12px;
}

.auth-form input:focus {
  border-color: rgba(0, 229, 255, 0.58);
}

.auth-form .button {
  width: 100%;
  margin-top: 12px;
}

.field-hint {
  margin: 0;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.6;
}

.username-availability-status {
  min-height: 14px;
  margin: -5px 0 2px;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.5;
}

.username-availability-status.is-checking {
  color: #a4a5a1;
}

.username-availability-status.is-available {
  color: var(--lime);
}

.username-availability-status.is-unavailable {
  color: #ff9a9a;
}

.auth-foot {
  margin: 23px 0 0;
  color: #979791;
  font-size: 11px;
}

.auth-foot a {
  color: var(--lime);
}

.form-alert {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid rgba(217, 0, 255, 0.42);
  background: rgba(217, 0, 255, 0.08);
  color: #ffd1c8;
  font-size: 11px;
  line-height: 1.7;
}

.form-alert p {
  margin: 0 0 6px;
}

.form-alert ul {
  margin: 0;
  padding-left: 18px;
}

.message-panel .button {
  margin-top: 10px;
}

.account-section {
  display: block;
  padding-block: 86px;
}

.account-panel,
.admin-panel {
  max-width: 960px;
}

.account-panel h1,
.admin-panel h1 {
  margin-top: 18px;
}

.account-lede {
  max-width: 650px;
  margin-bottom: 35px;
}

.account-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.account-card h2 {
  margin-top: 25px;
}

.account-card .text-link {
  margin-top: 20px;
}

.application-list {
  display: grid;
  gap: 12px;
}

.application-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #101827;
}

.applicant-details h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

.applicant-details p,
.applicant-details time {
  display: block;
  margin: 0 0 6px;
  color: #a4a5a1;
  font-size: 11px;
}

.applicant-details time {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
}

.application-actions {
  display: flex;
  gap: 9px;
}

.application-actions .button {
  min-height: 40px;
}

.empty-state {
  padding: 38px;
  border: 1px solid var(--line);
  background: #101827;
}

.empty-state > span {
  color: var(--lime);
  font-size: 23px;
}

.empty-state h2 {
  margin: 14px 0 8px;
  font-size: 20px;
}

.empty-state p {
  margin: 0;
  color: #a4a5a1;
  font-size: 12px;
}

.admin-notice {
  margin: 0 0 24px;
  padding: 13px 15px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  background: rgba(0, 229, 255, 0.07);
  color: #c8f7ff;
  font-size: 11px;
  line-height: 1.6;
}

.admin-notice-board {
  margin: 26px 0 30px;
  padding: 21px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  background:
    radial-gradient(ellipse at 90% 0, rgba(0, 229, 255, 0.08), transparent 42%),
    rgba(8, 14, 25, 0.92);
}

.admin-notice-board-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.admin-notice-board-heading .kicker {
  margin-bottom: 8px;
}

.admin-notice-board-heading h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.05em;
}

.admin-notice-board-count {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-notice-list {
  display: grid;
  gap: 10px;
}

.admin-notice-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(231, 225, 213, 0.11);
  background: rgba(16, 24, 39, 0.82);
}

.admin-notice-content {
  min-width: 0;
}

.admin-notice-card h3,
.admin-notice-editor h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.admin-notice-body {
  margin: 0;
  color: #c0c2c1;
  font-size: 11px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.admin-notice-meta {
  margin: 11px 0 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
}

.admin-notice-card > form {
  flex: 0 0 auto;
}

.admin-notice-empty {
  margin: 0;
  color: #a4a5a1;
  font-size: 11px;
}

.admin-notice-editor {
  margin: 0 0 28px;
  padding: 19px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 25, 0.7);
}

.admin-notice-editor > .kicker {
  margin-bottom: 8px;
}

.admin-notice-editor > .admin-section-intro {
  margin: 0 0 16px;
}

.admin-notice-form {
  display: grid;
  gap: 9px;
}

.admin-notice-form label {
  margin-top: 5px;
  color: #d9d7d0;
  font-size: 10px;
  font-weight: 700;
}

.admin-notice-form input,
.admin-notice-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0b111d;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  line-height: 1.6;
}

.admin-notice-form textarea {
  min-height: 105px;
  resize: vertical;
}

.admin-notice-form input:focus,
.admin-notice-form textarea:focus {
  border-color: rgba(0, 229, 255, 0.58);
  outline: none;
}

.admin-notice-form .button {
  justify-self: start;
  margin-top: 7px;
}

.admin-password-tools {
  flex-basis: 100%;
  min-width: min(100%, 300px);
  padding-top: 5px;
}

.admin-password-tools summary {
  color: var(--lime);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.admin-password-form {
  display: grid;
  gap: 8px;
  margin: 13px 0;
}

.admin-password-form label {
  color: #d9d7d0;
  font-size: 10px;
  font-weight: 700;
}

.admin-password-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0b111d;
  color: var(--ink);
  font-size: 11px;
}

.admin-password-form .field-hint {
  margin-bottom: 4px;
}

.admin-password-tools > form:not(.admin-password-form) {
  margin-top: 10px;
}

.admin-email-unconfigured {
  margin: 12px 0 0;
  color: #a4a5a1;
  font-size: 10px;
  line-height: 1.6;
}

.admin-panel {
  max-width: 1240px;
}

.admin-dashboard-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 27px;
}

.admin-tabs {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 25, 0.88);
}

.admin-tab {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #a4a5a1;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.admin-tab:hover,
.admin-tab[aria-current="page"],
.admin-tab[aria-selected="true"] {
  border-color: rgba(0, 229, 255, 0.23);
  background: rgba(0, 229, 255, 0.08);
  color: var(--lime);
}

.admin-tab:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.admin-tab-count {
  min-width: 23px;
  padding: 3px 6px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
}

.admin-tab-panels {
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--line);
  background: rgba(9, 15, 27, 0.64);
}

.admin-tab-panel[hidden],
[data-member-record][hidden],
[data-member-search-empty][hidden] {
  display: none;
}

.admin-tab-panel > .kicker {
  margin-bottom: 10px;
}

.admin-tab-panel > h2 {
  margin: 0 0 24px;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.05em;
}

.admin-tab-panel .admin-summary {
  margin-bottom: 24px;
}

.admin-tab-panel > .admin-section-intro {
  margin: 0 0 20px;
}

.admin-member-search-label {
  display: block;
  margin-bottom: 8px;
  color: #d9d7d0;
  font-size: 10px;
  font-weight: 700;
}

.admin-member-search {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0b111d;
  color: var(--ink);
  font-size: 12px;
}

.admin-member-search:focus {
  border-color: rgba(0, 229, 255, 0.58);
  outline: none;
}

.admin-search-count {
  margin: 9px 0 14px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
}

.admin-member-list {
  margin-top: 15px;
}

.admin-member-card {
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-member-card .applicant-details {
  min-width: min(100%, 220px);
  flex: 1 1 250px;
}

.admin-member-card .application-actions {
  min-width: min(100%, 245px);
  flex: 1 1 245px;
  flex-wrap: wrap;
}

.admin-member-meta {
  overflow-wrap: anywhere;
}

.admin-member-meta strong {
  color: #d9d7d0;
}

.admin-search-empty {
  margin-top: 18px;
}

.admin-summary,
.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 42px;
}

.admin-summary-card,
.admin-module-card,
.admin-role-card {
  border: 1px solid var(--line);
  background: rgba(16, 24, 39, 0.88);
}

.admin-summary-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.admin-summary-card strong {
  color: var(--lime);
  font-size: 25px;
  letter-spacing: -0.04em;
}

.admin-section {
  margin-top: 42px;
  scroll-margin-top: 32px;
}

.admin-section > .kicker {
  margin-bottom: 9px;
}

.admin-section > h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.05em;
}

.admin-section-intro {
  margin: -7px 0 18px;
  color: #a4a5a1;
  font-size: 12px;
  line-height: 1.7;
}

.admin-module-grid {
  margin: 20px 0 0;
}

.admin-module-card {
  min-height: 190px;
  padding: 19px;
}

.admin-module-icon {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.admin-module-card h3 {
  margin: 18px 0 8px;
  font-size: 17px;
}

.admin-module-card p {
  margin: 0;
  color: #a4a5a1;
  font-size: 11px;
  line-height: 1.7;
}

.admin-module-card .text-link {
  margin-top: 13px;
}

.admin-module-status {
  display: inline-block;
  margin-top: 15px;
  padding: 6px 8px;
  border: 1px solid rgba(217, 0, 255, 0.3);
  color: #dc8aff;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-status {
  display: inline-block;
  margin: 2px 0 7px;
  color: #a4a5a1;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-user-id,
.account-id {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.admin-user-id {
  margin-bottom: 8px !important;
}

.account-id {
  margin: -18px 0 28px;
}

.admin-status-approved {
  color: var(--lime);
}

.admin-status-pending {
  color: #ffd17b;
}

.admin-status-rejected {
  color: #ff8e9a;
}

.admin-role-list {
  display: grid;
  gap: 12px;
}

.admin-role-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.3fr);
  gap: 22px;
  padding: 20px;
}

.admin-role-card h3,
.applicant-details h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.admin-permission-form {
  display: grid;
  gap: 16px;
}

.admin-permission-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 9px;
}

.admin-permission-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(231, 225, 213, 0.1);
  background: rgba(7, 13, 25, 0.54);
  cursor: pointer;
}

.admin-permission-option input {
  margin: 2px 0 0;
  accent-color: var(--lime);
}

.admin-permission-option span {
  display: grid;
  gap: 4px;
}

.admin-permission-option strong {
  color: #e7e5df;
  font-size: 10px;
}

.admin-permission-option small {
  color: #92928d;
  font-size: 9px;
  line-height: 1.5;
}

.admin-permission-form > .button {
  justify-self: start;
}

.site-footer {
  padding: 33px 0;
  border-top: 1px solid var(--line);
  background: #070b13;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.footer-inner > p {
  max-width: 350px;
  justify-self: center;
  margin: 0;
  color: #83837e;
  font-size: 10px;
  line-height: 1.7;
}

.footer-meta {
  display: grid;
  gap: 7px;
  justify-items: end;
  color: #83837e;
  font-family: var(--mono);
  font-size: 8px;
}

.footer-meta a {
  color: var(--lime);
}

@media (max-width: 760px) {
  .container {
    width: min(var(--max), calc(100% - 36px));
  }

  .navbar {
    min-height: 70px;
    flex-wrap: wrap;
    gap: 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 7px 0 16px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links > a,
  .nav-link-button {
    padding: 12px 0;
  }

  .nav-join {
    width: fit-content;
    margin-top: 7px;
    padding: 11px 14px !important;
  }

  .nav-logout {
    width: fit-content;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    padding: 80px 0 10px;
  }

  .hero h1 {
    font-size: clamp(49px, 12vw, 76px);
  }

  .hero-art {
    width: min(100%, 480px);
    margin-top: -4px;
  }

  .art-caption {
    right: 2%;
  }

  .hero-bottom {
    min-height: 47px;
  }

  .intro-section,
  .front-games,
  .content-section {
    padding: 80px 0;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-marker {
    display: none;
  }

  .section-topline,
  .page-callout-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }

  .section-aside {
    margin: 0;
  }

  .game-cards,
  .activity-grid,
  .other-game-grid,
  .account-cards {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 235px;
  }

  .front-games::after {
    top: 58%;
    left: 38%;
    width: min(760px, 145vw);
    opacity: 0.72;
    transform: translate(-50%, -50%) scaleX(-1) rotate(-6deg);
  }

  .join-band {
    padding: 55px 0;
  }

  .join-band-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .join-symbol {
    width: 100%;
  }

  .page-hero {
    min-height: 420px;
    padding: 78px 0 72px;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .activity-grid {
    margin-top: 40px;
  }

  .activity-card {
    min-height: clamp(220px, 65vw, 300px);
  }

  .other-game-card {
    min-height: clamp(250px, 72vw, 340px);
  }

  .scene-break {
    min-height: clamp(240px, 65vw, 330px);
  }

  .page-callout {
    padding: 50px 0;
  }

  .page-callout-inner {
    margin-bottom: 0;
  }

  .auth-section {
    min-height: 68vh;
    padding: 44px 18px;
  }

  .auth-panel,
  .message-panel {
    padding: 27px 22px;
  }

  .account-section {
    padding: 58px 0;
  }

  .application-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .application-actions {
    flex-wrap: wrap;
  }

  .admin-role-card {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .admin-notice-board {
    padding: 16px;
  }

  .admin-notice-card {
    flex-direction: column;
  }

  .admin-notice-board-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .admin-dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .admin-tabs {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .admin-tab-panels {
    padding: 18px;
  }

  .admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .footer-inner > p {
    justify-self: start;
  }

  .footer-meta {
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero-slide {
    transition: none;
  }
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 160ms ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle {
  color: var(--lime);
}

.nav-dropdown-caret {
  color: var(--coral);
  font-size: 10px;
  transition: transform 180ms ease;
}

.nav-dropdown.is-open .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 9px);
  left: -16px;
  width: 190px;
  display: grid;
  padding: 7px;
  border: 1px solid rgba(0, 229, 255, 0.26);
  background: rgba(7, 13, 25, 0.97);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(7px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

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

.nav-dropdown-menu a {
  padding: 12px 10px;
  color: #c5c2bc;
  font-size: 11px;
  transition: background 160ms ease, color 160ms ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: rgba(0, 229, 255, 0.08);
  color: var(--lime);
}

.admin-server-nav {
  min-width: 0;
}

.admin-server-nav-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 2px;
}

.admin-server-nav-heading .admin-tab {
  min-width: 0;
}

.admin-server-nav-toggle {
  border: 1px solid transparent;
  background: transparent;
  color: #a4a5a1;
  cursor: pointer;
  font: inherit;
}

.admin-server-nav-toggle:hover,
.admin-server-nav-toggle:focus-visible {
  border-color: rgba(0, 229, 255, 0.23);
  color: var(--lime);
}

.admin-server-submenu {
  display: grid;
  gap: 3px;
  padding: 3px 0 3px 15px;
}

.admin-server-submenu[hidden] {
  display: none;
}

.admin-server-subtab {
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: #a4a5a1;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  text-align: left;
}

.admin-server-subtab:hover,
.admin-server-subtab[aria-current="page"] {
  border-left-color: var(--lime);
  background: rgba(0, 229, 255, 0.06);
  color: var(--lime);
}

.ptero-view[hidden] {
  display: none;
}

.ptero-message {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 229, 255, 0.27);
  background: rgba(0, 229, 255, 0.06);
  color: #d7eff2;
  font-size: 11px;
  line-height: 1.6;
}

.ptero-message-error {
  border-color: rgba(255, 117, 98, 0.38);
  background: rgba(255, 117, 98, 0.08);
  color: #ffc0b8;
}

.ptero-toolbar,
.ptero-server-heading,
.ptero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ptero-toolbar {
  justify-content: space-between;
  margin: 0 0 16px;
}

.ptero-toolbar .admin-section-intro {
  margin: 0;
}

.ptero-server-list {
  display: grid;
  gap: 13px;
}

.ptero-server-card,
.ptero-file-editor,
.ptero-file-list {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 25, 0.7);
}

.ptero-server-heading {
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.ptero-server-heading h3,
.ptero-view > h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.ptero-server-meta {
  margin: 5px 0 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
}

.ptero-state {
  padding: 5px 8px;
  border: 1px solid rgba(0, 229, 255, 0.24);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.ptero-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.ptero-resource {
  display: grid;
  gap: 6px;
  padding: 9px;
  background: rgba(0, 229, 255, 0.04);
}

.ptero-resource span {
  color: var(--dim);
  font-size: 9px;
  text-transform: uppercase;
}

.ptero-resource strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
}

.ptero-edit-details {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.ptero-edit-details summary {
  color: #d9d7d0;
  cursor: pointer;
  font-size: 11px;
}

.ptero-server-details,
.ptero-server-build,
.ptero-server-delete {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.ptero-server-build,
.ptero-server-delete {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

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

.ptero-form-grid label,
.ptero-server-details label,
.ptero-server-delete label,
.ptero-upload label,
.ptero-toolbar label,
.ptero-environment-fields label {
  display: grid;
  gap: 6px;
  color: #d9d7d0;
  font-size: 10px;
  font-weight: 700;
}

.ptero-view input,
.ptero-view select,
.ptero-view textarea {
  width: 100%;
  min-height: 39px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0b111d;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}

.ptero-view .admin-permission-option input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.hosting-admin .ptero-view > h3 {
  margin: 24px 0 16px;
}

.hosting-admin .ptero-view > .admin-module-card {
  margin-bottom: 16px;
}

.ptero-view textarea {
  resize: vertical;
  font-family: var(--mono);
  line-height: 1.5;
}

.ptero-view input:focus,
.ptero-view select:focus,
.ptero-view textarea:focus {
  border-color: rgba(0, 229, 255, 0.58);
  outline: none;
}

.ptero-view input:disabled,
.ptero-view select:disabled,
.ptero-view textarea:disabled {
  opacity: 0.55;
}

.ptero-actions {
  margin-top: 12px;
}

.button-danger {
  border-color: rgba(255, 117, 98, 0.42);
  background: rgba(255, 117, 98, 0.12);
  color: #ffc0b8;
}

.button-danger:hover,
.button-danger:focus-visible {
  border-color: #ff7562;
  background: rgba(255, 117, 98, 0.2);
}

.ptero-console-output {
  min-height: 300px;
  max-height: 60vh;
  overflow: auto;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: #05080e;
  color: #d6e5d7;
  font: 11px/1.55 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ptero-console-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.ptero-file-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
}

.ptero-file-list {
  display: grid;
  align-content: start;
  gap: 5px;
  max-height: 480px;
  overflow: auto;
  color: var(--dim);
  font-size: 10px;
}

.ptero-file-entry {
  overflow-wrap: anywhere;
  padding: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #c9d1d2;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.ptero-file-entry:hover,
.ptero-file-entry:focus-visible {
  border-color: rgba(0, 229, 255, 0.24);
  background: rgba(0, 229, 255, 0.06);
  color: var(--lime);
}

.ptero-file-editor {
  display: grid;
  align-content: start;
  gap: 10px;
}

.ptero-file-editor > p {
  margin: 0;
  color: #d9d7d0;
  font-family: var(--mono);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.ptero-upload {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ptero-environment-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

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

  .ptero-form-grid,
  .ptero-file-layout,
  .ptero-environment-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .ptero-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ptero-console-command {
    grid-template-columns: minmax(0, 1fr);
  }
}

.resource-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 80% 42%, rgba(0, 111, 255, 0.16), transparent 34%),
    radial-gradient(ellipse at 16% 80%, rgba(217, 0, 255, 0.1), transparent 34%),
    #080e1b;
  isolation: isolate;
}

.resource-hero::before {
  position: absolute;
  z-index: -1;
  inset: -80%;
  background-image:
    radial-gradient(circle, rgba(139, 223, 255, 0.68) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(0, 229, 255, 0.3) 0 1px, transparent 1.5px);
  background-position: 0 0, 38px 53px;
  background-size: 97px 97px, 151px 151px;
  content: "";
  opacity: 0.32;
  animation: resource-star-drift 90s linear infinite;
}

.resource-gridlines {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(rgba(0, 229, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(90deg, transparent, #000 38%, #000 80%, transparent);
  opacity: 0.6;
}

.resource-orbit {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 7%;
  width: min(46vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 55px rgba(0, 127, 255, 0.06), inset 0 0 55px rgba(0, 127, 255, 0.05);
}

.resource-orbit::before,
.resource-orbit::after {
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(217, 0, 255, 0.19);
  border-radius: 50%;
  content: "";
}

.resource-orbit::after {
  inset: 27%;
  border-color: rgba(0, 229, 255, 0.15);
}

.resource-orbit-one {
  animation: resource-orbit-spin 75s linear infinite;
}

.resource-orbit-two {
  right: 13%;
  width: min(34vw, 410px);
  border-color: rgba(217, 0, 255, 0.1);
  animation: resource-orbit-spin 95s linear infinite reverse;
}

.resource-hero-inner {
  position: relative;
  min-height: 490px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 52px;
  padding-block: 70px 42px;
}

.resource-hero-copy {
  max-width: 700px;
}

.resource-hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(54px, 8vw, 100px);
  letter-spacing: -0.075em;
  line-height: 0.95;
}

.resource-hero-lede {
  max-width: 540px;
  margin: 0;
  color: #b9c0cd;
  font-size: 14px;
  line-height: 1.8;
}

.resource-hero-copy .button {
  margin-top: 27px;
}

.resource-hud {
  display: grid;
  gap: 17px;
  padding: 23px 21px;
  border: 1px solid rgba(0, 229, 255, 0.23);
  background: linear-gradient(145deg, rgba(9, 23, 43, 0.82), rgba(7, 12, 23, 0.72));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2), inset 0 0 28px rgba(0, 229, 255, 0.035);
  backdrop-filter: blur(8px);
}

.hud-label,
.hud-coordinates,
.resource-section-index,
.resource-domain,
.resource-preview-tag,
.resource-coming-soon {
  color: #8293a8;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.hud-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--lime), transparent);
  opacity: 0.48;
}

.hud-readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.hud-readout span:first-child {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 25px;
}

.hud-readout span:last-child {
  color: #adb5c2;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.hud-coordinates {
  color: #b36cdd;
}

.resource-jump-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 20px;
}

.resource-jump-links a {
  padding: 9px 11px;
  border: 1px solid rgba(231, 225, 213, 0.12);
  background: rgba(6, 13, 24, 0.62);
  color: #aeb8c7;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.resource-jump-links a:hover {
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.06);
  color: var(--lime);
}

.resource-directory {
  background:
    radial-gradient(ellipse at 48% 20%, rgba(25, 49, 85, 0.13), transparent 55%),
    #080d17;
}

.resource-category {
  padding: 82px 0 88px;
  border-bottom: 1px solid rgba(231, 225, 213, 0.09);
}

.resource-category-alt {
  background: linear-gradient(115deg, rgba(12, 23, 39, 0.82), rgba(7, 12, 22, 0.72));
}

.resource-section-heading {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 30px;
}

.resource-section-index {
  padding-top: 7px;
  color: var(--lime);
}

.resource-section-heading .kicker {
  margin-bottom: 10px;
}

.resource-section-heading h2,
.resource-lore h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.resource-section-heading > div > p:last-child,
.resource-lore-inner > div > p:last-child {
  max-width: 620px;
  margin: 13px 0 0;
  color: #a4aab4;
  font-size: 12px;
  line-height: 1.8;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

#fleet .resource-grid,
#missions .resource-grid,
#maps .resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(231, 225, 213, 0.12);
  background: linear-gradient(155deg, rgba(17, 29, 47, 0.9), rgba(8, 14, 25, 0.95));
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.38);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.resource-preview {
  position: relative;
  height: clamp(145px, 17vw, 220px);
  overflow: hidden;
  background: #0c1422;
}

.resource-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 10, 19, 0.65), transparent 56%);
  content: "";
}

.resource-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.83;
  transition: transform 320ms ease, opacity 220ms ease;
}

.resource-card:hover .resource-preview img {
  transform: scale(1.035);
  opacity: 1;
}

.resource-preview-tag,
.resource-preview-arrow {
  position: absolute;
  z-index: 1;
  bottom: 13px;
}

.resource-preview-tag {
  left: 14px;
  padding: 6px 8px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: rgba(5, 10, 19, 0.68);
  color: #b8d7e8;
  font-size: 7px;
}

.resource-preview-arrow {
  right: 14px;
  color: var(--lime);
  font-size: 17px;
}

.resource-card-copy {
  padding: 18px 18px 17px;
}

.resource-domain {
  color: #73bfd1;
  font-size: 7px;
  overflow-wrap: anywhere;
}

.resource-card h3 {
  margin: 10px 0 7px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.resource-card p {
  min-height: 58px;
  margin: 0;
  color: #a4aab4;
  font-size: 11px;
  line-height: 1.7;
}

.resource-card-link {
  display: flex;
  justify-content: space-between;
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid rgba(231, 225, 213, 0.1);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resource-card-link span {
  font-size: 14px;
}

.resource-lore {
  padding: 58px 0;
  background:
    radial-gradient(ellipse at 85% 50%, rgba(217, 0, 255, 0.09), transparent 35%),
    #0a101c;
}

.resource-lore-inner {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.resource-lore-inner > div .kicker {
  margin-bottom: 10px;
}

.resource-coming-soon {
  padding: 10px 12px;
  border: 1px solid rgba(217, 0, 255, 0.32);
  color: #dc8aff;
  white-space: nowrap;
}

@keyframes resource-star-drift {
  to {
    transform: translate3d(120px, 80px, 0);
  }
}

@keyframes resource-orbit-spin {
  to {
    rotate: 360deg;
  }
}

@media (max-width: 760px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 0;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    display: none;
    padding: 0 0 8px 12px;
    border: 0;
    border-left: 1px solid rgba(0, 229, 255, 0.24);
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
  }

  .nav-dropdown-menu a {
    padding: 11px 12px;
  }

  .resource-hero {
    min-height: auto;
  }

  .resource-hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 72px 32px;
  }

  .resource-hero-copy h1 {
    font-size: clamp(52px, 13vw, 78px);
  }

  .resource-hud {
    width: min(100%, 380px);
  }

  .resource-orbit {
    top: 28%;
    right: -23%;
    width: 85vw;
  }

  .resource-orbit-two {
    right: -12%;
    width: 65vw;
  }

  .resource-jump-links {
    padding-bottom: 17px;
  }

  .resource-section-heading,
  .resource-lore-inner {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .resource-category {
    padding: 64px 0;
  }

  .resource-grid,
  #fleet .resource-grid,
  #missions .resource-grid,
  #maps .resource-grid {
    grid-template-columns: 1fr;
  }

  .resource-preview {
    height: clamp(190px, 58vw, 300px);
  }

  .resource-card p {
    min-height: 0;
  }

  .resource-coming-soon {
    width: fit-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resource-hero::before,
  .resource-orbit-one,
  .resource-orbit-two {
    animation: none;
  }

  .resource-card,
  .resource-preview img,
  .nav-dropdown-menu,
  .nav-dropdown-caret {
    transition: none;
  }
}

.home-events {
  padding-top: clamp(68px, 8vw, 110px);
  background:
    radial-gradient(ellipse at 10% 100%, rgba(0, 229, 255, 0.06), transparent 38%),
    #080e18;
}

.home-events-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: stretch;
  gap: clamp(24px, 5vw, 58px);
}

.home-events-content {
  min-width: 0;
  padding-bottom: clamp(54px, 7vw, 88px);
}

.home-events-lookout {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  align-self: stretch;
  object-fit: cover;
  object-position: center 42%;
}

.home-events .section-topline {
  align-items: end;
}

.home-events .section-topline h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.06em;
}

.home-event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.home-event-card-with-image {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
  align-items: stretch;
}

.home-event-card,
.event-detail-card,
.public-notice-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(15, 23, 36, 0.9);
}

.home-event-image {
  width: 100%;
  height: 100%;
  min-height: 135px;
  display: block;
  object-fit: cover;
}

.home-event-copy {
  padding: 21px;
}

.home-event-copy .kicker {
  margin: 0 0 10px;
  color: var(--lime);
  line-height: 1.6;
}

.home-event-copy h3,
.event-detail-copy h3 {
  margin: 0 0 9px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.home-event-copy > p:not(.kicker) {
  color: #b7b7b2;
  font-size: 12px;
}

.home-events-empty {
  color: #a4a5a1;
  font-size: 13px;
}

.events-calendar-section,
.events-upcoming-section,
.events-notice-section {
  padding: clamp(64px, 8vw, 100px) 0;
}

.events-calendar-section {
  background: #090f1a;
}

.events-upcoming-section {
  background: #0c1421;
}

.events-notice-section {
  background: #080e18;
}

.events-section-heading,
.calendar-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.events-section-heading {
  margin-bottom: 27px;
}

.events-section-heading .kicker {
  margin-bottom: 12px;
}

.events-section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 43px);
  letter-spacing: -0.055em;
}

.events-timezone {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.calendar-controls {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.calendar-controls .text-link {
  margin: 0;
}

.calendar-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(12, 19, 31, 0.92);
}

.events-calendar {
  min-width: 700px;
}

.calendar-weekdays,
.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays > span {
  padding: 11px;
  border-bottom: 1px solid var(--line);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-width: 0;
  min-height: 116px;
  padding: 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-week .calendar-day:last-child {
  border-right: 0;
}

.calendar-day-outside {
  background: rgba(255, 255, 255, 0.018);
}

.calendar-day-outside .calendar-day-number {
  color: #62656b;
}

.calendar-day-number {
  color: #dedbd4;
  font-family: var(--mono);
  font-size: 10px;
}

.calendar-day-events {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}

.calendar-event {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 5px 6px;
  border-left: 2px solid var(--lime);
  background: rgba(0, 229, 255, 0.08);
  color: #c9e8eb;
  font-size: 9px;
  line-height: 1.35;
}

.calendar-event time {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 8px;
}

.calendar-event span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-subscribe-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.calendar-subscribe-note a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.events-upcoming-list,
.public-notice-list {
  display: grid;
  gap: 15px;
}

.event-detail-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
}

.event-detail-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.event-detail-copy {
  padding: clamp(20px, 4vw, 34px);
}

.event-detail-copy .kicker {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 9px;
  line-height: 1.7;
}

.event-detail-location {
  margin: 0 0 18px;
  color: #c2c2bd;
  font-size: 12px;
}

.event-detail-description {
  color: #b2b4b3;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.event-detail-meta {
  color: #b2b4b3;
  font-size: 11px;
  line-height: 1.7;
}

.event-detail-meta strong {
  color: var(--ink);
}

.event-detail-copy .text-link {
  margin-top: 9px;
}

.public-notice-card {
  padding: 20px;
}

.public-notice-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.public-notice-card > p:not(.admin-notice-meta) {
  margin: 0;
  color: #c0c2c1;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-star-citizen-nav {
  min-width: 0;
}

.star-citizen-view > .admin-notice-editor {
  margin-top: 18px;
}

.star-citizen-view > h3 {
  margin: 0 0 8px;
  font-size: 23px;
}

.admin-event-form {
  display: grid;
  gap: 10px;
  margin: 18px 0 34px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 25, 0.7);
}

.admin-event-form > label,
.admin-event-fields > label {
  display: grid;
  gap: 7px;
  color: #d9d7d0;
  font-size: 10px;
  font-weight: 700;
}

.admin-event-form input,
.admin-event-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0b111d;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  line-height: 1.6;
}

.admin-event-form textarea {
  min-height: 95px;
  resize: vertical;
}

.admin-event-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-event-helpers {
  min-width: 0;
  margin: 5px 0;
  padding: 14px;
  border: 1px solid var(--line);
}

.admin-event-helpers legend {
  padding: 0 6px;
  color: #d9d7d0;
  font-size: 10px;
  font-weight: 700;
}

.admin-event-helpers .admin-permission-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-event-form .button {
  justify-self: start;
  margin-top: 5px;
}

.admin-event-archive {
  margin-top: 30px;
}

.admin-event-archive > h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.admin-event-archive > .admin-section-intro {
  margin: 0 0 16px;
}

.admin-event-list {
  display: grid;
  gap: 9px;
}

.admin-event-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(12, 19, 31, 0.82);
}

.admin-event-record-content {
  min-width: 0;
}

.admin-event-record h4 {
  margin: 0 0 5px;
  font-size: 13px;
}

.admin-event-record .admin-notice-meta {
  margin-top: 0;
}

.admin-event-record .admin-notice-body {
  margin-top: 5px;
}

.admin-event-record-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

@media (max-width: 760px) {
  .home-events-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-events-content {
    padding-bottom: 36px;
  }

  .home-events-lookout {
    height: 360px;
    min-height: 0;
    object-position: center 42%;
  }

  .home-event-grid {
    grid-template-columns: 1fr;
  }

  .home-events .section-topline,
  .events-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-controls {
    justify-content: flex-start;
  }

  .event-detail-card {
    grid-template-columns: 1fr;
  }

  .event-detail-image {
    height: 210px;
    min-height: 0;
  }

  .admin-event-fields,
  .admin-event-helpers .admin-permission-options {
    grid-template-columns: 1fr;
  }

  .admin-event-record {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Tournaments */
.tournaments-hero,
.tournament-hero {
  min-height: 0;
  padding: clamp(60px, 8vw, 92px) 0 clamp(40px, 6vw, 60px);
}

.tournaments-hero h1,
.tournament-hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(38px, 5.6vw, 68px);
}

.tournament-hero h1 {
  max-width: 980px;
  margin-bottom: 18px;
}

.tournament-back {
  margin: 0 0 22px;
}

.tournaments-section,
.tournament-detail-section {
  padding: clamp(36px, 6vw, 68px) 0 clamp(64px, 8vw, 100px);
  background: #090f1a;
}

/* Competition brackets and racing */
.tournament-competition {
  margin-bottom: 48px;
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--line);
  background: var(--panel);
}

.competition-chart-scroll,
.competition-table-scroll {
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-x: contain;
  margin-block: 20px;
}

.competition-bracket-group {
  min-width: max-content;
  margin-bottom: 28px;
}

.competition-chart {
  position: relative;
  display: flex;
  width: max-content;
  gap: 48px;
  padding: 8px 0;
}

.competition-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  fill: none;
  stroke: rgba(0, 229, 255, 0.4);
  stroke-width: 2;
}

.competition-round {
  display: flex;
  flex-direction: column;
  width: 260px;
}

.competition-round h4 {
  margin: 0 0 16px;
  color: var(--muted);
  font: 12px var(--mono);
}

.competition-round-matches {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-around;
  gap: 24px;
}

.competition-match {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--night);
  padding: 12px;
}

.competition-match.is-resolved {
  border-color: rgba(0, 229, 255, 0.35);
}

.competition-match-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font: 10px var(--mono);
}

.competition-match-entrants {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.competition-match-entrants li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 6px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.competition-match-entrants li.is-winner {
  background: rgba(0, 229, 255, 0.1);
  color: var(--lime);
}

.competition-match-entrants strong {
  font-size: 9px;
  text-transform: uppercase;
}

.competition-champion {
  border-left: 3px solid var(--lime);
  padding: 14px 18px;
  background: rgba(0, 229, 255, 0.08);
  overflow-wrap: anywhere;
}

.competition-form {
  display: grid;
  gap: 14px;
  max-width: 680px;
  min-width: 0;
  margin-block: 18px;
}

.competition-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
}

.competition-placement-settings {
  display: grid;
  gap: 14px;
}

.competition-placement-settings [hidden],
[data-placement-editor][hidden] {
  display: none;
}

.competition-form input,
.competition-form select {
  width: 100%;
  min-width: 0;
  padding: 10px;
  color: var(--ink);
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}

.competition-form fieldset {
  min-width: 0;
  border: 1px solid var(--line);
}

.competition-form label.competition-check {
  display: flex;
  align-items: center;
  padding-block: 6px;
}

.competition-check input {
  width: auto;
}

.competition-form .button {
  white-space: normal;
}

.competition-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.competition-table th,
.competition-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.competition-table thead {
  color: var(--muted);
  background: var(--night);
}

.competition-table th[scope="row"] {
  min-width: 160px;
  max-width: 260px;
  overflow-wrap: anywhere;
}

.competition-table small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: normal;
}

.competition-time {
  font-family: var(--mono);
  white-space: nowrap;
}

.competition-calendar {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
}

.competition-calendar li {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
}

.competition-calendar span {
  font-size: 12px;
  color: var(--muted);
}

.competition-calendar a,
.competition-stage-tabs a {
  overflow-wrap: anywhere;
}

.competition-calendar [aria-current],
.competition-stage-tabs [aria-current] {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.competition-stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 24px;
}

.competition-stage-tabs a {
  padding: 10px;
  border: 1px solid var(--line);
  font-size: 12px;
}

.competition-editor,
.competition-standings {
  margin-block: 18px;
  padding: 16px;
  border: 1px solid var(--line);
}

.competition-editor summary,
.competition-standings summary {
  cursor: pointer;
  font-weight: 700;
}

.competition-danger {
  border-color: rgba(217, 0, 255, 0.4);
}

.competition-rally {
  margin-top: 32px;
}

.competition-form select:focus-visible,
.competition-chart-scroll:focus-visible,
.competition-table-scroll:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.tournaments-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
}

.tournament-tabs {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 25, 0.88);
}

.tournament-tab {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-left: 2px solid transparent;
  transition: background 150ms ease, border-color 150ms ease;
}

.tournament-tab-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.tournament-tab small {
  color: var(--dim);
  font-size: 10px;
  line-height: 1.5;
}

.tournament-tab:hover {
  border-color: rgba(0, 229, 255, 0.23);
  border-left-color: rgba(0, 229, 255, 0.5);
  background: rgba(0, 229, 255, 0.06);
}

.tournament-tab[aria-current="page"] {
  border-color: rgba(0, 229, 255, 0.23);
  border-left-color: var(--lime);
  background: rgba(0, 229, 255, 0.1);
}

.tournament-tab[aria-current="page"] .tournament-tab-label {
  color: var(--lime);
}

.tournaments-main {
  min-width: 0;
  display: grid;
  gap: 46px;
}

.tournament-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.tournament-group-heading .kicker {
  margin-bottom: 10px;
}

.tournament-group-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 36px);
  letter-spacing: -0.055em;
}

.tournament-group-heading .text-link {
  margin: 0;
}

.tournament-list {
  display: grid;
  gap: 14px;
}

.tournament-card {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(15, 23, 36, 0.9);
  transition: border-color 160ms ease;
}

.tournament-card:hover {
  border-color: rgba(0, 229, 255, 0.34);
}

.tournament-card-live {
  border-color: rgba(0, 229, 255, 0.42);
}

.tournament-card-cancelled {
  opacity: 0.74;
}

.tournament-card-media {
  min-height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(217, 0, 255, 0.22), rgba(0, 229, 255, 0.12)),
    #0b111d;
}

.tournament-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tournament-card-monogram {
  color: var(--lime);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.tournament-card-body {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px 20px;
}

.tournament-card-body h3 {
  margin: 4px 0 0;
  font-size: 21px;
  letter-spacing: -0.04em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tournament-card-body h3 a:hover {
  color: var(--lime);
}

.tournament-card-game,
.tournament-card-dates,
.tournament-card-stats,
.tournament-card-pending {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.tournament-card-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}

.tournament-card-pending {
  color: var(--dim);
  font-style: italic;
}

.tournament-card-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 20px 18px 0;
}

.tournament-card-actions .button {
  min-height: 42px;
  white-space: nowrap;
}

.tournament-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.tournament-chip,
.tournament-pill {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.tournament-pill {
  font-weight: 500;
}

.tournament-pill-live {
  border-color: rgba(0, 229, 255, 0.5);
  background: rgba(0, 229, 255, 0.1);
  color: var(--lime);
}

.tournament-pill-live::before {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.tournament-pill-upcoming {
  border-color: rgba(217, 0, 255, 0.5);
  background: rgba(217, 0, 255, 0.1);
  color: #f08cff;
}

.tournament-pill-ended,
.tournament-pill-entry-pending {
  border-color: rgba(245, 194, 107, 0.45);
  background: rgba(245, 194, 107, 0.08);
  color: #f5c26b;
}

.tournament-pill-completed,
.tournament-pill-entry-confirmed {
  border-color: rgba(126, 231, 135, 0.4);
  background: rgba(126, 231, 135, 0.08);
  color: #7ee787;
}

.tournament-pill-cancelled,
.tournament-pill-entry-rejected {
  border-color: rgba(255, 154, 154, 0.4);
  background: rgba(255, 154, 154, 0.07);
  color: #ff9a9a;
}

.tournament-entry-count {
  color: var(--muted);
  font-size: 11px;
}

.tournament-entry-count strong {
  color: var(--ink);
}

.tournament-registration-note {
  color: var(--dim);
  font-size: 11px;
}

.tournament-registration-note.is-open {
  color: var(--lime);
}

.tournament-champion {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid rgba(245, 194, 107, 0.4);
  background: rgba(245, 194, 107, 0.08);
  font-size: 12px;
}

.tournament-champion span {
  color: #f5c26b;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tournament-champion strong {
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.tournament-champion-hero {
  margin-top: 18px;
}

.tournament-prizes {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.tournament-prize {
  display: grid;
  grid-template-columns: minmax(96px, 150px) minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(231, 225, 213, 0.28);
  background: rgba(7, 13, 25, 0.55);
}

.tournament-prize:nth-child(1) {
  border-left-color: #f5c26b;
}

.tournament-prize:nth-child(2) {
  border-left-color: #c9d1d9;
}

.tournament-prize:nth-child(3) {
  border-left-color: #cd8b4f;
}

.tournament-prize-label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.tournament-prize-detail {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.tournament-prize-winner {
  color: var(--lime);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.tournament-prize-pending {
  color: var(--dim);
  font-style: italic;
}

.tournament-prize-reward {
  overflow-wrap: anywhere;
}

.tournament-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}

.tournament-pagination-status {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.tournament-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
}

.tournament-detail-main,
.tournament-detail-side {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.tournament-detail-image {
  width: 100%;
  max-height: 380px;
  display: block;
  border: 1px solid var(--line);
  object-fit: cover;
}

.tournament-notice {
  margin-bottom: clamp(18px, 3vw, 28px);
}

.tournament-banner {
  padding: 14px 16px;
  border: 1px solid rgba(0, 229, 255, 0.34);
  background: rgba(0, 229, 255, 0.07);
  color: #c8f7ff;
  font-size: 12px;
  line-height: 1.7;
}

.tournament-banner strong {
  color: var(--lime);
}

.tournament-banner p {
  margin: 4px 0 0;
}

.tournament-block,
.tournament-register-box,
.tournament-facts {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 36, 0.9);
}

.tournament-block h2,
.tournament-register-box h2,
.tournament-facts h2 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.tournament-text {
  margin: 0 0 14px;
  color: #b7b7b2;
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.tournament-block .tournament-text:last-child,
.tournament-register-box .tournament-text:last-child {
  margin-bottom: 0;
}

.tournament-muted {
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.7;
}

.tournament-roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tournament-roster li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(7, 13, 25, 0.55);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.tournament-register-box {
  border-color: rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.05);
}

.tournament-register-box .button {
  width: 100%;
}

.tournament-facts dl {
  display: grid;
  margin: 0;
}

.tournament-facts dl > div {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.tournament-facts dl > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.tournament-facts dt {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tournament-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.tournament-register-section {
  min-height: 70vh;
  padding: clamp(36px, 6vw, 68px) 0 clamp(64px, 8vw, 100px);
  background:
    radial-gradient(ellipse at 50% 20%, rgba(217, 0, 255, 0.1), transparent 45%),
    var(--night);
}

.tournament-register-wrap {
  width: min(760px, calc(100% - 48px));
}

.tournament-register-panel {
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  background: rgba(16, 24, 39, 0.88);
}

.tournament-register-panel h1 {
  margin: 14px 0 6px;
  font-size: clamp(30px, 4.5vw, 44px);
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.tournament-register-for {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.tournament-register-intro {
  margin: 0;
  color: #a4a5a1;
  font-size: 12px;
  line-height: 1.8;
}

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

.tournament-form label {
  display: grid;
  gap: 7px;
  color: #d9d7d0;
  font-size: 11px;
  font-weight: 700;
}

.tournament-form input,
.tournament-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0b111d;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.tournament-form textarea {
  min-height: 96px;
  resize: vertical;
}

.tournament-form input:focus,
.tournament-form textarea:focus {
  border-color: rgba(0, 229, 255, 0.58);
}

.tournament-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tournament-privacy {
  margin: 0;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.7;
}

.tournament-form .button {
  justify-self: start;
}

.tournament-register-panel .empty-state {
  margin-top: 18px;
}

.tournaments-main .empty-state p .text-link,
.tournament-register-panel .empty-state p .text-link,
.tournament-register-panel .empty-state .text-link {
  margin-top: 0;
}

.tournament-form textarea:focus-visible,
.tournaments-admin-form select:focus-visible,
.tournaments-admin-form textarea:focus-visible,
.tournaments-results-form select:focus-visible,
.tournaments-add-entry textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .tournament-pill-live::before {
    animation: tournament-live-pulse 1.8s ease-in-out infinite;
  }
}

@keyframes tournament-live-pulse {
  50% {
    opacity: 0.25;
  }
}

/* Tournament administration */
.admin-tournaments-nav {
  min-width: 0;
}

.tournaments-admin-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.tournaments-admin-heading h3 {
  margin: 0;
  font-size: 23px;
}

.tournaments-admin-view > .admin-section-intro {
  margin: 0 0 16px;
}

.tournaments-admin-view > .admin-notice-empty {
  margin: 0 0 14px;
}

.tournaments-admin-record.is-selected {
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.06);
}

.tournaments-admin-record .tournament-tags {
  margin-bottom: 7px;
}

.tournaments-admin-record .admin-event-record-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tournaments-admin-record .button,
.tournaments-entry-actions .button {
  min-height: 38px;
  padding: 0 13px;
}

.tournaments-admin-form select {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0b111d;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}

.tournaments-admin-form select:disabled {
  opacity: 0.6;
}

.tournaments-admin-form .admin-event-fields > label {
  align-content: start;
}

.tournaments-admin-form input[type="checkbox"] {
  width: auto;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--lime);
}

.tournaments-admin-form .tournaments-registration-toggle {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 400;
}

.tournaments-prizes {
  min-width: 0;
  margin: 5px 0;
  padding: 14px;
  border: 1px solid var(--line);
}

.tournaments-prizes legend {
  padding: 0 6px;
  color: #d9d7d0;
  font-size: 10px;
  font-weight: 700;
}

.tournaments-prize-rows {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.tournaments-prize-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  align-items: end;
  gap: 10px;
}

.tournaments-prize-row > label {
  display: grid;
  gap: 7px;
  color: #d9d7d0;
  font-size: 10px;
  font-weight: 700;
}

.tournaments-prize-row .button {
  min-height: 40px;
  margin: 0;
}

.tournaments-admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
}

.tournaments-admin-form .tournaments-admin-actions .button,
.tournaments-results-form .tournaments-admin-actions .button {
  margin-top: 0;
}

.tournaments-admin-delete {
  margin: -16px 0 30px;
}

.tournaments-entry-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 24px;
}

.tournaments-entry {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  background: rgba(12, 19, 31, 0.82);
}

.tournaments-entry.is-pending {
  border-left-color: #f5c26b;
}

.tournaments-entry.is-confirmed {
  border-left-color: #7ee787;
}

.tournaments-entry.is-rejected {
  border-left-color: #ff9a9a;
}

.tournaments-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tournaments-entry-head h4 {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.tournaments-entry-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px 18px;
  margin: 0;
}

.tournaments-entry-details dt {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tournaments-entry-details dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.tournaments-entry-details dd.tournaments-entry-notes {
  color: var(--muted);
  white-space: pre-line;
}

.tournaments-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tournaments-entry-actions form {
  margin: 0;
}

.tournaments-add-entry {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(12, 19, 31, 0.5);
}

.tournaments-add-entry summary {
  color: var(--lime);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.tournaments-add-entry[open] summary {
  margin-bottom: 8px;
}

.tournaments-add-entry .admin-event-form {
  margin-bottom: 0;
}

.tournaments-results-form select {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0b111d;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}

@media (max-width: 980px) {
  .tournaments-shell,
  .tournament-detail-layout {
    grid-template-columns: 1fr;
  }

  .tournament-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
  }

  .tournament-tab {
    flex: 0 0 auto;
    min-width: 132px;
  }

  .tournament-detail-side {
    order: -1;
  }
}

@media (max-width: 760px) {
  .tournament-group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .tournament-card {
    grid-template-columns: 1fr;
  }

  .tournament-card-media {
    min-height: 0;
    height: 120px;
  }

  .tournament-card-actions {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 20px 18px;
  }

  .tournament-prize {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .tournament-form-row {
    grid-template-columns: 1fr;
  }

  .tournament-register-wrap {
    width: min(760px, calc(100% - 36px));
  }

  .tournaments-prize-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .tournaments-prize-row .button {
    justify-self: start;
  }

  .tournaments-admin-record .admin-event-record-actions {
    justify-content: flex-start;
  }
}

/* Member accounts: sign-in providers, setup, two-factor and security */

.oauth-block {
  margin-top: 24px;
}

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.oauth-buttons {
  display: grid;
  gap: 9px;
  margin-bottom: 10px;
}

.oauth-form {
  margin: 0;
}

.oauth-button {
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  border-color: var(--line);
  background: #0b111d;
  color: var(--ink);
}

.security-list-actions .oauth-button {
  width: auto;
  min-height: 38px;
}

.oauth-button:hover,
.oauth-button:focus-visible {
  border-color: rgba(231, 225, 213, 0.4);
}

.oauth-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.oauth-google .oauth-mark {
  background: #4285f4;
}

.oauth-discord .oauth-mark {
  background: #5865f2;
}

.oauth-steam .oauth-mark {
  background: #1b2838;
  box-shadow: inset 0 0 0 1px #66c0f4;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d9d7d0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.checkbox-label input,
.auth-form .checkbox-label input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--lime);
}

.setup-panel {
  width: min(100%, 560px);
}

.setup-steps {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.setup-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #0b111d;
}

.setup-step.is-done {
  border-color: rgba(0, 229, 255, 0.25);
}

.setup-step-status {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}

.setup-step.is-done .setup-step-status {
  border-color: rgba(0, 229, 255, 0.5);
  color: var(--lime);
}

.setup-step-body {
  display: grid;
  gap: 9px;
  justify-items: start;
  min-width: 0;
}

.setup-step-body h2 {
  margin: 4px 0 0;
  font-size: 14px;
}

.setup-step-body .oauth-form {
  width: 100%;
}

.setup-panel > form .button,
.two-factor-alt .button {
  width: 100%;
}

.two-factor-alt {
  margin-top: 16px;
}

details.two-factor-alt summary {
  color: var(--lime);
  font-size: 11px;
  cursor: pointer;
}

details.two-factor-alt[open] summary {
  margin-bottom: 8px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.security-grid,
.security-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.security-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(16, 24, 39, 0.88);
}

.security-card > * {
  margin: 0;
}

.security-card h2,
.security-card h3 {
  font-size: 17px;
  letter-spacing: -0.03em;
}

.security-card > p {
  color: #a4a5a1;
  font-size: 12px;
  line-height: 1.7;
}

.security-card .auth-form {
  width: 100%;
}

.security-list {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.security-list li > :first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.security-list-detail {
  color: var(--dim);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.security-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.security-list-actions .button,
.security-list .button {
  min-height: 38px;
}

.security-state {
  padding-left: 14px;
  border-left: 2px solid var(--dim);
}

.security-state.is-on {
  border-left-color: var(--lime);
  color: #c8f7ff !important;
}

.totp-qr {
  display: block;
  width: min(100%, 220px);
  height: auto;
  margin: 6px 0 14px;
  padding: 10px;
  background: #fff;
  image-rendering: pixelated;
}

.totp-secret {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #0b111d;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
  padding: 16px 16px 16px 36px;
  border: 1px solid var(--line);
  background: #0b111d;
  color: var(--dim);
  font-size: 10px;
}

.recovery-codes code {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.verify-card {
  margin-bottom: 26px;
  border-color: rgba(0, 229, 255, 0.3);
}

.verify-steps {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  counter-reset: verify-step;
}

.verify-steps li {
  position: relative;
  padding: 20px 20px 20px 64px;
  border: 1px solid var(--line);
  background: rgba(16, 24, 39, 0.88);
  counter-increment: verify-step;
}

.verify-steps li::before {
  content: counter(verify-step, decimal-leading-zero);
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 12px;
}

.verify-steps h2 {
  margin: 0 0 8px;
  font-size: 15px;
}

.verify-steps p {
  margin: 0 0 12px;
  color: #a4a5a1;
  font-size: 12px;
  line-height: 1.7;
}

.verify-code code {
  display: inline-block;
  padding: 10px 14px;
  border: 1px dashed rgba(0, 229, 255, 0.5);
  background: #0b111d;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.08em;
  user-select: all;
}

.verify-handle-form {
  max-width: 470px;
  margin-bottom: 26px;
}

/* Admin member review and security monitor */

.admin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 10px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--line);
  color: #a4a5a1;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-badge.is-good {
  border-color: rgba(0, 229, 255, 0.35);
  color: var(--lime);
}

.admin-badge.is-warn {
  border-color: rgba(255, 209, 123, 0.4);
  color: #ffd17b;
}

.admin-badge.is-bad {
  border-color: rgba(255, 142, 154, 0.45);
  color: #ff8e9a;
}

.admin-member-card.is-needs-review {
  border-color: rgba(255, 209, 123, 0.35);
}

.admin-review-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.admin-tab-count-alert {
  border-color: rgba(255, 142, 154, 0.45);
  color: #ff8e9a;
}

.admin-summary-card.is-critical strong {
  color: #ff8e9a;
}

.admin-summary-card.is-warning strong {
  color: #ffd17b;
}

.security-block-form {
  width: 100%;
}

.security-block-form .button {
  margin-top: 6px;
}

.security-events-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.security-events-head h3 {
  margin: 0;
  font-size: 17px;
}

.security-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.security-filter {
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: #a4a5a1;
  font-size: 10px;
}

.security-filter:hover,
.security-filter[aria-current="page"] {
  border-color: rgba(0, 229, 255, 0.35);
  color: var(--lime);
}

.security-event-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-event {
  padding: 16px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  background: #101827;
}

.security-event.is-critical {
  border-left-color: #ff8e9a;
}

.security-event.is-warning {
  border-left-color: #ffd17b;
}

.security-event.is-acknowledged {
  opacity: 0.72;
}

.security-event-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font-size: 13px;
}

.security-event-head time {
  margin-left: auto;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
}

.security-event-type {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
}

.security-event-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 5px 14px;
  margin: 0 0 12px;
  font-size: 11px;
}

.security-event-meta dt {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.security-event-meta dd {
  margin: 0;
  color: #d9d7d0;
  overflow-wrap: anywhere;
}

.security-event-agent {
  color: var(--dim) !important;
  font-size: 10px;
}

.security-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.security-event-actions .button {
  min-height: 36px;
}

@media (max-width: 760px) {
  .recovery-codes {
    grid-template-columns: 1fr;
  }

  .security-event-meta {
    grid-template-columns: 1fr;
  }

  .security-event-head time {
    margin-left: 0;
  }

  .verify-steps li {
    padding-left: 20px;
  }

  .verify-steps li::before {
    position: static;
    display: block;
    margin-bottom: 8px;
  }
}
