:root {
  color-scheme: dark;
  --bg: #080808;
  --surface: #11100f;
  --surface-2: #171412;
  --line: rgba(255, 255, 255, .11);
  --text: #f6efe8;
  --muted: #aaa097;
  --orange: #ff8c12;
  --orange-soft: #ffb15a;
  --green: #74df48;
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: #080808;
}

button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { font: inherit; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, .card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.ambient {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 72% 46% at 50% 18%, rgba(255,140,18,.09), transparent 72%),
    linear-gradient(180deg, #090909 0%, #080808 58%, #070707 100%);
  pointer-events: none;
}
.ambient::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 58% at 50% 24%, #000 0, rgba(0,0,0,.72) 48%, transparent 100%);
  content: "";
}
.ambient::after {
  position: absolute;
  width: min(1100px, 92vw);
  height: 420px;
  top: -250px;
  left: 50%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 140, 18, .115), transparent 70%);
  filter: blur(28px);
  transform: translateX(-50%);
  content: "";
}

.gift-header {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(9,9,9,.84);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.04em;
}
.brand img { width: 28px; height: 28px; object-fit: contain; }
.header-edition {
  color: #766f68;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
}
.home-link {
  justify-self: end;
  color: #c8beb5;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  transition: color .2s ease;
}
.home-link:hover { color: var(--orange); }
.home-link span { margin-left: 6px; color: var(--orange); }

.experience, .gate {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 40px));
  margin: auto;
  padding: 54px 0 50px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
}
.eyebrow::before {
  display: inline-block;
  width: 27px;
  height: 1px;
  margin: 0 10px 3px 0;
  background: var(--orange);
  content: "";
}
.experience > h1, .gate h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 760;
  letter-spacing: -.065em;
  line-height: .95;
  text-wrap: balance;
}
.experience > h1 em {
  color: var(--orange);
  font-style: normal;
}
.intro {
  margin: 21px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.scene {
  width: min(620px, 100%);
  height: 372px;
  margin: 38px auto 25px;
  perspective: 1700px;
  filter: drop-shadow(0 34px 46px rgba(0,0,0,.56));
}
.card {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
  transform-style: preserve-3d;
  user-select: none;
}
.card.is-dragging { cursor: grabbing; }
.face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 30px 32px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 17px;
  background: #111;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -30px 80px rgba(0,0,0,.3);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  text-align: left;
}
.front {
  color: #fff;
  background:
    linear-gradient(112deg, transparent 0 58%, rgba(255,140,18,.055) 58% 58.5%, transparent 58.5%),
    radial-gradient(circle at 82% 38%, rgba(255,140,18,.15), transparent 34%),
    linear-gradient(145deg, #171717, #0a0a0a 72%);
}
.front::before {
  position: absolute;
  width: 295px;
  height: 720px;
  top: -180px;
  right: -118px;
  background: linear-gradient(90deg, #ff6e00, #ff9c28 52%, #ff7100);
  box-shadow: -18px 0 55px rgba(255,112,0,.19);
  transform: rotate(23deg);
  content: "";
}
.front::after {
  position: absolute;
  inset: 0;
  opacity: .38;
  background: repeating-linear-gradient(115deg, transparent 0 4px, rgba(255,255,255,.022) 5px, transparent 6px);
  pointer-events: none;
  content: "";
}
.card-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 17px;
  letter-spacing: -.04em;
}
.card-brand img { width: 27px; height: 27px; object-fit: contain; }
.card-tag {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 99px;
  color: rgba(255,255,255,.82);
  background: rgba(0,0,0,.18);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .15em;
}
.card-title {
  position: relative;
  z-index: 2;
  margin-top: 47px;
  color: #fff;
  font-size: 47px;
  font-weight: 770;
  letter-spacing: -.055em;
  line-height: .95;
}
.card-title > span:first-child {
  display: block;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
}
.orange-dot { display: inline !important; color: var(--orange) !important; }
.card-art {
  position: absolute;
  z-index: 2;
  width: 280px;
  height: 280px;
  top: 55px;
  right: -4px;
  transform: rotate(-12deg);
}
.card-art i {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
}
.card-art i:nth-child(2) { inset: 20%; opacity: .68; }
.card-art i:nth-child(3) { inset: 32%; opacity: .45; }
.card-art img {
  position: absolute;
  width: 118px;
  height: 118px;
  top: 50%;
  left: 50%;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 12px 20px rgba(0,0,0,.25));
  transform: translate(-50%,-50%) rotate(12deg);
}
.face footer {
  position: absolute;
  z-index: 3;
  right: 32px;
  bottom: 29px;
  left: 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.face footer small {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.56);
  font-size: 11px;
  font-weight: 450;
  letter-spacing: 0;
}
.card-arrow {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
}

.back {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 90% 10%, rgba(255,140,18,.14), transparent 34%),
    linear-gradient(145deg, #171412, #090909 78%);
  border-color: rgba(255,140,18,.3);
}
.back::after {
  position: absolute;
  width: 210px;
  height: 210px;
  top: -120px;
  right: -85px;
  border: 50px solid rgba(255,140,18,.07);
  border-radius: 50%;
  content: "";
}
.back .card-top > strong { color: #fff; font-size: 10px; letter-spacing: .17em; }
.back .card-tag { border-color: rgba(255,140,18,.36); color: var(--orange-soft); background: rgba(255,140,18,.07); }
.back h2 {
  position: relative;
  z-index: 2;
  margin: 24px 0 8px;
  color: #fff;
  font-size: 29px;
  font-weight: 720;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.back h2 em { color: var(--orange); font-style: normal; }
.back p { margin: 0 0 16px; color: #a99f96; font-size: 13px; }
.scratch {
  position: relative;
  height: 62px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,140,18,.35);
  border-radius: 8px;
  background: #080808;
  box-shadow: inset 0 0 28px rgba(255,140,18,.05);
}
.scratch code {
  padding: 6px 12px;
  color: #fff;
  font: 600 12px/1.5 Consolas, monospace;
  overflow-wrap: anywhere;
  text-align: center;
  user-select: text;
}
canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  transition: opacity .5s ease, transform .5s ease;
}
canvas.is-revealed { opacity: 0; pointer-events: none; transform: scale(1.03); }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.card-bottom > small { color: #7f7770; font-size: 11px; }
.card-bottom > button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--orange-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}
.card-bottom > button:hover { color: #fff; }

.card-controls { display: flex; align-items: center; justify-content: center; gap: 20px; }
.card-controls > button {
  padding: 11px 18px;
  border: 1px solid rgba(255,140,18,.35);
  border-radius: 99px;
  background: rgba(255,140,18,.07);
  color: #f2eae2;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.card-controls > button:hover { border-color: var(--orange); background: rgba(255,140,18,.13); transform: translateY(-2px); }
.card-controls > button > span { margin-right: 6px; color: var(--orange); font-size: 18px; }
.card-controls > span { color: #7f7770; font-size: 12px; }
.card-controls i { padding: 0 5px; color: var(--orange); font-style: normal; }
#giftNotice { margin: 22px 0 0; color: #7f7770; font-size: 12px; }
.claim-again { margin-top: 8px; padding: 10px; border: 0; background: transparent; color: var(--orange); cursor: pointer; font-weight: 700; }

.gift-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(255,255,255,.07);
  color: #6f6862;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}
.gift-footer span:first-child, .gift-footer span:last-child { color: #a0968d; }

.gate { width: min(520px, calc(100% - 40px)); }
.gate .orb {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
  border: 1px solid rgba(255,140,18,.35);
  border-radius: 18px;
  background: rgba(255,140,18,.08);
  box-shadow: 0 0 45px rgba(255,140,18,.12);
  color: var(--orange);
  font-size: 28px;
}
.gate h1 { font-size: clamp(42px, 6vw, 61px); }
.gate p { margin: 22px auto; color: var(--muted); font-size: 15px; line-height: 1.7; }
.gate > small { display: block; margin-top: 34px; color: #736b64; font-size: 10px; letter-spacing: .15em; }
label { display: grid; gap: 8px; color: #bbb1a8; font-size: 13px; text-align: left; }
input { padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #111; color: #fff; font: inherit; }
form { display: grid; gap: 18px; margin: 22px 0; }
.primary, form > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 18px;
  border: 1px solid var(--orange);
  border-radius: 7px;
  background: var(--orange);
  color: #17100a;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  transition: background .2s ease, transform .2s ease;
}
.primary:hover, form > button:hover { background: #ff9d31; transform: translateY(-1px); }
.primary > span, form > button > span { font-size: 18px; }
button:disabled { opacity: .5; cursor: wait; }
.secondary { display: block; padding: 14px; color: #c4bbb3; text-align: center; text-decoration: none; font-size: 13px; }
.secondary:hover { color: var(--orange); }
.notice { padding: 14px; border: 1px solid rgba(255,140,18,.32); border-radius: 8px; background: rgba(255,140,18,.08); color: #ffd0a0 !important; }

dialog {
  width: min(480px, calc(100% - 32px));
  padding: 36px;
  border: 1px solid rgba(255,140,18,.28);
  border-radius: 16px;
  background: radial-gradient(circle at 100% 0, rgba(255,140,18,.11), transparent 34%), #11100f;
  color: var(--text);
  box-shadow: 0 40px 130px rgba(0,0,0,.78), inset 0 1px rgba(255,255,255,.05);
  animation: unwrap .45s cubic-bezier(.16,1,.3,1);
}
dialog::backdrop { background: rgba(4,4,4,.82); backdrop-filter: blur(14px); }
dialog h2 { margin: 12px 0; color: #fff; font-size: 34px; font-weight: 730; letter-spacing: -.045em; }
dialog p { color: var(--muted); font-size: 14px; line-height: 1.65; }
dialog .eyebrow { margin: 23px 0 10px; font-size: 10px; }
.dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #151413;
  color: #aaa097;
  cursor: pointer;
  font-size: 21px;
}
.dialog-close:hover { color: #fff; border-color: rgba(255,140,18,.45); }
.claim-emblem {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,140,18,.34);
  border-radius: 15px;
  background: rgba(255,140,18,.08);
  color: var(--orange);
}
.claim-emblem svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.claim-account {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-left-color: var(--orange);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}
.claim-account > span { color: var(--orange); font-size: 24px; }
.claim-account small { display: block; margin-bottom: 5px; color: #847b73; font-size: 9px; letter-spacing: .12em; }
.claim-account strong { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.claim-note { color: #756e67 !important; font-size: 11px !important; }
.gift-link { color: var(--orange); overflow-wrap: anywhere; }

@keyframes unwrap {
  from { opacity: 0; transform: translateY(24px) scale(.975); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 680px) {
  .gift-header { grid-template-columns: 1fr auto; min-height: 64px; padding: 0 18px; }
  .header-edition { display: none; }
  .home-link { font-size: 0; }
  .home-link span { margin: 0; font-size: 18px; }
  .experience, .gate { width: min(100% - 28px, 620px); padding: 40px 0; }
  .experience > h1 { font-size: clamp(39px, 12vw, 55px); }
  .scene { height: 330px; margin-top: 30px; }
  .face { padding: 24px; }
  .front::before { right: -155px; }
  .card-title { margin-top: 43px; font-size: 39px; }
  .card-art { width: 230px; height: 230px; top: 69px; right: -19px; }
  .card-art img { width: 90px; height: 90px; }
  .face footer { right: 24px; bottom: 23px; left: 24px; }
  .back h2 { margin-top: 20px; font-size: 25px; }
  .back p { font-size: 12px; }
  .scratch { height: 58px; }
  .card-controls { gap: 12px; }
  .card-controls > span { display: none; }
  .gift-footer { justify-content: center; text-align: center; }
  .gift-footer span:not(:nth-child(2)) { display: none; }
}

@media (max-width: 420px) {
  .scene { height: 286px; }
  .face { padding: 20px; border-radius: 14px; }
  .card-brand { font-size: 15px; }
  .card-tag { padding: 6px 8px; font-size: 8px; }
  .card-title { margin-top: 35px; font-size: 33px; }
  .card-title > span:first-child { margin-bottom: 10px; }
  .card-art { width: 195px; height: 195px; top: 61px; }
  .face footer { right: 20px; bottom: 19px; left: 20px; }
  .face footer small, .card-bottom > small { font-size: 9px; }
  .back h2 { margin-top: 17px; font-size: 22px; }
  .back p { margin-bottom: 12px; font-size: 11px; }
  .scratch { height: 52px; }
  .scratch code { font-size: 10px; }
  .card-bottom { margin-top: 10px; }
  .card-bottom > button { font-size: 10px; }
  dialog { padding: 29px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== 2026-10: align the gift page with the redesigned site ===== */
:root { --orange: #ff6a00; --orange-soft: #ff8a2e; --bg: #080809; font-family: "Archivo", "Segoe UI", Arial, sans-serif; }
body.rt-gift { display: block; background: #080809; font-family: "Archivo", "Segoe UI", Arial, sans-serif; }
body.rt-gift > main { padding-top: 130px; }
.rt-gift .rt-nav, .rt-gift .rt-footer { position: relative; z-index: 5; }
.rt-gift .rt-nav { position: fixed; z-index: 50; }
.rt-gift .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--volt-hi); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.rt-gift .eyebrow::before { width: 22px; height: 6px; margin: 0; background: var(--volt); transform: skewX(-40deg); }
.rt-gift .experience > h1, .rt-gift .gate h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 800; font-style: italic; font-variation-settings: "wdth" 120; letter-spacing: -.035em; line-height: .95; }
.rt-gift .experience > h1 em { color: transparent; -webkit-text-stroke: 1.5px var(--volt); font-style: italic; }
.rt-gift .intro, .rt-gift .gate p { color: var(--mute-2); font-size: 17px; }
.rt-gift .primary, .rt-gift form > button {
  border-radius: 10px 10px 0 10px; background: var(--volt); color: #140800; font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.rt-gift .primary:hover, .rt-gift form > button:hover { background: var(--volt-hi); }
.rt-gift .card-controls > button { border-radius: 12px; }
.rt-gift .gate { padding-bottom: 90px; }
.rt-gift .gate .orb { color: var(--volt); }
.rt-gift input { font-family: inherit; }
.rt-gift dialog { font-family: inherit; }
.rt-gift dialog h2 { font-style: italic; font-variation-settings: "wdth" 115; font-weight: 800; letter-spacing: -.02em; }
.rt-gift .card-title, .rt-gift .back h2 { font-family: inherit; font-style: italic; font-variation-settings: "wdth" 115; }
.rt-gift .rt-footer { margin-top: 40px; }
