/* Thelogy Games - one stylesheet. Self-hosted font, no external requests (privacy, speed, strict CSP). */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin.eace27d7eeac.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #070d14;
  --bg-2: #0b1520;
  --surface: #0f1c2a;
  --surface-2: #142538;
  --line: rgba(236, 230, 216, .09);
  --line-2: rgba(236, 230, 216, .16);
  --text: #ece6d8;
  --soft: #cfc8b9;
  --muted: #95a3b2;
  --brass: #d9b062;
  --brass-hi: #f3d08a;
  --sea: #6ac3d7;
  --danger: #e2786a;
  --ok: #7cc79c;
  --radius: 14px;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 var(--sans);
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--brass-hi); text-decoration: none; transition: color .2s; }
a:hover { color: #fff3d6; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; font-variation-settings: "opsz" 72, "SOFT" 30; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; font-variation-settings: "opsz" 24; }
h4 { font-size: .8rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(217, 176, 98, .35); }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.meta { color: var(--muted); font-size: .85rem; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .22em; color: var(--brass); font-weight: 600; margin-bottom: 1.1em; }
.display { font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.02; font-weight: 560; font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0; letter-spacing: -.02em; }
.display em { font-style: normal; color: var(--brass-hi); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--soft); max-width: 38em; line-height: 1.6; }
.more { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.more span { display: inline-block; transition: transform .25s var(--ease); }
.more:hover span { transform: translateX(4px); }

/* ---------- brand + top bar ---------- */
.mark { width: 34px; height: 34px; flex: none; }
.mark-ring { fill: none; stroke: var(--brass); stroke-width: 1.4; opacity: .55; }
.mark-minor { fill: var(--brass); opacity: .5; }
.mark-major { fill: var(--brass-hi); }
.mark-hub { fill: var(--bg); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand:hover .mark-major { fill: #fff3d6; }
.wordmark { font-family: var(--display); font-size: 1.28rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; font-variation-settings: "opsz" 24; }
.wordmark span { color: var(--brass); font-weight: 400; }
.topbar { position: sticky; top: 0; z-index: 30; transition: background .3s, border-color .3s, backdrop-filter .3s; background: rgba(7, 13, 20, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-overlay { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(4, 8, 12, .55), rgba(4, 8, 12, 0)); border-bottom-color: transparent; backdrop-filter: none; }
.topbar-overlay.is-scrolled { background: rgba(7, 13, 20, .9); border-bottom-color: var(--line); backdrop-filter: blur(12px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--soft); font-size: .95rem; font-weight: 500; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav > a:not(.btn):not(.me)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brass); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav > a:not(.btn):not(.me):hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-admin { color: var(--brass) !important; }
.nav-sep { width: 1px; height: 22px; background: var(--line-2); }
.me { display: inline-flex; align-items: center; gap: 10px; }
.me img { border-radius: 50%; }
.inline { display: inline; margin: 0; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; }
.linkish:hover { color: var(--text); }
.linkish.danger:hover { color: var(--danger); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto; position: relative; transition: transform .25s, opacity .25s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.menu-open .nav-toggle .bars { background: transparent; }
.menu-open .nav-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .nav-toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid var(--brass);
  background: linear-gradient(180deg, #e7c174, var(--brass)); color: #1b1407; font-weight: 650; font-size: 1rem; letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 6px 24px -10px rgba(217, 176, 98, .7);
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { color: #1b1407; transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(217, 176, 98, .85); background: linear-gradient(180deg, #f6d793, #e2b968); }
.btn-ghost { background: rgba(217, 176, 98, .04); color: var(--brass-hi); box-shadow: none; }
.btn-ghost:hover { background: rgba(217, 176, 98, .13); color: #fff3d6; box-shadow: none; }
.btn-light { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .14); }
.btn-small { padding: 7px 16px; font-size: .88rem; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); box-shadow: none; }
.btn-danger:hover { background: rgba(226, 120, 106, .12); color: var(--danger); box-shadow: none; }
.btn-steam { background: linear-gradient(180deg, #2a475e, #1b2838); border-color: #66c0f4; color: #e7f2fb; box-shadow: 0 8px 26px -12px rgba(102, 192, 244, .8); }
.btn-steam:hover { background: linear-gradient(180deg, #355a77, #22364d); color: #fff; box-shadow: 0 12px 30px -12px rgba(102, 192, 244, .9); }
.steam-ring { fill: none; stroke: currentColor; stroke-width: 1.6; }
.steam-dot { fill: currentColor; }
.steam-arm { stroke: currentColor; stroke-width: 1.6; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 10px; }

/* ---------- studio hero (home) ---------- */
.studio-hero { position: relative; min-height: min(100vh, 940px); display: flex; align-items: center; overflow: hidden; padding: 140px 0 120px;
  background:
    radial-gradient(900px 600px at 78% 38%, rgba(106, 195, 215, .13), transparent 62%),
    radial-gradient(700px 520px at 12% 90%, rgba(217, 176, 98, .10), transparent 60%),
    linear-gradient(180deg, #08121c 0%, var(--bg) 100%); }
.studio-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.chart-lines { position: absolute; inset: -2px; opacity: .5;
  background-image: linear-gradient(rgba(236, 230, 216, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 230, 216, .045) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 70% 45%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 65% at 70% 45%, #000 30%, transparent 75%); }
.compass { position: absolute; width: min(700px, 64vw); right: -10%; top: 50%; transform: translateY(-50%); opacity: .6; animation: drift 160s linear infinite; }
.c-ring { fill: none; stroke: rgba(217, 176, 98, .30); stroke-width: 1; }
.c-thin { stroke: rgba(217, 176, 98, .16); }
.c-ticks line { stroke: rgba(217, 176, 98, .35); stroke-width: 1; }
.c-star { fill: rgba(243, 208, 138, .06); stroke: rgba(243, 208, 138, .45); stroke-width: 1; }
.c-minor { fill: rgba(106, 195, 215, .06); stroke: rgba(106, 195, 215, .35); }
@keyframes drift { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }
.studio-hero-inner { position: relative; max-width: 1200px; }
.studio-hero-inner .lead { margin-bottom: 1.4em; }
.studio-hero .display { max-width: 12.5em; }
.hero-chip { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px; background: rgba(15, 28, 42, .75); border: 1px solid var(--line-2); color: var(--soft); font-size: .92rem; backdrop-filter: blur(8px); white-space: nowrap; }
.hero-chip strong { color: var(--text); }
.hero-chip:hover { color: var(--text); border-color: var(--brass); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(124, 199, 156, .6); animation: pulse 2.4s infinite; display: inline-block; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124, 199, 156, .55); } 70% { box-shadow: 0 0 0 10px rgba(124, 199, 156, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 199, 156, 0); } }

/* ---------- featured game band ---------- */
/* (10-29) the featured game is a framed banner: everything sits ON the picture */
.featured-wrap { padding: clamp(40px, 6vw, 84px) 0; }
.featured { position: relative; min-height: 580px; display: flex; align-items: center; overflow: hidden; isolation: isolate;
  border-radius: 24px; border: 1px solid var(--line-2); box-shadow: 0 40px 90px -45px rgba(0, 0, 0, .95); }
.featured-media, .game-hero-media { position: absolute; inset: 0; z-index: -2; }
.cover, .featured-media img, .game-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-media img { object-position: 18% 50%; transform: scale(1.03); transition: transform 1.6s var(--ease); }
.featured:hover .featured-media img { transform: scale(1.0); }
.featured::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5, 10, 16, .74) 0%, rgba(5, 10, 16, .46) 34%, rgba(5, 10, 16, 0) 62%), linear-gradient(0deg, rgba(5, 10, 16, .5), transparent 38%); }
.featured-inner { padding-block: 96px; }
.featured-copy { max-width: 560px; padding: clamp(30px, 5vw, 64px); text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.game-logo { width: min(440px, 80vw); height: auto; margin: 0 0 22px -6px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .55)); }
.game-logo.big { width: min(580px, 86vw); }
.facts { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 5px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); font-size: .85rem; color: #e9e3d6; }

/* ---------- sections, pillars, news ---------- */
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 0; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar { padding: 34px 30px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), rgba(15, 28, 42, .4)); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.pillar:hover { border-color: rgba(217, 176, 98, .45); transform: translateY(-3px); }
.pillar-icon { width: 44px; height: 44px; margin-bottom: 20px; fill: none; stroke: var(--brass-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar p { color: var(--soft); margin: 0; }
.news-card { display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.news-card:hover { border-color: rgba(217, 176, 98, .45); transform: translateY(-3px); }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--brass-hi); }
.news-card p { color: var(--soft); }
.news-card .meta { margin-bottom: 10px; }
.news-card .more { margin-top: auto; }
.news-empty { grid-column: 1 / -1; max-width: 560px; }

/* ---------- community band ---------- */
.community { padding-block: clamp(64px, 9vw, 112px); background:
  radial-gradient(800px 400px at 15% 20%, rgba(217, 176, 98, .09), transparent 60%),
  radial-gradient(700px 400px at 90% 90%, rgba(106, 195, 215, .08), transparent 60%), var(--bg); }
.community-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.recent { padding: 30px; border-radius: var(--radius); background: rgba(15, 28, 42, .7); border: 1px solid var(--line); }
.recent ul { list-style: none; padding: 0; margin: 0; }
.recent li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); }
.recent li:last-child { border-bottom: 0; }
.recent li a { color: var(--text); font-weight: 600; }
.recent li a:hover { color: var(--brass-hi); }

/* ---------- inner page heads ---------- */
.page-head { position: relative; padding: 120px 0 56px; overflow: hidden;
  background: radial-gradient(800px 360px at 85% 0%, rgba(106, 195, 215, .10), transparent 60%), linear-gradient(180deg, #0a1520, var(--bg)); border-bottom: 1px solid var(--line); }
.page-head .display { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 16em; }
.page-head h1 { margin-bottom: .35em; }
.crumbs { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

/* ---------- games ---------- */
.game-card { display: grid; grid-template-columns: 1.25fr 1fr; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.game-card-media { display: block; overflow: hidden; min-height: 340px; }
.game-card-media img { transition: transform 1.2s var(--ease); }
.game-card:hover .game-card-media img { transform: scale(1.04); }
.game-card-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.game-card-body h2 a { color: var(--text); }
.game-card-body p { color: var(--soft); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--soft) !important; text-transform: uppercase; letter-spacing: .12em; }
.game-card .facts li { border-color: var(--line-2); }

/* ---------- game page ---------- */
.game-hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding: 160px 0 90px; }
.game-hero-media img { object-position: 50% 40%; }
.game-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(7, 13, 20, .7) 32%, rgba(7, 13, 20, .1) 62%, rgba(7, 13, 20, .5) 100%), linear-gradient(90deg, rgba(7, 13, 20, .55), transparent 55%); }
.game-hero .lead { color: #efe9dc; }
.feature-rows { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 110px); }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature.flip .feature-media { order: 2; }
.feature-media { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.feature-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.03); }
.feature-copy p:not(.eyebrow) { color: var(--soft); font-size: 1.08rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: saturate(.92); }
.shot:hover img { transform: scale(1.05); filter: saturate(1.08); }
.cta-band { padding-block: 72px; background: linear-gradient(90deg, rgba(217, 176, 98, .12), rgba(106, 195, 215, .08)); border-top: 1px solid var(--line); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .3em; }
.cta-inner .lead { margin: 0; }

/* ---------- about / prose ---------- */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.about-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
.prose { max-width: 46em; }
.prose h2 { font-size: 1.7rem; margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--soft); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.panel h3 { margin-bottom: .4em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { color: var(--brass-hi); }
.card p:last-child { margin-bottom: 0; }
.card-link { color: var(--text); display: block; transition: border-color .25s, transform .25s var(--ease); }
.card-link:hover { border-color: var(--brass); color: var(--text); transform: translateY(-2px); }
.stats .card { display: flex; flex-direction: column; gap: 4px; }
.big-num { font-family: var(--display); font-size: 2.2rem; color: var(--brass-hi); line-height: 1.1; }
.section-title { font-size: 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin: 28px 0 14px; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- forum ---------- */
.forum-page { padding-top: 40px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.head-row h1 { margin: 0; }
.rows { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); transition: background .2s; }
.row:hover { background: var(--surface-2); }
.row:last-child { border-bottom: 0; }
.row.pinned { background: rgba(217, 176, 98, .05); }
.row-main { min-width: 0; }
.row-main p { margin: 3px 0 0; }
.row-title { font-weight: 650; font-size: 1.06rem; color: var(--text); }
.row-title:hover { color: var(--brass-hi); }
.row-side { text-align: right; color: var(--muted); font-size: .88rem; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.count { color: var(--text); font-weight: 650; }
.tag { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--brass); color: var(--brass); margin-right: 8px; vertical-align: middle; font-family: var(--sans); font-weight: 600; }
.tag-dim { border-color: var(--muted); color: var(--muted); }
.tag-warn { border-color: var(--danger); color: var(--danger); }
.modbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 12px; }
.posts { list-style: none; padding: 0; margin: 0 0 22px; }
.post { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
.post-author a { display: flex; flex-direction: column; gap: 8px; color: var(--text); font-weight: 650; }
.post-author img, .avatar-blank { border-radius: 10px; width: 52px; height: 52px; display: block; }
.avatar-blank { background: linear-gradient(135deg, #1c3550, #2b4a6b); }
.avatar-blank.small { width: 28px; height: 28px; border-radius: 50%; }
.avatar-blank.big, .profile-head img { width: 104px; height: 104px; border-radius: 16px; }
.post-text { overflow-wrap: anywhere; color: var(--soft); }
.post-text p:last-child { margin-bottom: 0; }
.post-tools { display: flex; gap: 16px; margin-top: 12px; font-size: .88rem; }
.post-tools a { color: var(--muted); }
.post-tools a:hover { color: var(--text); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.profile-head { display: flex; gap: 24px; align-items: center; }
.profile-head h1 { margin-bottom: .2em; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 7px; }
input[type="text"], input:not([type]), textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: #08111a; color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px rgba(217, 176, 98, .18); }
.error { color: var(--danger); font-size: .88rem; margin: 5px 0 0; }
.search { display: flex; gap: 8px; }
.search input { width: 240px; }

/* ---------- sign-in ---------- */
.signin-wrap { min-height: 70vh; display: grid; place-items: center; padding: 120px 20px 60px; }
.signin-card { width: min(460px, 100%); text-align: center; padding: 44px 36px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
.signin-card .mark { width: 52px; height: 52px; margin: 0 auto 18px; }

/* ---------- messages ---------- */
.messages-wrap { position: relative; z-index: 20; }
.page-home .messages-wrap, .topbar-overlay + .messages-wrap { position: fixed; top: 86px; left: 0; right: 0; }
.messages { list-style: none; padding: 0; margin: 18px 0 0; }
.msg { padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(15, 28, 42, .95); margin-bottom: 8px; backdrop-filter: blur(8px); }
.msg-success { border-color: var(--ok); }
.msg-error { border-color: var(--danger); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: #050a10; padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 14px; max-width: 22em; }
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer nav a { color: var(--soft); font-size: .95rem; }
.footer nav a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }

/* ---------- reveal on scroll (only when JS says motion is fine) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.js-reveal .hero-chip.reveal { transform: translate(-50%, 18px); }
.js-reveal .hero-chip.reveal.is-in { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 22px;
    background: rgba(7, 13, 20, .98); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav > a, .nav .inline, .nav .me { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn):not(.me)::after { display: none; }
  .nav .btn { margin-top: 14px; align-self: flex-start; }
  .nav-sep { display: none; }
  .community-inner, .about-grid, .feature, .game-card { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .about-side { position: static; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .compass { width: 120vw; right: -45%; opacity: .5; }
  .featured::before { background: linear-gradient(0deg, rgba(5, 10, 16, .92) 0%, rgba(5, 10, 16, .6) 50%, rgba(5, 10, 16, .1) 100%); }
  .featured { align-items: flex-end; min-height: 600px; }
  .featured-media img { object-position: 50% 50%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .studio-hero { padding: 120px 0 130px; }
  .hero-chip { font-size: .82rem; bottom: 26px; }
  .post { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .post-author a { flex-direction: row; align-items: center; }
  .post-author img, .avatar-blank { width: 38px; height: 38px; }
  .row { flex-direction: column; align-items: flex-start; }
  .row-side { align-items: flex-start; text-align: left; flex-direction: row; gap: 10px; }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .search input { width: 100%; }
  .wordmark { font-size: 1.05rem; letter-spacing: .1em; }
}

/* (10-29) Ship Life can't be wishlisted yet: a plain status line - no border, no pill, nothing that looks pressable */
.soon { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: #b9d7e8; font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; cursor: default; }
.soon svg { opacity: .85; flex: none; }
.game-hero .soon { margin: 0 0 22px; }
.steam-logo { flex: none; }
.btn-steam .steam-logo { width: 20px; height: 20px; }

/* (10-29) whole rows and cards are links: the title's link is stretched over its box; other links stay on top */
.rows-click .row, .news-card, .click-li { position: relative; }
.rows-click .row { cursor: pointer; }
.rows-click .row-title::after, .stretch::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.rows-click .row a:not(.row-title), .rows-click .row button, .rows-click .row form { position: relative; z-index: 1; }
.rows-click .row:hover .row-title, .news-card:hover h3 a, .click-li:hover a.stretch { color: var(--brass-hi); }
.rows-click .row:focus-within { outline: 2px solid var(--brass-hi); outline-offset: -2px; }
.rows-click .row-title:focus-visible, .stretch:focus-visible { outline: none; }
.news-card .more { position: relative; z-index: 1; }

/* (10-29) Admin > World Director */
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .85rem; text-transform: capitalize; margin: 0; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-ready .dot { background: var(--ok); }
.status-busy .dot, .status-loading .dot { background: var(--brass-hi); }
.status-down .dot { background: var(--danger); }
.section-gap { margin-top: 24px; }
.director-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; margin-top: 28px; }
.kingdom header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.kingdom header h2 { font-size: 1.5rem; margin: 0; }
.plan-summary { font-family: var(--display); font-size: 1.08rem; color: var(--soft); font-style: italic; }
.steps { list-style: none; padding: 0; margin: 0 0 14px; }
.steps li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps .day { display: inline-block; min-width: 52px; color: var(--muted); font-size: .85rem; }
.steps p { margin: 4px 0 0 52px; }
.kind-tax { border-color: var(--brass); color: var(--brass); }
.kind-food_trade { border-color: var(--ok); color: var(--ok); }
.kind-fleet_move { border-color: var(--sea); color: var(--sea); }
.kind-rumour, .kind-rider { border-color: #c79ce0; color: #c79ce0; }
.kind-build { border-color: #e0a36a; color: #e0a36a; }
.kingdom details summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.report { white-space: pre-wrap; font-size: .82rem; line-height: 1.5; color: var(--soft); background: #08111a; border: 1px solid var(--line); border-radius: 10px; padding: 14px; max-height: 420px; overflow: auto; }
@media (max-width: 640px) { .director-grid { grid-template-columns: 1fr; } .steps p { margin-left: 0; } }

/* (10-29) the prompts as a chat app (/prompts/): the conversations down the left, the open chat on the right, Big C's lines
   on the left of it and yours on the right, the box at the bottom. On a phone: the list, or the open chat. */
[hidden] { display: none !important; }   /* a styled tag or bubble must still hide */
.chat-app { display: grid; grid-template-columns: 290px minmax(0, 1fr); height: calc(100vh - 74px); min-height: 480px; }
.chat-side { border-right: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; min-height: 0; padding: 16px 12px; gap: 12px; }
.chat-new { align-self: stretch; text-align: center; }
.chat-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 0; }
.chat-list a { display: block; padding: 9px 10px; border-radius: 10px; color: var(--soft); border: 1px solid transparent; }
.chat-list a:hover { background: rgba(255, 255, 255, .03); color: var(--text); }
.chat-list a.cur { background: #2a2416; border-color: rgba(217, 176, 98, .35); color: var(--text); }
.chat-list-t { display: block; font-size: .9rem; line-height: 1.35; overflow-wrap: anywhere; }
.chat-list-m { display: block; font-size: .74rem; color: var(--muted); margin-top: 3px; }
.chat-list-none { padding: 8px 10px; }
.chat-list .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--muted); vertical-align: 1px; }
.dot.st-new, .dot.st-authorized { background: var(--sea); }
.dot.st-asking, .dot.st-waiting { background: var(--brass); }
.dot.st-answered, .dot.st-queued, .dot.st-done { background: var(--ok); }
.dot.st-declined { background: var(--danger); }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 16px clamp(16px, 3vw, 36px) 12px; }
.chat-head h1 { font-size: 1.45rem; margin: 0 0 2px; }
.chat-head .modbar { margin: 8px 0 0; }
.chat-back { display: none; font-size: .88rem; }
.chat { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 18px 2px; margin: 10px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overscroll-behavior: contain; }
.bubble { max-width: min(700px, 86%); align-self: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px; padding: 10px 14px; }
.bubble.mine { align-self: flex-end; background: #2a2416; border-color: rgba(217, 176, 98, .35); border-radius: 16px 16px 4px 16px; }
.bubble.loop { background: var(--surface-2); }
.bubble-who { font-size: .78rem; font-weight: 650; color: var(--brass); margin-bottom: 2px; }
.bubble.mine .bubble-who { color: var(--brass-hi); text-align: right; }
.bubble-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); font-size: .98rem; line-height: 1.55; }
.bubble-time { font-size: .72rem; color: var(--muted); margin-top: 4px; text-align: right; }
.bubble.thinking .bubble-text { color: var(--muted); font-size: .9rem; }
.dots { display: inline-flex; gap: 4px; margin-right: 6px; vertical-align: middle; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); opacity: .35; animation: chatdot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes chatdot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: .7; } }
.chat-box { display: flex; gap: 10px; align-items: flex-end; }
.chat-box textarea { flex: 1; resize: vertical; min-height: 52px; max-height: 240px; }
.chat-note { margin: 6px 0 0; min-height: 1.2em; }
@media (max-width: 760px) {
  .chat-app { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: calc(100vh - 64px); }
  .chat-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 34vh; padding: 10px 12px; }
  .chat-app.has-open .chat-side { display: none; }
  .chat-app.has-open { grid-template-rows: minmax(0, 1fr); }
  .chat-back { display: inline-block; margin-bottom: 4px; }
  .bubble { max-width: 92%; }
  .chat-main { padding: 10px 16px; }
}
