/* The site's base styles (moved out of base.html). The ZapsUI look is zapsui.css, loaded after. */
:root {
  --oz-font-body: "Noto Sans", "Segoe UI", sans-serif;
  --oz-font-display: "Noto Sans", "Segoe UI", sans-serif;
  --oz-bg: #0b1220;
  --oz-surface: #131b2b;
  --oz-surface-2: #192335;
  --oz-text: #e7edf8;
  --oz-text-soft: #a8b6cf;
  --oz-line: #27344b;
  --oz-line-strong: #354765;
  --oz-blue: #1a8fd1;
  --oz-green: #21a16a;
  --oz-amber: #c78911;
  --oz-red: #c64242;
  --oz-link: #7fb2ff;
  --oz-link-hover: #a5c8ff;
  --oz-navbar-bg: rgba(12, 19, 32, 0.92);
  --oz-navbar-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  --oz-nav-text: rgba(231, 237, 248, 0.85);
  --oz-nav-active: #b8d2ff;
  --oz-table-bg: #131b2b;
  --oz-table-alt-bg: #162238;
  --oz-table-hover-bg: #1d2b44;
  --oz-table-head-text: #9fb2d3;
  --oz-footer-bg: rgba(12, 19, 32, 0.9);
  --oz-brand-mark-bg: #ffffff;
  --oz-brand-mark-border: #d7deeb;
  --oz-brand-mark-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  --oz-ghost-bg: #182439;
  --oz-ghost-border: #3a4e6f;
  --oz-ghost-hover-bg: #21304b;
  --oz-ghost-disabled-bg: #152137;
  --oz-ghost-disabled-border: #304564;
  --oz-ghost-disabled-text: #7f92b1;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--oz-font-body);
  color: var(--oz-text);
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(180deg, rgba(25, 195, 255, 0.05), rgba(25, 195, 255, 0) 160px),
    var(--oz-bg);
}

.is-size-7 {
  font-size: 0.79rem !important;
}

a,
a:visited {
  color: var(--oz-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.16s ease;
}

a:hover,
a:focus-visible {
  color: var(--oz-link-hover);
}

.oz-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.oz-navbar {
  background: var(--oz-navbar-bg);
  border-bottom: 1px solid var(--oz-line);
  backdrop-filter: blur(8px);
  box-shadow: var(--oz-navbar-shadow);
}

.oz-brand {
  font-family: var(--oz-font-display);
  color: var(--oz-text) !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  gap: 0.52rem;
}

.oz-brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: var(--oz-brand-mark-bg);
  color: #f2b500;
  border: 1px solid var(--oz-brand-mark-border);
  box-shadow: var(--oz-brand-mark-shadow);
}

.oz-brand-mark .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.oz-brand-mark i {
  font-size: 0.72rem;
}

.oz-brand-word {
  font-size: 1.01rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
}

.oz-brand-word .dotgg {
  color: var(--oz-text-soft);
}

.oz-brand:hover .oz-brand-mark,
.oz-brand:focus-visible .oz-brand-mark {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(16, 22, 38, 0.14);
}

.oz-brand .oz-brand-mark {
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.navbar-burger {
  height: 3.25rem;
}

.navbar-start .navbar-item,
.navbar-end .navbar-item {
  font-size: 0.94rem;
}

.navbar-item,
.navbar-link,
.navbar-item:visited,
.navbar-link:visited {
  font-family: var(--oz-font-display);
  color: var(--oz-nav-text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.navbar-item:hover,
.navbar-link:hover,
.navbar-item.is-active {
  color: var(--oz-nav-active) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.oz-main {
  flex: 1;
}

.oz-strip {
  background: var(--oz-surface);
  border: 1px solid var(--oz-line);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 8px 18px rgba(16, 22, 38, 0.03);
}

.oz-block {
  background: var(--oz-surface);
  border: 1px solid var(--oz-line);
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(16, 22, 38, 0.035);
}

.oz-block-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--oz-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.oz-block-body {
  padding: 14px;
}

.oz-title {
  font-family: var(--oz-font-display);
  color: var(--oz-text);
  margin: 0;
}

.oz-title-xl {
  font-size: clamp(1.58rem, 2.6vw, 2.12rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.oz-title-lg {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.oz-title-sm {
  font-size: 0.92rem;
  font-weight: 700;
}

.has-text-oz-soft {
  color: var(--oz-text-soft) !important;
}

.oz-mono {
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.oz-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--oz-line);
  border-radius: 10px;
  background: var(--oz-surface);
  overflow: hidden;
}

.oz-metric {
  padding: 12px 14px;
  border-right: 1px solid var(--oz-line);
}

.oz-metric:last-child {
  border-right: 0;
}

.oz-metric-label {
  font-size: 0.73rem;
  color: var(--oz-text-soft);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.oz-metric-value {
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--oz-text);
  line-height: 1.2;
}

.oz-metric-subvalue {
  margin-top: 5px;
  margin-bottom: 0;
  font-size: 0.76rem;
  color: var(--oz-text-soft);
}

.oz-metrics-7dtd {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oz-metrics-7dtd .oz-metric {
  border-right: 1px solid var(--oz-line);
}

.oz-metrics-7dtd .oz-metric:last-child {
  border-right: 0;
}

.oz-row-list {
  border: 1px solid var(--oz-line);
  border-radius: 10px;
  overflow: hidden;
}

.oz-row {
  padding: 10px 12px;
  border-bottom: 1px solid var(--oz-line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.oz-row:last-child {
  border-bottom: 0;
}

.oz-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--oz-line-strong);
  padding: 2px 8px;
  font-size: 0.72rem;
  color: var(--oz-text-soft);
  background: var(--oz-surface-2);
}

.oz-pill.good {
  color: var(--oz-green);
  border-color: rgba(33, 161, 106, 0.34);
  background: rgba(33, 161, 106, 0.09);
}

.oz-pill.warn {
  color: var(--oz-amber);
  border-color: rgba(199, 137, 17, 0.34);
  background: rgba(199, 137, 17, 0.1);
}

.oz-pill.bad {
  color: var(--oz-red);
  border-color: rgba(198, 66, 66, 0.32);
  background: rgba(198, 66, 66, 0.09);
}

.button.is-oz-primary {
  color: #061018;
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, #5fd8ff 0%, #19c3ff 55%, #13a4dc 100%);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.button.is-oz-ghost {
  color: var(--oz-text);
  border-color: var(--oz-ghost-border);
  background: var(--oz-ghost-bg);
  font-weight: 600;
}

.button.is-oz-ghost:hover {
  background: var(--oz-ghost-hover-bg);
}

.button.is-oz-ghost[disabled],
.button.is-oz-ghost.is-disabled {
  background: var(--oz-ghost-disabled-bg);
  border-color: var(--oz-ghost-disabled-border);
  color: var(--oz-ghost-disabled-text);
  opacity: 1;
}

.oz-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--oz-line);
  background: var(--oz-surface-2);
  color: var(--oz-text-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.oz-message {
  border-radius: 10px;
  border: 1px solid rgba(25, 195, 255, 0.25);
  background: rgba(25, 195, 255, 0.06);
}

.oz-toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  width: min(24rem, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.oz-toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
  padding: 0.9rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(127, 178, 255, 0.26);
  background: rgba(15, 23, 38, 0.94);
  color: var(--oz-text);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  opacity: 0;
  transform: translate3d(0, -0.5rem, 0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.oz-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.oz-toast.is-dismissing {
  opacity: 0;
  transform: translate3d(0, -0.35rem, 0);
}

.oz-toast.is-success {
  border-color: rgba(33, 161, 106, 0.32);
  background: linear-gradient(180deg, rgba(19, 42, 32, 0.96) 0%, rgba(15, 30, 24, 0.96) 100%);
}

.oz-toast.is-warning {
  border-color: rgba(199, 137, 17, 0.32);
  background: linear-gradient(180deg, rgba(47, 34, 13, 0.96) 0%, rgba(34, 25, 10, 0.96) 100%);
}

.oz-toast.is-danger,
.oz-toast.is-error {
  border-color: rgba(198, 66, 66, 0.34);
  background: linear-gradient(180deg, rgba(54, 20, 20, 0.96) 0%, rgba(38, 16, 16, 0.96) 100%);
}

.oz-toast.is-info,
.oz-toast.is-debug {
  border-color: rgba(25, 195, 255, 0.3);
}

.oz-toast-icon {
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: #8fe0ff;
  flex-shrink: 0;
}

.oz-toast.is-success .oz-toast-icon {
  color: #71dbac;
}

.oz-toast.is-warning .oz-toast-icon {
  color: #f2c15d;
}

.oz-toast.is-danger .oz-toast-icon,
.oz-toast.is-error .oz-toast-icon {
  color: #ff9d9d;
}

.oz-toast-body {
  min-width: 0;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
}

.oz-toast-dismiss {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--oz-text-soft);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.oz-toast-dismiss:hover,
.oz-toast-dismiss:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--oz-text);
  outline: none;
}

@media screen and (max-width: 768px) {
  .oz-toast-stack {
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}

.oz-table {
  margin-bottom: 0 !important;
}

.oz-block,
.oz-block-body,
.table-container {
  min-width: 0;
}

.oz-block .table-container {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.oz-table,
.oz-table thead,
.oz-table tbody,
.oz-table tr,
.oz-table th,
.oz-table td {
  background: var(--oz-table-bg) !important;
}

.oz-table tbody tr:nth-child(even) td {
  background: var(--oz-table-alt-bg) !important;
}

.table.is-hoverable.oz-table tbody tr:hover td {
  background: var(--oz-table-hover-bg) !important;
}

.oz-table td,
.oz-table th,
.oz-table thead th {
  color: var(--oz-text);
  border-color: var(--oz-line);
  font-size: 0.88rem;
  vertical-align: middle;
}

.oz-table thead th {
  text-transform: uppercase;
  letter-spacing: 0.045em;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--oz-table-head-text);
}

.oz-table a {
  color: var(--oz-link);
}

.oz-table a:hover {
  color: var(--oz-link-hover);
}

.oz-platform-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: text-bottom;
}

.oz-platform-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.oz-platform-glyph {
  font-size: 1rem;
  line-height: 1;
}

.oz-platform-glyph.discord {
  color: #5865f2 !important;
}

.oz-platform-glyph.youtube {
  color: #ff0000 !important;
}

.oz-platform-glyph.twitch {
  color: #9146ff !important;
}

.oz-platform-glyph.steam {
  color: #1b75bb !important;
}

.oz-platform-glyph.generic {
  color: #19c3ff !important;
}

.oz-footer {
  border-top: 1px solid var(--oz-line);
  background: var(--oz-footer-bg);
}

.oz-footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.oz-footer-brand-title {
  color: var(--oz-text);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
}

.oz-footer-brand-subtitle {
  margin: 0.18rem 0 0;
}

.oz-footer-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.oz-footer-bottom {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.35rem;
  text-align: center;
}

.oz-footer a {
  color: var(--oz-text-soft);
}

.oz-footer a:hover {
  color: var(--oz-link);
}

.oz-theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

.oz-theme-switch input {
  accent-color: #f2b500;
}

.oz-account-dropdown .dropdown-menu {
  min-width: 220px;
}

.oz-account-dropdown .dropdown-content {
  background: var(--oz-surface);
  border: 1px solid var(--oz-line);
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(16, 22, 38, 0.2);
  padding: 0.32rem;
}

.oz-account-dropdown .dropdown-item,
.oz-account-dropdown .dropdown-item:visited {
  color: var(--oz-text);
  background: transparent;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5rem 0.65rem;
}

.oz-account-dropdown .dropdown-item:hover {
  background: var(--oz-surface-2);
  color: var(--oz-nav-active);
}

.oz-account-dropdown .dropdown-item .icon {
  color: var(--oz-text-soft);
}

.oz-account-dropdown .dropdown-divider {
  background: transparent;
  border-top: 1px solid var(--oz-line);
  margin: 0.35rem 0;
}

.oz-account-dropdown .dropdown-item-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
}

.oz-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.oz-account-toggle .icon {
  color: var(--oz-text-soft);
}

.oz-account-name {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oz-account-theme {
  width: 100%;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 600;
}

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

  .oz-metrics-7dtd {
    grid-template-columns: 1fr;
  }

  .oz-metrics-7dtd .oz-metric {
    border-right: 0;
    border-bottom: 1px solid var(--oz-line);
  }

  .oz-metrics-7dtd .oz-metric:last-child {
    border-bottom: 0;
  }

  .oz-metric:nth-child(2n) {
    border-right: 0;
  }

  .oz-metric {
    border-bottom: 1px solid var(--oz-line);
  }

  .oz-metric:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .oz-footer-top {
    flex-direction: column;
    align-items: center;
  }
}
