:root {
  color-scheme: dark;
  --bg-deep: #07151f;
  --bg-page: #0b1f2b;
  --panel: rgba(16, 43, 56, 0.82);
  --panel-soft: rgba(22, 56, 68, 0.78);
  --ice: #bceff4;
  --cyan: #34c6d3;
  --aurora: #65d6b4;
  --text-primary: #f4fbfc;
  --text-secondary: #a9c1c8;
  --border: rgba(174, 226, 232, 0.18);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 70% 10%, rgba(72, 210, 193, 0.14), transparent 32%),
    radial-gradient(circle at 15% 5%, rgba(62, 170, 210, 0.12), transparent 28%),
    linear-gradient(180deg, #07151f 0%, #0b202b 55%, #081720 100%);
  font-family:
    Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(101, 214, 180, 0.45);
  outline-offset: 3px;
}

h1,
h2,
p {
  margin: 0;
}

.codes-shell {
  display: grid;
  gap: 22px;
  width: min(1100px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 42px);
}

.codes-header,
.brand-lockup,
.header-actions,
.card-heading,
.code-row {
  display: flex;
  align-items: center;
}

.codes-header {
  justify-content: space-between;
  gap: 14px;
}

.brand-lockup {
  gap: 12px;
  min-width: 0;
}

.brand-lockup img {
  flex: 0 0 auto;
  border: 1px solid rgba(188, 239, 244, 0.24);
  border-radius: 14px;
  background: rgba(236, 245, 246, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.brand-lockup small,
.brand-lockup strong {
  display: block;
}

.brand-lockup small,
.micro-copy {
  color: var(--text-secondary);
  font-weight: 780;
}

.brand-lockup strong {
  margin-top: 2px;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.05;
}

.header-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.ghost-link,
.language-switch {
  background: rgba(236, 245, 246, 0.06);
  border: 1px solid rgba(188, 239, 244, 0.16);
  border-radius: 999px;
}

.ghost-link {
  min-height: 38px;
  padding: 9px 13px;
  color: var(--ice);
  font-size: 13px;
  font-weight: 900;
}

.language-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  min-width: 108px;
  padding: 4px;
}

.language-switch button {
  min-height: 34px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.language-switch button[aria-pressed="true"],
.language-switch button.is-active {
  color: #03171d;
  background: linear-gradient(135deg, var(--aurora), var(--cyan));
}

.hero-card,
.codes-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 5vw, 46px);
}

.eyebrow {
  color: var(--aurora);
  font-size: 13px;
  font-weight: 920;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card h1 {
  font-size: clamp(38px, 7vw, 74px);
  line-height: 0.98;
}

.hero-card p:last-child {
  max-width: 780px;
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 720;
  line-height: 1.55;
}

.codes-card {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
}

.card-heading {
  justify-content: space-between;
  gap: 14px;
}

.card-heading h2 {
  margin-top: 4px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
}

.count-badge {
  min-width: 72px;
  padding: 10px 16px;
  color: var(--ice);
  text-align: center;
  background: rgba(52, 198, 211, 0.13);
  border: 1px solid rgba(52, 198, 211, 0.38);
  border-radius: 999px;
  font-size: 20px;
  font-weight: 950;
}

.code-list {
  display: grid;
  gap: 10px;
}

.code-row {
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 10px 10px 16px;
  background: var(--panel-soft);
  border: 1px solid rgba(188, 239, 244, 0.16);
  border-radius: 14px;
}

.code-row code {
  min-width: 0;
  overflow: hidden;
  color: var(--ice);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(17px, 4.6vw, 23px);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  color: #03171d;
  background: linear-gradient(135deg, #a9f1e4, #65d6b4);
  border: 1px solid rgba(188, 239, 244, 0.42);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
}

.empty-card {
  padding: 18px;
  color: var(--text-secondary);
  background: rgba(236, 245, 246, 0.05);
  border: 1px dashed rgba(188, 239, 244, 0.22);
  border-radius: 14px;
  font-weight: 820;
}

.toast-region {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  padding: 13px 14px;
  color: #03171d;
  background: linear-gradient(135deg, #a9f1e4, #65d6b4);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-weight: 900;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-hiding {
  opacity: 0;
  transform: translateY(8px);
}

@media (max-width: 720px) {
  .codes-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .ghost-link,
  .language-switch {
    flex: 1 1 auto;
  }

  .ghost-link {
    text-align: center;
  }

  .card-heading {
    align-items: flex-start;
  }

  .code-row {
    min-height: 48px;
    padding: 8px 8px 8px 12px;
  }

  .copy-button {
    width: 40px;
    min-height: 34px;
    padding: 0;
    font-size: 0;
  }

  .copy-button::before {
    display: block;
    width: 13px;
    height: 13px;
    margin: 0 auto;
    border: 2px solid currentColor;
    border-radius: 2px;
    box-shadow: 5px -5px 0 -2px #8fe3d4, 5px -5px 0 0 currentColor;
    content: "";
  }
}

.codes-footer { margin-top: 28px; padding: 18px 8px 4px; color: var(--muted); text-align: center; font-size: 12px; font-weight: 750; line-height: 1.5; }

.guide-promo {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
  background: rgba(16, 43, 56, 0.76);
  border: 1px solid rgba(174, 226, 232, 0.16);
  border-radius: 18px;
}
.guide-promo h2 { margin: 4px 0 8px; font-size: clamp(24px, 4vw, 34px); line-height: 1.12; }
.guide-promo p:last-child { margin: 0; color: var(--text-secondary); font-weight: 680; line-height: 1.55; }
.guide-link { min-height: 42px; padding: 11px 16px; color: #03171d; background: linear-gradient(135deg, var(--aurora), var(--cyan)); border-radius: 999px; font-size: 14px; font-weight: 950; white-space: nowrap; }
@media (max-width: 720px) { .guide-promo { grid-template-columns: 1fr; } .guide-link { text-align: center; } }

.codes-footer { display: grid; gap: 8px; }
.footer-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* Premium WOS Forge mark */
.brand-lockup img{object-fit:contain;border:0;background:transparent;box-shadow:none;filter:drop-shadow(0 5px 8px rgba(0,0,0,.38));}
