:root{--ir-fresh:#22B573}
/* The journey layer's styles, shared by every page (see journey.js). scripts/build-home.py
   inlines this file into the homepage; the other pages link it.

   .ir-sec is the hero's numbered callout carried on as a section header: a shape drawn in the
   hero's dashes, then a number, a leader line with its dot, and the label. The numbers come
   from the CSS counter irsec, which each page starts where it wants (the homepage at 4,
   because its hero callouts are 01 to 04). */
.ir-vh{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ir-glyph{display:block;flex:none;width:112px;height:112px}

.ir-sec{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;margin:0 0 16px;text-align:center;counter-increment:irsec}
.ir-sec::before{content:"";width:1px;height:44px;background:linear-gradient(rgba(0,100,90,0),rgba(0,100,90,.5));transform-origin:top center}
.ir-sec-k{display:inline-flex;align-items:center;gap:10px;color:#00645A}
.ir-sec-n{font:600 11px/1 ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.1em}
.ir-sec-n::before{content:counter(irsec,decimal-leading-zero)}
.ir-sec-l{position:relative;flex:none;width:44px;height:1px;background:rgba(0,100,90,.38);transform-origin:left center}
.ir-sec-l::after{content:"";position:absolute;right:-3px;top:-3px;width:7px;height:7px;border-radius:50%;background:var(--ir-fresh,#22B573)}
/* The callout stays alive: the end dot breathes and a spark runs along the line. Only where motion is allowed (html.ir-js). */
.ir-js .ir-sec-l::after{animation:ir-secdot 2.6s ease-in-out infinite}
.ir-js .ir-sec-l::before{content:"";position:absolute;left:0;top:-1px;width:12px;height:3px;border-radius:2px;background:currentColor;opacity:0;animation:ir-secrun 2.6s cubic-bezier(.45,0,.25,1) infinite}
@keyframes ir-secdot{0%,100%{box-shadow:0 0 0 0 currentColor;transform:scale(1)}50%{box-shadow:0 0 0 5px transparent;transform:scale(1.25)}}
@keyframes ir-secrun{0%{left:-12px;opacity:0}15%{opacity:.9}85%{opacity:.9}100%{left:44px;opacity:0}}
.ir-sec-e{margin-left:6px;font-size:12px;font-weight:700;letter-spacing:.16em;line-height:1.3;text-transform:uppercase}
/* Inside a card: left aligned, no drop line. .ir-sec-mint is for dark and green grounds. */
.ir-sec-in{align-items:flex-start;margin:0;text-align:left}
.ir-sec-in::before{display:none}
.ir-sec-in .ir-glyph{width:84px;height:84px;margin:0 0 2px -8px}
.ir-sec-mint .ir-sec-k{color:#5CF2C4}
.ir-sec-mint .ir-sec-l{background:rgba(92,242,196,.45)}
.ir-sec-mint .ir-sec-l::after{background:#5CF2C4}
/* The lines draw themselves when the header is first seen. Only the lines wait: the label and
   the heading are never hidden. html.ir-js is set by journey.js when motion is allowed. */
.ir-js .ir-sec[data-reveal] .ir-sec-l{transform:scaleX(0);transition:transform .65s cubic-bezier(.2,.7,.2,1) .3s}
.ir-js .ir-sec[data-reveal]::before{transform:scaleY(0);transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.ir-js .ir-sec[data-reveal].ir-seen .ir-sec-l,.ir-js .ir-sec[data-reveal].ir-seen::before{transform:none}
@media (max-width:760px){.ir-glyph{width:92px;height:92px}.ir-sec::before{height:28px}.ir-sec-in .ir-glyph{width:72px;height:72px}}

/* A hidden message: a plain-looking thing that is a button. */
.ir-find{-webkit-appearance:none;appearance:none;margin:0;padding:0;border:0;border-radius:6px;background:none;color:inherit;font:inherit;letter-spacing:inherit;line-height:inherit;cursor:pointer}
.ir-find:focus-visible{outline:2px solid #00645A;outline-offset:3px}
.ir-find-pop{animation:ir-find-pop .9s cubic-bezier(.2,.8,.2,1)}
.ir-hunting .ir-find-text:not(.ir-found){animation:ir-find-hint 3.4s ease-in-out infinite}
.ir-find-text.ir-found{color:#00645A}
@keyframes ir-find-pop{0%{transform:scale(1)}30%{transform:scale(1.35)}100%{transform:scale(1)}}
@keyframes ir-find-hint{0%,72%,100%{color:inherit}86%{color:#19AFA9}}

/* The hunt's progress colour (owner, 2026-11-09): red until half the messages are found, orange
   from halfway, green when all are. journey.js sets ir-hunt-mid or ir-hunt-done on <html>.
   --ir-hunt-ink is for the dark tracker, card and footers; --ir-hunt-deep for text on a light ground. */
html{--ir-hunt-ink:#FF6B61;--ir-hunt-deep:#B42318}
html.ir-hunt-mid{--ir-hunt-ink:#FFA23A;--ir-hunt-deep:#B54708}
html.ir-hunt-done{--ir-hunt-ink:#42D97B;--ir-hunt-deep:#067647}
[data-hunt-foot]{color:var(--ir-hunt-ink)}

/* The hunt tracker and message card on pages other than the homepage (which draws its own).
   Both sit on the left edge with their bottom 28px above the Display tab (themes.css puts it at
   50% + 34px), so the open card grows upward and nothing floats over its text. */
.ir-hunt-pill{position:fixed;left:0;top:auto;bottom:calc(50% - 6px);z-index:30;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px 0 12px;border:2px solid var(--ir-hunt-ink);border-left:0;border-radius:0 16px 16px 0;background:#0F1113;color:var(--ir-hunt-ink);font-family:inherit;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.35);transition:padding .25s ease}
.ir-hunt-pill:hover,.ir-hunt-pill:focus-visible{padding-left:16px}
.ir-hunt-pill .ir-hl{display:inline-block;max-width:0;overflow:hidden;transition:max-width .3s ease}
.ir-hunt-pill:hover .ir-hl,.ir-hunt-pill:focus-visible .ir-hl{max-width:120px}
.ir-hunt-pill::before{content:"";width:18px;height:18px;background:url(/assets/home/gear-ink.svg) center/contain no-repeat;animation:ir-hunt-turn 8s linear infinite}
.ir-hunt-card{position:fixed;left:16px;top:auto;bottom:calc(50% - 6px);z-index:31;box-sizing:border-box;width:min(380px,calc(100vw - 32px));max-height:calc(50% - 10px);overflow-y:auto;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:20px 22px;border:2px solid var(--ir-hunt-ink);border-radius:22px;background:#0F1113;color:#FFFFFF;box-shadow:0 14px 48px rgba(0,0,0,.4);animation:ir-hunt-in .38s cubic-bezier(.2,.8,.2,1)}
.ir-hunt-pill[hidden],.ir-hunt-card[hidden]{display:none}
.ir-hunt-eyebrow{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--ir-hunt-ink)}
.ir-hunt-eyebrow::before{content:"";width:18px;height:18px;background:url(/assets/home/gear-ink.svg) center/contain no-repeat}
.ir-hunt-text{margin:0;font-size:20px;font-weight:800;letter-spacing:-.02em;line-height:1.2}
.ir-hunt-next{margin:0;font-size:14px;font-weight:600;line-height:1.45;color:var(--ir-hunt-ink)}
.ir-hunt-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.ir-hunt-fine{margin:2px 0 0;font-size:12px;line-height:1.4;color:rgba(255,255,255,.78)}.ir-hunt-fine a{color:inherit}
.ir-hunt-go,.ir-hunt-close{display:inline-flex;align-items:center;min-height:44px;border-radius:980px;font-family:inherit;font-size:14px;text-decoration:none;cursor:pointer}
.ir-hunt-go{padding:0 20px;background:#5CF2C4;color:#06231D;font-weight:700}
.ir-hunt-go:hover{background:#8AF7D6;color:#06231D}
.ir-hunt-close{padding:0 18px;border:1px solid #6E6E73;background:transparent;color:#FFFFFF;font-weight:600}
.ir-hunt-pill:focus-visible,.ir-hunt-go:focus-visible,.ir-hunt-close:focus-visible{outline:2px solid #5CF2C4;outline-offset:3px}
/* All eight found: the tracker's gear turns gold (the star reward's colour); the words turn green with the rest. */
.ir-hunted .ir-hunt-pill::before,.ir-hunted .ir-hunt-eyebrow::before{background-image:url(/assets/home/gear-solid-gold.svg)}
.ir-find-pop.ir-find-text{color:#C98F00}
@keyframes ir-hunt-in{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:none}}
@keyframes ir-hunt-up{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
/* Phone (the Display tab's own breakpoint): the tab shows only the gear and the count. The Display and Shop tabs sit at 38vh - 52px
   to 38vh + 30px, so the card opens just under them, high on the screen and above the chat button. */
@media (max-width:640px){.ir-hunt-card{left:16px;right:16px;top:calc(38vh + 40px);bottom:auto;width:auto;max-height:calc(62vh - 132px);animation-name:ir-hunt-up}.ir-hunt-pill{top:38vh;bottom:auto;padding:0 10px 0 9px;font-size:12px;gap:6px}.ir-hunt-pill .ir-hl{display:none}}
@keyframes ir-hunt-turn{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.ir-find-pop,.ir-hunting .ir-find-text,.ir-hunt-pill::before,.ir-hunt-card{animation:none}}

@media (max-width:600px){.ir-hunt-card{padding:12px 14px;border-radius:16px;gap:5px}.ir-hunt-text{font-size:16px;line-height:1.25}.ir-hunt-next{font-size:12.5px;line-height:1.35}.ir-hunt-card .ir-hunt-go,.ir-hunt-card .ir-hunt-close{min-height:38px}}
