/* =========================================================
   THEME SWITCHER — always active, adapts to current theme vars
   ========================================================= */

.brand-mark { overflow: hidden; }
.brand-name { text-transform: none; }
.header-right {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-self: end;
  min-width: 0;
}
.aiur-resources { display: none; }
.solar-hud { display: none; }
.continue-btn { white-space: nowrap; }
.continue-btn svg { width: 13px; height: 13px; }
.cover-actions .continue-btn { min-height: 48px; padding: 11px 17px; font-size: 11px; }
.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-art.custom-hero-art {
  display: flex;
  width: 100%;
  max-width: 430px;
  height: 505px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  transform: none;
}
.custom-hero-art img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  filter: drop-shadow(0 24px 34px rgba(109, 119, 149, .22));
}

.theme-card {
  grid-column: 1 / -1;
  padding: 20px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-sm);
}
.theme-setting {
  display: flex;
  gap: 16px;
  align-items: center;
}
.theme-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.theme-mark svg { width: 20px; height: 20px; }
.theme-setting-copy { min-width: 0; }
.theme-setting-copy .eyebrow {
  margin-bottom: 3px;
  font-size: 8px;
  letter-spacing: .12em;
}
.theme-setting-copy h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--ink);
}
.theme-setting-copy > p:last-child {
  margin: 4px 0 0;
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.65;
  color: var(--muted);
}
.theme-setting-copy strong { color: var(--accent-deep); font-weight: 500; }
.theme-open { flex: 0 0 auto; margin-left: auto; }

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 22px;
}
.theme-options.is-many {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.theme-options.is-many .theme-option { padding: 8px; }
.theme-options.is-many .theme-swatch { height: 78px; }
.theme-options.is-many .theme-option-copy strong { font-size: 12px; }
.theme-options.is-many .theme-option-copy small { font-size: 8px; }
.theme-option {
  position: relative;
  display: block;
  min-width: 0;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.theme-option:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.theme-option.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-sm);
}
.theme-swatch {
  position: relative;
  display: block;
  width: 100%;
  height: 102px;
  overflow: hidden;
  border: 1px solid rgba(140, 142, 154, .14);
  border-radius: 12px;
}
.theme-swatch-soft {
  background:
    radial-gradient(circle at 78% 18%, rgba(191, 178, 248, .72), transparent 42%),
    radial-gradient(circle at 18% 90%, rgba(187, 220, 250, .5), transparent 48%),
    #eff2fa;
}
.theme-swatch-soft .swatch-orb {
  position: absolute;
  top: 14px;
  right: 25px;
  width: 56px;
  height: 56px;
  background: radial-gradient(circle at 32% 24%, #fff 0 8%, #e7e0ff 35%, #b8cff4 100%);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  box-shadow: 7px 10px 18px -11px rgba(117, 113, 163, .7);
}
.theme-swatch-soft .swatch-page {
  position: absolute;
  bottom: 12px;
  left: 14px;
  width: 86px;
  height: 47px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 12px;
  box-shadow: 5px 7px 14px -11px rgba(117, 120, 150, .5);
}
.theme-swatch-soft .swatch-page::before,
.theme-swatch-soft .swatch-page::after {
  content: "";
  position: absolute;
  left: 11px;
  height: 3px;
  background: #d9d5ef;
  border-radius: 3px;
}
.theme-swatch-soft .swatch-page::before { top: 15px; width: 43px; }
.theme-swatch-soft .swatch-page::after { top: 24px; width: 29px; }

.theme-swatch-paper {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .84), transparent 48%),
    #e7dfcf;
}
.theme-swatch-paper .swatch-page {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  left: 14px;
  background: #fcf9f2;
  border: 1px solid #cbbda5;
  box-shadow: 5px 7px 14px -10px rgba(72, 58, 35, .55);
}
.theme-swatch-paper .swatch-page::before {
  content: "";
  position: absolute;
  inset: 17px 11px 11px;
  background: repeating-linear-gradient(to bottom, transparent 0 11px, #d9cdb8 11px 12px);
}
.theme-swatch-paper .swatch-page::after {
  content: "Aa";
  position: absolute;
  top: 8px;
  left: 11px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 13px;
  color: #a34f33;
}
.theme-swatch-paper .swatch-orb {
  position: absolute;
  right: 22px;
  bottom: 19px;
  width: 15px;
  height: 15px;
  background: #a34f33;
  border: 2px solid #fcf9f2;
  border-radius: 50%;
}

.theme-swatch-protoss {
  background:
    radial-gradient(circle at 64% 45%, rgba(78, 196, 238, .26), transparent 38%),
    radial-gradient(circle at 20% 88%, rgba(185, 139, 59, .2), transparent 36%),
    linear-gradient(145deg, #050912, #0a1422 65%, #03070d);
}
.theme-swatch-protoss .swatch-orb {
  position: absolute;
  top: 17px;
  right: 27px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #e7fcff, #7bd8f2 35%, #2d81a1 72%, #0b2e45);
  border: 1px solid #e4c47d;
  border-radius: 5px;
  box-shadow: 0 0 18px rgba(89, 208, 244, .55), inset 0 0 14px rgba(255, 255, 255, .32);
  transform: rotate(45deg);
}
.theme-swatch-protoss .swatch-orb::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 2px;
}
.theme-swatch-protoss .swatch-page {
  position: absolute;
  bottom: 13px;
  left: 13px;
  width: 84px;
  height: 45px;
  background: linear-gradient(145deg, rgba(17, 31, 49, .98), rgba(7, 14, 25, .98));
  border: 1px solid #947133;
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(77, 169, 206, .16);
}
.theme-swatch-protoss .swatch-page::before {
  content: "";
  position: absolute;
  top: 11px;
  right: 9px;
  left: 9px;
  height: 1px;
  background: linear-gradient(90deg, #d9b46a, transparent);
  box-shadow: 0 7px 0 rgba(217, 180, 106, .35), 0 15px 0 rgba(217, 180, 106, .16);
}
.theme-swatch-protoss .swatch-page::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 9px;
  height: 9px;
  background: #7edcf5;
  border: 1px solid #f0d28e;
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(98, 212, 255, .8);
}

.theme-swatch-aiur {
  background:
    radial-gradient(circle at 73% 42%, rgba(74, 190, 228, .34), transparent 34%),
    radial-gradient(circle at 12% 92%, rgba(198, 154, 71, .18), transparent 38%),
    linear-gradient(145deg, #02060d, #081725 64%, #02060d);
}
.theme-swatch-aiur .swatch-orb {
  position: absolute;
  top: 14px;
  right: 22px;
  width: 54px;
  height: 54px;
  background: radial-gradient(circle at 32% 27%, #efffff 0 6%, #9cecff 19%, #3b9fbe 48%, #0a2739 76%, #030a12);
  border: 1px solid #d8b36a;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(87, 210, 246, .5), inset -5px -6px 10px rgba(0, 0, 0, .45);
}
.theme-swatch-aiur .swatch-orb::after {
  content: "";
  position: absolute;
  top: 46%;
  left: 50%;
  width: 76px;
  height: 18px;
  border: 1px solid rgba(232, 198, 123, .75);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-19deg);
  box-shadow: 0 0 8px rgba(216, 178, 106, .2);
}
.theme-swatch-aiur .swatch-page {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 88px;
  height: 48px;
  background: linear-gradient(145deg, rgba(12, 31, 50, .98), rgba(4, 12, 21, .98));
  border: 1px solid #a77d38;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(237, 205, 132, .12), 0 0 14px rgba(70, 184, 226, .12);
}
.theme-swatch-aiur .swatch-page::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 10px;
  left: 10px;
  height: 1px;
  background: linear-gradient(90deg, #e1c486, transparent);
  box-shadow: 0 8px 0 rgba(225, 196, 134, .32), 0 16px 0 rgba(225, 196, 134, .14);
}
.theme-swatch-aiur .swatch-page::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 7px;
  width: 8px;
  height: 8px;
  background: #8be6ff;
  border: 1px solid #f2d89b;
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(108, 221, 255, .8);
}

.theme-swatch-solar {
  background:
    radial-gradient(circle at 76% 40%, rgba(91, 218, 249, .28), transparent 34%),
    radial-gradient(circle at 18% 92%, rgba(204, 161, 82, .18), transparent 40%),
    linear-gradient(145deg, #02070e, #071a2b 62%, #02070e);
}
.theme-swatch-solar::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .4;
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(201, 163, 91, .35) 50%, transparent 50.4%) 0 0 / 32px 32px,
    linear-gradient(0deg, transparent 49.6%, rgba(201, 163, 91, .22) 50%, transparent 50.4%) 0 0 / 32px 32px;
}
.theme-swatch-solar .swatch-orb {
  position: absolute;
  top: 11px;
  right: 16px;
  width: 43px;
  height: 49px;
  background: linear-gradient(145deg, #f7e7b8, #80602b 45%, #efd99e 70%, #60461f);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  border-radius: 0;
  box-shadow: 0 0 16px rgba(105, 223, 255, .3);
}
.theme-swatch-solar .swatch-orb::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: radial-gradient(circle at 50% 38%, rgba(92, 219, 252, .36), #04101c 70%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.theme-swatch-solar .swatch-orb::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 15px;
  height: 29px;
  background: linear-gradient(100deg, #f4ffff, #67dbfb 36%, #0d6a99 74%);
  clip-path: polygon(50% 0, 100% 32%, 70% 85%, 50% 100%, 30% 85%, 0 32%);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(112, 231, 255, .65);
}
.theme-swatch-solar .swatch-page {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 83px;
  height: 42px;
  background: linear-gradient(145deg, rgba(10, 33, 50, .98), rgba(3, 11, 20, .98));
  border: 1px solid #ae894a;
  border-radius: 0;
  clip-path: polygon(0 6px, 6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.theme-swatch-solar .swatch-page::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 9px;
  left: 9px;
  height: 1px;
  background: linear-gradient(90deg, #e1c486, rgba(114, 221, 255, .5), transparent);
  box-shadow: 0 8px 0 rgba(225, 196, 134, .28), 0 16px 0 rgba(225, 196, 134, .12);
}
.theme-swatch-solar .swatch-page::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 7px;
  height: 7px;
  background: #82e7ff;
  border: 1px solid #f1d797;
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(108, 221, 255, .8);
}

.theme-swatch-kamui {
  background:
    radial-gradient(circle at 75% 38%, rgba(205, 37, 64, .35), transparent 32%),
    radial-gradient(circle at 20% 94%, rgba(93, 31, 71, .35), transparent 38%),
    linear-gradient(145deg, #030104, #0d0612 62%, #030104);
}
.theme-swatch-kamui::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .4;
  background: repeating-radial-gradient(circle at 73% 42%, transparent 0 13px, rgba(211, 35, 53, .12) 14px 15px);
}
.theme-swatch-kamui .swatch-orb {
  position: absolute;
  top: 10px;
  right: 18px;
  width: 42px;
  height: 42px;
  background:
    radial-gradient(circle, #090207 0 27%, #d32335 29% 38%, #ff6675 40% 44%, #8d1123 46% 64%, #2b0710 68%);
  border: 1px solid rgba(255, 105, 118, .6);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(211, 35, 53, .35);
}
.theme-swatch-kamui .swatch-orb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #07020a;
  border: 1px solid #ff5968;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.theme-swatch-kamui .swatch-page {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 84px;
  height: 40px;
  background: linear-gradient(145deg, rgba(15, 8, 18, .98), rgba(4, 2, 6, .98));
  border: 1px solid #3c1f2e;
  border-top-color: #b7182e;
  border-radius: 0;
}
.theme-swatch-kamui .swatch-page::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 9px;
  left: 9px;
  height: 1px;
  background: linear-gradient(90deg, #d32335, rgba(211, 35, 53, .3), transparent);
  box-shadow: 0 8px 0 rgba(255, 255, 255, .08), 0 16px 0 rgba(255, 255, 255, .04);
}
.theme-swatch-kamui .swatch-page::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 7px;
  height: 7px;
  background: #d32335;
  border: 1px solid #ff8d98;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(211, 35, 53, .7);
}

.theme-option-copy {
  display: block;
  padding: 9px 3px 2px;
}
.theme-option-copy strong {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.theme-option-copy small {
  display: block;
  margin-top: 2px;
  font-size: 8.5px;
  line-height: 1.5;
  color: var(--muted);
}
.theme-check {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .2s, transform .2s;
}
.theme-check svg { width: 12px; height: 12px; }
.theme-option.is-selected .theme-check { opacity: 1; transform: scale(1); }
.theme-hint {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin: 18px 0 0;
  font-size: 9px;
  line-height: 1.65;
  color: var(--muted);
}
.theme-hint svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  color: var(--accent);
}

@media (max-width: 1080px) {
  .hero-art.custom-hero-art {
    max-width: 360px;
    height: 440px;
  }
}

@media (max-width: 860px) {
  .hero-art.custom-hero-art {
    max-width: 380px;
    height: 410px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .hero-art.custom-hero-art { display: none; }
  .theme-card { padding: 17px 18px; }
  .theme-setting { flex-wrap: wrap; gap: 12px; }
  .theme-mark { width: 40px; height: 40px; }
  .theme-setting-copy { flex: 1; }
  .theme-open { width: 100%; margin-left: 0; }
  .theme-options { grid-template-columns: 1fr 1fr; gap: 9px; }
  .theme-options.is-many { grid-template-columns: 1fr 1fr; gap: 8px; }
  .theme-options.is-many .theme-swatch { height: 82px; }
  .theme-swatch { height: 92px; }
}
