/* CITYSTATE theme: solid night palette, Bungee + Rubik, 3D type, 3D buttons and cards, centered layout. */
:root:root {
  color-scheme: dark;
  --paper: #0e1118;
  --panel: #161b26;
  --panel-2: #1a202d;
  --raise: #212839;
  --street: #1c2230;
  --edge: #090b11;
  --ink: #eef1f6;
  --ink-2: #98a2b6;
  --line: #262d3c;
  --line-2: #323b4f;
  --gold: #ffd23f;
  --gold-d: #a96f00;
  --red: #ff5a47;
  --teal: #2fd3a0;
  --ind: #e8a93a;
  --com: #4f8fe8;
  --civ: #8f7ae6;
  --res: #5cbf7d;
  --park: #2fb8a0;
  --ops: #8a96aa;
  --art: #e0679f;
  --lux: #f0b429;
  --launch: #ff5a47;
  --sign: #ff6b5b;
  --ok: #3fcf7a;
  --radius: 12px;
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bungee', 'Rubik', sans-serif;
  --pixel: 'Bungee', 'Rubik', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --slab: 0 6px 0 var(--edge), 0 22px 34px -18px rgba(0, 0, 0, 0.75);
}
.zone-launch { --zone: var(--launch); }
.zone-map { --zone: var(--gold); }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html,
body {
  background-color: var(--paper);
  font-family: var(--font);
  font-size: 16px;
}
body {
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 255, 255, 0.045), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Cpath d='M0 20L40 0L80 20L40 40Z' fill='none' stroke='%23ffffff' stroke-opacity='.032'/%3E%3C/svg%3E");
  background-size: auto, 180px 180px, 80px 40px;
  background-attachment: fixed;
}
body::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='140'%3E%3Cg fill='%23ffffff' fill-opacity='.022'%3E%3Crect x='0' y='70' width='38' height='70'/%3E%3Crect x='44' y='30' width='30' height='110'/%3E%3Crect x='80' y='88' width='46' height='52'/%3E%3Crect x='132' y='50' width='26' height='90'/%3E%3Crect x='164' y='14' width='34' height='126'/%3E%3Crect x='204' y='80' width='52' height='60'/%3E%3Crect x='262' y='44' width='30' height='96'/%3E%3Crect x='298' y='96' width='40' height='44'/%3E%3Crect x='344' y='24' width='42' height='116'/%3E%3Crect x='392' y='66' width='30' height='74'/%3E%3Crect x='428' y='40' width='24' height='100'/%3E%3Crect x='458' y='84' width='50' height='56'/%3E%3Crect x='514' y='56' width='34' height='84'/%3E%3Crect x='554' y='20' width='28' height='120'/%3E%3Crect x='588' y='76' width='52' height='64'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom / 640px 140px;
}
.shell { position: relative; z-index: 1; }
::selection { background: var(--gold); color: #1d1500; }
h1, h2, h3 { font-family: var(--font); letter-spacing: 0; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
a { color: var(--gold); }
.dim { color: var(--ink-2); }
.center { text-align: center; justify-content: center; }
.kicker,
.modal-kicker {
  font-family: var(--font);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}
.title-3d {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08em;
  margin: 0;
  color: #f4f6fb;
  text-shadow: 0 1px 0 #cfd5e2, 0 2px 0 #bcc3d3, 0 3px 0 #a7afc2, 0 4px 0 #9099ae, 0 5px 0 #79839a, 0 6px 0 #636d85, 0 7px 0 #4e5870, 0 8px 0 #3b445b, 0 20px 26px rgba(0, 0, 0, 0.6);
}
.title-3d .gold {
  color: var(--gold);
  text-shadow: 0 1px 0 #f2bd1a, 0 2px 0 #e6ac0a, 0 3px 0 #d69a00, 0 4px 0 #c28800, 0 5px 0 #ad7600, 0 6px 0 #966400, 0 7px 0 #7f5300, 0 8px 0 #684300, 0 20px 26px rgba(0, 0, 0, 0.6);
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.1;
  margin: 0 0 12px;
  color: #f4f6fb;
  text-shadow: 0 1px 0 #b3bacb, 0 2px 0 #8e97ad, 0 3px 0 #6a748c, 0 4px 0 #485168, 0 12px 18px rgba(0, 0, 0, 0.5);
}
.section-lede,
.hero-lede { color: var(--ink-2); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; max-width: 62ch; margin: 0 auto; }
.hero-note { color: var(--ink-2); font-size: 14px; margin: 0; }
.section-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }

/* Shell */
.shell { grid-template-columns: 264px minmax(0, 1fr); }
.main, .main-wide { min-width: 0; }
.landing2 > *, .lp > * { min-width: 0; max-width: 100%; }
.ticker { max-width: 100%; contain: inline-size; }
.side { background: #0c0f16; border-right: 1px solid var(--line); padding: 18px 14px 24px; gap: 16px; }
.brand { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: 0.02em; color: var(--ink); text-shadow: 0 2px 0 #3b445b; }
.brand-mark { border-radius: 7px; border: 0; box-shadow: 0 3px 0 var(--edge); }
.nav { gap: 2px; }
.nav-item { font-family: var(--font); font-weight: 600; font-size: 14.5px; color: var(--ink-2); border-radius: 10px; padding: 9px 10px; gap: 10px; }
.nav-item:hover { background: #151a24; color: var(--ink); }
.nav-item.on { background: var(--raise); color: var(--ink); box-shadow: inset 3px 0 0 var(--zone), 0 3px 0 var(--edge); }
.nav-item .zone-chip { width: 10px; height: 10px; border-radius: 3px; background: var(--zone); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
.nav-badge { margin-left: auto; font-family: var(--font); font-weight: 800; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; color: #fff; background: var(--launch); box-shadow: 0 2px 0 #8f2216; }
.main,
.main-wide { margin-inline: auto; width: 100%; padding: 28px clamp(16px, 3.6vw, 44px) 120px; }
.main { max-width: 1180px; }
.main-wide { max-width: 1280px; }

/* Permit */
.permit { background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px; gap: 10px; box-shadow: var(--slab); }
.permit-title { font-family: var(--font); font-weight: 800; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0; }
.permit-copy { color: var(--ink-2); font-size: 14px; margin: 0; }
.permit-name { font-weight: 700; }
.permit-link-x { display: flex; align-items: center; gap: 8px; justify-content: center; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--raise); border: 0; border-radius: 10px; padding: 9px; cursor: pointer; box-shadow: 0 3px 0 var(--edge); }
.permit-link-x svg { width: 14px; height: 14px; }
.permit-link-x:hover { color: var(--gold); }
.btn-block { width: 100%; }

/* 3D buttons */
.btn {
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 12px;
  padding: 12px 18px;
  border: 0;
  position: relative;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s;
}
.btn-primary { color: #2a1d00; background: var(--gold); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.08), 0 5px 0 var(--gold-d), 0 12px 20px -8px rgba(0, 0, 0, 0.6); }
.btn-primary:not(:disabled):hover { background: #ffdc5c; transform: translateY(-1px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 6px 0 var(--gold-d), 0 16px 24px -8px rgba(0, 0, 0, 0.6); }
.btn-primary:not(:disabled):active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 1px 0 var(--gold-d); }
.btn-primary::after { display: none; }
.btn-ghost { color: var(--ink); background: var(--raise); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 5px 0 var(--edge), 0 12px 20px -8px rgba(0, 0, 0, 0.6); }
.btn-ghost:not(:disabled):hover { background: #283043; color: var(--ink); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 6px 0 var(--edge), 0 16px 24px -8px rgba(0, 0, 0, 0.6); }
.btn-ghost:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.btn-danger { color: #fff; background: #d9412f; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), 0 5px 0 #7d1d12; }
.btn-danger:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 #7d1d12; }
.btn-launch { color: #fff; background: var(--launch); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 5px 0 #8f2216, 0 14px 24px -8px rgba(255, 90, 71, 0.55); }
.btn-launch:not(:disabled):hover { background: #ff6d5b; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 6px 0 #8f2216, 0 18px 28px -8px rgba(255, 90, 71, 0.6); }
.btn-launch:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 #8f2216; }
.btn:disabled { opacity: 0.5; transform: none; }
.btn-sm { padding: 8px 12px; font-size: 13.5px; border-radius: 10px; }
.btn-sm.btn-primary, .btn-sm.btn-ghost { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 0 var(--edge); }
.btn-sm.btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 3px 0 var(--gold-d); }
.btn-lg { padding: 16px 26px; font-size: 17px; border-radius: 14px; }
.btn img { border-radius: 4px; }
.linkish { color: var(--ink-2); font-family: var(--font); font-weight: 600; text-underline-offset: 3px; }
.linkish:hover { color: var(--gold); }
.row-actions.center { justify-content: center; }

/* Surfaces */
.district { gap: 22px; }
.district-head { border-bottom: 0; padding-bottom: 10px; position: relative; }
.district-head::after { content: ''; position: absolute; left: 0; bottom: 0; width: 72px; height: 5px; border-radius: 5px; background: var(--zone); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
.district-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.4vw, 38px); display: flex; align-items: center; gap: 12px; text-shadow: 0 1px 0 #a7afc2, 0 2px 0 #79839a, 0 3px 0 #4e5870, 0 10px 14px rgba(0, 0, 0, 0.5); }
.district-head h1 .zone-chip { width: 16px; height: 16px; border-radius: 4px; background: var(--zone); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.55); }
.lede { color: var(--ink-2); font-size: 16px; max-width: 70ch; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--slab); padding: 20px; }
.panel-head h2 { font-family: var(--font); font-size: 19px; font-weight: 700; }
.note { color: var(--ink-2); }
.tabs { background: #12161f; border: 1px solid var(--line); border-radius: 14px; padding: 5px; gap: 4px; display: flex; flex-wrap: wrap; }
.tabs button { font-family: var(--font); font-weight: 600; border-radius: 10px; border: 0; color: var(--ink-2); background: transparent; padding: 9px 14px; }
.tabs button.on { background: var(--raise); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 3px 0 var(--edge); }
.tabs button .count { background: var(--gold); color: #1d1500; border-radius: 6px; padding: 1px 6px; margin-left: 6px; font-size: 12px; font-weight: 700; }
input,
select,
textarea { font-family: var(--font); background: #0f131c; color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.35); transition: border-color 0.15s, box-shadow 0.15s; }
input:focus,
select:focus,
textarea:focus { outline: none; border-color: var(--gold); box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 210, 63, 0.2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.field-label { font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.table th { font-family: var(--font); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.table td, .table th { border-color: var(--line); }
.table tr.clickable:hover td { background: #1a2030; cursor: pointer; }
.tag { border-radius: 6px; font-family: var(--font); font-weight: 600; }
.meter { border-radius: 999px; background: #0f131c; box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.4); overflow: hidden; border: 0; }
.meter-fill { border-radius: 999px; }
.amt { font-family: var(--mono); font-weight: 700; }
:is(.item, .fit, .menu-item, .recipe, .contract, .job, .inv-row, .feature, .earn-card, .tut-step) { border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); box-shadow: 0 4px 0 var(--edge); }
.banner, .notice { border-radius: 14px; border: 1px solid #4a4128; background: #1d1b16; padding: 14px 16px; box-shadow: 0 4px 0 var(--edge); }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.notice p { margin: 0; }
.hero-slim { border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: var(--slab); }
.world { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 8px 0 var(--edge), 0 30px 50px -24px rgba(0, 0, 0, 0.9); }
.hud-chip { font-family: var(--font); font-weight: 600; border-radius: 8px; background: rgba(14, 17, 24, 0.88); color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
.toast { background: var(--raise); color: var(--ink); border: 1px solid var(--line-2); border-left: 5px solid var(--com); border-radius: 12px; box-shadow: 0 5px 0 var(--edge), 0 20px 30px -16px rgba(0, 0, 0, 0.9); font-family: var(--font); }
.toast-ok { border-left-color: var(--ok); }
.toast-err { border-left-color: var(--sign); }
.gate { text-align: center; max-width: 560px; margin: 8vh auto; padding: 36px 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--slab); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.gate h1 { font-family: var(--display); font-weight: 400; font-size: 32px; text-shadow: 0 2px 0 #79839a, 0 4px 0 #3b445b; }
.mobile-bar, .tabbar { background: rgba(12, 15, 22, 0.94); backdrop-filter: blur(10px); border-color: var(--line); }
.tabbar button { font-family: var(--font); font-weight: 600; color: var(--ink-2); }
.tabbar button.on { color: var(--gold); }
.guide { border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: var(--slab); }
.guide-bar { height: 5px; border-radius: 5px; background: #0f131c; overflow: hidden; }
.guide-bar i { display: block; height: 100%; background: var(--gold); }
.guide-title { font-family: var(--font); font-weight: 700; font-size: 17px; }
.guide-step { font-family: var(--font); font-weight: 800; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.check { display: inline-block; width: 7px; height: 12px; border: solid currentColor; border-width: 0 3px 3px 0; transform: translate(0, -2px) rotate(45deg); }
.tick-dot { display: inline-block; width: 8px; height: 8px; background: var(--launch); transform: rotate(45deg); align-self: center; }

/* Boot, loading, progress */
.boot { background: var(--paper); transition: opacity 0.4s; }
.boot-out { opacity: 0; pointer-events: none; }
.boot p { font-family: var(--display); color: var(--ink-2); }
.scroll-progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 90; transform-origin: 0 50%; transform: scaleX(0); background: var(--gold); box-shadow: 0 2px 0 var(--gold-d); pointer-events: none; }
.page-loading { display: flex; gap: 8px; justify-content: center; padding: 18vh 0; }
.page-loading span { width: 14px; height: 14px; border-radius: 4px; background: var(--gold); opacity: 0.25; box-shadow: 0 3px 0 var(--gold-d); }
.spinner { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: var(--gold); margin-right: 8px; vertical-align: -2px; }

/* Modal + sign in */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-scrim { position: absolute; inset: 0; border: 0; background: rgba(6, 8, 12, 0.78); cursor: pointer; }
.modal-card { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 22px; padding: 28px 24px 22px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 8px 0 var(--edge), 0 40px 80px -30px rgba(0, 0, 0, 0.95); display: flex; flex-direction: column; gap: 12px; }
.modal-card h2 { font-family: var(--display); font-weight: 400; font-size: 28px; text-shadow: 0 2px 0 #79839a, 0 4px 0 #3b445b; }
.modal-lede { color: var(--ink-2); margin: 0; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--raise); cursor: pointer; box-shadow: 0 3px 0 var(--edge); }
.modal-x::before,
.modal-x::after { content: ''; position: absolute; left: 10px; right: 10px; top: 17px; height: 2px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.modal-x::after { transform: rotate(-45deg); }
.modal-x:hover { background: #283043; }
.modal-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #2a1715; border: 1px solid #6b2a22; color: #ffc9c2; font-size: 14px; }
.modal-foot { font-size: 13px; margin: 4px 0 0; }
body.has-modal { overflow: hidden; }
.login-grid { display: grid; gap: 10px; }
.login-btn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--raise); border: 0; border-radius: 12px; padding: 12px 14px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 0 var(--edge); transition: transform 0.08s, box-shadow 0.08s, background 0.15s; }
.login-btn:hover { background: #283043; }
.login-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.login-btn:disabled { opacity: 0.6; cursor: progress; }
.login-btn svg, .login-btn img { width: 24px; height: 24px; flex: none; }
.login-btn span { display: flex; flex-direction: column; }
.login-btn small { color: var(--ink-2); font-size: 12.5px; }
.login-x { background: #050608; }
.login-x:hover { background: #111318; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.login-email { display: flex; gap: 8px; flex-wrap: wrap; }
.login-email input { flex: 1 1 200px; }
.login-email p { flex-basis: 100%; margin: 0; }

/* Hero with the 3D city */
.landing2, .lp { display: flex; flex-direction: column; gap: 72px; }
.hero3d { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-top: clamp(12px, 3vw, 32px); }
.hero3d .row-actions { margin-top: 6px; }
.scene { position: relative; width: min(1120px, 100%); aspect-ratio: 2.15 / 1; margin-top: 18px; border-radius: 24px; background: radial-gradient(ellipse 70% 60% at 55% 45%, #1c2334, #11151e 75%); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 0 var(--edge), 0 50px 70px -40px rgba(0, 0, 0, 0.95); transition: transform 0.3s ease-out; will-change: transform; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 24px; }
.hero-stats { display: flex; justify-content: center; gap: clamp(20px, 5vw, 56px); flex-wrap: wrap; margin: 10px 0 0; }
.hero-stats div { display: flex; flex-direction: column; align-items: center; }
.hero-stats dd { margin: 0; font-family: var(--display); font-size: 32px; color: var(--ink); text-shadow: 0 2px 0 #79839a, 0 4px 0 #3b445b; }
.hero-stats dt { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.ticker { overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 4px 0 var(--edge); color: var(--gold); font-family: var(--font); font-weight: 600; white-space: nowrap; }
.ticker-track { display: inline-flex; align-items: center; gap: 28px; padding: 12px 0; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat3d { text-align: center; padding: 20px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--slab); display: flex; flex-direction: column; gap: 6px; }
.stat3d b { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); text-shadow: 0 2px 0 #79839a, 0 4px 0 #3b445b; font-variant-numeric: tabular-nums; }
.stat3d span { color: var(--ink-2); font-size: 14px; }

/* Timeline with 3D numbers */
.timeline { position: relative; list-style: none; margin: 28px 0 8px; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.timeline::before { content: ''; position: absolute; top: 34px; left: 12.5%; right: 12.5%; height: 6px; border-radius: 6px; background: #1c2230; box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.45); }
.timeline::after { content: ''; position: absolute; top: 34px; left: 12.5%; width: 12%; height: 6px; border-radius: 6px; background: var(--gold); box-shadow: 0 0 14px rgba(255, 210, 63, 0.6); opacity: 0; }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 6px; }
.timeline strong { font-size: 18px; margin-top: 8px; }
.timeline p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 30ch; }
.num3d { position: relative; z-index: 1; width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-family: var(--display); font-size: 32px; color: #2a1d00; background: var(--gold); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.55), inset 0 -3px 0 rgba(0, 0, 0, 0.1), 0 8px 0 var(--gold-d), 0 20px 26px -10px rgba(0, 0, 0, 0.7); }
.flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; margin: 26px 0 14px; }
.flow-node { padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--raise); box-shadow: 0 5px 0 var(--edge); display: flex; flex-direction: column; min-width: 170px; text-align: center; }
.flow-node b { font-size: 16px; }
.flow-node span { color: var(--ink-2); font-size: 13px; }
.flow-gold { background: var(--gold); border-color: transparent; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 5px 0 var(--gold-d); }
.flow-gold b, .flow-gold span { color: #2a1d00; }
.flow-pipe { position: relative; width: 56px; height: 8px; border-radius: 8px; background: #12161f; box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.5); overflow: hidden; }
.flow-pipe i { position: absolute; top: 1px; left: -8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px rgba(255, 210, 63, 0.7); }

/* Capital preview, feature cards, CTA */
.capital { position: relative; width: min(1040px, 100%); aspect-ratio: 2 / 1; margin-top: 18px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 10px 0 var(--edge), 0 40px 60px -34px rgba(0, 0, 0, 0.95); transition: transform 0.3s ease-out; }
.capital canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.capital::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 17, 24, 0.85)); pointer-events: none; }
.capital-cta { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); }
.capital-cta:not(:disabled):hover, .capital-cta:not(:disabled):active { transform: translateX(-50%) translateY(-1px); }
.features3d { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card3d { position: relative; padding: 22px 20px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--slab); display: flex; flex-direction: column; gap: 6px; overflow: hidden; transition: transform 0.25s ease-out, box-shadow 0.25s; }
.card3d::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--zone); }
.card3d strong { font-family: var(--display); font-weight: 400; font-size: 19px; text-shadow: 0 2px 0 #3b445b; }
.card3d span { color: var(--ink-2); }
.cta3d { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(28px, 5vw, 54px) 22px; border-radius: 24px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: var(--slab); }

/* Launch wizard */
.lp-wizard { border-radius: 24px; border: 1px solid var(--line-2); background: var(--panel); padding: clamp(18px, 3vw, 34px); box-shadow: var(--slab); }
.wz-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.wz-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3vw, 32px); text-shadow: 0 2px 0 #79839a, 0 4px 0 #3b445b; }
.stepper { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 12px; background: var(--raise); color: var(--ink-2); font-weight: 600; font-size: 13.5px; box-shadow: 0 3px 0 var(--edge); }
.stepper li span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #0f131c; font-size: 13px; font-family: var(--mono); font-weight: 700; }
.stepper li.on { color: var(--ink); box-shadow: inset 0 0 0 2px var(--gold), 0 3px 0 var(--edge); }
.stepper li.on span { background: var(--gold); color: #2a1d00; }
.stepper li.done span { background: var(--ok); color: #06210f; }
.wz-grid { display: grid; gap: 24px; }
.wz-split { grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr); align-items: start; }
.wz-form { display: flex; flex-direction: column; gap: 14px; }
.wz-form h3, .wz-grid h3 { font-size: 21px; }
.wz-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 0; }
.wz-center h3 { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 3vw, 30px); text-shadow: 0 2px 0 #79839a, 0 4px 0 #3b445b; }
.wz-center p { color: var(--ink-2); max-width: 60ch; }
.wz-success h3 { color: var(--gold); text-shadow: 0 2px 0 #c28800, 0 4px 0 #7f5300; }
.wz-wallet { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid #2c6b45; background: #13241b; }
.wz-wallet span { display: flex; flex-direction: column; }
.wz-status { display: flex; align-items: center; padding: 12px 14px; border-radius: 12px; background: #1d1b16; border: 1px solid #4a4128; }
.token-card { display: flex; gap: 14px; padding: 18px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--raise); box-shadow: 0 8px 0 var(--edge), 0 30px 40px -24px rgba(0, 0, 0, 0.9); }
.token-logo { flex: none; width: 84px; height: 84px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: var(--gold); font-family: var(--display); font-size: 26px; color: #2a1d00; box-shadow: 0 5px 0 var(--gold-d); }
.token-logo.sm { width: 56px; height: 56px; font-size: 18px; border-radius: 14px; box-shadow: 0 4px 0 var(--gold-d); }
.token-logo img { width: 100%; height: 100%; object-fit: cover; }
.token-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.token-name { font-weight: 700; font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.token-sym { font-family: var(--display); color: var(--gold); margin: 0; }
.token-desc { color: var(--ink-2); font-size: 14px; margin: 4px 0; overflow-wrap: anywhere; }
.token-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.token-tags span { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: #0f131c; }
.lp-recent { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; text-align: left; }
.launch-card { display: flex; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 5px 0 var(--edge); }
.launch-card p { margin: 0; }
.lp-faq { width: 100%; max-width: 820px; margin: 0 auto; text-align: left; }
.lp-faq .section-title { text-align: center; }
.lp-faq details { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--panel); margin-bottom: 10px; box-shadow: 0 4px 0 var(--edge); }
.lp-faq summary { cursor: pointer; font-weight: 700; }
.lp-faq details p { color: var(--ink-2); margin: 10px 0 0; }
.tut-num .check { color: #fff; }

@media (max-width: 1000px) {
  .wz-split { grid-template-columns: 1fr; }
  .features3d { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .timeline::before, .timeline::after { display: none; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { background: #0c0f16; }
  .scene { aspect-ratio: 1 / 1.02; border-radius: 18px; }
  .scene canvas { border-radius: 18px; }
  .capital { aspect-ratio: 4 / 3; }
  .flow-pipe { width: 26px; }
  .flow-node { min-width: 130px; padding: 12px; }
  .landing2, .lp { gap: 56px; }
  body::after { height: 90px; background-size: 420px 90px; }
}
@media (max-width: 560px) {
  .features3d, .timeline { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-pipe { width: 8px; height: 26px; }
  .flow-pipe i { left: 1px; top: -8px; }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .page-loading span { animation: load-b 0.9s ease-in-out infinite; }
  .page-loading span:nth-child(2) { animation-delay: 0.12s; }
  .page-loading span:nth-child(3) { animation-delay: 0.24s; }
  .page-loading span:nth-child(4) { animation-delay: 0.36s; }
  .spinner { animation: spin-r 0.8s linear infinite; }
  .modal-card { animation: modal-in 0.35s cubic-bezier(0.2, 1.2, 0.4, 1) both; }
  .modal-scrim { animation: fade 0.25s ease both; }
  .hero3d > * { animation: hero-in 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
  .hero3d > :nth-child(2) { animation-delay: 0.08s; }
  .hero3d > :nth-child(3) { animation-delay: 0.18s; }
  .hero3d > :nth-child(4) { animation-delay: 0.26s; }
  .hero3d > :nth-child(5) { animation-delay: 0.34s; }
  .hero3d > :nth-child(6) { animation-delay: 0.42s; }
  .title-3d > span { display: inline-block; animation: drop-in 0.9s cubic-bezier(0.2, 1.3, 0.35, 1) both; }
  .title-3d > span:nth-child(2) { animation-delay: 0.14s; }
  .timeline::after { animation: track 4.8s cubic-bezier(0.6, 0, 0.4, 1) infinite; }
  .timeline li .num3d { animation: num-pop 4.8s ease-in-out infinite; animation-delay: calc(var(--i) * 1.2s); }
  .flow-pipe i { animation: flow 1.6s linear infinite; }
  .flow-pipe i:nth-child(2) { animation-delay: 0.53s; }
  .flow-pipe i:nth-child(3) { animation-delay: 1.06s; }
  .flow-gold { animation: vault 2.4s ease-in-out infinite; }
  .ticker-track { animation: marquee 46s linear infinite; }
  .token-card { animation: floaty 5s ease-in-out infinite; }
  .card3d:hover, .stat3d:hover, .launch-card:hover { box-shadow: 0 10px 0 var(--edge), 0 30px 40px -18px rgba(0, 0, 0, 0.8); }
  .stat3d, .launch-card { transition: transform 0.2s, box-shadow 0.2s; }
  .stat3d:hover, .launch-card:hover { transform: translateY(-4px); }
  .wz-success { animation: rise 0.5s ease both; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 560px) {
  .flow-pipe i { animation-name: flow-down; }
}
@keyframes load-b { 50% { opacity: 1; transform: translateY(-8px); } }
@keyframes spin-r { to { transform: rotate(360deg); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(0.96); } }
@keyframes fade { from { opacity: 0; } }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes drop-in { 0% { opacity: 0; transform: translateY(-40px) rotateX(70deg); } 100% { opacity: 1; transform: none; } }
@keyframes track { 0% { left: 12.5%; width: 0; opacity: 1; } 75% { left: 12.5%; width: 75%; opacity: 1; } 100% { left: 12.5%; width: 75%; opacity: 0; } }
@keyframes num-pop { 0%, 20%, 100% { transform: translateY(0); } 6% { transform: translateY(-8px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.55), 0 14px 0 var(--gold-d), 0 26px 30px -10px rgba(0, 0, 0, 0.7); } 12% { transform: translateY(2px); } }
@keyframes flow { to { left: 100%; } }
@keyframes flow-down { from { top: -8px; } to { top: 100%; } }
@keyframes vault { 50% { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 5px 0 var(--gold-d), 0 0 26px rgba(255, 210, 63, 0.45); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes floaty { 50% { transform: translateY(-6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Wallet-first sign in, callouts, city page extras */
.login-wallet { box-shadow: inset 0 0 0 2px var(--gold), 0 4px 0 var(--edge); }
.modal-warn { margin: 0; padding: 10px 12px; border-radius: 10px; background: #1d1b16; border: 1px solid #4a4128; color: #f3e6bd; font-size: 13.5px; }
.platform-badge { display: inline-block; margin-right: 10px; padding: 3px 9px; border-radius: 7px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; vertical-align: 2px; color: #111; background: var(--gold); box-shadow: 0 2px 0 var(--gold-d); }
.callout-pumpfun .platform-badge { background: #5fd38d; box-shadow: 0 2px 0 #2b7a4b; }
.callout-x .platform-badge { background: #f1f3f8; box-shadow: 0 2px 0 #8a93a8; }
.callout-gmgn .platform-badge { background: #9be15d; box-shadow: 0 2px 0 #4f7d24; }
.callout-telegram .platform-badge { background: #4fb3ef; box-shadow: 0 2px 0 #1f6a99; }
.callout .inline-form input { min-width: 200px; }
.announce { margin-bottom: 4px; }
.town-head .row-actions { margin-top: 10px; flex-wrap: wrap; }
.tabs button .count:empty, .tabs button .count[data-zero] { display: none; }

/* Menu ------------------------------------------------------------------------------------------ */
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.side-close { display: none; }
.nav { gap: 16px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-head { margin: 0 0 4px 10px; font-family: var(--font); font-weight: 800; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #5d6880; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 12px; min-height: 42px; text-align: left; width: 100%; transition: background 0.15s, color 0.15s, transform 0.15s; }
.nav-item .zone-chip { display: none; }
.nav-ico { position: relative; flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--zone); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 3px 0 rgba(0, 0, 0, 0.55); transition: transform 0.15s, box-shadow 0.15s; }
.nav-ico::before { content: ''; position: absolute; left: 7px; right: 7px; bottom: 6px; height: 9px; border-radius: 2px 2px 1px 1px; background: rgba(0, 0, 0, 0.26); }
.nav-ico::after { content: ''; position: absolute; left: 11px; width: 6px; bottom: 6px; height: 5px; background: rgba(255, 255, 255, 0.45); border-radius: 1px; }
.nav-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.nav-text b { font-weight: 600; font-size: 14.5px; color: inherit; }
.nav-text small { display: none; color: var(--ink-2); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item.on { background: var(--raise); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 3px 0 var(--edge); }
.nav-item.on .nav-ico { transform: translateY(-1px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 4px 0 rgba(0, 0, 0, 0.6), 0 0 16px color-mix(in srgb, var(--zone) 55%, transparent); }
.nav-item:hover .nav-ico { transform: translateY(-1px); }
.nav-hot .nav-text b { color: #fff; }
.nav-hot.on .nav-text b { color: var(--navy); }
.menu-btn { display: grid; place-content: center; gap: 4px; width: 44px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: var(--raise); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 3px 0 var(--edge); }
.menu-btn span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform 0.25s ease, opacity 0.2s ease; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-bal:not(:empty) { margin-left: auto; padding: 6px 10px; border-radius: 10px; background: #0f131c; font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--ink); box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.4); }
.mobile-bal .sym { color: var(--gold); }
body.menu-lock { overflow: hidden; }

@media (max-width: 860px) {
  .mobile-bar { padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: rgba(12, 15, 22, 0.94); backdrop-filter: blur(10px); }
  .mobile-bar .brand { font-size: 15px; gap: 8px; }
  .mobile-bar .menu-btn { margin-left: 8px; }
  .mobile-bal:empty + .menu-btn { margin-left: auto; }
  .side {
    width: min(360px, 90vw);
    padding: 0 14px calc(96px + env(safe-area-inset-bottom));
    gap: 16px;
    background: #0c0f16;
    border-right: 1px solid var(--line);
    box-shadow: 30px 0 60px rgba(0, 0, 0, 0.6);
    transform: translateX(-104%);
    transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.2, 1), visibility 0.32s;
    visibility: hidden;
    z-index: 70;
    overscroll-behavior: contain;
  }
  .menu-open .side { transform: none; visibility: visible; }
  .side-head { position: sticky; top: 0; z-index: 2; margin: 0 -14px; padding: max(12px, env(safe-area-inset-top)) 12px 12px 16px; background: #0c0f16; border-bottom: 1px solid var(--line); }
  .side .side-head .brand { display: flex; }
  .side-close { display: block; position: relative; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--raise); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 3px 0 var(--edge); }
  .side-close::before, .side-close::after { content: ''; position: absolute; left: 11px; right: 11px; top: 19px; height: 2.5px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
  .side-close::after { transform: rotate(-45deg); }
  .side-close:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
  .side .permit { padding: 14px; }
  .side .permit-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 18px; }
  .nav-group { gap: 4px; }
  .nav-item { min-height: 56px; padding: 9px 10px; border-radius: 14px; gap: 14px; }
  .nav-ico { width: 36px; height: 36px; border-radius: 11px; }
  .nav-ico::before { left: 9px; right: 9px; bottom: 8px; height: 12px; }
  .nav-ico::after { left: 14px; width: 8px; bottom: 8px; height: 7px; }
  .nav-text b { font-size: 15.5px; }
  .nav-text small { display: block; }
  .scrim { z-index: 65; background: rgba(5, 7, 12, 0.62); backdrop-filter: blur(3px); }
  .tabbar { background: rgba(12, 15, 22, 0.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 4px; }
  .tabbar button { min-height: 46px; border-radius: 12px; font-family: var(--font); font-weight: 700; font-size: 13px; color: var(--ink-2); }
  .tabbar button.on { color: #2a1d00; background: var(--gold); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 3px 0 var(--gold-d); }
  .main, .main-wide { padding: 18px 14px calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .hero3d .row-actions, .section-center .row-actions, .cta3d .row-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .hero3d .row-actions .btn, .section-center .row-actions .btn, .cta3d .row-actions .btn { width: 100%; }
  .title-3d { font-size: clamp(36px, 11vw, 54px); }
  .hero-lede, .section-lede { font-size: 16px; }
  .landing2, .lp { gap: 48px; }
  .stat3d { padding: 16px 10px; }
  .stat3d b { font-size: 26px; }
  .lp-wizard { padding: 16px; border-radius: 18px; }
  .wz-head { align-items: flex-start; }
  .stepper li { padding: 6px 10px 6px 6px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 860px) {
  .menu-open .nav-group > *, .menu-open .side .permit { animation: nav-in 0.38s cubic-bezier(0.2, 0.9, 0.2, 1) both; animation-delay: calc(var(--n, 0) * 18ms + 60ms); }
  .scrim:not([hidden]) { animation: fade 0.25s ease both; }
}
@keyframes nav-in { from { opacity: 0; transform: translateX(-16px); } }

/* My jobs ----------------------------------------------------------------------------------------- */
.myjobs { display: flex; flex-direction: column; gap: 10px; }
.myjob { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); box-shadow: 0 4px 0 var(--edge); }
.myjob-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; flex: 1; }
.myjob-main .meter { flex-basis: 100%; height: 8px; }
.myjob-shift .platform-badge { background: var(--ind); box-shadow: 0 2px 0 #8a5a10; }
.myjob-empty { opacity: 0.75; box-shadow: none; border-style: dashed; }
.slots { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 8px; min-width: 130px; }
.slots b { font-family: var(--display); font-size: 22px; text-shadow: 0 2px 0 #3b445b; }
.slots span { color: var(--ink-2); font-size: 13px; }
.slots i { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--gold) var(--p), #0f131c var(--p)); box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.35); }
@media (max-width: 560px) {
  .panel-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .slots { width: 100%; }
}

/* Chat everywhere -------------------------------------------------------------------------------- */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 46; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border: 0; border-radius: 16px; cursor: pointer; font: 700 15px var(--font); color: #2a1d00; background: var(--gold); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), 0 5px 0 var(--gold-d), 0 16px 30px -10px rgba(0, 0, 0, 0.7); transition: transform 0.1s, box-shadow 0.1s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 1px 0 var(--gold-d); }
.chat-fab-ico, .chat-btn::before { position: relative; display: block; width: 20px; height: 15px; border-radius: 5px; background: currentColor; }
.chat-fab-ico::after, .chat-btn::after { content: ''; position: absolute; left: 4px; bottom: -5px; border: 5px solid transparent; border-top-color: currentColor; border-left-width: 2px; }
.chat-btn { display: none; position: relative; width: 44px; height: 40px; margin-left: auto; border: 0; border-radius: 12px; cursor: pointer; color: var(--ink); background: var(--raise); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 3px 0 var(--edge); place-items: center; }
.chat-btn::before { content: ''; color: var(--ink); }
.chat-btn::after { left: 16px; bottom: 3px; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; font: 800 11px var(--font); color: #fff; background: var(--launch); box-shadow: 0 2px 0 #8f2216; }
.chat-fab.has-new::after, .chat-btn.has-new .badge[hidden] + * { content: ''; }
.chat-fab.has-new { animation: nudge 2.4s ease-in-out infinite; }
body.dock-open .chat-fab { display: none; }
.chat-dock { position: fixed; right: 22px; bottom: 22px; z-index: 47; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 44px)); display: flex; flex-direction: column; border-radius: 20px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 8px 0 var(--edge), 0 40px 70px -30px rgba(0, 0, 0, 0.95); overflow: hidden; }
.dock-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; border-bottom: 1px solid var(--line); background: #12161f; }
.dock-tabs { display: flex; gap: 4px; flex: 1; }
.dock-tabs button { position: relative; flex: 1; padding: 9px 8px; border: 0; border-radius: 10px; cursor: pointer; font: 600 13.5px var(--font); color: var(--ink-2); background: transparent; }
.dock-tabs button.on { color: var(--ink); background: var(--raise); box-shadow: 0 3px 0 var(--edge); }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; font: 800 11px var(--font); font-style: normal; color: #fff; background: var(--launch); vertical-align: 1px; }
.count.soft { background: #2c3448; color: var(--ink-2); }
.dock-close, .dock-back { position: relative; flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; cursor: pointer; background: var(--raise); box-shadow: 0 3px 0 var(--edge); }
.dock-close::before, .dock-close::after { content: ''; position: absolute; left: 10px; right: 10px; top: 17px; height: 2px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.dock-close::after { transform: rotate(-45deg); }
.dock-back::before { content: ''; position: absolute; left: 14px; top: 12px; width: 9px; height: 9px; border: solid var(--ink); border-width: 0 0 2.5px 2.5px; transform: rotate(45deg); }
.dock-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dock-chips { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.dock-chips button { position: relative; flex: none; padding: 6px 12px; border: 0; border-radius: 999px; cursor: pointer; font: 600 13px var(--font); color: var(--ink-2); background: #12161f; }
.dock-chips button.on { color: #2a1d00; background: var(--gold); box-shadow: 0 2px 0 var(--gold-d); }
.dock-chips .dot { position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--launch); }
.dock-log { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.dmsg { display: flex; gap: 10px; align-items: flex-start; }
.dmsg > div { min-width: 0; }
.dmsg-meta { display: flex; gap: 8px; align-items: baseline; margin: 0 0 2px; }
.dmsg-meta time, .bubble time { color: #69748b; font-size: 11.5px; }
.dmsg-text { margin: 0; overflow-wrap: anywhere; line-height: 1.45; }
.dmsg-mine .dock-name { color: var(--gold); }
.dmsg-shout { padding: 8px 10px; border-radius: 12px; background: #1d1b16; border: 1px solid #4a4128; }
.dmsg-system { margin: 0; text-align: center; color: var(--ink-2); font-size: 13px; }
.dock-name { padding: 0; border: 0; background: none; cursor: pointer; font: 700 13.5px var(--font); color: var(--ink); }
.dock-name:hover { color: var(--gold); text-decoration: underline; }
.dock-input { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #12161f; }
.dock-input input { flex: 1; min-width: 0; }
.dock-new { border-top: 0; border-bottom: 1px solid var(--line); }
.dock-signin, .dock-empty { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; text-align: center; }
.dock-empty { flex: 1; flex-direction: column; border: 0; }
.dock-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.dock-thread { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 12px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); background: transparent; }
.dock-thread:hover { background: var(--raise); }
.dock-thread-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dock-thread-main span { color: var(--ink-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-thread.unread .dock-thread-main span { color: var(--ink); font-weight: 600; }
.dock-thread-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: #69748b; font-size: 11.5px; }
.online-dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px rgba(63, 207, 122, 0.25); vertical-align: 1px; }
.dock-person { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.dock-person > span { flex: 1; display: flex; flex-direction: column; }
.dock-thread-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.dock-thread-head > div { flex: 1; display: flex; flex-direction: column; }
.dock-thread-head .dim { font-size: 12px; }
.bubble { max-width: 82%; align-self: flex-start; padding: 9px 12px; border-radius: 16px 16px 16px 6px; background: var(--raise); box-shadow: 0 2px 0 var(--edge); }
.bubble p { margin: 0 0 2px; overflow-wrap: anywhere; line-height: 1.45; }
.bubble-mine { align-self: flex-end; border-radius: 16px 16px 6px 16px; color: #2a1d00; background: var(--gold); box-shadow: 0 2px 0 var(--gold-d); }
.bubble-mine time { color: #6b5410; }
@media (max-width: 860px) {
  .chat-fab { display: none; }
  .chat-btn { display: grid; }
  .mobile-bar .chat-btn + .menu-btn { margin-left: 8px; }
  .mobile-bal:not(:empty) + .chat-btn { margin-left: 8px; }
  .chat-dock { inset: 0; width: auto; height: auto; border-radius: 0; border: 0; z-index: 75; padding-top: env(safe-area-inset-top); }
  body.dock-open { overflow: hidden; }
}
@keyframes nudge { 0%, 85%, 100% { transform: none; } 90% { transform: translateY(-4px) rotate(-3deg); } 95% { transform: translateY(0) rotate(2deg); } }

/* Guided tour ------------------------------------------------------------------------------------- */
#tour { position: fixed; inset: 0; z-index: 110; pointer-events: none; }
#tour[hidden] { display: none; }
.tour-block { position: fixed; pointer-events: auto; background: rgba(5, 7, 12, 0.66); }
.tour-spot { position: fixed; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(255, 210, 63, 0.45); transition: left 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), top 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), width 0.35s, height 0.35s, opacity 0.2s; }
.tour-tip { position: fixed; pointer-events: auto; padding: 16px 18px 14px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 8px 0 var(--edge), 0 30px 60px -20px rgba(0, 0, 0, 0.95); transition: left 0.3s cubic-bezier(0.2, 0.9, 0.2, 1), top 0.3s cubic-bezier(0.2, 0.9, 0.2, 1); }
.tour-tip::before { content: ''; position: absolute; left: var(--ax, 50%); width: 16px; height: 16px; margin-left: -8px; background: var(--panel); border: 1px solid var(--line-2); transform: rotate(45deg); }
.tour-tip[data-side='below']::before { top: -9px; border-right: 0; border-bottom: 0; }
.tour-tip[data-side='above']::before { bottom: -9px; border-left: 0; border-top: 0; }
.tour-tip[data-side='center']::before, .tour-tip[data-side='over']::before { display: none; }
.tour-tip h3 { margin: 4px 0 6px; font-family: var(--display); font-weight: 400; font-size: 20px; text-shadow: 0 2px 0 #3b445b; }
.tour-tip p { margin: 0 0 8px; color: var(--ink-2); line-height: 1.5; }
.tour-progress { height: 5px; border-radius: 5px; background: #0f131c; overflow: hidden; }
.tour-progress i { display: block; height: 100%; background: var(--gold); transition: width 0.35s; }
.tour-count { margin: 10px 0 0 !important; font: 800 11px var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold) !important; }
.tour-hint { font-size: 13px; color: var(--gold) !important; }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.tour-actions span { display: flex; gap: 8px; }
.tour-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px; border: 1px solid #4a4128; background: #1d1b16; box-shadow: 0 4px 0 var(--edge); }
@media (prefers-reduced-motion: no-preference) {
  .tour-spot-click { animation: spot-pulse 1.4s ease-in-out infinite; }
  .tour-tip { animation: modal-in 0.3s cubic-bezier(0.2, 1.2, 0.4, 1) both; }
}
@keyframes spot-pulse { 50% { box-shadow: 0 0 0 3px var(--gold), 0 0 0 9px rgba(255, 210, 63, 0.25), 0 0 34px rgba(255, 210, 63, 0.55); } }

/* Shift minigames --------------------------------------------------------------------------------- */
.play { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(6, 8, 12, 0.82); }
body.playing { overflow: hidden; }
body.playing .chat-fab { display: none; }
.play-card { width: min(1160px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 24px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 10px 0 var(--edge), 0 50px 90px -30px rgba(0, 0, 0, 0.95); }
.play-head { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: #12161f; }
.play-head > div:first-child { flex: 1; min-width: 0; }
.play-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2.6vw, 28px); text-shadow: 0 2px 0 #79839a, 0 4px 0 #3b445b; }
.play-head .kicker { margin: 0 0 2px; }
.play-stats { display: flex; gap: 18px; }
.play-stats div { display: flex; flex-direction: column; align-items: center; min-width: 70px; }
.play-stats b { font-family: var(--display); font-weight: 400; font-size: 20px; }
.play-stats span { font-size: 12px; color: var(--ink-2); }
.play-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; padding: 18px; }
.play-main { min-width: 0; }
.play-side { display: flex; flex-direction: column; gap: 12px; }
.play-box { padding: 12px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.play-box h3 { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.play-box .note { font-size: 12.5px; margin: 0 0 8px; }
.crew, .feed, .lb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.crew li, .lb li { display: flex; align-items: center; gap: 8px; }
.crew li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.feed li { color: var(--ink-2); }
.feed li.cheer { color: var(--gold); }
.lb-rank { width: 18px; color: var(--ink-2); font-weight: 700; }
.lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.grade { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; font-family: var(--display); font-weight: 400; font-size: 15px; color: #111; background: #8a96aa; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
.grade-S { background: var(--gold); box-shadow: 0 2px 0 var(--gold-d); }
.grade-A { background: var(--teal); box-shadow: 0 2px 0 #1d7f62; }
.grade-B { background: #4f8fe8; box-shadow: 0 2px 0 #2a5aa0; }
.grade-C { background: #e8a93a; box-shadow: 0 2px 0 #8a5a10; }
.grade-D { background: #6b7385; }
.play-lobby { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 10px 0 6px; text-align: center; }
.play-how { margin: 0; font-size: 17px; max-width: 52ch; }
.rounds { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.round-slot { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-family: var(--display); font-size: 18px; color: var(--ink-2); background: #12161f; box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.4); }
.round-slot[class*='grade-'] { color: #111; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5); }
.rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); max-width: 60ch; }
.rules b { color: var(--ink); }
.play-live { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: var(--ink-2); font-weight: 600; }
.play-result { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0; text-align: center; }
.grade-big { display: grid; place-items: center; width: 150px; height: 150px; border-radius: 34px; font-family: var(--display); font-size: 92px; color: #111; background: #8a96aa; box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.45), 0 12px 0 rgba(0, 0, 0, 0.55), 0 30px 50px -20px rgba(0, 0, 0, 0.9); }
.grade-big.grade-S { background: var(--gold); box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.55), 0 12px 0 var(--gold-d), 0 0 60px rgba(255, 210, 63, 0.45); }
.grade-big.grade-A { background: var(--teal); box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.45), 0 12px 0 #1d7f62; }
.grade-big.grade-B { background: #4f8fe8; box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.45), 0 12px 0 #2a5aa0; }
.grade-big.grade-C { background: #e8a93a; box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.45), 0 12px 0 #8a5a10; }
.play-acc { margin: 0; font-size: 18px; font-weight: 700; }
.play-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip { padding: 7px 12px; border-radius: 10px; background: #12161f; color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.chip-gold { background: var(--gold); color: #2a1d00; box-shadow: 0 3px 0 var(--gold-d); }
.chip-teal { background: var(--teal); color: #06281d; box-shadow: 0 3px 0 #1d7f62; }
.game { display: flex; flex-direction: column; gap: 12px; }
.game-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 8px 0 var(--edge); background: #121722; touch-action: none; user-select: none; -webkit-user-select: none; }
.game-stage canvas { display: block; width: 100%; height: 100%; }
.game-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.game-controls:empty { display: none; }
.game-key { min-width: 120px; flex-direction: column; display: flex; align-items: center; gap: 2px; padding: 10px 12px; touch-action: manipulation; }
.game-key b { font-size: 11px; color: var(--ink-2); }
.game-pad { flex: 1; min-width: 140px; min-height: 56px; font-size: 17px; touch-action: manipulation; }
.game-type { flex: 1; min-width: 200px; font-family: var(--mono); font-size: 20px; padding: 14px; }
@media (max-width: 860px) {
  .play { padding: 0; }
  .play-card { max-height: 100vh; height: 100%; border-radius: 0; border: 0; }
  .play-head { padding: 12px; padding-top: max(12px, env(safe-area-inset-top)); gap: 10px; flex-wrap: wrap; }
  .play-stats { order: 3; width: 100%; justify-content: space-around; }
  .play-body { grid-template-columns: 1fr; padding: 12px; }
  .game-key { min-width: calc(33% - 8px); }
}
@media (prefers-reduced-motion: no-preference) {
  .grade-big { animation: grade-in 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
  .play-card { animation: modal-in 0.35s cubic-bezier(0.2, 1.2, 0.4, 1) both; }
}
@keyframes grade-in { from { transform: scale(0.3) rotate(-14deg); opacity: 0; } }
