/* zoneofgods.com: what every page shares (nav, buttons, footer, page heads, the changelog and the help list).
   Each page keeps its own extras inline. */
@font-face { font-family: "Rock Salt"; src: url("/rocksalt.woff2") format("woff2"); font-display: swap; }
:root {
  --bg: #07060a; --bg2: #0d0b10; --card: #121016; --line: rgba(217, 164, 65, 0.16);
  --text: #ece6d8; --muted: #9b9384; --gold: #d9a441; --gold-hi: #f6d98b; --gold-lo: #8a5f1c;
  --discord: #5865f2;
  --brush: "Rock Salt", "Marker Felt", cursive;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--gold-hi); text-decoration-color: rgba(246, 217, 139, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold-hi); }
code { font: 0.88em var(--mono); background: rgba(217, 164, 65, 0.09); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; color: var(--gold-hi); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
svg.i { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* things come in as they reach the screen: up and into focus, one after another */
.js [data-in] { opacity: 0; transform: translateY(28px); filter: blur(6px);
                transition: opacity 0.9s cubic-bezier(.2, .7, .2, 1), transform 0.9s cubic-bezier(.2, .7, .2, 1), filter 0.9s;
                transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-in].in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-in] { opacity: 1; transform: none; filter: none; transition: none; }
}

/* the name, painted small */
.brand { font: 400 17px/1 var(--brush); color: #fff3d6; text-decoration: none; white-space: nowrap; letter-spacing: 0.02em;
         text-shadow: 0 0 6px rgba(246, 217, 139, 0.8), 0 0 18px rgba(217, 164, 65, 0.6); }
.brand:hover { color: #fff; }

/* nav: no bar, only the things on it; the logo in the middle, a shade behind them once the page moves under */
.top { position: fixed; inset: 0 0 auto; z-index: 10; pointer-events: none; }
.top::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(7, 6, 10, 0.78), rgba(7, 6, 10, 0));
               animation: shade linear both; animation-timeline: scroll(); animation-range: 0 160px; }
@keyframes shade { from { opacity: 0; } }
.top .wrap { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; max-width: none; padding: 0 40px; }
.top .side { display: flex; align-items: center; gap: 30px; pointer-events: auto; }
.top .side.end { justify-content: flex-end; gap: 22px; }
.top .links { display: flex; gap: 26px; }
.top .links a { color: rgba(236, 230, 216, 0.62); text-decoration: none; font: 500 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
                transition: color 0.25s; }
.top .links a:hover, .top .links a[aria-current] { color: var(--text); }
.top .icon-link { color: rgba(236, 230, 216, 0.62); display: grid; place-items: center; transition: color 0.25s; }
.top .icon-link:hover { color: #aab1ff; }
.top .icon-link[href="/me/"]:hover { color: var(--gold-hi); }
.top .mark { pointer-events: auto; display: block; width: 46px; }
.top .mark img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 10px rgba(217, 164, 65, 0.35)); }

/* buttons: cut corners, an icon block, a shine that sweeps across */
.btn { --cut: 14px; display: inline-block; text-decoration: none; color: inherit; transition: transform 0.18s, filter 0.25s;
       filter: drop-shadow(0 10px 28px var(--glow, rgba(217, 164, 65, 0.45))); }
.btn .face { position: relative; display: flex; align-items: stretch; height: 64px; overflow: hidden;
             clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.btn .ico { display: grid; place-items: center; width: 64px; background: rgba(0, 0, 0, 0.16); border-right: 1px solid rgba(0, 0, 0, 0.22); }
.btn .ico svg { width: 26px; height: 26px; fill: currentColor; }
.btn .txt { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 30px 0 20px;
            font: 800 15px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.btn small { font: 500 11px/1 var(--mono); letter-spacing: 0.04em; text-transform: none; opacity: 0.78; }
.btn .face::after { content: ""; position: absolute; inset: -20% auto -20% -60%; width: 40%; transform: skewX(-20deg);
                    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); animation: shine 5s 2.5s infinite; }
.btn:hover { transform: translateY(-2px); filter: drop-shadow(0 14px 34px var(--glow-hi, rgba(217, 164, 65, 0.75))); }
.btn:hover .face::after { animation: shine 0.8s; }
.btn:active { transform: translateY(0); }
@keyframes shine { 0% { left: -60%; } 18%, 100% { left: 130%; } }
.btn.gold .face { color: #1d1405; background: linear-gradient(180deg, #ffeab0 0%, #ecb957 45%, #c48a2a 100%);
                  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -3px 0 rgba(90, 55, 10, 0.35); }
.btn.discord { --glow: rgba(88, 101, 242, 0.5); --glow-hi: rgba(110, 122, 255, 0.85); }
.btn.discord .face { color: #fff; background: linear-gradient(180deg, #8c96ff 0%, #5865f2 50%, #3f49c9 100%);
                     box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(20, 24, 90, 0.4); }

/* page heads (Updates, Help) */
.page-head { padding-top: 150px; padding-bottom: 40px; text-align: center; position: relative; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1;
                     background: radial-gradient(50% 80% at 50% 0%, rgba(217, 164, 65, 0.22), rgba(7, 6, 10, 0) 70%); }
.kicker { font: 500 12px/1 var(--mono); letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; margin: 0 0 18px; }
.painted-head { font: 400 clamp(38px, 6vw, 68px)/1.25 var(--brush); color: #fff6e2; margin: 0; transform: rotate(-3deg);
                -webkit-text-stroke: 2px #fff6e2; paint-order: stroke fill;
                text-shadow: 0 0 8px rgba(255, 225, 160, 0.9), 0 0 26px rgba(236, 170, 70, 0.75), 0 0 70px rgba(217, 140, 40, 0.55); }
.page-head p.sub { color: var(--muted); max-width: 34em; margin: 26px auto 0; }
main.page { padding-top: 30px; padding-bottom: 110px; }

/* the changelog */
.release { display: grid; grid-template-columns: 210px 1fr; gap: 36px; padding: 40px 0; border-top: 1px solid var(--line); }
.release:first-child { border-top: 0; }
.release .when { position: sticky; top: 96px; align-self: start; }
.release .ver { display: inline-block; font: 600 13px/1 var(--mono); letter-spacing: 0.12em; color: #1d1405; background: var(--gold);
                padding: 7px 10px; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.release time { display: block; margin-top: 12px; font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: 0.08em; }
.release h2 { margin: 0 0 18px; font: 700 26px/1.25 var(--sans); }
.release .group { margin: 0 0 18px; }
.release .group h3 { margin: 0 0 8px; }
.tag { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 8px; border-radius: 3px; }
.tag.new { color: var(--gold-hi); background: rgba(217, 164, 65, 0.14); border: 1px solid rgba(217, 164, 65, 0.4); }
.tag.fixed { color: #8be0c3; background: rgba(92, 200, 168, 0.12); border: 1px solid rgba(92, 200, 168, 0.4); }
.tag.changed { color: #f3a77e; background: rgba(224, 122, 69, 0.12); border: 1px solid rgba(224, 122, 69, 0.4); }
.release ul { margin: 0; padding-left: 1.2em; color: #d3ccbc; }
.release li { margin: 5px 0; }
.release li::marker { color: var(--gold); }

/* help */
.faq { max-width: 820px; margin: 0 auto; }
.faq h2 { font: 600 13px/1 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 46px 0 16px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; }
summary { cursor: pointer; position: relative; padding: 18px 56px 18px 22px; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 20px/1 var(--mono); color: var(--gold); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 22px 20px; color: #cfc8b8; }
details > div p { margin: 0 0 10px; }
details ul { margin: 0; padding-left: 1.2em; }
details li { margin: 6px 0; }
.ask { margin: 56px auto 0; max-width: 820px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
       padding: 26px 28px; border: 1px solid rgba(88, 101, 242, 0.45); border-radius: 14px;
       background: linear-gradient(120deg, rgba(88, 101, 242, 0.16), rgba(88, 101, 242, 0.03)); }
.ask p { margin: 0; font-size: 18px; }

/* footer */
.foot { border-top: 1px solid var(--line); background: linear-gradient(var(--bg), #050407); color: var(--muted); font-size: 14px; }
.foot .bar a { color: var(--muted); text-decoration: none; }
.foot .bar a:hover { color: #c3c8ff; }
.foot .bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px 26px; font: 12px/1.4 var(--mono); }

@media (max-width: 900px) {
  .top .links { display: none; }
  .top .wrap { height: 68px; padding: 0 24px; }
  .release { grid-template-columns: 1fr; gap: 14px; }
  .release .when { position: static; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .top .wrap { padding: 0 16px; }
  .top .mark { width: 44px; }
  .foot .bar { padding: 18px 16px 24px; }
}
