:root {
  color-scheme: dark;
  --kb-bg: #090b10;
  --kb-bg-2: #101419;
  --kb-ink: #f8fbff;
  --kb-muted: #b7c1ca;
  --kb-line: rgba(255, 255, 255, 0.16);
  --kb-green: #2fa84f;
  --kb-cyan: #2db7c4;
  --kb-gold: #f0ad42;
  --kb-red: #c54138;
  --kb-radius: 8px;
}

* {
  box-sizing: border-box;
}

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

body.kiksboks-site {
  min-width: 320px;
  color: var(--kb-ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(47, 168, 79, 0.26), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(45, 183, 196, 0.24), transparent 24rem),
    linear-gradient(135deg, #111a16 0%, #090b10 48%, #16131a 100%);
  font-family: "Kiksboks Inter", Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

body.kiksboks-site.is-game-mode {
  overflow: hidden;
  background: #050606;
}

body.kiksboks-site.is-console-mode {
  background: #030504;
}

.kiksboks-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.kiksboks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 14px;
}

.kiksboks-brand,
.kiksboks-nav,
.kiksboks-game-back,
.kiksboks-footer a {
  color: inherit;
  text-decoration: none;
}

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

.kiksboks-brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kb-green), var(--kb-cyan));
  color: white;
  font-family: "Kiksboks Karantina", "Karantina", Impact, "Arial Narrow", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.kiksboks-brand-copy {
  display: grid;
  gap: 2px;
}

.kiksboks-brand-copy strong {
  font-size: 22px;
  line-height: 1;
}

.kiksboks-brand-copy span {
  color: var(--kb-muted);
  font-size: 13px;
}

.kiksboks-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius);
  background: rgba(255, 255, 255, 0.06);
}

.kiksboks-nav a {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--kb-muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.kiksboks-nav a:hover,
.kiksboks-nav a:focus-visible {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.kiksboks-main {
  flex: 1 1 auto;
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.is-arcade-mode .kiksboks-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.is-game-mode .kiksboks-main {
  width: 100%;
  min-height: 100svh;
  padding: 0;
}

.kiksboks-game-back {
  position: fixed;
  z-index: 20;
  top: 66px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(5, 6, 6, 0.72);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.kiksboks-game-back:hover,
.kiksboks-game-back:focus-visible {
  color: white;
  border-color: rgba(255, 255, 255, 0.46);
  outline: none;
}

.kiksboks-footer {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 28px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.kiksboks-error {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.kiksboks-error h1 {
  margin: 0;
  font-size: clamp(64px, 18vw, 180px);
  line-height: 0.9;
}

.kiksboks-error a {
  color: white;
}

@media (max-width: 760px) {
  .kiksboks-header {
    width: min(100% - 24px, 1440px);
    align-items: flex-start;
    flex-direction: column;
  }

  .kiksboks-main,
  .kiksboks-footer {
    width: min(100% - 24px, 1440px);
  }
}
