/* The Legend of Manafall: website styles (Docs/WEBSITE.md). No scripts:
   everything here is CSS. Pixel art is always shown with hard pixels. */

@font-face {
  font-family: "Manafall Pixel";
  src: url("../fonts/manafall_pixel.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #080a14;
  --bg2: #0d1020;
  --panel: #12152a;
  --panel2: #171b36;
  --line: #2b2f52;
  --text: #e9e6f4;
  --dim: #aaa6c4;
  --faint: #6f6c8c;
  --gold: #d9b861;
  --gold-hi: #fff0a0;
  --gold-lo: #6b5424;
  --mana: #68f0c0;
  --well: #4fd8b0;
  --aether: #ffae57;
  --danger: #f26659;
  --pixel: "Manafall Pixel", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img.px, .px img, .px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .pixel {
  font-family: var(--pixel);
  font-weight: normal;
  letter-spacing: 0;
  line-height: 1.15;
  -webkit-font-smoothing: none;
  font-smooth: never;
}
h2 { font-size: 32px; color: var(--gold-hi); margin: 0 0 16px; text-shadow: 3px 3px 0 #000; }
h3 { font-size: 16px; color: var(--gold); margin: 0 0 8px; }
p { margin: 0 0 14px; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--panel); padding: 8px 12px; }

/* ---- header ------------------------------------------------------------------------ */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  background: linear-gradient(#080a14f2, #080a14c0);
  border-bottom: 1px solid #ffffff10;
  backdrop-filter: blur(6px);
}
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-hi); font-family: var(--pixel); font-size: 16px; text-shadow: 2px 2px 0 #000; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.menu { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.menu a {
  font-family: var(--pixel); font-size: 16px; color: var(--dim);
  padding: 8px 12px; border: 2px solid transparent;
}
.menu a:hover, .menu a.on { color: var(--gold-hi); text-decoration: none; border-bottom-color: var(--gold); }
.menu a.cta { color: #1b1206; background: var(--gold); border: 2px solid var(--gold-hi); box-shadow: 0 0 0 2px #000, 4px 4px 0 #000; }
.menu a.cta:hover { background: var(--gold-hi); }

/* ---- buttons ----------------------------------------------------------------------- */
.btn {
  display: inline-block; font-family: var(--pixel); font-size: 16px;
  padding: 14px 24px; color: var(--text);
  background: var(--panel2); border: 2px solid var(--line);
  box-shadow: 0 0 0 2px #000, 4px 4px 0 #000;
  transition: transform .08s steps(2);
}
.btn:hover { text-decoration: none; border-color: var(--gold); transform: translate(-2px, -2px); box-shadow: 0 0 0 2px #000, 6px 6px 0 #000; }
.btn.gold { color: #1b1206; background: linear-gradient(var(--gold-hi), var(--gold)); border-color: #fff8c8; }
.btn.big { font-size: 24px; padding: 18px 32px; }
.btn small { display: block; font-family: var(--sans); font-size: 13px; opacity: .8; margin-top: 4px; }

/* ---- hero -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: min(100vh, 960px); min-height: min(100svh, 960px);
  display: grid; place-items: end center; overflow: hidden;
  background: #000 url("../img/hero.png") center 30% / cover no-repeat;
  image-rendering: pixelated;
}
.hero::before { /* night falls at the bottom */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #080a1400 35%, #080a14c8 72%, var(--bg) 100%), radial-gradient(ellipse at 50% 100%, #0000 40%, #000a 100%);
}
.motes { position: absolute; inset: 0; pointer-events: none; }
.motes i {
  position: absolute; bottom: -10px; width: 6px; height: 6px; background: var(--mana);
  box-shadow: 0 0 10px var(--mana); opacity: 0;
  animation: rise 9s steps(36) infinite;
}
.motes i:nth-child(1) { left: 22%; animation-delay: 0s; }
.motes i:nth-child(2) { left: 31%; animation-delay: 2.1s; width: 4px; height: 4px; }
.motes i:nth-child(3) { left: 38%; animation-delay: 4.6s; }
.motes i:nth-child(4) { left: 55%; animation-delay: 1.2s; width: 4px; height: 4px; background: var(--aether); box-shadow: 0 0 10px var(--aether); }
.motes i:nth-child(5) { left: 63%; animation-delay: 3.3s; }
.motes i:nth-child(6) { left: 72%; animation-delay: 5.8s; background: var(--aether); box-shadow: 0 0 10px var(--aether); }
.motes i:nth-child(7) { left: 81%; animation-delay: 7.0s; width: 4px; height: 4px; }
.motes i:nth-child(8) { left: 46%; animation-delay: 6.4s; }
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: .9; }
  80% { opacity: .6; }
  100% { transform: translateY(-70vh); opacity: 0; }
}
.hero-inner { position: relative; text-align: center; padding: 120px 16px 72px; max-width: 900px; }
.hero-inner::before { content: ""; position: absolute; inset: 80px -120px 20px; z-index: -1; background: radial-gradient(ellipse at center, #080a14b0 0%, #080a1460 45%, #080a1400 72%); }
.badge {
  display: inline-block; font-family: var(--pixel); font-size: 16px; color: var(--mana);
  border: 2px solid var(--mana); padding: 6px 12px; margin-bottom: 20px;
  background: #062a20c0; box-shadow: 0 0 18px #68f0c055, inset 0 0 12px #68f0c033;
  animation: pulse 2.4s steps(6) infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 28px #68f0c099, inset 0 0 16px #68f0c055; } }
.kicker { font-family: var(--pixel); font-size: 24px; color: var(--gold); text-shadow: 3px 3px 0 #000; margin-bottom: 4px; }
.logo {
  font-family: var(--pixel); font-size: clamp(48px, 11vw, 128px); line-height: 1;
  color: var(--gold-hi); margin: 0 0 20px;
  text-shadow: 0 4px 0 var(--gold), 0 8px 0 var(--gold-lo), 6px 14px 0 #000, 0 0 40px #ffd77a55;
}
.tagline { font-size: clamp(18px, 2.2vw, 22px); color: #f3f0ff; text-shadow: 0 2px 8px #000; max-width: 720px; margin: 0 auto 32px; }
.ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll { margin-top: 40px; font-family: var(--pixel); font-size: 16px; color: var(--dim); animation: bob 1.6s steps(2) infinite; display: inline-block; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---- news strip -------------------------------------------------------------------- */
.strip { background: linear-gradient(90deg, #1a1530, #121a2c); border-block: 2px solid #000; box-shadow: inset 0 1px 0 #ffffff12; }
.strip .wrap { display: flex; align-items: center; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.tag { font-family: var(--pixel); font-size: 16px; color: #1b1206; background: var(--gold); padding: 4px 8px; }
.strip strong { color: var(--gold-hi); }
.strip .more { margin-left: auto; font-family: var(--pixel); font-size: 16px; }

/* ---- sections ---------------------------------------------------------------------- */
section.block { padding: 96px 0; position: relative; }
section.alt { background: var(--bg2); }
.eyebrow { font-family: var(--pixel); font-size: 16px; color: var(--mana); margin-bottom: 8px; }
.lede { font-size: 20px; color: var(--dim); max-width: 760px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.frame {
  border: 2px solid #000; box-shadow: 0 0 0 2px var(--gold-lo), 0 0 0 4px #000, 12px 12px 0 #000;
  background: #000; display: block; width: 100%; height: auto;
}

/* ---- factions ---------------------------------------------------------------------- */
.factions { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 40px; border: 2px solid #000; box-shadow: 12px 12px 0 #000; }
.faction { position: relative; min-height: 560px; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.faction .art { position: absolute; inset: 0; background-size: cover; background-position: center; image-rendering: pixelated; transition: transform 1.2s; }
.faction:hover .art { transform: scale(1.04); }
.faction::after { content: ""; position: absolute; inset: 0; }
.faction > :not(.art) { position: relative; z-index: 1; }
.faction.forge .art { background-image: url("../img/aetherforge.png"); }
.faction.forge::after { background: linear-gradient(180deg, #1a0e0400 20%, #1a0e04e8 62%, #120a03); }
.faction.well .art { background-image: url("../img/hero.png"); background-position: 8% 70%; background-size: 200% auto; }
.faction.well::after { background: linear-gradient(180deg, #03181200 20%, #031812e8 62%, #021310); }
.faction.forge { border-right: 2px solid #000; }
.crest { font-family: var(--pixel); font-size: 16px; margin-bottom: 6px; }
.forge .crest, .forge h3 { color: var(--aether); }
.well .crest, .well h3 { color: var(--well); }
.faction h3 { font-size: 48px; text-shadow: 4px 4px 0 #000; margin-bottom: 12px; }
.faction .motto { font-family: var(--pixel); font-size: 24px; color: #fff; margin-bottom: 14px; text-shadow: 3px 3px 0 #000; }
.faction ul { list-style: none; padding: 0; margin: 0 0 4px; }
.faction li { padding-left: 22px; position: relative; margin-bottom: 6px; color: #f0ecff; }
.faction li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; }
.forge li::before { background: var(--aether); }
.well li::before { background: var(--well); }
.versus {
  position: absolute; left: 50%; top: 48px; transform: translateX(-50%); z-index: 3;
  font-family: var(--pixel); font-size: 24px; color: var(--gold-hi); background: #000;
  border: 2px solid var(--gold); padding: 10px 14px; box-shadow: 0 0 24px #000;
}
.factions-wrap { position: relative; }
.choose { margin-top: 28px; text-align: center; color: var(--dim); font-size: 18px; }

/* ---- friends ----------------------------------------------------------------------- */
.friends { display: flex; gap: 20px; margin-top: 20px; }
.friend { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 2px solid #000; box-shadow: 0 0 0 2px var(--line); padding: 12px 16px 12px 12px; flex: 1; }
.friend img { width: 96px; height: 96px; background: #0b0d1c; border: 2px solid var(--line); }
.friend b { font-family: var(--pixel); font-size: 16px; display: block; }
.friend.f-forge b { color: var(--aether); }
.friend.f-well b { color: var(--well); }
.friend span { color: var(--dim); font-size: 15px; }

/* ---- features ---------------------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.card {
  background: linear-gradient(180deg, var(--panel2), var(--panel)); padding: 28px;
  border: 2px solid #000; box-shadow: 0 0 0 2px var(--line), 8px 8px 0 #000;
  transition: box-shadow .1s steps(2), transform .1s steps(2);
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 0 0 0 2px var(--gold-lo), 10px 10px 0 #000; }
.card .ico { width: 80px; height: 80px; margin-bottom: 14px; background: #0b0d1c; border: 2px solid var(--line); display: grid; place-items: center; }
.card .ico img { width: 80px; height: 80px; }
.card p { color: var(--dim); margin: 0; }
.stat { font-family: var(--pixel); font-size: 32px; color: var(--gold-hi); display: block; margin-bottom: 4px; text-shadow: 3px 3px 0 #000; }

/* ---- gallery ----------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 36px; }
.gallery a { grid-column: span 2; position: relative; display: block; }
.gallery a:nth-child(1), .gallery a:nth-child(2) { grid-column: span 3; }
.gallery img { width: 100%; height: auto; display: block; border: 2px solid #000; box-shadow: 0 0 0 2px var(--line); }
.gallery a:hover img { box-shadow: 0 0 0 2px var(--gold); }
.gallery span { position: absolute; left: 10px; bottom: 10px; right: 10px; font-size: 14px; background: #000c; padding: 4px 8px; opacity: 0; transition: opacity .15s; }
.gallery a:hover span { opacity: 1; }
.lightbox { display: none; position: fixed; inset: 0; z-index: 50; background: #000e; padding: 24px; place-items: center; }
.lightbox:target { display: grid; }
.lightbox img { max-width: min(1920px, 100%); max-height: calc(100vh - 110px); width: auto; height: auto; border: 2px solid var(--gold-lo); }
.lightbox figcaption { color: var(--dim); margin-top: 10px; text-align: center; }
.lightbox .close { position: absolute; inset: 0; }
.lightbox figure { position: relative; margin: 0; pointer-events: none; text-align: center; }
.lightbox .x { position: absolute; top: 16px; right: 20px; font-family: var(--pixel); font-size: 24px; color: var(--gold-hi); z-index: 2; }

/* ---- beta -------------------------------------------------------------------------- */
.beta { background: radial-gradient(ellipse at 50% 0%, #1b3a33 0%, var(--bg) 60%); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; counter-reset: s; }
.steps div { background: var(--panel); border: 2px solid #000; box-shadow: 0 0 0 2px var(--line); padding: 20px; }
.steps div::before { counter-increment: s; content: counter(s); font-family: var(--pixel); font-size: 32px; color: var(--mana); display: block; margin-bottom: 6px; }
.steps p { color: var(--dim); margin: 0; }
form.signup {
  max-width: 640px; margin: 0 auto; background: var(--panel); padding: 32px;
  border: 2px solid #000; box-shadow: 0 0 0 2px var(--gold-lo), 12px 12px 0 #000;
}
label { display: block; font-family: var(--pixel); font-size: 16px; color: var(--gold); margin: 14px 0 6px; }
input[type=email], input[type=text], textarea {
  width: 100%; font: 17px var(--sans); color: var(--text); background: #0a0c18;
  border: 2px solid var(--line); padding: 12px; outline: none;
}
input:focus, textarea:focus { border-color: var(--gold); }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--sans); color: var(--dim); font-size: 15px; margin-top: 16px; }
.check input { margin-top: 5px; accent-color: var(--gold); }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.form-actions { margin-top: 24px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.note { font-size: 14px; color: var(--faint); }
.msg { padding: 14px 16px; margin-bottom: 18px; border: 2px solid; }
.msg.err { border-color: var(--danger); color: #ffd6d2; background: #2a0f0f; }
.msg.ok { border-color: var(--mana); color: #d8fff0; background: #072a20; }

/* ---- patch notes ------------------------------------------------------------------- */
.page-head { padding: 140px 0 48px; background: linear-gradient(180deg, #000 0%, var(--bg2) 100%), url("../img/aetherforge.png") center / cover; position: relative; }
.page-head.art { background: linear-gradient(180deg, #080a14b0, var(--bg) 100%), url("../img/aetherforge.png") center 40% / cover; image-rendering: pixelated; }
.page-head h1 { font-size: clamp(32px, 6vw, 64px); color: var(--gold-hi); margin: 0; text-shadow: 4px 4px 0 #000; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 32px; margin-bottom: 28px; position: relative; }
.timeline .ver { font-family: var(--pixel); font-size: 16px; color: #1b1206; background: var(--gold); padding: 6px 0; text-align: center; height: max-content; border: 2px solid #000; }
.timeline li::after { content: ""; position: absolute; left: 87px; top: 10px; width: 12px; height: 12px; background: var(--mana); border: 2px solid #000; }
.timeline .card { margin: 0; display: block; color: var(--text); }
.timeline .card:hover { text-decoration: none; }
.timeline h3 { font-size: 24px; color: var(--gold-hi); }
.timeline time { color: var(--faint); font-size: 14px; display: block; margin-bottom: 8px; }
.notes-layout { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: start; }
article.patch { background: var(--panel); border: 2px solid #000; box-shadow: 0 0 0 2px var(--line), 12px 12px 0 #000; padding: 40px; }
article.patch h2 { font-size: 24px; color: var(--gold); margin-top: 32px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
article.patch ul { padding-left: 0; list-style: none; margin: 0; }
article.patch li { position: relative; padding-left: 24px; margin-bottom: 10px; }
article.patch li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; background: var(--mana); }
article.patch strong { color: var(--gold-hi); font-weight: 600; }
aside.versions { position: sticky; top: 88px; background: var(--panel); border: 2px solid #000; box-shadow: 0 0 0 2px var(--line); padding: 20px; }
aside.versions a { display: block; padding: 6px 0; color: var(--dim); border-bottom: 1px solid #ffffff0c; }
aside.versions a.on { color: var(--gold-hi); }
aside.versions b { font-family: var(--pixel); font-size: 16px; font-weight: normal; margin-right: 8px; }

/* ---- download ---------------------------------------------------------------------- */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.dl .panel { background: var(--panel); border: 2px solid #000; box-shadow: 0 0 0 2px var(--line), 12px 12px 0 #000; padding: 32px; }
.dl ol { padding-left: 20px; color: var(--dim); }
.dl ol li { margin-bottom: 10px; }
.dl ol b { color: var(--text); }
.req { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.req td { padding: 8px 0; border-bottom: 1px solid #ffffff10; }
.req td:first-child { color: var(--faint); width: 40%; }
details { background: var(--panel); border: 2px solid #000; box-shadow: 0 0 0 2px var(--line); padding: 14px 18px; margin-bottom: 12px; }
summary { cursor: pointer; font-family: var(--pixel); font-size: 16px; color: var(--gold); }
details p { margin: 10px 0 0; color: var(--dim); }

/* ---- footer ------------------------------------------------------------------------ */
footer { border-top: 2px solid #000; background: #05060d; padding: 48px 0; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer .foot-title { color: var(--gold); font-size: 16px; margin-bottom: 6px; }
footer nav a { color: var(--dim); margin-right: 18px; }

/* ---- small screens ----------------------------------------------------------------- */
@media (max-width: 900px) {
  .split, .factions, .dl, .notes-layout { grid-template-columns: 1fr; }
  .faction.forge { border-right: 0; border-bottom: 2px solid #000; }
  .faction { min-height: 440px; padding: 28px; }
  .versus { top: auto; bottom: auto; position: relative; left: auto; transform: none; display: block; text-align: center; margin: -1px 0; box-shadow: none; }
  .features, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery a, .gallery a:nth-child(1), .gallery a:nth-child(2) { grid-column: auto; }
  .friends { flex-direction: column; }
  aside.versions { position: static; }
  .timeline::before, .timeline li::after { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .timeline .ver { width: max-content; padding: 6px 10px; }
  section.block { padding: 64px 0; }
  .menu a { padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.lede.mid { margin: 0 auto; }
@media (max-width: 900px) { .top { position: absolute; } }
.redeem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-bottom: 24px; }
.redeem-grid form.signup { max-width: none; margin: 0; }
@media (max-width: 900px) { .redeem-grid { grid-template-columns: 1fr; } }
.signup.narrow { padding: 0; background: none; border: 0; box-shadow: none; margin-bottom: 16px; }
form.inline { display: inline; }
.good { color: var(--mana); }
.discord-line { margin-top: 32px; color: var(--dim); }
.redeem-grid h3, form.signup h3 { margin-bottom: 12px; }

/* ---- account area (overview, Market, wallet, security) ------------------------------ */
input[type=password], select {
  width: 100%; font: 17px var(--sans); color: var(--text); background: #0a0c18;
  border: 2px solid var(--line); padding: 12px; outline: none;
}
select { width: auto; min-width: 96px; }
select:focus { border-color: var(--gold); }
.btn.small { font-size: 14px; padding: 8px 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 0 0 0 2px #000, 4px 4px 0 #000; }
.gold { color: var(--gold-hi); }
section.block.acct-block { padding: 48px 0 96px; }
.acct { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.acct-nav {
  position: sticky; top: 80px; background: var(--panel); border: 2px solid #000;
  box-shadow: 0 0 0 2px var(--line), 8px 8px 0 #000; padding: 16px;
}
.acct-who { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #ffffff14; margin-bottom: 8px; }
.acct-who b { display: block; overflow-wrap: anywhere; }
.acct-who span { font-size: 14px; color: var(--mana); }
.acct-nav nav a { display: block; padding: 8px 10px; color: var(--dim); font-family: var(--pixel); font-size: 16px; border-left: 3px solid transparent; }
.acct-nav nav a:hover { color: var(--text); text-decoration: none; background: #ffffff08; }
.acct-nav nav a.on { color: var(--gold-hi); border-left-color: var(--gold); background: #d9b86112; }
.acct-nav form { margin-top: 12px; }
.acct-main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.acct-main .msg { margin: 0; }
.panel { background: var(--panel); border: 2px solid #000; box-shadow: 0 0 0 2px var(--line), 8px 8px 0 #000; padding: 24px; }
.panel.warn { box-shadow: 0 0 0 2px var(--gold-lo), 8px 8px 0 #000; }
.panel.fair { box-shadow: 0 0 0 2px #1d5a48, 8px 8px 0 #000; }
.panel p:last-child { margin-bottom: 0; }
.panel .form-actions { margin-top: 16px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--panel2); border: 2px solid #000; box-shadow: 0 0 0 2px var(--line); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.tile.wide { grid-column: span 2; color: var(--dim); font-size: 15px; }
.tile-label { font-family: var(--pixel); font-size: 14px; color: var(--faint); text-transform: uppercase; }
.tile-value { font-family: var(--pixel); font-size: 28px; line-height: 1.2; }
.tile-value small { font-size: 16px; color: var(--dim); }
.tile-links { font-size: 14px; color: var(--dim); }
.tag { display: inline-block; }
.acct-main .tag, .shop-tags .tag { font-size: 12px; padding: 2px 6px; background: var(--line); color: var(--text); }
.acct-main .tag.ok, .shop-tags .tag.ok { background: #0f4a3a; color: #d8fff0; }
.acct-main .tag.gold, .shop-tags .tag.gold { background: var(--gold); color: #1b1206; }
.game-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.game-info { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.access { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.access li.yes::before { content: "\2713  "; color: var(--mana); }
.access li.no { color: var(--faint); }
.access li.no::before { content: "\2715  "; }
.history { width: 100%; border-collapse: collapse; font-size: 15px; }
.history th { text-align: left; font-family: var(--pixel); font-weight: normal; color: var(--faint); font-size: 14px; padding: 6px 8px 6px 0; }
.history td { padding: 8px 8px 8px 0; border-bottom: 1px solid #ffffff10; vertical-align: top; }
.history .amount { text-align: right; white-space: nowrap; font-family: var(--pixel); }
.history .plus { color: var(--mana); }
.history .minus { color: var(--aether); }
ul.links, ul.ticks { padding-left: 20px; margin: 0; color: var(--dim); }
ul.links li, ul.ticks li { margin: 4px 0; }
ul.ticks { list-style: none; padding: 0; }
ul.ticks li::before { content: "\2713  "; color: var(--mana); }
.signin-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.signin-grid form.signup { max-width: none; margin: 0; }
.signin-grid .side { display: flex; flex-direction: column; gap: 24px; }
.balance-bar { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; background: var(--panel2); border: 2px solid #000; box-shadow: 0 0 0 2px var(--gold-lo); padding: 12px 16px; }
.balance-bar span { color: var(--faint); }
.balance-bar b { font-family: var(--pixel); font-size: 22px; font-weight: normal; }
.balance-bar a { margin-left: auto; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cats a { font-family: var(--pixel); font-size: 14px; padding: 6px 10px; color: var(--dim); background: var(--panel); border: 2px solid var(--line); }
.cats a:hover { color: var(--text); text-decoration: none; border-color: var(--gold-lo); }
.cats a.on { color: #1b1206; background: var(--gold); border-color: var(--gold-hi); }
.cat-title { margin: 8px 0 0; }
.cat-title + p { margin: 0; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.shop-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; color: var(--text);
  background: var(--panel); border: 2px solid #000; box-shadow: 0 0 0 2px var(--line), 6px 6px 0 #000;
  transition: transform .08s steps(2);
}
.shop-card:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: 0 0 0 2px var(--gold), 8px 8px 0 #000; }
.shop-card.soon { opacity: .7; }
.shop-icon { display: grid; place-items: center; width: 48px; height: 48px; background: #0a0c18; border: 2px solid var(--line); }
.shop-icon.big { width: 72px; height: 72px; flex: none; }
.shop-name { font-family: var(--pixel); font-size: 18px; color: var(--gold-hi); line-height: 1.2; }
.shop-tags { display: flex; gap: 4px; flex-wrap: wrap; min-height: 4px; }
.shop-summary { font-size: 15px; color: var(--dim); flex: 1; }
.shop-price { font-family: var(--pixel); font-size: 20px; color: var(--gold-hi); }
.shop-price small { font-size: 13px; color: var(--dim); }
.crumbs { margin: 0; font-size: 15px; color: var(--faint); }
.item-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.item-head { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.item-head h2 { margin: 0; font-size: 26px; }
.item-head > div { display: flex; flex-direction: column; gap: 4px; }
.item-main h3 { margin-top: 20px; }
.buy-box { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 80px; box-shadow: 0 0 0 2px var(--gold-lo), 8px 8px 0 #000; }
.buy-box label { margin: 8px 0 0; }
.buy-box .btn { margin-top: 8px; text-align: center; }
@media (max-width: 900px) {
  .acct, .signin-grid, .item-layout { grid-template-columns: 1fr; }
  .acct-nav, .buy-box { position: static; }
  .tiles { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  section.block.acct-block { padding: 32px 0 64px; }
}
@media (max-width: 600px) { .page-head { padding-top: 210px; } } /* the menu wraps to four lines */
