/* Edit these tokens to iterate on the visual direction. */
:root {
  color-scheme: dark;
  --bg: #101210;
  --surface: #171a16;
  --text: #f1f3ec;
  --muted: #a0a69b;
  --line: #2a2f27;
  --accent: #b6f36a;
  --font: Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--bg); }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 10px 20px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 12px; }
.site-header, .site-footer { width: calc(100% - 112px); max-width: 1360px; margin-inline: auto; }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 23px; font-weight: 700; letter-spacing: -1px; white-space: nowrap; }
.brand img { flex-shrink: 0; }
.brand-suffix { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 30px); font-size: 14px; }
.site-nav a { color: #b7bcb2; padding-block: 10px; transition: color .15s; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); }
.site-nav .nav-login { border: 1px solid #444c3d; border-radius: 5px; padding: 9px 18px; color: var(--text); margin-left: 3px; }
.nav-login span[aria-hidden] { margin-left: 16px; color: var(--accent); }
.site-nav .nav-login:hover { border-color: var(--accent); }
.site-header { position: relative; z-index: 5; }
.profile-menu { position: relative; }
.profile-trigger { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 3px; border: 0; background: transparent; color: var(--muted); border-radius: 24px; }
.profile-avatar { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--accent); border-radius: 50%; background: #29351f; color: var(--accent); font: 600 13px/1 var(--font); }
.profile-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-online { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; background: var(--accent); border: 2px solid var(--bg); border-radius: 50%; }
.profile-trigger:hover, .profile-trigger[aria-expanded="true"] { color: var(--accent); }
.profile-trigger[aria-expanded="true"] .profile-chevron { transform: rotate(180deg); }
.profile-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(264px, calc(100vw - 40px)); padding: 8px; border: 1px solid #3c4535; border-radius: 10px; background: var(--surface); box-shadow: 0 16px 45px #0008; text-align: left; }
.profile-identity { display: flex; flex-direction: column; gap: 3px; padding: 12px 10px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.profile-caption { color: var(--muted); font-size: 11px; }
.profile-identity strong { color: var(--text); font-size: 15px; font-weight: 600; }
.profile-email { color: var(--muted); font-size: 12px; }
.profile-identity strong, .profile-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-nav .profile-panel > a, .profile-panel > button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 42px; padding: 10px; border: 0; border-radius: 5px; background: transparent; color: var(--text); font: 13px/1.5 var(--font); text-align: left; }
.site-nav .profile-panel > a:hover, .profile-panel > button:hover { background: #b6f36a0c; color: var(--accent); }
.profile-panel > a span, .profile-panel > button span { color: var(--muted); }
.profile-error { color: #ffd0c3; font-size: 12px; padding: 0 10px; }
.app-main { flex: 1; display: flex; flex-direction: column; }
.coming-soon { position: relative; isolation: isolate; width: 100%; flex: 1; display: flex; min-height: 650px; flex-direction: column; justify-content: center; align-items: center; padding: 100px 24px 135px; overflow: hidden; text-align: center; }
.arena-grid { position: absolute; z-index: -1; inset: 30px max(24px, calc((100vw - 1060px)/2)) 85px; background-image: linear-gradient(#b6f36a09 1px, transparent 1px), linear-gradient(90deg, #b6f36a09 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%); }
.pixel { position: absolute; width: 8px; height: 8px; background: #b6f36a; opacity: .6; }
.pixel-one { left: 16%; top: 33%; }
.pixel-two { right: 16%; top: 57%; }
.pixel-three { right: 27%; top: 13%; width: 5px; height: 5px; }
.hero-content { width: 100%; max-width: 1000px; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--accent); font: 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 2px; margin: 0 0 29px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #b6f36a0a; flex-shrink: 0; }
.coming-soon h1 { margin: 0; font-size: clamp(58px, 8.2vw, 116px); line-height: 1.05; letter-spacing: -.065em; font-weight: 600; }
.accent { color: var(--accent); }
.hero-description { color: var(--muted); font-size: 18px; line-height: 1.8; margin: 28px auto 35px; max-width: 570px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 30px; min-height: 52px; padding: 13px 23px; border-radius: 5px; font-size: 14px; font-weight: 600; border: 1px solid transparent; transition: background .15s, transform .15s; }
.button-primary { background: var(--accent); color: #15200d; }
.button-primary:hover { background: #c9ff8a; transform: translateY(-2px); }
.button span { font-size: 19px; line-height: 1; font-weight: 400; }
.hero-note { font-size: 12px; color: #949c8c; margin: 20px 0 0; }
.hero-bottom { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 27px; white-space: nowrap; font: 9px/1.5 var(--mono); letter-spacing: 1.4px; color: #87917e; }
.loading-track { display: flex; gap: 3px; }
.loading-track i { display: block; height: 10px; width: 4px; background: #343e2d; }
.loading-track i:nth-child(-n+4) { background: var(--accent); }
.site-footer { padding: 25px 0 29px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #90988a; font-size: 11px; }
.site-footer > div { display: flex; align-items: center; gap: 34px; }
.site-footer a { color: #b8c0b0; }
.site-footer a:hover { color: var(--accent); }
.site-footer a span { margin-left: 6px; }
.section-coming-soon h1 { font-size: clamp(52px, 6.5vw, 90px); }
.auth-section { width: min(100% - 40px, 460px); margin: 64px auto 90px; }
.back-link { color: var(--muted); font-size: 12px; display: inline-flex; gap: 10px; margin-bottom: 32px; }
.back-link:hover { color: var(--accent); }
.auth-panel { padding: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.auth-panel .eyebrow { justify-content: flex-start; font-size: 10px; margin-bottom: 20px; }
.auth-panel h1 { font-size: 38px; font-weight: 600; letter-spacing: -1.8px; line-height: 1.15; margin: 0 0 15px; }
.auth-description { color: var(--muted); font-size: 14px; margin: 0 0 30px; }
.auth-form > label { display: block; font-size: 12px; margin-bottom: 8px; }
.auth-form input[type=email] { width: 100%; background: var(--bg); border: 1px solid #41483a; border-radius: 5px; color: var(--text); min-height: 49px; padding: 12px 14px; font-size: 14px; }
.auth-form input::placeholder { color: #858d7c; }
.auth-form .checkbox-label { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); margin-top: 17px; line-height: 1.6; }
.checkbox-label input { accent-color: var(--accent); margin: 3px 0 0; width: 15px; height: 15px; flex-shrink: 0; }
.auth-form .button { width: 100%; margin-top: 24px; justify-content: space-between; }
.auth-note { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 16px 0 0; }
.button-github { width: 100%; background: var(--text); color: var(--bg); gap: 12px; }
.button-github:hover:not(:disabled) { background: #fff; }
.auth-divider { display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 11px; margin: 25px 0; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.button-secondary { background: transparent; border-color: var(--line); color: var(--text); width: 100%; margin-top: 14px; }
.button-secondary:hover { border-color: var(--accent); }
.form-result[data-state="error"] { border-color: #ffad98; color: #ffd0c3; }
.account-email { overflow-wrap: anywhere; font: 13px/1.6 var(--mono); padding: 15px 0; border-block: 1px solid var(--line); }
.auth-switch { border-top: 1px solid var(--line); padding-top: 22px; margin: 25px 0 0; font-size: 12px; color: var(--muted); }
.auth-switch a { color: var(--accent); margin-left: 4px; white-space: nowrap; }
.form-result { margin-top: 20px; border-left: 2px solid var(--accent); padding: 5px 0 5px 15px; font-size: 13px; }
.form-result strong { color: var(--accent); }
.form-result p { margin: 6px 0 0; color: var(--muted); }
.blog-main { width: min(100% - 48px, 960px); margin: 70px auto 90px; }
.blog-heading { border-bottom: 1px solid var(--line); padding-bottom: 35px; margin-bottom: 8px; }
.blog-heading .eyebrow { justify-content: flex-start; margin-bottom: 16px; }
.blog-heading h1 { font-size: clamp(42px, 7vw, 72px); line-height: 1.1; letter-spacing: -.05em; font-weight: 600; margin: 0 0 20px; }
.blog-heading p:last-child { color: var(--muted); margin: 0; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list a { display: grid; grid-template-columns: 110px 1fr 24px; align-items: baseline; gap: 24px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.post-list time { color: var(--muted); font: 11px/1.6 var(--mono); }
.post-list h2 { font-size: 18px; line-height: 1.5; font-weight: 500; margin: 0; letter-spacing: -.3px; }
.post-list a > span { color: var(--accent); }
.post-list a:hover h2 { color: var(--accent); }
.prose { flex: 1; width: min(100% - 48px, 850px); margin: 60px auto 90px; overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3 { line-height: 1.25; letter-spacing: -.025em; }
.prose h1 { font-size: clamp(30px, 5vw, 48px); }
.prose h2 { margin-top: 40px; }
.prose p, .prose li { color: #c1c7ba; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose small, .prose .view { color: var(--muted); }
.prose img, .prose video { max-width: 100%; height: auto; }
.prose iframe { max-width: 100%; }
.prose iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16/9; }
.prose pre { overflow-x: auto; padding: 20px; border: 1px solid var(--line); background: var(--surface); border-radius: 5px; }
.prose code { font: .85em/1.7 var(--mono); color: #d2e7bd; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; }
.prose td, .prose th { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 2px solid var(--accent); }
.hidden { display: none !important; }
.about-page { width: min(100% - 112px, 1060px); margin: 64px auto 80px; }
.about-heading { max-width: 760px; margin-bottom: 48px; }
.about-heading h1 { font-size: clamp(40px, 5.5vw, 72px); font-weight: 600; letter-spacing: -.05em; line-height: 1.1; margin: 0 0 24px; }
.about-links { max-width: 620px; }
.about-link-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 13px; }
.about-link-card:hover { border-color: #647c4c; }
.about-link-name { display: flex; justify-content: space-between; gap: 16px; color: var(--text); font-size: 16px; font-weight: 600; }
.about-link-name > span { color: var(--accent); }
.about-link-address { color: var(--accent); font: 10px/1.7 var(--mono); overflow-wrap: anywhere; }
@media (min-width: 1600px) { .coming-soon { min-height: 740px; } }
@media (max-width: 760px) {
  .about-page { width: calc(100% - 40px); margin-top: 40px; }
  .site-header, .site-footer { width: calc(100% - 40px); }
  .site-header { min-height: 88px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand img { width: 26px; height: 26px; }
  .site-nav { gap: 18px; font-size: 12px; }
  .site-nav .nav-login { padding: 7px 10px; }
  .nav-login span[aria-hidden] { margin-left: 8px; }
  .coming-soon { min-height: 610px; padding-top: 85px; padding-bottom: 130px; }
  .hero-description { font-size: 16px; }
  .site-footer { align-items: flex-start; }
  .site-footer > div { align-items: flex-end; flex-direction: column; gap: 8px; }
}
@media (max-width: 540px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 0 16px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 8px; }
  .coming-soon { min-height: 550px; padding: 75px 20px 120px; }
  .coming-soon h1 { font-size: clamp(46px, 11.5vw, 62px); }
  .eyebrow { font-size: 9px; letter-spacing: 1.4px; margin-bottom: 24px; }
  .hero-description { font-size: 15px; margin-top: 24px; max-width: 330px; }
  .desktop-break { display: none; }
  .hero-note { font-size: 10px; }
  .hero-bottom { gap: 12px; font-size: 7px; letter-spacing: .7px; bottom: 38px; }
  .loading-track { gap: 2px; }
  .loading-track i { width: 3px; height: 8px; }
  .site-footer { font-size: 10px; flex-direction: column; gap: 15px; padding-block: 23px; }
  .site-footer > div { width: 100%; flex-direction: row; justify-content: space-between; gap: 12px; }
  .auth-section { margin-top: 32px; margin-bottom: 48px; }
  .auth-panel { padding: 26px 22px; }
  .auth-panel h1 { font-size: 34px; }
  .auth-form input[type=email] { font-size: 16px; }
  .blog-main { margin-top: 40px; }
  .post-list a { grid-template-columns: 1fr 20px; gap: 8px; }
  .post-list time { grid-column: 1 / -1; }
  .post-list h2 { font-size: 17px; }
}
@media (max-width: 360px) {
  .site-nav { font-size: 11px; }
  .site-nav .nav-login { padding-inline: 8px; }
}
.home-hero { min-height: 0; padding: 56px 24px 100px; }
.home-hero h1 { font-size: clamp(52px, 6.5vw, 88px); }
.home-hero .eyebrow { margin-bottom: 20px; }
.home-hero .hero-description { margin: 20px auto 25px; max-width: 650px; font-size: 16px; }
.home-hero .hero-bottom { bottom: 32px; }
.featured-environment { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 26px; align-items: center; width: min(100%, 960px); margin-top: 38px; padding: 18px; text-align: left; border: 1px solid #3b4732; border-radius: 10px; background: var(--surface); }
.featured-game-image { height: 166px; overflow: hidden; border-radius: 5px; background: var(--bg); }
.featured-game-image img { display: block; width: 150%; max-width: none; height: 100%; object-fit: cover; object-position: left; image-rendering: pixelated; }
.featured-game-label { display: flex; align-items: center; gap: 9px; margin: 0 0 9px; color: var(--accent); font: 10px/1.5 var(--mono); }
.featured-game-copy h2 { font-size: 30px; line-height: 1.2; letter-spacing: -1px; margin: 0 0 9px; font-weight: 600; }
.featured-game-subtitle { display: block; font-size: 14px; letter-spacing: 0; margin-top: 6px; }
.featured-game-copy > p:not(.featured-game-label) { font-size: 13px; color: var(--muted); margin: 0 0 10px; line-height: 1.7; }
.featured-game-note { font-size: 10px; color: var(--muted); }
.featured-game-link { gap: 12px; white-space: normal; text-align: left; padding-inline: 18px; }
@media (max-width: 760px) {
  .featured-environment { grid-template-columns: 130px minmax(0, 1fr); gap: 18px; max-width: 520px; }
  .featured-game-image { grid-row: span 2; height: 100%; min-height: 166px; }
  .featured-game-link { justify-self: start; min-height: 44px; }
}
@media (max-width: 540px) {
  .home-hero { padding: 36px 20px 86px; }
  .home-hero .hero-description { font-size: 14px; }
  .featured-environment { grid-template-columns: minmax(0, 1fr); margin-top: 30px; padding: 22px; gap: 18px; }
  .featured-game-image { display: none; }
  .featured-game-link { justify-self: stretch; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
