:root {
  color-scheme: dark;
  --bg: #101613;
  --surface: #18221d;
  --surface-soft: #203229;
  --ink: #f4f7ef;
  --muted: #a2afa5;
  --line: #2b3b32;
  --accent: #51d28d;
  --accent-strong: #75e4a6;
  --blue: #7bb7ff;
  --gold: #f0c461;
  --button-bg: #0b552d;
  --featured-border: #314635;
  --featured-glow-start: rgba(81, 210, 141, 0.18);
  --featured-glow-end: rgba(240, 196, 97, 0.14);
  --search-fade: rgba(16, 22, 19, 0);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #eef6ee;
  --ink: #171a16;
  --muted: #6b7168;
  --line: #e3e7df;
  --accent: #2da46f;
  --accent-strong: #147a55;
  --blue: #2d7eea;
  --gold: #b4811f;
  --button-bg: #e7f2ff;
  --featured-border: #dce8d9;
  --featured-glow-start: rgba(45, 164, 111, 0.16);
  --featured-glow-end: rgba(180, 129, 31, 0.13);
  --search-fade: rgba(247, 248, 244, 0);
  --shadow: 0 10px 30px rgba(19, 35, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  touch-action: pan-y;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.shell {
  display: flex;
  flex-direction: column;
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 14px calc(28px + env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-logo {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: var(--bg);
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
}

.brand-logo img,
.brand-logo span {
  grid-area: 1 / 1;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.brand-logo img:not([hidden]) + span {
  display: none;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 27px;
  line-height: 1.08;
  font-weight: 800;
}

.menu-button,
.theme-button,
.wallet-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.menu-button,
.theme-button,
.wallet-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 17px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.theme-button img,
.wallet-button img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.theme-button img[src$="darkNackl.png"] {
  width: 28px;
  height: 28px;
}

.menu-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

body.is-menu-open {
  overflow: hidden;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 901;
  display: flex;
  flex-direction: column;
  width: min(86vw, 360px);
  padding:
    calc(18px + env(safe-area-inset-top))
    16px
    calc(18px + env(safe-area-inset-bottom));
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -18px 0 44px rgba(0, 0, 0, 0.28);
  transform: translateX(100%);
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

body.is-menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.is-menu-open .side-menu {
  transform: translateX(0);
}

.side-menu-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.side-menu-header h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
}

.side-menu-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.side-menu-links {
  display: grid;
  gap: 10px;
  padding-top: 18px;
}

.side-menu-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.side-menu-link:focus-visible,
.side-menu-close:focus-visible,
.menu-button:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.side-menu-link:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  color: var(--accent-strong);
  transform: translateX(-2px);
}

.search-panel {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 8px 0 10px;
  background: linear-gradient(180deg, var(--bg) 78%, var(--search-fade));
}

.search-box {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.14);
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.search-box input::placeholder {
  color: var(--muted);
}

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 0 14px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-strip.is-dragging {
  cursor: grabbing;
  user-select: none;
}

body.is-section-detail .category-strip,
body.is-section-detail .featured-band,
body.is-app-detail .category-strip,
body.is-app-detail .featured-band,
body.is-guides-view .category-strip,
body.is-guides-view .featured-band {
  display: none !important;
}

body.is-supporter-view .category-strip,
body.is-supporter-view .featured-band {
  display: none !important;
}

body.is-wallet-view .category-strip,
body.is-wallet-view .featured-band {
  display: none !important;
}

.category-button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.category-button.is-active {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: var(--surface-soft);
  color: var(--accent-strong);
}

.featured-band {
  position: relative;
  display: flex;
  align-items: center;
  height: 140px;
  min-height: 140px;
  max-height: 140px;
  margin: 2px 0 0 0;
  padding: 15px;
  border: 1px solid var(--featured-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.featured-band[hidden] {
  display: none !important;
}

.featured-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.featured-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  background:
    linear-gradient(90deg, rgba(6, 10, 8, 0.76), rgba(6, 10, 8, 0.4) 58%, rgba(6, 10, 8, 0.18)),
    var(--featured-image, linear-gradient(135deg, var(--featured-glow-start), var(--featured-glow-end))),
    var(--surface);
  background-position: center;
  background-size: cover;
  transform: translateX(100%);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-slide.is-active {
  transform: translateX(0);
}

.featured-slide.is-leaving {
  transform: translateX(-100%);
}

.featured-slide.is-entering {
  transform: translateX(100%);
}

.section-kicker {
  display: block;
  margin-bottom: 4px;
  color: #75e4a6;
  font-size: 11px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.82);
  text-transform: uppercase;
}

.featured-copy h2 {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.featured-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: rgba(244, 247, 239, 0.82);
  font-size: 14px;
  font-weight: bold;
  line-height: 1.3;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.86);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured-button,
.open-button {
  min-height: 34px;
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.featured-button {
  margin-left: auto;
  padding: 0 14px;
}

.featured-copy {
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .menu-backdrop,
  .side-menu,
  .side-menu-link {
    transition: none;
  }
}

@media (max-width: 380px) {
  .featured-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.app-section {
  margin-top: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 11px;
}

.section-title-detail {
  justify-content: flex-start;
}

.section-title h2 {
  font-size: 18px;
  line-height: 1.2;
}

.section-title span {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.section-title-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.section-title-button {
  font-size: 18px;
  line-height: 1.2;
}

.section-title-button span[aria-hidden="true"] {
  font-size: 26px;
  line-height: 1;
}

.section-title-button:disabled {
  cursor: default;
}

.app-list {
  display: grid;
  gap: 12px;
}

.app-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  cursor: pointer;
}

.app-row:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.app-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(23, 26, 22, 0.13);
}

.app-icon img {
  width: 100%;
  height: calc(100% - 1px);
  align-self: center;
  border-radius: calc(8px - 1px);
  object-fit: cover;
}

.app-info {
  min-width: 0;
}

.app-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-height: 24px;
}

.app-title {
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-badge,
.app-rating-badge {
  flex: 0 0 auto;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--button-bg);
  font-size: 9px;
  font-weight: 900;
}

.app-badge {
  color: var(--blue);
}

.app-rating-badge {
  color: var(--gold);
}

.app-description {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.open-button {
  min-width: 48px;
  padding: 0 10px;
  white-space: nowrap;
}

.open-button.is-unavailable,
.detail-open-button.is-unavailable {
  background: #3a2020;
  color: #d9b7b7;
  cursor: not-allowed;
}

.open-button:disabled,
.detail-open-button:disabled {
  opacity: 1;
}

.app-detail {
  padding-top: 4px;
}

.detail-header {
  display: grid;
  gap: 16px;
}

.detail-title-row {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.detail-back {
  display: inline-block;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.detail-header h2 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}

.detail-metrics {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.detail-metrics.has-editor {
  grid-template-columns: 64px minmax(0, 1fr) 44px;
}

.detail-icon {
  width: 64px;
  height: 64px;
  font-size: 23px;
}

.detail-metrics strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.detail-metrics strong span {
  color: var(--blue);
}

.detail-metrics div span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.detail-stats-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.detail-metrics .detail-stats-line span {
  display: inline;
  margin-top: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.detail-stat-rating,
.detail-stats-line strong {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
}

.detail-metrics .detail-stats-line .detail-stat-rating,
.detail-metrics .detail-stats-line .detail-stat-rating span,
.detail-metrics .detail-stats-line strong {
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
}

.detail-stat-rating span {
  color: var(--gold);
}

.detail-open-button {
  width: 100%;
  min-height: 54px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--button-bg);
  color: var(--accent-strong);
}

.detail-edit-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 12px;
  background:
    radial-gradient(circle at 32% 24%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 40%),
    color-mix(in srgb, var(--surface-soft) 88%, transparent);
  color: var(--accent-strong);
  line-height: 1;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 10%, transparent);
}

.detail-edit-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-edit-button:hover {
  border-color: color-mix(in srgb, var(--gold) 52%, var(--accent));
  background:
    radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--gold) 28%, transparent), transparent 42%),
    color-mix(in srgb, var(--accent) 14%, var(--surface-soft));
  color: var(--gold);
}

.detail-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.detail-contact-actions.has-1 {
  grid-template-columns: 1fr;
}

.detail-contact-actions.is-official {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}

.detail-contact-button {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line));
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.detail-contact-button.is-icon-only {
  width: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  padding: 8px;
}

.detail-contact-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent-strong);
}

.detail-contact-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.detail-contact-youtube .detail-contact-icon svg,
.detail-contact-telegram .detail-contact-icon svg {
  fill: color-mix(in srgb, var(--accent) 18%, transparent);
}

.detail-contact-instagram .detail-contact-icon circle:last-child,
.detail-contact-x .detail-contact-icon svg,
.detail-contact-discord .detail-contact-icon svg,
.detail-contact-youtube .detail-contact-icon path {
  fill: currentColor;
  stroke: none;
}

.detail-contact-button strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-gallery-wrap {
  position: relative;
  margin-top: 20px;
}

.detail-gallery {
  display: grid;
  grid-auto-columns: minmax(180px, 32%);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 1px 34px 8px 0;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.detail-gallery::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  aspect-ratio: 9 / 18;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--accent-strong);
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--accent-strong);
  font-size: 31px;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-nav-previous {
  left: 4px;
}

.gallery-nav-next {
  right: 4px;
}

.detail-block {
  margin-top: 24px;
}

.detail-block h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 750;
}

.detail-block > p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.rating-stars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 5px;
}

.star-button {
  display: grid;
  min-height: 46px;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 39px;
  line-height: 1;
}

.star-button.is-selected {
  color: var(--accent-strong);
}

.star-button:disabled {
  opacity: 0.72;
}

.rating-saving {
  margin-top: 8px !important;
  color: var(--accent-strong) !important;
  font-size: 13px !important;
  font-weight: 700;
}

.detail-text {
  display: grid;
  gap: 8px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.rating-summary {
  padding-bottom: 10px;
}

.rating-score {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 10px;
}

.rating-score strong {
  font-size: 58px;
  font-weight: 450;
  line-height: 0.95;
}

.rating-score span {
  color: var(--muted);
  font-size: 14px;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding:
    calc(58px + env(safe-area-inset-top))
    10px
    calc(20px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.82);
  touch-action: pan-y;
}

.image-viewer img {
  max-width: 100%;
  max-height: calc(100dvh - 86px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  border-radius: 8px;
  object-fit: contain;
  transform: translateX(0);
  transition: opacity 180ms ease, transform 180ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.image-viewer.is-swipeable img {
  cursor: grab;
}

.image-viewer img.is-changing {
  opacity: 0.45;
  transform: translateX(var(--swipe-shift));
}

.image-viewer-close {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
  z-index: 1001;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: rgba(10, 12, 11, 0.88);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
}

.empty-state {
  padding: 26px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.guides-view {
  padding-top: 0;
}

.supporter-view {
  display: grid;
  gap: 14px;
  padding-top: 0;
}

.supporter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.supporter-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.supporter-back span {
  font-size: 26px;
  line-height: 1;
}

.supporter-back strong {
  font-size: 21px;
}

.supporter-beta,
.supporter-kicker {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.supporter-hero,
.supporter-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 90%, var(--accent) 10%), var(--surface));
}

.supporter-hero {
  padding: 22px;
}

.supporter-hero h2 {
  margin: 7px 0 8px;
  font-size: 28px;
  line-height: 1.08;
}

.supporter-payment-hero {
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 90%, var(--accent) 10%), var(--surface));
}

.supporter-hero p,
.supporter-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.supporter-progress {
  position: relative;
  height: 9px;
  margin: 19px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      transparent calc(20% - 1px),
      color-mix(in srgb, var(--surface) 88%, transparent) calc(20% - 1px),
      color-mix(in srgb, var(--surface) 88%, transparent) 20%,
      transparent 20%,
      transparent calc(40% - 1px),
      color-mix(in srgb, var(--surface) 88%, transparent) calc(40% - 1px),
      color-mix(in srgb, var(--surface) 88%, transparent) 40%,
      transparent 40%,
      transparent calc(60% - 1px),
      color-mix(in srgb, var(--surface) 88%, transparent) calc(60% - 1px),
      color-mix(in srgb, var(--surface) 88%, transparent) 60%,
      transparent 60%,
      transparent calc(80% - 1px),
      color-mix(in srgb, var(--surface) 88%, transparent) calc(80% - 1px),
      color-mix(in srgb, var(--surface) 88%, transparent) 80%,
      transparent 80%
    ),
    color-mix(in srgb, var(--line) 80%, transparent);
}

.supporter-progress span {
  position: relative;
  z-index: 2;
  display: block;
  width: var(--supporter-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.supporter-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: var(--supporter-preview, 0%);
  border-radius: inherit;
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}

.supporter-progress-label {
  color: var(--accent-strong) !important;
  font-weight: 750;
}

.supporter-progress-hint {
  margin-top: 3px !important;
  font-size: 12px !important;
}

.supporter-card {
  padding: 17px;
}

.supporter-card > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.supporter-card > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.supporter-wallet-connect {
  display: grid;
  gap: 10px;
}

.supporter-wallet-state code {
  display: block;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.donation-quote-card code {
  display: block;
  margin: 12px 0;
  padding: 9px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: var(--muted);
  font-size: 11px;
}

.donation-price-details {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 68%, transparent);
}

.donation-price-details span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.donation-price-details strong {
  color: var(--text);
  font-size: 15px;
}

.donation-price-details p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.donation-price-details .donation-price-warning {
  color: #f4c2c2;
}

.donation-price-provider {
  margin: 10px 0 14px !important;
  font-size: 11px !important;
}

.donation-price-provider a {
  color: var(--accent-strong);
}

.donation-quote-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.donation-payment-actions {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.donation-check-button {
  width: 100%;
  margin-top: 12px;
}

.donation-check-status {
  margin: 8px 0 0 !important;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--muted);
  font-size: 12px !important;
  line-height: 1.4;
}

.donation-check-status[data-status="checking"],
.donation-check-status[data-status="pending"] {
  border-color: color-mix(in srgb, var(--gold) 34%, var(--line));
  color: color-mix(in srgb, var(--gold) 88%, var(--text));
}

.donation-check-status[data-status="success"] {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  color: var(--accent-strong);
}

.donation-check-status[data-status="error"] {
  border-color: color-mix(in srgb, #e98282 58%, var(--line));
  color: #f0a2a2;
}

.supporter-notification-toast {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 62%, var(--accent));
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 42%),
    color-mix(in srgb, var(--surface-soft) 94%, #000 6%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  color: var(--text);
}

.supporter-notification-toast strong {
  display: block;
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 14px;
}

.supporter-notification-toast p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.supporter-notification-toast button,
.supporter-unlock-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
}

.supporter-unlock-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.supporter-unlock-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 5, 0.72);
  backdrop-filter: blur(6px);
}

.supporter-unlock-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 24px 20px 20px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 68%, var(--accent));
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 36%),
    radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-soft) 92%, var(--gold) 8%), var(--surface));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.supporter-unlock-card::before {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--gold) 0 34%, transparent 35%),
    color-mix(in srgb, var(--gold) 18%, var(--surface));
  content: "🏆";
  font-size: 31px;
  line-height: 58px;
  box-shadow: 0 0 28px color-mix(in srgb, var(--gold) 36%, transparent);
}

.supporter-unlock-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.supporter-unlock-kicker {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.supporter-unlock-card h2 {
  margin: 6px 0 8px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.05;
}

.supporter-unlock-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.app-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
}

.app-edit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 5, 0.76);
  backdrop-filter: blur(8px);
}

.app-edit-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(100%, 560px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 14px;
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-soft) 88%, #07150d));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

.app-edit-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: start;
  gap: 12px;
}

.app-edit-card header span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.app-edit-card h2 {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.15;
}

.app-edit-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.supporter-unlock-card ul {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.supporter-unlock-card li {
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}

.donation-currency-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.donation-currency-selector button {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--text);
  text-align: left;
}

.donation-currency-selector button.is-selected {
  border-color: color-mix(in srgb, var(--accent) 68%, white);
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent);
}

.donation-currency-selector strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.donation-currency-selector img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  flex: 0 0 auto;
}

.donation-currency-selector span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.donation-amount-card {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.donation-amount-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--text);
}

.donation-amount-input span {
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 850;
}

.donation-amount-input input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 22px;
  font-weight: 850;
}

.donation-amount-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.donation-amount-presets button {
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: var(--text);
  font-weight: 800;
}

.donation-amount-presets button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 32%, var(--line));
  background: color-mix(in srgb, var(--gold) 8%, var(--surface));
}

.donation-amount-presets button.is-selected {
  border-color: color-mix(in srgb, var(--accent) 68%, white);
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  color: var(--accent-strong);
}

.donation-unlocks-preview {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 64%, transparent);
}

.donation-unlocks-preview > span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.donation-unlocks-preview ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.donation-unlocks-preview li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.donation-unlocks-preview li.is-unlocked {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
}

.donation-unlocks-preview li.is-active-pack {
  border-color: color-mix(in srgb, var(--gold) 72%, var(--line));
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 38%),
    color-mix(in srgb, var(--gold) 9%, var(--surface));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold) 18%, transparent),
    0 12px 24px color-mix(in srgb, var(--gold) 13%, transparent);
}

.donation-unlocks-preview li.is-clickable {
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.donation-unlocks-preview li.is-clickable:hover,
.donation-unlocks-preview li.is-clickable:focus-visible {
  border-color: color-mix(in srgb, var(--gold) 88%, var(--line));
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 38%),
    color-mix(in srgb, var(--gold) 12%, var(--surface));
  transform: translateY(-1px);
  outline: none;
}

.donation-unlocks-preview li.is-coming-soon {
  opacity: 0.72;
}

.donation-unlocks-preview li strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.donation-unlocks-preview li small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.donation-unlock-thumbs {
  position: relative;
  width: 74px;
  height: 50px;
}

.donation-unlock-question {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 52%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 14%, var(--surface));
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.donation-unlock-thumbs img {
  position: absolute;
  top: 50%;
  width: 35px;
  height: 46px;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.donation-unlock-thumbs img:nth-child(1) {
  left: 0;
  transform: translateY(-50%) rotate(-7deg);
}

.donation-unlock-thumbs img:nth-child(2) {
  left: 19px;
  z-index: 2;
  transform: translateY(-54%);
}

.donation-unlock-thumbs img:nth-child(3) {
  left: 38px;
  transform: translateY(-50%) rotate(7deg);
}

.supporter-wallet-summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.supporter-wallet-summary-heading > span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.supporter-wallet-loading {
  display: grid;
  justify-items: center;
  text-align: center;
  overflow: hidden;
}

.wallet-loading-icon {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin: 2px 0 12px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.wallet-loading-icon::before {
  position: absolute;
  inset: -4px;
  border: 2px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-top-color: var(--accent);
  border-radius: inherit;
  content: "";
  animation: wallet-loader-spin 1.25s linear infinite;
}

.wallet-loading-icon img {
  width: 39px;
  height: 39px;
  object-fit: contain;
  animation: wallet-loader-float 1.8s ease-in-out infinite;
}

.supporter-wallet-loading > strong {
  margin-bottom: 5px;
  font-size: 18px;
}

.wallet-loading-dots {
  display: flex;
  gap: 5px;
  margin-top: 13px;
}

.wallet-loading-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: wallet-loader-dot 1s ease-in-out infinite;
}

.wallet-loading-dots i:nth-child(2) {
  animation-delay: 0.14s;
}

.wallet-loading-dots i:nth-child(3) {
  animation-delay: 0.28s;
}

.wallet-refresh-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 750;
}

.wallet-refresh-status i {
  width: 10px;
  height: 10px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: wallet-loader-spin 0.8s linear infinite;
}

.wallet-connection-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--accent-strong) !important;
  font-size: 12px !important;
  font-weight: 700;
  text-align: center;
}

.wallet-connection-waiting i {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: wallet-loader-spin 0.8s linear infinite;
}

.wallet-connection-notice {
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--gold) 9%, var(--surface));
  color: color-mix(in srgb, var(--gold) 88%, var(--text)) !important;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

@keyframes wallet-loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes wallet-loader-float {
  50% { transform: translateY(-4px) rotate(-4deg); }
}

@keyframes wallet-loader-dot {
  50% { transform: translateY(-4px); opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-loading-icon::before,
  .wallet-loading-icon img,
  .wallet-loading-dots i,
  .wallet-refresh-status i,
  .wallet-connection-waiting i {
    animation: none;
  }
}

.supporter-balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.supporter-balance-grid > div,
.supporter-wallet-mbi {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.supporter-balance-grid span,
.supporter-wallet-mbi span {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.supporter-balance-grid img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.supporter-balance-grid img[src$="shell.png"] {
  width: 20px;
  height: 20px;
  margin: -2px;
}

.supporter-balance-grid img[src*="eccusdc.png"] {
  width: 18px;
  height: 18px;
  margin: -1px;
}

.supporter-balance-grid strong,
.supporter-wallet-mbi strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.supporter-wallet-mbi {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.supporter-wallet-mbi span {
  margin: 0;
}

.supporter-wallet-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.wallet-disconnect-button {
  margin-top: auto;
}

.supporter-qr {
  display: grid;
  width: max-content;
  margin: 4px auto;
  padding: 10px;
  border-radius: 12px;
  background: #ffffff;
}

.supporter-qr img,
.supporter-qr canvas {
  display: block;
}

.supporter-primary-button,
.supporter-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.supporter-primary-button {
  border: 1px solid transparent;
  background: var(--button-bg);
  color: var(--accent-strong);
  cursor: pointer;
}

.supporter-secondary-button {
  width: 100%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
  color: var(--ink);
  cursor: pointer;
}

.supporter-secondary-button:hover {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-soft));
}

.wallet-disconnect-button {
  border-color: #754247;
  background: #563136;
  color: #fff1f0;
}

.wallet-disconnect-button:hover {
  background: #66383e;
}

.backer-settings-card {
  display: grid;
  gap: 14px;
}

.backer-settings-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.backer-settings-card select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--surface-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23f4f7ef' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
  color: var(--ink);
  padding: 11px 34px 11px 12px;
  font: inherit;
}

body[data-theme="light"] .backer-settings-card select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23171a16' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.backer-settings-card select option {
  background: #ffffff;
  color: #171a16;
}

.wallet-card-theme-picker {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.wallet-card-theme-picker legend {
  margin-bottom: 7px;
  color: var(--muted);
  font-weight: 700;
}

.wallet-card-theme-picker-signature {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.wallet-card-theme-picker-signature small {
  display: block;
  margin: -3px 0 2px;
}

.wallet-theme-gallery-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
  overflow: hidden;
}

.wallet-theme-gallery {
  width: 100%;
  min-width: 0;
  grid-auto-columns: minmax(132px, 48%);
  padding: 1px 36px 8px 0;
  overscroll-behavior-x: contain;
}

.wallet-card-theme-option {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  aspect-ratio: auto;
  overflow: visible;
  padding: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-soft) 84%, transparent);
  color: var(--ink) !important;
  cursor: pointer;
  box-shadow: none;
}

.wallet-theme-nav {
  display: grid;
}

.wallet-card-theme-preview {
  aspect-ratio: 2 / 3;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  cursor: zoom-in;
}

.wallet-card-theme-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallet-card-theme-option span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 2px;
  font-size: 14px;
}

.wallet-card-theme-option input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
}

.backer-settings-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.backer-settings-card .backer-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.backer-toggle input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.backer-save-status {
  min-height: 18px;
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.backer-save-status[data-status="saved"] {
  color: var(--accent-strong);
}

.backer-save-status[data-status="error"] {
  color: #e98282;
}

.app-owner-editor {
  gap: 12px;
}

.app-owner-form {
  display: grid;
  gap: 12px;
}

.app-owner-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.app-owner-form input,
.app-owner-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  resize: vertical;
}

.app-owner-form textarea {
  min-height: 104px;
  line-height: 1.45;
}

.app-owner-actions {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  align-items: center;
  gap: 12px;
}

.app-owner-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.app-owner-status[data-status="saved"] {
  color: var(--accent-strong);
}

.app-owner-status[data-status="error"] {
  color: #e98282;
}

.supporter-error {
  color: #e98282 !important;
}

.supporter-menu-link {
  width: 100%;
  cursor: pointer;
  color: var(--accent-strong);
  text-align: left;
}

.supporter-menu-link-gold {
  color: var(--gold);
}

.supporter-menu-link-gold:hover {
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 52%, var(--line));
}

.statistics-card {
  display: grid;
  gap: 14px;
}

.statistics-kpi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
}

.statistics-kpi div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.statistics-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.statistics-kpi strong {
  color: var(--accent-strong);
  font-size: clamp(20px, 6vw, 26px);
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
}

.statistics-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.statistics-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}

.statistics-table th:first-child,
.statistics-table td:first-child {
  width: 44%;
}

.statistics-table th:not(:first-child),
.statistics-table td:not(:first-child) {
  width: 18.66%;
}

.statistics-table th,
.statistics-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.statistics-table th:first-child,
.statistics-table td:first-child {
  text-align: left;
}

.statistics-table tbody tr:last-child td {
  border-bottom: 0;
}

.statistics-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.statistics-table td {
  color: var(--ink);
  font-weight: 800;
}

.statistics-table code {
  display: block;
  overflow: hidden;
  color: var(--accent-strong);
  font-family: inherit;
  font-weight: 900;
  text-overflow: ellipsis;
}

.statistics-updated,
.statistics-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 380px) {
  .statistics-table {
    font-size: 12px;
  }

  .statistics-table th,
  .statistics-table td {
    padding: 10px 6px;
  }

  .statistics-table th {
    font-size: 10px;
    letter-spacing: .02em;
  }
}

.guides-header {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.guides-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
}

.guides-back span {
  font-size: 26px;
  line-height: 1;
}

.guides-back strong {
  font-size: 21px;
  line-height: 1.2;
}

.guides-list {
  display: grid;
  gap: 13px;
}

.guide-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 72px;
  cursor: pointer;
}

.guide-row:focus-visible,
.guides-back:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.guide-image {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.guide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-image.is-empty::after {
  content: "IMAGE";
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.guide-info {
  min-width: 0;
  align-self: center;
}

.guide-info h3 {
  margin: 0 0 4px;
  font-size: 19px;
  line-height: 1.12;
  font-weight: 800;
}

.guide-info p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.24;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.guide-info span {
  display: block;
  margin-top: 4px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.submit-app-footer {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding: 28px 0 2px;
}

.submit-app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.submit-app-link:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.submit-app-icon {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 380px) {
  .guide-row {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 10px;
    min-height: 61px;
  }

  .guide-info h3 {
    font-size: 17px;
  }

  .guide-info p {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .detail-header h2 {
    font-size: 21px;
  }

  .detail-metrics {
    grid-template-columns: 58px minmax(0, 1fr) minmax(78px, auto);
    gap: 10px;
  }

  .detail-icon {
    width: 58px;
    height: 58px;
  }
}

@media (min-width: 560px) {
  .shell {
    padding-inline: 24px;
  }

  .app-list {
    grid-template-columns: 1fr 1fr;
    gap: 15px 18px;
  }

  .app-row {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .app-detail {
    max-width: 560px;
    margin: 0 auto;
  }

  .guides-view {
    max-width: 620px;
    margin: 0 auto;
  }
}
