@font-face {
  font-family: Russo;
  src: url("pub/assets/ScienceGothic-Bold.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Science;
  src: url("pub/assets/ScienceGothic-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: ScienceSemi;
  src: url("pub/assets/ScienceGothic-SemiBold.woff2") format("woff2");
  font-display: swap;
}
:root {
  --gold: #ffb070;
  --gold2: #e4a65d;
  --text: #e5d1bd;
  --muted: #aaa39c;
  --line: rgba(255, 180, 100, 0.38);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: #090909 url("pub/assets/background.webp") center top/cover fixed
    no-repeat;
  color: var(--text);
  font:
    16px/1.5 "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: var(--gold2);
}
a:hover {
  color: #ffd0a0;
}
#app {
  width: min(1400px, calc(100% - 32px));
  margin: 20px auto;
}
.top-panel,
.framed-panel,
.footer-panel,
.admin-shell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(
    to bottom,
    rgba(55, 55, 55, 0.2),
    rgba(8, 8, 8, 0.76)
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 30px rgba(255, 180, 80, 0.05),
    0 0 20px rgba(0, 0, 0, 0.7);
}
.top-panel:before,
.framed-panel:before,
.admin-shell:before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
}
.top-panel {
  height: 120px;
  min-height: 120px;
  padding: 68px 40px 16px;
}
.title-plate {
  position: absolute;
  z-index: 5;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 32px;
  min-width: 250px;
  background: url("pub/assets/plate.webp") 50%/100% 100% no-repeat;
  color: var(--gold);
  font:
    24px Russo,
    sans-serif;
  text-align: center;
  text-decoration: none;
  text-shadow: 1px 1px #000;
  white-space: nowrap;
  -webkit-text-stroke: 1px #000;
}
.brand-plate {
  min-width: 330px;
  letter-spacing: 2px;
}
.social-links {
  position: absolute;
  z-index: 6;
  top: 15px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-link {
  width: 26px;
  height: 26px;
  display: block;
  border-radius: 50%;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}
.social-link img {
  width: 100%;
  height: 100%;
  display: block;
}
.social-link:hover,
.social-link:focus-visible {
  outline: none;
  filter: brightness(1.18) drop-shadow(0 0 5px rgba(255, 176, 112, 0.55));
  transform: translateY(-1px);
}
.main-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 194px));
  justify-content: center;
  gap: 32px;
}
.menu-group {
  position: relative;
  min-width: 0;
}
.menu-group > .menu-button {
  width: 100%;
  padding-right: 34px;
}
.menu-submenu-toggle {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  width: 34px;
  height: 35px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  text-shadow: 1px 1px #000;
}
.menu-submenu {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  min-width: 150px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(12, 11, 10, 0.97);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.menu-submenu a {
  padding: 9px 12px;
  color: var(--gold2);
  font:
    13px Russo,
    sans-serif;
  text-decoration: none;
  text-shadow: 1px 1px #000;
}
.menu-submenu a:hover,
.menu-submenu a:focus-visible,
.menu-submenu a.active {
  color: #ffe0ba;
  background: rgba(255, 176, 112, 0.1);
  outline: none;
}
.menu-group:hover .menu-submenu,
.menu-group:focus-within .menu-submenu,
.menu-group.open .menu-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.menu-button,
.action-button {
  height: 35px;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  background: url("pub/assets/button.webp") 50%/100% 100% no-repeat;
  color: var(--gold);
  font:
    16px Russo,
    sans-serif;
  text-decoration: none;
  text-shadow: 1px 1px #000;
  cursor: pointer;
  -webkit-text-stroke: 1px #000;
}
.menu-button:hover,
.menu-button.active,
.action-button:hover {
  color: #ffe0ba;
  filter: brightness(1.18);
}
.menu-button.is-disabled {
  opacity: 0.55;
  cursor: default;
}
.main-layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 20px;
  margin-top: 30px;
  align-items: start;
}
.events-panel {
  min-height: 900px;
  padding: 74px 18px 24px;
}
.events-title {
  min-width: 280px;
}
.server-monitor-card {
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid rgba(255, 180, 100, 0.34);
  border-radius: 9px;
  background: linear-gradient(
    to bottom,
    rgba(28, 28, 28, 0.9),
    rgba(8, 8, 8, 0.94)
  );
  color: #e5d1bd;
  box-shadow:
    inset 0 0 18px rgba(255, 180, 80, 0.04),
    0 0 8px rgba(0, 0, 0, 0.6);
}
.server-monitor-heading {
  margin-bottom: 7px;
  color: var(--gold);
  font:
    13px/1.2 Russo,
    sans-serif;
  letter-spacing: 0.7px;
}
.server-monitor-list {
  max-height: 176px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 176, 112, 0.5) rgba(0, 0, 0, 0.24);
}
.server-monitor-row {
  min-height: 27px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto minmax(48px, 68px) 35px;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 180, 100, 0.1);
  font-size: 11px;
}
.server-monitor-row:last-child {
  border-bottom: 0;
}
.server-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72d572;
  box-shadow: 0 0 6px rgba(114, 213, 114, 0.8);
}
.server-monitor-row.is-offline .server-status-dot {
  background: #bc685e;
  box-shadow: 0 0 5px rgba(188, 104, 94, 0.62);
}
.server-address,
.server-map {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.server-address {
  color: #e5d1bd;
  font-family: ScienceSemi, sans-serif;
  text-decoration: none;
  transition: color 0.15s;
}
.server-address:hover,
.server-address:focus-visible,
.server-proxies a:hover,
.server-proxies a:focus-visible {
  color: var(--gold);
  outline: 0;
}
.server-map {
  color: #c7ad93;
  text-align: right;
}
.server-players {
  color: var(--gold);
  font-family: ScienceSemi, sans-serif;
  text-align: right;
}
.server-kind-tag {
  padding: 1px 5px;
  border: 1px solid rgba(228, 166, 93, 0.3);
  border-radius: 4px;
  color: #e5d1bd;
  font:
    9px/1.35 ScienceSemi,
    sans-serif;
  text-align: center;
  white-space: nowrap;
}
.server-monitor-message {
  padding: 6px 2px 8px;
  color: #c7ad93;
  font-size: 12px;
}
.server-proxies {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 13px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 180, 100, 0.18);
  color: #c7ad93;
  font:
    11px/1.25 Science,
    sans-serif;
}
.server-proxies b {
  color: var(--gold);
  font-family: ScienceSemi, sans-serif;
}
.server-proxies a {
  color: #c7ad93;
  text-decoration: none;
  transition: color 0.15s;
}
.server-proxies .server-kind-tag {
  margin-left: auto;
  color: #e5d1bd;
}
.server-monitor-card.is-stale .server-monitor-heading::after {
  content: " •";
  color: #c98a59;
}
.events-scroll {
  max-height: 1180px;
  overflow-y: auto;
  padding-right: 16px;
  position: relative;
}
.events-scroll::-webkit-scrollbar {
  width: 16px;
}
.events-scroll::-webkit-scrollbar-track {
  background: url("assets/scroll_outside.webp") center repeat-y;
  background-size: 8px auto;
}
.events-scroll::-webkit-scrollbar-thumb {
  background: url("assets/scroll_inside.webp") center repeat-y;
  background-size: 10px auto;
  border-radius: 10px;
}
.events-scroll::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.3);
}
.content-panel {
  min-height: 900px;
  padding: 75px 28px 38px;
}
.panel-corner-left,
.panel-corner-right {
  position: absolute;
  bottom: -1px;
  width: 64px;
  height: 64px;
  pointer-events: none;
  z-index: 2;
  background-size: contain;
  background-repeat: no-repeat;
}
.panel-corner-left {
  left: -1px;
  background-image: url("pub/assets/corner_left.webp");
}
.panel-corner-right {
  right: -7px;
  background-image: url("pub/assets/corner_right.webp");
}
.archive-group {
  margin-bottom: 10px;
}
.archive-toggle {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(
    to bottom,
    rgba(65, 48, 36, 0.9),
    rgba(22, 18, 15, 0.94)
  );
  color: var(--gold);
  font:
    16px Russo,
    sans-serif;
  text-align: left;
  cursor: pointer;
}
.archive-toggle.month-toggle {
  width: calc(100% - 12px);
  margin-left: 12px;
  background: rgba(20, 20, 20, 0.82);
  color: #e5d1bd;
  font-size: 14px;
}
.archive-toggle:hover,
.archive-toggle:focus-visible {
  border-color: var(--gold);
  outline: 0;
  box-shadow: 0 0 10px rgba(255, 176, 112, 0.3);
}
.archive-arrow {
  width: 0;
  height: 0;
  border-block: 5px solid transparent;
  border-left: 7px solid currentColor;
  transition: transform 0.15s;
}
.archive-toggle[aria-expanded="true"] .archive-arrow {
  transform: rotate(90deg);
}
.archive-toggle[aria-expanded="true"] {
  border-color: rgba(255, 176, 112, 0.72);
  box-shadow:
    0 0 8px rgba(255, 176, 112, 0.24),
    inset 0 0 12px rgba(255, 176, 112, 0.06);
}
.archive-count {
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.42);
  color: #e5d1bd;
  font:
    12px Science,
    sans-serif;
  text-align: center;
}
.archive-content[hidden] {
  display: none;
}
.month-content {
  padding: 4px 0 0 12px;
}
.event-card {
  width: 100%;
  margin: 0 0 12px;
  padding: 9px;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(255, 180, 100, 0.32);
  border-radius: 9px;
  background: linear-gradient(
    to bottom,
    rgba(28, 28, 28, 0.88),
    rgba(8, 8, 8, 0.92)
  );
  color: #e5d1bd;
  text-align: left;
  cursor: pointer;
  box-shadow:
    inset 0 0 18px rgba(255, 180, 80, 0.04),
    0 0 8px rgba(0, 0, 0, 0.6);
  transition: 0.18s;
}
.event-card:hover {
  border-color: var(--gold);
  box-shadow:
    0 0 6px rgba(255, 176, 112, 0.75),
    0 0 14px rgba(255, 176, 112, 0.55),
    0 0 26px rgba(255, 176, 112, 0.35),
    inset 0 0 12px rgba(255, 176, 112, 0.08);
}
.event-card.active {
  border-color: var(--gold);
  box-shadow:
    0 0 8px rgba(255, 176, 112, 0.95),
    0 0 18px rgba(255, 176, 112, 0.75),
    0 0 36px rgba(255, 176, 112, 0.45),
    inset 0 0 14px rgba(255, 176, 112, 0.1);
}
.event-card.is-unpublished,
.news-preview.is-unpublished,
.file-card.is-unpublished {
  border-color: rgba(126, 173, 213, 0.68);
  background: linear-gradient(135deg, rgba(27, 42, 54, 0.9), rgba(8, 12, 16, 0.95));
  box-shadow: inset 0 0 20px rgba(91, 158, 211, 0.08), 0 0 12px rgba(54, 118, 170, 0.12);
}
.event-card.is-unpublished:hover,
.news-preview.is-unpublished:hover,
.file-card.is-unpublished:hover {
  border-color: #9bc5e7;
  box-shadow: 0 0 14px rgba(91, 158, 211, 0.34), inset 0 0 20px rgba(91, 158, 211, 0.1);
}
.unpublished-archive {
  margin-bottom: 14px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(126, 173, 213, 0.3);
}
.unpublished-archive-title,
.unpublished-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #a9d4f3;
  font: 12px Russo, sans-serif;
  letter-spacing: 0.8px;
}
.unpublished-archive-title span,
.unpublished-list-heading small {
  min-width: 25px;
  padding: 3px 7px;
  border: 1px solid rgba(126, 173, 213, 0.42);
  border-radius: 999px;
  background: rgba(8, 15, 21, 0.72);
  color: #cce8fb;
  font: 11px Science, sans-serif;
  text-align: center;
}
.event-status,
.material-status {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 7px;
  padding: 3px 7px;
  border: 1px solid rgba(126, 173, 213, 0.58);
  border-radius: 999px;
  background: rgba(13, 29, 41, 0.88);
  color: #b9def8;
  font: 10px/1.25 Russo, sans-serif;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}
.event-status.draft,
.material-status.draft {
  border-color: rgba(205, 156, 104, 0.62);
  background: rgba(48, 31, 18, 0.88);
  color: #e9b77f;
}
.unpublished-list {
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(126, 173, 213, 0.34);
}
.unpublished-list-heading {
  margin: 0;
  padding: 0 2px;
  font-size: 14px;
}
.material-preview-notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 24px;
  padding: 12px 15px;
  border: 1px solid rgba(126, 173, 213, 0.62);
  border-radius: 7px;
  background: rgba(14, 31, 44, 0.84);
  color: #d0e8f8;
  font: 13px/1.45 "Segoe UI", Tahoma, Arial, sans-serif;
}
.material-preview-notice.draft {
  border-color: rgba(205, 156, 104, 0.62);
  background: rgba(48, 31, 18, 0.76);
}
.material-preview-notice .material-status {
  margin: 0;
}
.event-card.no-image {
  grid-template-columns: minmax(0, 1fr);
  padding: 13px;
}
.event-card.no-image .event-card-summary {
  -webkit-line-clamp: 4;
}
.event-thumb {
  width: 108px;
  height: 88px;
  border: 1px solid rgba(255, 180, 100, 0.32);
  border-radius: 7px;
  overflow: hidden;
  background: #16120f;
}
.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-card-copy {
  min-width: 0;
}
.event-card-title {
  display: -webkit-box;
  margin-bottom: 5px;
  overflow: hidden;
  color: var(--gold);
  font:
    15px/1.2 ScienceSemi,
    sans-serif;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.event-card-summary {
  display: -webkit-box;
  overflow: hidden;
  color: #e5d1bd;
  font:
    13px/1.32 "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.event-card-meta {
  display: block;
  margin-top: 6px;
  color: #c7ad93;
  font:
    12px/1.25 "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
}
.article-kicker {
  color: var(--gold2);
  font:
    13px Russo,
    sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.article-title {
  margin: 10px 0 12px;
  color: var(--gold);
  font:
    28px/1.2 Russo,
    sans-serif;
  text-wrap: balance;
  text-shadow: 1px 1px 0 #000;
  -webkit-text-stroke: 1px #000;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-bottom: 17px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 180, 100, 0.2);
  color: var(--muted);
  font:
    14px/1.45 "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
}
.article-meta-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.content-management {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.content-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 180, 100, 0.38);
  border-radius: 5px;
  background: rgba(12, 12, 12, 0.75);
  color: var(--gold);
  font:
    21px/1 "Segoe UI Symbol",
    "Segoe UI",
    sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.content-icon:hover,
.content-icon:focus-visible {
  border-color: var(--gold);
  color: #ffd0a0;
  outline: none;
  box-shadow: 0 0 8px rgba(255, 176, 112, 0.35);
}
.delete-content-icon {
  color: #d88e80;
}
.article-lead {
  margin: 0 0 24px;
  color: #e5d1bd;
  font:
    18px/1.55 "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
}
.article-body {
  color: #e5d1bd;
  font:
    17px/1.7 "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
  overflow-wrap: anywhere;
}
.article-body p {
  margin: 0 0 1.1em;
}
.article-body h2,
.article-body h3 {
  color: var(--gold);
  font-family: Russo, sans-serif;
  text-shadow: 1px 1px 0 #000;
  -webkit-text-stroke: 1px #000;
}
.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 22px auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}
.article-body figure {
  margin: 22px 0;
}
.article-body .qwtf-longread-media {
  margin: 22px 0 8px;
  text-align: center;
}
.article-body .qwtf-longread-media img {
  margin: 0 auto;
}
.article-body .article-caption {
  margin: 0 0 24px;
  color: #c5ad97;
  font-size: 13px;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}
.article-body figure > img {
  margin: 0 auto;
}
.article-body .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.article-body .wp-block-gallery .wp-block-image {
  margin: 0;
}
.article-body .wp-block-gallery img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  margin: 0;
  object-fit: cover;
}
.article-body blockquote {
  margin: 22px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 176, 112, 0.06);
  color: #e5d1bd;
}
.article-body pre {
  padding: 14px;
  overflow: auto;
  background: #080808;
  border: 1px solid #3a3028;
}
.article-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.text-link {
  color: var(--gold);
  font:
    15px Russo,
    sans-serif;
  text-decoration: none;
}
.footer-panel {
  min-height: 62px;
  margin-top: 30px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #bdbdbd;
  font-size: 14px;
}
.footer-panel a {
  text-decoration: none;
}
.top-link {
  padding: 5px;
  border: 0;
  background: none;
  color: var(--gold);
  font:
    16px Russo,
    sans-serif;
  cursor: pointer;
}
.loading-state,
.empty-state,
.error-state {
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
}
.loading-state {
  position: relative;
  min-height: 110px;
  overflow: hidden;
  font-size: 0;
}
.loading-state::before {
  display: block;
  width: 100%;
  height: 72px;
  border: 1px solid rgba(255, 176, 112, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 176, 112, 0.08), transparent),
    rgba(16, 14, 13, 0.72);
  background-size: 220% 100%;
  content: "";
  animation: loading-shimmer 1.25s ease-in-out infinite;
}
.loading-state.large::before {
  height: 150px;
}
@keyframes loading-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
.loading-state.large {
  padding-top: 100px;
}
.error-state {
  color: #ef9a8d;
}
.page-main {
  margin-top: 30px;
}
.listing-panel {
  min-height: 800px;
  min-width: 0;
  padding: 78px 30px 40px;
}
.listing-panel.material-detail-view {
  background: rgba(9, 9, 9, 0.82);
}
.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.listing-intro {
  color: var(--muted);
}
.news-list {
  display: grid;
  gap: 18px;
}
.news-preview {
  display: grid;
  grid-template-columns: minmax(220px, 32%) 1fr;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(38, 31, 26, 0.82),
    rgba(8, 8, 8, 0.92)
  );
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
  text-decoration: none;
  color: #e5d1bd;
  transition: 0.18s;
}
.news-preview:hover {
  color: var(--text);
  border-color: var(--gold);
  transform: translateY(-1px);
}
.news-preview.no-image {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}
.news-preview-image {
  min-height: 210px;
  background: #12100e;
  overflow: hidden;
}
.news-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.news-preview:hover img {
  transform: scale(1.025);
}
.news-preview-copy {
  padding: 22px 25px;
}
.news-preview h2 {
  margin: 8px 0 12px;
  color: var(--gold);
  font:
    22px/1.2 Russo,
    sans-serif;
  text-shadow: 1px 1px 0 #000;
  -webkit-text-stroke: 1px #000;
}
.news-preview p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #e5d1bd;
  font:
    16px/1.55 "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.news-preview-meta {
  margin-top: 16px;
  color: #c7ad93;
  font:
    13px/1.4 "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
}
.load-more-wrap {
  padding-top: 24px;
  text-align: center;
}
.admin-link {
  opacity: 0.8;
}
.video-toolbar {
  margin-bottom: 22px;
}
.video-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.video-filter-button {
  min-height: 36px;
  padding: 7px 18px;
  border: 1px solid rgba(255, 176, 112, 0.38);
  border-radius: 5px;
  background: linear-gradient(
    to bottom,
    rgba(54, 42, 31, 0.88),
    rgba(15, 13, 11, 0.94)
  );
  color: #cbb39b;
  font:
    13px Russo,
    sans-serif;
  cursor: pointer;
  text-shadow: 1px 1px 0 #000;
}
.video-filter-button:hover,
.video-filter-button:focus-visible,
.video-filter-button.active {
  border-color: var(--gold);
  color: var(--gold);
  outline: none;
  box-shadow:
    0 0 7px rgba(255, 176, 112, 0.45),
    inset 0 0 10px rgba(255, 176, 112, 0.08);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.video-grid > .loading-state,
.video-grid > .error-state,
.video-grid > .empty-state {
  grid-column: 1 / -1;
}
.video-tile {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 180, 100, 0.32);
  border-radius: 9px;
  background: linear-gradient(
    to bottom,
    rgba(30, 27, 24, 0.92),
    rgba(8, 8, 8, 0.96)
  );
  color: #e5d1bd;
  text-decoration: none;
  box-shadow:
    inset 0 0 18px rgba(255, 180, 80, 0.04),
    0 6px 14px rgba(0, 0, 0, 0.42);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.video-tile:hover,
.video-tile:focus-visible {
  border-color: var(--gold);
  color: #e5d1bd;
  outline: none;
  box-shadow:
    0 0 8px rgba(255, 176, 112, 0.52),
    0 8px 18px rgba(0, 0, 0, 0.52);
  transform: translateY(-2px);
}
.video-thumbnail {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #100e0c;
}
.video-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.video-tile:hover .video-thumbnail img {
  transform: scale(1.025);
}
.video-kind,
.video-duration {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(5, 5, 5, 0.86);
  color: #f1dbc5;
  font:
    11px/1.3 ScienceSemi,
    sans-serif;
}
.video-kind {
  left: 8px;
}
.video-kind.live {
  background: rgba(180, 28, 28, 0.92);
  color: #fff;
}
.video-duration {
  right: 8px;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 176, 112, 0.58);
  border-radius: 7px;
  background: rgba(8, 8, 8, 0.72);
  color: var(--gold);
  font-size: 17px;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.18s ease;
}
.video-tile:hover .video-play,
.video-tile:focus-visible .video-play {
  opacity: 1;
}
.video-tile-copy {
  display: block;
  padding: 13px 14px 15px;
}
.video-tile-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--gold);
  font:
    16px/1.35 ScienceSemi,
    sans-serif;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.video-tile-meta {
  display: block;
  min-height: 18px;
  margin-top: 9px;
  color: #c7ad93;
  font:
    12px/1.4 "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
}
.admin-shell {
  min-width: 0;
  margin-top: 0;
  min-height: 760px;
  padding: 76px 26px 32px;
}
.editor-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.editor-heading-row h2 {
  margin: 0;
  color: var(--gold);
  font:
    20px Russo,
    sans-serif;
}
.editor-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-field {
  display: grid;
  gap: 7px;
}
.form-field.full {
  grid-column: 1/-1;
}
.form-field label {
  color: var(--gold2);
  font:
    13px Russo,
    sans-serif;
}
.form-hint {
  color: #bca58f;
  font:
    12px/1.4 "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #5d4938;
  border-radius: 5px;
  background: rgba(12, 12, 12, 0.9);
  color: var(--text);
  outline: 0;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(255, 176, 112, 0.18);
}
.upload-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.upload-button {
  min-width: 225px;
  white-space: nowrap;
}
.upload-button:disabled {
  cursor: wait;
  filter: grayscale(0.65);
  opacity: 0.62;
}
.cover-preview {
  width: min(320px, 100%);
  max-height: 180px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.editor-upload-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.editor-host {
  min-height: 500px;
  background: #f1eee9;
  color: #181512;
  border-radius: 5px;
}
.tox-tinymce {
  border: 1px solid #5d4938 !important;
  border-radius: 5px !important;
}
.tox .tox-edit-area:before {
  border-color: var(--gold) !important;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.danger-button {
  color: #ff9d8f;
}
.form-status {
  min-height: 20px;
  color: var(--muted);
}
.rating-intro {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 15px;
}
.rating-intro p {
  margin: 0;
}
.rating-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid rgba(255, 176, 112, 0.26);
  border-radius: 7px;
  background: rgba(8, 8, 8, 0.62);
}
.rating-source-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rating-tab {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid #5d4938;
  border-radius: 4px;
  background: rgba(27, 22, 18, 0.86);
  color: #c7ad93;
  font:
    12px Russo,
    sans-serif;
  cursor: pointer;
}
.rating-tab:hover,
.rating-tab.active {
  border-color: var(--gold2);
  color: var(--gold);
  box-shadow: inset 0 0 12px rgba(255, 176, 112, 0.1);
}
.rating-date-field {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: var(--gold2);
  font:
    12px Russo,
    sans-serif;
}
.rating-date-field select,
.rating-forecast-controls select {
  min-height: 38px;
  padding: 7px 34px 7px 10px;
  border: 1px solid #5d4938;
  border-radius: 4px;
  background: rgba(10, 10, 10, 0.92);
  color: var(--text);
}
.rating-table-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.rating-table-heading h2,
.rating-forecast h2 {
  margin: 0;
  color: var(--gold);
  font:
    18px Russo,
    sans-serif;
}
.rating-table-heading span {
  color: #bca58f;
  font-size: 13px;
}
.rating-table-scroll {
  overflow-x: auto;
  border: 1px solid rgba(255, 176, 112, 0.32);
  border-radius: 7px;
}
.rating-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: rgba(7, 7, 7, 0.68);
  font-size: 13px;
}
.rating-table th,
.rating-table td {
  padding: 10px 9px;
  border-right: 1px solid rgba(255, 176, 112, 0.13);
  border-bottom: 1px solid rgba(255, 176, 112, 0.15);
  text-align: center;
}
.rating-table th {
  background: linear-gradient(to bottom, rgba(78, 52, 31, 0.48), rgba(22, 17, 13, 0.9));
  color: var(--gold);
  font:
    12px Russo,
    sans-serif;
  white-space: nowrap;
}
.rating-table tbody tr:hover {
  background: rgba(255, 176, 112, 0.07);
}
.rating-table th:last-child,
.rating-table td:last-child {
  border-right: 0;
}
.rating-position {
  width: 42px;
  color: #bca58f;
}
.rating-team {
  color: var(--gold);
  font:
    14px ScienceSemi,
    sans-serif;
  text-align: left !important;
}
.rating-team button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 176, 112, 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
}
.rating-team button:hover,
.rating-team button:focus-visible {
  color: #ffe0ba;
  outline: none;
  text-decoration-color: currentColor;
}
.rating-value b {
  display: block;
  color: var(--text);
  font-size: 14px;
}
.rating-value small {
  display: block;
  color: #9f8b77;
  font-size: 10px;
}
.rating-maps {
  min-width: 230px;
  color: #d1bba5;
  text-align: left !important;
}
.rating-played-maps {
  display: block;
  color: #81766c;
}
.rating-forecast {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 176, 112, 0.26);
}
.rating-forecast > p {
  margin: 9px 0 16px;
  color: #bca58f;
  font-size: 13px;
}
.rating-forecast-controls {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.rating-forecast-controls span {
  color: var(--gold);
  font-family: Russo, sans-serif;
}
.forecast-table {
  min-width: 520px;
}
.forecast-table td:first-child,
.forecast-table th:first-child {
  text-align: left;
}
.rating-change.positive {
  color: #c6dba8;
}
.rating-change.negative {
  color: #e0a296;
}
.rating-legend {
  margin-top: 22px;
  color: #9f9184;
  font-size: 12px;
}
.rating-legend b {
  color: var(--gold2);
}
.rating-history-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}
.rating-back-button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.rating-history-heading span {
  color: #bca58f;
  font:
    11px Russo,
    sans-serif;
}
.rating-history-heading h2 {
  margin: 2px 0 0;
  color: var(--gold);
  font:
    22px Russo,
    sans-serif;
}
.rating-history-summary {
  display: flex;
  gap: 9px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.rating-history-summary span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 176, 112, 0.22);
  border-radius: 4px;
  background: rgba(8, 8, 8, 0.56);
  color: #bca58f;
  font-size: 12px;
}
.rating-history-summary b {
  color: var(--text);
}
.rating-history-summary .summary-wins b {
  color: #b7d49a;
}
.rating-history-summary .summary-draws b {
  color: #c7bdad;
}
.rating-history-summary .summary-losses b {
  color: #d99b91;
}
.history-table {
  min-width: 760px;
}
.history-match-team {
  color: var(--text);
  font-family: ScienceSemi, sans-serif;
  text-align: left !important;
}
.history-match-team span {
  color: #8f8174;
  font-size: 10px;
}
.history-score {
  color: var(--gold);
  font-family: ScienceSemi, sans-serif;
  white-space: nowrap;
}
.history-result-bar {
  width: 100%;
  min-width: 180px;
  height: 22px;
  display: flex;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
}
.history-result-bar > span {
  min-width: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #17120e;
  font-size: 10px;
  font-weight: 700;
}
.history-bar-wins {
  background: #aac98d;
}
.history-bar-draws {
  background: #b8afa3;
}
.history-bar-losses {
  background: #cf8f84;
}
@media (max-width: 1050px) {
  .main-menu {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 18px;
  }
  .top-panel {
    height: auto;
    min-height: 167px;
    padding: 66px 32px 18px;
  }
  .main-layout {
    grid-template-columns: 335px minmax(0, 1fr);
  }
  .event-card {
    grid-template-columns: 82px 1fr;
  }
  .event-thumb {
    width: 82px;
    height: 76px;
  }
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  #app {
    width: min(100% - 18px, 620px);
    margin-top: 12px;
  }
  .brand-plate {
    min-width: 250px;
  }
  .top-panel {
    min-height: 253px;
    padding: 105px 18px 18px;
  }
  .social-links {
    top: 59px;
    right: 50%;
    transform: translateX(50%);
  }
  .main-menu {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-layout {
    grid-template-columns: 1fr;
  }
  .events-panel {
    min-height: 0;
    padding-bottom: 20px;
  }
  .events-scroll {
    max-height: 570px;
  }
  .content-panel {
    min-height: 600px;
    padding-inline: 18px;
  }
  .news-preview {
    grid-template-columns: 1fr;
  }
  .news-preview-image {
    height: 210px;
  }
  .listing-panel {
    padding-inline: 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field.full {
    grid-column: auto;
  }
  .upload-control-row {
    grid-template-columns: 1fr;
  }
  .upload-button {
    width: 100%;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .video-filter-button {
    flex: 1 1 calc(50% - 10px);
  }
  .rating-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .rating-date-field {
    min-width: 0;
  }
  .rating-table-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .rating-forecast-controls {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-panel {
    gap: 15px;
    align-items: flex-start;
  }
}
.article-body .ql-align-center {
  text-align: center;
}
.article-body .ql-align-right {
  text-align: right;
}
.article-body .ql-indent-1 {
  padding-left: 3em;
}
.article-body .ql-indent-2 {
  padding-left: 6em;
}
.article-body iframe {
  display: block;
  max-width: 100%;
  margin: 22px auto;
  aspect-ratio: 16/9;
}

.files-toolbar {
  align-items: center;
}

.file-controls-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 20px;
}

.file-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.file-view-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 2px;
  border: 1px solid rgba(255, 176, 112, 0.32);
  border-radius: 6px;
  background: rgba(8, 8, 8, 0.72);
}

.file-view-button {
  width: 35px;
  height: 33px;
  display: grid;
  place-items: center;
  padding: 7px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #9d8772;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.file-view-button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.file-view-button:hover,
.file-view-button:focus-visible {
  color: #ffd0a0;
  outline: none;
}

.file-view-button.active {
  background: linear-gradient(to bottom, rgba(72, 51, 35, 0.92), rgba(26, 19, 14, 0.96));
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(255, 176, 112, 0.34), 0 0 8px rgba(255, 176, 112, 0.13);
}

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

.file-grid.list-view {
  grid-template-columns: minmax(0, 1fr);
}

.file-grid.list-view .file-card {
  min-height: 0;
}

.file-grid > .loading-state,
.file-grid > .error-state,
.file-grid > .empty-state {
  grid-column: 1 / -1;
}

.file-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  min-height: 210px;
  padding: 17px;
  border: 1px solid rgba(228, 166, 93, 0.38);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(35, 29, 24, 0.84), rgba(8, 8, 8, 0.9));
  box-shadow: inset 0 0 18px rgba(255, 176, 112, 0.035);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.file-card.no-cover {
  grid-template-columns: minmax(0, 1fr);
}

.file-card:hover,
.file-card.selected {
  border-color: rgba(255, 176, 112, 0.78);
  box-shadow: 0 0 16px rgba(255, 176, 112, 0.18), inset 0 0 18px rgba(255, 176, 112, 0.06);
  transform: translateY(-1px);
}

.file-cover {
  width: 112px;
  height: 84px;
  overflow: hidden;
  border: 1px solid rgba(255, 176, 112, 0.55);
  border-radius: 9px;
  background: #0b0a09;
}

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

.file-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.file-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.file-card h2 {
  margin: 0;
  color: var(--gold);
  font: 18px ScienceSemi, sans-serif;
  line-height: 1.25;
}

.pin-mark {
  margin-right: 8px;
  color: #ffd09a;
  font-size: 11px;
  vertical-align: 2px;
}

.pin-control {
  align-self: end;
  min-height: 47px;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  color: var(--text);
  cursor: pointer;
}

.pin-control input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold2);
}

.file-card p {
  margin: 10px 0 13px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.48;
}

.file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
}

.file-meta span:not(.file-extension-tag):not(:last-child)::after {
  content: "·";
  margin-left: 14px;
  color: var(--gold2);
}

.file-extension-tag {
  padding: 2px 6px;
  border: 1px solid rgba(255, 176, 112, 0.45);
  border-radius: 4px;
  background: rgba(8, 8, 8, 0.78);
  color: var(--gold);
  font: 10px/1.2 Russo, sans-serif;
  text-transform: uppercase;
}

.file-download {
  align-self: flex-start;
  min-width: 150px;
  margin-top: 13px;
  font-size: 13px;
}

.file-source-field {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(228, 166, 93, 0.32);
  border-radius: 8px;
}

.file-source-field legend {
  padding: 0 7px;
  color: var(--gold2);
  font: 14px ScienceSemi, sans-serif;
}

.file-source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-bottom: 15px;
}

.file-source-tabs label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  cursor: pointer;
}

.file-source-tabs input {
  accent-color: var(--gold2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .file-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .file-controls-row {
    align-items: stretch;
    flex-direction: column;
  }

  .file-view-switcher {
    align-self: flex-end;
  }

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

  .file-cover {
    width: min(100%, 180px);
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

.tournament-create-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 26px;
}

.tournament-create-bar > span:first-child {
  color: var(--gold2);
  font: 13px Russo, sans-serif;
}

.tournament-create-bar .action-button {
  min-width: 120px;
  font-size: 13px;
}

.tournament-dashboard-section {
  margin-bottom: 30px;
}

.tournament-dashboard-section > h2,
.tournament-section > h2 {
  margin: 0 0 14px;
  color: var(--gold);
  font: 18px Russo, sans-serif;
  letter-spacing: 0.5px;
}

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

.tournament-card-grid > .empty-state {
  grid-column: 1 / -1;
}

.tournament-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(228, 166, 93, 0.4);
  border-radius: 11px;
  background: rgba(9, 9, 9, 0.82);
  color: var(--text);
  text-decoration: none;
  box-shadow: inset 0 0 18px rgba(255, 176, 112, 0.04);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.tournament-card:hover {
  color: var(--text);
  border-color: rgba(255, 176, 112, 0.8);
  box-shadow: 0 0 17px rgba(255, 176, 112, 0.17);
  transform: translateY(-2px);
}

.tournament-card-map {
  height: 125px;
  overflow: hidden;
  border-bottom: 1px solid rgba(228, 166, 93, 0.28);
}

.tournament-card-map img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.76) brightness(0.7);
  transition: filter 0.16s ease, transform 0.2s ease;
}

.tournament-card:hover .tournament-card-map img {
  filter: saturate(0.95) brightness(0.88);
  transform: scale(1.02);
}

.tournament-card-copy {
  padding: 16px;
}

.tournament-card h3 {
  margin: 10px 0;
  color: var(--gold);
  font: 18px ScienceSemi, sans-serif;
  line-height: 1.3;
}

.tournament-status {
  display: inline-flex;
  padding: 3px 8px;
  border: 1px solid rgba(228, 166, 93, 0.42);
  border-radius: 999px;
  color: var(--gold2);
  font: 10px Russo, sans-serif;
}

.tournament-status.active {
  border-color: rgba(107, 211, 133, 0.58);
  color: #9fe5ad;
  box-shadow: 0 0 8px rgba(67, 190, 99, 0.16);
}

.tournament-status.finished {
  color: var(--muted);
}

.tournament-card-meta,
.tournament-team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 13px;
  color: var(--muted);
  font-size: 12px;
}

.tournament-team-tags {
  margin-top: 13px;
}

.tournament-team-tags span {
  padding: 2px 7px;
  border: 1px solid rgba(228, 166, 93, 0.24);
  border-radius: 4px;
  color: var(--text);
}

.tournament-detail-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tournament-hero {
  padding: 6px 0 25px;
  border-bottom: 1px solid rgba(228, 166, 93, 0.3);
}

.tournament-hero h1 {
  margin: 11px 0;
  color: var(--gold);
  font: 27px Russo, sans-serif;
  line-height: 1.25;
}

.tournament-hero > p {
  color: var(--text);
}

.tournament-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 14px;
}

.tournament-facts b {
  color: var(--gold2);
}

.tournament-section {
  margin-top: 30px;
}

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

.participant-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px solid rgba(228, 166, 93, 0.28);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.66);
}

.participant-card img,
.team-logo-placeholder {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 7px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.team-logo-placeholder {
  display: grid;
  place-items: center;
  color: var(--gold);
  font: 12px Russo, sans-serif;
}

.participant-card strong,
.participant-card span {
  display: block;
}

.participant-card strong {
  color: var(--gold);
  font-family: ScienceSemi, sans-serif;
}

.participant-card div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.standings-scroll {
  overflow-x: auto;
  border: 1px solid rgba(228, 166, 93, 0.35);
  border-radius: 9px;
}

.standings-table {
  width: 100%;
  min-width: 730px;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
}

.standings-table th {
  padding: 11px 8px;
  background: rgba(56, 37, 24, 0.68);
  color: var(--gold);
  font: 12px Russo, sans-serif;
}

.standings-table td {
  padding: 10px 8px;
  border-top: 1px solid rgba(228, 166, 93, 0.18);
  color: var(--text);
}

.standings-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.018);
}

.standings-team {
  min-width: 115px;
  text-align: left;
}

.standings-team img {
  width: 25px;
  height: 25px;
  margin-right: 8px;
  object-fit: contain;
  vertical-align: middle;
}

.standings-demos a {
  display: inline-block;
  margin: 1px 3px;
  font-size: 11px;
}

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

.tournament-match {
  overflow: hidden;
  border: 1px solid rgba(228, 166, 93, 0.34);
  border-radius: 9px;
  background: rgba(7, 7, 7, 0.76);
}

.tournament-match.scheduled {
  border-color: rgba(255, 176, 112, 0.67);
  box-shadow: 0 0 12px rgba(255, 176, 112, 0.09);
}

.match-main {
  display: grid;
  grid-template-columns: 100px minmax(90px, 1fr) 125px minmax(90px, 1fr) 70px;
  align-items: center;
  gap: 10px;
  padding: 13px;
}

.match-main:not(:has(.content-management)) {
  grid-template-columns: 100px minmax(90px, 1fr) 125px minmax(90px, 1fr);
}

.match-status {
  color: var(--muted);
  font: 9px Russo, sans-serif;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  font: 17px ScienceSemi, sans-serif;
}

.match-team.second {
  justify-content: flex-end;
}

.match-team img,
.match-team > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 10px;
}

.match-score {
  color: #f4ddc7;
  font: 21px Russo, sans-serif;
  text-align: center;
}

.match-score time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 11px "Segoe UI", sans-serif;
}

.match-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  min-height: 35px;
  padding: 8px 13px;
  border-top: 1px solid rgba(228, 166, 93, 0.24);
  background: rgba(38, 26, 18, 0.2);
  font: 11px Russo, sans-serif;
}

.match-links span {
  color: #7f7973;
  font-family: "Segoe UI", sans-serif;
}

.tournament-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 5px 0 22px;
}

.tournament-admin-tabs a {
  padding: 8px 15px;
  border: 1px solid rgba(228, 166, 93, 0.38);
  background: rgba(13, 13, 13, 0.75);
  color: var(--gold2);
  font: 12px Russo, sans-serif;
  text-decoration: none;
}

.tournament-admin-tabs a:hover,
.tournament-admin-tabs a.active {
  border-color: var(--gold2);
  color: #ffe0ba;
  box-shadow: 0 0 9px rgba(255, 176, 112, 0.15);
}

.tournament-admin-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
}

.tournament-records {
  padding-right: 15px;
  border-right: 1px solid rgba(228, 166, 93, 0.25);
}

.tournament-records-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}

.tournament-records-heading h2 {
  margin: 0;
  color: var(--gold);
  font: 16px Russo, sans-serif;
}

.tournament-records-heading .action-button {
  width: 96px;
  font-size: 11px;
}

.tournament-record-button {
  width: 100%;
  display: block;
  margin-bottom: 7px;
  padding: 9px 11px;
  border: 1px solid rgba(228, 166, 93, 0.22);
  background: rgba(5, 5, 5, 0.68);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.tournament-record-button:hover,
.tournament-record-button.active {
  border-color: rgba(255, 176, 112, 0.68);
  background: rgba(52, 33, 20, 0.46);
}

.tournament-record-button strong,
.tournament-record-button span {
  display: block;
}

.tournament-record-button strong {
  color: var(--gold);
  font: 13px ScienceSemi, sans-serif;
}

.tournament-record-button span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.field-label {
  color: var(--gold2);
  font: 14px ScienceSemi, sans-serif;
}

.entity-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.entity-checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(228, 166, 93, 0.22);
  border-radius: 5px;
  color: var(--text);
  cursor: pointer;
}

.entity-checkbox-grid input,
.tournament-map-picker input {
  accent-color: var(--gold2);
}

.tournament-map-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  max-height: 410px;
  padding-right: 6px;
  overflow-y: auto;
}

.tournament-map-picker label {
  position: relative;
  overflow: hidden;
  min-height: 86px;
  border: 1px solid rgba(228, 166, 93, 0.28);
  border-radius: 6px;
  cursor: pointer;
}

.tournament-map-picker img {
  width: 100%;
  height: 86px;
  display: block;
  object-fit: cover;
  filter: brightness(0.55);
}

.tournament-map-picker input {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 7px;
}

.tournament-map-picker span {
  position: absolute;
  z-index: 2;
  right: 4px;
  bottom: 4px;
  left: 4px;
  color: #fff0df;
  font: 11px ScienceSemi, sans-serif;
  text-align: center;
  text-shadow: 1px 1px 2px #000;
}

.tournament-map-picker label:has(input:checked) {
  border-color: #ffc080;
  box-shadow: 0 0 10px rgba(255, 176, 112, 0.28);
}

.tournament-map-picker label:has(input:checked) img {
  filter: brightness(0.82);
}

.team-logo-preview {
  width: 90px;
  height: 90px;
  margin-top: 12px;
  padding: 5px;
  border: 1px solid rgba(228, 166, 93, 0.35);
  border-radius: 7px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.38);
}

@media (max-width: 1180px) {
  .tournament-card-grid {
    grid-template-columns: 1fr;
  }

  .tournament-admin-grid {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .tournament-map-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .tournament-admin-grid {
    grid-template-columns: 1fr;
  }

  .tournament-records {
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(228, 166, 93, 0.25);
  }

  .match-main {
    grid-template-columns: 1fr 100px 1fr 65px;
  }

  .match-main:not(:has(.content-management)) {
    grid-template-columns: 1fr 100px 1fr;
  }

  .match-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .tournament-create-bar {
    justify-content: flex-start;
  }

  .tournament-create-bar > span:first-child {
    width: 100%;
  }

  .tournament-facts,
  .participant-grid,
  .entity-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .tournament-map-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-main {
    grid-template-columns: 1fr 86px 1fr;
  }

  .match-main:not(:has(.content-management)) {
    grid-template-columns: 1fr 86px 1fr;
  }

  .match-main .content-management {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .match-team {
    font-size: 14px;
  }

  .match-team img,
  .match-team > span {
    display: none;
  }

  .match-score {
    font-size: 17px;
  }
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 70px 18px 30px;
}

.auth-shell {
  width: min(440px, 100%);
  min-height: 350px;
  padding: 82px 44px 38px;
}

.auth-shell h1 {
  margin: 0 0 24px;
  color: var(--gold);
  font: 19px Russo, sans-serif;
  text-align: center;
}

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

.auth-shell label {
  color: var(--gold2);
  font: 13px ScienceSemi, sans-serif;
}

.auth-shell input {
  width: 100%;
  height: 44px;
  margin-bottom: 8px;
  padding: 0 13px;
  border: 1px solid rgba(228, 166, 93, 0.42);
  border-radius: 6px;
  background: rgba(3, 3, 3, 0.85);
  color: var(--text);
  outline: none;
}

.auth-shell input:focus {
  border-color: var(--gold2);
  box-shadow: 0 0 9px rgba(255, 176, 112, 0.18);
}

.auth-shell .action-button {
  width: 100%;
  margin-top: 8px;
}

.auth-shell p {
  color: var(--text);
  text-align: center;
}

.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

@media (max-width: 520px) {
  .auth-shell {
    padding-inline: 24px;
  }
}
