/*
  Learn The Isle â€” Cinematic Survival brand layer
  Upload to: /apex-dashboard/lti-brand.css

  This stylesheet loads after each page's original styles. It gives every
  supplied dashboard page the approved cinematic survival treatment without
  changing the existing API or JavaScript behavior.
*/

:root {
  --lti-night: #06080a;
  --lti-night-soft: #0b0e10;
  --lti-panel: rgba(7, 10, 12, 0.82);
  --lti-panel-solid: rgba(8, 11, 13, 0.94);
  --lti-smoke: rgba(225, 222, 215, 0.09);
  --lti-line: rgba(235, 230, 220, 0.15);
  --lti-line-strong: rgba(242, 187, 116, 0.38);
  --lti-amber: #f2bb74;
  --lti-amber-deep: #d58a43;
  --lti-teal: #66d8c7;
  --lti-teal-soft: #9ae4d8;
  --lti-green: #76d99a;
  --lti-coral: #d96f59;
  --lti-sky: #7aa9c2;
  --lti-pink: #ff3f93;
  --lti-text: #f3f0eb;
  --lti-muted: #aaa9a6;
  --lti-dim: #777a7d;

  /* Aliases used throughout the existing pages. */
  --glass: var(--lti-panel);
  --glass-soft: rgba(9, 12, 14, 0.75);
  --panel: var(--lti-panel);
  --panel-soft: rgba(9, 12, 14, 0.75);
  --border: var(--lti-line);
  --border-soft: var(--lti-line);
  --line: var(--lti-line);
  --line-strong: var(--lti-line-strong);
  --text: var(--lti-text);
  --cream: var(--lti-text);
  --muted: var(--lti-muted);
  --cyan: var(--lti-teal);
  --cyan-strong: #48bbaa;
  --orange: var(--lti-amber);
  --orange-light: #ffd09a;
  --orange-strong: var(--lti-amber-deep);
  --orange-dark: #a96531;
  --green: var(--lti-green);
  --blue: var(--lti-sky);
  --teal: var(--lti-teal);
}

body.lti-page,
body.lti-page *,
body.lti-page *::before,
body.lti-page *::after {
  box-sizing: border-box;
}

html {
  background: var(--lti-night);
}

body.lti-page {
  min-height: 100vh;
  margin: 0;
  color: var(--lti-text);
  background-color: var(--lti-night);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
}

body.lti-page--home,
body.lti-page--tracker,
body.lti-page--shop,
body.lti-page--inventory,
body.lti-page--marketplace,
body.lti-page--discord {
  background-image:
    linear-gradient(90deg, rgba(4, 6, 8, 0.96) 0%, rgba(4, 6, 8, 0.72) 42%, rgba(4, 6, 8, 0.30) 72%, rgba(4, 6, 8, 0.50) 100%),
    linear-gradient(0deg, rgba(4, 6, 8, 0.98) 0%, rgba(4, 6, 8, 0.20) 55%, rgba(4, 6, 8, 0.62) 100%),
    var(--page-bg, url("/apex-dashboard/background-1.png"));
}

body.lti-page--colors {
  background-image:
    linear-gradient(90deg, rgba(4, 6, 8, 0.96) 0%, rgba(4, 6, 8, 0.72) 42%, rgba(4, 6, 8, 0.38) 72%, rgba(4, 6, 8, 0.58) 100%),
    linear-gradient(0deg, rgba(4, 6, 8, 0.98) 0%, rgba(4, 6, 8, 0.24) 55%, rgba(4, 6, 8, 0.65) 100%),
    var(--page-bg, url("/apex-dashboard/background-1.png"));
}

body.lti-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 64% 29%, rgba(242, 187, 116, 0.16), transparent 22%),
    radial-gradient(circle at 92% 76%, rgba(102, 216, 199, 0.055), transparent 27%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.018), transparent 30%);
}

body.lti-page--tool::after {
  content: "";
  position: fixed;
  right: -7vw;
  bottom: -5vh;
  z-index: -1;
  width: min(720px, 53vw);
  aspect-ratio: 3 / 2;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: screen;
  background: url("/apex-dashboard/assets/dino-silhouette.png") center / contain no-repeat;
  filter: sepia(1) saturate(1.5) hue-rotate(345deg) brightness(1.22) contrast(1.15);
}

/* Shared cinematic navigation */
body.lti-page .top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding: 13px clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 10px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(235, 230, 220, 0.16);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(4, 6, 8, 0.91), rgba(4, 6, 8, 0.72));
  backdrop-filter: blur(16px) saturate(0.82);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

body.lti-page .brand,
body.lti-page .brand-copy {
  min-width: 172px;
}

body.lti-page .brand-logo {
  position: relative;
  display: block;
  width: clamp(150px, 13vw, 185px);
  height: 40px;
  overflow: hidden;
}

body.lti-page .brand-logo img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-38%);
}

body.lti-page .brand p,
body.lti-page .brand-section {
  margin: 2px 0 0 3px;
  color: var(--lti-amber);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

body.lti-page .header-actions {
  display: contents;
}

body.lti-page .nav-links,
body.lti-page .utility-links {
  align-items: center;
}

body.lti-page .nav-links {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  padding-top: 8px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  border-top: 1px solid rgba(235, 230, 220, 0.12);
}

body.lti-page .utility-links {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}

body.lti-page .nav-links a {
  position: relative;
  min-height: 38px;
  padding: 9px 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  color: #b9b8b5;
  background: transparent;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease;
}

body.lti-page .nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
}

body.lti-page .nav-links a.active,
body.lti-page .nav-links a[aria-current="page"] {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

body.lti-page .nav-links a.active::after,
body.lti-page .nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 25%;
  bottom: 4px;
  left: 25%;
  height: 2px;
  background: var(--lti-amber);
  box-shadow: 0 0 12px rgba(242, 187, 116, 0.55);
}

body.lti-page .utility-links {
  gap: 5px;
}

body.lti-page .utility-link.patreon {
  order: 1;
}

body.lti-page .utility-link.vote-link {
  order: 2;
  min-width: 178px;
  justify-content: center;
  padding-right: 14px;
  padding-left: 14px;
}

body.lti-page .utility-link.eqg-link {
  order: 3;
}

body.lti-page .utility-link {
  min-height: 29px;
  padding: 3px 8px;
  gap: 6px;
  border: 1px solid rgba(235, 230, 220, 0.13);
  border-radius: 6px;
  color: #e8e5df;
  background: rgba(4, 6, 8, 0.42);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

body.lti-page .utility-link:first-child {
  color: #f4cf9e;
  border-color: rgba(242, 187, 116, 0.28);
  background: rgba(242, 187, 116, 0.06);
}

body.lti-page .utility-link:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 187, 116, 0.38);
  background: rgba(242, 187, 116, 0.08);
}

body.lti-page .utility-link.patreon {
  padding: 2px 7px;
  border-color: rgba(255, 63, 147, 0.27);
  background: rgba(255, 63, 147, 0.045);
}

body.lti-page .patreon-logo {
  position: relative;
  display: block;
  width: 66px;
  height: 25px;
  overflow: hidden;
}

body.lti-page .patreon-logo img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-22%);
}

body.lti-page .eqg-logo-wrap {
  display: block;
  width: 45px;
  height: 30px;
}

body.lti-page .eqg-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Shared page structure */
body.lti-page .dashboard,
body.lti-page .tracker-page,
body.lti-page .shop-page,
body.lti-page .inventory-page,
body.lti-page .site-shell {
  width: min(1440px, calc(100% - 52px));
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
  padding-top: 42px;
}

body.lti-page h1,
body.lti-page h2,
body.lti-page .panel-title {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 700;
}

body.lti-page .hero h1,
body.lti-page .hero h2,
body.lti-page .intro h2 {
  color: var(--lti-text);
  letter-spacing: -0.04em;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}

body.lti-page .hero p,
body.lti-page .intro p,
body.lti-page .hero-description {
  color: #c5c3bf;
}

/* Homepage â€” approved Cinematic Survival hero */
body.lti-page--home .dashboard {
  padding-top: 0;
}

/*
  The original dashboard placed Player Actions on the left and every remaining
  dashboard tool in a narrower right column. The cinematic layout reads more
  clearly as one full-width flow, and it prevents the long Current Dino panel
  from leaving a large unused area beside it.
*/
body.lti-page--home .dashboard > .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

body.lti-page--home .dashboard > .grid > .left-stack,
body.lti-page--home .dashboard > .grid > .right-stack,
body.lti-page--home .dashboard > .grid .card {
  width: 100%;
  min-width: 0;
}

body.lti-page--home .dashboard > .hero {
  max-width: 760px;
  min-height: 570px;
  margin: 0;
  padding: clamp(70px, 9vh, 110px) 22px 74px 3.5%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.lti-page--home .dashboard > .hero .status-pill {
  order: 0;
}

body.lti-page--home .dashboard > .hero h2 {
  margin: 22px 0 21px;
  max-width: 760px;
  font-size: clamp(62px, 8vw, 110px);
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

body.lti-page--home .dashboard > .hero h2 > span {
  display: block;
}

body.lti-page--home .dashboard > .hero h2 em,
body.lti-page--home .dashboard > .hero h2 .survival-accent {
  color: var(--lti-amber);
  font-style: normal;
  -webkit-text-stroke: 0;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.85),
    0 10px 28px rgba(0, 0, 0, 0.72),
    0 0 24px rgba(242, 187, 116, 0.18);
}

body.lti-page--home .dashboard > .hero p {
  max-width: 585px;
  margin: 0;
  color: #cfccc7;
  font-size: 16px;
  line-height: 1.68;
}

body.lti-page .cinematic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 29px;
}

body.lti-page .cinematic-actions a {
  min-height: 46px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(235, 230, 220, 0.35);
  border-radius: 5px;
  color: #f3f0eb;
  background: rgba(5, 7, 9, 0.42);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
}

body.lti-page .cinematic-actions a:first-child {
  border-color: var(--lti-teal);
  color: #06110f;
  background: linear-gradient(135deg, var(--lti-teal), #95dfbd);
  box-shadow: 0 10px 28px rgba(102, 216, 199, 0.18);
}

body.lti-page .cinematic-actions a:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

body.lti-page .cinematic-quickrail {
  min-height: 84px;
  margin: -28px 0 34px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(235, 230, 220, 0.14);
  border-radius: 9px;
  background: rgba(5, 7, 9, 0.76);
  backdrop-filter: blur(16px) saturate(0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

body.lti-page .cinematic-quickrail a {
  min-width: 0;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-right: 1px solid rgba(235, 230, 220, 0.12);
  color: inherit;
  text-decoration: none;
}

body.lti-page .cinematic-quickrail a:last-child {
  border-right: 0;
}

body.lti-page .cinematic-quickrail a > span {
  width: 35px;
  height: 35px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(102, 216, 199, 0.35);
  border-radius: 50%;
  color: var(--lti-teal-soft);
  background: rgba(102, 216, 199, 0.07);
}

body.lti-page .cinematic-quickrail a:nth-child(2) > span,
body.lti-page .cinematic-quickrail a:nth-child(4) > span {
  border-color: rgba(242, 187, 116, 0.36);
  color: var(--lti-amber);
  background: rgba(242, 187, 116, 0.07);
}

body.lti-page .cinematic-quickrail a > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.lti-page .cinematic-quickrail small {
  color: #7f817f;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.lti-page .cinematic-quickrail strong {
  overflow: hidden;
  color: #efede8;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Interior page heroes */
body.lti-page--tool .intro,
body.lti-page--tool .shop-page > .hero,
body.lti-page--tool .inventory-page > .hero,
body.lti-page--marketplace .site-shell > .hero {
  position: relative;
  min-height: 210px;
  margin-bottom: 28px;
  padding: 36px 38px;
  overflow: hidden;
  border: 1px solid rgba(235, 230, 220, 0.14);
  border-left: 2px solid var(--lti-amber);
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgba(5, 7, 9, 0.87), rgba(5, 7, 9, 0.57) 48%, rgba(5, 7, 9, 0.26)),
    rgba(5, 7, 9, 0.42);
  backdrop-filter: blur(13px) saturate(0.78);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.32);
}

body.lti-page--tool .intro::after,
body.lti-page--tool .shop-page > .hero::after,
body.lti-page--tool .inventory-page > .hero::after {
  content: "SURVIVAL OPERATIONS";
  position: absolute;
  top: 20px;
  right: 24px;
  color: rgba(242, 187, 116, 0.72);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

body.lti-page--tool .intro h2,
body.lti-page--tool .shop-page > .hero h2,
body.lti-page--tool .inventory-page > .hero h2 {
  margin: 12px 0 9px;
  font-size: clamp(46px, 5vw, 74px);
  line-height: 0.88;
  text-transform: uppercase;
}

body.lti-page--tool .intro p,
body.lti-page--tool .shop-page > .hero p,
body.lti-page--tool .inventory-page > .hero p {
  max-width: 680px;
}

/* Status, account, and balance components */
body.lti-page .status-pill,
body.lti-page .storage-pill,
body.lti-page .listing-count,
body.lti-page .inventory-count,
body.lti-page .section-badge {
  border: 1px solid rgba(102, 216, 199, 0.28);
  color: #c2e9e2;
  background: rgba(7, 12, 12, 0.62);
  box-shadow: none;
}

body.lti-page .status-dot {
  background: var(--lti-green);
  box-shadow: 0 0 0 4px rgba(118, 217, 154, 0.09), 0 0 15px rgba(118, 217, 154, 0.55);
}

body.lti-page .fossil-pill,
body.lti-page .balance-panel {
  border-color: rgba(242, 187, 116, 0.31);
  color: #f7d6ab;
  background: rgba(20, 15, 10, 0.52);
  box-shadow: none;
}

/* Smoky survival panels */
body.lti-page .glass-card,
body.lti-page .panel,
body.lti-page .side-panel > section,
body.lti-page .map-card,
body.lti-page .instructions-card,
body.lti-page .current-dino-box,
body.lti-page .auth-banner,
body.lti-page .modal-content,
body.lti-page .sidebar-panel,
body.lti-page .viewer-frame {
  border-color: rgba(235, 230, 220, 0.14);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 28%),
    rgba(6, 9, 11, 0.84);
  backdrop-filter: blur(14px) saturate(0.78);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.025);
}

body.lti-page .glass-card,
body.lti-page .panel {
  position: relative;
}

body.lti-page .glass-card::before,
body.lti-page .panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  width: 54px;
  height: 1px;
  background: var(--lti-amber);
  box-shadow: 0 0 10px rgba(242, 187, 116, 0.32);
}

body.lti-page .section-label,
body.lti-page .compact-section-label,
body.lti-page .panel-heading h2,
body.lti-page .inventory-heading,
body.lti-page .eyebrow,
body.lti-page .viewer-panel-title {
  color: #dedbd5;
}

body.lti-page .section-label,
body.lti-page .compact-section-label,
body.lti-page .inventory-heading {
  border-bottom-color: rgba(235, 230, 220, 0.12);
}

body.lti-page .section-label,
body.lti-page .compact-section-label,
body.lti-page .eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
}

body.lti-page .instruction-item,
body.lti-page .summary-item,
body.lti-page .confirmation,
body.lti-page .reward-list,
body.lti-page .result-box,
body.lti-page .state-box {
  border-color: rgba(235, 230, 220, 0.12);
  background: rgba(255, 255, 255, 0.026);
}

/* Buttons */
body.lti-page button,
body.lti-page .button,
body.lti-page .main-button,
body.lti-page .action-button,
body.lti-page .refresh-button,
body.lti-page .tiny-refresh,
body.lti-page .map-control-btn {
  border-color: rgba(235, 230, 220, 0.18);
  border-radius: 5px;
}

body.lti-page .main-button,
body.lti-page .action-button,
body.lti-page .refresh-button,
body.lti-page .button-primary,
body.lti-page .sell-submit {
  color: #07100f;
  background: linear-gradient(135deg, #78d9ca, #9edfbf);
  border-color: rgba(102, 216, 199, 0.7);
  box-shadow: 0 10px 24px rgba(102, 216, 199, 0.09);
}

body.lti-page .main-button:hover,
body.lti-page .action-button:hover,
body.lti-page .refresh-button:hover,
body.lti-page .button-primary:hover,
body.lti-page .sell-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

body.lti-page .button-secondary,
body.lti-page .tiny-refresh,
body.lti-page .map-control-btn,
body.lti-page .mini-command {
  color: #e7e4df;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(235, 230, 220, 0.16);
}

body.lti-page .mini-command:hover,
body.lti-page .button-secondary:hover,
body.lti-page .tiny-refresh:hover,
body.lti-page .map-control-btn:hover {
  border-color: rgba(242, 187, 116, 0.34);
  background: rgba(242, 187, 116, 0.065);
}

body.lti-page .danger-zone,
body.lti-page .button-danger-soft,
body.lti-page .slay-command,
body.lti-page .ready-to-die-command {
  border-color: rgba(217, 111, 89, 0.34);
}

body.lti-page .main-button:nth-child(n),
body.lti-page .tool-grid .main-button:nth-child(n) {
  color: #07100f;
  background: linear-gradient(135deg, #78d9ca, #9edfbf);
  border-color: rgba(102, 216, 199, 0.7);
}

body.lti-page .main-button small {
  color: rgba(5, 19, 17, 0.65);
}

/* Discord account page */
body.lti-page--discord .discord-dashboard {
  padding-bottom: 56px;
}

body.lti-page--discord .intro {
  max-width: none;
}

body.lti-page--discord .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
}

body.lti-page--discord .status-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
}

body.lti-page--discord .intro h2 {
  max-width: 850px;
}

body.lti-page--discord .intro p {
  max-width: 720px;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

body.lti-page--discord .discord-layout,
body.lti-page--discord .discord-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

body.lti-page--discord .discord-secondary-grid {
  margin-top: 24px;
}

body.lti-page--discord .discord-panel {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(235, 230, 220, 0.14);
}

body.lti-page--discord .discord-panel--result {
  min-height: 100%;
}

body.lti-page--discord .discord-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

body.lti-page--discord .discord-actions .main-button {
  width: 100%;
  min-height: 72px;
  padding: 15px 17px;
  border-style: solid;
  border-width: 1px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
}

body.lti-page--discord .main-button small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
}

body.lti-page--discord .discord-panel > .section-label {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(235, 230, 220, 0.12);
  font-weight: 900;
  text-transform: uppercase;
}

body.lti-page--discord .discord-name-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 16px;
}

body.lti-page--discord .discord-name-form input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-style: solid;
  border-width: 1px;
  border-radius: 5px;
  font: inherit;
}

body.lti-page--discord .discord-name-form .main-button {
  min-height: 52px;
  padding: 12px 18px;
}

body.lti-page--discord #profileBox:empty::before {
  content: "Connect Discord to load your LearnTheIsle account.";
  display: block;
  padding: 16px;
  border: 1px solid rgba(235, 230, 220, 0.12);
  border-radius: 6px;
  color: var(--lti-muted);
  background: rgba(255, 255, 255, 0.026);
}

body.lti-page--discord #profileBox .profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
  padding: 16px;
  border: 1px solid rgba(235, 230, 220, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.026);
}

body.lti-page--discord #profileBox .profile-avatar {
  width: 56px;
  height: 56px;
  flex: none;
  border: 1px solid rgba(102, 216, 199, 0.32);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(102, 216, 199, 0.08);
}

body.lti-page--discord #profileBox .profile-name {
  color: var(--lti-text);
  font-size: 17px;
  font-weight: 900;
}

body.lti-page--discord #profileBox .profile-meta {
  margin-top: 4px;
  color: var(--lti-muted);
  font-size: 13px;
  line-height: 1.55;
}

body.lti-page--discord .discord-result-box {
  min-height: 270px;
  padding: 18px;
  border: 1px solid rgba(235, 230, 220, 0.12);
  border-radius: 6px;
  color: var(--lti-muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body.lti-page--discord .discord-feature-list,
body.lti-page--discord .discord-quick-links {
  display: grid;
  gap: 11px;
}

body.lti-page--discord .discord-feature-list > div,
body.lti-page--discord .discord-quick-links a {
  padding: 15px 16px;
  border: 1px solid rgba(235, 230, 220, 0.12);
  border-radius: 6px;
  color: var(--lti-text);
  background: rgba(255, 255, 255, 0.026);
  text-decoration: none;
}

body.lti-page--discord .discord-feature-list strong,
body.lti-page--discord .discord-quick-links strong {
  display: block;
  margin-bottom: 4px;
  color: var(--lti-amber);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.lti-page--discord .discord-feature-list span,
body.lti-page--discord .discord-quick-links span {
  color: var(--lti-muted);
  font-size: 13px;
  line-height: 1.45;
}

body.lti-page--discord .discord-quick-links a:hover {
  border-color: rgba(102, 216, 199, 0.38);
  background: rgba(102, 216, 199, 0.055);
}

/* Inputs and controls */
body.lti-page input,
body.lti-page select,
body.lti-page textarea,
body.lti-page .field-shell {
  border-color: rgba(235, 230, 220, 0.16);
  color: var(--lti-text);
  background-color: rgba(3, 6, 8, 0.86);
}

body.lti-page input:focus,
body.lti-page select:focus,
body.lti-page textarea:focus,
body.lti-page button:focus-visible,
body.lti-page a:focus-visible {
  outline: 3px solid rgba(242, 187, 116, 0.24);
  outline-offset: 2px;
}

body.lti-page .sex-option input:checked + span,
body.lti-page .tab.active {
  border-color: var(--lti-teal);
  color: #07110f;
  background: var(--lti-teal);
}

/* Tracker */
body.lti-page--tracker .tracker-layout {
  align-items: start;
}

body.lti-page--tracker .map-card {
  border-top: 2px solid rgba(242, 187, 116, 0.58);
}

body.lti-page--tracker .bar.hp {
  background: linear-gradient(90deg, var(--lti-coral), var(--lti-amber));
}

body.lti-page--tracker .bar.stamina {
  background: linear-gradient(90deg, #5fb887, var(--lti-green));
}

body.lti-page--tracker .bar.food {
  background: linear-gradient(90deg, var(--lti-amber-deep), var(--lti-amber));
}

body.lti-page--tracker .bar.water {
  background: linear-gradient(90deg, var(--lti-sky), var(--lti-teal));
}

/* Marketplace */
body.lti-page--marketplace {
  --bg: var(--lti-night);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

body.lti-page--marketplace .site-shell > .hero {
  min-height: 330px;
  background:
    linear-gradient(92deg, rgba(5, 7, 9, 0.93), rgba(5, 7, 9, 0.62) 51%, rgba(5, 7, 9, 0.19)),
    rgba(5, 7, 9, 0.42);
}

body.lti-page--marketplace .hero-art {
  opacity: 0.20;
  filter: sepia(1) saturate(1.8) hue-rotate(345deg) brightness(1.1) contrast(1.15);
}

body.lti-page--marketplace .hero-art::before,
body.lti-page--marketplace .sell-copy::after {
  background-image: url("/apex-dashboard/assets/dino-silhouette.png");
}

body.lti-page--marketplace .hero h1 span,
body.lti-page--marketplace .fee-value,
body.lti-page--marketplace .fossil-icon {
  color: var(--lti-amber);
}

body.lti-page--marketplace .hero h1 {
  font-size: clamp(52px, 6vw, 88px);
  line-height: 0.86;
  text-transform: uppercase;
}

body.lti-page--marketplace .listing-card,
body.lti-page--marketplace .sell-form-wrap {
  border-color: rgba(235, 230, 220, 0.14);
  background: rgba(6, 9, 11, 0.88);
}

/* Color changer â€” cinematic hangar */
body.lti-page--colors .app {
  width: min(1540px, calc(100% - 34px));
  min-height: calc(100vh - 118px);
  margin: 0 auto;
  padding-top: 28px;
}

body.lti-page--colors .header h1 {
  color: var(--lti-text);
  font-size: clamp(54px, 6vw, 88px);
  letter-spacing: -0.035em;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}

body.lti-page--colors .header small,
body.lti-page--colors .step-label {
  color: var(--lti-amber);
}

body.lti-page--colors .species-button {
  border-color: rgba(235, 230, 220, 0.13);
  color: #c6c4c0;
  background: rgba(255, 255, 255, 0.025);
}

body.lti-page--colors .species-button:hover,
body.lti-page--colors .species-button.active {
  border-color: rgba(102, 216, 199, 0.62);
  color: #07110f;
  background: linear-gradient(135deg, #78d9ca, #9edfbf);
}

body.lti-page--colors .steam-input {
  border-color: rgba(235, 230, 220, 0.18);
}

/* Responsive */
@media (max-width: 1120px) {
  body.lti-page .top-nav {
    position: relative;
    align-items: flex-start;
  }

  body.lti-page .nav-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.lti-page .nav-links a {
    font-size: 9px;
  }

  body.lti-page .cinematic-quickrail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.lti-page .cinematic-quickrail a:nth-child(2) {
    border-right: 0;
  }

  body.lti-page .cinematic-quickrail a:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(235, 230, 220, 0.12);
  }
}

@media (max-width: 760px) {
  body.lti-page {
    background-attachment: scroll;
    background-position: 58% top;
  }

  body.lti-page .top-nav {
    padding: 13px 12px;
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 13px;
  }

  body.lti-page .brand,
  body.lti-page .brand-copy {
    min-width: 0;
  }

  body.lti-page .header-actions {
    display: contents;
  }

  body.lti-page .utility-links {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }

  body.lti-page .nav-links {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.lti-page .nav-links a {
    padding: 10px 8px;
    border: 1px solid rgba(235, 230, 220, 0.09);
    text-align: center;
    white-space: normal;
    background: rgba(5, 7, 9, 0.38);
  }

  body.lti-page .utility-link {
    min-height: 36px;
  }

  body.lti-page .dashboard,
  body.lti-page .tracker-page,
  body.lti-page .shop-page,
  body.lti-page .inventory-page,
  body.lti-page .site-shell {
    width: calc(100% - 20px);
    padding-top: 22px;
  }

  body.lti-page--home .dashboard {
    padding-top: 0;
  }

  body.lti-page--home .dashboard > .hero {
    min-height: 510px;
    padding: 68px 10px 82px;
  }

  body.lti-page--home .dashboard > .hero h2 {
    font-size: clamp(58px, 19vw, 82px);
  }

  body.lti-page .utility-link.vote-link {
    min-width: 164px;
  }

  body.lti-page .cinematic-actions {
    width: 100%;
  }

  body.lti-page .cinematic-actions a {
    flex: 1 1 180px;
  }

  body.lti-page .cinematic-quickrail {
    grid-template-columns: 1fr;
    margin-top: -45px;
    padding: 0;
  }

  body.lti-page .cinematic-quickrail a,
  body.lti-page .cinematic-quickrail a:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(235, 230, 220, 0.12);
  }

  body.lti-page .cinematic-quickrail a:last-child {
    border-bottom: 0;
  }

  body.lti-page--tool .intro,
  body.lti-page--tool .shop-page > .hero,
  body.lti-page--tool .inventory-page > .hero,
  body.lti-page--marketplace .site-shell > .hero {
    min-height: 0;
    padding: 29px 21px;
  }

  body.lti-page--tool .intro::after,
  body.lti-page--tool .shop-page > .hero::after,
  body.lti-page--tool .inventory-page > .hero::after {
    display: none;
  }

  body.lti-page--tool::after {
    width: 95vw;
    opacity: 0.04;
  }

  body.lti-page--discord .discord-layout,
  body.lti-page--discord .discord-secondary-grid,
  body.lti-page--discord .discord-actions,
  body.lti-page--discord .discord-name-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.lti-page *,
  body.lti-page *::before,
  body.lti-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}