/* GSL: San Francisco — the visual identity, in one place. Linked first; every other stylesheet consumes these tokens.
   Direction: the start menu. Deep plum panels over the 3D scene, warm white text, gold for selection / key lines /
   progress, orange-red for emphasis only, condensed caps for headings, a hard dark outline + offset shadow on the title.
   The "paper" tokens further down are for DOCUMENTS only (certificates, the term sheet): anything that is a sheet of paper. */
:root {
  /* colour */
  --plum: #17101c;                         /* outline, deepest panel, text on gold */
  --plum-2: #2a0f2a;                       /* warmer plum: gradients, text on gold */
  --plum-3: #3d2c44;                       /* raised surface on a panel (inputs, cards, unselected chips) */
  --gold: #ffd27a;                         /* selection, key lines, progress */
  --gold-hi: #ffe0a3;                      /* gold, hovered */
  --flame: #ff5a1f;                        /* emphasis only */
  --mint: #5ff0b5;                         /* good / live / money going up */
  --rose: #ff9d85;                         /* bad / danger text on plum */
  --sky: #9cc4ff;                          /* links and info on plum */
  --paper-text: #fff8ec;                   /* warm white: body text on plum */
  --text-dim: rgba(255, 248, 236, .74);    /* secondary text on plum (≥ 7:1 on --plum) */
  --text-faint: rgba(255, 248, 236, .62);  /* placeholders (≥ 4.5:1 on --plum-3 and on --panel-2) */
  --text-off: rgba(255, 248, 236, .56);    /* a disabled or locked control's text on plum: use this, not opacity on dim text */
  --on-gold: #2a0f2a;                      /* text on gold / mint / flame */

  /* surfaces */
  --panel: rgba(23, 16, 28, .92);          /* a panel over the scene */
  --panel-solid: #1c1322;                  /* the same, where nothing may show through */
  --panel-2: #2c2132;                      /* raised on a panel, opaque (also safe straight over the scene) */
  --raise: rgba(255, 255, 255, .1);        /* raised on a panel, translucent (menu style) */
  --raise-hi: rgba(255, 255, 255, .2);
  --scrim: rgba(20, 8, 24, .72);           /* behind a modal */
  --line: rgba(255, 210, 122, .55);        /* the gold key line around a panel */
  --line-soft: rgba(255, 248, 236, .2);    /* dividers inside a panel */
  --line-input: rgba(255, 248, 236, .5);   /* the edge of a text field or a control that must be found (≥ 3:1 on plum) */
  --sunset: radial-gradient(120% 90% at 30% 22%, #7a4438 0%, #4a2238 42%, #17101c 100%);   /* full-screen moments */
  --grade: linear-gradient(0deg, rgba(20, 8, 24, .9) 0%, rgba(40, 14, 40, .55) 55%, rgba(40, 14, 40, .35) 100%); /* over the live scene */

  /* type */
  --title-font: 'Titan One', 'Arial Black', sans-serif;                 /* the lockup */
  --city-font: 'Sancreek', Georgia, serif;                               /* "San Francisco" */
  --head-font: 'Bebas Neue', 'Anton', Impact, 'Arial Narrow', sans-serif; /* headings: condensed caps */
  --poster-font: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif; /* the biggest lines */
  --mono-font: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;  /* small print, keys */

  /* shape */
  --radius: 4px; --radius-sm: 3px; --radius-pill: 999px;
  --outline-w: 2px;
  --shade: rgba(10, 4, 14, .6);
  --shadow: 3px 3px 0 var(--shade); --shadow-lg: 6px 6px 0 var(--shade);
  --shadow-soft: 0 18px 50px rgba(10, 4, 14, .5);
  --focus: 0 0 0 2px var(--plum), 0 0 0 5px #fff, 0 0 0 7px var(--plum);   /* white ring, dark rings either side: shows on plum AND on gold */
  /* text straight on the 3D scene (no plate): a plum outline that survives noon facades and night alike */
  --on-scene: -1px 0 0 var(--plum), 1px 0 0 var(--plum), 0 -1px 0 var(--plum), 0 1px 0 var(--plum), -1px -1px 0 var(--plum), 1px 1px 0 var(--plum), 1px -1px 0 var(--plum), -1px 1px 0 var(--plum), 0 0 4px var(--plum), 0 2px 6px rgba(10, 4, 14, .8);
  /* a dark emoji or glyph used as an icon on plum: a thin light rim so its silhouette reads */
  --emoji-lift: drop-shadow(0 0 .6px rgba(255, 248, 236, .95)) drop-shadow(0 0 1.6px rgba(255, 248, 236, .55));
  /* an emoji on a gold bar: a thin plum rim */
  --emoji-rim: drop-shadow(0 0 .6px rgba(23, 16, 28, .95)) drop-shadow(0 0 1.2px rgba(23, 16, 28, .6));

  /* documents: sheets of paper keep ink on cream */
  --ink: #17101c; --paper: #fbf7ee; --paper-2: #f3ecdc; --muted: #6f6a60; --rule: #d9ccb2;
  /* older names, kept so nothing written against them breaks */
  --accent: var(--flame); --teal: #12a37f;
  --teal-deep: #0a7a5e;                    /* teal that carries WHITE text (≥ 4.5:1); --teal itself takes --on-gold */
  --dots: radial-gradient(circle at 1px 1px, rgba(255, 248, 236, .07) 1px, transparent 1.4px);
}
html, body { background: #17101c; }

/* ───────────────────────────── THE TITLE LOCKUP (the one definition) ─────────────────────────────
   Markup (loading.titleHTML): <div class="gsl-title" data-variant="stacked | plain"><b.l1>grand</b><b.l2>startup</b><b.l3>larper</b><em>GSL</em><i>San Francisco</i></div>
   Size: --tu (defaults to the menu unit). The box has a fixed width and height, so nothing moves when the web fonts arrive. */
.gsl-title { --tu: var(--u, 1vw);
  --title-size: 8; --city-size: 5;                          /* in title units; all three lines share one size */
  position: relative; width: calc(var(--tu) * 42); height: calc(var(--tu) * 25.5); text-align: center; color: #fff; -webkit-user-select: none; user-select: none; }
.gsl-title b, .gsl-title em, .gsl-title i { display: block; font-style: normal; font-weight: 400; white-space: nowrap; }
/* stacked (default): the full name on three lines, the city under the last one */
.gsl-title[data-variant="stacked"] em { display: none; }
.gsl-title[data-variant="stacked"] b { font-family: var(--title-font); font-size: calc(var(--tu) * var(--title-size)); text-transform: lowercase; line-height: .84; letter-spacing: -.005em;
  -webkit-text-stroke: calc(var(--tu) * 1.2) var(--plum); paint-order: stroke fill; text-shadow: calc(var(--tu) * .4) calc(var(--tu) * .6) 0 var(--plum); }
.gsl-title[data-variant="stacked"] i { position: relative; margin-top: calc(var(--tu) * -.5); font-family: var(--city-font); font-size: calc(var(--tu) * var(--city-size)); line-height: 1; color: var(--flame); transform: rotate(-4deg);
  -webkit-text-stroke: calc(var(--tu) * .8) var(--plum); paint-order: stroke fill; text-shadow: calc(var(--tu) * .3) calc(var(--tu) * .4) 0 var(--plum); }
/* plain: condensed initials, the city spaced out in gold */
.gsl-title[data-variant="plain"] { text-align: right; height: calc(var(--tu) * 18); }
.gsl-title[data-variant="plain"] b { display: none; }
.gsl-title[data-variant="plain"] em { font: 400 calc(var(--tu) * 15)/.86 var(--poster-font); text-transform: uppercase; text-shadow: 0 calc(var(--tu) * .4) 0 rgba(30, 10, 30, .6); }
.gsl-title[data-variant="plain"] i { margin-top: calc(var(--tu) * 1); font: 400 calc(var(--tu) * 3)/1 var(--poster-font); letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; color: var(--gold); text-shadow: 0 calc(var(--tu) * .4) 0 rgba(30, 10, 30, .6); }

/* ───────────────────────────── THE SHORT MARK (where the lockup cannot fit) ─────────────────────────────
   <span class="gsl-mark"><b>gsl</b><i>SF</i></span>; size with font-size. The app icon (assets/icon.svg) is the same drawing. */
.gsl-mark { position: relative; display: inline-grid; place-items: center; width: 2.6em; height: 2.6em; flex: none; border-radius: 22%; overflow: hidden; background: linear-gradient(160deg, #7a4438 0%, #4a2238 45%, #17101c 100%); box-shadow: inset 0 0 0 .08em rgba(255, 210, 122, .55); line-height: 1; -webkit-user-select: none; user-select: none; }
.gsl-mark b { font: 400 1em/1 var(--title-font); text-transform: lowercase; color: #fff; -webkit-text-stroke: .2em var(--plum); paint-order: stroke fill; text-shadow: .05em .08em 0 var(--plum); transform: translateY(-.14em); }
.gsl-mark i { position: absolute; right: .22em; bottom: .2em; font: 400 .56em/1 var(--city-font); font-style: normal; color: var(--flame); -webkit-text-stroke: .22em var(--plum); paint-order: stroke fill; transform: rotate(-6deg); }
.gsl-mark.bare { background: none; box-shadow: none; overflow: visible; }

/* ───────────────────────────── small shared pieces ───────────────────────────── */
.b-panel { background: var(--panel); color: var(--paper-text); border: var(--outline-w) solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.b-head { font-family: var(--head-font); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.b-kicker { font: 700 11px/1.2 var(--mono-font); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.b-gold { background: var(--gold); color: var(--on-gold); }
.b-flame { color: var(--flame); }
.b-sunset { background: var(--sunset); color: var(--paper-text); }
.b-on-scene { color: #fff; text-shadow: var(--on-scene); }
:where(input, textarea):not(#phone *, #laptop *, #stk *)::placeholder { color: var(--text-faint); opacity: 1; }
/* one focus ring for the game's own controls (the phone, the laptop and the sticker bench keep theirs) */
:is(button, a, summary, [role="button"], [role="tab"], [tabindex]):focus-visible:not(input, textarea, select, [tabindex="-1"], h1, h2, h3, #phone *, #laptop *, #stk *, .maplibregl-map *) { outline: 0; box-shadow: var(--focus) !important; }
