/* agefallgame.com — the game's ratified look carried to the web: obsidian glass, a very subtle silver inlay,
   Marcellus SC for display and IBM Plex Sans Condensed for data (owner decisions G3/H1 + T3, 2026-10-08/09),
   and the silver rift from the AGE|FALL logo as the signature divider. One deliberate dark look. */
:root {
  --obsidian: #060709; --deep: #0a0b0e; --glass: rgba(20, 22, 27, .72); --glass2: rgba(28, 31, 37, .78);
  --sheen: rgba(255, 255, 255, .045); --line: rgba(205, 212, 222, .13); --line2: rgba(205, 212, 222, .24);
  --faint: #4c525b; --muted: #8b919a; --ink: #d7dbe1; --bright: #f2f4f7;
  --silver: #c3c9d2; --silver-hi: #eef1f5; --silver-lo: #6f7782;
  --good: #9ccfa4; --bad: #e39182; --warn: #e0bc72;
  --display: "Marcellus SC", "Cormorant Garamond", Georgia, serif;
  --ui: "IBM Plex Sans Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --text: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --r: 10px; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
html, body { margin: 0; background: var(--obsidian); color: var(--ink); }
body { font: 16px/1.65 var(--text); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
body::before { /* faint polished-glass light from above */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1200px 600px at 70% -10%, rgba(190, 205, 225, .07), transparent 60%),
              radial-gradient(900px 500px at 0% 110%, rgba(150, 165, 185, .05), transparent 60%);
}
a { color: var(--silver-hi); text-underline-offset: 3px; text-decoration-color: var(--silver-lo); }
a:hover { text-decoration-color: var(--silver-hi); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--bright); text-wrap: balance; margin: 0; line-height: 1.12; letter-spacing: .02em; }
h1 { font-size: clamp(44px, 8vw, 92px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; }
h4 { font-size: 17px; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }
.k { font: 500 12px/1.2 var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--ink); max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.mono { font-family: var(--mono); }

/* The rift: a silver hairline cleaved by the logo's crack. */
.rift { position: relative; height: 22px; margin: 6px 0; }
.rift::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line2) 18%, var(--line2) 46%, transparent 49%, transparent 51%, var(--line2) 54%, var(--line2) 82%, transparent); }
.rift::after { content: ""; position: absolute; left: 50%; top: 0; width: 10px; height: 22px; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 22'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='.15'/%3E%3Cstop offset='.5' stop-color='%23eef1f5'/%3E%3Cstop offset='1' stop-color='%23ffffff' stop-opacity='.15'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M6.5 0 5.4 7.5 7 9.2 4.2 13.6 5.6 15 3.2 22 4.6 14.6 3.4 13.4 5.9 9.4 4.4 7.9Z' fill='url(%23g)'/%3E%3C/svg%3E") center / contain no-repeat; }
.rift.left::before { background: linear-gradient(90deg, var(--line2), var(--line2) 46%, transparent 49%, transparent 51%, var(--line2) 54%, transparent); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(6, 7, 9, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 26px; width: auto; display: block; }
.top .sp { flex: 1; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--muted); font: 600 12px/1 var(--ui); letter-spacing: .08em; padding: 8px 10px; cursor: pointer; }
.lang button.on { background: var(--sheen); color: var(--bright); }

/* Buttons: polished silver for the main action, glass for the rest */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .35); color: #0b0d10; text-decoration: none; cursor: pointer;
  font: 600 15px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, #f6f8fb 0%, #cfd5dd 48%, #b7bec8 52%, #dfe4ea 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 8px 24px rgba(0, 0, 0, .35); transition: transform .15s var(--ease), filter .15s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: var(--glass); color: var(--ink); border-color: var(--line2); box-shadow: 0 1px 0 var(--sheen) inset; text-transform: none; letter-spacing: .02em; font-weight: 500; }
.btn.ghost:hover { border-color: var(--silver-lo); color: var(--bright); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--silver-hi); font: inherit; text-decoration: underline; text-decoration-color: var(--silver-lo); cursor: pointer; }

/* Fields */
label { display: flex; flex-direction: column; gap: 7px; font: 500 14px/1.35 var(--ui); letter-spacing: .02em; color: var(--ink); }
label .hint { color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea {
  width: 100%; background: rgba(10, 11, 14, .85); color: var(--bright); border: 1px solid var(--line2); border-radius: 8px;
  padding: 12px 13px; font: 16px/1.4 var(--text); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--silver); box-shadow: 0 0 0 3px rgba(200, 210, 222, .14); }
.code-in { font: 500 24px/1 var(--mono) !important; letter-spacing: .16em; text-transform: uppercase; text-align: center; max-width: 280px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.check { flex-direction: row; align-items: flex-start; gap: 11px; background: rgba(10, 11, 14, .6); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 13px; cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s; }
.check:hover { border-color: var(--line2); }
.check:has(input:checked) { border-color: var(--silver-lo); background: rgba(200, 210, 222, .07); }
.check input { margin-top: 3px; accent-color: #d6dbe2; width: 16px; height: 16px; flex: none; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1 1 110px; min-height: 42px; background: rgba(10, 11, 14, .6); border: 1px solid var(--line); border-radius: 8px; color: var(--muted);
  font: 500 14px/1 var(--ui); letter-spacing: .04em; cursor: pointer; }
.seg button.on { border-color: var(--silver); color: var(--bright); background: rgba(200, 210, 222, .09); }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
legend { padding: 0; margin-bottom: 4px; font: 500 14px/1.35 var(--ui); }
.msg { border-radius: 8px; padding: 12px 14px; font-size: 15px; }
.msg.bad { background: rgba(227, 145, 130, .09); border: 1px solid rgba(227, 145, 130, .35); color: var(--bad); }
.msg.good { background: rgba(156, 207, 164, .08); border: 1px solid rgba(156, 207, 164, .32); color: var(--good); }

/* Glass panels */
.card { position: relative; background: linear-gradient(180deg, var(--glass2), var(--glass)); border: 1px solid var(--line); border-radius: 14px; padding: 26px;
  box-shadow: 0 1px 0 var(--sheen) inset, 0 20px 50px rgba(0, 0, 0, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-width: 0; }
.card::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 241, 245, .35), transparent); }
a.card { text-decoration: none; color: inherit; transition: border-color .2s, transform .2s var(--ease); }
a.card:hover { border-color: var(--line2); transform: translateY(-2px); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
main { flex: 1; }
.section { padding-block: 56px; }
.foot { border-top: 1px solid var(--line); padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font: 14px/1.5 var(--ui); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.foot a { color: var(--muted); }
.foot img { height: 16px; opacity: .6; }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
/* ?shot in the address: full-length screenshots (no reveal wait, hero at a normal screen height) */
.shot .rv { opacity: 1; transform: none; transition: none; }
.shot .hero, .shot .split { min-height: 860px; }

/* Public hero */
.hero { position: relative; min-height: calc(100svh - 62px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero .bg { position: absolute; inset: -4%; z-index: -2; background: center 40% / cover no-repeat; animation: drift 38s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 7, 9, .25) 0%, rgba(6, 7, 9, .2) 35%, rgba(6, 7, 9, .82) 78%, var(--obsidian) 100%),
              radial-gradient(80% 60% at 50% 100%, rgba(6, 7, 9, .6), transparent); }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@media (prefers-reduced-motion: reduce) { .hero .bg { animation: none; } }
.hero .wrap { padding-block: 72px 64px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.logo-big { width: min(640px, 86vw); height: auto; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .6)); }
.logo-big.cut { animation: cut 1.6s var(--ease) both .2s; }
@keyframes cut { from { opacity: 0; clip-path: inset(0 50% 0 50%); letter-spacing: .3em; } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.eras { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font: 500 12px/1 var(--ui); letter-spacing: .26em; text-transform: uppercase; color: var(--silver); }
.eras span + span::before { content: "·"; margin-right: 16px; color: var(--faint); }
.scrollhint { margin-top: 8px; font: 500 11px/1 var(--ui); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.scrollhint::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(var(--silver), transparent); animation: fall 2.4s ease-in-out infinite; }
@keyframes fall { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Public: pillars with pictures */
.pillar { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pillar .pic { aspect-ratio: 16 / 10; background: center / cover no-repeat; border-bottom: 1px solid var(--line); max-width: 100%; }
.pillar .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.quote { font: 400 clamp(24px, 3.4vw, 36px)/1.3 var(--display); color: var(--bright); text-align: center; max-width: 30ch; margin: 0 auto; text-wrap: balance; }
.cta { text-align: center; align-items: center; padding: 44px 26px; }

/* Split layout for login / invite: picture on one side */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: calc(100svh - 62px); }
.split .side { position: relative; background: center / cover no-repeat; }
.split .side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 7, 9, .1), rgba(6, 7, 9, .55) 70%, var(--obsidian)); }
.split .side .cap { position: absolute; left: 32px; bottom: 32px; right: 32px; z-index: 1; max-width: 34ch; }
.split .main { display: flex; align-items: center; padding: 48px max(18px, env(safe-area-inset-right, 0px)) 48px 32px; }
.split .main > * { width: 100%; max-width: 560px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split .side { min-height: 180px; }
  .split .side::after { background: linear-gradient(180deg, rgba(6, 7, 9, .2), var(--obsidian)); }
  .split .side .cap { left: 18px; right: 18px; bottom: 16px; }
  .split .main { padding: 8px max(18px, env(safe-area-inset-right, 0px)) 40px max(18px, env(safe-area-inset-left, 0px)); }
}

/* Stepper */
.steps { display: flex; gap: 8px; }
.steps span { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background .3s; }
.steps span.on { background: linear-gradient(90deg, var(--silver-lo), var(--silver-hi)); }
.step { display: flex; flex-direction: column; gap: 18px; animation: stepin .45s var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* Zone: dashboard */
.subnav { position: sticky; top: calc(62px + env(safe-area-inset-top, 0px)); z-index: 15; background: rgba(6, 7, 9, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 14px 14px 13px; font: 500 14px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.subnav a.on, .subnav a:hover { color: var(--bright); border-color: var(--silver); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tile { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.tile .v { font: 400 30px/1.1 var(--display); color: var(--bright); }
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.news .card { padding: 20px 22px; gap: 8px; display: flex; flex-direction: column; }
.news .d { font: 500 12px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--silver); }
.news p { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.list { display: flex; flex-direction: column; }
.list > div { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.list > div:first-child { border-top: 0; }
.empty { color: var(--muted); padding: 6px 0; }

/* Tables (admin) */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font: 600 11px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .02); }
td code { font-family: var(--mono); }
.tag { display: inline-block; font: 600 11px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 5px; border: 1px solid var(--line2); color: var(--muted); }
.tag.ok { color: var(--good); border-color: rgba(156, 207, 164, .35); }
.tag.no { color: var(--bad); border-color: rgba(227, 145, 130, .35); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 12px 14px; font: 500 14px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.tabs button.on { color: var(--bright); border-color: var(--silver); }

/* Legal pages */
.legal h2 { margin-top: 30px; font-size: 26px; }
.legal p, .legal li { color: var(--ink); max-width: 70ch; }
.legal ul { padding-left: 20px; }
.draft { border: 1px dashed var(--warn); color: var(--warn); border-radius: 8px; padding: 10px 14px; font-size: 14px; }

@media (max-width: 600px) {
  .card { padding: 20px; }
  .section { padding-block: 36px; }
  .top .wrap { height: 56px; }
  .brand img { height: 22px; }
}
