/* SummCore Game Labs. One stylesheet for every page. */

@font-face{font-family:"Big Shoulders Display";font-style:normal;font-weight:800;font-display:swap;src:url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2")}
@font-face{font-family:"Big Shoulders Display";font-style:normal;font-weight:900;font-display:swap;src:url("/fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2")}
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:100 900;font-display:swap;src:url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2")}

/* Tokens. The four world colours come from the four colours in the SG mark. */
:root{
  --fog:#E7EAEC;
  --ink:#181B4A;
  --ink-soft:#44487A;
  --ember:#E4682A;
  --fairway:#0B7A6F;
  --claret:#8F1D36;
  --altitude:#2B3190;

  --display:"Big Shoulders Display","Arial Narrow",Impact,sans-serif;
  --body:"Hanken Grotesk",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --gutter:clamp(16px,4vw,48px);

  /* Studio theme (light). World pages override these below. */
  --ground:var(--fog);
  --text:var(--ink);
  --muted:var(--ink-soft);
  --accent:var(--ink);
  --line:var(--ink);
  --btn:var(--ink);
  --btn-ink:#fff;
  --error:#A31621;
  --ok:#0B6B3A;
}

/* Each game owns a colour. Spines use --world and --on-world; world pages use the rest. */
.w-die-trying{--world:var(--ember);--on-world:#fff;--ground:#2B1408;--text:#F8E7D0;--muted:#D3B79A;--accent:var(--ember);--line:var(--ember);--btn:var(--ember);--btn-ink:var(--ink);--error:#FFB4A8;--ok:#F8E7D0}
.w-par-3{--world:var(--fairway);--on-world:#fff;--ground:#062F2B;--text:#E3F5F1;--muted:#A8D3CB;--accent:#3CC9B5;--line:#3CC9B5;--btn:#3CC9B5;--btn-ink:#06231F;--error:#FFB4A8;--ok:#E3F5F1}
.w-rugby{--world:var(--claret);--on-world:#fff}
.w-dog-fight{--world:var(--altitude);--on-world:#fff}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ground);color:var(--text);font:400 1.125rem/1.6 var(--body)}
img,video{display:block;max-width:100%}
a{color:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

.skip{position:absolute;left:-999px;top:8px;z-index:10;padding:8px 12px;background:#fff;color:#000}
.skip:focus{left:8px}
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Header */
.bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:18px var(--gutter)}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand img{width:64px;height:64px;background:none}
.brand span{font:800 1.5rem/1 var(--display);letter-spacing:.05em;text-transform:uppercase}
.nav{display:flex;flex-wrap:wrap;gap:4px 22px;font-size:1rem;font-weight:600}
.nav a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;border-bottom:2px solid transparent}
.nav a:hover{border-bottom-color:currentColor}
/* Social icons: 44px tap targets, 24px glyphs in the text colour */
.soc{justify-content:center;min-width:44px}
.soc svg{display:block;width:24px;height:24px}
.soc + .soc{margin-left:-12px}
.nav a.soc:hover{border-bottom-color:transparent}
.soc:hover svg,.soc:focus-visible svg{opacity:.65}

/* Home: intro */
.intro{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:20px 48px;align-items:end;padding:clamp(8px,3vw,32px) var(--gutter) 28px}
.intro h1{margin:0;font:800 clamp(2.75rem,6.4vw,5.5rem)/.92 var(--display);text-wrap:balance}
.intro p{margin:0;max-width:34ch;color:var(--muted)}
.intro a{font-weight:600}

/* Home: the shelf of game spines */
.shelf{display:flex;gap:12px;height:clamp(520px,70vh,720px);padding:0 var(--gutter)}
.spine{flex:1 1 0;min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:16px;padding:20px;border-radius:6px;background:var(--world);color:var(--on-world);text-decoration:none;overflow:hidden;transition:flex-grow .4s cubic-bezier(.2,.7,.2,1)}
.spine:hover,.spine:focus-visible{flex-grow:2.1}
.spine-status{align-self:flex-start;padding:7px 12px;border:2px solid currentColor;border-radius:999px;font-size:.9rem;font-weight:700;line-height:1}
.spine-title{align-self:flex-start;margin:0;font:900 clamp(2.2rem,min(5vw,7vh),4.75rem)/.9 var(--display);letter-spacing:.01em;text-transform:uppercase;writing-mode:vertical-rl;white-space:nowrap}
.spine-line{margin:0;max-width:24ch;font-size:1rem;font-weight:500;line-height:1.4;text-wrap:balance}

/* A real frame from the game sits under each spine's colour. It comes up on hover. The top and bottom
   stay solid so the status pill and the line of text are always readable. */
.spine{position:relative;isolation:isolate}
.has-img::before,.has-img::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none}
.has-img::before{background:var(--img) var(--img-pos,center) / cover no-repeat;opacity:.34;transform:scale(1.08);transition:opacity .5s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
.has-img::after{background:linear-gradient(to bottom,color-mix(in srgb,var(--world) 88%,transparent) 0,transparent 24%,transparent 58%,color-mix(in srgb,var(--world) 94%,transparent) 100%)}
.has-img:hover::before,.has-img:focus-visible::before{opacity:.8;transform:scale(1)}
.has-img .spine-title{text-shadow:0 2px 20px color-mix(in srgb,var(--world) 85%,transparent)}
.w-die-trying{--img:url("/img/spine-die-trying.jpg")}
.w-par-3{--img:url("/img/spine-par-3.jpg")}
.w-dog-fight{--img:url("/img/spine-dog-fight.jpg");--img-pos:72% center}

@media (prefers-reduced-motion:no-preference){
  .spine{animation:rise .7s cubic-bezier(.2,.7,.2,1) both}
  .spine:nth-child(2){animation-delay:.08s}
  .spine:nth-child(3){animation-delay:.16s}
  .spine:nth-child(4){animation-delay:.24s}
}
@keyframes rise{from{opacity:0;transform:translateY(32px)}}
@media (prefers-reduced-motion:reduce){.spine,.has-img::before{transition:none}.has-img::before{transform:none}}

/* Join form (used on every page that has one) */
.join{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:24px 64px;align-items:start;padding:clamp(48px,8vw,96px) var(--gutter) clamp(40px,6vw,72px)}
.join h2{margin:0;max-width:16ch;font:800 clamp(2rem,4.2vw,3.5rem)/.98 var(--display);text-wrap:balance}
.join p{margin:12px 0 0;max-width:42ch;color:var(--muted)}

.signup{display:grid;gap:12px;max-width:520px}
.signup .row{display:flex;flex-wrap:wrap;gap:10px}
.signup input[type=email]{flex:1 1 240px;min-height:52px;padding:0 16px;font:inherit;color:#181B4A;background:#fff;border:2px solid var(--line);border-radius:4px}
.btn{min-height:52px;padding:0 22px;font:700 1.0625rem/1 var(--body);color:var(--btn-ink);background:var(--btn);border:2px solid var(--btn);border-radius:4px;cursor:pointer}
.btn:hover{filter:brightness(1.12)}
.btn:disabled{opacity:.6;cursor:progress}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:.9375rem;line-height:1.45;color:var(--muted)}
.consent span{text-wrap:pretty}
.consent input{flex:none;width:20px;height:20px;margin:2px 0 0;accent-color:var(--accent)}
.fine{margin:0;font-size:.875rem;color:var(--muted)}
.status{min-height:1.5em;margin:0;font-size:1rem;font-weight:600}
.status[data-state=error]{color:var(--error)}
.status[data-state=ok]{color:var(--ok)}

/* World pages (one per game) */
.world{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);grid-template-areas:"title media" "copy media";grid-template-rows:auto 1fr;gap:24px clamp(32px,5vw,80px);align-items:start;padding:clamp(8px,2vw,24px) var(--gutter) clamp(48px,7vw,96px)}
.title{grid-area:title}
.media{grid-area:media}
.copy{grid-area:copy}
.world h1{margin:0;font:900 clamp(4.5rem,12vw,9.5rem)/.86 var(--display);text-transform:uppercase;color:var(--accent)}
.world h1 span{display:block}
.lead{max-width:26ch;margin:20px 0 8px;font-size:clamp(1.25rem,2vw,1.6rem);font-weight:600;line-height:1.35}
.facts{display:grid;gap:8px;margin:32px 0 0;padding:0;list-style:none;max-width:46ch}
.facts li{position:relative;padding-left:24px;line-height:1.45}
.facts li::before{content:"";position:absolute;left:0;top:.55em;width:8px;height:8px;background:var(--accent)}
.ask{margin:0 0 16px;max-width:22ch;font:800 clamp(1.6rem,2.6vw,2.25rem)/1 var(--display);text-wrap:balance}
.note{margin:24px 0 0;font-size:.9375rem;color:var(--muted)}
.caption{margin:12px 0 0;font-size:.9375rem;color:var(--muted)}

.clip{position:relative;aspect-ratio:16/9;overflow:hidden;border:2px solid var(--accent);border-radius:6px;background:rgba(255,255,255,.05)}
.clip video{width:100%;height:100%;object-fit:cover}
.clip-empty{position:absolute;inset:0;display:none;place-items:center;padding:24px;text-align:center;color:var(--muted);font-weight:600}
.clip.is-empty video{visibility:hidden}
/* Sound button on the clip. The footage starts muted, so this says there is sound. */
.sound{position:absolute;top:12px;left:12px;z-index:2;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px 0 12px;font:700 1rem/1 var(--body);color:var(--btn-ink);background:var(--btn);border:2px solid var(--btn);border-radius:999px;cursor:pointer}
.sound svg{flex:none}
.sound:hover{filter:brightness(1.12)}
.sound[hidden],.clip.is-empty .sound{display:none}
.clip.is-empty .clip-empty{display:grid}
.shots{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}
.shots[hidden]{display:none}
.shots img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border:2px solid var(--line);border-radius:4px}

/* Home: content notes for every game */
.notes{padding:clamp(32px,5vw,56px) var(--gutter) 0}
.notes h2{margin:0 0 16px;font:800 clamp(1.75rem,3vw,2.5rem)/1 var(--display)}
.notes dl{display:grid;grid-template-columns:max-content 1fr;gap:10px 28px;margin:0;max-width:72ch}
.notes dt{font-weight:700}
.notes dd{margin:0;color:var(--muted)}
.notes p{margin:16px 0 0;max-width:60ch;font-size:.9375rem;color:var(--muted)}
.note strong{color:var(--text)}

/* Plain pages: privacy, terms, 404, thank you */
.doc{max-width:calc(68ch + 2 * var(--gutter));padding:clamp(8px,2vw,24px) var(--gutter) 72px}
.doc h1{margin:0 0 8px;font:800 clamp(2.5rem,5.5vw,4.25rem)/.95 var(--display)}
.doc h2{margin:2em 0 .4em;font:800 1.75rem/1.1 var(--display)}
.doc p{margin:.6em 0;max-width:68ch}
.doc .btn{display:inline-block;margin-top:12px;padding-top:15px;text-decoration:none}

/* Footer */
.foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 32px;padding:28px var(--gutter) 40px;font-size:.9375rem;color:var(--muted)}
.foot p{margin:0}
.foot nav{display:flex;flex-wrap:wrap;gap:4px 24px}
.foot a{display:inline-flex;align-items:center;min-height:44px}

/* Narrow screens: spines become stacked rows */
@media (max-width:900px){
  .intro,.join,.world{grid-template-columns:1fr}
  .world{grid-template-areas:"title" "clip" "caption" "copy" "shots";grid-template-rows:auto}
  .media{display:contents}
  .clip{grid-area:clip}
  .caption{grid-area:caption;margin-top:-12px}
  .shots{grid-area:shots;margin-top:0}
  .shelf{flex-direction:column;height:auto}
  .spine{flex:none;flex-direction:row;flex-wrap:wrap;align-items:flex-end;min-height:150px;padding:18px}
  .spine:hover,.spine:focus-visible{flex-grow:0}
  .spine-status{order:1}
  .spine-title{order:2;flex:1 1 100%;writing-mode:horizontal-tb;white-space:normal;font-size:clamp(3rem,13vw,4.5rem)}
  .spine-line{order:3;max-width:none}
  .world h1{font-size:clamp(4rem,22vw,8rem)}
}
@media (max-width:520px){
  .brand span{font-size:1.25rem}
  .nav{flex:1 1 100%;gap:4px 14px;font-size:.9375rem}
  .foot nav{gap:4px 14px}
  .signup .btn{width:100%}
  .shots{grid-template-columns:1fr}
  .notes dl{grid-template-columns:1fr;gap:0}
  .notes dd{margin:0 0 14px}
}

/* Motion and feedback. Everything that moves is inside the no-preference query, so visitors who ask for
   reduced motion get a still page. Only transform and opacity are animated, which keeps phones smooth. */
.signup{position:relative}
.burst{position:absolute;z-index:2;width:10px;height:10px;pointer-events:none}
.spine-status{display:flex;align-items:center;gap:8px}
.spine-status::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:currentColor}

@media (prefers-reduced-motion:no-preference){
  /* The game frames drift slowly so the shelf is never perfectly still. The separate translate and scale
     properties add to the hover transform instead of fighting it. */
  .has-img::before{animation:drift 24s ease-in-out infinite alternate}
  .spine.w-par-3::before{animation-duration:30s;animation-delay:-9s}
  .spine.w-dog-fight::before{animation-duration:27s;animation-delay:-16s}
  @keyframes drift{to{translate:-2% -1.5%;scale:1.06}}

  /* The dot beats on the two games you can open, because that is where the clip and the signup are. */
  a.spine .spine-status::before{animation:pulse 2.2s ease-in-out infinite}
  @keyframes pulse{50%{opacity:.25;transform:scale(.7)}}

  /* Game pages open like a title card. */
  .world h1 span{animation:slam .65s cubic-bezier(.2,.9,.25,1.12) both}
  .world h1 span:nth-child(2){animation-delay:.12s}
  .world .lead{animation:rise .7s .4s cubic-bezier(.2,.7,.2,1) both}
  .world .clip{animation:rise .8s .2s cubic-bezier(.2,.7,.2,1) both}
  @keyframes slam{from{opacity:0;transform:translateX(-56px) skewX(-8deg)}}

  /* Small answers to the pointer. Hover lifts are for mice only, so a tap on a phone never leaves one stuck. */
  .brand img{transition:transform .3s cubic-bezier(.2,.9,.25,1.4)}
  .btn{transition:transform .15s ease,filter .15s ease}
  .btn:not(:disabled):active{transform:translateY(1px);filter:brightness(.95)}
  .shots img{transition:transform .35s cubic-bezier(.2,.7,.2,1)}
  @media (hover:hover){
    .brand:hover img{transform:rotate(-7deg) scale(1.06)}
    .btn:not(:disabled):hover{transform:translateY(-1px)}
    .shots img:hover{transform:translateY(-4px) scale(1.02)}
  }

  /* Things below the fold ease in as they arrive. site.js adds these classes, so nothing is hidden without it. */
  .reveal{opacity:0}
  .reveal.is-in{animation:rise .7s var(--d,0s) cubic-bezier(.2,.7,.2,1) both}

  /* A rejected signup shakes the field. */
  .shake{animation:shake .4s cubic-bezier(.36,.07,.19,.97)}
  @keyframes shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
}

/* Die Trying title: one line and a little smaller (7 Nov 2026). Scoped to this page only, so Par 3 and the home page are unchanged. */
.w-die-trying .world h1{display:flex;gap:.2em;white-space:nowrap;font-size:clamp(3rem,9.5vw,8rem)}
@media (max-width:900px){.w-die-trying .world h1{font-size:clamp(3rem,18vw,6.5rem)}}
.w-par-3 .world h1{display:flex;gap:.2em;white-space:nowrap}

/* Sky Gods world page (8 Nov 2026): colours only, scoped to this page. The home card keeps .w-dog-fight. */
.w-sky-gods{--world:var(--altitude);--on-world:#fff;--ground:#0B0E2E;--text:#E8EAFF;--muted:#B3B9EE;--accent:#FFE08A;--line:#FFE08A;--btn:#FFE08A;--btn-ink:#0B0E2E;--error:#FFB4A8;--ok:#E8EAFF}
/* Sky Gods page extras (8 Nov 2026): the launch trailer block and the June-and-now pairs. Scoped to this page. */
/* Sky Gods title: one line and smaller (8 Nov 2026). Scoped to this page only. */
.w-sky-gods .world h1{display:flex;gap:.2em;white-space:nowrap;font-size:clamp(3rem,9.5vw,8rem)}
@media (max-width:900px){.w-sky-gods .world h1{font-size:clamp(3rem,18vw,6.5rem)}}
/* Sky Gods storyline (8 Nov 2026). Same measure as the Rugby and Die Trying stories. */
.w-sky-gods .story{max-width:44ch;margin:0 0 14px;font-size:1.0625rem;line-height:1.55}
.w-sky-gods .lead+.story{margin-top:14px}
.w-sky-gods .trailer{margin-top:28px}
.w-sky-gods .pairs-note{margin:28px 0 0;font-size:.9375rem;color:var(--muted)}
.w-sky-gods .pairs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.w-sky-gods .pairs img{display:block;width:100%;height:auto;border:2px solid var(--line);border-radius:4px}
@media (max-width:700px){.w-sky-gods .pairs{grid-template-columns:1fr}}

/* Image enlarge (8 Nov 2026): opt in with data-lightbox on a container of images. Only the Sky Gods page uses it so far. */
[data-lightbox] img{cursor:zoom-in}
html.lb-open{overflow:hidden}
.lb{width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--text,#fff)}
.lb::backdrop{background:rgba(4,6,20,.93)}
.lb-inner{position:relative;display:grid;place-items:center;width:100%;height:100%;padding:64px 16px 72px;box-sizing:border-box}
.lb img{display:block;max-width:min(96vw,1920px);max-height:calc(100vh - 150px);width:auto;height:auto;border:2px solid var(--line,#fff);border-radius:4px;background:#000;cursor:default}
.lb-cap{position:absolute;left:0;right:0;bottom:16px;margin:0;padding:0 72px;text-align:center;font-size:.9375rem;line-height:1.4;color:var(--muted,#ccc)}
.lb button{position:absolute;min-width:48px;min-height:48px;padding:0 6px 4px;border:2px solid var(--btn,#fff);border-radius:999px;background:var(--btn,#fff);color:var(--btn-ink,#000);font:700 1.75rem/1 var(--body,sans-serif);cursor:pointer}
.lb button:hover{filter:brightness(1.12)}
.lb button[hidden]{display:none}
.lb-close{top:12px;right:12px}
.lb-prev,.lb-next{top:50%;transform:translateY(-50%)}
.lb-prev{left:12px}
.lb-next{right:12px}
@media (max-width:700px){.lb-inner{padding:64px 8px 96px}.lb-cap{padding:0 16px;bottom:12px}.lb-prev,.lb-next{top:auto;bottom:56px;transform:none}.lb-prev{left:12px}.lb-next{right:12px}}

/* Die Trying page: space above the reveal trailer (8 Nov 2026). Scoped to this page. */
.w-die-trying .trailer{margin-top:28px}
.w-die-trying .trailer .caption,.w-die-trying .riders .caption{margin-top:12px}
.w-die-trying .riders{margin:28px 0 0}
.w-die-trying .riders img{display:block;width:100%;height:auto;border:2px solid var(--line);border-radius:4px}

/* Rugby page and card (8 Nov 2026): page colours, the card image and the early-and-now pairs. Scoped to .w-rugby so other pages are unchanged. */
.w-rugby{--img:url("/img/spine-rugby.jpg");--img-pos:62% center;--ground:#2A0A14;--text:#FBE9ED;--muted:#E0B5C0;--accent:#F7A8B8;--line:#F7A8B8;--btn:#F7A8B8;--btn-ink:#2A0A14;--error:#FFB4A8;--ok:#FBE9ED}
.w-rugby .pairs-note{margin:28px 0 0;font-size:.9375rem;color:var(--muted)}
.w-rugby .pairs{display:grid;grid-template-columns:1fr;gap:12px;margin-top:12px}
.w-rugby .pairs img{display:block;width:100%;height:auto;border:2px solid var(--line);border-radius:4px}
.w-rugby .world h1{display:flex;gap:.2em;white-space:nowrap;font-size:clamp(2.25rem,5.8vw,6rem)}
@media (max-width:900px){.w-rugby .world h1{font-size:clamp(2rem,12.5vw,5rem)}}
.w-die-trying .story{max-width:44ch;margin:16px 0 8px;font-size:1.0625rem;line-height:1.55}
.w-rugby .story{max-width:44ch;margin:0 0 14px;font-size:1.0625rem;line-height:1.55}
.w-rugby .lead+.story{margin-top:14px}

/* Par 3 page (8 Nov 2026): storyline and the two course previews. Scoped to this page. */
.w-par-3 .story{max-width:44ch;margin:0 0 14px;font-size:1.0625rem;line-height:1.55}
.w-par-3 .lead+.story{margin-top:14px}
.w-par-3 .trailer{margin-top:28px}
.w-par-3 .trailer .caption{margin-top:12px}
@media (max-width:900px){.w-par-3 .world{grid-template-areas:"title" "clip" "caption" "tr1" "tr2" "copy" "shots"}.w-par-3 .trailer-1{grid-area:tr1;margin-top:0}.w-par-3 .trailer-2{grid-area:tr2;margin-top:0}}
.faq{margin:48px 0 0;max-width:60ch}
.faq h2{margin:0 0 12px;font:800 clamp(1.5rem,3vw,2rem)/1.05 var(--display)}
.faq h3{margin:22px 0 4px;font-size:1.0625rem;font-weight:700;line-height:1.3}
.faq p{margin:0;line-height:1.5;color:var(--muted)}
