:root {
  color-scheme: light;
  --bg: #eaf1fb;
  --surface: #ffffff;
  --surface-2: #e4edfa;
  --line: #cbd8e9;
  --text: #182e51;
  --muted: #4e6380;
  --accent: #2454b8;
  --accent-soft: #e4edfa;
  --green: #2e735b;
  --danger: #a52d32;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(
      circle at 88% -10%,
      rgba(124, 105, 65, 0.19),
      transparent 34rem
    ),
    radial-gradient(
      circle at -15% 28%,
      rgba(64, 93, 88, 0.13),
      transparent 28rem
    ),
    var(--bg);
}

button,
select,
input {
  font: inherit;
}
a {
  color: inherit;
}

.app-shell {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px
    max(30px, env(safe-area-inset-bottom));
}

.topbar,
.privacy-row,
.section-heading,
.album-toolbar {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar {
  padding: 5px 2px 20px;
}
.language-menu {
  position: relative;
  margin: 12px 0;
  max-width: 100%;
}
.language-menu summary {
  padding: 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.language-menu nav {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  width: min(420px, 100%);
  max-height: min(60vh, 450px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  background: var(--surface);
  box-shadow: 0 8px 24px #182e5120;
}
.language-menu button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}
.language-menu button span {
  unicode-bidi: isolate;
}
.translation-notice {
  max-width: 880px;
  margin: 20px auto;
  padding-inline: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.quantity,
.price {
  direction: ltr;
  unicode-bidi: isolate;
}
.language-menu button:hover,
.language-menu button[aria-pressed='true'] {
  background: var(--accent-soft);
}
.language-menu button:focus-visible,
.language-menu summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.topbar > div,
.hero-card > *,
.product-body,
.collectible-body {
  min-width: 0;
  overflow-wrap: anywhere;
}
.shared-album {
  display: grid;
  gap: 12px;
  overflow-wrap: anywhere;
}
.shared-album .button {
  justify-self: start;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font:
    650 clamp(25px, 6vw, 34px)/1.05 Georgia,
    serif;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.015em;
}
.eyebrow,
.kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.eyebrow {
  margin-bottom: 7px;
}
.star-pill,
.counter {
  border: 1px solid #3a3529;
  background: var(--accent-soft);
  color: #d9c28f;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.tabs {
  position: sticky;
  top: max(8px, env(safe-area-inset-top));
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 17, 20, 0.92);
  backdrop-filter: blur(15px);
}

.tab {
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 10px 7px;
  cursor: pointer;
}
.tab.active {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px #30373e;
}
.panel {
  display: none;
}
.panel.active {
  display: block;
  animation: enter 0.2s ease-out;
}
@keyframes enter {
  from {
    opacity: 0.25;
    transform: translateY(5px);
  }
}

.album-toolbar {
  margin: 0 2px 12px;
}
.album-toolbar label {
  color: var(--muted);
  font-size: 12px;
}
select {
  max-width: 64%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 30px 8px 10px;
  background: var(--surface-2);
}

.hero-card,
.support-card,
.club-card,
.state-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(28, 33, 38, 0.96),
    rgba(14, 17, 20, 0.96)
  );
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}
.hero-card {
  padding: 22px;
  min-height: 132px;
  display: grid;
  align-content: end;
}
.hero-card .progress-track {
  height: 6px;
  margin: 16px 0 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #282e34;
}
.hero-card .progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ea18b, #d0ba82);
}
.hero-card p,
.support-card p,
.club-card p {
  color: var(--muted);
  line-height: 1.5;
}
.hero-card strong {
  font:
    650 28px/1 Georgia,
    serif;
}
.store-hero {
  align-content: center;
  gap: 12px;
}

.section-heading {
  margin: 26px 2px 12px;
}
.section-heading .kicker {
  display: block;
  margin-bottom: 5px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.collectible {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.collectible img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.collectible.locked img {
  filter: saturate(0) brightness(0.32);
}
.collectible-body {
  padding: 11px 12px 13px;
}
.collectible h3 {
  overflow: hidden;
  margin: 0 0 4px;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.collectible p {
  color: var(--muted);
  font-size: 12px;
}
.quantity {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  max-width: calc(100% - 16px);
  overflow-wrap: anywhere;
  padding: 5px 8px;
  border-radius: 99px;
  background: rgba(5, 7, 8, 0.78);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.lock {
  position: absolute;
  inset: 0 0 48px;
  display: grid;
  place-items: center;
  font-size: 30px;
}

.store-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.product {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.product img {
  width: 112px;
  height: 100%;
  min-height: 112px;
  /* Text and wrapped actions can make the card taller than its artwork. */
  object-fit: contain;
}
.product-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px;
}
.product h3 {
  margin: 0 0 5px;
  font-size: 17px;
}
.product p {
  flex: 1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.button {
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  color: #111;
  background: #d4bd86;
  font-weight: 800;
  cursor: pointer;
}
.button.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}
.product-actions .button {
  padding: 8px 10px;
  font-size: 12px;
}
.price {
  color: #d9c28f;
  font-size: 13px;
  font-weight: 800;
}
.owned-copy {
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}

.club-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  margin-bottom: 12px;
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(204, 163, 80, 0.2),
      transparent 45%
    ),
    #12161a;
}
.club-card::after {
  content: '✦';
  position: absolute;
  inset-inline-end: 22px;
  top: 15px;
  color: #d7b96f;
  font-size: 42px;
  opacity: 0.65;
}
.club-card h2 {
  margin: 7px 0 9px;
  font:
    650 24px Georgia,
    serif;
}
.club-card .button {
  margin-top: 16px;
}
.support-card {
  padding: 20px;
  margin-bottom: 12px;
}
.support-card h2 {
  margin: 6px 0 8px;
}
.donation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 17px 0 13px;
}
.cafecito {
  color: #d7c28f;
  font-size: 13px;
  text-underline-offset: 3px;
}

.switch {
  position: relative;
  display: block;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch span {
  position: absolute;
  inset: 0;
  border: 1px solid #3b434a;
  border-radius: 99px;
  background: #20262b;
  transition: 0.2s;
}
.switch span::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #899198;
  transition: 0.2s;
}
.switch input:checked + span {
  border-color: #8f845f;
  background: #4c4633;
}
.switch input:checked + span::after {
  transform: translateX(20px);
  background: #dcc686;
}
.donor-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: donors;
}
.donor-list li {
  counter-increment: donors;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #252b30;
}
.donor-list li::before {
  content: counter(donors, decimal-leading-zero);
  color: #6f777e;
  font:
    12px ui-monospace,
    monospace;
}
.donor-list .donor-name {
  flex: 1;
}
.donor-list strong {
  color: #d9c28f;
  font-size: 13px;
}
.empty {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
}
.legal-links {
  padding: 8px 2px;
  color: #777f85;
  font-size: 11px;
  line-height: 1.6;
}

.state-card {
  margin-top: 18vh;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}
.state-card.error {
  display: grid;
  gap: 12px;
  color: var(--danger);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 50;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 20px);
  padding: 11px 14px;
  border: 1px solid #3b434a;
  border-radius: 12px;
  color: var(--text);
  background: #1d2328;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.gift-dialog {
  width: min(calc(100% - 28px), 460px);
  max-height: min(620px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #343c43;
  border-radius: 20px;
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
}
.gift-dialog::backdrop {
  background: rgba(2, 4, 5, 0.78);
  backdrop-filter: blur(5px);
}
.gift-dialog form {
  display: grid;
  gap: 13px;
  padding: 22px;
}
.gift-dialog h2 {
  margin-top: -5px;
  font:
    650 23px/1.15 Georgia,
    serif;
}
.gift-dialog p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.gift-dialog label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.gift-dialog input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #3a434b;
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: #1a2025;
}
.gift-dialog input:focus {
  border-color: #9e8d64;
  box-shadow: 0 0 0 3px rgba(183, 164, 119, 0.12);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 3px;
}

@media (min-width: 620px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .app-shell {
    padding-left: 11px;
    padding-right: 11px;
  }
  .product {
    grid-template-columns: 92px 1fr;
  }
  .product img {
    width: 92px;
  }
  .star-pill {
    display: none;
  }
}

/* Galerazo web: light identity, Telegram safe areas and accessible touch targets. */
:root {
  --safe-top: max(
    env(safe-area-inset-top, 0px),
    var(--tg-safe-area-inset-top, 0px)
  );
  --safe-bottom: max(
    env(safe-area-inset-bottom, 0px),
    var(--tg-safe-area-inset-bottom, 0px)
  );
  --safe-left: max(
    env(safe-area-inset-left, 0px),
    var(--tg-safe-area-inset-left, 0px)
  );
  --safe-right: max(
    env(safe-area-inset-right, 0px),
    var(--tg-safe-area-inset-right, 0px)
  );
  --top: calc(var(--safe-top) + var(--tg-content-safe-area-inset-top, 0px));
  --bottom: calc(
    var(--safe-bottom) + var(--tg-content-safe-area-inset-bottom, 0px)
  );
  scrollbar-color: #829bc1 #eaf1fb;
  scrollbar-width: auto;
}
* {
  scrollbar-color: #829bc1 #eaf1fb;
  scrollbar-width: auto;
}
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: #eaf1fb;
}
::-webkit-scrollbar-thumb {
  border: 3px solid #eaf1fb;
  border-radius: 12px;
  background: #829bc1;
}
::-webkit-scrollbar-thumb:hover {
  background: #597cad;
}
::-webkit-scrollbar-thumb:active {
  background: #2454b8;
}
::-webkit-scrollbar-thumb:disabled {
  background: #cbd8e9;
}
body {
  background: var(--bg);
  overflow-wrap: anywhere;
}
.app-shell {
  padding: calc(18px + var(--top)) calc(16px + var(--safe-right))
    calc(30px + var(--bottom)) calc(16px + var(--safe-left));
}
h1,
h2,
.hero-card strong,
.club-card h2,
.gift-dialog h2 {
  font-family: inherit;
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}
.brand-icon {
  object-fit: contain;
}
.topbar > div:first-of-type {
  flex: 1;
}
.topbar {
  flex-wrap: wrap;
}
.star-pill,
.counter,
.price,
.cafecito,
.donor-list strong {
  color: #2454b8;
  border-color: var(--line);
}
.tabs {
  background: #f5f8fdef;
  top: var(--top);
}
.tab {
  min-height: 44px;
  font-weight: 700;
}
.tab.active {
  color: #fff;
  background: var(--accent);
  box-shadow: none;
}
.hero-card,
.support-card,
.club-card,
.state-card {
  background: #fff;
  box-shadow: 0 6px 24px #182e5108;
}
.hero-card .progress-track {
  background: var(--surface-2);
}
.hero-card .progress-bar {
  background: var(--accent);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
}
.button:hover {
  filter: brightness(0.92);
}
button:disabled,
input:disabled {
  opacity: 0.6;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #b47508;
  outline-offset: 3px;
}
.collectible h3 {
  white-space: normal;
  overflow: visible;
}
.collectible img {
  height: auto;
}
.quantity {
  color: #fff;
}
.collectible.locked img {
  filter: saturate(0) brightness(0.6);
}
.lock {
  color: #fff;
  text-shadow: 0 2px 3px #182e51;
}
.club-card {
  background: #fff5da;
}
.club-card::after {
  pointer-events: none;
  color: #aa780d;
}
.donor-list li {
  border-color: var(--line);
}
.donor-list li::before {
  color: var(--muted);
}
.legal-links {
  color: var(--muted);
}
.switch {
  height: 44px;
  width: 50px;
}
.switch span {
  top: 9px;
  bottom: 9px;
  background: #cbd8e9;
  border-color: var(--muted);
}
.switch span::after {
  background: #fff;
}
.switch input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
}
.switch input:checked + span::after {
  background: #fff;
}
.switch input:focus-visible + span {
  outline: 3px solid #b47508;
  outline-offset: 3px;
}
.state-card {
  margin-top: 28px;
}
.entry-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
.entry-card > img {
  object-fit: contain;
  max-width: 100%;
}
.entry-card h2 {
  font-size: clamp(24px, 6vw, 32px);
  color: var(--text);
}
.entry-card p {
  max-width: 48ch;
  line-height: 1.6;
}
.entry-card .entry-note {
  font-size: 13px;
}
.toast {
  bottom: calc(20px + var(--bottom));
  color: #fff;
  background: #182e51;
  border-color: #182e51;
}
.gift-dialog {
  background: #fff;
  border-color: var(--line);
  max-height: calc(
    var(--visible-height, 100dvh) - var(--top) - var(--bottom) - 32px
  );
  width: min(calc(100% - var(--safe-left) - var(--safe-right) - 32px), 460px);
}
.gift-dialog input {
  color: var(--text);
  background: #f4f7fc;
  border-color: var(--line);
  font-size: 16px;
  scroll-margin-block: 24px;
}
.dialog-actions {
  align-items: flex-end;
  flex-wrap: wrap;
}
.submit-area {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 160px;
}
.action-error {
  color: var(--danger) !important;
  font-size: 13px;
  margin: 0;
}
.gift-dialog .action-error[hidden] + button {
  margin-top: 0;
}
@media (max-width: 360px) {
  .app-shell {
    padding-left: calc(11px + var(--safe-left));
    padding-right: calc(11px + var(--safe-right));
  }
  .product {
    grid-template-columns: 1fr;
  }
  .product img {
    width: 100%;
    height: 130px;
    object-fit: contain;
  }
  .topbar {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
  }
  ::-webkit-scrollbar-thumb {
    background: ButtonText;
    border-color: Canvas;
  }
  .button,
  .tab.active {
    border: 1px solid ButtonText;
  }
}
