@font-face { font-family: "m6x11"; src: url("m6x11plus.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("Ubuntu-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("Ubuntu-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
/* Thornido, modern: the brand's forest / cream / amber on soft rounded surfaces, a glassy sticky
   header, fluid type, cards that lift on hover and sections that fade in. Pixel face for headings only. */
:root {
  --forest: #1e372c; --forest-2: #2c4a3b; --cream: #f9e9c8; --amber: #e6ae39; --amber-2: #f3c25b; --sage: #707550;
  --bg: #fbf5e8; --surface: #ffffff; --surface-2: #f4ecda; --ink: #18261f; --muted: #5c6455; --line: rgba(30, 55, 44, .12);
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 36, 28, .06), 0 8px 24px rgba(20, 36, 28, .08);
  --shadow-lg: 0 2px 6px rgba(20, 36, 28, .08), 0 22px 48px rgba(20, 36, 28, .16);
  --pixel: "m6x11", "Courier New", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1a15; --surface: #16251e; --surface-2: #1c2f26; --ink: #eef0e4; --muted: #a8b29c; --line: rgba(249, 233, 200, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3); --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 22px 48px rgba(0, 0, 0, .45); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 clamp(16px, 1.05vw + 12px, 18px)/1.65 "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
.pixel { image-rendering: pixelated; }
a { color: inherit; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - clamp(32px, 6vw, 96px)); margin-inline: auto; }

/* header: glass bar, hamburger on phones */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--forest) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); color: var(--cream); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { font-family: var(--pixel); font-size: 30px; line-height: 1; color: var(--cream); text-decoration: none; display: flex; align-items: center; gap: 12px; letter-spacing: 1px; }
.brand:hover { color: var(--cream); }
.brand img { width: 38px; height: 38px; border-radius: 10px; background: var(--cream); }
.top nav { display: flex; gap: 6px; margin-left: auto; }
.top nav a { color: var(--cream); text-decoration: none; font-weight: 700; font-size: 15px; padding: 9px 14px; border-radius: 999px; transition: background .2s var(--ease); }
.top nav a:hover { background: rgba(255, 255, 255, .1); color: var(--cream); }
.socials { display: flex; gap: 8px; }
.icon-link { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--cream); transition: background .2s, transform .2s var(--ease); }
.icon-link svg { width: 18px; height: 18px; fill: currentColor; }
.icon-link:hover { background: var(--amber); color: var(--forest); transform: translateY(-2px); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--cream); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; margin: 0 auto; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s var(--ease), background .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.top.open .menu-toggle span { background: transparent; }
.top.open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.top.open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(230, 174, 57, .28), transparent 60%), linear-gradient(160deg, var(--forest) 0%, #24453a 55%, #2f5a48 100%); color: var(--cream); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 8vw, 96px); }
.hero h1 { font-family: var(--pixel); font-weight: normal; font-size: clamp(46px, 6.4vw, 88px); line-height: .95; margin: 0 0 20px; color: var(--cream); letter-spacing: .5px; }
.hero h1 br + * { color: var(--amber); }
.hero p.lead { font-size: clamp(18px, 1.4vw + 12px, 22px); max-width: 560px; margin: 0 0 30px; color: rgba(249, 233, 200, .85); }
.hero .art { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); transform: rotate(1.2deg); transition: transform .6s var(--ease); }
.hero .art:hover { transform: rotate(0) scale(1.01); }
.hero .art img { width: 100%; }
.hero .btn.ghost { background: rgba(255, 255, 255, .08); color: var(--cream); border-color: rgba(255, 255, 255, .2); }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, .16); }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; line-height: 1; padding: 14px 22px; text-decoration: none; border-radius: 999px;
  background: var(--amber); color: var(--forest); border: 1px solid transparent; box-shadow: 0 6px 18px rgba(230, 174, 57, .35); transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { color: var(--forest); background: var(--amber-2); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(230, 174, 57, .45); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.soon, .btn.soon:hover, .btn.soon:active { cursor: default; transform: none; box-shadow: none; border-style: dashed; color: var(--muted); background: transparent; }
.btn.soon small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.player.portrait { aspect-ratio: 9/16; max-width: min(440px, 100%); margin: 0 auto; }

/* sections */
section.block { padding: clamp(56px, 8vw, 104px) 0 0; scroll-margin-top: 84px; }
.kicker { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); line-height: 1; }
.kicker a { color: inherit; text-decoration: none; }
h2 { font-family: var(--pixel); font-weight: normal; font-size: clamp(38px, 4.4vw, 60px); line-height: 1; margin: 10px 0 16px; color: var(--ink); }
.sub { color: var(--muted); max-width: 720px; margin: 0 0 36px; font-size: 1.05em; }

/* featured */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 28px; transition: transform .35s var(--ease), box-shadow .35s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature:nth-child(even) { grid-template-columns: 1fr 1.2fr; }
.feature:nth-child(even) .media { order: 2; }
.feature .media { position: relative; min-height: 320px; background: var(--forest); overflow: hidden; }
.feature .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature:hover .media img { transform: scale(1.04); }
.feature .body { padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.feature h3 { font-family: var(--pixel); font-weight: normal; font-size: clamp(36px, 3.6vw, 52px); line-height: 1; margin: 14px 0 12px; }
.feature p { margin: 0 0 12px; }
.badge { align-self: flex-start; font-weight: 700; font-size: 12px; line-height: 1; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: rgba(143, 179, 90, .2); color: #4f7a2a; }
.badge.new { background: rgba(230, 174, 57, .22); color: #9a6a0c; }
@media (prefers-color-scheme: dark) { .badge { color: #b8d98a; } .badge.new { color: var(--amber-2); } }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 20px !important; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: clamp(16px, 2vw, 26px); }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card img { aspect-ratio: 630/500; object-fit: cover; width: 100%; transition: transform .6s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; position: relative; background: var(--surface); }
.card .name { font-family: var(--pixel); font-weight: normal; font-size: 30px; line-height: 1; margin: 0; }
.card p { margin: 8px 0 14px; font-size: 15px; flex: 1; color: var(--muted); }
.card .tags { font-size: 13px; color: var(--muted); }
.card .go { margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--amber); }
.card .go::after { content: " →"; display: inline-block; transition: transform .2s var(--ease); }
.card:hover .go::after { transform: translateX(4px); }

/* follow */
.banner-art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px; }
.banner-art img { width: 100%; }
.follow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.follow a { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.follow a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.follow svg { width: 34px; height: 34px; fill: var(--amber); flex: none; }
.follow b { display: block; font-family: var(--pixel); font-weight: normal; font-size: 26px; line-height: 1; }
.follow span { color: var(--muted); font-size: 14px; }

/* game page */
.game-hero { padding: clamp(28px, 5vw, 56px) 0 0; }
.game-hero .banner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--forest); }
.game-hero .banner img { width: 100%; }
.game-hero h1 { font-family: var(--pixel); font-weight: normal; font-size: clamp(52px, 8vw, 104px); line-height: .95; margin: 22px 0 10px; }
.game-hero .lead { font-size: clamp(18px, 1.2vw + 13px, 22px); margin: 0 0 22px; color: var(--muted); }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li { padding-left: 28px; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 4px; background: var(--amber); }
.trailer { max-width: 1000px; margin: 0 auto; text-align: center; }
.trailer iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-top: 14px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 16px; }
.shots a { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); background: var(--forest); transition: transform .3s var(--ease), box-shadow .3s; }
.shots a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shots img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.shots.tall { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.shots.tall img { aspect-ratio: 9/16; }
.lightbox { position: fixed; inset: 0; background: rgba(10, 18, 14, .9); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; cursor: zoom-out; }
.lightbox.open { display: flex; animation: fade .25s var(--ease); }
.lightbox img { max-height: 92vh; border-radius: var(--radius-sm); }
.prose h3 { font-family: var(--pixel); font-weight: normal; font-size: 28px; line-height: 1; margin: 28px 0 8px; }
.player { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; border: 0; padding: 0; cursor: pointer; background: #000 center/cover no-repeat; color: var(--cream); font: inherit; }
.player .start::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(15, 26, 21, .25), rgba(15, 26, 21, .65)); transition: opacity .3s; }
.player .start:hover::before { opacity: .7; }
.player .start > * { position: relative; }
.player .play-icon { width: 96px; height: 96px; border-radius: 50%; background: var(--amber); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 40px rgba(230, 174, 57, .5); transition: transform .3s var(--ease); }
.player .start:hover .play-icon { transform: scale(1.08); }
.player .play-icon svg { width: 40px; height: 40px; fill: var(--forest); margin-left: 6px; }
.player .start span { font-family: var(--pixel); font-size: 32px; line-height: 1; }
.player-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 16px; }
.keys { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.keys kbd { display: inline-block; min-width: 64px; text-align: center; font: 700 14px/1 "Ubuntu", sans-serif; padding: 7px 10px; margin-right: 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 3px; color: var(--ink); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

footer { margin-top: clamp(72px, 10vw, 128px); background: var(--forest); color: rgba(249, 233, 200, .75); padding: 40px 0 48px; font-size: 15px; }
footer a { color: var(--cream); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
footer .brand { font-size: 26px; }

/* scroll reveal (site.js adds .in) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .art { transform: none; }
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .media { order: 0; }
  .feature .media { min-height: 0; aspect-ratio: 630/500; }
  .cols { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .top .wrap { flex-wrap: wrap; gap: 0 12px; }
  .top nav, .top .socials { display: none; }
  .top.open nav { display: flex; flex-direction: column; flex: 0 0 100%; gap: 2px; padding: 8px 0 4px; }
  .top.open nav a { font-size: 17px; padding: 12px 10px; border-radius: 12px; }
  .top.open .socials { display: flex; padding: 6px 0 16px; }
}
@media (min-width: 1800px) { .wrap { width: min(1440px, 100% - 160px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; } }
