:root {
  --bg: #121213;
  --bg-alt: #181818;
  --panel: rgba(30, 30, 31, 0.85);
  --panel-border: rgba(140, 140, 140, 0.18);
  --text: #e8eef4;
  --muted: #a0a5aa;
  --accent: #c4c9ce;
  --accent-strong: #737a81;
  --danger: #ff6b6b;
  --shadow: 0 20px 50px rgba(27, 27, 27, 0.55);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  background: #111111;
  color: var(--text);
}

body {
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 18px 0;
  overflow-y: auto;
  background-image:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 36%),
    linear-gradient(180deg, #161616 0%, #0d0d0e 100%);
  background-size: 100% 100%, 100% 100%;
}

body::before {
  display: none;
}

body::after {
  content: "";
  position: fixed;
  left: var(--cursor-x);
  top: var(--cursor-y);
  z-index: 0;
  width: 220px;
  height: 220px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(237, 237, 238, 0.08), transparent 58%);
  opacity: 0.72;
  transition: left 0.12s ease, top 0.12s ease;
}

body.easter-egg-active::after {
  width: 360px;
  height: 360px;
  opacity: 1;
  background:
    radial-gradient(circle, hsla(0, 100%, 78%, 0.62) 0, hsla(55, 100%, 70%, 0.32) 22%, transparent 54%),
    radial-gradient(circle, hsla(0, 0%, 99%, 0.24), transparent 68%);
  filter: blur(2px) saturate(2.4) drop-shadow(0 0 18px hsla(0, 100%, 70%, 0.8));
  animation: rainbow-cursor-glow 2.4s linear infinite;
}

@keyframes rainbow-cursor-glow {
  0% { filter: hue-rotate(0deg) blur(2px) saturate(2.4) drop-shadow(0 0 18px hsla(0, 100%, 70%, 0.85)); }
  50% { filter: hue-rotate(180deg) blur(1px) saturate(3) drop-shadow(0 0 28px hsla(180, 100%, 70%, 0.9)); }
  100% { filter: hue-rotate(360deg) blur(2px) saturate(2.4) drop-shadow(0 0 18px hsla(0, 100%, 70%, 0.85)); }
}

.easter-egg-title {
  position: fixed;
  z-index: 20;
  left: 50%;
  top: 50%;
  max-width: calc(100vw - 32px);
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2.2rem, 7vw, 7.5rem);
  font-weight: 950;
  letter-spacing: 0.06em;
  line-height: 0.95;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.82);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) perspective(700px) rotateX(70deg) rotateZ(-4deg) scale(0.45);
  transform-origin: center;
  text-shadow:
    1px 1px 0 #ffef6e,
    3px 3px 0 #ff3d81,
    6px 6px 0 #c52cff,
    9px 9px 0 #5d4dff,
    13px 13px 0 #252044,
    0 18px 34px rgba(0, 0, 0, 0.84),
    0 0 28px rgba(255, 55, 190, 0.8);
}

.easter-egg-title.showing {
  opacity: 1;
  animation: easter-egg-arrival 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards, rainbow-title 2.2s linear infinite;
}

.easter-egg-title.settled {
  left: 220px;
  top: auto;
  bottom: 24px;
  width: min(340px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  font-size: clamp(1.1rem, 2.2vw, 1.85rem);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.72);
  text-align: left;
  transform: perspective(700px) rotateX(8deg) rotateZ(-3deg) scale(1);
  transition: left 1s ease, bottom 1s ease, max-width 1s ease, font-size 1s ease, transform 1s ease;
}

.easter-egg-dust {
  position: fixed;
  z-index: 19;
  left: 50%;
  top: calc(50% + 84px);
  width: 660px;
  height: 180px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) scale(0.25);
  background:
    radial-gradient(ellipse at 20% 60%, rgba(180, 180, 180, 0.6) 0 9%, transparent 25%),
    radial-gradient(ellipse at 42% 50%, rgba(176, 176, 177, 0.68) 0 13%, transparent 30%),
    radial-gradient(ellipse at 66% 58%, rgba(200, 200, 200, 0.5) 0 11%, transparent 28%),
    radial-gradient(ellipse at 84% 68%, rgba(120, 130, 145, 0.48) 0 8%, transparent 24%);
  filter: blur(7px) contrast(1.15);
}

.easter-egg-dust.showing {
  animation: dust-burst 1.8s ease-out forwards;
}

@keyframes dust-burst {
  0% { opacity: 0; transform: translateX(-50%) translateY(18px) scale(0.25); }
  22% { opacity: 0.92; transform: translateX(-50%) translateY(0) scale(0.95); }
  62% { opacity: 0.68; transform: translateX(-50%) translateY(-8px) scale(1.18); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-22px) scale(1.5); }
}

@keyframes easter-egg-arrival {
  0% { opacity: 0; transform: translate(-50%, -50%) perspective(700px) rotateX(70deg) rotateZ(-4deg) scale(0.45); }
  65% { opacity: 1; transform: translate(-50%, -50%) perspective(700px) rotateX(-8deg) rotateZ(-2deg) scale(1.08); }
  100% { opacity: 1; transform: translate(-50%, -50%) perspective(700px) rotateX(0) rotateZ(-2deg) scale(1); }
}

@keyframes rainbow-title {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.oskar-easter-egg {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 130;
  width: min(900px, calc(100vw - 32px));
  min-height: min(260px, 34vh);
  padding: 24px 30px;
  border: 5px solid #b8ffbd;
  border-radius: 0;
  background: #19b84a;
  color: #f2fff3;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2.2rem, 7vw, 7rem);
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 5px 0 #08752d, 0 12px 22px rgba(0, 70, 20, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -150vh) rotate(-3deg);
}

.oskar-easter-egg.showing {
  inset: 0;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  min-height: 0;
  padding: 32px;
  border: 0;
  background: #19b84a;
  pointer-events: auto;
  transform: translateY(-100vh);
  animation: oskar-screen-fall 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.oskar-easter-egg.released {
  left: 24px;
  top: auto;
  bottom: 76px;
  width: min(380px, calc(100vw - 40px));
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f2f5f7;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  letter-spacing: 0.04em;
  text-align: left;
  text-shadow: 0 0 4px #b8ffbd, 0 0 14px #35ee72, 0 3px 12px rgba(0, 0, 0, 0.75);
  animation: oskar-text-release 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards, oskar-text-glow 2.6s 1.4s ease-in-out infinite;
}

@keyframes oskar-screen-fall {
  0% { opacity: 0; transform: translateY(-100vh) rotate(-8deg); }
  18% { opacity: 1; }
  72% { transform: translateY(14px) rotate(2deg); }
  86% { transform: translateY(-6px) rotate(-1deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}

@keyframes oskar-text-release {
  0% { opacity: 0; transform: translateY(-100vh) rotate(-5deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}

@keyframes oskar-text-glow {
  0%, 100% { text-shadow: 0 0 4px #b8ffbd, 0 0 14px #35ee72, 0 3px 12px rgba(0, 0, 0, 0.75); }
  50% { text-shadow: 0 0 8px #f0fff2, 0 0 28px #35ee72, 0 0 46px rgba(53, 238, 114, 0.7), 0 4px 14px rgba(0, 0, 0, 0.8); }
}

.grid-fragment-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.grid-fragment {
  position: absolute;
  width: var(--fragment-length);
  height: 1px;
  background: rgba(160, 160, 160, 0.62);
  box-shadow: 0 0 5px rgba(160, 160, 160, 0.28);
  transform-origin: left center;
  animation: grid-fragment-break 620ms cubic-bezier(0.2, 0.75, 0.3, 1) forwards;
}

@keyframes grid-fragment-break {
  0% {
    opacity: 0.72;
    transform: rotate(var(--fragment-angle)) translateX(0) scaleX(0.8);
  }
  45% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--fragment-angle)) translateX(var(--fragment-distance)) scaleX(1.15);
  }
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1800px, 100%);
}

.topbar {
  position: relative;
  margin-top: 98px;
  margin-bottom: -98px;
}

.site-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100vw;
  min-height: 108px;
  margin-top: 112px;
  margin-left: calc(50% - 50vw);
  padding: 14px 20px 10px;
  border-top: 1px solid rgba(140, 140, 140, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  background: rgba(7, 10, 13, 0.78);
  box-shadow: 0 -18px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-align: center;
}

.site-footer img {
  width: 96px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4));
}

#aalEasterEgg {
  cursor: pointer;
  transform-origin: center;
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1), height 260ms cubic-bezier(0.22, 1, 0.36, 1), transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease;
}

#aalEasterEgg.aal-growing {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(260px, 80vw);
  height: auto;
  max-width: none;
  margin: 0;
  z-index: 110;
  transform: translate(-50%, -50%) scale(var(--aal-zoom, 1));
}

#aalEasterEgg.aal-shaking {
  animation: aal-shake 420ms ease-in-out;
}

#aalEasterEgg.aal-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 110;
  width: 100vw;
  height: 100vh;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
  transform: none;
  filter: brightness(1.05) saturate(1.12);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.86), 0 0 80px rgba(255, 255, 255, 0.38);
  animation: aal-fullscreen-arrival 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.aal-hidden {
  opacity: 0;
  pointer-events: none;
}

.aal-growth-overlay {
  position: fixed;
  left: var(--aal-origin-x);
  top: var(--aal-origin-y);
  z-index: 110;
  width: var(--aal-origin-width);
  height: var(--aal-origin-height);
  transform-origin: center;
  transform: scale(calc(1 + var(--aal-growth-step, 1) * 0.72));
  cursor: pointer;
  overflow: hidden;
  border-radius: 0;
  background: #050505;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.75), 0 0 32px rgba(255, 255, 255, 0.22);
}

.aal-growth-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aal-growth-overlay.is-shaking {
  animation: aal-overlay-shake 420ms ease-in-out;
}

.aal-growth-overlay.is-fullscreen {
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  transform: none;
  box-shadow: none;
  animation: aal-fullscreen-arrival 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes aal-overlay-shake {
  0%, 100% { transform: translate(calc(var(--aal-dx) * var(--aal-progress, 0)), calc(var(--aal-dy) * var(--aal-progress, 0))) scale(calc(1 + var(--aal-growth-step, 1) * 0.72)) rotate(0deg); }
  25% { transform: translate(calc(var(--aal-dx) * var(--aal-progress, 0)), calc(var(--aal-dy) * var(--aal-progress, 0))) scale(calc(1 + var(--aal-growth-step, 1) * 0.72)) rotate(-2deg) translateX(-4px); }
  50% { transform: translate(calc(var(--aal-dx) * var(--aal-progress, 0)), calc(var(--aal-dy) * var(--aal-progress, 0))) scale(calc(1 + var(--aal-growth-step, 1) * 0.72)) rotate(2deg) translateX(4px); }
  75% { transform: translate(calc(var(--aal-dx) * var(--aal-progress, 0)), calc(var(--aal-dy) * var(--aal-progress, 0))) scale(calc(1 + var(--aal-growth-step, 1) * 0.72)) rotate(-1deg); }
}

.aal-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 111;
  display: grid;
  grid-template-columns: repeat(var(--aal-grid-size), 1fr);
  grid-template-rows: repeat(var(--aal-grid-size), 1fr);
  gap: 2px;
  padding: 2px;
  overflow: hidden;
  cursor: pointer;
  background: #050505;
  background-repeat: repeat;
  background-position: 0 0;
  animation: aal-grid-arrival 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.aal-grid-item {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  animation: aal-tile-arrival 500ms ease both;
}

@keyframes aal-shake {
  0%, 100% { transform: translate(-50%, -50%) scale(var(--aal-zoom, 1)) rotate(0deg); }
  20% { transform: translate(-50%, -50%) scale(var(--aal-zoom, 1)) rotate(-4deg) translateX(-5px); }
  40% { transform: translate(-50%, -50%) scale(var(--aal-zoom, 1)) rotate(4deg) translateX(5px); }
  60% { transform: translate(-50%, -50%) scale(var(--aal-zoom, 1)) rotate(-3deg) translateX(-3px); }
  80% { transform: translate(-50%, -50%) scale(var(--aal-zoom, 1)) rotate(3deg) translateX(3px); }
}

@keyframes aal-fullscreen-arrival {
  from { transform: scale(1.12); opacity: 0.72; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes aal-grid-arrival {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes aal-tile-arrival {
  from { opacity: 0; transform: scale(0.35) rotate(8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

.site-footer p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sodacan-decoration {
  position: absolute;
  top: -50px;
  right: 20px;
  width: auto;
  height: 180px;
  opacity: 0.3;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
  pointer-events: auto;
  z-index: 2;
  transform: rotate(20deg);
}

@keyframes sodacan-shake {
  0%, 100% { transform: rotate(20deg) translateX(0); }
  20% { transform: rotate(16deg) translateX(-7px); }
  40% { transform: rotate(24deg) translateX(7px); }
  60% { transform: rotate(17deg) translateX(-5px); }
  80% { transform: rotate(23deg) translateX(5px); }
}

.sodacan-decoration.is-shaking {
  animation: sodacan-shake 360ms ease-in-out;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding-top: 2px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  transform: translateY(0);
  align-self: center;
}

.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow,
.label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--muted);
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-top: 0;
  line-height: 1;
  transform: translateY(0);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.35fr);
  gap: 24px;
  align-items: center;
}

.panel {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.02), transparent 34%),
    rgba(12, 18, 28, 0.52);
  border: 1px solid rgba(160, 165, 170, 0.15);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 24px 60px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.12), transparent 24%),
    radial-gradient(circle at 80% 88%, rgba(255, 255, 255, 0.04), transparent 32%);
  pointer-events: none;
  border-radius: 24px;
}

.maps-panel,
.preview-panel,
.gallery-panel {
  padding: 20px;
}

.gallery-panel {
  margin-top: 24px;
}

.maps-panel {
  min-height: 620px;
}

.panel-heading {
  display: none;
}

.map-grid {
  position: relative;
  width: min(620px, 100%);
  height: 560px;
  margin: 0 auto;
  isolation: isolate;
}

.map-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  height: 70%;
  transform: translate(-50%, -50%);
  background: rgba(120, 130, 140, 0.05);
  border: 1px solid rgba(140, 145, 150, 0.18);
  clip-path: polygon(50% 0%, 85% 18%, 100% 52%, 82% 100%, 18% 100%, 0% 52%, 15% 18%);
  box-shadow: inset 0 0 24px rgba(150, 155, 160, 0.08);
  pointer-events: none;
}

.map-grid::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 85%;
  width: 46%;
  height: 4px;
  transform: translate(-50%, -50%);
  background: rgba(18, 25, 36, 0.42);
  pointer-events: none;
}

.map-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 126px;
  height: 126px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.28s ease, filter 0.28s ease;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  z-index: 1;
}

.map-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.16));
}

.map-badge::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: inherit;
}

.map-badge .badge-icon {
  position: absolute;
  top: 8px;
  font-size: 1.9rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}

.map-badge .badge-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #f2f7ff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.map-card:hover .map-badge,
.map-card:focus-visible .map-badge,
.map-card.active .map-badge {
  filter: brightness(1.12) saturate(1.15);
  box-shadow: 0 0 0 2px rgba(210, 215, 220, 0.75), 0 16px 36px rgba(150, 155, 160, 0.25);
}

.map-card:hover,
.map-card:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
  z-index: 10;
}

.map-card.active {
  --scale: 1.04;
}

.map-card.cache .map-badge {
  background: url('https://chefogang.net/oskar/Set_cache_cs2.png') center / contain no-repeat !important;
  border: none !important;
  box-shadow: none !important;
  width: 140px !important;
  height: 140px !important;
  border-radius: 0 !important;
  clip-path: none !important;
  background-color: transparent !important;
}

.map-card.cache .map-badge::before,
.map-card.cache .map-badge::after {
  display: none !important;
}

.map-card.cache .badge-icon,
.map-card.cache .badge-name {
  display: none !important;
}

.map-card.cache:hover .map-badge,
.map-card.cache:focus-visible .map-badge,
.map-card.cache.active .map-badge,
.map-card.dust2:hover .map-badge,
.map-card.dust2:focus-visible .map-badge,
.map-card.dust2.active .map-badge,
.map-card.inferno:hover .map-badge,
.map-card.inferno:focus-visible .map-badge,
.map-card.inferno.active .map-badge,
.map-card.mirage:hover .map-badge,
.map-card.mirage:focus-visible .map-badge,
.map-card.mirage.active .map-badge,
.map-card.nuke:hover .map-badge,
.map-card.nuke:focus-visible .map-badge,
.map-card.nuke.active .map-badge,
.map-card.ancient:hover .map-badge,
.map-card.ancient:focus-visible .map-badge,
.map-card.ancient.active .map-badge,
.map-card.anubis:hover .map-badge,
.map-card.anubis:focus-visible .map-badge,
.map-card.anubis.active .map-badge {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px rgba(210, 215, 220, 0.75), 0 16px 36px rgba(150, 155, 160, 0.25);
}

.map-card.anubis .map-badge {
  background: url('https://chefogang.net/oskar/Map_icon_de_anubis.png') center / contain no-repeat !important;
  border: none !important;
  box-shadow: none !important;
  width: 140px !important;
  height: 140px !important;
  border-radius: 0 !important;
  background-color: transparent !important;
}

.map-card.anubis .map-badge::before,
.map-card.anubis .map-badge::after {
  display: none !important;
}

.map-card.anubis .badge-icon,
.map-card.anubis .badge-name {
  display: none !important;
}

.map-card:hover .map-badge,
.map-card:focus-visible .map-badge {
  filter: brightness(1.12) saturate(0.8) drop-shadow(0 0 10px rgba(220, 225, 230, 0.9)) drop-shadow(0 0 24px rgba(180, 185, 190, 0.65));
}

.map-card.inferno .map-badge {
  background: url('https://chefogang.net/oskar/CS2_inferno_logo.png') center / contain no-repeat !important;
  border: none !important;
  box-shadow: none !important;
  width: 140px !important;
  height: 140px !important;
  border-radius: 0 !important;
  background-color: transparent !important;
}

.map-card.inferno .map-badge::before,
.map-card.inferno .map-badge::after {
  display: none !important;
}

.map-card.inferno .badge-icon,
.map-card.inferno .badge-name {
  display: none !important;
}

.map-card.mirage .map-badge {
  background: url('https://chefogang.net/oskar/Set_mirage%20%281%29.png') center / contain no-repeat !important;
  border: none !important;
  box-shadow: none !important;
  width: 140px !important;
  height: 140px !important;
  border-radius: 0 !important;
  background-color: transparent !important;
}

.map-card.mirage .map-badge::before,
.map-card.mirage .map-badge::after {
  display: none !important;
}

.map-card.mirage .badge-icon,
.map-card.mirage .badge-name {
  display: none !important;
}

.map-card.dust2 .map-badge {
  background: url('https://chefogang.net/oskar/Map_icon_de_dust2.png') center / contain no-repeat !important;
  border: none !important;
  box-shadow: none !important;
  width: 140px !important;
  height: 140px !important;
  border-radius: 0 !important;
  background-color: transparent !important;
}

.map-card.dust2 .map-badge::before,
.map-card.dust2 .map-badge::after {
  display: none !important;
}

.map-card.dust2 .badge-icon,
.map-card.dust2 .badge-name {
  display: none !important;
}

.map-card.nuke .map-badge {
  background: url('https://chefogang.net/oskar/Set_nuke_2.png') center / contain no-repeat !important;
  border: none !important;
  box-shadow: none !important;
  width: 140px !important;
  height: 140px !important;
  border-radius: 0 !important;
  background-color: transparent !important;
}

.map-card.nuke .map-badge::before,
.map-card.nuke .map-badge::after {
  display: none !important;
}

.map-card.nuke .badge-icon,
.map-card.nuke .badge-name {
  display: none !important;
}

.map-card.ancient .map-badge {
  background: url('https://chefogang.net/oskar/Map_icon_de_ancient.png') center / contain no-repeat !important;
  border: none !important;
  box-shadow: none !important;
  width: 140px !important;
  height: 140px !important;
  border-radius: 0 !important;
  background-color: transparent !important;
}

.map-card.ancient .map-badge::before,
.map-card.ancient .map-badge::after {
  display: none !important;
}

.map-card.ancient .badge-icon,
.map-card.ancient .badge-name {
  display: none !important;
}

.map-card .badge-name {
  bottom: 10px;
}

.side-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.preview-mode-selector {
  position: relative;
  display: flex;
  width: min(264px, 100%);
  min-height: 38px;
  padding: 3px;
  margin-top: 12px;
  border: 1px solid rgba(227, 228, 230, 0.24);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.preview-mode-selector::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(150, 160, 170, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 4px 12px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.preview-mode-selector.callout-active::before {
  transform: translateX(100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 4px 14px rgba(140, 145, 150, 0.2);
}

.preview-mode-btn {
  position: relative;
  z-index: 1;
  flex: 1;
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.preview-mode-btn:hover:not(:disabled),
.preview-mode-btn:focus-visible:not(:disabled),
.preview-mode-btn.active {
  color: var(--text);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.24);
}

.preview-mode-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.preview-mode-btn:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.nuke-level-selector {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  margin-top: 0;
  padding: 3px;
  border-radius: 10px;
  background: rgba(10, 14, 20, 0.78);
  backdrop-filter: blur(8px);
}

.nuke-level-selector[hidden] {
  display: none;
}

.nuke-level-btn {
  border: 1px solid rgba(140, 140, 140, 0.2);
  border-radius: 8px;
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(140, 140, 140, 0.06);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nuke-level-btn.active,
.nuke-level-btn:hover,
.nuke-level-btn:focus-visible {
  color: var(--text);
  border-color: rgba(180, 180, 180, 0.6);
  background: rgba(180, 180, 180, 0.16);
}

.side-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.side-btn {
  appearance: none;
  border: 1px solid rgba(140, 140, 140, 0.22);
  background: rgba(140, 140, 140, 0.06);
  color: var(--text);
  padding: 18px 16px;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.side-btn[data-side="T"] {
  background: linear-gradient(180deg, rgba(255, 212, 92, 0.28), rgba(182, 139, 24, 0.22));
  border-color: rgba(255, 213, 92, 0.85);
  color: #fef3b2;
}

.side-btn[data-side="CT"] {
  background: linear-gradient(180deg, rgba(129, 198, 255, 0.24), rgba(31, 91, 165, 0.2));
  border-color: rgba(144, 205, 255, 0.85);
  color: #dff1ff;
}

.side-btn:hover,
.side-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.side-btn.active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14), 0 12px 22px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px) scale(1.01);
}

.side-btn[data-side="T"].active {
  background: linear-gradient(180deg, rgba(255, 214, 92, 0.5), rgba(199, 148, 21, 0.38));
  border-color: rgba(255, 224, 116, 1);
  box-shadow: 0 0 0 2px rgba(255, 221, 116, 0.28), 0 12px 24px rgba(255, 187, 46, 0.24);
}

.side-btn[data-side="CT"].active {
  background: linear-gradient(180deg, rgba(134, 199, 255, 0.5), rgba(45, 114, 202, 0.38));
  border-color: rgba(166, 216, 255, 1);
  box-shadow: 0 0 0 2px rgba(148, 205, 255, 0.26), 0 12px 24px rgba(70, 132, 255, 0.2);
}

.selection-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.map-name {
  font-weight: 800;
  font-size: clamp(1.8rem, 2.1vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.map-description {
  color: var(--muted);
  line-height: 1.5;
  font-size: 1.08rem;
  max-width: 52ch;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-group {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(140, 140, 140, 0.18);
  border-radius: 16px;
  background: rgba(32, 32, 32, 0.5);
}

.gallery-group h3 {
  margin: 0 0 12px;
  color: #eef1f4;
  font-size: 1.1rem;
  text-align: center;
}

.gallery-group-images {
  display: grid;
  gap: 12px;
}

.gallery-item.paired-item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  align-items: start;
}

.paired-image {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  align-content: start;
}

.gallery-image-frame {
  overflow: hidden;
  border-radius: 16px;
}

.paired-image .gallery-image-frame {
  border-radius: 10px;
}

.gallery-item.paired-item img {
  width: 100%;
  height: clamp(220px, 20vw, 310px);
  aspect-ratio: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

.gallery-item {
  border-radius: 16px;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  cursor: zoom-in;
  position: relative;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.gallery-item img:hover,
.gallery-item img:focus-visible {
  transform: scale(1.045);
  filter: brightness(1.04);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(8px);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox img {
  width: auto;
  max-width: min(1500px, 98vw);
  max-height: 94vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(220, 225, 230, 0.35);
  border-radius: 50%;
  background: rgba(30, 34, 38, 0.86);
  color: #eef1f4;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(100, 106, 112, 0.9);
}

.lightbox-open {
  overflow: hidden;
}

.map-card:hover .map-badge,
.map-card:focus-visible .map-badge {
  filter: brightness(1.12) saturate(0.8) drop-shadow(0 0 10px rgba(220, 225, 230, 0.9)) drop-shadow(0 0 24px rgba(180, 185, 190, 0.65)) !important;
}

.preview-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
}

.map-magnifier {
  position: absolute;
  z-index: 4;
  width: 290px;
  height: 220px;
  border: 0cap; /* solid rgba(255, 255, 255, 0.72); */
  border-radius: 8px;
  background-repeat: no-repeat;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.62), 0 5px 12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.86);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.map-magnifier.visible {
  opacity: 1;
  transform: scale(1);
}

.preview-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
}

.preview-hero.callout-preview {
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
}

.preview-hero.callout-preview img {
  object-fit: contain;
}

@media (max-width: 840px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .map-grid {
    width: min(430px, 100%);
    height: 460px;
  }

}

@media (max-width: 560px) {
  .map-grid,
  .side-buttons {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .map-grid {
    width: 100%;
    height: 400px;
  }

  .map-card {
    width: 98px;
    height: 98px;
  }

  .preview-hero {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }
}
