:root {
  --ogt-bg: #050711;
  --ogt-panel: rgba(12, 15, 31, 0.82);
  --ogt-panel-strong: rgba(16, 20, 42, 0.96);
  --ogt-line: rgba(132, 156, 255, 0.22);
  --ogt-line-strong: rgba(0, 229, 255, 0.46);
  --ogt-text: #f3f7ff;
  --ogt-muted: #9eabd5;
  --ogt-cyan: #00e5ff;
  --ogt-magenta: #ff2db8;
  --ogt-lime: #a3ff3c;
  --ogt-amber: #ffb01f;
  --ogt-red: #ff4f6d;
  --ogt-radius: 8px;
  --ogt-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ogt-display: "Orbitron", "Arial Black", var(--ogt-font);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ogt-bg);
}

body.tourney-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ogt-text);
  font-family: var(--ogt-font);
  background:
    linear-gradient(rgba(70, 92, 170, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 92, 170, 0.08) 1px, transparent 1px),
    linear-gradient(125deg, rgba(0, 229, 255, 0.12), transparent 34%),
    linear-gradient(235deg, rgba(255, 45, 184, 0.1), transparent 36%),
    linear-gradient(180deg, #070a18, #04050c 64%, #02030a);
  background-size: 54px 54px, 54px 54px, auto, auto, auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.ogt-app {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 54px;
}

.ogt-topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--ogt-line);
  border-radius: 10px;
  background: rgba(6, 8, 18, 0.78);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.ogt-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.ogt-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #07101a;
  font-family: var(--ogt-display);
  font-size: 0.72rem;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--ogt-cyan), #7c6cff 55%, var(--ogt-magenta));
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.22);
}

.ogt-brand strong {
  display: block;
  font-family: var(--ogt-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ogt-brand span:last-child {
  color: var(--ogt-cyan);
}

.ogt-navlinks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.ogt-navlinks a,
.ogt-auth button,
.ogt-chip,
.ogt-btn {
  border-radius: var(--ogt-radius);
}

.ogt-navlinks a {
  padding: 10px 12px;
  border: 1px solid transparent;
  color: var(--ogt-muted);
  font-family: var(--ogt-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.ogt-navlinks a:hover,
.ogt-navlinks a.is-active {
  color: #fff;
  border-color: rgba(0, 229, 255, 0.28);
  background: rgba(0, 229, 255, 0.08);
}

.ogt-auth {
  display: flex;
  justify-content: end;
}

.ogt-auth button,
.ogt-btn {
  border: 1px solid rgba(0, 229, 255, 0.34);
  color: #07101a;
  background: linear-gradient(135deg, var(--ogt-cyan), #6ddfff);
  cursor: pointer;
  font-family: var(--ogt-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(0, 229, 255, 0.22);
}

.ogt-auth button {
  min-height: 42px;
  padding: 0 14px;
}

.ogt-auth .ogt-account {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ogt-text);
}

.ogt-auth .ogt-account img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 229, 255, 0.5);
}

.ogt-auth .ogt-account b {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.ogt-auth .ogt-ghost-auth {
  color: var(--ogt-muted);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.ogt-command {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 22px;
  align-items: stretch;
  padding: 34px 0 18px;
}

.ogt-command-main,
.ogt-command-media,
.ogt-sidebar,
.ogt-stage {
  border: 1px solid var(--ogt-line);
  border-radius: 10px;
  background: var(--ogt-panel);
  backdrop-filter: blur(14px);
}

.ogt-command-main {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 42px;
}

.ogt-command-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.18), transparent 38%, rgba(255, 45, 184, 0.12)),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 100% 5px;
}

.ogt-command-main > * {
  position: relative;
}

.ogt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--ogt-cyan);
  font-family: var(--ogt-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ogt-kicker i {
  width: 38px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ogt-cyan));
}

.ogt-command h1 {
  margin: 0;
  font-family: var(--ogt-display);
  font-size: 5.4rem;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ogt-command h1 em,
.ogt-section-title em {
  color: var(--ogt-cyan);
  font-style: normal;
}

.ogt-command-copy {
  max-width: 760px;
  margin: 18px 0 0;
  color: #c8d3f6;
  font-size: 1rem;
  line-height: 1.65;
}

.ogt-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.ogt-btn {
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
}

.ogt-btn.ghost,
.ogt-btn.danger,
.ogt-btn.flat {
  color: var(--ogt-text);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.ogt-btn.ghost {
  border-color: rgba(255, 45, 184, 0.32);
}

.ogt-btn.danger {
  border-color: rgba(255, 79, 109, 0.45);
  color: #ffd4dc;
}

.ogt-btn.flat {
  border-color: var(--ogt-line);
}

.ogt-command-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.ogt-stat {
  padding: 14px;
  border: 1px solid rgba(132, 156, 255, 0.18);
  border-radius: var(--ogt-radius);
  background: rgba(5, 7, 17, 0.52);
}

.ogt-stat b {
  display: block;
  font-family: var(--ogt-display);
  font-size: 1.35rem;
}

.ogt-stat span {
  display: block;
  margin-top: 3px;
  color: var(--ogt-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ogt-command-media {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-height: 330px;
  overflow: hidden;
  padding: 14px;
}

.ogt-prize-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 176, 31, 0.28);
  border-radius: var(--ogt-radius);
  background: linear-gradient(135deg, rgba(255, 176, 31, 0.12), rgba(0, 229, 255, 0.05));
}

.ogt-prize-panel small,
.ogt-media-card small,
.ogt-tournament-meta,
.ogt-empty {
  color: var(--ogt-muted);
}

.ogt-prize-panel b {
  display: block;
  margin-top: 2px;
  font-family: var(--ogt-display);
  font-size: 2.1rem;
  color: var(--ogt-amber);
}

.ogt-prize-panel span:last-child {
  padding: 7px 10px;
  border-radius: 999px;
  color: #061014;
  background: var(--ogt-lime);
  font-family: var(--ogt-display);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

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

.ogt-media-card {
  position: relative;
  height: 190px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: var(--ogt-radius);
  background: #080b19;
  color: inherit;
  text-decoration: none;
}

.ogt-media-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.82;
}

.ogt-media-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px;
  border-radius: 6px;
  color: #fff;
  font-family: var(--ogt-display);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: rgba(3, 5, 12, 0.72);
}

.ogt-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.ogt-sidebar,
.ogt-stage {
  min-width: 0;
}

.ogt-sidebar {
  position: sticky;
  top: 102px;
  max-height: calc(100vh - 124px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ogt-sidebar-head,
.ogt-stage-head {
  padding: 18px;
  border-bottom: 1px solid var(--ogt-line);
}

.ogt-sidebar-head h2,
.ogt-stage-head h2,
.ogt-admin-panel h3,
.ogt-section-title {
  margin: 0;
  font-family: var(--ogt-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ogt-sidebar-head h2 {
  font-size: 1rem;
}

.ogt-filter-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.ogt-filter {
  flex: none;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--ogt-line);
  border-radius: 999px;
  color: var(--ogt-muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ogt-filter.is-active {
  color: #07101a;
  border-color: transparent;
  background: var(--ogt-cyan);
}

.ogt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
}

.ogt-tournament-card {
  width: 100%;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--ogt-line);
  border-radius: var(--ogt-radius);
  color: var(--ogt-text);
  background: rgba(5, 7, 17, 0.5);
  cursor: pointer;
  text-align: left;
}

.ogt-tournament-card:hover,
.ogt-tournament-card.is-selected {
  border-color: var(--ogt-line-strong);
  background: rgba(0, 229, 255, 0.07);
}

.ogt-card-cover {
  width: 70px;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  object-fit: cover;
  background: #090c19;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ogt-card-title {
  display: block;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.ogt-tournament-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.72rem;
}

.ogt-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(132, 156, 255, 0.2);
  color: var(--ogt-muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ogt-chip.open {
  color: #061014;
  border-color: transparent;
  background: var(--ogt-lime);
}

.ogt-chip.active {
  color: #061014;
  border-color: transparent;
  background: var(--ogt-cyan);
}

.ogt-chip.completed {
  color: #1e1200;
  border-color: transparent;
  background: var(--ogt-amber);
}

.ogt-chip.pending {
  color: #140a1a;
  border-color: transparent;
  background: #ff8ce3;
}

.ogt-chip.cancelled {
  color: #ffd4dc;
  border-color: rgba(255, 79, 109, 0.35);
  background: rgba(255, 79, 109, 0.12);
}

.ogt-stage {
  overflow: hidden;
}

.ogt-stage-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.ogt-stage-head h2 {
  font-size: 2.4rem;
  line-height: 1;
}

.ogt-stage-head p {
  margin: 8px 0 0;
  color: var(--ogt-muted);
}

.ogt-selected-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 9px;
}

.ogt-content {
  padding: 18px;
}

.ogt-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 16px;
}

.ogt-game-panel {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--ogt-line);
  border-radius: var(--ogt-radius);
  background: rgba(5, 7, 17, 0.44);
}

.ogt-game-panel img {
  width: 100%;
  height: 196px;
  object-fit: cover;
  border-radius: 7px;
  background: #070a15;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ogt-game-panel h3 {
  margin: 0;
  font-size: 1.45rem;
}

.ogt-game-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.ogt-fact {
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(132, 156, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.ogt-fact small {
  display: block;
  color: var(--ogt-muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ogt-fact b {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ogt-champion-panel {
  min-height: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 176, 31, 0.26);
  border-radius: var(--ogt-radius);
  background: rgba(255, 176, 31, 0.08);
}

.ogt-champion-panel h3 {
  margin: 0 0 14px;
  font-family: var(--ogt-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ogt-champion-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ogt-avatar {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 229, 255, 0.75);
  background: #080b19;
}

.ogt-avatar.sm {
  width: 34px;
  height: 34px;
  border-width: 1px;
}

.ogt-avatar.lg {
  width: 72px;
  height: 72px;
  border-color: var(--ogt-amber);
}

.ogt-champion-body b {
  display: block;
  font-size: 1.25rem;
}

.ogt-champion-body span {
  display: block;
  margin-top: 4px;
  color: var(--ogt-amber);
  font-family: var(--ogt-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ogt-section-block {
  margin-top: 18px;
}

.ogt-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
}

.ogt-participants {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.ogt-participant {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--ogt-line);
  border-radius: var(--ogt-radius);
  background: rgba(5, 7, 17, 0.46);
}

.ogt-participant b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ogt-participant small {
  color: var(--ogt-muted);
}

.ogt-bracket {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(245px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 12px;
}

.ogt-round {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ogt-round h3 {
  margin: 0;
  color: var(--ogt-cyan);
  font-family: var(--ogt-display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ogt-match {
  border: 1px solid var(--ogt-line);
  border-radius: var(--ogt-radius);
  background: rgba(5, 7, 17, 0.56);
  overflow: hidden;
}

.ogt-match-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  color: var(--ogt-muted);
  border-bottom: 1px solid rgba(132, 156, 255, 0.14);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ogt-slot {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
}

.ogt-slot + .ogt-slot {
  border-top: 1px solid rgba(132, 156, 255, 0.12);
}

.ogt-slot.is-winner {
  background: linear-gradient(90deg, rgba(163, 255, 60, 0.13), rgba(0, 229, 255, 0.04));
}

.ogt-slot.is-empty {
  color: var(--ogt-muted);
}

.ogt-slot-name {
  min-width: 0;
}

.ogt-slot-name b,
.ogt-slot-name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ogt-slot-name span {
  color: var(--ogt-muted);
  font-size: 0.72rem;
}

.ogt-winner-btn {
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(163, 255, 60, 0.34);
  border-radius: 6px;
  color: var(--ogt-lime);
  background: rgba(163, 255, 60, 0.09);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ogt-winner-btn:disabled {
  opacity: 0.36;
  cursor: default;
}

.ogt-winner-btn.danger-mini {
  color: #ffd4dc;
  border-color: rgba(255, 79, 109, 0.36);
  background: rgba(255, 79, 109, 0.1);
}

.ogt-match-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(132, 156, 255, 0.12);
}

.ogt-match-admin button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 6px;
  color: var(--ogt-cyan);
  background: rgba(0, 229, 255, 0.07);
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ogt-admin-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 45, 184, 0.24);
  border-radius: var(--ogt-radius);
  background: rgba(255, 45, 184, 0.055);
}

.ogt-preset-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 45, 184, 0.16);
}

.ogt-preset-head span {
  font-family: var(--ogt-display);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ogt-preset-head small {
  color: var(--ogt-muted);
  font-size: 0.78rem;
  text-align: right;
}

.ogt-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 14px;
}

.ogt-preset-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 8px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: var(--ogt-radius);
  color: var(--ogt-text);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(255, 45, 184, 0.05));
  cursor: pointer;
  text-align: left;
}

.ogt-preset-card:hover {
  border-color: rgba(0, 229, 255, 0.52);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.ogt-preset-card img {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  object-fit: cover;
  background: #080b19;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ogt-preset-card b,
.ogt-preset-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ogt-preset-card b {
  font-size: 0.82rem;
}

.ogt-preset-card small {
  margin-top: 3px;
  color: var(--ogt-cyan);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ogt-admin-panel[hidden],
.ogt-admin-only[hidden] {
  display: none !important;
}

.ogt-admin-bracket-control {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--ogt-radius);
  background: rgba(0, 229, 255, 0.045);
}

.ogt-approval-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 140, 227, 0.22);
  border-radius: var(--ogt-radius);
  background: rgba(255, 140, 227, 0.055);
}

.ogt-approval-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ogt-approval-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(132, 156, 255, 0.16);
  border-radius: 7px;
  background: rgba(5, 7, 17, 0.52);
}

.ogt-approval-card span,
.ogt-approval-card b,
.ogt-approval-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ogt-approval-card b {
  display: block;
}

.ogt-approval-card small {
  display: block;
  margin-top: 2px;
  color: var(--ogt-muted);
  font-size: 0.72rem;
}

.ogt-entry-requests {
  padding: 14px;
  border: 1px solid rgba(255, 140, 227, 0.24);
  border-radius: var(--ogt-radius);
  background:
    linear-gradient(135deg, rgba(255, 140, 227, 0.09), rgba(0, 229, 255, 0.04)),
    rgba(7, 9, 20, 0.58);
}

.ogt-entry-requests .ogt-approval-panel {
  margin-top: 10px;
}

.ogt-request-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(132, 156, 255, 0.18);
  border-radius: 7px;
  background: rgba(5, 7, 17, 0.56);
}

.ogt-request-card.is-pending {
  border-color: rgba(255, 140, 227, 0.44);
  background: rgba(255, 140, 227, 0.08);
}

.ogt-request-card.is-accepted {
  border-color: rgba(163, 255, 60, 0.35);
  background: rgba(163, 255, 60, 0.07);
}

.ogt-request-card span,
.ogt-request-card b,
.ogt-request-card small,
.ogt-request-card em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ogt-request-card small {
  display: block;
  color: var(--ogt-cyan);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ogt-request-card b {
  display: block;
  margin-top: 2px;
  font-family: var(--ogt-display);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ogt-request-card em {
  display: block;
  margin-top: 4px;
  color: var(--ogt-muted);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.45;
}

.ogt-test-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(163, 255, 60, 0.24);
  border-radius: var(--ogt-radius);
  background:
    linear-gradient(135deg, rgba(163, 255, 60, 0.08), rgba(0, 229, 255, 0.055)),
    rgba(5, 7, 17, 0.62);
}

.ogt-test-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.ogt-test-head b {
  display: block;
  font-family: var(--ogt-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ogt-test-head small {
  display: block;
  margin-top: 3px;
  color: var(--ogt-muted);
  font-size: 0.78rem;
}

.ogt-test-note {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 176, 31, 0.28);
  border-radius: 7px;
  color: var(--ogt-amber);
  background: rgba(255, 176, 31, 0.08);
  font-family: var(--ogt-display);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.ogt-test-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ogt-test-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(132, 156, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.ogt-test-step strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071014;
  background: var(--ogt-cyan);
  font-family: var(--ogt-display);
  font-size: 0.76rem;
}

.ogt-test-step.needs-action strong {
  background: var(--ogt-amber);
}

.ogt-test-step.is-ready strong {
  background: var(--ogt-lime);
}

.ogt-test-step span,
.ogt-test-step b,
.ogt-test-step small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ogt-test-step b {
  display: block;
  font-family: var(--ogt-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ogt-test-step small {
  display: block;
  margin-top: 3px;
  color: var(--ogt-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ogt-test-step a {
  color: var(--ogt-cyan);
  font-family: var(--ogt-display);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.ogt-test-metrics,
.ogt-test-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.ogt-test-metrics span,
.ogt-test-room-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(132, 156, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.ogt-test-metrics b,
.ogt-test-metrics small,
.ogt-test-room-card b,
.ogt-test-room-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ogt-test-metrics b {
  color: var(--ogt-lime);
  font-family: var(--ogt-display);
  font-size: 1.25rem;
}

.ogt-test-metrics small,
.ogt-test-room-card small {
  margin-top: 3px;
  color: var(--ogt-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ogt-test-steps {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #cbd6ff;
  font-size: 0.86rem;
  line-height: 1.45;
}

.ogt-test-link {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid rgba(163, 255, 60, 0.34);
  border-radius: 7px;
  color: #071014;
  background: linear-gradient(135deg, var(--ogt-lime), #d8ff95);
  font-family: var(--ogt-display);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.ogt-test-link.alt {
  border-color: rgba(0, 229, 255, 0.36);
  color: #061014;
  background: linear-gradient(135deg, var(--ogt-cyan), #86f1ff);
}

button.ogt-test-link {
  border-width: 1px;
}

.ogt-test-link.mini {
  min-height: 32px;
  padding: 0 9px;
  font-size: 0.58rem;
}

.ogt-test-room-list {
  display: grid;
  gap: 10px;
}

.ogt-test-room-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.ogt-test-room-card b {
  color: var(--ogt-text);
  font-family: var(--ogt-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.ogt-admin-subhead,
.ogt-pairing-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.ogt-admin-subhead b,
.ogt-pairing-head span {
  font-family: var(--ogt-display);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ogt-admin-subhead small,
.ogt-pairing-head small {
  color: var(--ogt-muted);
  font-size: 0.78rem;
  text-align: right;
}

.ogt-seed-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ogt-seed-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 64px;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(132, 156, 255, 0.16);
  border-radius: 7px;
  background: rgba(5, 7, 17, 0.52);
}

.ogt-seed-card span,
.ogt-seed-card b,
.ogt-seed-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ogt-seed-card b {
  display: block;
  font-size: 0.84rem;
}

.ogt-seed-card small {
  display: block;
  margin-top: 2px;
  color: var(--ogt-muted);
  font-size: 0.66rem;
}

.ogt-seed-input {
  width: 64px;
  min-height: 36px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 6px;
  color: var(--ogt-text);
  background: rgba(5, 7, 17, 0.7);
  padding: 6px 8px;
  outline: none;
  text-align: center;
  font-weight: 900;
}

.ogt-pairing-head {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 229, 255, 0.14);
}

.ogt-pairing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ogt-pair-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 176, 31, 0.18);
  border-radius: 7px;
  background: rgba(255, 176, 31, 0.055);
}

.ogt-pair-card > b {
  font-family: var(--ogt-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ogt-pair-card label {
  display: grid;
  gap: 5px;
}

.ogt-pair-card small {
  color: var(--ogt-muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ogt-pair-card select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(132, 156, 255, 0.2);
  border-radius: 6px;
  color: var(--ogt-text);
  background: rgba(5, 7, 17, 0.82);
  padding: 8px 10px;
  outline: none;
}

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

.ogt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ogt-field.span-2 {
  grid-column: 1 / -1;
}

.ogt-field label {
  color: var(--ogt-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ogt-field input,
.ogt-field select,
.ogt-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--ogt-line);
  border-radius: 7px;
  color: var(--ogt-text);
  background: rgba(5, 7, 17, 0.64);
  padding: 10px 12px;
  outline: none;
}

.ogt-field textarea {
  min-height: 76px;
  resize: vertical;
}

.ogt-field input:focus,
.ogt-field select:focus,
.ogt-field textarea:focus {
  border-color: var(--ogt-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}

.ogt-admin-actions,
.ogt-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.ogt-status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--ogt-muted);
  font-size: 0.82rem;
}

.ogt-status.ok {
  color: var(--ogt-lime);
}

.ogt-status.err {
  color: #ff9aad;
}

.ogt-empty {
  padding: 18px;
  border: 1px dashed rgba(132, 156, 255, 0.26);
  border-radius: var(--ogt-radius);
  background: rgba(255, 255, 255, 0.03);
}

.ogt-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translateX(-50%) translateY(18px);
  max-width: min(560px, calc(100vw - 28px));
  padding: 12px 16px;
  border: 1px solid var(--ogt-line-strong);
  border-radius: var(--ogt-radius);
  color: var(--ogt-text);
  background: rgba(7, 9, 19, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ogt-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1120px) {
  .ogt-command,
  .ogt-layout,
  .ogt-overview-grid {
    grid-template-columns: 1fr;
  }

  .ogt-sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .ogt-app {
    width: min(100% - 20px, 1480px);
    padding-top: 10px;
  }

  .ogt-topbar {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
  }

  .ogt-navlinks {
    flex-wrap: wrap;
    justify-content: start;
    overflow: visible;
    padding-bottom: 0;
  }

  .ogt-navlinks a {
    display: flex;
    flex: 1 1 calc(50% - 8px);
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 8px;
    text-align: center;
  }

  .ogt-brand strong {
    white-space: normal;
    line-height: 1.25;
  }

  .ogt-auth {
    justify-content: start;
  }

  .ogt-command {
    padding-top: 16px;
  }

  .ogt-command-main {
    min-height: 0;
    padding: 24px;
  }

  .ogt-command h1 {
    font-size: 3.1rem;
  }

  .ogt-stage-head h2 {
    font-size: 1.65rem;
  }

  .ogt-command-stats,
  .ogt-game-facts,
  .ogt-form {
    grid-template-columns: 1fr;
  }

  .ogt-cover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ogt-command-media {
    min-height: 0;
  }

  .ogt-media-card {
    height: 118px;
  }

  .ogt-media-card span {
    left: 7px;
    right: 7px;
    bottom: 7px;
    padding: 6px;
    font-size: 0.52rem;
  }

  .ogt-preset-head {
    align-items: start;
    flex-direction: column;
  }

  .ogt-preset-head small,
  .ogt-admin-subhead small,
  .ogt-pairing-head small {
    text-align: left;
  }

  .ogt-admin-subhead,
  .ogt-pairing-head {
    align-items: start;
    flex-direction: column;
  }

  .ogt-seed-board,
  .ogt-pairing-grid {
    grid-template-columns: 1fr;
  }

  .ogt-approval-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .ogt-approval-card .ogt-winner-btn {
    grid-column: span 1;
  }

  .ogt-request-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .ogt-request-card .ogt-winner-btn {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .ogt-test-metrics,
  .ogt-test-actions,
  .ogt-test-head,
  .ogt-test-flow,
  .ogt-test-room-card {
    grid-template-columns: 1fr;
  }

  .ogt-test-head .ogt-test-link {
    width: 100%;
  }

  .ogt-test-step {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .ogt-test-step a,
  .ogt-test-step .ogt-test-link {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .ogt-preset-grid {
    grid-template-columns: 1fr;
  }

  .ogt-stage-head,
  .ogt-game-panel {
    grid-template-columns: 1fr;
  }

  .ogt-selected-actions {
    justify-content: start;
  }

  .ogt-game-panel img {
    height: 220px;
  }
}
