/* CGE Redeem Tool – public pages. Colors and type from the design spec. */
:root {
  --bg: #202020;
  --white: #ffffff;
  --blue: #60bcf4;
  --yellow: #ffcc00;
  --note: #cececf;
  --input-text: #cacaca;
  --code-bg: #23405b;
  --footer-bg: #101010;
  --footer-text: #a6a6a6;
  --btn-top: #0597d4;
  --btn-bottom: #0377bf;
  --btn-shadow: #12537c;
  --btn-pressed-top: #07b5e3;
  --btn-pressed-bottom: #0597d4;
  --btn-off-text: #d2d2d2;
  --btn-off-top: #0a7fb0;
  --btn-off-bottom: #09669f;
  --btn-off-shadow: #15496a;
  --radius: 20px;
  --font: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
  text-align: center;
}
a { color: var(--blue); }
img { display: block; }

/* Header: the banner artwork fades to white, multiply blends that into the page background. */
.hero { position: relative; width: 100%; }
.hero__banner {
  width: 100%;
  height: clamp(190px, 13.7vw, 263px);
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: multiply;
}
.hero__logo {
  position: absolute;
  left: 50%;
  top: clamp(52px, 4.4vw, 60px);
  transform: translateX(-50%);
  width: clamp(110px, 6.9vw, 132px);
}
.hero__logo img { width: 100%; height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }

.main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  margin: clamp(8px, 1vw, 14px) 0 clamp(28px, 3vw, 46px);
  color: var(--blue);
  font-weight: 800;
  font-size: clamp(34px, 3.2vw, 62px);
  line-height: 1.15;
  letter-spacing: .01em;
}
.lead {
  margin: 0 0 clamp(24px, 3vw, 40px);
  color: var(--yellow);
  font-weight: 800;
  font-size: clamp(20px, 1.65vw, 32px);
  line-height: 1.3;
}
.lead--error { color: var(--white); font-weight: 700; max-width: 640px; }
.note {
  margin: clamp(40px, 5vw, 72px) 0 0;
  color: var(--note);
  font-weight: 400;
  font-size: clamp(18px, 1.3vw, 25px);
  line-height: 1.4;
}
.note a { color: var(--blue); text-decoration: none; }
.note a:hover { text-decoration: underline; }
.note--small { margin-top: clamp(24px, 2.5vw, 40px); font-size: clamp(15px, 1vw, 19px); }
.notice {
  margin: -8px 0 24px;
  padding: 12px 20px;
  max-width: 640px;
  border-radius: 12px;
  background: rgba(255, 204, 0, .12);
  border: 1px solid rgba(255, 204, 0, .5);
  color: var(--yellow);
  font-weight: 700;
  font-size: clamp(15px, 1.1vw, 20px);
}

/* Code input */
.redeem-form { display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 2vw, 28px); width: 100%; }
.code-input {
  width: min(400px, 100%);
  height: clamp(64px, 5.5vw, 72px);
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--input-text);
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(30px, 2.2vw, 36px);
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  box-shadow: inset 0 0 4px #cfdae0, 0 0 24px rgba(96, 188, 244, .43);
}
.code-input::placeholder { color: var(--input-text); opacity: 1; }
.code-input:focus { box-shadow: inset 0 0 4px #cfdae0, 0 0 28px rgba(96, 188, 244, .7); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: clamp(220px, 13.5vw, 260px);
  height: clamp(56px, 3.3vw, 64px);
  padding: 0 32px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(to bottom, var(--btn-top), var(--btn-bottom));
  box-shadow: 0 5px 0 var(--btn-shadow);
  color: var(--white);
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(22px, 1.55vw, 30px);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .06s ease, opacity .15s ease;
  user-select: none;
}
.btn:hover { filter: brightness(1.05); }
.btn:active {
  background: linear-gradient(to bottom, var(--btn-pressed-top), var(--btn-pressed-bottom));
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--btn-shadow);
}
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn[disabled], .btn--muted {
  background: linear-gradient(to bottom, var(--btn-off-top), var(--btn-off-bottom));
  box-shadow: 0 5px 0 var(--btn-off-shadow);
  color: var(--btn-off-text);
  opacity: .8;
  filter: saturate(.35);
  cursor: default;
  transform: none;
}
.btn__arrow {
  width: 0; height: 0;
  border-left: 14px solid currentColor;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.btn--next.is-hidden { display: none; }

/* Platform choice */
.choose-form { display: flex; flex-direction: column; align-items: center; width: 100%; }
.game { border: 0; margin: 0 0 clamp(24px, 2.5vw, 40px); padding: 0; min-width: 0; width: 100%; }
.game__name {
  padding: 0;
  margin: 0 auto 16px;
  color: var(--white);
  font-weight: 800;
  font-size: clamp(22px, 1.8vw, 34px);
}
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 1.3vw, 24px); }
.platform__input { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }
.platform {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: clamp(160px, 11.5vw, 222px);
  height: clamp(56px, 3.3vw, 64px);
  padding: 0 28px;
  border-radius: var(--radius);
  background: linear-gradient(to bottom, var(--btn-off-top), var(--btn-off-bottom));
  box-shadow: 0 5px 0 var(--btn-off-shadow);
  color: var(--btn-off-text);
  font-weight: 800;
  font-size: clamp(22px, 1.55vw, 30px);
  line-height: 1;
  cursor: pointer;
  opacity: .8;
  transition: transform .06s ease, box-shadow .06s ease, opacity .15s ease;
  user-select: none;
}
.platform:hover { opacity: .95; }
.platform__input:checked + .platform {
  background: linear-gradient(to bottom, var(--btn-top), var(--btn-bottom));
  box-shadow: 0 5px 0 var(--btn-shadow);
  color: var(--white);
  opacity: 1;
}
.platform__input:focus-visible + .platform { outline: 3px solid var(--yellow); outline-offset: 3px; }
.platform:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--btn-off-shadow); }
.platform--out {
  cursor: not-allowed;
  opacity: .45;
  filter: saturate(.2);
}
.platform--out:active { transform: none; }
.platform__out { font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.btn--continue { margin-top: 4px; }

/* Result */
.key { display: flex; flex-direction: column; align-items: center; width: 100%; margin-bottom: clamp(24px, 3vw, 48px); }
.key + .key { padding-top: clamp(16px, 2vw, 32px); border-top: 1px solid rgba(255, 255, 255, .08); }
.key__code {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 clamp(18px, 2vw, 30px);
  padding: clamp(12px, 1vw, 18px) clamp(20px, 2.2vw, 40px);
  background: var(--code-bg);
  color: var(--white);
  font-weight: 800;
  font-size: clamp(22px, 2vw, 38px);
  letter-spacing: .04em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  user-select: all;
}
.btn--copy { min-width: 0; padding: 0 30px; }
.btn--copy.is-copied { background: linear-gradient(to bottom, #2fb46a, #1f8f52); box-shadow: 0 5px 0 #145c35; }
.steps {
  margin: clamp(22px, 2.5vw, 40px) 0 0;
  padding-left: 1.4em;
  color: var(--note);
  font-weight: 400;
  font-size: clamp(17px, 1.3vw, 25px);
  line-height: 1.4;
  text-align: left;
}
.steps li { padding-left: .2em; }

/* Bottom artwork + footer */
.characters { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 16px; }
.characters img { width: 100%; height: auto; mix-blend-mode: multiply; }
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px clamp(16px, 2.3vw, 44px);
  background: var(--footer-bg);
  color: var(--footer-text);
  font-weight: 400;
  font-size: clamp(15px, 1.1vw, 21px);
  letter-spacing: .02em;
}
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__sep { margin: 0 clamp(10px, 1.1vw, 20px); }

@media (max-width: 720px) {
  .hero__banner { height: 200px; }
  .hero__logo { top: 56px; width: 120px; }
  .footer { justify-content: center; }
  .footer__copy { display: none; }
  .footer__sep { margin: 0 10px; }
  .platforms { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin: 0 auto; }
  .platform { min-width: 0; }
  .btn { min-width: 0; width: min(360px, 100%); }
  .characters { padding: 0; }
}
