:root {
--bg: #0a0a0b;
--surface: #111113;
--surface-raised: #17171a;
--border: #29292d;
--text: #f2f2f0;
--muted: #949499;
--accent: #c7ff3d;
--accent-dark: #9dc91f;
--danger: #ff6b6b;
--max-width: 1180px;
}

* {
  box-sizing: border-box;
  }

html {
min-height: 100%;
background: var(--bg);
}

body {
margin: 0;
min-height: 100vh;
background:
radial-gradient(
circle at 75% 0%,
rgba(199, 255, 61, 0.06),
transparent 30rem
),
var(--bg);
color: var(--text);
font-family:
Inter,
ui-sans-serif,
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif;
line-height: 1.6;
}

a {
color: inherit;
text-decoration: none;
}

button,
input {
font: inherit;
}

.container {
width: min(calc(100% - 40px), var(--max-width));
margin: 0 auto;
}

/* Header */

.site-header {
position: sticky;
top: 0;
z-index: 100;
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
background: rgba(10, 10, 11, 0.82);
backdrop-filter: blur(18px);
}

.header-inner {
min-height: 76px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 32px;
}

.brand {
display: inline-flex;
align-items: center;
gap: 11px;
font-size: 14px;
font-weight: 800;
letter-spacing: 0.16em;
}

.brand-mark {
width: 11px;
height: 11px;
display: block;
background: var(--accent);
box-shadow: 0 0 18px rgba(199, 255, 61, 0.45);
}

.site-nav {
display: flex;
align-items: center;
gap: 26px;
color: var(--muted);
font-size: 14px;
}

.site-nav a {
transition:
color 160ms ease,
opacity 160ms ease;
}

.site-nav a:hover {
color: var(--text);
}

.nav-form {
margin: 0;
}

.nav-button {
padding: 0;
border: 0;
background: transparent;
color: var(--muted);
cursor: pointer;
transition: color 160ms ease;
}

.nav-button:hover {
color: var(--text);
}

.nav-cta {
padding: 9px 15px;
border: 1px solid rgba(199, 255, 61, 0.45);
color: var(--accent) !important;
}

/* Main */

.site-main {
min-height: calc(100vh - 140px);
}

/* Shared sections */

.section {
padding: 100px 0;
}

.section-header {
display: flex;
align-items: end;
justify-content: space-between;
gap: 30px;
margin-bottom: 36px;
}

.eyebrow {
margin: 0 0 12px;
color: var(--accent);
font-size: 12px;
font-weight: 800;
letter-spacing: 0.16em;
text-transform: uppercase;
}

h1,
h2,
h3,
p {
margin-top: 0;
}

h1,
h2,
h3 {
line-height: 1.05;
}

h1 {
font-size: clamp(44px, 7vw, 84px);
letter-spacing: -0.055em;
}

h2 {
font-size: clamp(32px, 4vw, 52px);
letter-spacing: -0.045em;
}

h3 {
font-size: 22px;
letter-spacing: -0.02em;
}

.muted {
color: var(--muted);
}

/* Buttons */

.button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 48px;
padding: 0 21px;
border: 1px solid var(--accent);
background: var(--accent);
color: #090909;
font-weight: 800;
cursor: pointer;
transition:
transform 160ms ease,
background 160ms ease,
border-color 160ms ease;
}

.button:hover {
transform: translateY(-2px);
background: #d5ff70;
border-color: #d5ff70;
}

.button-secondary {
border-color: var(--border);
background: transparent;
color: var(--text);
}

.button-secondary:hover {
background: var(--surface-raised);
border-color: #44444a;
}

/* Cards */

.card {
border: 1px solid var(--border);
background: var(--surface);
}

.card-inner {
padding: 30px;
}

/* Forms */

.form-group {
margin-bottom: 22px;
}

form p {
margin-bottom: 20px;
}

label {
display: block;
margin-bottom: 8px;
color: var(--text);
font-size: 14px;
font-weight: 700;
}

input {
width: 100%;
min-height: 48px;
padding: 11px 13px;
border: 1px solid var(--border);
outline: none;
background: #0d0d0f;
color: var(--text);
transition:
border-color 160ms ease,
box-shadow 160ms ease;
}

input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(199, 255, 61, 0.09);
}

.helptext {
display: block;
margin-top: 7px;
color: var(--muted);
font-size: 12px;
}

.errorlist {
margin: 7px 0 0;
padding: 0;
list-style: none;
color: var(--danger);
font-size: 13px;
}

/* Authentication */

.auth-page {
min-height: calc(100vh - 140px);
display: flex;
align-items: center;
justify-content: center;
padding: 80px 20px;
}

.auth-card {
width: min(100%, 460px);
padding: 42px;
border: 1px solid var(--border);
background: var(--surface);
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.auth-card h1 {
margin-bottom: 12px;
font-size: 42px;
}

.auth-card > p {
margin-bottom: 30px;
color: var(--muted);
}

.auth-card form {
margin-bottom: 24px;
}

.auth-card button[type="submit"] {
width: 100%;
min-height: 50px;
border: 1px solid var(--accent);
background: var(--accent);
color: #090909;
font-weight: 800;
cursor: pointer;
}

.auth-links {
display: flex;
flex-direction: column;
gap: 9px;
color: var(--muted);
font-size: 14px;
}

.auth-links a {
color: var(--accent);
}

/* Account */

.account-page {
padding: 90px 0;
}

.account-header {
max-width: 720px;
margin-bottom: 55px;
}

.account-header h1 {
margin-bottom: 18px;
}

.account-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px;
}

.account-card {
padding: 30px;
border: 1px solid var(--border);
background: var(--surface);
}

.account-card h2 {
margin-bottom: 24px;
font-size: 24px;
}

.account-detail {
padding: 17px 0;
border-top: 1px solid var(--border);
}

.account-detail:first-child {
padding-top: 0;
border-top: 0;
}

.account-detail-label {
margin-bottom: 4px;
color: var(--muted);
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.1em;
}

.account-detail-value {
font-size: 16px;
}

.empty-state {
padding: 45px 20px;
border: 1px dashed var(--border);
text-align: center;
}

.empty-state p {
margin-bottom: 0;
color: var(--muted);
}

/* Footer */

.site-footer {
border-top: 1px solid var(--border);
}

.footer-inner {
min-height: 64px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
color: var(--muted);
font-size: 12px;
}

.footer-inner span:first-child {
color: var(--text);
font-weight: 800;
letter-spacing: 0.12em;
}

/* Mobile */

@media (max-width: 700px) {
.container {
width: min(calc(100% - 28px), var(--max-width));
}

.header-inner {
    min-height: 68px;
}

.site-nav {
    gap: 14px;
}

.site-nav a:not(.nav-cta) {
    display: none;
}

.section {
    padding: 70px 0;
}

.account-grid {
    grid-template-columns: 1fr;
}

.auth-card {
    padding: 30px 24px;
}

.footer-inner {
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
}
}

/* Homepage */

.hero {
min-height: 650px;
display: flex;
align-items: center;
border-bottom: 1px solid var(--border);
}

.hero-inner {
padding: 100px 0;
}

.hero-copy {
max-width: 800px;
}

.hero h1 {
margin-bottom: 28px;
}

.hero-text {
max-width: 560px;
margin-bottom: 34px;
color: var(--muted);
font-size: 18px;
line-height: 1.7;
}

.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
}

@media (max-width: 700px) {
.hero {
min-height: auto;
}

.hero-inner {
    padding: 80px 0;
}

.hero-text {
    font-size: 16px;
}

}
.page-hero {
    padding: 120px 0 80px;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    margin-bottom: 24px;
}

.page-hero .hero-text {
    margin-bottom: 0;
}

/* Games */

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.game-card {
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.game-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.game-card-content {
    padding: 28px;
}

.game-card h2 {
    margin-bottom: 12px;
}

@media (max-width: 700px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* Devlog */

.devlog-list {
    display: grid;
    gap: 20px;
    max-width: 900px;
}

.devlog-card h2 {
    margin-bottom: 14px;
}

.devlog-card h2 a {
    color: inherit;
    text-decoration: none;
}

.devlog-card h2 a:hover {
    color: var(--accent);
}

.devlog-card > .card-inner > a {
    display: inline-block;
    margin-top: 18px;
}

.post-content {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 24px;
}

/* Game page */

.game-page {
    max-width: 1000px;
}

.game-cover {
    display: block;
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    margin-bottom: 50px;
}

.game-description {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.8;
}