/* Fright the Park! (/frightthepark/): the trophy page. Phone first, one column up to sheet-w. Loaded after
   ../css/tokens.css, ../css/bundle.css and ../css/nav.css, so this file holds only the page's layout and the stage the
   3D trophy (trophy.js) draws into. The light language: gold (reward) for the win, slime for the sludge's glow. */

html{background:var(--night-950)}
/* The Dock (../css/nav.css) takes --nav-bottom (bar, pill) or --nav-right (rail): the page pads past it. */
body{min-height:100vh;margin:0;padding:0 var(--nav-right) calc(var(--sp-8) + var(--nav-bottom)) 0;color:var(--text);font-family:var(--font-ui);
  background:radial-gradient(120% 60% at 50% 38%,var(--plum-700) 0,var(--night-900) 45%,var(--night-950) 80%)}

/* ---------- Header ---------- */
.ftp-top{max-width:var(--sheet-w);margin:0 auto;padding:calc(var(--sp-5) + var(--sat)) var(--gutter) 0;text-align:center}
.ftp-kicker{margin:0;font:var(--fw-bold) var(--fs-14)/var(--lh-btn) var(--font-ui);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--live)}
.ftp-title{margin:var(--sp-2) 0 0;font-family:var(--font-display);font-weight:400;line-height:var(--lh-solid);color:var(--reward);text-shadow:var(--glow-gold)}
.ftp-title__name{display:block;font-size:clamp(var(--fs-36),11vw,var(--fs-64))}
.ftp-title__year{display:block;margin-top:var(--sp-1);font-size:clamp(var(--fs-24),8vw,var(--fs-44));color:var(--slime-400);text-shadow:var(--glow-spectral)}
.ftp-lead{margin:var(--sp-3) auto 0;max-width:34ch;font:var(--fw-medium) var(--fs-16)/var(--lh-body) var(--font-ui);color:var(--text-2);text-wrap:balance}

/* ---------- The stage ---------- */
.ftp-main{max-width:var(--sheet-w);margin:0 auto;padding:0 var(--gutter)}
.ftp-stage{position:relative;margin:var(--sp-3) 0 0;padding:0}
/* A square-ish stage that never pushes the caption off a phone screen. touch-action: the page still scrolls vertically;
   horizontal drags spin the trophy (trophy.js). */
.ftp-canvas{display:block;width:100%;height:min(68vh,calc(var(--sheet-w) * 1.1));min-height:320px;touch-action:pan-y;cursor:grab;outline:none}
.ftp-canvas:active{cursor:grabbing}
.ftp-note{position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:var(--sp-6);text-align:center;font:var(--fw-semibold) var(--fs-16)/var(--lh-body) var(--font-ui);color:var(--text-2);pointer-events:none}
.ftp-note[hidden]{display:none}
.ftp-caption{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--sp-2) var(--sp-3);margin-top:var(--sp-2)}
.ftp-hint{font:var(--fw-medium) var(--fs-14)/var(--lh-btn) var(--font-ui);color:var(--text-2)}
.ftp-hint[hidden]{display:none}

/* ---------- The plaques note ---------- */
.ftp-plaques{margin-top:var(--sp-5);text-align:center}
.ftp-h2{margin:0;font:var(--fw-bold) var(--fs-20)/var(--lh-heading) var(--font-ui);color:var(--text)}
.ftp-body{margin:var(--sp-2) 0 0;font:var(--fw-medium) var(--fs-16)/var(--lh-body) var(--font-ui);color:var(--text-2)}
.ftp-body strong{color:var(--reward)}

/* ---------- The share card (?og=1): 1200×630, art direction §Sharing ----------
   A dark left panel lettered from tokens (the kicker in candle-300, uppercase with track-caps; the title in Creepster
   amber-400 with glow-candle; the year line in bone-50; one Fredoka line; no emoji), every glyph inside the 60px safe
   margin; the trophy, held still, fills the right. Captured by tools/halloween/make-og-trophy.sh. */
.ftp-og{display:none}
html.is-og,html.is-og body{width:1200px;height:630px;overflow:hidden}
html.is-og body{padding:0;background:radial-gradient(70% 90% at 72% 45%,var(--plum-700) 0,var(--night-900) 55%,var(--night-950) 100%)}
html.is-og :is(.ftp-top,.ftp-caption,.ftp-plaques,.ftp-note,#dock){display:none}
html.is-og .ftp-og{position:absolute;left:60px;top:60px;bottom:60px;width:474px;display:flex;flex-direction:column;justify-content:center;gap:18px}
.ftp-og p{margin:0}
.ftp-og__kicker{font:700 22px/1.2 var(--font-ui);letter-spacing:var(--track-caps);text-transform:uppercase;color:var(--candle-300)}
.ftp-og__title{font:400 96px/0.95 var(--font-display);color:var(--amber-400);text-shadow:var(--glow-candle)}
.ftp-og__when{font:700 34px/1.2 var(--font-ui);color:var(--bone-50)}
.ftp-og__line{font:500 26px/1.3 var(--font-ui);color:var(--bone-50)}
html.is-og .ftp-main{position:absolute;left:540px;top:0;width:660px;height:630px;max-width:none;padding:0}
html.is-og .ftp-stage{margin:0;height:100%}
html.is-og .ftp-canvas{width:660px;height:630px;min-height:0;cursor:default}

