:root {
  --bg: #060b16;
  --panel: rgba(9, 18, 34, 0.82);
  --line: rgba(124, 162, 255, 0.18);
  --text: #f2f6ff;
  --muted: #9fb3d9;
  --accent: #ffd166;
  --accent-2: #7cc6ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(124, 198, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom, rgba(255, 209, 102, 0.14), transparent 30%),
    linear-gradient(180deg, #02040a 0%, var(--bg) 100%);
}

.screen {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 32px 20px 40px;
}

.screen-loading {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

.loading-screen {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 6, 14, 0.04) 0%, rgba(2, 6, 14, 0.18) 30%, rgba(2, 6, 14, 0.72) 100%),
    url("/assets/title.png") center top / cover no-repeat,
    #050915;
}

.loading-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  opacity: 0.95;
  pointer-events: none;
}

.loading-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 5, 12, 0.02) 0%, rgba(3, 5, 12, 0.08) 16%, rgba(3, 5, 12, 0.42) 55%, rgba(3, 5, 12, 0.86) 100%),
    linear-gradient(90deg, rgba(10, 12, 21, 0.24) 0%, rgba(10, 12, 21, 0.06) 38%, rgba(10, 12, 21, 0.22) 100%);
  pointer-events: none;
}

.loading-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%) no-repeat;
  opacity: 0.6;
  pointer-events: none;
}

.loading-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  padding: 0;
}

.loading-progress-label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.loading-progress-track {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(149, 176, 255, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(10, 14, 24, 0.4),
    0 12px 26px rgba(0, 0, 0, 0.28);
}

.loading-progress-fill {
  position: relative;
  width: 56%;
  height: 100%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 89, 45, 0.98) 0%, rgba(255, 212, 113, 0.98) 48%, rgba(92, 197, 255, 0.98) 100%);
  box-shadow:
    0 0 18px rgba(255, 94, 59, 0.38),
    0 0 24px rgba(92, 197, 255, 0.26);
  animation: loading-sweep 1.8s ease-in-out infinite;
}

.loading-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 48%, transparent 100%);
  transform: translateX(-100%);
  animation: loading-shine 1.8s linear infinite;
}

@keyframes loading-sweep {
  0% {
    transform: translateX(-18%);
  }

  50% {
    transform: translateX(76%);
  }

  100% {
    transform: translateX(-18%);
  }
}

@keyframes loading-shine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(220%);
  }
}

.topbar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 16px;
}

.topbar-upgraded {
  gap: 12px;
  align-items: stretch;
}

.currency-pill-actionable {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.currency-pill-main {
  min-width: 0;
}

.currency-plus-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 214, 122, 0.26);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 214, 122, 0.18), rgba(255, 214, 122, 0.08));
  color: #ffe7a8;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.currency-plus-button:hover,
.currency-plus-button:focus-visible {
  border-color: rgba(255, 214, 122, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 18px rgba(0, 0, 0, 0.18);
}

.currency-shop-modal {
  width: min(100%, 420px);
}

.currency-package-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.currency-package-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(124, 162, 255, 0.16);
  background: rgba(7, 14, 27, 0.84);
}

.currency-package-card strong {
  font-size: 16px;
}

.currency-package-card span {
  color: var(--muted);
  font-size: 14px;
}

.currency-contact-text strong {
  color: #ffe29a;
}

.currency-pill,
.avatar-pill {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 17, 31, 0.78);
}

.topbar-upgraded .currency-pill,
.topbar-upgraded .avatar-pill {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(16, 27, 48, 0.96), rgba(8, 15, 29, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.2);
}

.topbar-upgraded .currency-pill::before,
.topbar-upgraded .avatar-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.topbar-upgraded .currency-silver::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(116, 205, 255, 0.18), transparent 32%);
}

.topbar-upgraded .currency-beskar::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 196, 110, 0.16), transparent 32%);
}

.currency-label,
.currency-value {
  position: relative;
  z-index: 1;
}

.currency-pill span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.currency-pill strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.currency-label {
  letter-spacing: 0.04em;
}

.currency-value {
  font-size: 28px;
  line-height: 1;
}

.avatar-pill {
  display: grid;
  place-items: center;
  min-width: 52px;
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
}

.avatar-button {
  cursor: pointer;
}

.topbar-avatar {
  min-width: 74px;
  padding: 0;
}

.avatar-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 210, 116, 0.24), rgba(255, 132, 76, 0.12)),
    rgba(18, 24, 38, 0.84);
  color: #ffd276;
  font-size: 24px;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.24);
}

.hero {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 29, 51, 0.95), rgba(7, 14, 26, 0.92));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 214px;
  background:
    linear-gradient(135deg, rgba(20, 34, 61, 0.96) 0%, rgba(9, 17, 33, 0.94) 48%, rgba(14, 18, 34, 0.94) 100%);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 95, 74, 0.22), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(88, 181, 255, 0.24), transparent 28%),
    radial-gradient(circle at 52% 100%, rgba(255, 208, 112, 0.12), transparent 34%);
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 26, 0.12) 0%, rgba(8, 14, 26, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 26%),
    linear-gradient(135deg, transparent 0 68%, rgba(255, 255, 255, 0.03) 68% 71%, transparent 71% 100%);
  pointer-events: none;
}

.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.home-hero-title {
  font-size: clamp(38px, 6vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.home-hero-lead {
  max-width: 520px;
  font-size: 18px;
  color: #c7d9ff;
}

.panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.panel-row:first-child {
  padding-top: 0;
}

.online-panel {
  display: grid;
  gap: 14px;
}

.online-summary-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
}

.online-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.online-badge-sith {
  color: #ff8a7d;
  background: rgba(255, 89, 72, 0.12);
  border-color: rgba(255, 89, 72, 0.22);
}

.online-badge-jedi {
  color: #84c9ff;
  background: rgba(92, 180, 255, 0.12);
  border-color: rgba(92, 180, 255, 0.22);
}

.online-view-button {
  width: 100%;
}

.online-modal-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.online-modal-group {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.online-modal-group-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
}

.online-modal-group-title.sith {
  color: #ff8a7d;
}

.online-modal-group-title.jedi {
  color: #84c9ff;
}

.online-modal-names {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.actions {
  margin-top: 24px;
}

.registration-form {
  display: grid;
  gap: 14px;
}

.faction-grid {
  display: grid;
  gap: 12px;
}

.faction-card {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 128px;
  padding: 18px;
  border: 1px solid rgba(124, 162, 255, 0.24);
  border-radius: 18px;
  background: rgba(4, 10, 20, 0.72);
  cursor: pointer;
}

.faction-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.38;
  pointer-events: none;
}

.faction-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.faction-card input {
  margin: 0 0 10px;
}

.button-card {
  width: 100%;
  text-align: left;
  color: var(--text);
}

.button-card > span {
  position: relative;
  z-index: 1;
}

.jedi-card {
  border-color: rgba(122, 255, 188, 0.35);
  background:
    linear-gradient(135deg, rgba(116, 255, 177, 0.18), rgba(6, 18, 20, 0.82)),
    rgba(4, 10, 20, 0.8);
  box-shadow: inset 0 0 0 1px rgba(163, 255, 206, 0.08), 0 16px 28px rgba(66, 213, 145, 0.08);
}

.jedi-card::before {
  background-image: url("/assets/obiwan-bg.svg");
}

.jedi-card::after {
  background:
    linear-gradient(90deg, rgba(8, 17, 31, 0.94) 0%, rgba(8, 17, 31, 0.58) 44%, rgba(8, 17, 31, 0.1) 100%);
}

.jedi-card .faction-title {
  color: #d8ffee;
}

.jedi-card .faction-text {
  color: #bfe8d4;
}

.sith-card {
  border-color: rgba(255, 102, 102, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 87, 87, 0.2), rgba(18, 7, 9, 0.86)),
    rgba(4, 10, 20, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 127, 127, 0.08), 0 16px 28px rgba(170, 35, 35, 0.12);
}

.sith-card::before {
  background-image: url("/assets/vader-bg.svg");
}

.sith-card::after {
  background:
    linear-gradient(90deg, rgba(10, 8, 12, 0.96) 0%, rgba(10, 8, 12, 0.62) 44%, rgba(10, 8, 12, 0.1) 100%);
}

.sith-card .faction-title {
  color: #ffe2e2;
}

.sith-card .faction-text {
  color: #efbbbb;
}

.faction-title {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.faction-text {
  display: block;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.preview {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
}

.field-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.text-input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(124, 162, 255, 0.24);
  border-radius: 16px;
  background: rgba(4, 10, 20, 0.72);
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.text-input::placeholder {
  color: rgba(159, 179, 217, 0.72);
}

.text-input:focus {
  border-color: rgba(255, 209, 102, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.12);
}

.primary-button {
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: #08111f;
  background: linear-gradient(135deg, var(--accent), #ffe29a);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 30px rgba(255, 209, 102, 0.24);
}

.primary-button:active {
  transform: translateY(1px) scale(0.995);
}

.primary-button:disabled,
.primary-button.craft-button-locked {
  color: rgba(225, 233, 247, 0.72);
  background: linear-gradient(180deg, rgba(57, 70, 96, 0.9), rgba(35, 45, 66, 0.94));
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
}

.primary-button.craft-button-ready {
  background: linear-gradient(135deg, #ffd166 0%, #ffef9a 48%, #9bffcb 100%);
  box-shadow:
    0 18px 34px rgba(255, 209, 102, 0.26),
    0 0 24px rgba(155, 255, 203, 0.18);
}

.primary-button.craft-button-ready:hover,
.primary-button.craft-button-ready:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 22px 36px rgba(255, 209, 102, 0.3),
    0 0 28px rgba(155, 255, 203, 0.22);
}

.secondary-button {
  width: 100%;
  margin-top: 12px;
  padding: 15px 18px;
  border: 1px solid rgba(124, 162, 255, 0.24);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: rgba(8, 17, 31, 0.72);
  cursor: pointer;
}

.menu-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.menu-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 18px;
  text-align: left;
  border: 1px solid rgba(124, 162, 255, 0.2);
  border-radius: 20px;
  background: rgba(9, 18, 34, 0.82);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.menu-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.menu-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.menu-card:hover,
.menu-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 214, 122, 0.34);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.menu-card[data-menu="arena"] {
  min-height: 148px;
  padding: 22px;
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(9, 14, 24, 0.92), rgba(9, 14, 24, 0.92)) padding-box,
    linear-gradient(90deg, rgba(255, 86, 62, 0.95) 0%, rgba(157, 99, 255, 0.42) 45%, rgba(78, 196, 255, 0.95) 100%) border-box,
    rgba(9, 18, 34, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 36px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.menu-card[data-menu="arena"]::before {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(5, 8, 15, 0.9) 0%, rgba(5, 8, 15, 0.72) 30%, rgba(5, 8, 15, 0.3) 62%, rgba(5, 8, 15, 0.48) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.42) 100%),
    url("/assets/pvp.png") center center / cover no-repeat;
}

.menu-card[data-menu="arena"]::after {
  background:
    linear-gradient(90deg, rgba(255, 86, 62, 0.18) 0%, transparent 34%, transparent 66%, rgba(78, 196, 255, 0.2) 100%);
}

.menu-card[data-menu="planets"] {
  min-height: 148px;
  padding: 22px;
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(14, 15, 25, 0.92), rgba(14, 15, 25, 0.92)) padding-box,
    linear-gradient(90deg, rgba(255, 210, 122, 0.92) 0%, rgba(199, 138, 77, 0.46) 52%, rgba(255, 228, 166, 0.92) 100%) border-box,
    rgba(11, 17, 28, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.menu-card[data-menu="planets"]::before {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(5, 9, 16, 0.92) 0%, rgba(5, 9, 16, 0.7) 34%, rgba(5, 9, 16, 0.24) 70%, rgba(5, 9, 16, 0.16) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.28) 100%),
    url("/assets/planets-card-bg.svg") center center / cover no-repeat;
}

.menu-card[data-menu="planets"]::after {
  background:
    linear-gradient(90deg, rgba(255, 219, 143, 0.16) 0%, transparent 40%, transparent 68%, rgba(255, 190, 112, 0.14) 100%);
}

.menu-card[data-menu="daily"] {
  min-height: 148px;
  padding: 22px;
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(11, 15, 27, 0.92), rgba(11, 15, 27, 0.92)) padding-box,
    linear-gradient(90deg, rgba(112, 174, 255, 0.9) 0%, rgba(150, 111, 255, 0.38) 46%, rgba(255, 96, 76, 0.92) 100%) border-box,
    rgba(10, 17, 29, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.menu-card[data-menu="daily"]::before {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(6, 10, 18, 0.94) 0%, rgba(6, 10, 18, 0.72) 38%, rgba(6, 10, 18, 0.28) 72%, rgba(6, 10, 18, 0.2) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.3) 100%),
    url("/assets/daily-card-bg.svg") center center / cover no-repeat;
}

.menu-card[data-menu="daily"]::after {
  background:
    linear-gradient(90deg, rgba(96, 160, 255, 0.14) 0%, transparent 40%, transparent 68%, rgba(255, 96, 76, 0.16) 100%);
}

.menu-card[data-menu="meditation"] {
  min-height: 148px;
  padding: 22px;
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(10, 18, 28, 0.92), rgba(10, 18, 28, 0.92)) padding-box,
    linear-gradient(90deg, rgba(141, 255, 176, 0.92) 0%, rgba(97, 196, 255, 0.44) 48%, rgba(255, 226, 145, 0.92) 100%) border-box,
    rgba(8, 16, 28, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 36px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.menu-card[data-menu="meditation"]::before {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(4, 10, 18, 0.96) 0%, rgba(4, 10, 18, 0.78) 34%, rgba(4, 10, 18, 0.18) 72%, rgba(4, 10, 18, 0.14) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.3) 100%),
    url("/assets/meditation-card-bg.svg") center center / cover no-repeat;
}

.menu-card[data-menu="meditation"]::after {
  background:
    linear-gradient(90deg, rgba(125, 245, 159, 0.18) 0%, transparent 42%, transparent 68%, rgba(255, 221, 138, 0.18) 100%);
}

.daily-hero {
  background:
    linear-gradient(135deg, rgba(14, 26, 48, 0.96), rgba(39, 17, 17, 0.9)),
    radial-gradient(circle at top right, rgba(255, 112, 67, 0.16), transparent 38%);
}

.daily-overview-panel,
.daily-battle-panel {
  display: grid;
  gap: 18px;
}

.daily-tabs-panel {
  padding: 10px;
}

.daily-tabs-row {
  display: flex;
  gap: 10px;
}

.daily-tab-button {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(124, 162, 255, 0.16);
  background: rgba(8, 17, 31, 0.72);
  color: inherit;
}

.daily-tab-button.active {
  border-color: rgba(255, 214, 122, 0.34);
  background: rgba(255, 214, 122, 0.12);
}

.daily-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.daily-boss-title {
  margin: 8px 0 0;
  font-size: 26px;
  font-weight: 800;
}

.daily-cooldown-text {
  font-size: 24px;
  font-weight: 800;
}

.daily-reward-box {
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 214, 122, 0.18);
  background: rgba(255, 214, 122, 0.08);
  display: grid;
  gap: 4px;
}

.daily-reward-row {
  display: grid;
  gap: 2px;
  padding-top: 4px;
}

.daily-reward-box span,
.daily-reward-box small,
.daily-battle-turn,
.daily-fighter-side {
  color: var(--muted);
}

.daily-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.daily-farm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.daily-farm-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(124, 162, 255, 0.14);
  background: rgba(8, 17, 31, 0.78);
  display: grid;
  gap: 12px;
}

.daily-farm-card.selected {
  border-color: rgba(255, 214, 122, 0.32);
  box-shadow: 0 0 0 1px rgba(255, 214, 122, 0.08) inset;
}

.daily-farm-avatar {
  width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 18px;
  background: rgba(4, 10, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.daily-farm-meta {
  display: grid;
  gap: 4px;
}

.daily-farm-meta span {
  color: var(--muted);
  font-size: 13px;
}

.daily-farm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.daily-farm-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 214, 122, 0.10);
  border: 1px solid rgba(255, 214, 122, 0.14);
  color: var(--muted);
  font-size: 12px;
}

.daily-stage-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(124, 162, 255, 0.14);
  background: rgba(8, 17, 31, 0.74);
  display: grid;
  gap: 6px;
}

.daily-stage-card.current {
  border-color: rgba(255, 214, 122, 0.34);
  background: rgba(255, 214, 122, 0.08);
}

.daily-stage-card.done {
  border-color: rgba(124, 255, 178, 0.28);
  background: rgba(124, 255, 178, 0.08);
}

.daily-battle-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.daily-battle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.daily-fighter-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(124, 162, 255, 0.14);
  background: rgba(8, 17, 31, 0.82);
  display: grid;
  gap: 12px;
}

.daily-fighter-card.enemy {
  border-color: rgba(255, 122, 122, 0.2);
}

.daily-enemy-avatar {
  width: min(100%, 132px);
  height: 168px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 10, 20, 0.96);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.daily-enemy-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

.daily-bar {
  display: grid;
  gap: 8px;
}

.daily-bar-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.daily-bar-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.daily-bar-fill {
  height: 100%;
  border-radius: inherit;
}

.daily-bar-fill.hp,
.daily-bar-fill.enemy-hp {
  background: linear-gradient(90deg, #ff7b72, #ffb86a);
}

.daily-bar-fill.stamina,
.daily-bar-fill.enemy-stamina {
  background: linear-gradient(90deg, #64d2ff, #9bffcb);
}

.daily-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.daily-card-button {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(124, 162, 255, 0.14);
  background: rgba(7, 14, 27, 0.86);
  color: inherit;
  text-align: left;
  display: grid;
  gap: 6px;
}

.daily-card-button[disabled] {
  opacity: 0.58;
}

.daily-card-skip {
  border-style: dashed;
}

.daily-gear-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.daily-gear-mini {
  padding: 10px;
  border-radius: 14px;
  background: rgba(5, 12, 24, 0.78);
  border: 1px solid rgba(124, 162, 255, 0.12);
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.daily-gear-mini img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.daily-gear-mini span {
  font-size: 12px;
  color: var(--muted);
}

.daily-gear-mini-empty {
  opacity: 0.45;
}

.daily-log-list {
  display: grid;
  gap: 10px;
}

.daily-log-entry {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(7, 14, 27, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.daily-reward-modal-card {
  max-width: 560px;
}

.daily-reward-modal-round {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
}

.daily-reward-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.daily-reward-pill {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 214, 122, 0.18);
  background: rgba(255, 214, 122, 0.08);
  display: grid;
  gap: 4px;
}

.daily-drop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.daily-drop-card {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(124, 162, 255, 0.14);
  background: rgba(8, 17, 31, 0.74);
  display: grid;
  gap: 8px;
  justify-items: start;
}

.daily-drop-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.daily-actions {
  flex-wrap: wrap;
}

.meditation-hero {
  background:
    radial-gradient(circle at top left, rgba(141, 255, 176, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 214, 122, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(11, 16, 28, 0.96), rgba(18, 28, 52, 0.92));
}

.meditation-panel {
  display: grid;
  gap: 18px;
}

.meditation-center {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
}

.meditation-coin-wrap {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 214, 122, 0.18);
  background: rgba(255, 214, 122, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
}

.meditation-coin {
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(255, 214, 122, 0.18));
}

.meditation-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.meditation-stat-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(124, 162, 255, 0.14);
  background: rgba(8, 17, 31, 0.78);
  display: grid;
  gap: 6px;
}

.meditation-stat-card span,
.meditation-status {
  color: var(--muted);
}

.meditation-stat-card strong {
  font-size: 28px;
  font-weight: 800;
}

.meditation-progress {
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.meditation-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd67a, #64d2ff);
  transition: width 0.25s ease;
}

#meditation-toggle-button {
  min-width: 240px;
  border: 1px solid rgba(255, 214, 122, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 214, 122, 0.34), rgba(255, 183, 77, 0.24)),
    rgba(39, 24, 8, 0.94);
  color: #fff5d6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(0, 0, 0, 0.22),
    0 0 28px rgba(255, 214, 122, 0.16);
}

#meditation-toggle-button:hover,
#meditation-toggle-button:focus-visible {
  border-color: rgba(255, 232, 173, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 32px rgba(0, 0, 0, 0.26),
    0 0 36px rgba(255, 214, 122, 0.24);
}

@media (max-width: 720px) {
  .daily-overview-head,
  .daily-battle-grid,
  .daily-stage-grid,
  .daily-farm-grid,
  .daily-card-grid,
  .meditation-center,
  .meditation-stats {
    grid-template-columns: 1fr;
  }

  .daily-overview-head {
    display: grid;
  }

  .daily-reward-box {
    min-width: 0;
  }
}

.menu-card[data-menu="shop"] {
  min-height: 148px;
  padding: 22px;
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(11, 16, 28, 0.92), rgba(11, 16, 28, 0.92)) padding-box,
    linear-gradient(90deg, rgba(112, 196, 255, 0.9) 0%, rgba(255, 198, 104, 0.46) 50%, rgba(255, 148, 92, 0.92) 100%) border-box,
    rgba(10, 17, 29, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.menu-card[data-menu="shop"]::before {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(6, 10, 18, 0.94) 0%, rgba(6, 10, 18, 0.72) 38%, rgba(6, 10, 18, 0.24) 74%, rgba(6, 10, 18, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.28) 100%),
    url("/assets/shop-card-bg.svg") center center / cover no-repeat;
}

.menu-card[data-menu="shop"]::after {
  background:
    linear-gradient(90deg, rgba(104, 192, 255, 0.12) 0%, transparent 42%, transparent 68%, rgba(255, 183, 99, 0.16) 100%);
}

.menu-card[data-menu="abilities"] {
  min-height: 148px;
  padding: 22px;
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(11, 15, 28, 0.92), rgba(11, 15, 28, 0.92)) padding-box,
    linear-gradient(90deg, rgba(139, 123, 255, 0.92) 0%, rgba(103, 206, 255, 0.46) 52%, rgba(160, 123, 255, 0.92) 100%) border-box,
    rgba(10, 17, 29, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.menu-card[data-menu="abilities"]::before {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(6, 10, 18, 0.94) 0%, rgba(6, 10, 18, 0.74) 38%, rgba(6, 10, 18, 0.22) 72%, rgba(6, 10, 18, 0.16) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.26) 100%),
    url("/assets/abilities-card-bg.svg") center center / cover no-repeat;
}

.menu-card[data-menu="abilities"]::after {
  background:
    linear-gradient(90deg, rgba(149, 129, 255, 0.14) 0%, transparent 42%, transparent 66%, rgba(102, 205, 255, 0.14) 100%);
}

.menu-card[data-menu="inventory"] {
  min-height: 148px;
  padding: 22px;
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(11, 16, 28, 0.92), rgba(11, 16, 28, 0.92)) padding-box,
    linear-gradient(90deg, rgba(116, 205, 255, 0.92) 0%, rgba(128, 150, 255, 0.42) 48%, rgba(255, 204, 120, 0.9) 100%) border-box,
    rgba(10, 17, 29, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.menu-card[data-menu="inventory"]::before {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(6, 10, 18, 0.94) 0%, rgba(6, 10, 18, 0.74) 38%, rgba(6, 10, 18, 0.22) 72%, rgba(6, 10, 18, 0.16) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.26) 100%),
    url("/assets/inventory-card-bg.svg") center center / cover no-repeat;
}

.menu-card[data-menu="inventory"]::after {
  background:
    linear-gradient(90deg, rgba(112, 204, 255, 0.14) 0%, transparent 42%, transparent 68%, rgba(255, 205, 121, 0.14) 100%);
}

.menu-card[data-menu="rating"] {
  min-height: 148px;
  padding: 22px;
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(11, 16, 28, 0.92), rgba(11, 16, 28, 0.92)) padding-box,
    linear-gradient(90deg, rgba(109, 183, 255, 0.88) 0%, rgba(255, 212, 115, 0.46) 48%, rgba(255, 191, 95, 0.92) 100%) border-box,
    rgba(10, 17, 29, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.menu-card[data-menu="rating"]::before {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(6, 10, 18, 0.94) 0%, rgba(6, 10, 18, 0.74) 38%, rgba(6, 10, 18, 0.22) 72%, rgba(6, 10, 18, 0.16) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.26) 100%),
    url("/assets/rating-card-bg.svg") center center / cover no-repeat;
}

.menu-card[data-menu="rating"]::after {
  background:
    linear-gradient(90deg, rgba(115, 185, 255, 0.12) 0%, transparent 42%, transparent 68%, rgba(255, 210, 118, 0.16) 100%);
}

.menu-card[data-menu="craft"] {
  min-height: 148px;
  padding: 22px;
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(11, 15, 28, 0.92), rgba(11, 15, 28, 0.92)) padding-box,
    linear-gradient(90deg, rgba(100, 210, 255, 0.9) 0%, rgba(129, 119, 255, 0.44) 48%, rgba(255, 211, 110, 0.92) 100%) border-box,
    rgba(10, 17, 29, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.menu-card[data-menu="craft"]::before {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(6, 10, 18, 0.94) 0%, rgba(6, 10, 18, 0.72) 38%, rgba(6, 10, 18, 0.2) 74%, rgba(6, 10, 18, 0.14) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.28) 100%),
    url("/assets/craft-card-bg.svg") center center / cover no-repeat;
}

.menu-card[data-menu="craft"]::after {
  background:
    linear-gradient(90deg, rgba(100, 210, 255, 0.12) 0%, transparent 42%, transparent 68%, rgba(255, 211, 110, 0.18) 100%);
}

.menu-card[data-menu="tutorial"] {
  min-height: 148px;
  padding: 22px;
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(10, 16, 30, 0.94), rgba(10, 16, 30, 0.94)) padding-box,
    linear-gradient(90deg, rgba(120, 214, 255, 0.92) 0%, rgba(255, 214, 120, 0.44) 48%, rgba(255, 118, 87, 0.92) 100%) border-box,
    rgba(10, 17, 29, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.menu-card[data-menu="tutorial"]::before {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(6, 10, 18, 0.94) 0%, rgba(6, 10, 18, 0.72) 34%, rgba(6, 10, 18, 0.24) 72%, rgba(6, 10, 18, 0.16) 100%),
    radial-gradient(circle at 82% 26%, rgba(122, 208, 255, 0.34), transparent 18%),
    radial-gradient(circle at 74% 68%, rgba(255, 205, 116, 0.22), transparent 20%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.28) 100%);
}

.menu-card[data-menu="tutorial"]::after {
  background:
    linear-gradient(90deg, rgba(120, 214, 255, 0.14) 0%, transparent 42%, transparent 68%, rgba(255, 190, 112, 0.18) 100%);
}

.tutorial-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(113, 208, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 201, 112, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(9, 18, 37, 0.98), rgba(26, 17, 39, 0.94));
}

.tutorial-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.14) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 28%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 72%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 60%, rgba(255, 255, 255, 0.1) 0 1px, transparent 2px);
  pointer-events: none;
}

.tutorial-hero-copy,
.tutorial-hero-visual {
  position: relative;
  z-index: 1;
}

.tutorial-hero-visual {
  min-height: 180px;
  border-radius: 24px;
  border: 1px solid rgba(124, 162, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(7, 14, 28, 0.72), rgba(7, 14, 28, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tutorial-ring,
.tutorial-holo-planet,
.tutorial-lightsaber {
  position: absolute;
}

.tutorial-ring {
  border-radius: 50%;
  border: 1px solid rgba(126, 183, 255, 0.22);
}

.tutorial-ring-one {
  width: 138px;
  height: 138px;
  top: 20px;
  right: 38px;
}

.tutorial-ring-two {
  width: 92px;
  height: 92px;
  top: 42px;
  right: 61px;
}

.tutorial-holo-planet {
  width: 86px;
  height: 86px;
  top: 45px;
  right: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(201, 241, 255, 0.98), rgba(116, 185, 255, 0.8) 38%, rgba(53, 111, 201, 0.72) 66%, rgba(26, 55, 114, 0.16) 100%);
  box-shadow:
    0 0 26px rgba(110, 196, 255, 0.28),
    inset -12px -14px 26px rgba(7, 16, 36, 0.34);
}

.tutorial-lightsaber {
  width: 122px;
  height: 6px;
  border-radius: 999px;
  bottom: 42px;
  transform-origin: left center;
}

.tutorial-lightsaber::after {
  content: "";
  position: absolute;
  left: -14px;
  top: -3px;
  width: 18px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d9dee9, #68748a);
}

.tutorial-lightsaber-blue {
  left: 34px;
  transform: rotate(24deg);
  background: linear-gradient(90deg, rgba(138, 231, 255, 0.9), rgba(72, 184, 255, 0.95));
  box-shadow: 0 0 18px rgba(86, 198, 255, 0.4);
}

.tutorial-lightsaber-red {
  right: 34px;
  transform: rotate(156deg);
  background: linear-gradient(90deg, rgba(255, 147, 124, 0.9), rgba(255, 84, 84, 0.96));
  box-shadow: 0 0 18px rgba(255, 96, 96, 0.36);
}

.tutorial-intro-panel,
.tutorial-craft-panel,
.tutorial-fleet-panel,
.tutorial-tips-panel {
  margin-top: 16px;
}

.tutorial-steps {
  display: grid;
  gap: 12px;
}

.tutorial-step {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(124, 162, 255, 0.14);
  background: rgba(7, 15, 29, 0.74);
}

.tutorial-step-index {
  color: #ffd36e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tutorial-step strong,
.tutorial-fleet-card strong {
  font-size: 15px;
}

.tutorial-step p,
.tutorial-fleet-card p,
.tutorial-card-copy p,
.tutorial-tip {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.tutorial-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.tutorial-card {
  display: grid;
  gap: 16px;
}

.tutorial-card-art {
  min-height: 138px;
  border-radius: 20px;
  border: 1px solid rgba(124, 162, 255, 0.14);
  background: rgba(7, 14, 28, 0.84);
  overflow: hidden;
}

.tutorial-card-copy {
  display: grid;
  gap: 10px;
}

.tutorial-card-copy .section-title {
  margin-bottom: 0;
}

.tutorial-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tutorial-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 162, 255, 0.16);
  background: rgba(9, 18, 34, 0.86);
  color: #dbe8ff;
  font-size: 12px;
  font-weight: 700;
}

.tutorial-art-duel {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 28% 52%, rgba(81, 193, 255, 0.28), transparent 22%),
    radial-gradient(circle at 72% 48%, rgba(255, 96, 96, 0.28), transparent 22%),
    linear-gradient(180deg, rgba(8, 12, 24, 0.98), rgba(18, 12, 18, 0.9));
}

.tutorial-art-duel::before,
.tutorial-art-duel::after {
  content: "";
  position: absolute;
  top: 24px;
  width: 6px;
  height: 92px;
  border-radius: 999px;
}

.tutorial-art-duel::before {
  left: 36%;
  transform: rotate(22deg);
  background: linear-gradient(180deg, rgba(112, 222, 255, 0.96), rgba(58, 176, 255, 0.92));
  box-shadow: 0 0 18px rgba(90, 194, 255, 0.36);
}

.tutorial-art-duel::after {
  right: 36%;
  transform: rotate(-22deg);
  background: linear-gradient(180deg, rgba(255, 161, 132, 0.96), rgba(255, 86, 86, 0.92));
  box-shadow: 0 0 18px rgba(255, 106, 106, 0.34);
}

.tutorial-card-planets .tutorial-card-art {
  position: relative;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.14) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 30%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 62%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
    linear-gradient(180deg, rgba(8, 12, 24, 0.96), rgba(8, 12, 24, 0.72));
}

.tutorial-art-planet {
  position: absolute;
  border-radius: 50%;
  box-shadow: inset -12px -16px 28px rgba(8, 14, 30, 0.34);
}

.tutorial-art-tatooine {
  width: 88px;
  height: 88px;
  left: 18px;
  bottom: 16px;
  background: radial-gradient(circle at 32% 28%, #ffe7ba, #e9a952 42%, #8b4d1c 78%);
}

.tutorial-art-naboo {
  width: 66px;
  height: 66px;
  left: 118px;
  top: 18px;
  background: radial-gradient(circle at 32% 28%, #d8f7ff, #69cfff 44%, #1f5eb5 78%);
}

.tutorial-art-kamino {
  width: 104px;
  height: 104px;
  right: 18px;
  top: 18px;
  background: radial-gradient(circle at 30% 28%, #eefbff, #8fe4ff 42%, #5392d0 74%);
}

.tutorial-card-art-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.tutorial-gear-tile {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(124, 162, 255, 0.14);
  background: linear-gradient(180deg, rgba(13, 25, 46, 0.94), rgba(8, 16, 29, 0.88));
  color: #d7e5ff;
  font-weight: 700;
}

.tutorial-gear-tile:last-child {
  grid-column: 1 / -1;
}

.tutorial-growth-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 14px;
  height: 100%;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 209, 102, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(7, 13, 26, 0.98), rgba(15, 14, 25, 0.84));
}

.tutorial-growth-bars span {
  width: 28px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, rgba(121, 219, 255, 0.96), rgba(255, 206, 112, 0.92));
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.tutorial-growth-bars span:nth-child(1) { height: 44px; }
.tutorial-growth-bars span:nth-child(2) { height: 68px; }
.tutorial-growth-bars span:nth-child(3) { height: 92px; }
.tutorial-growth-bars span:nth-child(4) { height: 118px; }

.tutorial-craft-grid,
.tutorial-fleet-grid,
.tutorial-tip-list {
  display: grid;
  gap: 12px;
}

.tutorial-craft-card,
.tutorial-fleet-card,
.tutorial-tip {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(124, 162, 255, 0.14);
  background: rgba(7, 15, 29, 0.74);
}

.tutorial-craft-card strong {
  font-size: 15px;
}

.tutorial-craft-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (min-width: 720px) {
  .tutorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tutorial-steps,
  .tutorial-craft-grid,
  .tutorial-fleet-grid,
  .tutorial-tip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .tutorial-hero-visual {
    min-height: 148px;
  }

  .tutorial-ring-one {
    width: 110px;
    height: 110px;
    right: 30px;
  }

  .tutorial-ring-two {
    width: 74px;
    height: 74px;
    top: 36px;
    right: 48px;
  }

  .tutorial-holo-planet {
    width: 68px;
    height: 68px;
    top: 40px;
    right: 51px;
  }

  .tutorial-lightsaber {
    width: 96px;
  }

  .tutorial-lightsaber-blue {
    left: 22px;
  }

  .tutorial-lightsaber-red {
    right: 22px;
  }
}

.menu-title {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 17px;
  font-weight: 700;
}

.menu-text {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.craft-recipe-card {
  display: grid;
  gap: 18px;
}

.craft-recipe-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 64px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.craft-recipe-inputs {
  display: grid;
  gap: 12px;
}

.craft-ingredient {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(124, 162, 255, 0.14);
  background: rgba(8, 17, 31, 0.68);
}

.craft-ingredient.is-ready {
  border-color: rgba(124, 255, 178, 0.22);
}

.craft-ingredient.is-missing {
  border-color: rgba(255, 133, 122, 0.2);
}

.craft-ingredient-art,
.craft-result-art {
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(5, 11, 22, 0.86);
  border: 1px solid rgba(124, 162, 255, 0.12);
}

.craft-ingredient-art img,
.craft-result-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.craft-art-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.craft-ingredient-copy,
.craft-result-copy {
  display: grid;
  gap: 4px;
}

.craft-ingredient-copy strong,
.craft-result-copy strong {
  font-size: 15px;
}

.craft-ingredient-copy span,
.craft-result-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.craft-recipe-arrow {
  display: grid;
  place-items: center;
  min-height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(255, 211, 110, 0.22);
  background: rgba(20, 18, 9, 0.38);
  color: #ffd36e;
  font-size: 28px;
  font-weight: 800;
}

.craft-recipe-result {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 211, 110, 0.16);
  background: rgba(11, 18, 33, 0.8);
}

.craft-recipe-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-form {
  margin-top: 14px;
}

.admin-row {
  align-items: center;
}

.small-input {
  max-width: 96px;
  padding: 10px 12px;
}

.compact-button {
  width: auto;
  margin-top: 0;
  padding: 10px 14px;
}

.danger-button {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(70, 10, 10, 0.72);
  color: #ffdede;
}

.abilities-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.ability-card {
  padding: 18px;
  border: 1px solid rgba(124, 162, 255, 0.2);
  border-radius: 20px;
  background: rgba(9, 18, 34, 0.82);
}

.ability-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.ability-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.ability-description {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.ability-level {
  white-space: nowrap;
  color: var(--accent);
  font-weight: 700;
}

.ability-bonuses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.bonus-pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.12);
  color: var(--text);
  font-size: 13px;
}

.ability-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.cost-label {
  color: var(--muted);
  font-size: 14px;
}

.small-button {
  width: auto;
  min-width: 140px;
  padding: 12px 18px;
  box-shadow: none;
}

.small-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.compact-panel {
  margin-top: 16px;
}

.hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.section-title {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.online-list {
  margin: 10px 0 2px;
  color: var(--muted);
  line-height: 1.6;
  word-break: break-word;
}

.level-showcase {
  margin-top: 18px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(124, 162, 255, 0.24);
  background: linear-gradient(180deg, rgba(14, 24, 42, 0.96), rgba(7, 14, 26, 0.9));
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.level-card-jedi {
  border-color: rgba(122, 255, 188, 0.38);
  box-shadow: 0 24px 44px rgba(60, 197, 129, 0.14);
}

.level-card-sith {
  border-color: rgba(255, 102, 102, 0.38);
  box-shadow: 0 24px 44px rgba(176, 43, 43, 0.18);
}

.level-badge-wrap {
  display: grid;
  gap: 10px;
}

.level-badge {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.level-card-jedi .level-badge {
  background:
    radial-gradient(circle at 30% 30%, rgba(164, 255, 211, 0.42), transparent 42%),
    linear-gradient(180deg, rgba(72, 204, 142, 0.42), rgba(12, 56, 40, 0.92));
  box-shadow: 0 0 30px rgba(124, 255, 178, 0.3);
}

.level-card-sith .level-badge {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 165, 165, 0.3), transparent 42%),
    linear-gradient(180deg, rgba(212, 69, 69, 0.44), rgba(65, 10, 10, 0.94));
  box-shadow: 0 0 30px rgba(255, 86, 86, 0.3);
}

.level-meta {
  flex: 1;
}

.level-faction {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.level-card-jedi .level-faction {
  color: #9bffd0;
}

.level-card-sith .level-faction {
  color: #ff9f9f;
}

.level-name {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.xp-panel {
  padding: 22px;
}

.xp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.xp-current {
  margin: 6px 0 0;
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
}

.xp-reward {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.progress-track {
  width: 100%;
  height: 12px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7cffb2 0%, #ffd166 100%);
  box-shadow: 0 0 16px rgba(124, 255, 178, 0.28);
}

.xp-track {
  margin-top: 18px;
  height: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.xp-fill.level-card-jedi {
  background: linear-gradient(90deg, #7cffb2 0%, #ccffe5 100%);
  box-shadow: 0 0 18px rgba(124, 255, 178, 0.34);
}

.xp-fill.level-card-sith {
  background: linear-gradient(90deg, #ff5e5e 0%, #ffb2b2 100%);
  box-shadow: 0 0 18px rgba(255, 94, 94, 0.34);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.inventory-slot {
  min-height: 92px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(124, 162, 255, 0.2);
  background: rgba(8, 17, 31, 0.72);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.empty-slot {
  border-style: dashed;
  opacity: 0.8;
}

.locked-slot {
  border-style: dashed;
  border-color: rgba(255, 209, 102, 0.26);
  background: rgba(32, 26, 10, 0.5);
  opacity: 0.9;
}

.slot-label {
  color: var(--muted);
  font-size: 13px;
}

.slot-item {
  color: var(--text);
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.slot-qty {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.character-panel {
  padding: 22px;
}

.character-panel-upgraded {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 209, 102, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(10, 18, 34, 0.96), rgba(7, 14, 27, 0.92));
}

.character-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  grid-template-areas:
    ". top ."
    "left core right"
    ". bottom ."
    "starship starship starship";
  gap: 12px;
  align-items: center;
}

.character-core {
  grid-area: core;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(124, 162, 255, 0.18);
  background: rgba(8, 17, 31, 0.72);
  text-align: center;
}

.character-avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 12px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 800;
  color: #fff;
}

.character-jedi .character-avatar {
  background: linear-gradient(180deg, rgba(72, 204, 142, 0.46), rgba(12, 56, 40, 0.92));
  box-shadow: 0 0 24px rgba(124, 255, 178, 0.24);
}

.character-sith .character-avatar {
  background: linear-gradient(180deg, rgba(212, 69, 69, 0.46), rgba(65, 10, 10, 0.94));
  box-shadow: 0 0 24px rgba(255, 94, 94, 0.24);
}

.character-name,
.character-role {
  margin: 0;
}

.character-name {
  font-size: 18px;
  font-weight: 700;
}

.character-name-top {
  margin-bottom: 6px;
}

.character-role {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.character-figure {
  width: 132px;
  height: 132px;
  margin: 14px auto 12px;
  border-radius: 28px;
  border: 1px solid rgba(124, 162, 255, 0.18);
  background-color: rgba(8, 17, 31, 0.72);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.character-jedi-figure {
  background-image:
    linear-gradient(180deg, rgba(20, 39, 33, 0.22), rgba(8, 17, 31, 0.2)),
    url("/assets/obiwan-bg.svg");
  box-shadow: 0 0 24px rgba(124, 255, 178, 0.14);
}

.character-sith-figure {
  background-image:
    linear-gradient(180deg, rgba(43, 16, 16, 0.2), rgba(8, 17, 31, 0.24)),
    url("/assets/vader-bg.svg");
  box-shadow: 0 0 24px rgba(255, 94, 94, 0.14);
}

.equipment-slot {
  position: relative;
  overflow: hidden;
  min-height: 72px;
  padding: 12px;
  border-radius: 18px;
  border: 1px dashed rgba(124, 162, 255, 0.22);
  background: rgba(8, 17, 31, 0.58);
  color: var(--muted);
  font-size: 13px;
  display: grid;
  place-items: center;
  text-align: center;
}

.equipment-slot-icon {
  display: block;
  margin-bottom: 8px;
  color: rgba(132, 201, 255, 0.58);
  font-size: 20px;
  line-height: 1;
}

.equipment-slot-empty {
  background:
    linear-gradient(180deg, rgba(10, 20, 36, 0.7), rgba(7, 14, 27, 0.56));
}

.equipment-slot-empty-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.equipment-top {
  grid-area: top;
}

.equipment-left {
  grid-area: left;
}

.equipment-right {
  grid-area: right;
}

.equipment-bottom {
  grid-area: bottom;
}

.equipment-starship {
  grid-area: starship;
  min-height: 84px;
}

.character-layout .equipment-starship {
  max-width: 320px;
  width: 100%;
  justify-self: center;
}

.character-panel-upgraded .character-core {
  padding: 18px 18px 20px;
  background:
    linear-gradient(180deg, rgba(13, 23, 42, 0.94), rgba(8, 16, 31, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.22);
}

.character-portrait-shell {
  width: 156px;
  margin: 14px auto 14px;
  padding: 10px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(10, 18, 34, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 28px rgba(0, 0, 0, 0.24);
}

.character-panel-upgraded .character-figure {
  margin: 0 auto;
}

.character-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 8px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 800;
}

.character-sith .character-role-badge {
  color: #ff9d92;
  background: rgba(255, 89, 72, 0.12);
  border: 1px solid rgba(255, 89, 72, 0.22);
}

.character-jedi .character-role-badge {
  color: #92d6ff;
  background: rgba(92, 180, 255, 0.12);
  border: 1px solid rgba(92, 180, 255, 0.22);
}

.character-force-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.character-force-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.character-force-value {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.2;
}

.equipment-slot-filled {
  border-style: solid;
  border-color: rgba(255, 209, 102, 0.34);
  background:
    linear-gradient(180deg, rgba(42, 34, 13, 0.86), rgba(24, 20, 11, 0.78));
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.equipment-slot-filled .equipment-slot-icon {
  color: rgba(255, 214, 120, 0.92);
}

.equipment-slot-status {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.14);
  color: #ffd77e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.equipment-slot-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.equipment-slot-value {
  display: block;
  font-weight: 700;
  line-height: 1.4;
}

.equipment-slot-bonus {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.inventory-card {
  position: relative;
  overflow: hidden;
  min-height: 196px;
  padding: 0;
  border-radius: 22px;
  border: 1px solid rgba(124, 162, 255, 0.2);
  background: rgba(8, 17, 31, 0.82);
  cursor: pointer;
  text-align: left;
}

.inventory-card.active-item {
  border-color: rgba(255, 209, 102, 0.54);
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.14);
}

.inventory-card.equipped-item {
  border-color: rgba(122, 255, 188, 0.38);
}

.inventory-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: rgba(4, 10, 20, 0.88);
}

.inventory-card-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 120px;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 46%),
    linear-gradient(180deg, rgba(7, 14, 27, 0.92), rgba(4, 9, 18, 0.96));
  border-bottom: 1px solid rgba(124, 162, 255, 0.08);
}

.inventory-card-art-jedi {
  background:
    radial-gradient(circle at 50% 50%, rgba(95, 201, 255, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(7, 14, 27, 0.92), rgba(4, 9, 18, 0.96));
}

.inventory-card-art-sith {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 98, 78, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(7, 14, 27, 0.92), rgba(4, 9, 18, 0.96));
}

.inventory-card-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.34));
}

.inventory-card-body {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.inventory-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.inventory-card-meta {
  color: var(--muted);
  font-size: 12px;
}

.inventory-card-bonus {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.inventory-card-state {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.82);
  border: 1px solid rgba(255, 209, 102, 0.24);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.inventory-panel-upgraded {
  background:
    linear-gradient(180deg, rgba(10, 18, 34, 0.96), rgba(7, 14, 27, 0.92));
}

.inventory-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.inventory-stat-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(124, 162, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(15, 27, 48, 0.88), rgba(8, 15, 29, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.16);
}

.inventory-stat-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.inventory-stat-value {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  line-height: 1;
}

.inventory-board {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(124, 162, 255, 0.14);
  background:
    radial-gradient(circle at 50% 0%, rgba(92, 180, 255, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(9, 17, 31, 0.92), rgba(6, 12, 23, 0.9));
}

.inventory-board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.inventory-board-head .section-title {
  margin-bottom: 0;
}

.inventory-board-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.inventory-card {
  min-height: 196px;
  border-radius: 22px;
  background: rgba(8, 17, 31, 0.82);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.inventory-card:hover,
.inventory-card:focus-visible {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.inventory-card img {
  height: 120px;
}

.inventory-card-body {
  padding: 12px;
}

.inventory-card-name {
  min-height: 0;
}

.empty-slot {
  min-height: 196px;
  border-radius: 22px;
  background: rgba(8, 17, 31, 0.58);
}

.item-actions-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(124, 162, 255, 0.2);
  background: rgba(9, 18, 34, 0.82);
}

.item-actions-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.item-actions-head img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(4, 10, 20, 0.88);
  border: 1px solid rgba(124, 162, 255, 0.18);
}

.item-actions-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.item-actions-text {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.item-actions-meta {
  margin-top: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.item-actions-row {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.inventory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.9fr);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.compact-card {
  min-height: 96px;
  border-radius: 18px;
}

.compact-card img {
  height: 58px;
  object-fit: contain;
  padding: 6px;
  background: rgba(4, 10, 20, 0.96);
}

.compact-card .inventory-card-body {
  padding: 8px 10px 10px;
  gap: 4px;
}

.compact-card .inventory-card-name {
  font-size: 11px;
  line-height: 1.25;
}

.compact-card .inventory-card-bonus {
  font-size: 11px;
}

.compact-card .inventory-card-state {
  top: 6px;
  right: 6px;
  padding: 4px 8px;
  font-size: 10px;
}

.compact-actions-panel {
  margin-top: 0;
  position: sticky;
  top: 12px;
}

.compact-head {
  align-items: flex-start;
}

.compact-head img {
  width: 74px;
  height: 74px;
}

.inventory-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 8, 18, 0.74);
  backdrop-filter: blur(10px);
}

.inventory-modal-card {
  width: min(100%, 420px);
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(124, 162, 255, 0.2);
  background: linear-gradient(180deg, rgba(14, 25, 47, 0.98), rgba(8, 15, 31, 0.96));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

.inventory-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.inventory-modal-close {
  width: 40px;
  min-width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
}

.system-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 8, 18, 0.78);
  backdrop-filter: blur(10px);
}

.system-modal-card {
  width: min(100%, 360px);
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(124, 162, 255, 0.22);
  background: linear-gradient(180deg, rgba(14, 25, 47, 0.98), rgba(8, 15, 31, 0.96));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

.system-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.system-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.system-modal-text {
  margin: 14px 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.system-modal-card .field-label {
  display: block;
  margin: 0 0 8px;
  color: rgba(230, 238, 255, 0.94);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.system-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(124, 162, 255, 0.28);
  border-radius: 14px;
  background: rgba(5, 12, 24, 0.82);
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.system-input::placeholder {
  color: rgba(159, 179, 217, 0.68);
}

.system-input:focus {
  border-color: rgba(255, 213, 104, 0.68);
  background: rgba(7, 16, 30, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 213, 104, 0.14);
}

.system-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.shop-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shop-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.shop-tabs-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.donate-shop-head {
  margin-top: 16px;
}

.donate-shop-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.donate-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.donate-card-art img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(4, 10, 20, 0.96);
  padding: 10px;
}

.donate-card-copy {
  display: grid;
  gap: 8px;
}

.donate-card-title {
  font-size: 18px;
}

.donate-card-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.donate-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.donate-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 122, 0.22);
  background: rgba(255, 214, 122, 0.08);
  color: #ffe29a;
  font-weight: 800;
}

.donate-price-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.silver-pill {
  border-color: rgba(116, 205, 255, 0.22);
  background: rgba(116, 205, 255, 0.08);
  color: #caebff;
}

.beskar-pill {
  border-color: rgba(255, 214, 122, 0.22);
  background: rgba(255, 214, 122, 0.08);
  color: #ffe29a;
}

.shop-owned-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(124, 162, 255, 0.18);
  background: rgba(124, 162, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.donate-buy-button {
  grid-column: 1 / -1;
}

.rating-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.75fr);
  gap: 16px;
  align-items: stretch;
}

.rating-hero-highlight {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 211, 110, 0.24);
  background:
    radial-gradient(circle at top, rgba(255, 211, 110, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(23, 22, 34, 0.92), rgba(10, 17, 31, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 32px rgba(0, 0, 0, 0.18);
}

.rating-highlight-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rating-highlight-name {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.15;
}

.rating-highlight-value {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.rating-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.rating-tab {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(124, 162, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(12, 22, 39, 0.92), rgba(7, 13, 24, 0.94));
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.rating-tab:hover,
.rating-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 211, 110, 0.34);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.rating-tab.active {
  border-color: rgba(255, 211, 110, 0.5);
  background:
    radial-gradient(circle at top, rgba(255, 211, 110, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(19, 28, 46, 0.96), rgba(10, 17, 31, 0.98));
}

.leaderboard-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.leaderboard-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(124, 162, 255, 0.16);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(180deg, rgba(10, 18, 34, 0.96), rgba(7, 14, 27, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 34px rgba(0, 0, 0, 0.18);
}

.leaderboard-jedi {
  border-color: rgba(106, 182, 255, 0.26);
}

.leaderboard-sith {
  border-color: rgba(255, 124, 98, 0.24);
}

.leaderboard-card-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.leaderboard-rank {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 211, 110, 0.18), rgba(255, 211, 110, 0.06));
  border: 1px solid rgba(255, 211, 110, 0.34);
  color: #ffe7a8;
  font-size: 28px;
  font-weight: 800;
}

.leaderboard-card-title h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.leaderboard-card-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.leaderboard-main-stat {
  text-align: right;
}

.leaderboard-main-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.leaderboard-main-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
}

.leaderboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.leaderboard-stat {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(124, 162, 255, 0.12);
  background: rgba(7, 14, 27, 0.8);
}

.leaderboard-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.leaderboard-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1;
}

.leaderboard-equipment {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.leaderboard-slot {
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(124, 162, 255, 0.12);
  background: rgba(5, 12, 24, 0.8);
  display: grid;
  gap: 8px;
}

.leaderboard-slot img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(4, 10, 20, 0.96);
}

.leaderboard-slot-icon {
  width: 100%;
  height: 72px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(4, 10, 20, 0.82);
  color: rgba(230, 238, 255, 0.76);
  font-size: 20px;
  font-weight: 800;
}

.leaderboard-slot-label {
  color: var(--muted);
  font-size: 11px;
}

.leaderboard-slot-value {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.leaderboard-slot-empty {
  opacity: 0.72;
}

.profile-equipment-panel {
  margin-top: 18px;
}

.profile-equipment-grid .leaderboard-slot {
  min-height: 156px;
}

.arena-hero {
  background:
    radial-gradient(circle at top left, rgba(255, 110, 82, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(101, 184, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(16, 17, 29, 0.96), rgba(9, 15, 29, 0.94));
}

.arena-panel {
  margin-top: 16px;
}

.arena-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.arena-timer-chip {
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 211, 110, 0.24);
  background: rgba(13, 21, 37, 0.92);
  text-align: center;
}

.arena-timer-chip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.arena-timer-chip strong {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 22px;
}

.arena-panel-searching,
.arena-panel-battle {
  text-align: center;
}

.arena-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.arena-search-spinner {
  width: 72px;
  height: 72px;
  margin: 20px auto 0;
  border-radius: 999px;
  border: 4px solid rgba(124, 162, 255, 0.18);
  border-top-color: rgba(255, 211, 110, 0.72);
  animation: arena-spin 1s linear infinite;
}

.arena-versus-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.arena-versus-board-live {
  align-items: stretch;
}

.arena-versus-mark {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 211, 110, 0.26), rgba(255, 211, 110, 0.04));
  border: 1px solid rgba(255, 211, 110, 0.32);
  color: #ffe7a8;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.arena-versus-mark-live {
  font-size: 18px;
}

.arena-player-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(124, 162, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(11, 20, 37, 0.96), rgba(6, 12, 24, 0.92));
}

.arena-player-jedi {
  border-color: rgba(106, 182, 255, 0.26);
}

.arena-player-sith {
  border-color: rgba(255, 124, 98, 0.24);
}

.arena-player-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.arena-player-side {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.arena-ready-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 162, 255, 0.16);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.arena-ready-pill.ready {
  border-color: rgba(122, 255, 188, 0.28);
  color: #a8ffca;
}

.arena-player-name {
  display: block;
  margin-top: 14px;
  font-size: 24px;
  line-height: 1.15;
}

.arena-player-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.arena-side-record {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.arena-gear-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.arena-gear-slot {
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(124, 162, 255, 0.12);
  background: rgba(5, 12, 24, 0.82);
  display: grid;
  gap: 8px;
}

.arena-gear-slot img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(4, 10, 20, 0.96);
}

.arena-gear-slot-name {
  color: var(--muted);
  font-size: 11px;
}

.arena-gear-slot-value {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.arena-gear-slot-empty {
  opacity: 0.72;
}

.arena-gear-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.arena-gear-mini {
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(124, 162, 255, 0.1);
  background: rgba(5, 12, 24, 0.78);
  display: grid;
  gap: 6px;
  justify-items: center;
}

.arena-gear-mini img {
  width: 100%;
  height: 40px;
  object-fit: contain;
}

.arena-gear-mini span {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.arena-gear-mini-empty {
  opacity: 0.6;
}

.arena-ready-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.arena-ready-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(124, 162, 255, 0.14);
  background: rgba(7, 14, 27, 0.84);
}

.arena-ready-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.arena-ready-card strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.arena-selection-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}

.arena-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.arena-card-pick,
.arena-battle-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(124, 162, 255, 0.14);
  background: rgba(7, 14, 27, 0.86);
  color: var(--text);
  text-align: left;
  display: grid;
  gap: 8px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.arena-card-pick:hover,
.arena-card-pick:focus-visible,
.arena-battle-card:hover,
.arena-battle-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 211, 110, 0.28);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.arena-card-pick.selected {
  border-color: rgba(255, 211, 110, 0.48);
  background:
    radial-gradient(circle at top, rgba(255, 211, 110, 0.1), transparent 60%),
    rgba(10, 18, 34, 0.96);
}

.arena-card-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.arena-card-image {
  width: 100%;
  height: 72px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(4, 10, 20, 0.92);
  padding: 8px;
}

.arena-card-image-placeholder {
  display: grid;
  place-items: center;
  color: rgba(230, 238, 255, 0.72);
  font-size: 18px;
  font-weight: 800;
}

.arena-card-line {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.arena-battle-stage {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.arena-battle-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.arena-battle-head.upgraded {
  align-items: stretch;
}

.arena-battle-side {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(124, 162, 255, 0.16);
  background: rgba(8, 15, 29, 0.9);
}

.arena-turn-box {
  padding: 20px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 211, 110, 0.24);
  background:
    radial-gradient(circle at top, rgba(255, 211, 110, 0.12), transparent 60%),
    rgba(12, 18, 31, 0.94);
  text-align: center;
}

.arena-turn-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.arena-turn-box strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.arena-turn-event {
  margin: 12px 0 0;
  color: #ffd36e;
  font-size: 13px;
  line-height: 1.4;
}

.arena-bar-block + .arena-bar-block {
  margin-top: 14px;
}

.arena-bar-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
}

.arena-bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.arena-bar-fill {
  height: 100%;
  border-radius: inherit;
}

.arena-bar-fill.hp {
  background: linear-gradient(90deg, #ff7b72, #ffb86a);
}

.arena-bar-fill.stamina {
  background: linear-gradient(90deg, #64d2ff, #9bffcb);
}

.arena-bar-fill.enemy.hp {
  background: linear-gradient(90deg, #ff9c6a, #ffd36e);
}

.arena-bar-fill.enemy.stamina {
  background: linear-gradient(90deg, #74b9ff, #5ce1e6);
}

.arena-cards-grid-battle {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.arena-battle-card[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.arena-battle-card-skip {
  border-style: dashed;
}

.arena-result-card {
  width: min(100%, 420px);
}

.arena-result-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.arena-result-stat {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(124, 162, 255, 0.14);
  background: rgba(7, 14, 27, 0.86);
}

.arena-result-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.arena-result-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.arena-log-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.arena-log-entry {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(124, 162, 255, 0.12);
  background: rgba(7, 14, 27, 0.84);
  color: rgba(230, 238, 255, 0.92);
  line-height: 1.45;
}

.planets-hero {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background:
    radial-gradient(circle at 20% 18%, rgba(244, 187, 88, 0.16), transparent 24%),
    radial-gradient(circle at 80% 26%, rgba(82, 149, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(7, 11, 24, 0.98), rgba(5, 14, 31, 0.95));
}

.planets-hero-battle {
  min-height: 220px;
}

.planets-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.planets-starfield {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 22%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 28% 72%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.5px),
    radial-gradient(circle at 48% 16%, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.5px),
    radial-gradient(circle at 68% 66%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 84% 28%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 92% 78%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px);
  opacity: 0.7;
}

.planets-hero-orb {
  position: absolute;
  border-radius: 999px;
  opacity: 0.88;
}

.planets-hero-orb-left {
  width: 180px;
  height: 180px;
  left: -32px;
  bottom: -44px;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 232, 178, 0.92), rgba(214, 126, 38, 0.96) 45%, rgba(90, 43, 15, 1) 78%);
  box-shadow: 0 0 64px rgba(219, 126, 51, 0.2);
}

.planets-hero-orb-right {
  width: 140px;
  height: 140px;
  right: 34px;
  top: 28px;
  background:
    radial-gradient(circle at 32% 30%, rgba(222, 255, 234, 0.92), rgba(61, 170, 124, 0.92) 44%, rgba(17, 61, 57, 1) 82%);
  box-shadow: 0 0 56px rgba(65, 182, 152, 0.2);
}

.planets-hero-orb.battle {
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 233, 199, 0.95), rgba(255, 85, 61, 0.9) 42%, rgba(42, 12, 18, 1) 82%);
  box-shadow: 0 0 56px rgba(255, 91, 76, 0.22);
}

.planets-hero-content {
  position: relative;
  z-index: 1;
}

.planet-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.planet-hero-stat,
.planet-stat-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(132, 165, 255, 0.14);
  background: rgba(8, 16, 32, 0.72);
  backdrop-filter: blur(8px);
}

.planet-hero-stat span,
.planet-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.planet-hero-stat strong,
.planet-stat-card strong {
  display: block;
  margin-top: 8px;
  color: #fff2c5;
  font-size: 24px;
}

.planet-current-capture {
  background:
    linear-gradient(135deg, rgba(20, 31, 56, 0.96), rgba(8, 15, 30, 0.94));
  border: 1px solid rgba(255, 211, 110, 0.18);
}

.planet-current-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.planet-current-grid,
.planet-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.planet-showcase {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(132, 165, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(10, 18, 34, 0.98), rgba(4, 10, 21, 0.94));
}

.planet-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 35%, transparent 65%, rgba(255, 255, 255, 0.025));
  pointer-events: none;
}

.planet-showcase-active {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
}

.planet-showcase-gold {
  border-color: rgba(245, 184, 88, 0.24);
}

.planet-showcase-emerald {
  border-color: rgba(88, 220, 168, 0.24);
}

.planet-showcase-azure {
  border-color: rgba(98, 182, 255, 0.24);
}

.planet-showcase-art {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
}

.planet-orbit-ring {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(18deg);
}

.planet-orbit-ring.outer {
  width: 222px;
  height: 222px;
  border-color: rgba(255, 255, 255, 0.04);
  transform: rotate(-12deg);
}

.planet-core {
  position: relative;
  z-index: 1;
  width: 134px;
  height: 134px;
  border-radius: 999px;
  box-shadow: inset -18px -24px 36px rgba(0, 0, 0, 0.28);
}

.planet-core-tatooine {
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 240, 198, 0.95), rgba(224, 152, 72, 0.94) 40%, rgba(122, 67, 29, 1) 82%);
}

.planet-core-naboo {
  background:
    radial-gradient(circle at 36% 28%, rgba(222, 255, 234, 0.95), rgba(85, 190, 128, 0.96) 40%, rgba(18, 67, 56, 1) 82%);
}

.planet-core-kamino {
  background:
    radial-gradient(circle at 36% 28%, rgba(220, 242, 255, 0.95), rgba(97, 158, 255, 0.94) 40%, rgba(22, 44, 92, 1) 82%);
}

.planet-glow {
  position: absolute;
  width: 184px;
  height: 184px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 214, 131, 0.2), transparent 70%);
  filter: blur(12px);
}

.planet-showcase-content {
  position: relative;
  z-index: 1;
}

.planet-showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.planet-kicker {
  margin: 0 0 8px;
  color: #c9d9ff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.planet-description {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.planet-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.planet-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(132, 165, 255, 0.14);
  background: rgba(8, 16, 32, 0.72);
  color: #eef4ff;
  font-size: 12px;
  font-weight: 700;
}

.planet-status-pill.owner-sith,
.planet-status-pill.occupier-sith {
  border-color: rgba(255, 102, 91, 0.24);
  color: #ffb6ad;
}

.planet-status-pill.owner-jedi,
.planet-status-pill.occupier-jedi {
  border-color: rgba(107, 184, 255, 0.24);
  color: #b7ddff;
}

.planet-status-pill.player-here {
  border-color: rgba(255, 214, 131, 0.28);
  color: #ffe9ae;
}

.planet-capture-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 214, 131, 0.18);
  background: linear-gradient(90deg, rgba(44, 28, 12, 0.64), rgba(18, 21, 32, 0.82));
}

.planet-capture-banner.idle {
  border-color: rgba(132, 165, 255, 0.14);
  background: linear-gradient(90deg, rgba(13, 21, 41, 0.72), rgba(7, 15, 28, 0.82));
}

.planet-capture-banner span {
  color: var(--muted);
  font-size: 12px;
}

.planet-capture-banner strong {
  color: #fff2c5;
  font-size: 18px;
}

.planet-action-button {
  min-width: 220px;
}

.planet-log-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.planet-log-entry {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(132, 165, 255, 0.1);
  background: rgba(5, 12, 24, 0.72);
  color: var(--text);
  line-height: 1.45;
}

.planet-passenger-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.falcon-blueprint {
  position: relative;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(152, 194, 255, 0.18);
  background:
    radial-gradient(circle at top, rgba(115, 183, 255, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(7, 18, 33, 0.94), rgba(4, 10, 20, 0.98));
  overflow: hidden;
}

.falcon-blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.85) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1px),
    radial-gradient(circle at 58% 72%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px),
    radial-gradient(circle at 32% 80%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px);
  pointer-events: none;
}

.falcon-ship {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1.55 / 1;
  margin: 0 auto;
}

.falcon-ship-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.falcon-seat-grid {
  position: absolute;
  inset: 0;
}

.falcon-seat {
  position: absolute;
  width: 36%;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(225, 232, 246, 0.18);
  background: rgba(11, 17, 30, 0.72);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.falcon-seat:nth-child(1) {
  left: 16%;
  top: 28%;
}

.falcon-seat:nth-child(2) {
  right: 10%;
  bottom: 16%;
}

.falcon-seat.occupied {
  border-color: rgba(108, 230, 185, 0.28);
  background: linear-gradient(180deg, rgba(11, 35, 34, 0.88), rgba(10, 18, 28, 0.9));
}

.falcon-seat.empty {
  border-style: dashed;
  border-color: rgba(170, 190, 224, 0.2);
}

.falcon-seat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(205, 217, 239, 0.62);
}

.falcon-seat-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #f7fbff;
  background: linear-gradient(180deg, rgba(124, 175, 255, 0.92), rgba(74, 115, 209, 0.92));
  box-shadow: 0 8px 18px rgba(22, 41, 88, 0.35);
}

.falcon-seat.empty .falcon-seat-icon {
  background: linear-gradient(180deg, rgba(108, 121, 155, 0.75), rgba(57, 66, 89, 0.9));
}

.falcon-seat-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.falcon-seat strong {
  color: #f7fbff;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.falcon-seat-meta {
  color: var(--muted);
  font-size: 11px;
}

.planet-income-chip strong {
  color: #fff0b9;
}

.planets-battle-stage .arena-battle-head {
  margin-top: 18px;
}

@keyframes arena-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .screen {
    padding: 20px 14px 28px;
  }

  .screen-loading {
    padding: 0;
  }

  .loading-screen {
    padding: 0;
  }

  .loading-progress {
    left: 14px;
    right: 14px;
    bottom: 12px;
    padding: 0;
  }

  .loading-progress-track {
    height: 12px;
  }

  .topbar {
    grid-template-columns: 1fr 1fr 52px;
  }

  .hero {
    padding: 22px;
  }

  h1 {
    font-size: 28px;
  }

  .panel-row {
    flex-direction: column;
    gap: 6px;
  }

  .falcon-ship {
    width: 100%;
    aspect-ratio: 1.12 / 1;
  }

  .falcon-seat {
    width: 44%;
    min-height: 68px;
    padding: 8px 10px;
    gap: 8px;
  }

  .falcon-seat:nth-child(1) {
    left: 10%;
    top: 24%;
  }

  .falcon-seat:nth-child(2) {
    right: 6%;
    bottom: 12%;
  }

  .falcon-seat-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 13px;
  }

  .falcon-seat strong {
    font-size: 12px;
  }

  .ability-head,
  .ability-actions,
  .xp-head,
  .level-showcase {
    flex-direction: column;
    align-items: flex-start;
  }

  .small-button {
    width: 100%;
  }

  .inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-stats-grid {
    grid-template-columns: 1fr;
  }

  .inventory-board-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .inventory-board-hint {
    text-align: left;
  }

  .inventory-layout {
    grid-template-columns: 1fr;
  }

  .item-actions-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .compact-actions-panel {
    position: static;
  }

  .inventory-modal {
    padding: 14px;
  }

  .inventory-modal-card {
    padding: 18px;
    border-radius: 20px;
  }

  .system-modal-card {
    padding: 18px;
    border-radius: 20px;
  }

  .system-actions {
    flex-direction: column;
  }

  .system-actions .primary-button,
  .system-actions .secondary-button {
    width: 100%;
  }

  .shop-action-grid {
    grid-template-columns: 1fr;
  }

  .shop-tabs {
    grid-template-columns: 1fr;
  }

  .donate-card {
    grid-template-columns: 1fr;
  }

  .donate-card-art img {
    width: 100%;
    max-width: 128px;
    height: 128px;
    margin: 0 auto;
    display: block;
  }

  .rating-hero {
    grid-template-columns: 1fr;
  }

  .rating-tabs {
    grid-template-columns: 1fr;
  }

  .leaderboard-card-head {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .leaderboard-main-stat {
    grid-column: 1 / -1;
    text-align: left;
  }

  .leaderboard-stats {
    grid-template-columns: 1fr;
  }

  .leaderboard-equipment {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arena-versus-board {
    grid-template-columns: 1fr;
  }

  .arena-versus-mark {
    width: 84px;
    height: 84px;
    margin: 0 auto;
  }

  .arena-ready-grid {
    grid-template-columns: 1fr;
  }

  .arena-stage-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .arena-selection-status {
    flex-direction: column;
  }

  .arena-cards-grid,
  .arena-cards-grid-battle {
    grid-template-columns: 1fr;
  }

  .arena-battle-head {
    grid-template-columns: 1fr;
  }

  .arena-gear-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arena-result-stats {
    grid-template-columns: 1fr;
  }

  .arena-actions-row {
    flex-direction: column;
  }

  .arena-actions-row .primary-button,
  .arena-actions-row .secondary-button {
    width: 100%;
  }

  .planet-hero-stats,
  .planet-current-grid,
  .planet-stat-grid {
    grid-template-columns: 1fr;
  }

  .planet-showcase {
    grid-template-columns: 1fr;
  }

  .planet-showcase-art {
    min-height: 180px;
  }

  .planet-showcase-head,
  .planet-current-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .craft-recipe-flow {
    grid-template-columns: 1fr;
  }

  .craft-recipe-arrow {
    min-height: 56px;
  }

  .craft-recipe-result {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .character-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "top top"
      "left right"
      "core core"
      "bottom bottom"
      "starship starship";
  }

  .character-layout .equipment-starship {
    max-width: none;
  }

  .character-figure {
    width: 112px;
    height: 112px;
  }

  .level-badge {
    width: 96px;
    height: 96px;
    font-size: 40px;
  }

  .level-name {
    font-size: 24px;
  }

  .xp-current {
    font-size: 26px;
  }
}
