/* ChainOfFame.com. One visual world, the game's own: a dark house, velvet, brass, and a lit marquee.
   Layout: the marquee on the curtain, centred like a sign; under it, bands with the heading on the left and the
   words on the right. */
@font-face { font-family: 'Bebas Neue'; src: url('fonts/BebasNeue-400.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Limelight'; src: url('fonts/Limelight-400.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Instrument Sans'; font-weight: 400; src: url('fonts/InstrumentSans-400.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; src: url('fonts/InstrumentSans-600.ttf') format('truetype'); font-display: swap; }

:root {
  color-scheme: dark;
  --house: #130a0c;      /* the auditorium with the lights down */
  --velvet: #5b0f1c;
  --panel: #fff4e0;      /* a lit marquee panel */
  --ink: #17100f;
  --bulb: #ffcf73;
  --brass: #c9a15b;
  --light: #f8eee2;
  --dim: #b9a79c;
  --hair: rgba(201, 161, 91, 0.22);
  --deco: 'Limelight', Georgia, serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--house); color: var(--light); font: 400 17px/1.6 var(--body); }
a { color: var(--bulb); text-underline-offset: 3px; }
a:hover { color: #fff; }
a:focus-visible { outline: 2px solid var(--bulb); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 14px; max-width: 62ch; }
strong { font-weight: 600; color: #fff; }

/* The bar at the top */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 14px clamp(16px, 4vw, 40px); background: #0d0607; border-bottom: 1px solid var(--hair); }
.brand { font-family: var(--deco); font-size: 18px; letter-spacing: 0.5px; color: var(--brass); text-decoration: none; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--dim); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--light); }
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 6px; }

/* The curtain and the sign */
.stage { position: relative; overflow: hidden; background:
    radial-gradient(ellipse at 50% 38%, rgba(255, 214, 150, 0.20), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(19, 10, 12, 0.92) 100%),
    repeating-linear-gradient(90deg, #3b0811 0, #6e1424 17px, #a52a3e 30px, #b23349 33px, #a52a3e 36px, #6e1424 49px, #3b0811 66px); }
.valance { height: 46px; background:
    radial-gradient(ellipse 60px 46px at 50% 0, #4a0c17 0 97%, transparent 100%) 0 0 / 120px 46px repeat-x; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.5)); }
.stage-in { max-width: 820px; margin: 0 auto; padding: 26px 20px 64px; text-align: center; }
.stage.small .stage-in { max-width: 560px; padding: 18px 20px 44px; }
.sign { margin: 0; line-height: 0; }
.marquee { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
.tagline { margin: 30px auto 8px; max-width: none; font-family: var(--deco); font-size: clamp(22px, 3.4vw, 34px); line-height: 1.25; color: #fff; text-wrap: balance; }
.status { margin: 0 auto; max-width: none; color: var(--bulb); font-weight: 600; }

/* The wave of light that runs once around the sign, as in the game */
.bulb { animation: chase 8s linear infinite; animation-delay: calc(var(--i) * 28ms); }
@keyframes chase { 0%, 5%, 100% { filter: brightness(1); } 2% { filter: brightness(1.7) saturate(0.6); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* A band: heading on the left, words on the right */
.band { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 12px 48px; max-width: 1040px; margin: 0 auto; padding: 44px clamp(16px, 4vw, 40px); border-top: 1px solid var(--hair); }
.stage + .band { border-top: 0; }
.band h2 { margin: 0; font: 400 24px/1.25 var(--deco); letter-spacing: 0.4px; color: var(--brass); text-wrap: balance; }
.band-body > :last-child { margin-bottom: 0; }
.lead { font-size: 20px; line-height: 1.45; color: #fff; }
.fine { font-size: 14px; color: var(--dim); }
.more { font-weight: 600; }

/* The chain: three lit tiles, linked */
.chain { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 0 0 18px; padding: 0; }
.chain li { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 108px; padding: 14px 16px; background: var(--panel); color: var(--ink); border-radius: 6px; box-shadow: 0 0 0 4px #1a0e0f, 0 0 0 5px rgba(201, 161, 91, 0.5), 0 10px 22px rgba(0, 0, 0, 0.45); }
.chain li + li::before { content: ''; position: absolute; left: -24px; top: 50%; width: 22px; height: 10px; margin-top: -5px; border: 3px solid var(--brass); border-radius: 6px; }
.chain .who { font-size: 13px; font-weight: 600; color: #6b574a; }
.chain .what { font: 400 clamp(22px, 2.4vw, 28px)/1.02 'Bebas Neue', Impact, sans-serif; letter-spacing: 0.8px; }

.facts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.facts li { padding-left: 18px; border-left: 2px solid var(--velvet); max-width: 62ch; }
.steps { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; max-width: 62ch; }
.modes { margin: 0; display: grid; gap: 0; }
.modes div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.modes div:first-child { padding-top: 0; }
.modes div:last-child { border-bottom: 0; padding-bottom: 0; }
.modes dt { font: 400 24px/1.1 'Bebas Neue', Impact, sans-serif; letter-spacing: 1px; color: #fff; }
.modes dd { margin: 0; color: var(--light); }
.faq h3 { margin: 22px 0 6px; font: 600 18px/1.3 var(--body); color: #fff; }
.faq h3:first-child { margin-top: 0; }

/* The game on a phone */
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 3vw, 36px); max-width: 940px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 52px; }
.screens figure { margin: 0; text-align: center; }
.screens img { display: block; width: 100%; border-radius: clamp(14px, 2.4vw, 28px); border: 5px solid #050303; box-shadow: 0 0 0 1px rgba(201, 161, 91, 0.35), 0 18px 34px rgba(0, 0, 0, 0.6); }
.screens figcaption { margin-top: 12px; font-size: 14px; color: var(--dim); }

.foot { padding: 34px clamp(16px, 4vw, 40px) 46px; border-top: 1px solid var(--hair); background: #0d0607; text-align: center; }
.foot p { margin: 0 auto 10px; max-width: none; }
.foot a { margin: 0 12px; display: inline-block; }

@media (max-width: 760px) {
  .band { grid-template-columns: minmax(0, 1fr); padding-top: 34px; padding-bottom: 34px; }
  .chain { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .chain li { min-height: 84px; }
  .chain li + li::before { left: 50%; top: -23px; width: 10px; height: 20px; margin: 0 0 0 -5px; }
  .modes div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .stage-in { padding-bottom: 44px; }
  .screens { grid-template-columns: repeat(3, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 36px; }
}
