body {
  background-color: #131313;
  color: #e5e2e1;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

.industrial-grid {
  background-image:
    linear-gradient(to right, rgba(61, 61, 61, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(61, 61, 61, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

.grain-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ambient-glitch {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 48;
  opacity: 0;
  mix-blend-mode: screen;
  background:
    linear-gradient(90deg, rgba(206, 66, 43, 0.04) 0 50%, transparent 50% 100%),
    linear-gradient(180deg, transparent 0 48%, rgba(255, 255, 255, 0.02) 48% 52%, transparent 52% 100%);
}

.ambient-glitch.is-active {
  animation: ambient-glitch-overlay 0.14s steps(2, end) forwards;
}

.page-content.glitch-shift {
  animation: ambient-glitch-content 0.14s steps(2, end);
}

@keyframes ambient-glitch-overlay {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  50% {
    opacity: 0.35;
    transform: translateX(-1px);
  }
  100% {
    opacity: 0;
    transform: translateX(1px);
  }
}

@keyframes ambient-glitch-content {
  0%,
  100% {
    transform: translate(0, 0);
    filter: none;
  }
  33% {
    transform: translate(-1px, 0);
    filter: hue-rotate(3deg) brightness(1.02);
  }
  66% {
    transform: translate(1px, 0);
    filter: hue-rotate(-2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-glitch.is-active,
  .page-content.glitch-shift {
    animation: none;
  }
}

.rust-glow {
  box-shadow: 0 0 20px rgba(206, 66, 43, 0.15);
}

.scanline {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(206, 66, 43, 0.2), transparent);
  position: absolute;
  animation: scan 4s linear infinite;
}

@keyframes scan {
  0% {
    top: -10%;
  }
  100% {
    top: 110%;
  }
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.timer-digit {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: #ce422b;
  letter-spacing: -0.02em;
}

.timer-separator {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 700;
  color: #3d3d3d;
  line-height: 1;
  padding-bottom: 18px;
}

.linked-account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(30, 30, 30, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.linked-account-row:hover {
  background: rgba(40, 40, 40, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 20px rgba(0, 0, 0, 0.25);
}

.linked-account-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #a0a0a0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.linked-account-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.linked-account-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.linked-account-name {
  font-size: 14px;
  line-height: 1.4;
  color: #e5e2e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.linked-account-ban-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  line-height: 1.3;
  color: #a0a0a0;
  letter-spacing: 0.02em;
}

.linked-account-ban-date span {
  color: #e5e2e1;
}

.linked-account-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid rgba(206, 66, 43, 0.55);
  background: rgba(206, 66, 43, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ce422b;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.linked-accounts-extra {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.linked-accounts-extra.is-expanded {
  grid-template-rows: 1fr;
}

.linked-accounts-extra-inner {
  overflow: hidden;
  min-height: 0;
}

.linked-account-row.is-extra {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    border-color 0.2s ease;
}

.linked-accounts-extra.is-expanded .linked-account-row.is-extra {
  opacity: 1;
  transform: translateY(0);
}

.expand-accounts-icon {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.expand-accounts-icon.is-expanded {
  transform: rotate(180deg);
}

.page-transition-overlay {
  position: fixed;
  inset: 0;
  background-color: #131313;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.28s ease;
}

.page-transition-scanlines {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(206, 66, 43, 0.025) 3px,
    rgba(206, 66, 43, 0.025) 4px
  );
}

.page-transition-flash {
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
}

.page-transition-glitch-band {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: -10%;
  opacity: 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(206, 66, 43, 0.35),
    transparent
  );
  box-shadow: none;
}

.page-transition-error-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: rgba(206, 66, 43, 0.7);
  opacity: 0;
  text-shadow: none;
}

.page-content {
  transition:
    opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-enter .page-content {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(3px);
}

body.page-enter-active .page-content {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

body.page-leaving .page-content {
  opacity: 0;
  transform: translateY(-6px);
  filter: blur(3px);
}

body.page-leaving .page-transition-overlay,
body.page-enter-error .page-transition-overlay {
  opacity: 1;
  pointer-events: all;
}

body.page-enter-active .page-transition-overlay {
  opacity: 0;
  pointer-events: none;
}

body.page-leaving .page-transition-flash,
body.page-enter-error .page-transition-flash {
  animation: error-flash 0.48s ease-out forwards;
}

body.page-leaving .page-transition-scanlines,
body.page-enter-error .page-transition-scanlines {
  animation: error-scanlines 0.48s ease-out forwards;
}

body.page-leaving .page-transition-glitch-band,
body.page-enter-error .page-transition-glitch-band {
  animation: error-glitch-band 0.48s ease-out forwards;
}

body.page-leaving .page-transition-error-text,
body.page-enter-error .page-transition-error-text {
  animation: error-text-fade 0.48s ease-out forwards;
}

@keyframes error-flash {
  0%,
  100% {
    opacity: 0;
    background: transparent;
  }
  20% {
    opacity: 1;
    background: rgba(206, 66, 43, 0.07);
  }
  45% {
    opacity: 0;
    background: transparent;
  }
  65% {
    opacity: 1;
    background: rgba(206, 66, 43, 0.05);
  }
}

@keyframes error-scanlines {
  0%,
  100% {
    opacity: 0;
  }
  15%,
  55% {
    opacity: 0.35;
  }
}

@keyframes error-glitch-band {
  0% {
    top: -10%;
    opacity: 0;
  }
  25% {
    top: 45%;
    opacity: 0.45;
  }
  50%,
  100% {
    top: 110%;
    opacity: 0;
  }
}

@keyframes error-text-fade {
  0%,
  100% {
    opacity: 0;
  }
  30%,
  55% {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-content {
    transition: opacity 0.25s ease;
  }

  body.page-enter .page-content,
  body.page-leaving .page-content {
    transform: none;
    filter: none;
  }

  body.page-leaving .page-transition-flash,
  body.page-enter-error .page-transition-flash,
  body.page-leaving .page-transition-scanlines,
  body.page-enter-error .page-transition-scanlines,
  body.page-leaving .page-transition-glitch-band,
  body.page-enter-error .page-transition-glitch-band,
  body.page-leaving .page-transition-error-text,
  body.page-enter-error .page-transition-error-text {
    animation: none;
  }
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 14px 10px;
  color: #a0a0a0;
  border: 1px solid transparent;
  transition:
    color 0.25s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 4px;
  height: 2px;
  background-color: #ce422b;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #e5e2e1;
  background: rgba(30, 30, 30, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.2);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-link-active {
  color: #e5e2e1;
  background: rgba(30, 30, 30, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link-active::after {
  transform: scaleX(1);
}

.site-nav {
  overflow: visible;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  cursor: default;
  user-select: none;
}

.nav-dropdown:hover > .nav-dropdown-trigger,
.nav-dropdown:focus-within > .nav-dropdown-trigger {
  color: #e5e2e1;
  background: rgba(30, 30, 30, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.2);
}

.nav-dropdown:hover > .nav-dropdown-trigger::after,
.nav-dropdown:focus-within > .nav-dropdown-trigger::after {
  transform: scaleX(1);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 180px;
  padding-top: 6px;
  z-index: 60;
  pointer-events: none;
}

.nav-dropdown-menu-inner {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  background: rgba(20, 20, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.35);
  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.28s ease,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  pointer-events: auto;
}

.nav-dropdown:hover .nav-dropdown-menu-inner,
.nav-dropdown:focus-within .nav-dropdown-menu-inner {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 12px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #a0a0a0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-dropdown-item:last-child {
  border-bottom: none;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus-visible {
  color: #e5e2e1;
  background: rgba(206, 66, 43, 0.1);
}

.glass-btn {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(20, 20, 20, 0.25);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease,
    color 0.25s ease,
    transform 0.2s ease;
}

.glass-btn:hover,
.glass-btn:focus-visible {
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 4px 16px rgba(0, 0, 0, 0.22);
  color: #e5e2e1;
}

.glass-btn.is-selected {
  background: rgba(206, 66, 43, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(206, 66, 43, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 16px rgba(206, 66, 43, 0.15);
}

.glass-btn-primary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(206, 66, 43, 0.92);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 4px 20px rgba(206, 66, 43, 0.25);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease;
}

.glass-btn-primary:hover,
.glass-btn-primary:focus-visible {
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e5e2e1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 20px rgba(0, 0, 0, 0.3);
}

.glass-btn-primary:active {
  transform: scale(0.98);
}

.steam-input-error {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(206, 66, 43, 0.45);
  background: rgba(206, 66, 43, 0.08);
  color: #ffb4a6;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: left;
}

.steam-input-group.is-invalid {
  border-color: rgba(206, 66, 43, 0.55) !important;
}

.steam-input-group.is-invalid input {
  border-color: rgba(206, 66, 43, 0.55);
}

.page-loading {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 19, 19, 0.72);
  backdrop-filter: blur(4px);
}

.page-loading.hidden {
  display: none;
}

.page-loading-box {
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 30, 30, 0.85);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #a0a0a0;
}

.footer-legal {
  max-width: 56rem;
  font-size: 12px;
  line-height: 1.6;
  color: #a0a0a0;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: center;
}

.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 20, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.cookie-consent-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #e5e2e1;
}

.cookie-consent-btn {
  align-self: flex-start;
  padding: 10px 16px;
  border: 1px solid rgba(206, 66, 43, 0.55);
  background: rgba(206, 66, 43, 0.15);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.cookie-consent-btn:hover {
  background: rgba(206, 66, 43, 0.28);
}

@media (min-width: 768px) {
  .cookie-consent {
    left: auto;
    right: 24px;
    bottom: 24px;
    max-width: 420px;
  }
}
