@font-face { font-family: "SpaceFont"; src: url("fonts/spacefont.7e31b8a002dc.ttf") format("truetype"); font-display: swap; }
:root {
  --space-950: #02030c; --space-900: #05091b; --panel: rgba(8, 17, 43, .92);
  --line: rgba(108, 226, 255, .28); --cyan: #6ce2ff; --gold: #ffd447;
  --text: #f4f8ff; --muted: #aab8d4; --danger: #ff6680;
  --radius: 18px; --shadow: 0 18px 60px rgba(0, 0, 0, .42); --content: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--text);
  background: radial-gradient(circle at 15% 10%, rgba(32,200,242,.11), transparent 32rem),
    radial-gradient(circle at 85% 25%, rgba(255,183,3,.08), transparent 28rem),
    linear-gradient(rgba(2,3,12,.7), rgba(2,3,12,.88)), url("images/bg.95643a31edba.jpg") center / cover fixed;
  font-family: Inter, "Segoe UI", system-ui, sans-serif; line-height: 1.6;
}
body::before { position: fixed; inset: 0; z-index: -1; content: ""; pointer-events: none; opacity: .28;
  background-image: linear-gradient(rgba(108,226,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(108,226,255,.035) 1px, transparent 1px); background-size: 44px 44px; }
a { color: var(--cyan); } a:hover { color: #baf4ff; }
h1, h2, h3, h4, .title, .subtitle, .top-bar { font-family: "SpaceFont", sans-serif; }
h1, h2, h3, h4 { color: var(--gold); line-height: 1.25; } p, table { color: var(--text); }
.site-main { width: 100%; padding: clamp(1.5rem, 4vw, 4rem) clamp(1rem, 4vw, 3rem); }

/* Navigation */
.top-bar { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: 1rem;
  height: 82px; padding: 0 clamp(1rem,3vw,2.5rem) 0 0; border-bottom: 1px solid var(--line);
  background: rgba(2,6,19,.88); box-shadow: 0 10px 34px rgba(0,0,0,.35); backdrop-filter: blur(18px); }
.top-bar > a:first-child { flex: 0 0 auto; }
.logo-left { display: block; width: 82px; height: 82px; object-fit: cover; }
.nav-right { align-self: stretch; display: flex; flex: 1; align-items: stretch; justify-content: flex-end; gap: clamp(.75rem,3vw,3rem); min-width: 0; }
.nav-right > a, .nav-right > form { display: flex; height: 100%; align-items: center; justify-content: center; }
.nav-right a, .logout-btn { flex: 0 1 auto; transition: transform 160ms ease, filter 160ms ease; }
.nav-right a:hover, .logout-btn:hover { transform: translateY(-2px); filter: drop-shadow(0 0 8px rgba(255,212,71,.65)); }
.nav_mov, .login-btn { margin: 0; }
.nav-btn { display: block; width: auto; max-width: min(150px,14vw); height: clamp(26px,3.5vw,43px); object-fit: contain; }
.logout-btn { display: flex; height: 100%; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; } .nav-right form { margin: 0; }

/* Shared surfaces */
.container { width: min(100%,var(--content)); max-width: var(--content); margin-inline: auto; overflow-x: auto; }
.fullscreen-container { min-height: calc(100vh - 150px); display: grid; place-items: center; }
.content-box, .auth-card, .planet-container, .game-wrap, .legal-panel, .mission-section {
  border: 1px solid var(--line); background: linear-gradient(145deg,rgba(11,24,57,.94),rgba(4,9,26,.94));
  border-radius: var(--radius); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.04); }
.title { max-width: 1040px; margin: 0 auto clamp(1.5rem,3vw,2.5rem); color: var(--gold);
  font-size: clamp(1.15rem,2.5vw,2rem); line-height: 1.5; text-align: center; text-shadow: 0 0 18px rgba(255,183,3,.28); }
.subtitle { margin-top: 3rem; color: var(--cyan); font-size: clamp(1.1rem,2vw,1.55rem); text-align: center; }
.profile-bio { max-width: 720px; margin-inline: auto; color: var(--muted); font-size: 1rem; line-height: 1.75; }

/* Home */
.home-container { display: grid; gap: clamp(1.2rem,3vw,2.5rem); width: min(100%,1040px); margin: auto; }
.section { min-width: 0; }
.logo-section { overflow: hidden; padding: clamp(.45rem,1.2vw,.85rem); border: 1px solid rgba(255,212,71,.4);
  border-radius: var(--radius); background: linear-gradient(135deg,var(--gold),#ffb703); box-shadow: 0 18px 55px rgba(255,183,3,.18); }
.logo-section img { display: block; width: 100%; max-height: 360px; border-radius: 12px; object-fit: contain; }
.mission-section { padding: clamp(1.5rem,4vw,3.25rem); text-align: left; }
.mission-section h2 { margin-top: 0; font-size: clamp(1.4rem,3vw,2.4rem); }
.mission-section p { margin-bottom: 0; color: var(--muted); font-family: Inter,"Segoe UI",sans-serif; font-size: clamp(1rem,1.6vw,1.12rem); }

/* Forms */
.auth-card { width: min(100%,620px); margin: auto; padding: clamp(1.4rem,4vw,2.5rem) !important; }
.signup-container, .update-profile-container { display: block !important; margin-top: 0 !important; }
.auth-card h2 { margin-top: 0; font-size: clamp(1.5rem,3vw,2.2rem); }
.auth-card h4 { margin: 2rem 0 1rem; color: var(--cyan); font-size: 1rem; letter-spacing: .06em; }
.auth-card form p, .form-row, .form-group { display: grid; gap: .5rem; margin: 0 0 1.15rem; text-align: left; }
.auth-card label, .form-label { margin: 0; color: var(--text); font-weight: 700; font-size: .93rem; }
.auth-card input, .auth-card textarea, .auth-card select, .update-profile-container input,
.update-profile-container textarea, .update-profile-container select { display: block; width: 100% !important; max-width: none !important;
  min-height: 46px; padding: .7rem .85rem; border: 1px solid rgba(108,226,255,.52); border-radius: 10px;
  outline: 0; background: rgba(1,5,17,.78); box-shadow: inset 0 1px 8px rgba(0,0,0,.4); color: var(--text) !important;
  font: 1rem/1.4 Inter,"Segoe UI",sans-serif; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.auth-card textarea, .update-profile-container textarea { min-height: 96px; max-height: 180px; resize: vertical; }
.auth-card input:focus, .auth-card textarea:focus, .auth-card select:focus, .update-profile-container input:focus,
.update-profile-container textarea:focus, .update-profile-container select:focus { border-color: var(--gold); background: rgba(5,12,32,.96);
  box-shadow: 0 0 0 3px rgba(255,212,71,.13), 0 0 22px rgba(255,183,3,.1); }
.helptext, .auth-card ul { margin: .1rem 0 0; padding-left: 1.15rem; color: var(--muted) !important; font: .84rem/1.5 Inter,"Segoe UI",sans-serif; }
.auth-card ul.errorlist { padding: .65rem .85rem; list-style: none; border: 1px solid rgba(255,102,128,.5);
  border-radius: 9px; background: rgba(255,102,128,.08); color: #ff9aac !important; }
.invalid-feedback, .errorlist { color: #ff9aac !important; font-family: Inter,"Segoe UI",sans-serif; }
.label-img { display: block; width: auto; max-width: min(180px,70%); max-height: 36px; margin: 0 0 .55rem; object-fit: contain; }
.btn-auth { display: inline-grid; place-items: center; min-height: 48px; margin: 1.25rem auto 0; padding: .65rem 1.1rem;
  border: 1px solid var(--gold); border-radius: 10px; background: rgba(255,183,3,.09); cursor: pointer; transition: .16s ease; }
.btn-auth:hover { transform: translateY(-2px); background: rgba(255,183,3,.18); box-shadow: 0 0 24px rgba(255,183,3,.2); }
.btn-auth img { display: block; width: auto; max-width: min(220px,100%); max-height: 36px; }
.signup-container .red { color: #ff9aac !important; } .signup-container .back-link { margin: .2rem; font-size: .8rem; }

/* Buttons */
.btn, .new, .back-link, .generate-planet-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  padding: .58rem 1rem; border: 1px solid var(--cyan); border-radius: 9px; background: rgba(32,200,242,.08); color: var(--cyan);
  font-family: "SpaceFont",sans-serif; font-size: .8rem; line-height: 1.25; text-decoration: none; cursor: pointer; transition: .16s ease; }
.btn:hover, .new:hover, .back-link:hover, .generate-planet-btn:hover { transform: translateY(-1px); background: var(--cyan);
  color: var(--space-950); box-shadow: 0 0 22px rgba(32,200,242,.25); }
.generate-planet-btn { border-color: var(--gold); background: rgba(255,183,3,.1); color: var(--gold); }
.generate-planet-btn:hover { background: var(--gold); }

/* Profile and planet */
.profile-header { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(220px,.7fr); align-items: stretch; gap: clamp(1.5rem,4vw,3rem);
  width: 100%; margin: 0; padding: clamp(1.5rem,3vw,2.25rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.profile-shell { display: grid; gap: 1.25rem; width: min(100%,960px); margin: 0 auto; }
.profile-utility-row { display: flex; min-height: 28px; align-items: center; justify-content: flex-end; gap: .45rem; }
.dev-stamina-form { margin: 0; }
.dev-stamina-reset { height: 28px; padding: 0 .6rem; border: 1px solid rgba(255,183,3,.55); border-radius: 999px; background: rgba(255,183,3,.08);
  color: var(--gold); font-family: "SpaceFont",sans-serif; font-size: .58rem; letter-spacing: .03em; cursor: pointer; transition: .16s ease; }
.dev-stamina-reset:hover, .dev-stamina-reset:focus-visible { background: var(--gold); color: var(--space-950); box-shadow: 0 0 15px rgba(255,183,3,.2); }
.profile-details { min-width: 0; }
.profile-identity { display: flex; align-items: center; justify-content: flex-start; gap: clamp(1rem,3vw,2rem); margin-bottom: 1.25rem; text-align: left; }
.profile-kicker { margin: 0 0 .35rem; color: var(--cyan); font-family: "SpaceFont",sans-serif; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }
.profile-handle { margin: .3rem 0 0; color: var(--muted); }
.profile-details > .profile-bio { margin: 0; text-align: left; }
.profile-actions { display: grid; align-content: center; gap: 1rem; padding-left: clamp(1.25rem,3vw,2rem); border-left: 1px solid var(--line); }
.profile-actions form { margin: 0; }
.profile-actions .back-link, .profile-actions .generate-planet-btn { width: 100%; min-height: 58px; padding: .85rem 1rem; font-size: .88rem; }
.disabled-action { position: relative; display: block; outline: none; }
.action-tooltip { position: absolute; right: 0; bottom: calc(100% + .55rem); z-index: 4; width: min(270px,80vw); padding: .65rem .75rem;
  border: 1px solid var(--line); border-radius: 9px; background: rgba(2,7,22,.98); box-shadow: var(--shadow); color: var(--muted);
  font: .78rem/1.45 Inter,"Segoe UI",sans-serif; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity 150ms ease, transform 150ms ease; }
.disabled-action:hover .action-tooltip, .disabled-action:focus .action-tooltip, .disabled-action:focus-within .action-tooltip { opacity: 1; transform: translateY(0); }
.profile-logo { width: clamp(76px,12vw,112px); height: clamp(76px,12vw,112px); border: 2px solid var(--gold); border-radius: 50%;
  object-fit: contain; background: var(--space-900); box-shadow: 0 0 30px rgba(255,183,3,.2); }
.display-name { color: var(--gold); font-family: "SpaceFont",sans-serif; font-size: clamp(1.4rem,4vw,2.4rem); }
.collection-section { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.section-heading h2 { margin: 0; color: var(--gold); font-size: clamp(1.25rem,2.5vw,1.8rem); }
.stamina-hud { position: relative; z-index: 3; display: flex; align-items: center; gap: .32rem; height: 28px; padding: .3rem .5rem;
  border: 1px solid var(--line); border-radius: 999px; outline: none; background: rgba(2,7,22,.9); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.stamina-dots { display: flex; gap: .35rem; }
.stamina-dot { width: 8px; height: 8px; border: 1px solid rgba(108,226,255,.45); border-radius: 50%; background: rgba(1,5,17,.8); }
.stamina-dot.is-full { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 8px rgba(255,183,3,.6); }
.hud-divider { width: 1px; height: 12px; margin: 0 .1rem; background: var(--line); }
.hour-symbol { color: var(--cyan); font-size: .9rem; line-height: 1; }
.regen-timer { color: var(--muted); font-size: .86rem; }
.stamina-hud .regen-timer { min-width: 28px; font-size: .68rem; white-space: nowrap; }
.stamina-tooltip { position: absolute; top: calc(100% + .55rem); right: 0; width: 250px; padding: .65rem .75rem; border: 1px solid var(--line);
  border-radius: 9px; background: rgba(2,7,22,.98); box-shadow: var(--shadow); color: var(--muted); font: .78rem/1.45 Inter,"Segoe UI",sans-serif;
  opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity 150ms ease, transform 150ms ease; }
.stamina-hud:hover .stamina-tooltip, .stamina-hud:focus .stamina-tooltip, .stamina-hud:focus-within .stamina-tooltip { opacity: 1; transform: translateY(0); }
.generate-planet-btn:disabled { transform: none; border-color: rgba(170,184,212,.35); background: rgba(170,184,212,.06); box-shadow: none; color: #7f8ba4; cursor: not-allowed; }
.collection-section { width: 100%; overflow: hidden; padding: clamp(1.5rem,3vw,2.25rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-heading > span { color: var(--muted); font-size: .9rem; }
.profile-table-wrap { width: 100%; overflow-x: auto; border-radius: 13px; }
.empty-collection { padding: 2.5rem 1rem; border: 1px dashed rgba(108,226,255,.3); border-radius: 12px; text-align: center; }
.empty-collection p { margin: 0; color: var(--muted); }
.message-stack { display: grid; gap: .75rem; }
.site-message { padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.site-message.error { border-color: rgba(255,102,128,.55); color: #ff9aac; }
.planet-detail-shell { display: grid; gap: 1.25rem; width: min(100%,900px); margin: 0 auto; }
.planet-hero, .planet-about { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.planet-hero { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(0,1.2fr); align-items: center; min-height: 330px; overflow: hidden; }
.planet-visual { position: relative; display: grid; min-height: 100%; place-items: center; overflow: hidden; background: radial-gradient(circle,rgba(32,200,242,.13),transparent 63%); }
.orbit-ring { position: absolute; width: 78%; aspect-ratio: 1; border: 1px solid rgba(108,226,255,.2); border-radius: 50%; transform: rotate(-18deg) scaleY(.38); }
.planet-image { position: relative; z-index: 1; width: clamp(170px,25vw,245px); height: clamp(170px,25vw,245px); object-fit: contain; filter: drop-shadow(0 0 28px rgba(108,226,255,.32)); }
.planet-intro { padding: clamp(1.5rem,4vw,3rem); }
.planet-intro > p:last-child { max-width: 520px; margin: 1.25rem 0 0; color: var(--muted); font-family: Inter,"Segoe UI",sans-serif; line-height: 1.65; }
.planet-intro strong { color: var(--text); }
.planet-name { margin: .3rem 0 .9rem; color: var(--gold); font-family: "SpaceFont",sans-serif; font-size: clamp(1.65rem,4vw,2.8rem); }
.planet-type-badge { display: inline-flex; padding: .35rem .65rem; border: 1px solid rgba(255,183,3,.45); border-radius: 999px; background: rgba(255,183,3,.08); color: var(--gold); font-size: .82rem; }
.planet-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.metric-card { display: grid; min-width: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 13px; background: rgba(4,9,25,.92); text-align: center; }
.metric-card span { min-height: 2.4em; color: var(--muted); font: .72rem/1.3 "SpaceFont",sans-serif; text-transform: uppercase; }
.metric-card strong { margin-top: .35rem; color: var(--cyan); font-size: clamp(1.25rem,3vw,1.9rem); }
.metric-card small { color: var(--muted); }
.planet-about { padding: clamp(1.5rem,4vw,2.4rem); }
.planet-about h2 { margin: .2rem 0 1.1rem; color: var(--gold); font-size: clamp(1.15rem,3vw,1.65rem); }
.planet-about > p { margin: 0; color: var(--muted); font-family: Inter,"Segoe UI",sans-serif; line-height: 1.7; }
.planet-stats { width: min(100%,680px); margin: 1.25rem auto 2rem; border-collapse: separate; border-spacing: 0 .45rem; }
.planet-stats th, .planet-stats td { padding: .8rem 1rem; text-align: left; }
.planet-stats th { width: 38%; border-left: 2px solid var(--cyan); border-radius: 8px 0 0 8px; background: rgba(32,200,242,.1); color: var(--cyan); }
.planet-stats td { border-radius: 0 8px 8px 0; background: rgba(255,255,255,.045); color: var(--text); }
.detail-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.danger-link { border-color: var(--danger); background: rgba(255,102,128,.08); color: #ff9aac; }
.danger-link:hover { background: var(--danger); color: var(--space-950); }

/* Tables */
.policy-acceptance { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(32,200,242,.04); }
.policy-checkbox-row { display: flex; align-items: flex-start; gap: .7rem; }
.auth-card .policy-checkbox-row input[type="checkbox"] { appearance: none; display: grid; place-content: center; flex: 0 0 20px; width: 20px !important; min-height: 20px; height: 20px; margin: .15rem 0 0; padding: 0; border: 1px solid var(--cyan); border-radius: 4px; background: var(--space-950); box-shadow: none; cursor: pointer; }
.auth-card .policy-checkbox-row input[type="checkbox"]:checked { background: var(--cyan); }
.auth-card .policy-checkbox-row input[type="checkbox"]:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--space-950); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.auth-card .policy-checkbox-row input[type="checkbox"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.auth-card .policy-checkbox-row label { font: .9rem/1.6 Inter,"Segoe UI",sans-serif; }
.policy-checkbox-row a { color: var(--cyan); text-decoration: underline; }
.policy-acceptance .helptext { margin: .6rem 0; padding: 0; }
@media (forced-colors: active) { .auth-card .policy-checkbox-row input[type="checkbox"] { appearance: auto; } .auth-card .policy-checkbox-row input[type="checkbox"]::after { display: none; } }

.dataTables_wrapper { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .75rem 1rem; width: 100%; margin: 1rem auto 3rem; overflow-x: auto; color: var(--muted); font-family: Inter,"Segoe UI",sans-serif; scrollbar-color: var(--cyan) var(--space-900); }
.dataTables_wrapper > table { grid-column: 1 / -1; }
.planet-table { width: 100% !important; min-width: 820px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line);
  border-collapse: separate; border-spacing: 0; border-radius: 13px; background: rgba(4,9,25,.96); box-shadow: 0 14px 44px rgba(0,0,0,.3); font: .9rem/1.45 Inter,"Segoe UI",sans-serif; }
.planet-table thead { background: linear-gradient(90deg,rgba(32,200,242,.16),rgba(255,183,3,.1)); }
.planet-table th { padding: .85rem .7rem; border-bottom: 1px solid rgba(108,226,255,.38); color: var(--cyan); font-size: .76rem;
  letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.planet-table td { padding: .75rem .7rem; border-bottom: 1px solid rgba(108,226,255,.1); color: #e6ecf8; vertical-align: middle; }
.planet-table tbody tr { transition: background 150ms ease; } .planet-table tbody tr:hover { background: rgba(108,226,255,.055); }
.planet-img { width: 58px; height: 58px; border: 1px solid rgba(108,226,255,.42); border-radius: 50%; background: var(--space-900); object-fit: contain; }
.dataTables_filter, .dataTables_length { margin: 0; }
.dataTables_filter { justify-self: end; text-align: right; }
.dataTables_filter input, .dataTables_length select { min-height: 38px; margin-left: .4rem; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--space-900); color: var(--text); }
.dataTables_info, .dataTables_paginate { margin: 0; padding-top: .15rem; }
.dataTables_paginate { justify-self: end; text-align: right; }
.dataTables_paginate .paginate_button { display: inline-block; margin: 0 .15rem; padding: .35rem .55rem; border-radius: 6px; color: var(--cyan) !important; cursor: pointer; }

/* Legal and game */
.legal-panel, .game-wrap { width: min(100%,900px); margin: 0 auto; padding: clamp(1.4rem,4vw,3rem); }
.legal-panel p, .legal-panel li, .game-wrap p { color: var(--muted); font-family: Inter,"Segoe UI",sans-serif; }
.game-wrap .grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; max-width: 620px; }
.game-wrap .card-btn, .game-wrap .collections .block { border: 1px solid var(--line); border-radius: 10px; background: rgba(108,226,255,.06); color: var(--text); }
.game-wrap .card-btn { min-height: 82px; padding: .7rem; cursor: pointer; } .game-wrap .card-btn:hover { border-color: var(--gold); background: rgba(255,183,3,.1); }
.game-wrap .collections { display: flex; flex-wrap: wrap; gap: 1rem; } .game-wrap .collections .block { flex: 1 1 240px; padding: 1rem; }
.game-wrap .pill { display: inline-block; padding: .2rem .5rem; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text); }
.game-wrap .section { margin: 1.5rem 0; } .table-scroll { overflow-x: auto; }

@media (max-width: 800px) {
  .top-bar { align-items: center; height: 64px; } .logo-left { width: 64px; height: 64px; }
  .nav-right { flex-wrap: wrap; gap: .65rem 1rem; padding-top: .5rem; } .nav-btn { max-width: 110px; height: 28px; }
  .site-main { padding-top: 2rem; } .planet-table { min-width: 720px; }
  .profile-header { grid-template-columns: minmax(0,1fr) minmax(190px,.65fr); gap: 1.25rem; }
  .profile-actions { padding-left: 1.25rem; }
  .planet-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .top-bar { position: static; height: auto; min-height: 54px; gap: .65rem; padding: 0 .75rem 0 0; } .logo-left { width: 54px; height: 54px; }
  .nav-right { justify-content: flex-start; gap: .65rem .85rem; } .nav-btn { max-width: 86px; height: 23px; }
  .site-main { padding: 1.4rem .75rem 2.5rem; } .auth-card { border-radius: 14px; } .mission-section { padding: 1.25rem; }
  .profile-header { grid-template-columns: 1fr; } .profile-header .d-flex { flex-direction: column; gap: .8rem; } .profile-logo { margin-right: 0 !important; }
  .profile-actions { padding: 1.25rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .planet-hero { grid-template-columns: 1fr; } .planet-visual { min-height: 235px; } .planet-intro { padding-top: 1rem; }
  .profile-identity { flex-direction: column; text-align: center; } .section-heading { align-items: flex-start; flex-direction: column; }
  .planet-stats th, .planet-stats td { padding: .65rem; font-size: .9rem; } .game-wrap .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dataTables_wrapper { grid-template-columns: 1fr; align-items: start; }
  .dataTables_wrapper > table, .dataTables_filter, .dataTables_length, .dataTables_info, .dataTables_paginate { grid-column: 1; justify-self: stretch; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
