/* ============================================================================
   Holiday Gift Guide — standalone page styles
   Brand tokens mirror the main site (css/styles.css).
   ========================================================================== */
:root {
  --purple: #241A4E;
  --purple-deep: #1a1338;
  --gold: #FFB300;
  --gold-hover: #ffc94d;
  --ink: #151515;
  --card: #241c42;
  --card-edge: rgba(255, 255, 255, .10);
  --text: #f4f1ff;
  --text-dim: #c9c2e4;
  --display: 'Oswald', system-ui, sans-serif;
  --body: 'Lora', Georgia, serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, #3a2a6e 0%, rgba(58, 42, 110, 0) 60%),
    radial-gradient(900px 500px at 100% 100%, #5a2d2d 0%, rgba(90, 45, 45, 0) 55%),
    linear-gradient(180deg, var(--purple) 0%, var(--purple-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #1a1338; padding: 10px 16px;
  font-family: var(--display); font-weight: 600; border-radius: 0 0 8px 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ---- Hero --------------------------------------------------------------- */
.gift-hero {
  text-align: center;
  padding: clamp(28px, 6vw, 64px) 20px clamp(20px, 4vw, 40px);
  max-width: 840px;
  margin: 0 auto;
}
.wordmark {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .22em;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  opacity: .85;
  transition: opacity .2s var(--ease);
}
.wordmark:hover { opacity: 1; }
.kicker {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  color: var(--gold);
  margin: clamp(22px, 5vw, 40px) 0 10px;
  font-size: clamp(13px, 2.4vw, 15px);
}
.gift-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: .01em;
  margin: 0 0 14px;
  font-size: clamp(34px, 7vw, 60px);
  text-wrap: balance;
}
.gift-hero .lede {
  font-size: clamp(16px, 2.6vw, 19px);
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 auto 20px;
  max-width: 620px;
}
.hero-back {
  display: inline-block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.hero-back:hover { color: var(--gold); border-color: var(--gold); }

/* ---- Guide / categories ------------------------------------------------- */
.guide {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px clamp(16px, 4vw, 40px) 40px;
}
.loading { text-align: center; color: var(--text-dim); padding: 40px 0; }
.loading a { color: var(--gold); }

.gcat { margin: clamp(34px, 6vw, 60px) 0; scroll-margin-top: 24px; }

.gcat-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--card-edge);
}
.gcat-num {
  flex: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 3vw, 22px);
  color: #1a1338;
  background: var(--gold);
  width: clamp(40px, 7vw, 48px);
  height: clamp(40px, 7vw, 48px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(255, 179, 0, .3);
}
.gcat-head h2 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0 0 3px;
  font-size: clamp(21px, 4vw, 31px);
  line-height: 1.1;
}
.gcat-head p {
  margin: 0;
  color: var(--text-dim);
  font-size: clamp(14px, 2.4vw, 17px);
  font-style: italic;
}

/* ---- Card grid ---------------------------------------------------------- */
.gcat-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.gcard {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.gcard:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 179, 0, .4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}

.gcard-media {
  background: #1a1338;
  padding: 18px 18px 0;
  display: flex;
  justify-content: center;
}
.gcard-media img {
  width: 100%;
  max-width: 190px;
  height: auto;
  border-radius: 6px 6px 2px 2px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
  display: block;
}

.gcard-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}
.gcard-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.15;
  margin: 0 0 8px;
}
.gcard-who {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0 0 16px;
  flex: 1;
}

.gcard-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.gcard-trailer {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  transition: color .18s var(--ease);
}
.gcard-trailer:hover { color: var(--gold); }
.gcard-trailer .tri {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  position: relative;
  transition: background .18s var(--ease);
}
.gcard-trailer:hover .tri { background: var(--gold); }
.gcard-trailer .tri::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
}
.gcard-trailer:hover .tri::after { border-left-color: #1a1338; }

.gcard-buy {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  font-weight: 600;
  color: #1a1338;
  background: var(--gold);
  padding: 11px 14px;
  border-radius: 10px;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.gcard-buy:hover { background: var(--gold-hover); transform: translateY(-1px); }

/* ---- Footer ------------------------------------------------------------- */
.gift-foot {
  text-align: center;
  padding: clamp(32px, 6vw, 56px) 20px clamp(40px, 7vw, 60px);
  border-top: 1px solid var(--card-edge);
  margin-top: 20px;
}
.foot-word {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .22em;
  text-decoration: none;
  font-size: 15px;
}
.gift-foot p { color: var(--text-dim); margin: 10px 0 18px; font-size: 15px; }
.foot-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.foot-links a {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.foot-links a:hover { color: var(--gold); border-color: var(--gold); }

/* ---- Trailer lightbox --------------------------------------------------- */
.gift-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.gift-lightbox[hidden] { display: none; }
.gl-backdrop { position: absolute; inset: 0; background: rgba(8, 5, 20, .82); backdrop-filter: blur(3px); }
.gl-frame {
  position: relative;
  width: min(960px, 100%);
  z-index: 1;
}
.gl-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}
.gl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gl-close {
  position: absolute;
  top: -44px; right: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s var(--ease);
}
.gl-close:hover { background: var(--gold); color: #1a1338; }
.gl-fallback {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12.5px;
  color: var(--text-dim);
  text-decoration: none;
}
.gl-fallback:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gcard, .gcard-buy, .gcard-trailer, .gcard-trailer .tri { transition: none; }
}
