/* LUMYN — shared visual language. Page-specific layout and gameplay remain local. */
:root {
  color-scheme: dark;
  --ui-bg: #090e19;
  --ui-surface: #111a2a;
  --ui-raised: #182337;
  --ui-text: #f3f0e9;
  --ui-muted: #aab7c9;
  --ui-line: #b6c9e224;
  --ui-accent: #dcca9b;
  --ui-cyan: #9be1dd;
  --ui-radius: 16px;
  --ui-font:
    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui-serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 90px;
  scroll-padding-bottom: 90px;
}
body {
  font-family: var(--ui-font);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button:not(:disabled),
a {
  touch-action: manipulation;
}
button:disabled {
  cursor: not-allowed;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ui-cyan) !important;
  outline-offset: 4px;
  box-shadow: 0 0 0 5px #0a101c !important;
}
::selection {
  background: #9be1dd45;
  color: #fff;
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #9aaac0;
}
button,
a {
  transition:
    background-color 0.18s,
    border-color 0.18s,
    color 0.18s,
    box-shadow 0.18s;
}
input,
select,
textarea {
  accent-color: var(--ui-cyan);
}
.ui-skip {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 10000;
  transform: translateY(-160%);
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--ui-cyan);
  color: #091521;
  font-weight: 700;
  text-decoration: none;
}
.ui-skip:focus {
  transform: none;
}
.ui-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.resonance-nav {
  position: fixed;
  z-index: 50;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 7px;
  border: 1px solid #c7d7ed25;
  border-radius: 18px;
  background: #0d1527f5;
  box-shadow: 0 12px 50px #0006;
  backdrop-filter: blur(20px);
}
.resonance-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 78px;
  min-height: 48px;
  padding: 5px 9px;
  border-radius: 11px;
  color: #aab7c9;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
}
.resonance-nav a:hover {
  background: #ffffff0a;
  color: #fff;
}
.resonance-nav a[aria-current] {
  background: #a4ddd914;
  color: var(--ui-cyan);
}
.resonance-nav a[aria-current]:after {
  content: "";
  position: absolute;
  top: -7px;
  width: 18px;
  height: 2px;
  background: var(--ui-cyan);
  border-radius: 2px;
}
.game-home .resonance-nav {
  display: none;
}
/* Home: a clear destination, generous artwork, and an immediately playable path. */
.game-home {
  --sidebar: 230px;
  --top: 78px;
  --text: var(--ui-text);
  --muted: var(--ui-muted);
  background:
    radial-gradient(ellipse at 60% 0, #1c3045 0, transparent 60%), var(--ui-bg);
}
.game-backdrop {
  opacity: 0.3;
}
.game-topbar {
  background: #0a111ef5;
  border-color: var(--ui-line);
  box-shadow: none;
  padding-right: 28px;
}
.game-logo {
  width: 170px;
}
.game-logo img {
  width: 150px;
}
.game-sidebar {
  padding: 22px 16px;
  gap: 20px;
  background: #0a111ee8;
  border-color: var(--ui-line);
  overflow-y: auto;
}
.player-card {
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 0 0 22px;
}
.player-avatar {
  width: 46px;
  height: 46px;
  border-color: #b9d9df66;
  box-shadow: none;
}
.player-copy strong {
  font: 600 14px var(--ui-font);
}
.player-copy span {
  font-size: 11px;
  color: var(--ui-cyan);
}
.player-copy small {
  font-size: 11px;
  color: var(--ui-muted);
}
.primary-nav {
  gap: 6px;
}
.primary-nav a,
.primary-nav button {
  height: 47px;
  grid-template-columns: 38px 1fr;
  border-radius: 9px;
  background: transparent;
}
.primary-nav span {
  font: 500 13px var(--ui-font);
  letter-spacing: 0;
}
.primary-nav a i,
.primary-nav button i {
  font-size: 18px;
  color: var(--ui-muted);
}
.primary-nav a:hover {
  background: #ffffff07;
  border-color: var(--ui-line);
}
.primary-nav .active {
  background: #a4ddd914;
  border-color: #a4ddd925;
  box-shadow: none;
  color: var(--ui-cyan);
}
.primary-nav .active:before,
.primary-nav .active:after {
  display: none;
}
.primary-nav .active i {
  color: var(--ui-cyan);
}
.nav-section-label {
  margin: 0 0 2px;
  padding: 0 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #7e92aa;
}
.resonance-pass {
  min-height: 98px;
  grid-template-columns: 38px 1fr;
  padding: 12px;
  border-radius: 12px;
  border-color: #dcca9b38;
  background: linear-gradient(135deg, #dcca9b0e, #162135);
}
.resonance-pass > i {
  font-size: 28px;
  color: var(--ui-accent);
  text-shadow: none;
}
.resonance-pass b {
  font-size: 15px;
}
.resonance-pass em {
  font-size: 10px;
}
.resource-strip {
  justify-content: flex-end;
  gap: 8px;
  padding-right: 20px;
}
.resource-pill {
  min-width: 105px;
  height: 38px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: #121e30;
  text-decoration: none;
  grid-template-columns: 22px 1fr 16px;
  box-shadow: none;
}
.resource-pill b {
  font-size: 12px;
}
.resource-live {
  min-width: 142px;
}
.resource-live small {
  font-size: 8px;
  color: var(--ui-muted);
}
.resource-pill span {
  font-size: 16px;
  color: #8496ae;
}
.resource-icon {
  text-shadow: none;
}
.resource-icon.crystal {
  color: var(--ui-cyan);
}
.top-utilities button {
  border: 1px solid var(--ui-line);
  border-radius: 9px;
  font-size: 18px;
  margin-left: 6px;
}
.home-welcome {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 30px 30px 22px;
}
.home-welcome small,
.home-hero-copy > small {
  color: var(--ui-cyan);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.2em;
}
.home-welcome h1 {
  margin: 7px 0 0;
  font: 400 clamp(27px, 3vw, 40px) / 1.2 var(--ui-serif);
  letter-spacing: -0.025em;
}
.home-welcome p {
  margin: 8px 0 0;
  color: var(--ui-muted);
  font-size: 13px;
}
.home-version {
  font-size: 10px;
  color: #afbed0;
  letter-spacing: 0.1em;
  white-space: nowrap;
  border: 1px solid var(--ui-line);
  border-radius: 20px;
  padding: 8px 12px;
}
.feature-zone {
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 1fr);
  gap: 22px;
  padding: 0 30px 28px;
  min-height: 0;
  border: 0;
  align-items: start;
}
.home-promotion {
  min-height: 650px;
  height: calc(100dvh - 235px);
  max-height: 820px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  isolation: isolate;
  background: #142233;
  overflow: hidden;
}
.home-promotion-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.9;
}
.home-promotion:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #060e1820 20%,
    #08132160 50%,
    #081321 100%
  );
  z-index: 1;
  pointer-events: none;
}
.home-promotion-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 25%, #49787955, transparent 65%),
    linear-gradient(130deg, #23384a, #0e192a);
}
.home-promotion-fallback img {
  opacity: 0.6;
  max-width: 65%;
  align-self: start;
  margin-top: 100px;
}
.home-hero-copy {
  position: absolute;
  z-index: 3;
  left: 34px;
  right: 28px;
  bottom: 34px;
}
.home-hero-copy h2 {
  font: 400 clamp(38px, 4vw, 64px) / 1.04 var(--ui-serif);
  letter-spacing: -0.035em;
  margin: 16px 0;
  color: #faf7f0;
}
.home-hero-copy p {
  max-width: 360px;
  color: #bdcbd9;
  font-size: 14px;
  line-height: 1.7;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid #e6d7b4;
  border-radius: 8px;
  background: var(--ui-accent);
  color: #162031 !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
}
.ui-button:hover {
  background: #f0e3c3;
}
.ui-button.secondary {
  border-color: #bfd2e13b;
  background: #b6c9e20c;
  color: var(--ui-text) !important;
}
.ui-button.secondary:hover {
  background: #b6c9e21c;
}
.right-column {
  padding: 0;
  gap: 18px;
  grid-template-rows: 230px auto auto;
  background: none;
}
.event-carousel {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  box-shadow: none;
}
.event-slide {
  background:
    linear-gradient(90deg, #152037f5, #20364b8a),
    var(--event-art, none) center/cover;
}
.event-slide > strong {
  font-size: 27px;
  line-height: 1.07;
  color: #f1e8d5;
  text-shadow: none;
}
.event-slide > p {
  font-size: 12px;
  line-height: 1.5;
  color: #bbcada;
}
.event-carousel-head > span {
  font: 600 9px var(--ui-font);
  letter-spacing: 0.18em;
  color: var(--ui-cyan);
}
.event-carousel-arrows button {
  width: 32px;
  height: 32px;
}
.event-carousel-dots button {
  width: 24px;
  height: 24px;
  border: 8px solid transparent;
  background-clip: padding-box;
}
.event-carousel-dots button.active {
  width: 32px;
  background-color: var(--ui-cyan);
  box-shadow: none;
}
.event-carousel-dots {
  bottom: 8px;
}
.event-empty {
  background:
    radial-gradient(ellipse at 90% 0, #34586866, transparent 65%), #121e30;
}
.activity-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.activity-grid .activity-link {
  min-height: 130px;
  border-radius: 12px;
  align-items: flex-start;
  text-align: left;
  padding: 20px;
  background: linear-gradient(120deg, #1d3041, #121e30);
  border: 1px solid var(--ui-line);
  text-decoration: none;
  position: relative;
  display: flex;
  flex-direction: column;
}
.activity-grid .activity-link span {
  font: 600 14px var(--ui-font);
}
.activity-grid .activity-link small {
  font-size: 10px;
  line-height: 1.5;
  margin-top: 8px;
  color: var(--ui-muted);
}
.activity-grid .activity-link i {
  position: absolute;
  right: 16px;
  bottom: 15px;
  color: var(--ui-cyan);
  font-size: 26px;
  text-shadow: none;
}
.activity-grid .activity-link em {
  margin-top: 18px;
  font-size: 10px;
  color: var(--ui-accent);
}
.home-active-team {
  padding: 18px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: #101b2bcc;
}
.team-heading {
  font-family: var(--ui-font);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ui-muted);
  gap: 10px;
}
.team-heading b {
  font-size: 12px;
  color: var(--ui-accent);
}
.home-active-team .team-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  overflow: visible;
}
.home-active-team .team-slot {
  border-radius: 9px;
  border-color: var(--ui-line);
  text-decoration: none;
  background: #172236;
}
.home-active-team .team-slot > div {
  aspect-ratio: 1.05;
}
.home-active-team .team-slot strong {
  font: 600 11px var(--ui-font);
  padding-top: 10px;
}
.team-slot small {
  font-size: 9px;
}
.team-edit-link {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--ui-line);
  color: var(--ui-muted);
  text-decoration: none;
  font-size: 11px;
}
.game-menu-drawer {
  background: #0e1929;
  border-color: var(--ui-line);
}
.game-menu-main a,
.game-menu-secondary button {
  min-height: 44px;
}
.game-toast {
  font-size: 13px;
  border-radius: 10px;
  max-width: calc(100vw - 32px);
  text-align: center;
}
/* Team and character sheets. */
.team-builder-page,
.character-page {
  background: var(--ui-bg);
  color: var(--ui-text);
}
.team-builder-backdrop {
  opacity: 0.3;
}
.team-builder-topbar,
.character-top,
.dex-top,
.store-top,
.wish-top {
  background: #0b1424ed;
  border-color: var(--ui-line);
}
.team-builder-shell {
  max-width: 1250px;
  padding-bottom: 110px;
}
.team-builder-hero {
  border-radius: var(--ui-radius);
  border-color: var(--ui-line);
  background: linear-gradient(115deg, #213548, #131d2e);
  box-shadow: none;
  padding: 30px;
}
.team-builder-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}
.team-builder-hero p {
  font-size: 13px;
  line-height: 1.6;
}
.team-panel {
  border-radius: var(--ui-radius);
  border-color: var(--ui-line);
  background: #111b2bea;
  padding: 24px;
}
.team-panel-heading small,
.team-builder-hero span {
  color: var(--ui-cyan);
}
.selected-slot {
  border-radius: 10px;
}
.selected-slot strong {
  font: 600 11px var(--ui-font);
}
.roster-card,
.lumeen-card {
  border-radius: 12px;
  border-color: var(--ui-line);
  background: linear-gradient(180deg, #1b2b3f, #121c2b);
}
.roster-card.selected,
.lumeen-card.selected {
  border-color: var(--ui-cyan);
  box-shadow: 0 0 0 1px #9be1dd30;
}
.roster-card.selected > i {
  background: var(--ui-cyan);
  color: #102432;
}
.roster-card > strong,
.lumeen-card > strong {
  font: 600 13px var(--ui-font);
}
.roster-card > small,
.lumeen-card > small {
  font-size: 11px;
  color: var(--ui-muted);
}
.roster-card > i {
  width: 26px;
  height: 26px;
}
.lumeen-card > i {
  color: var(--ui-cyan);
}
.team-actions {
  z-index: 15;
  bottom: 100px;
  border-radius: 12px;
  flex-wrap: wrap;
}
.team-actions > button {
  border-radius: 8px;
  background: var(--ui-accent);
  border-color: var(--ui-accent);
  color: #122030;
  min-height: 48px;
}
.team-actions > button span {
  font: 750 12px var(--ui-font);
}
.team-actions > button small {
  color: #33465d;
  font-size: 10px;
}
.team-error {
  font-size: 12px;
  line-height: 1.5;
  border-radius: 8px;
}
.roster-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
  flex-wrap: wrap;
}
.roster-toolbar input {
  flex: 1;
  min-width: 180px;
  height: 44px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  padding: 0 14px;
  background: #0c1524;
  color: var(--ui-text);
  font-size: 13px;
}
.roster-toolbar span {
  font-size: 11px;
  color: var(--ui-muted);
}
.roster-empty {
  padding: 24px;
  text-align: center;
  color: var(--ui-muted);
}
.character-shell {
  padding-bottom: 110px;
}
.character-hero,
.character-skills,
.character-skill {
  border-radius: var(--ui-radius);
  border-color: var(--ui-line);
}
.character-desc {
  font-size: 14px;
  line-height: 1.75;
}
.character-skills > header p {
  font-size: 12px;
  color: var(--ui-muted);
}
/* Collection: readable labels and complete details on narrow screens. */
.lumydex-page {
  height: 100dvh;
  background: var(--ui-bg);
}
.dex-app {
  height: calc(100dvh - 164px);
}
.dex-top {
  height: 74px;
}
.dex-search-row input,
.dex-filters select {
  border-radius: 7px;
  font-size: 12px;
  min-height: 40px;
}
.dex-entry-copy strong {
  font-size: 13px;
}
.dex-entry-copy small {
  font-size: 10px;
  color: var(--ui-muted);
}
.dex-index-entry {
  min-height: 70px;
  border-radius: 9px;
}
.dex-index-entry.selected {
  background: #9be1dd10;
  border-color: #9be1dd33;
  box-shadow: inset 2px 0 var(--ui-cyan);
}
.dex-entry-number {
  color: var(--ui-muted);
}
.dex-data-panel {
  padding: 26px;
  background: #111c2a;
}
.dex-description {
  font-size: 13px;
  line-height: 1.75;
  color: #bfccda;
}
.dex-data-head small,
.dex-art-caption small {
  color: var(--ui-cyan);
}
.dex-detail-nav button {
  min-height: 44px;
  font-size: 11px;
}
.dex-back,
.dex-options {
  font-size: 11px;
  min-height: 44px;
}
.dex-index-head small {
  font-size: 10px;
}
.dex-art-zone {
  background:
    radial-gradient(ellipse at 50% 35%, #29495977, transparent 65%), #111d2e;
}
.dex-data-primary > div {
  background: #152236;
}
.dex-entry-thumb {
  border-radius: 8px;
}
.dex-element-chip {
  border-radius: 8px;
}
.dex-data-primary {
  border-radius: 10px;
  overflow: hidden;
}
/* Summoning, shop and season use the same surfaces and rhythm. */
.store-shell,
.bp-shell {
  background:
    radial-gradient(ellipse at 80% 0, #27405266, transparent 55%), var(--ui-bg);
  padding-bottom: 95px;
}
.store-main {
  max-width: 1450px;
  width: 100%;
  margin: auto;
  padding: 26px;
}
.store-top {
  min-height: 64px;
}
.store-tabs a {
  font-size: 11px;
}
.store-hero {
  min-height: 380px;
  border-radius: var(--ui-radius);
  border-color: var(--ui-line);
}
.store-copy h1 {
  font-family: var(--ui-serif);
  line-height: 1.07;
}
.store-copy p {
  font-size: 14px;
  color: #bccada;
}
.store-copy small {
  color: var(--ui-cyan);
}
.store-btn {
  border-radius: 8px;
  min-height: 46px;
  font-size: 11px;
}
.store-btn.primary {
  background: var(--ui-accent);
  color: #142234;
  font-weight: 750;
}
.store-card {
  border-radius: var(--ui-radius);
  border-color: var(--ui-line);
  background: #131f30;
  padding: 24px;
}
.store-card h2 {
  font: 400 25px var(--ui-serif);
}
.store-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ui-muted);
}
.resource-preview {
  border-radius: 10px;
  color: var(--ui-text);
}
.resource-preview span {
  font-size: 11px;
}
.banner-mini {
  border-radius: 10px;
  min-height: 115px;
}
.banner-mini strong {
  font-size: 13px;
}
.bp-header {
  height: auto;
  min-height: 200px;
  padding: 36px;
  background: linear-gradient(120deg, #213447, #142030);
  gap: 20px;
}
.bp-header h1 {
  font: 400 clamp(30px, 4vw, 46px) var(--ui-serif);
}
.bp-header p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 620px;
}
.bp-controls button,
.bp-controls a {
  height: 44px;
  border-radius: 8px;
  font-size: 11px;
}
.bp-track-wrap {
  border-radius: 14px;
}
.bp-track {
  scrollbar-width: thin;
  scrollbar-color: #8da3bf #101a2a;
  touch-action: auto;
}
.bp-reward span {
  font-size: 11px;
}
.bp-labels div {
  font-size: 10px;
}
.bp-level-num {
  font-size: 13px;
}
.bp-reward.locked {
  opacity: 0.65;
}
.bp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0;
  color: var(--ui-muted);
  font-size: 12px;
}
.bp-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.bp-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ba1b7;
}
.bp-legend span:first-child i {
  background: var(--ui-cyan);
}
.wish-shell {
  padding-bottom: 95px;
  background-color: var(--ui-bg);
}
.wish-list {
  padding: 20px 12px;
}
.wish-tab {
  border-radius: 12px;
}
.wish-tab.active {
  border-color: var(--ui-cyan);
}
.wish-copy h1 {
  font-family: var(--ui-serif);
  line-height: 1.08;
}
.wish-copy p {
  font-size: 14px;
  line-height: 1.7;
  color: #bfccd9;
}
.wish-eyebrow {
  color: var(--ui-cyan);
}
.summon-button {
  border-radius: 10px;
  min-height: 60px;
}
.wish-secondary button {
  min-height: 44px;
}
.wish-notice {
  font-size: 12px;
  line-height: 1.6;
}
.wish-dialog {
  border-radius: 18px;
  border-color: var(--ui-line);
  background: #101b2c;
  max-height: 85dvh;
  overflow: auto;
}
.wish-dialog > header button {
  width: 44px;
  height: 44px;
}
.wish-modal {
  z-index: 100;
}
.wish-error {
  font-size: 13px;
}
.history-table {
  font-size: 12px;
}
.wish-wallet strong {
  font-variant-numeric: tabular-nums;
}
/* Combat and exploration keep their dedicated canvas geometry. */
.player-combat-body {
  background:
    radial-gradient(ellipse at 50% 0, #263e5166, transparent 60%), var(--ui-bg);
}
.player-combat-body .page-title-row h1 {
  font-family: var(--ui-serif);
  font-weight: 400;
}
.player-combat-body .combat-client-tools a,
.player-combat-body .combat-client-tools button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}
.player-combat-body .setup-note {
  border-radius: 12px;
  background: #142135;
  border-color: var(--ui-line);
}
.player-combat-body .pve-matchup > article {
  border-radius: 14px;
  border-color: var(--ui-line);
}
.player-combat-body .page-subtitle {
  font-size: 13px;
  line-height: 1.6;
}
.world-player-top {
  border-bottom: 1px solid var(--ui-line);
  background: linear-gradient(#0a1328dd, #0a132877);
}
.world-back {
  border-radius: 8px;
  min-height: 44px;
}
.world-player-hud {
  border-radius: 12px;
  background: #0c182ae8;
  border: 1px solid var(--ui-line);
}
.world-pointer-hint {
  border-radius: 12px;
}
.world-help {
  font-size: 12px;
}
/* Login and settings. */
.startup-panel {
  border-radius: 18px;
  border-color: var(--ui-line);
  background: #0c1829e8;
}
.startup-auth h1 {
  font-family: var(--ui-serif);
  font-weight: 400;
}
.startup-auth input {
  border-radius: 8px;
  min-height: 46px;
  font-size: 16px;
}
.startup-auth button[type="submit"] {
  border-radius: 8px;
  min-height: 46px;
}
.startup-status {
  font-size: 13px;
  line-height: 1.5;
}
.options-window {
  border-radius: 18px;
  border-color: var(--ui-line);
  background: #0d192a;
}
.options-tabs button {
  min-height: 44px;
  font-size: 13px;
}
.options-window > header button {
  min-width: 44px;
  min-height: 44px;
}
.options-panels label {
  font-size: 13px;
}
.options-panels select {
  min-height: 40px;
  border-radius: 8px;
}
.options-panels input[type="range"] {
  min-height: 32px;
}
.startup-links button {
  min-height: 44px;
}
.startup-eyebrow {
  color: var(--ui-cyan);
}
.auth-dialog {
  border-radius: 18px;
}
@media (min-width: 981px) and (max-width: 1280px) {
  .game-home {
    --sidebar: 200px;
  }
  .game-topbar {
    grid-template-columns: var(--sidebar) minmax(0, 1fr) auto;
  }
  .game-logo {
    width: 150px;
  }
  .game-logo img {
    width: 138px;
  }
  .player-card {
    grid-template-columns: 42px 1fr;
  }
  .player-avatar {
    width: 42px;
    height: 42px;
  }
  .player-copy {
    display: grid;
  }
  .primary-nav a {
    grid-template-columns: 34px 1fr;
    text-align: left;
  }
  .primary-nav span {
    display: block;
  }
  .resonance-pass span {
    display: grid;
  }
  .resonance-pass {
    grid-template-columns: 30px 1fr;
    text-align: left;
  }
  .feature-zone {
    grid-template-columns: minmax(0, 1fr) 310px;
    padding: 0 22px 24px;
    gap: 16px;
  }
  .home-welcome {
    padding: 25px 22px 20px;
  }
  .home-hero-copy {
    left: 24px;
    right: 20px;
  }
  .resource-pill {
    min-width: 85px;
  }
  .resource-live {
    min-width: 128px;
  }
  .resource-strip {
    padding-right: 6px;
  }
}
@media (max-width: 980px) {
  .game-home {
    --sidebar: 0px;
    --top: 68px;
  }
  .game-topbar {
    grid-template-columns: 120px minmax(0, 1fr) 44px;
    padding: 0 14px;
  }
  .game-logo {
    width: 110px;
  }
  .game-logo img {
    width: 110px;
  }
  .resource-strip {
    padding-right: 10px;
    justify-content: flex-start;
    overflow: auto;
  }
  .resource-pill {
    flex-shrink: 0;
    min-width: 94px;
  }
  .resource-live {
    min-width: 138px;
  }
  .game-home .resonance-nav {
    display: flex;
  }
  .game-shell {
    padding-bottom: 95px;
  }
  .home-welcome {
    padding: 24px 20px 20px;
  }
  .feature-zone {
    padding: 0 20px 24px;
    grid-template-columns: 1fr;
  }
  .home-promotion {
    height: 540px;
    min-height: 0;
  }
  .right-column {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 230px auto;
  }
  .home-active-team {
    grid-column: 1/-1;
  }
  .activity-grid {
    overflow: visible;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .activity-grid .activity-link {
    min-height: 0;
    padding: 15px;
  }
  .activity-grid .activity-link small {
    min-height: 0;
  }
  .activity-grid .activity-link em {
    margin-top: 8px;
  }
  .home-active-team .team-slot > div {
    aspect-ratio: 1.8;
  }
  .team-builder-hero {
    padding: 22px;
  }
  .dex-description,
  .dex-stats {
    display: block;
  }
  .world-help {
    max-width: 230px;
  }
  .store-shell {
    grid-template-rows: auto 1fr;
  }
  .store-top {
    flex-wrap: wrap;
    padding: 12px;
    gap: 8px;
  }
  .store-tabs {
    order: 3;
    width: 100%;
    overflow: auto;
    min-height: 44px;
  }
  .store-top img {
    display: block;
    width: 90px;
    margin: auto;
  }
  .store-tabs a {
    white-space: nowrap;
  }
  .store-options {
    margin-left: 0;
  }
}
@media (max-width: 640px) {
  .resonance-nav {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    gap: 0;
    padding: 7px 3px calc(7px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
    justify-content: space-around;
  }
  .resonance-nav a {
    min-width: 0;
    flex: 1;
    padding: 5px 2px;
    font-size: 9px;
    gap: 5px;
  }
  .resonance-nav svg {
    width: 19px;
    height: 19px;
  }
  .game-topbar {
    grid-template-columns: 84px minmax(0, 1fr) 40px;
    padding: 0 10px;
    gap: 5px;
  }
  .game-logo,
  .game-logo img {
    width: 80px;
  }
  .resource-strip {
    gap: 6px;
    padding: 0 3px;
  }
  .resource-pill:nth-child(2) {
    display: grid;
  }
  .resource-live {
    min-width: 126px;
  }
  .resource-pill span {
    display: block;
  }
  .resource-icon img {
    width: 18px;
    height: 18px;
  }
  .resource-pill {
    height: 36px;
  }
  .top-utilities button {
    width: 38px;
    height: 38px;
    margin: 0;
  }
  .home-welcome {
    padding: 22px 16px 18px;
    align-items: start;
  }
  .home-welcome h1 {
    font-size: 29px;
  }
  .home-welcome p {
    font-size: 12px;
    line-height: 1.6;
  }
  .home-version {
    display: none;
  }
  .feature-zone {
    padding: 0 12px 20px;
    gap: 16px;
  }
  .home-promotion {
    height: 490px;
  }
  .home-hero-copy {
    left: 24px;
    right: 20px;
    bottom: 26px;
  }
  .home-hero-copy h2 {
    font-size: 43px;
  }
  .home-hero-copy p {
    font-size: 13px;
  }
  .home-hero-actions {
    gap: 8px;
    margin-top: 20px;
  }
  .ui-button {
    padding: 12px 15px;
    font-size: 11px;
  }
  .right-column {
    grid-template-columns: 1fr;
    grid-template-rows: 230px auto auto;
    gap: 14px;
  }
  .activity-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .activity-grid .activity-link {
    min-height: 140px;
    padding: 17px;
  }
  .activity-grid .activity-link span {
    font-size: 13px;
  }
  .activity-grid .activity-link small {
    min-height: 34px;
  }
  .activity-grid .activity-link i {
    font-size: 22px;
    right: 12px;
  }
  .home-active-team {
    padding: 16px;
  }
  .home-active-team .team-slot > div {
    aspect-ratio: 0.95;
  }
  .team-heading {
    flex-wrap: wrap;
  }
  .team-builder-topbar {
    height: 66px;
    grid-template-columns: 86px 1fr 38px;
    padding: 0 12px;
    gap: 12px;
  }
  .team-brand img {
    width: 86px;
  }
  .team-builder-topbar > div strong {
    font: 600 12px var(--ui-font);
  }
  .team-builder-topbar > div small {
    font-size: 8px;
    letter-spacing: 0.1em;
  }
  .team-builder-shell {
    width: calc(100% - 24px);
    padding: 16px 0 110px;
  }
  .team-builder-hero {
    padding: 20px;
    gap: 20px;
  }
  .team-builder-hero h1 {
    font-size: 31px;
  }
  .team-panel {
    padding: 16px;
  }
  .lumyn-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .lumeen-roster {
    grid-template-columns: 1fr;
  }
  .team-actions {
    bottom: calc(76px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .team-actions > button {
    flex: 1;
    min-width: 0;
  }
  .team-error {
    width: 100%;
    margin: 0;
  }
  .roster-card > small {
    font-size: 10px;
  }
  .lumeen-panel {
    display: block;
  }
  .dex-top {
    grid-template-columns: 90px 1fr 80px;
    padding: 0 12px;
  }
  .dex-title small {
    font-size: 8px;
  }
  .dex-app {
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
  .lumydex-page {
    height: auto;
    overflow: auto;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .dex-index-panel {
    height: auto;
    max-height: 440px;
    flex: none;
    grid-template-rows: auto auto auto minmax(100px, 220px) auto;
  }
  .dex-index-list {
    max-height: 220px;
  }
  .dex-stage {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .dex-detail.active {
    position: relative;
    display: flex;
    flex-direction: column;
    inset: auto;
    transform: none;
  }
  .dex-art-zone {
    min-height: 360px;
  }
  .dex-data-panel {
    position: relative;
    max-height: none;
    padding: 22px;
  }
  .dex-main-art {
    height: 76%;
    inset: 0 5% 24%;
  }
  .dex-description,
  .dex-stats {
    display: block;
  }
  .dex-art-caption {
    bottom: 0;
  }
  .dex-detail-nav {
    margin-bottom: 10px;
  }
  .store-main {
    padding: 12px;
  }
  .store-copy {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    max-width: none;
    padding: 32px 24px;
  }
  .store-copy h1 {
    font-size: 38px;
  }
  .store-hero {
    min-height: 340px;
    display: flex;
    align-items: center;
  }
  .store-actions {
    flex-wrap: wrap;
  }
  .store-btn {
    min-width: 130px;
  }
  .store-resource-grid {
    grid-template-columns: 1fr;
  }
  .resource-preview {
    min-height: 75px;
  }
  .store-resource-grid .resource-preview > div {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .resource-preview span {
    font-size: 13px;
    margin: 0;
  }
  .bp-header {
    padding: 28px 20px;
    grid-template-columns: 1fr;
    min-height: 220px;
  }
  .bp-status {
    text-align: left;
  }
  .bp-status strong {
    font-size: 28px;
  }
  .bp-status span {
    font-size: 11px;
  }
  .bp-controls {
    flex-wrap: wrap;
  }
  .bp-labels {
    width: 85px;
    flex-basis: 85px;
  }
  .bp-labels div {
    font-size: 9px;
    padding: 0 8px;
  }
  .bp-content {
    padding: 16px 12px;
  }
  .wish-shell {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .wish-copy h1 {
    font-size: 36px;
  }
  .wish-copy p {
    font-size: 13px;
  }
  .wish-dialog {
    width: calc(100vw - 24px);
    padding: 18px;
  }
  .history-table {
    display: block;
    overflow-x: auto;
  }
  .wish-top .logo {
    max-width: 85px;
  }
  .wish-top {
    gap: 8px;
  }
  .world-player-top {
    gap: 10px;
    padding: 12px;
  }
  .world-player-top .world-help {
    display: none;
  }
  .world-player-top > div strong {
    font-size: 15px;
  }
  .player-combat-body .page-title-row {
    flex-wrap: wrap;
    gap: 15px;
  }
  .player-combat-body .page-title-row h1 {
    font-size: 28px;
  }
  .character-shell {
    padding-bottom: 100px;
  }
  .game-toast {
    bottom: 90px;
  }
  .startup-center {
    max-height: 100dvh;
    overflow: auto;
    padding: 24px 16px;
  }
  .options-window {
    max-height: 92dvh;
    overflow: auto;
  }
}
@media (orientation: landscape) and (max-height: 560px) {
  .lumeen-panel {
    display: block;
  }
  .home-promotion {
    min-height: 460px;
  }
  .game-sidebar {
    overflow: auto;
  }
  .team-builder-hero p {
    display: block;
  }
  .team-builder-hero {
    grid-template-columns: 1fr auto;
  }
  .game-shell {
    padding-bottom: 90px;
  }
  .startup-center {
    max-height: 100dvh;
    overflow: auto;
  }
  .resonance-nav {
    bottom: 6px;
    padding: 4px;
  }
  .resonance-nav a {
    min-height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
html[data-reduce-motion="1"] *,
html[data-reduce-motion="1"] *::before,
html[data-reduce-motion="1"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

.team-save-hint {
  margin: 0 auto 0 4px;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.5;
}
.selected-slot {
  color: var(--ui-text);
  cursor: pointer;
}
.selected-slot:disabled {
  cursor: default;
}
.bp-reward.reached {
  background: #9be1dd0c;
  box-shadow: inset 0 2px #9be1dd55;
}
.bp-reward.reached:after {
  content: "NIVEAU ATTEINT";
  position: absolute;
  bottom: 7px;
  font-size: 8px;
  color: var(--ui-cyan);
}
.team-actions > button:disabled {
  opacity: 0.6;
}
.team-actions > button:disabled small {
  color: #162033;
}

.game-home {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}
.game-shell {
  display: block;
  height: auto;
  min-height: 100dvh;
  padding-top: var(--top);
  overflow: visible;
}
.right-column {
  min-height: 0;
}
.resource-pill.resource-live {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: 1fr 1fr;
}
.resource-live .resource-icon {
  grid-row: 1/3;
}
.resource-live b {
  align-self: end;
}
.resource-live small {
  align-self: start;
  text-align: center;
}
.resonance-pass {
  text-decoration: none;
}
.event-carousel-dots button {
  position: relative;
  background: transparent;
  border: 0;
  width: 24px;
  height: 24px;
}
.event-carousel-dots button:after {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 9px;
  background: #c8d6e266;
}
.event-carousel-dots button.active {
  width: 30px;
  background: transparent;
}
.event-carousel-dots button.active:after {
  width: 18px;
  left: 6px;
  background: var(--ui-cyan);
}
.home-active-team .team-slot > div > img:not(.slot-element) {
  object-fit: cover;
}
.store-shell,
.store-main,
.store-top,
.store-sections,
.store-card {
  min-width: 0;
}
.store-tabs {
  min-width: 0;
}
.store-tabs a {
  flex-shrink: 0;
}
.team-selected {
  min-width: 0;
}
.team-panel-heading {
  gap: 10px;
  flex-wrap: wrap;
}
.lumeen-heading-actions {
  flex-wrap: wrap;
}
.team-save-hint {
  flex: 1 1 190px;
}
.store-card .pass-line {
  min-width: 0;
}
@media (max-width: 980px) {
  .game-shell {
    padding-bottom: 100px;
  }
}
@media (max-width: 640px) {
  .team-builder-hero {
    min-width: 0;
  }
  .team-selected {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .selected-slot {
    min-width: 0;
  }
  .store-tabs {
    max-width: calc(100vw - 24px);
  }
  .store-sections {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-actions {
    position: sticky;
  }
  .team-save-hint {
    flex-basis: 100%;
    margin: 0 4px;
  }
  .home-active-team .team-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-hero-copy h2 {
    font-size: 42px;
  }
  .home-promotion {
    height: 500px;
  }
}

.bp-track {
  scroll-padding-inline-start: 130px;
}
.world-help {
  position: relative;
  margin-left: auto;
}
.world-help summary {
  cursor: pointer;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  color: var(--ui-text);
  font-size: 12px;
}
.world-help p {
  position: absolute;
  right: 0;
  top: 38px;
  width: 310px;
  padding: 18px;
  background: #0d192bf5;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  line-height: 1.9;
  color: #c0cfdf;
  box-shadow: 0 10px 40px #0008;
}
.world-touch-controls {
  display: none;
}
.world-loading-back {
  color: #bfcedf;
  font-size: 12px;
  padding: 14px;
  text-decoration: underline;
}
.world-loading span {
  font-size: 12px;
  max-width: 340px;
  text-align: center;
  line-height: 1.6;
}
.world-player .ui-skip {
  user-select: auto;
}
.world-player-top .world-help {
  display: block;
}
.world-player-top > div:nth-child(2) {
  min-width: 0;
}
.world-player-top > div:nth-child(2) strong {
  overflow: hidden;
  text-overflow: ellipsis;
}
.world-player-top > button {
  flex-shrink: 0;
}
.world-coords {
  display: none;
}
.world-player-hud {
  min-width: 250px;
}
.world-touch-controls button {
  touch-action: none;
  user-select: none;
  min-width: 48px;
  height: 48px;
  border: 1px solid #b6d6e455;
  border-radius: 12px;
  background: #0e1d31db;
  color: #e8f4f5;
  font-size: 18px;
  box-shadow: 0 3px 16px #0004;
}
.world-touch-controls button.pressed {
  background: #9be1dd;
  color: #102432;
}
.world-dpad {
  display: grid;
  grid-template-columns: repeat(3, 48px);
  gap: 5px;
}
.world-dpad button:first-child {
  grid-column: 2;
}
.world-dpad button:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}
.world-dpad button:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}
.world-dpad button:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}
.world-touch-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}
.world-touch-actions button {
  font-size: 12px;
  padding: 0 14px;
}
.skill-progress-card {
  border-radius: 12px;
  overflow: hidden;
  border-color: var(--ui-line);
}
.skill-progress-main button {
  border-radius: 8px;
  min-height: 46px;
  font-size: 10px;
}
.skill-current p,
.skill-next p {
  font-size: 13px;
  line-height: 1.6;
}
.character-copy h1 {
  font: 400 40px var(--ui-serif);
}
.character-stats div {
  border-radius: 9px;
  background: #152338;
}
.character-stats span {
  font-size: 10px;
}
.character-top > a,
.character-top > button {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 11px;
}
.player-combat-body .setup-note {
  padding: 18px;
  gap: 14px;
}
.player-combat-body .setup-note strong {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}
.player-combat-body .setup-note span {
  font-size: 12px;
  line-height: 1.6;
}
.player-combat-body .combat-start {
  background: var(--ui-accent);
  color: #122031;
  border-color: var(--ui-accent);
  min-height: 50px;
  border-radius: 10px;
}
.player-combat-body .battle-error {
  font-size: 13px;
  line-height: 1.5;
}
.player-gacha .result-button {
  min-height: 46px;
  border-radius: 9px;
}
.player-gacha .result-button.primary {
  background: var(--ui-accent);
  color: #162031;
}
@media (max-width: 850px) {
  .bp-track {
    scroll-padding-inline-start: 105px;
  }
}
@media (max-width: 640px) {
  .bp-track {
    scroll-padding-inline-start: 85px;
  }
  .world-player-top {
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .world-player-top .world-help {
    display: block;
    margin-left: 0;
  }
  .world-help p {
    position: fixed;
    top: 90px;
    left: 12px;
    right: 12px;
    width: auto;
  }
  .world-player-top > div:nth-child(2) {
    flex: 1;
  }
  .world-player-top strong {
    font-size: 12px;
  }
  .world-help summary {
    min-height: 36px;
    padding: 0 8px;
  }
  .world-player-top > button {
    margin-left: auto;
  }
  .player-combat-body .setup-note {
    display: flex;
    flex-direction: column;
    align-items: start;
  }
  .character-skills > header {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
}
@media (pointer: coarse) {
  .world-touch-controls {
    display: flex;
    position: fixed;
    z-index: 12;
    bottom: calc(18px + env(safe-area-inset-bottom));
    left: 14px;
    right: 14px;
    justify-content: space-between;
    align-items: end;
    pointer-events: none;
  }
  .world-touch-controls button {
    pointer-events: auto;
  }
  .world-player-hud {
    left: 14px;
    right: auto;
    bottom: 140px;
    min-width: 0;
    padding: 8px 12px;
    gap: 10px;
  }
  .world-pointer-hint {
    display: none;
  }
  .world-canvas canvas {
    touch-action: none;
  }
}

.resonance-landing {
  --bg: var(--ui-bg);
  --ink: var(--ui-text);
  --muted: var(--ui-muted);
  --line: var(--ui-line);
  background:
    radial-gradient(ellipse at 50% 0, #24364e55, transparent 60%), var(--ui-bg);
}
.resonance-landing .topbar {
  background: #0a1322df;
  border-bottom: 1px solid var(--ui-line);
  backdrop-filter: blur(18px);
}
.resonance-landing .section-kicker {
  color: var(--ui-cyan);
  letter-spacing: 0.18em;
}
.resonance-landing .section h2 {
  font-family: var(--ui-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
}
.resonance-landing .feature-card {
  border-radius: 16px;
  background: linear-gradient(145deg, #1b2b3c, #111b2c);
  border-color: var(--ui-line);
}
.resonance-landing .feature-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ui-muted);
}
.resonance-landing .btn {
  border-radius: 9px;
  min-height: 46px;
}
.resonance-landing .btn-primary {
  background: var(--ui-accent);
  border-color: var(--ui-accent);
  color: #132135;
  box-shadow: 0 8px 30px #0003;
}
.resonance-landing .btn-primary:before {
  display: none;
}
.resonance-landing .hero-copy {
  font-size: 18px;
  line-height: 1.75;
  color: #becbdc;
}
.resonance-landing .auth-card {
  background: #111d2df5;
  border-radius: 18px;
  border-color: var(--ui-line);
}
.resonance-landing .auth-form input {
  font-size: 16px;
  min-height: 46px;
}
.resonance-landing .auth-submit {
  background: var(--ui-accent);
  color: #132135;
  border-radius: 9px;
}
.resonance-landing .ambient {
  opacity: 0.12;
}
.resonance-landing .auth-close {
  min-width: 44px;
  min-height: 44px;
}
@media (max-width: 640px) {
  .resonance-landing .hero-copy {
    font-size: 16px;
  }
  .resonance-landing .account-pill {
    max-width: 110px;
    overflow: hidden;
  }
  .resonance-landing .brand {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  .resonance-landing .top-actions .btn {
    font-size: 10px;
    padding: 8px 12px;
  }
}
