
:root { --bg: #0a0b0d; --panel: #121418; --panel2: #181b20; --line: #262a31; --line2: #3a3f48; --ink: #eceef1; --dim: #9ba2ac;
  --silver: #c9ced6; --bright: #f4f6f9; --steel: #a9bccd;
  --metal: linear-gradient(180deg, #f6f8fa 0%, #c9ced6 46%, #8d939c 54%, #d9dde3 100%);
  --display: Cinzel, "Trajan Pro", Georgia, serif; --body: Spectral, Georgia, "Times New Roman", serif; color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse at 50% -20%, #1a1d23 0%, var(--bg) 55%) fixed, var(--bg); color: var(--ink); font: 18px/1.6 var(--body); }
a { color: var(--steel); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(10,11,13,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand b { font: 600 18px/1 var(--display); letter-spacing: .16em; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--dim); text-decoration: none; font: 600 13px var(--display); letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border-radius: 4px; }
.nav a:hover, .nav a[aria-current] { color: var(--bright); background: var(--panel2); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: .02em; }
.eyebrow { font: 600 12px var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--silver); }
/* the logo's rule: a line with a diamond in the middle */
.rule { display: flex; align-items: center; gap: 12px; color: var(--line2); margin: 0 auto; max-width: 420px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--silver), transparent); }
.rule i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--metal); box-shadow: 0 0 10px rgba(201,206,214,.35); }
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 14px var(--display); letter-spacing: .14em; text-transform: uppercase; padding: 14px 24px; border-radius: 4px; text-decoration: none;
  background: var(--metal); color: #121418; border: 1px solid #f4f6f9; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 12px 30px -12px rgba(201,206,214,.5); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--silver); border-color: var(--line2); box-shadow: none; }
.btn.ghost:hover { color: var(--bright); border-color: var(--silver); }
.btn:focus-visible, .nav a:focus-visible, .card:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
/* the glade: silver mist and a far tree line behind the heroes */
.glade { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.glade::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(201,206,214,.10), transparent 60%); pointer-events: none; }
.glade .trees { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 38%; pointer-events: none; opacity: .9; }
.crest { position: relative; text-align: center; padding-block: 48px 64px; display: grid; justify-items: center; gap: 22px; }
.crest img { width: min(520px, 88vw); filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); }
.crest p { margin: 0; color: var(--silver); font-size: 21px; font-style: italic; }
.crest .acts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; align-items: center; }
.hero h2 { font-size: clamp(34px, 5vw, 54px); margin: 10px 0 14px; }
.hero p { color: var(--silver); max-width: 46ch; margin: 0 0 22px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { font: 500 14px var(--body); color: var(--silver); padding: 3px 11px; border-radius: 3px; background: rgba(18,20,24,.85); border: 1px solid var(--line2); }
.shot { border-radius: 6px; overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 0 0 4px rgba(18,20,24,.9), 0 0 0 5px var(--line2), 0 30px 80px -30px #000; background: #03060c; }
.shot img { width: 100%; aspect-ratio: 512 / 286; object-fit: cover; }
section.block { padding-block: 56px; }
section.block + section.block { padding-top: 8px; }
.block h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 8px 0 22px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--line2); }
.card img { width: 100%; aspect-ratio: 512 / 286; object-fit: cover; background: #03060c; }
.card .body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.card h3 { font-size: 20px; }
.card p { margin: 0; color: var(--dim); font-size: 16px; }
.card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 14px; color: var(--dim); }
.card .free { font: 600 12px var(--display); letter-spacing: .14em; color: var(--silver); }
.card.soon { border-style: dashed; justify-content: center; padding: 24px; min-height: 240px; background: transparent; text-align: center; }
.card.soon h3 { font-size: 20px; margin-top: 6px; } .card.soon p { margin-top: 6px; }
.game-hero { position: relative; padding-block: 40px 28px; }
.game-hero h1 { font-size: clamp(36px, 5.5vw, 56px); margin: 8px 0 8px; }
.game-hero .by { color: var(--dim); margin: 0 0 20px; font-style: italic; }
.game-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 36px; padding-block: 12px 64px; }
.game-grid .main { min-width: 0; display: grid; gap: 28px; }
.game-grid .main h2 { font-size: 24px; margin-bottom: 12px; }
.game-grid .main p { margin: 0 0 12px; color: var(--silver); max-width: 66ch; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.shots img { border-radius: 4px; border: 1px solid var(--line); aspect-ratio: 512 / 286; object-fit: cover; }
.side { min-width: 0; align-self: start; position: sticky; top: 92px; display: grid; gap: 16px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.side .btn { justify-content: center; }
dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 16px; }
dt { color: var(--dim); } dd { margin: 0; }
table.keys { border-collapse: collapse; width: 100%; font-size: 16px; }
table.keys td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.keys td:first-child { color: var(--dim); width: 38%; padding-right: 14px; }
.credits { color: var(--dim); font-size: 16px; font-style: italic; }
.prose { max-width: 70ch; padding-block: 56px 72px; }
.prose h1 { font-size: clamp(32px, 5vw, 48px); margin: 10px 0 20px; }
.prose h2 { font-size: 22px; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--silver); }
.prose ol { padding-left: 22px; } .prose li { margin-bottom: 8px; }
footer { border-top: 1px solid var(--line); color: var(--dim); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-block: 26px 40px; }
footer a { color: var(--dim); }
footer img { width: 28px; opacity: .8; }
/* the Games page: search, tag filters and sort above the shelf */
.finder { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 18px; }
.finder input, .finder select { font: 17px var(--body); color: var(--ink); background: var(--panel); border: 1px solid var(--line2); border-radius: 4px; padding: 10px 14px; }
.finder input { flex: 1 1 260px; min-width: 0; }
.finder input:focus-visible, .finder select:focus-visible, .tags button:focus-visible, .share:focus-visible { outline: 2px solid var(--bright); outline-offset: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.tags button { font: 500 15px var(--body); color: var(--silver); background: transparent; border: 1px solid var(--line2); border-radius: 3px; padding: 4px 12px; cursor: pointer; }
.tags button:hover { color: var(--bright); border-color: var(--silver); }
.tags button[aria-pressed="true"] { background: var(--metal); color: #121418; border-color: #f4f6f9; }
.count { color: var(--dim); font-size: 15px; margin: -8px 0 18px; }
.none { color: var(--dim); font-style: italic; }
/* game page extras */
.how { padding: 16px 18px; border: 1px solid var(--line2); border-left: 3px solid var(--silver); border-radius: 4px; background: var(--panel2); }
.how h2 { font-size: 18px !important; margin: 0 0 8px !important; }
.how p { margin: 0 !important; }
.share { font: 600 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--silver); background: transparent; border: 1px solid var(--line2); border-radius: 4px; padding: 11px 16px; cursor: pointer; }
.share:hover { color: var(--bright); border-color: var(--silver); }
.played { color: var(--dim); font-size: 15px; margin: -6px 0 0; text-align: center; min-height: 1.4em; }
.more { padding-block: 0 64px; }
.more h2 { font-size: 26px; margin: 0 0 18px; }
@media (max-width: 860px) { .hero, .game-grid { grid-template-columns: 1fr; } .side { position: static; order: -1; } }
@media (max-width: 520px) { .top .wrap { flex-wrap: wrap; gap: 8px; } .brand b { font-size: 15px; } .nav a { padding: 6px 8px; font-size: 12px; } body { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
