/* THE SIGNAL · the countdown and puzzle page before launch (app/signal/page.php) and /kraken/ */
html, body { margin: 0; background: var(--bg, #07070d); color: var(--text, #cdd6f4); }
body.sg { font-family: "Share Tech Mono", ui-monospace, monospace; -webkit-font-smoothing: antialiased; min-height: 100vh; }
.sg a { color: var(--accent, #cba6f7); }
.sg-pv { padding: 8px 28px; background: #f9e2af; color: #11111b; font-size: 13px; letter-spacing: .12em; }
.sg-pv a { color: #11111b; }
.sg-top { display: flex; gap: 26px; align-items: center; height: 34px; padding: 0 28px; border-bottom: 1px solid var(--line-2, #1f1c3a);
  font-size: 12px; letter-spacing: .26em; color: var(--text-5, #7f849c); text-transform: uppercase; }
.sg-top b { font-weight: 400; color: var(--text-3, #a6adc8); }
.sg-dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: #f38ba8; animation: sg-blink 1.6s steps(1) infinite; }
@keyframes sg-blink { 50% { opacity: .25; } }
.sg-hdr { display: flex; align-items: center; gap: 14px; padding: 26px clamp(20px, 4vw, 60px); }
.sg-hdr .m { height: 46px; } .sg-hdr .w { height: 30px; }
.sg-badge { margin-left: auto; padding: 8px 14px; border: 1px solid var(--line, #2b2750); font-size: 12px; letter-spacing: .3em; color: var(--text-5, #7f849c); }

/* the hero: countdown over the wave, the tentacles rising out of it a step a day (--rise 0–1) */
.sg-hero { position: relative; height: 560px; overflow: hidden; --wl: 0%; }
.sg-copy { position: absolute; left: clamp(20px, 4vw, 60px); top: 40px; z-index: 4; }
.sg-kick { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .34em; text-transform: uppercase; color: var(--text-5, #7f849c); }
.sg-kick i { width: 10px; height: 10px; background: #f38ba8; }
.sg-cd { display: flex; gap: clamp(10px, 2vw, 26px); margin-top: 22px; }
.sg-cd b { display: block; font: 200 clamp(64px, 9vw, 118px)/.9 "Big Shoulders Display", sans-serif; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.sg-cd span { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-5, #7f849c); }
.sg-cd { --fs: clamp(64px, 9vw, 118px); }
.sg-cd > i { position: relative; flex: none; width: max(5px, calc(var(--fs) * .07)); height: calc(var(--fs) * .9); font-size: 0; }   /* two dots centred on the digits (the font's own colon sits low) */
.sg-cd > i::before, .sg-cd > i::after { content: ''; position: absolute; left: 0; width: 100%; height: max(5px, calc(var(--fs) * .07)); top: 31%; transform: translateY(-50%); background: var(--line, #2b2750); }
.sg-cd > i::after { top: 69%; }
.sg-lead { margin: 26px 0 0; max-width: 34ch; font-size: 19px; line-height: 1.5; color: var(--text-3, #a6adc8); }
.sg-lead em { font-style: normal; color: var(--accent, #cba6f7); }
/* fully risen, they reach 12px past the bottom line, like the site's hero; until then they sit lower, under the water */
.sg-art { position: absolute; right: clamp(0px, 4vw, 70px); width: min(700px, 90vw); bottom: calc(-12px - (1 - var(--rise)) * min(280px, 36vw)); z-index: 1; pointer-events: none; }
.sg-art .tent { position: relative; }
.sg-hero.asleep .sg-art { display: none; }   /* before the start date: no tentacles at all */
.sg-art .br { color: var(--tent, #cba6f7); stroke-width: var(--tent-stroke, 1.5); }
.sg-art .flip { transform: scaleY(-1); } .sg-art .flip svg { width: 100% !important; height: auto !important; }
/* the homepage's motion (hero.css): the same sway, the slow twinkle (with .shimmer), and in Firefox or when shrunk, hero.js
   draws them into a canvas every frame so the sway glides instead of hopping a pixel at a time */
.sg-art .tl, .sg-art .tg { will-change: transform; backface-visibility: hidden; animation: sg-tilt 7s ease-in-out infinite; }
.sg-art .tg { animation-name: sg-grow; }
@keyframes sg-tilt { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
@keyframes sg-grow { 0%, 100% { transform: scale(.985, .97); } 50% { transform: scale(1.01, 1.035); } }
.sg-art .tent-up { --pad: 60px; }
.sg-art .tent-ras { position: absolute; left: calc(-1 * var(--pad)); top: calc(-1 * var(--pad)); pointer-events: none; display: block; }
.sg-art .tent-up:has(> .tent-ras) { position: relative; }
.sg-art .tent-ras-on .flip svg.br { visibility: hidden; }
.sg-hero.shimmer .tent .br-g0 { animation: sg-tw 6s ease-in-out infinite; }
.sg-hero.shimmer .tent .br-g1 { animation: sg-tw 6s ease-in-out -2s infinite; }
.sg-hero.shimmer .tent .br-g2 { animation: sg-tw 6s ease-in-out -4s infinite; }
@keyframes sg-tw { 0%, 100% { opacity: 1; } 50% { opacity: var(--tent-dim, .35); } }
.sg-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 170px; z-index: 2; color: var(--scope, #cba6f7);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 26%, #000 48%); mask-image: linear-gradient(90deg, transparent 0, transparent 26%, #000 48%); }
.sg-wave canvas { display: block; width: 100%; height: 100%; }
.sg-line { position: absolute; left: clamp(20px, 4vw, 60px); right: clamp(20px, 4vw, 60px); bottom: 0; height: 1px; background: var(--line, #2b2750); z-index: 3; }

/* the doors */
.sg-cal { padding: 40px clamp(20px, 4vw, 60px) 70px; }
.sg-hd { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--text-3, #a6adc8); }
.sg-hd .rule { flex: 1; height: 1px; background: var(--line-2, #1f1c3a); }
.sg-hd small { font-size: 12px; letter-spacing: .2em; color: var(--text-5, #7f849c); }
.sg-doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.sg-door { position: relative; display: flex; flex-direction: column; min-height: 300px; border: 1px solid var(--line, #2b2750); background: #0d0c18; overflow: hidden; }
.sg-door.today { border-color: var(--accent, #cba6f7); }
.sg-door .lab { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 11px; letter-spacing: .26em; color: var(--text-5, #7f849c); position: relative; z-index: 2; }
.sg-door .lab b { font-weight: 400; color: var(--text-3, #a6adc8); } .sg-door.today .lab b { color: var(--accent, #cba6f7); }
.sg-door .nosig { position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); text-align: center; }
.sg-door .nosig span { display: block; margin-bottom: 22px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-5, #7f849c); opacity: .7; }
.sg-door .nosig .fl { display: block; width: 100%; height: 24px; }
.sg-door .lock { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-5, #7f849c); }
.sg-door .body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 6px 16px; }
.sg-door .clue { padding: 0 16px 10px; font-size: 13px; line-height: 1.45; color: var(--text-3, #a6adc8); }
.sg-door .clue b { font-weight: 400; color: #f9e2af; letter-spacing: .08em; }
.watch { font: 300 34px/1.1 "Big Shoulders Display", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--accent, #cba6f7); text-align: center; }
.term { width: 100%; padding: 14px; background: #07070d; border: 1px solid var(--line-2, #1f1c3a); font-size: 13px; color: var(--text-5, #7f849c); }
.term code { display: block; margin-top: 10px; font: 20px/1.4 "Share Tech Mono", monospace; color: var(--text, #cdd6f4); letter-spacing: .08em; word-spacing: .2em; }
.pic img { display: block; max-width: 100%; max-height: 190px; }
.chords { display: flex; gap: 6px; } .sg-chord { width: 33%; max-width: 92px; height: auto; }
.sg-chord line { stroke: #6c7086; stroke-width: 1.4; } .sg-chord line.nut { stroke: var(--text, #cdd6f4); stroke-width: 3; }
.sg-chord .dt { fill: var(--accent, #cba6f7); } .sg-chord .op { fill: none; stroke: var(--text-3, #a6adc8); stroke-width: 1.4; }
.sg-chord .mk { fill: var(--text-5, #7f849c); font: 13px "Share Tech Mono", monospace; text-anchor: middle; }
.sg-dial { position: relative; width: 100%; height: 70px; border-top: 1px solid var(--line, #2b2750); margin-top: 20px; }
.sg-dial i { position: absolute; top: 0; width: 1px; height: 9px; background: #45407a; } .sg-dial i.M { height: 16px; background: #6c7086; }
.sg-dial span { position: absolute; top: 22px; transform: translateX(-50%); font-size: 10px; color: var(--text-5, #7f849c); }
.sg-dial b { position: absolute; top: -10px; width: 2px; height: 30px; background: #f38ba8; transform: translateX(-1px); }
.sg-dial em { position: absolute; top: 44px; transform: translateX(-50%); font-style: normal; font-size: 14px; letter-spacing: .12em; color: #f38ba8; }
/* answer boxes */
.ans { display: flex; gap: 6px; align-items: center; padding: 0 16px 16px; }
.ans input, .sg-final input { flex: 1; min-width: 0; padding: 9px 10px; background: #07070d; border: 1px solid var(--line, #2b2750); color: var(--text, #cdd6f4);
  font: 14px "Share Tech Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.ans input:focus, .sg-final input:focus { outline: none; border-color: var(--accent, #cba6f7); }
.ans button, .sg-final button { padding: 9px 14px; background: none; border: 1px solid var(--line, #2b2750); color: var(--accent, #cba6f7); font: 14px "Share Tech Mono", monospace; letter-spacing: .2em; cursor: pointer; }
.ans button:hover, .sg-final button:hover { border-color: var(--accent, #cba6f7); }
.ans .res { position: absolute; right: 16px; bottom: 58px; font-size: 11px; letter-spacing: .2em; }
.res.ok { color: #a6e3a1; } .res.no { color: #f38ba8; }
.sg-door.cracked .ans input { border-color: #2f4a33; color: #a6e3a1; }
.sg-final { margin-top: 44px; max-width: 760px; }
.sg-final p { margin: 14px 0; color: var(--text-3, #a6adc8); }
.sg-final .row { display: flex; gap: 8px; }
.sg-final .res { display: block; margin-top: 10px; font-size: 13px; letter-spacing: .14em; }

/* /kraken/: the reward */
.kr { position: relative; min-height: 640px; overflow: hidden; padding: 60px clamp(20px, 4vw, 60px) 0; }
.kr h1 { margin: 18px 0 0; font: 200 clamp(70px, 11vw, 150px)/.9 "Big Shoulders Display", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.kr h1 em { font-style: normal; color: var(--accent, #cba6f7); }
.kr .code { display: inline-block; margin-top: 30px; padding: 16px 26px; border: 1px solid var(--accent, #cba6f7); font: 300 56px/1 "Big Shoulders Display", sans-serif; letter-spacing: .16em; color: #fff; }
.kr .how { max-width: 620px; margin-top: 24px; font-size: 17px; line-height: 1.6; color: var(--text-3, #a6adc8); position: relative; z-index: 4; }
.kr .how b { font-weight: 400; color: #f9e2af; }
.kr .sg-art { bottom: -12px; width: min(620px, 80vw); }
.kr .sg-wave { height: 148px; }

@media (max-width: 1280px) { .sg-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .sg-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .sg-doors { grid-template-columns: minmax(0, 1fr); }
  .sg-hero { height: 540px; }
  .sg-copy { right: 20px; }
  .sg-cd { gap: 6px; } .sg-cd { --fs: 54px; } .sg-cd b { font-size: 54px; } .sg-cd span { font-size: 10px; letter-spacing: .2em; }
  .sg-lead { font-size: 16px; }
  .sg-hd { flex-wrap: wrap; } .sg-hd small { flex-basis: 100%; }
  .sg-hdr .m { height: 36px; } .sg-hdr .w { height: 24px; }
  .sg-wave { -webkit-mask-image: none; mask-image: none; }
}
@media (prefers-reduced-motion: reduce) { .sg-dot { animation: none; } }
