/* Site-wide additions on top of menos.css, which stays frozen. Linked after it on every page. */

@font-face {
  font-family: 'Jersey 15';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(/assets/fonts/jersey-15-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jersey 15';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(/assets/fonts/jersey-15-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(/assets/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(/assets/fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(/assets/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(/assets/fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root { color-scheme: dark; }

.site-footer .legal a { text-decoration: underline; }

/* Live Discord count next to Join the Discord (assets/discord.js fills it, hidden until it has a number). */
.discord-online { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 15px; }
.discord-online::before { content: ""; width: 8px; height: 8px; background: var(--moss); box-shadow: 0 0 0 2px var(--night); }
.discord-online[hidden] { display: none; }

/* ── Site 3.0 chrome: Features disclosure, pause toggle */

.nav-features { position: relative; }
.nav-features > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: var(--s2);
  font-family: var(--font-display); font-size: 22px; line-height: 1;
  color: var(--ink-2); padding: var(--s2) 0; white-space: nowrap;
}
.nav-features > summary::-webkit-details-marker { display: none; }
.nav-features > summary::after {
  content: ""; width: 10px; height: 10px; background: var(--torch);
  clip-path: polygon(0 25%, 100% 25%, 100% 50%, 50% 50%, 50% 75%, 0 75%);
  transform: rotate(0deg);
}
.nav-features[open] > summary::after { transform: rotate(180deg); }
.nav-features > summary:hover, .nav-features[open] > summary { color: var(--torch); }
.nav-menu {
  display: flex; flex-direction: column; gap: var(--s1);
  padding: var(--s2) 0 var(--s2) var(--s3);
}
@media (min-width: 768px) {
  .nav-menu {
    position: absolute; top: 100%; left: calc(var(--s4) * -1); min-width: 200px;
    padding: var(--s3) var(--s4); background: var(--panel-hi);
    box-shadow: inset 0 0 0 2px var(--ink-3), 0 6px 0 rgba(0, 0, 0, 0.45);
  }
}

/* Phone: the Features menu opens inline, so the nav wraps instead of scrolling sideways. */
@media (max-width: 767px) {
  .site-nav { overflow: visible; flex-wrap: wrap; gap: var(--s1) var(--s4); }
  .nav-features[open] { flex-basis: 100%; }
}

.site-footer .pause-row { margin-top: var(--s4); }
#pause-all {
  font: inherit; font-size: 15px; color: var(--ink-2); background: transparent; cursor: pointer;
  min-height: 40px; padding: var(--s2) var(--s4); border: 0;
  box-shadow: inset 0 0 0 2px var(--ink-3);
}
#pause-all:hover { color: var(--torch); }
#pause-all[aria-pressed="true"] { color: var(--night); background: var(--ink-2); }
#pause-all[hidden] { display: none; }


/* ── Plan cards (home, pricing): the billed amount is the largest price text ── */
.tiers:not(table) { display: grid; gap: var(--s5); margin-top: var(--s6); }
.tier { display: flex; flex-direction: column; }
.tier h3 { font-size: 28px; line-height: 1; color: var(--ink); }
.tier .price-billed { display: block; margin-top: var(--s3); font-family: var(--font-display); font-size: 48px; line-height: 1; color: var(--ink); text-shadow: 3px 3px 0 var(--night); }
.tier .price-per-month { display: block; margin-top: var(--s2); font-size: 16px; color: var(--ink-2); }
.tier .price-monthly { display: block; margin-top: var(--s1); font-size: 16px; color: var(--ink-2); }
.tier .save-badge { align-self: flex-start; margin-top: var(--s3); padding: 3px 8px; font-family: var(--font-display); font-size: 18px; line-height: 1; color: var(--night); background: var(--gold); }
.tier ul.ticks { margin-top: var(--s4); }
@media (min-width: 900px) { .tiers:not(table) { grid-template-columns: repeat(3, 1fr); } }

/* ── In-world look: the admin hub's surfaces over the app's world. menos.css stays frozen; these win by order. ── */
:root {
  --night: #0f0f10; --panel: #131314; --panel-hi: #18181a; --stone: #18181a; --stone-hi: #2e2e31;
  --line: #232325; --line-2: #2e2e31; --ink: #f4f6fb; --ink-2: #a9abb5; --ink-3: #8e909a;
  --gold: #f0b424; --moss: #22c55e; --blood: #ef4444; --orange: #f97316; --r: 14px; --max: 1240px;
}
.panel, .panel-inset, .panel-gold { clip-path: none; border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; }
.panel-inset { background: var(--panel-hi); }
.panel-gold { border-color: #2d5fb0; }
.btn { font-family: var(--font-body); font-size: 17px; font-weight: 700; letter-spacing: 0; padding: 13px 22px; border: 1px solid var(--line-2); border-radius: 11px; background: transparent; box-shadow: none; transition: background .12s; }
.btn:hover { background: var(--panel-hi); transform: none; }
.btn:active { box-shadow: none; }
.btn-primary { background: var(--steel); border-color: #4c8ef7; box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset; }
.btn-primary:hover { background: #3171ee; }
.btn-gold { border-color: var(--gold); box-shadow: none; }
.btn-gold:hover { background: #f5c650; }
.tier ul.ticks.gold { color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--moss); }

.site-header { background: rgba(15, 15, 16, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: none; }
.site-header .bar { min-height: 64px; gap: var(--s4); }
.site-header .brand { display: flex; align-items: center; gap: var(--s2); margin-right: 0; font-size: 30px; letter-spacing: .14em; text-shadow: none; }
.site-header .brand:hover { color: var(--ink); }
.site-nav { gap: var(--s1); margin-right: auto; }
.site-nav a, .nav-features > summary { padding: 7px 12px; border-radius: 9px; font-family: var(--font-body); font-size: 15px; line-height: 1.4; }
.site-nav a:hover, .nav-features > summary:hover, .nav-features[open] > summary, .site-nav a[aria-current="page"] { background: var(--panel-hi); color: var(--ink); box-shadow: none; }
.nav-features > summary::after { background: var(--ink-3); }
.site-header .btn { min-height: 38px; padding: 8px 15px; border-radius: 9px; font-size: 15px; }
@media (min-width: 768px) { .nav-menu { left: 0; border: 1px solid var(--line-2); border-radius: 11px; box-shadow: 0 16px 32px rgba(0, 0, 0, .5); } }
@media (max-width: 1040px) { .site-nav > a:nth-of-type(-n+4) { display: none; } }
@media (max-width: 799px) { .site-header .chip { display: none; } }
@media (max-width: 767px) { .site-header .brand { margin-right: auto; } .site-nav { margin-right: 0; } }
.site-header .brand { white-space: nowrap; }
@media (max-width: 1279px) { .site-header .brand { font-size: 22px; letter-spacing: .08em; } }
@media (max-width: 359px) { .site-header .brand { font-size: 18px; letter-spacing: .06em; } }

main.prose { overflow-wrap: break-word; }
.site-footer { background: var(--night); border-top: 1px solid var(--line); box-shadow: none; }
details.faq { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); box-shadow: none; }
details.faq + details.faq { margin-top: var(--s2); }
table.compare th, table.compare td { border-bottom: 1px solid var(--line); }
#pause-all { border: 1px solid var(--line-2); border-radius: 9px; box-shadow: none; }

/* Sheet effects from PixelFX (MIT, /assets/art-fx/LICENSE.txt): 12 fps, stepped. */
.fx { display: inline-block; flex: none; background-repeat: no-repeat; background-size: auto 100%; image-rendering: pixelated; }
.fx.torch { --w: 20px; --n: 24; --t: 2s; width: 20px; height: 48px; margin-left: 2px; background-image: url(/assets/art-fx/torch.png?v=3); }
@keyframes sheet { to { background-position-x: calc(var(--w) * var(--n) * -1); } }
@media (prefers-reduced-motion: no-preference) { html:not(.is-paused) .fx.loop { animation: sheet var(--t, 1s) steps(var(--n)) infinite; } }

/* A finished clip over its still. Pack art only ever ships flattened like this, never as a sprite file. */
.clip { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #09090a; border: 1px solid var(--line); border-radius: var(--r); }
.clip img, .clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.clip-row figure { margin: 0; }
.clip-row figcaption { margin-top: var(--s2); text-align: center; font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--ink); }
.clip-row .clip { aspect-ratio: 8 / 5; }
@media (min-width: 768px) { .clip-row { grid-template-columns: repeat(4, 1fr); } }
