/* The landing page and the judges page: the same palette and type as the town */
body.landing { background: #07060a; }
.lnav { position: sticky; top: 0; z-index: 20; max-width: none; margin: 0; padding: 10px max(16px, calc((100% - 1100px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--goth); font-size: 17px; background: rgba(7, 6, 10, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.lnav a { color: var(--ash); text-decoration: none; transition: color .15s; }
.lnav a:hover { color: var(--bone); }
.lnav-home { font-family: var(--frak); font-size: 26px; color: var(--bone) !important; }
.lnav-links { display: flex; gap: 6px 20px; flex-wrap: wrap; align-items: center; }
.lnav-play { color: var(--bone) !important; border: 1px solid var(--blood-hi, #d7212b); padding: 2px 14px; background: rgba(215, 33, 43, .18); }
.lmain { max-width: 1100px; margin: 0 auto; padding: 0 16px 30px; }
.lh { font-family: var(--frak); font-weight: 400; font-size: 46px; line-height: 1.05; margin: 0 0 18px; color: var(--bone); text-shadow: 0 2px 0 #000, 0 0 24px rgba(215, 33, 43, .25); }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.lcta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 22px 0 8px; }
.lnote { margin: 6px 0 0; color: var(--ash); font-style: italic; font-size: 15px; }
.btn.glow { box-shadow: 0 0 0 1px #000, 0 0 28px rgba(215, 33, 43, .55); animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 1px #000, 0 0 44px rgba(215, 33, 43, .85); } }
.lsec { margin: 0 0 90px; font-size: 18px; line-height: 1.55; }
.lsec p { margin: 0 0 12px; }

/* The hero: the night, three clones on chains, goods drifting in the dark */
.scene-hero { position: relative; overflow: hidden; min-height: 860px; display: flex; flex-direction: column; align-items: center; padding: 34px 16px 0; text-align: center; }
.scene-hero .sky { --star-o: 1; }
.scene-hero .sky .moon { left: 12%; top: 18%; width: 84px; height: 84px; }
.hero-copy { position: relative; z-index: 3; }
.hero-copy .logo-svg { width: 560px; max-width: 86vw; filter: drop-shadow(0 0 26px rgba(215, 33, 43, .45)); }
.hero-copy .hero-line { font-size: 34px; margin-top: 2px; text-shadow: 0 2px 8px #000; }
.hero-copy .hero-sub { font-size: 21px; text-shadow: 0 2px 8px #000; }
.trio { position: relative; z-index: 2; width: min(900px, 100%); height: 420px; margin-top: 10px; display: flex; justify-content: space-between; align-items: flex-start; padding: 0 70px; }
.trio .chains { position: absolute; left: 0; right: 0; top: 150px; width: 100%; height: 260px; overflow: visible; }
.chain { fill: none; stroke: #8f8a98; stroke-width: 4; stroke-dasharray: 9 5; stroke-linecap: round; filter: drop-shadow(0 0 3px #000); animation: tension 2.8s ease-in-out infinite; }
.chain.c2 { animation-delay: -.9s; } .chain.c3 { animation-delay: -1.8s; }
@keyframes tension { 50% { stroke-dashoffset: 3; stroke: #b1abb9; } }
.big-clone { position: relative; width: 150px; display: flex; flex-direction: column; align-items: center; --rim: #5a5464; --eye: #ff2a35; animation: hover 5.5s ease-in-out infinite; transform-origin: 50% 100%; }
.big-clone.mid { margin-top: 40px; animation-delay: -1.8s; }
.big-clone:last-of-type { animation-delay: -3.6s; }
.big-clone svg { width: 150px; height: 240px; filter: drop-shadow(0 0 22px rgba(0, 0, 0, .9)) drop-shadow(0 0 14px var(--glow, rgba(215,33,43,.2))); }
.big-clone svg .eye { animation: glare 4.2s ease-in-out infinite; }
.big-clone span { font-family: var(--goth); font-size: 18px; color: #050407; background: var(--tunic); padding: 0 10px 1px; margin-top: -6px; }
.t-greedy { --tunic: var(--t-greedy, #d9a53a); --glow: rgba(217, 165, 58, .35); }
.t-cautious { --tunic: var(--t-cautious, #7aa2c8); --glow: rgba(122, 162, 200, .35); }
.t-possessed { --tunic: #b48ad8; --glow: rgba(180, 138, 216, .4); }
@keyframes hover { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
.anchor { position: absolute; left: 50%; top: 404px; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; border: 5px solid #8f8a98; box-shadow: 0 0 0 2px #000, 0 0 30px rgba(215, 33, 43, .5); background: #120f16; }
.anchor span { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: italic 15px var(--serif); color: var(--ash); }
.drift { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.drift svg { position: absolute; width: 26px; height: 26px; opacity: 0; animation: rise 14s linear infinite; filter: drop-shadow(0 0 6px rgba(255, 200, 120, .35)); }
.drift .d1 { left: 8%; animation-delay: 0s; } .drift .d2 { left: 19%; animation-delay: -3s; width: 20px; }
.drift .d3 { left: 31%; animation-delay: -7s; } .drift .d4 { left: 47%; animation-delay: -11s; width: 18px; }
.drift .d5 { left: 61%; animation-delay: -5s; } .drift .d6 { left: 74%; animation-delay: -9s; width: 22px; }
.drift .d7 { left: 86%; animation-delay: -2s; } .drift .d8 { left: 94%; animation-delay: -12s; width: 20px; }
@keyframes rise { 0% { top: 104%; opacity: 0; transform: rotate(0); } 15% { opacity: .55; } 80% { opacity: .35; } 100% { top: 30%; opacity: 0; transform: rotate(240deg); } }

/* Live numbers */
.lstats { position: relative; z-index: 5; max-width: 1100px; margin: -70px auto 90px; padding: 18px 22px 14px; border: 1px solid rgba(217, 165, 58, .45); background: rgba(14, 11, 8, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lstats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lstats li { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.lstats b { font-family: var(--mono); font-size: 40px; color: #f3d48a; line-height: 1.1; text-shadow: 0 0 18px rgba(217, 165, 58, .35); }
.lstats span { color: var(--ash); font-size: 15px; line-height: 1.25; }
.lsmall { color: var(--dim, #8d8597); font-size: 13.5px; margin: 12px 0 0; text-align: center; }

/* Three moves */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { background: linear-gradient(180deg, #100d14, #0a090d); border: 1px solid #2a2430; padding: 18px 20px 14px; }
.step h3 { font-family: var(--goth); font-weight: 700; font-size: 24px; margin: 14px 0 6px; color: var(--bone); }
.step p { font-size: 16.5px; color: var(--ash); }
.art { height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #221d28; background: radial-gradient(ellipse at 50% 40%, rgba(58, 10, 16, .55), #07060a 75%); position: relative; overflow: hidden; }
.omen-art small, .crown-art small { font: italic 14px var(--serif); color: var(--ash); }
.omen-art b { font-family: var(--frak); font-weight: 400; font-size: 64px; line-height: 1; color: var(--bone); text-shadow: 0 0 22px rgba(215, 33, 43, .5); transition: opacity .5s, transform .5s; }
.omen-art em { font-size: 15px; color: #9fb6cf; transition: opacity .5s; }
.omen-art.out b, .omen-art.out em { opacity: 0; transform: translateY(6px); }
.mini-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; width: 92%; }
.mini-board div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mini-board svg { width: 26px; height: 26px; }
.mini-board b { font: 600 15px var(--mono); color: var(--bone); transition: color .4s; }
.mini-board i { font: normal 11px var(--mono); color: var(--ash); }
.mini-board .up b { color: #7fd68a; } .mini-board .down b { color: #ff6b73; }
.bell { position: absolute; top: 8px; right: 12px; width: 34px; height: 34px; transform-origin: 50% 10%; animation: ring 2.4s ease-in-out infinite; }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 66% { transform: rotate(16deg); } 74% { transform: rotate(-14deg); } 82% { transform: rotate(8deg); } 90% { transform: rotate(-4deg); } }
.crown-art svg { width: 120px; filter: drop-shadow(0 0 18px rgba(217, 165, 58, .6)); animation: gleam 3.6s ease-in-out infinite; }
@keyframes gleam { 50% { filter: drop-shadow(0 0 34px rgba(217, 165, 58, .95)); transform: translateY(-4px); } }

/* The leash */
.leash { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.leash-copy p { color: var(--ash); }
.leash-copy code { color: var(--bone); }
.run-stage { position: relative; height: 340px; border: 1px solid #2a2430; background: radial-gradient(ellipse at 70% 60%, rgba(58, 10, 16, .6), #07060a 70%); overflow: hidden; }
.pile { position: absolute; right: 8%; bottom: 46px; width: 110px; height: 70px; }
.pile svg { position: absolute; width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(255, 200, 120, .45)); }
.pile svg:nth-child(1) { left: 0; bottom: 0; } .pile svg:nth-child(2) { left: 28px; bottom: 0; } .pile svg:nth-child(3) { left: 56px; bottom: 0; }
.pile svg:nth-child(4) { left: 14px; bottom: 24px; } .pile svg:nth-child(5) { left: 42px; bottom: 24px; }
.post { position: absolute; left: 7%; bottom: 40px; width: 16px; height: 110px; background: linear-gradient(90deg, #2a2530, #4b4656, #2a2530); border: 1px solid #000; }
.run-chain { position: absolute; inset: 0; width: 100%; height: 100%; }
.run-chain path { fill: none; stroke: #8f8a98; stroke-width: 4; stroke-dasharray: 9 5; stroke-linecap: round; transition: stroke .2s; }
.runner { position: absolute; left: 38%; bottom: 36px; width: 110px; --rim: #5a5464; --eye: #ff2a35; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 50% 100%; }
.runner svg { width: 110px; height: 176px; filter: drop-shadow(0 0 16px rgba(217, 165, 58, .3)); }
.run-stage.lunge .runner { transform: translateX(46px) rotate(9deg); }
.run-stage.lunge .run-chain path { stroke: #ff3b45; stroke-dasharray: none; }
.run-stage.snap .runner { transform: translateX(-6px) rotate(-4deg); transition-duration: .25s; }
.held { position: absolute; left: 50%; top: 22px; transform: translateX(-50%) rotate(-3deg) scale(2.2); opacity: 0; text-align: center; pointer-events: none; transition: none; }
.held b { display: block; font-family: var(--frak); font-weight: 400; font-size: 46px; color: #ff3b45; text-shadow: 0 0 22px rgba(215, 33, 43, .9), 0 2px 0 #000; white-space: nowrap; }
.held code { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--bone); background: rgba(0, 0, 0, .7); padding: 2px 8px; border: 1px solid #5a1015; }
.run-stage.snap .held, .run-stage.hold .held { opacity: 1; transform: translateX(-50%) rotate(-3deg) scale(1); transition: transform .35s cubic-bezier(.2, 1.4, .4, 1), opacity .2s; }
.run-stage.snap { animation: shake .4s; }

/* Built on NEAR */
.lcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lcards li { border: 1px solid #2a2430; background: linear-gradient(180deg, #100d14, #0a090d); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, transform .2s; }
.lcards li:hover { border-color: #5a1015; transform: translateY(-3px); }
.lcards b { font-family: var(--goth); font-size: 20px; color: var(--bone); }
.lcards span { color: var(--ash); font-size: 15.5px; line-height: 1.4; }
.lcode { background: #050407; border: 1px solid #3a3440; padding: 14px 16px; overflow-x: auto; font: 14px/1.6 var(--mono); color: var(--bone); margin: 8px auto 18px; max-width: 900px; }
.lend .trio.small { height: 150px; width: min(420px, 100%); margin: 0 auto 4px; padding: 0; }
.lend .trio.small .big-clone, .lend .trio.small .big-clone svg { width: 80px; } .lend .trio.small .big-clone svg { height: 128px; }
.lend .trio.small .big-clone.mid { margin-top: 14px; }
.lfoot { text-align: center; }
.lfoot a { color: var(--ash); }

/* Sections fade up as they scroll in */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .steps3 { grid-template-columns: 1fr; }
  .leash { grid-template-columns: 1fr; }
  .lcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lstats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lstats { margin: -40px 16px 70px; }
}
@media (max-width: 600px) {
  .lnav-links { gap: 4px 12px; font-size: 15px; }
  .lnav-links a:not(.lnav-play):not([href="judges.html"]) { display: none; }
  .scene-hero { min-height: 700px; padding-top: 22px; }
  .hero-copy .hero-line { font-size: 24px; } .hero-copy .hero-sub { font-size: 17px; }
  .trio { height: 300px; padding: 0 4px; }
  .big-clone, .big-clone svg { width: 92px; } .big-clone svg { height: 148px; }
  .big-clone span { font-size: 14px; }
  .trio .chains { top: 96px; height: 190px; }
  .anchor { top: 286px; }
  .lh { font-size: 34px; }
  .lstats b { font-size: 30px; }
  .lcards { grid-template-columns: 1fr; }
  .lsec { margin-bottom: 64px; font-size: 16.5px; }
  .held b { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* The judges page */
.jmain { padding-top: 18px; }
.jtitle { font-size: 54px; margin-bottom: 6px; }
.jlede { font-size: 20px; font-style: italic; color: #9fb6cf; margin: 0 0 26px; }
.jtable { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0 0 10px; }
.jtable th, .jtable td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid #2a2430; }
.jtable th { font-family: var(--goth); font-size: 17px; color: var(--bone); background: #0b0a10; }
.jtable td:first-child { width: 34%; color: var(--bone); }
.jtable td { color: var(--ash); overflow-wrap: anywhere; }
.jtable code, .jlist code, .lsteps code { font-size: 14px; }
.jlist { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.jmain a { color: #9fb6cf; }
@media (max-width: 600px) { .jtitle { font-size: 42px; } .jtable { font-size: 14.5px; } .jtable td:first-child { width: 40%; } }
.lsec ol + p, .lsec ul + p { margin-top: 12px; }
/* fixes after the first look */
.lcta .btn { width: auto; display: inline-flex; align-items: center; justify-content: center; }
.lcta .btn.big { padding-left: 44px; padding-right: 44px; min-width: 300px; }
.anchor { top: 372px; }
.lstats { margin-top: -10px; }
.held { width: 92%; }
.held b { font-size: 40px; white-space: normal; line-height: 1; }
.held code { font-size: 12px; white-space: normal; }
@media (max-width: 600px) { .anchor { top: 262px; } .lcta .btn.big { min-width: 0; width: 100%; } .held b { font-size: 30px; } }
@media (max-width: 600px) { .scene-hero .sky .moon { left: 4%; top: 4%; width: 46px; height: 46px; opacity: .8; } }
