:root {
  --bg-1: #060d14;
  --bg-2: #0a1219;
  --slot-bg: rgba(174, 120, 51, 0.951);
  --slot-bg-2: rgba(242, 151, 16, 0.966);
  --slot-border: rgb(255, 136, 0);
  --slot-glow: rgba(255, 174, 0, 0.38);
  --text: #edf2f7;
  --muted: rgba(255, 255, 255, 0.8);
  --red: #ff3a3a;
  --shadow: rgba(0, 0, 0, 0.38);
  --pan-x: 0px;
  --pan-y: 0px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Oswald", sans-serif;
  background:
    linear-gradient(135deg, rgba(2, 7, 11, 0.7), rgba(6, 14, 20, 0.9)),
    url("oh_images/sksbuild/BackgroundOnceHuman.jpg") center center / cover no-repeat fixed,
    radial-gradient(circle at 10% 15%, rgba(92, 110, 140, 0.18), transparent 18%),
    linear-gradient(135deg, #02070b 0%, #0b1118 35%, #050b12 100%);
  background-position: calc(50% + var(--pan-x)) calc(50% + var(--pan-y));
  background-blend-mode: multiply, normal, screen, normal;
  color: var(--text);
  transition: background-position 220ms ease-out;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 16, 0.14);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(circle at 18% 22%, rgba(118, 181, 255, 0.18), transparent 25%),
    radial-gradient(circle at 80% 18%, rgba(255, 88, 198, 0.11), transparent 22%),
    radial-gradient(circle at 50% 90%, rgba(64, 124, 192, 0.12), transparent 27%);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(18px);
}

.background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
  filter: saturate(1.55) brightness(1.18) contrast(1.08);
  transform: translate3d(calc(var(--pan-x) * 0.7), calc(var(--pan-y) * 0.7), 0) scale(1.08);
  transition: transform 230ms ease-out, filter 230ms ease-out;
  will-change: transform, filter;
  background: radial-gradient(circle at center, rgba(65, 125, 164, 0.18), transparent 42%);
}

.effects-toggle {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 20;
  min-width: 126px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 170, 76, 0.7);
  background: rgba(12, 17, 22, 0.9);
  color: rgba(255, 255, 255, 0.94);
  font: 600 0.78rem/1.1 'Oswald', sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 176, 82, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.effects-toggle:hover,
.effects-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 191, 92, 0.95);
  background: rgba(18, 24, 30, 0.96);
  outline: none;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow-x: hidden;
  background: transparent;
}

.topbar,
.concept-shell {
  position: relative;
  z-index: 1;
}

.topbar {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  width: min(1460px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.twitch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border: 1px solid rgba(255, 170, 76, 0.5);
  background: rgba(12, 17, 22, 0.82);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 176, 82, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  justify-self: end;
}

.twitch-link img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.twitch-link span {
  font-size: clamp(0.72rem, 0.8vw, 1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

.twitch-link:hover,
.twitch-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 191, 92, 0.9);
  background: rgba(18, 24, 30, 0.92);
  box-shadow: 0 0 12px rgba(255, 176, 82, 0.18);
}

@media (max-width: 768px) {
  .twitch-link {
    display: none;
  }
}

.page-title-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 34px;
  width: 100%;
}

.page-title {
  display: inline-block;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.86rem, 1.15vw, 1.35rem);
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.utility-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 170, 76, 0.5);
  background: rgba(12, 17, 22, 0.82);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 0 1px rgba(255, 176, 82, 0.08);
}

.utility-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}

.utility-btn:hover,
.utility-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 191, 92, 0.9);
  background: rgba(18, 24, 30, 0.92);
  box-shadow: 0 0 12px rgba(255, 176, 82, 0.18);
}

.utility-btn--back {
  justify-self: start;
  margin-left: 0;
}

.utility-btn--home {
  justify-self: end;
  margin-right: 0;
}

.concept-shell {
  width: min(1420px, 100%);
  min-height: 860px;
  background: rgba(9, 13, 18, 0.34);
  border: 1px solid rgba(255, 225, 0, 0.04);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
  display: grid;
  grid-template-columns: 1fr 1.52fr;
  gap: 18px;
  padding: 52px 20px 14px;
  position: relative;
  overflow: hidden;
  margin-top: 14px;
}

.concept-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0) 18%, rgba(255,255,255,0.015));
  pointer-events: none;
}

.left-column,
.right-column {
  position: relative;
  z-index: 1;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 1.8vw, 2.7rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 248, 255, 0.92);
}

.section-title--big {
  font-size: clamp(1.1rem, 1.5vw, 2.1rem);
  letter-spacing: 0.12em;
}

.section-title--spaced {
  margin-top: 18px;
}

.title-accent {
  display: inline-block;
  width: 6px;
  height: clamp(18px, 1.8vw, 24px);
  background: linear-gradient(180deg, #f4ce72, #e3b454);
  box-shadow: 0 0 18px rgba(240, 198, 106, 0.46);
}

.weapon-grid {
  display: grid;
  grid-template-columns: 1.8fr 0.9fr;
  gap: 12px;
  align-items: stretch;
}

.weapon-stack,
.weapon-side-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
}

.section-block,
.matrix-block,
.lower-cards-block {
  min-width: 0;
}

.slot {
  position: relative;
  background: linear-gradient(135deg, rgba(176, 116, 39, 0.96), rgba(126, 83, 29, 0.9));
  border: 1px solid var(--slot-border);
  overflow: hidden;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(255, 170, 80, 0.12);
  border-radius: 0;
}

.slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(0,0,0,0.12));
  opacity: 0.8;
  pointer-events: none;
}

.slot::after {
  content: "";
  position: absolute;
  inset: 8px 8px auto auto;
  width: 8px;
  height: 8px;
  background: var(--slot-glow);
  box-shadow: 0 0 12px rgba(255, 182, 83, 0.78);
  border-radius: 50%;
  pointer-events: none;
}

.slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.slot-label {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  color: rgba(255,255,255,0.92);
  font-size: clamp(0.5rem, 0.9vw, 1.1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgb(53, 23, 1);
  font-weight: 500;
  line-height: 1.1;
  max-width: calc(100% - 20px);
}

.slot-hover {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  gap: 5px;
  padding: 11px 12px 12px;
  border: 1px solid rgba(255, 180, 90, 0.65);
  background: rgba(9, 15, 20, 0.86);
  backdrop-filter: blur(2px);
  box-shadow: 0 0 0 1px rgba(255, 176, 82, 0.1), 0 12px 18px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
  max-height: calc(100% - 22px);
  overflow: visible;
}

.slot-hover strong {
  display: block;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.2;
}

.slot-hover span {
  display: block;
  color: rgba(219, 230, 240, 0.82);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.slot:hover .slot-hover,
.slot:focus-within .slot-hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  border-color: rgba(255, 191, 92, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 176, 82, 0.18), 0 0 12px rgba(255, 176, 82, 0.16), 0 12px 18px rgba(0, 0, 0, 0.26);
}

.slot-number {
  display: none;
}

.slot--weapon-large {
  min-height: 180px;
  aspect-ratio: 1.58 / 1;
}

.slot--weapon-side {
  min-height: 180px;
  aspect-ratio: 1 / 1.18;
}

.slot--gear {
  min-height: 110px;
  aspect-ratio: 1.15 / 1;
}

.slot--plain,
.slot--soft {
  min-height: 78px;
}

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

.right-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 10px 12px;
}

.matrix-grid--top {
  grid-template-rows: repeat(3, minmax(88px, 1fr));
}

.slot--plain {
  background: linear-gradient(135deg, rgba(184, 119, 40, 0.96), rgba(131, 82, 23, 0.92));
}

.lower-row {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(180px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.matrix-block .section-title,
.lower-cards-block .section-title,
.ring-panel .section-title {
  margin-bottom: 10px;
}

.lower-cards-block {
  min-width: 0;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(78px, 1fr));
  gap: 10px 12px;
}

.slot--soft {
  min-height: 76px;
  background: linear-gradient(135deg, rgba(184, 119, 40, 0.96), rgba(131, 82, 23, 0.92));
}

.ring-panel {
  background: rgba(8, 13, 18, 0.9);
  border: 1px solid rgba(255,255,255,0.06);
  min-height: 290px;
  display: grid;
  place-items: center;
  padding: 8px;
  align-content: start;
  gap: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.ring-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(50px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 180px;
}

.ring-card {
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(172, 179, 186, 0.48), rgba(58, 63, 72, 0.55));
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.06), 0 0 0 1px rgba(255, 176, 82, 0.09);
  overflow: hidden;
}

.ring-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.ring-card::before,
.ring-card::after {
  display: none;
}

.ring-card span {
  display: none;
}

@media (max-width: 1100px) {
  .concept-shell {
    grid-template-columns: 1fr;
  }

  .left-column,
  .right-column {
    width: 100%;
  }
}

@media (max-width: 720px) {
  body {
    padding: 10px;
  }

  .slot-hover {
    display: none;
  }

  .page-title {
    font-size: clamp(1.12rem, 1.8vw, 1.76rem);
    letter-spacing: 0.16em;
  }

  .topbar {
    top: 12px;
    width: min(1470px, calc(100% - 20px));
  }

  .concept-shell {
    width: 100%;
    min-height: auto;
    padding: 14px 12px 12px;
    gap: 16px;
    display: flex;
    flex-direction: column;
    margin-top: 36px;
  }

  .left-column,
  .right-column {
    display: block;
    width: 100%;
  }

  .section-title {
    margin-bottom: 10px;
    font-size: clamp(1.3rem, 5.2vw, 2.08rem);
  }

  .weapon-grid,
  .weapon-stack,
  .weapon-side-stack {
    grid-template-columns: 1fr !important;
    display: grid;
    width: 100%;
  }

  .weapon-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .weapon-stack {
    gap: 10px;
  }

  .weapon-side-stack {
    grid-column: 1;
  }

  .slot--weapon-large,
  .slot--weapon-side {
    min-height: 120px;
    width: 100%;
  }

  .slot--weapon-large {
    aspect-ratio: 2.6 / 1;
  }

  .slot--weapon-side {
    aspect-ratio: 2.2 / 1;
    min-height: 120px;
    overflow: hidden;
  }

  .slot--weapon-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
  }

  .gear-grid,
  .matrix-grid,
  .inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .matrix-grid--top {
    grid-template-rows: repeat(3, minmax(90px, 1fr));
  }

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

  .ring-panel {
    min-height: 240px;
  }

  .ring-grid {
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .topbar {
    top: 8px;
    width: min(1470px, calc(100% - 16px));
  }

  .utility-btn {
    width: 30px;
    height: 30px;
  }

  .utility-btn svg {
    width: 14px;
    height: 14px;
  }

  .concept-shell {
    padding: 12px 10px 10px;
  }

  .section-title {
    letter-spacing: 0.04em;
  }

  .weapon-grid,
  .weapon-stack,
  .weapon-side-stack {
    grid-template-columns: 1fr !important;
    display: grid;
    width: 100%;
  }

  .weapon-grid,
  .gear-grid,
  .matrix-grid,
  .inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weapon-grid {
    grid-template-columns: 1fr !important;
  }

  .weapon-stack {
    grid-template-columns: 1fr !important;
  }

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

  .slot-label {
    font-size: 0.598rem;
    left: 8px;
    top: 10px;
  }

  .slot-number {
    right: 8px;
    top: 8px;
    font-size: 1rem;
  }
}
