@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #0a022d;
  --panel: rgba(43, 11, 89, 0.78);
  --panel-solid: #2b0b59;
  --panel-soft: rgba(255, 255, 255, 0.055);
  --pink: #f437d6;
  --blue: #1762da;
  --ice: #94d3f9;
  --white: #ffffff;
  --muted: #c5cae7;
  --success: #55e6b1;
  --warning: #ffd166;
  --danger: #ff6b8a;
  --border: rgba(148, 211, 249, 0.22);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(244, 55, 214, .13), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(23, 98, 218, .18), transparent 32%),
    var(--bg);
  color: var(--white);
  font-family: 'Rubik', sans-serif;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.is-hidden { display: none !important; }

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .12;
  pointer-events: none;
  z-index: -1;
}
.ambient--one { top: 12%; left: -210px; background: var(--pink); }
.ambient--two { right: -180px; bottom: 10%; background: var(--blue); }

.album-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 5vw, 76px);
  background: rgba(10, 2, 45, .78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ice);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 8px 24px rgba(244, 55, 214, .3);
}
.header-actions { display: flex; align-items: center; gap: 10px; }

main { width: min(1320px, calc(100% - 32px)); margin: 0 auto; }
.album-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: center;
  gap: clamp(32px, 7vw, 100px);
  min-height: 620px;
  padding: 76px clamp(0px, 2vw, 28px) 62px;
}
.eyebrow {
  margin-bottom: 10px;
  color: var(--ice);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.album-hero h1 {
  max-width: 820px;
  font-size: clamp(2.65rem, 6vw, 6.2rem);
  line-height: .98;
  letter-spacing: -.065em;
}
.album-hero h1 span {
  display: block;
  color: var(--pink);
  text-shadow: 0 0 35px rgba(244, 55, 214, .26);
}
.hero-description {
  max-width: 700px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.hero-badges span, .live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(148, 211, 249, .07);
  color: var(--ice);
  font-size: .83rem;
  font-weight: 700;
}
.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(390px, 100%);
  aspect-ratio: 3 / 4;
  justify-self: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.15), transparent 35%),
    linear-gradient(145deg, #f437d6 0%, #6b2fd2 46%, #1762da 100%);
  box-shadow: 0 36px 90px rgba(23, 98, 218, .28), inset 0 1px rgba(255,255,255,.25);
  transform: rotate(3deg);
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: 17px;
  z-index: -1;
  border: 1px dashed rgba(255,255,255,.48);
  border-radius: 23px;
}
.hero-card::after {
  content: '✦';
  position: absolute;
  top: 34px;
  left: 34px;
  font-size: 5rem;
  opacity: .28;
}
.hero-card__shine {
  position: absolute;
  inset: -20% auto auto -50%;
  width: 70%;
  height: 150%;
  transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
}
.hero-card p { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; }
.hero-card strong { margin-top: 6px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: .95; }
.hero-card > span { margin-top: 12px; color: rgba(255,255,255,.84); font-weight: 600; }
.hero-card__stamp {
  position: absolute;
  top: 30px;
  right: 30px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 18px;
  font-size: 1.5rem;
  font-weight: 900;
}

.auth-shell { padding: 28px 0 90px; }
.auth-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.auth-card__intro { padding: clamp(30px, 5vw, 64px); background: linear-gradient(145deg, rgba(23,98,218,.22), rgba(244,55,214,.12)); }
.auth-card__intro h2 { font-size: clamp(2rem, 4vw, 3.45rem); letter-spacing: -.045em; }
.auth-card__intro > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); line-height: 1.7; }
.auth-panel { padding: clamp(28px, 5vw, 58px); }

.google-auth-block { display: grid; gap: 10px; margin-bottom: 20px; }
.google-auth-button {
  width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid rgba(255,255,255,.24); border-radius: 14px; padding: 13px 18px;
  color: #241f2f; background: #fff; font: inherit; font-weight: 800; cursor: pointer;
  box-shadow: 0 14px 32px rgba(0,0,0,.22); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.google-auth-button:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(0,0,0,.28); filter: brightness(1.02); }
.google-auth-button:disabled { opacity: .62; cursor: wait; transform: none; }
.google-auth-button svg { width: 22px; height: 22px; flex: 0 0 22px; }
.google-auth-help { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { white-space: nowrap; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; margin-bottom: 26px; border-radius: 14px; background: rgba(10,2,45,.55); }
.auth-tab { border: 0; border-radius: 10px; padding: 12px; color: var(--muted); background: transparent; font-weight: 700; }
.auth-tab.is-active { color: var(--white); background: linear-gradient(135deg, var(--pink), var(--blue)); }
.auth-form { display: grid; gap: 17px; }
.auth-inline-copy { display: grid; gap: 6px; padding: 14px 15px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.035); }
.auth-inline-copy strong { color: var(--white); }
.auth-inline-copy span { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.assigned-ticket { display: grid; gap: 8px; padding: 18px; border: 1px dashed rgba(148,211,249,.58); border-radius: 16px; background: linear-gradient(135deg, rgba(244,55,214,.08), rgba(23,98,218,.12)); text-align: center; }
.assigned-ticket span { color: var(--muted); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.assigned-ticket strong { color: var(--ice); font-size: clamp(1.55rem, 4vw, 2.25rem); letter-spacing: .08em; overflow-wrap: anywhere; }
.assigned-ticket small { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.auth-link-button { width: 100%; border: 0; padding: 5px 0; color: var(--ice); background: transparent; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.auth-link-button:hover { color: var(--white); }
.auth-link-button:disabled { opacity: .55; cursor: wait; }
label { display: grid; gap: 8px; color: var(--ice); font-size: .86rem; font-weight: 700; }
input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: 0;
  padding: 14px 15px;
  background: rgba(10, 2, 45, .54);
  color: var(--white);
  transition: border .2s, box-shadow .2s;
}
input:focus, textarea:focus { border-color: var(--ice); box-shadow: 0 0 0 4px rgba(148,211,249,.1); }
textarea { min-height: 94px; resize: vertical; }
.checkbox-label { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; color: var(--muted); font-weight: 400; line-height: 1.45; }
.checkbox-label input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pink); }

.primary-button, .ghost-button, .outline-button, .demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 13px;
  padding: 13px 18px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .18s, filter .18s, border .18s;
}
.primary-button { border: 0; color: var(--white); background: linear-gradient(135deg, var(--pink), var(--blue)); box-shadow: 0 14px 32px rgba(23,98,218,.22); }
.primary-button:hover, .demo-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.primary-button:disabled { cursor: wait; opacity: .58; transform: none; }
.ghost-button { border: 1px solid var(--border); color: var(--ice); background: rgba(255,255,255,.035); }
.ghost-button:hover, .outline-button:hover { border-color: var(--ice); }
.outline-button { border: 1px solid var(--border); color: var(--ice); background: transparent; }
.demo-button { width: 100%; margin-top: 12px; border: 1px dashed rgba(244,55,214,.6); color: var(--white); background: rgba(244,55,214,.1); }
.form-message { min-height: 20px; margin-top: 12px; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.form-message.is-error { color: var(--danger); }
.form-message.is-success { color: var(--success); }
.demo-notice { display: grid; gap: 6px; margin-top: 28px; padding: 15px; border: 1px dashed rgba(255,209,102,.5); border-radius: 14px; background: rgba(255,209,102,.08); color: var(--warning); }
.demo-notice span { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.demo-notice code { color: var(--white); }

.album-app { padding-bottom: 100px; }
.album-session-bar { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 0 0 18px; }
.album-session-bar .outline-button { min-width: 132px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 20px; }
.progress-card, .rules-card, .leaderboard-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 20px 55px rgba(0,0,0,.22);
  backdrop-filter: blur(16px);
}
.progress-card { padding: clamp(24px, 4vw, 42px); }
.progress-card__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.progress-card h2, .section-heading h2 { font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.04em; }
.progress-ring {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: conic-gradient(var(--pink) var(--progress), rgba(255,255,255,.09) 0);
  position: relative;
}
.progress-ring::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--panel-solid); }
.progress-ring span { position: relative; z-index: 1; font-size: 1.22rem; font-weight: 900; }
.progress-track { overflow: hidden; height: 12px; margin-top: 30px; border-radius: 999px; background: rgba(255,255,255,.08); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--blue), var(--ice)); transition: width .5s ease; }
.progress-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.progress-stats div { display: grid; gap: 4px; padding: 16px; border-radius: 15px; background: var(--panel-soft); }
.progress-stats strong { font-size: 1.45rem; }
.progress-stats span { color: var(--muted); font-size: .78rem; }
.progress-note { margin-top: 20px; color: var(--muted); font-size: .85rem; line-height: 1.55; }
.rules-card { padding: 30px; }
.rules-card ol { display: grid; gap: 15px; margin-top: 20px; list-style: none; }
.rules-card li { display: flex; align-items: center; gap: 12px; color: var(--muted); line-height: 1.4; }
.rules-card li span { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px; color: var(--white); background: linear-gradient(135deg, var(--pink), var(--blue)); font-weight: 900; }
.rules-card > p:last-child { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--ice); font-size: .82rem; line-height: 1.5; }

.album-content, .leaderboard-section { margin-top: 76px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.album-pages { display: grid; gap: 28px; }
.album-page {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(43,11,89,.76), rgba(10,2,45,.82));
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}
.album-page__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px clamp(20px, 4vw, 38px); border-bottom: 1px solid var(--border); }
.album-page__header h3 { font-size: clamp(1.35rem, 2.4vw, 2.1rem); }
.album-page__header p { margin-top: 7px; color: var(--muted); line-height: 1.5; }
.page-progress { display: grid; place-items: center; min-width: 72px; height: 42px; padding: 0 12px; border-radius: 13px; color: var(--ice); background: rgba(148,211,249,.1); font-weight: 900; }
.stamp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: clamp(18px, 3vw, 30px); }
.stamp-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px dashed rgba(148,211,249,.34);
  border-radius: 20px;
  padding: 18px;
  text-align: left;
  color: var(--white);
  background:
    linear-gradient(180deg, transparent 30%, rgba(10,2,45,.96) 100%),
    radial-gradient(circle at 50% 20%, rgba(244,55,214,.18), transparent 40%),
    rgba(255,255,255,.035);
  transition: transform .2s, border .2s, box-shadow .2s;
}
.stamp-card:hover { transform: translateY(-4px); border-color: var(--ice); box-shadow: 0 18px 38px rgba(0,0,0,.28); }
.stamp-card.has-photo { border-style: solid; border-color: rgba(85,230,177,.65); background-color: rgba(85,230,177,.08); }
.stamp-card.is-rejected { border-color: rgba(255,107,138,.7); }
.stamp-card.is-locked { cursor: not-allowed; opacity: .5; }
.stamp-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stamp-card__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,2,45,.08), rgba(10,2,45,.9)); }
.stamp-card__number { position: absolute; top: 14px; left: 14px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 13px; background: rgba(10,2,45,.7); font-weight: 900; backdrop-filter: blur(10px); }
.stamp-card__status { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 7px 10px; border-radius: 999px; color: var(--muted); background: rgba(10,2,45,.72); font-size: .7rem; font-weight: 800; backdrop-filter: blur(10px); }
.stamp-card.has-photo .stamp-card__status { color: var(--success); }
.stamp-card.is-rejected .stamp-card__status { color: var(--danger); }
.stamp-card__content { position: relative; z-index: 2; }
.stamp-card__icon { display: block; margin-bottom: 12px; font-size: 2.1rem; }
.stamp-card h4 { font-size: 1.05rem; line-height: 1.25; }
.stamp-card p { margin-top: 7px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.stamp-card__caption { display: block; margin-top: 8px; color: var(--ice); font-size: .74rem; font-style: italic; }

.leaderboard-card { overflow: hidden; }
.leaderboard-head, .leaderboard-row { display: grid; grid-template-columns: 110px 1.5fr 1fr 140px; align-items: center; gap: 18px; padding: 17px 24px; }
.leaderboard-head { color: var(--ice); background: rgba(148,211,249,.07); font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.leaderboard-row { border-top: 1px solid var(--border); color: var(--muted); }
.leaderboard-row:first-child { border-top: 0; }
.rank-badge { display: inline-grid; place-items: center; width: 44px; height: 34px; border-radius: 11px; color: var(--white); background: rgba(255,255,255,.07); font-weight: 900; }
.leaderboard-row:nth-child(1) .rank-badge { color: #3c2900; background: #ffd166; }
.leaderboard-row:nth-child(2) .rank-badge { color: #253040; background: #c7d2e0; }
.leaderboard-row:nth-child(3) .rank-badge { color: #44220c; background: #d99964; }
.status-pill { display: inline-flex; width: max-content; padding: 6px 9px; border-radius: 999px; color: var(--warning); background: rgba(255,209,102,.1); font-size: .7rem; font-weight: 800; }
.status-pill.is-validated, .status-pill.is-redeemed { color: var(--success); background: rgba(85,230,177,.1); }
.empty-state { padding: 34px; color: var(--muted); text-align: center; line-height: 1.6; }
.live-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(85,230,177,.12); }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(4,0,22,.82); backdrop-filter: blur(12px); }
.modal-card { position: relative; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: clamp(24px, 5vw, 42px); border: 1px solid var(--border); border-radius: 25px; background: linear-gradient(155deg, #2b0b59, #11043d); box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 15px; right: 15px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 12px; color: var(--white); background: rgba(255,255,255,.06); font-size: 1.4rem; }
.modal-heading { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding-right: 38px; margin-bottom: 24px; }
.modal-heading h2 { font-size: clamp(1.5rem, 4vw, 2.3rem); }
.modal-heading p:last-child { margin-top: 7px; color: var(--muted); line-height: 1.5; }
.stamp-number { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; background: linear-gradient(135deg, var(--pink), var(--blue)); font-size: 1.2rem; font-weight: 900; }
.photo-picker { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 290px; border: 2px dashed rgba(148,211,249,.38); border-radius: 18px; background: rgba(10,2,45,.45); }
.photo-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-picker img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #080222; }
.photo-picker__content { display: grid; place-items: center; gap: 8px; padding: 30px; text-align: center; }
.photo-picker__content b { font-size: 3rem; }
.photo-picker__content small { color: var(--muted); font-weight: 400; }
.upload-meta { display: flex; justify-content: space-between; gap: 10px; margin: 9px 2px 18px; color: var(--muted); font-size: .72rem; }
#uploadForm { display: grid; gap: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.completion-card { text-align: center; }
.completion-burst { display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 25px; background: linear-gradient(135deg, var(--pink), var(--blue)); box-shadow: 0 0 50px rgba(244,55,214,.4); font-size: 2.5rem; }
.completion-card h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
.completion-card > p:not(.eyebrow,.completion-position) { margin: 16px auto 0; max-width: 460px; color: var(--muted); line-height: 1.65; }
.completion-code { display: grid; gap: 8px; margin: 26px 0 16px; padding: 22px; border: 1px dashed rgba(148,211,249,.5); border-radius: 18px; background: rgba(148,211,249,.06); }
.completion-code span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.completion-code strong { color: var(--ice); font-size: clamp(1.5rem, 5vw, 2.5rem); letter-spacing: .08em; }
.completion-position { margin-bottom: 24px; color: var(--white); }

.toast-container { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(360px, calc(100% - 40px)); }
.toast { padding: 14px 16px; border: 1px solid var(--border); border-radius: 13px; color: var(--white); background: #2b0b59; box-shadow: 0 15px 35px rgba(0,0,0,.35); animation: toastIn .25s ease; }
.toast.is-error { border-color: rgba(255,107,138,.55); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

.album-footer { display: flex; justify-content: space-between; gap: 20px; width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 46px; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }
.album-footer a { color: var(--ice); text-decoration: none; }

@media (max-width: 1080px) {
  .album-hero { grid-template-columns: 1fr .65fr; min-height: 560px; }
  .stamp-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .rules-card ol { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  main { width: min(100% - 24px, 1320px); }
  .album-header { padding: 12px 16px; }
  .album-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 62px; }
  .hero-card { width: min(320px, 88%); margin-top: 10px; transform: rotate(1.5deg); }
  .auth-card { grid-template-columns: 1fr; }
  .stamp-grid { grid-template-columns: repeat(2, 1fr); }
  .leaderboard-head { display: none; }
  .leaderboard-row { grid-template-columns: 64px 1fr; gap: 8px 14px; }
  .leaderboard-row > span:nth-child(3), .leaderboard-row > span:nth-child(4) { grid-column: 2; }
  .progress-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .brand span:last-child { font-size: .87rem; }
  .header-actions .ghost-button:first-child { display: none; }
  .album-hero h1 { font-size: 2.7rem; }
  .hero-card { width: min(280px, 94%); }
  .auth-card__intro, .auth-panel { padding: 26px 20px; }
  .progress-card__top { align-items: flex-start; }
  .progress-ring { width: 78px; height: 78px; }
  .progress-stats { grid-template-columns: 1fr; }
  .rules-card ol { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; }
  .stamp-grid { grid-template-columns: 1fr; padding: 14px; }
  .stamp-card { min-height: 320px; }
  .album-page__header { align-items: flex-start; }
  .page-progress { min-width: 60px; }
  .modal { padding: 10px; }
  .modal-card { max-height: calc(100vh - 20px); padding: 24px 18px; }
  .modal-heading { grid-template-columns: 1fr; }
  .stamp-number { width: 48px; height: 48px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions button { width: 100%; }
  .album-footer { flex-direction: column; }
}


/* ===== Álbum Coleccionable 2026: tratamiento visual ===== */
.collection-strip {
  display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: 12px;
  margin: 0 0 18px; padding: 12px 18px; border: 1px solid rgba(148,211,249,.2);
  border-radius: 16px; background: linear-gradient(90deg, rgba(244,55,214,.10), rgba(23,98,218,.08), rgba(148,211,249,.08));
  color: var(--ice); font-size: .72rem; font-weight: 900; letter-spacing: .12em;
}
.collection-strip strong { text-align: center; color: var(--white); letter-spacing: .18em; }
.album-page { position: relative; padding-left: 42px; border-radius: 30px; background: linear-gradient(145deg, rgba(43,11,89,.88), rgba(10,2,45,.92)); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.album-page::after { content:''; position:absolute; inset:8px; pointer-events:none; border:1px dashed rgba(255,255,255,.08); border-radius:22px; }
.album-page__spine { position:absolute; inset:0 auto 0 0; z-index:3; width:42px; display:flex; flex-direction:column; justify-content:space-between; align-items:center; padding:21px 0; border-right:1px solid rgba(148,211,249,.22); background:linear-gradient(180deg, rgba(244,55,214,.24), rgba(23,98,218,.20)); color:var(--white); }
.album-page__spine span { writing-mode:vertical-rl; transform:rotate(180deg); font-size:1.05rem; font-weight:900; letter-spacing:.18em; }
.album-page__spine b { writing-mode:vertical-rl; transform:rotate(180deg); color:var(--ice); font-size:.62rem; letter-spacing:.15em; }
.album-page__header { position:relative; z-index:2; background:linear-gradient(90deg, rgba(255,255,255,.035), transparent); }
.album-page__header > div { flex:1; }
.chapter-progress { overflow:hidden; width:min(520px,100%); height:7px; margin-top:15px; border-radius:999px; background:rgba(255,255,255,.07); }
.chapter-progress span { display:block; width:var(--chapter-progress); height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--pink),var(--blue),var(--ice)); box-shadow:0 0 18px rgba(244,55,214,.28); transition:width .35s ease; }
.page-progress { min-width:76px; height:58px; display:flex; flex-direction:column; gap:1px; background:linear-gradient(145deg, rgba(148,211,249,.14), rgba(244,55,214,.09)); border:1px solid rgba(148,211,249,.18); }
.page-progress b { color:var(--white); font-size:1.12rem; line-height:1; }
.page-progress small { color:var(--muted); font-size:.63rem; font-weight:700; }
.stamp-grid { position:relative; z-index:2; gap:18px; }
.stamp-card { min-height:300px; border:1px dashed rgba(148,211,249,.42); border-radius:22px 22px 26px 22px; box-shadow:inset 0 0 0 6px rgba(255,255,255,.018); transform-origin:center; }
.stamp-card::before { content:''; position:absolute; inset:8px; z-index:1; pointer-events:none; border:1px dashed rgba(255,255,255,.12); border-radius:15px; }
.stamp-card::after { content:'COLECCIÓN 2026'; position:absolute; z-index:2; left:18px; bottom:14px; color:rgba(148,211,249,.34); font-size:.56rem; font-weight:900; letter-spacing:.14em; }
.stamp-card:nth-child(4n+2) { transform:rotate(.45deg); }
.stamp-card:nth-child(4n+3) { transform:rotate(-.4deg); }
.stamp-card:hover { transform:translateY(-7px) rotate(0deg) scale(1.015); box-shadow:0 24px 55px rgba(0,0,0,.36), 0 0 0 1px rgba(148,211,249,.16); }
.stamp-card.has-photo { box-shadow:0 22px 55px rgba(0,0,0,.32), 0 0 28px rgba(85,230,177,.08); }
.stamp-card__number { width:46px; height:46px; border-radius:50% 50% 50% 12px; background:rgba(10,2,45,.78); box-shadow:0 8px 22px rgba(0,0,0,.22); }
.stamp-card__status { border:1px solid rgba(255,255,255,.08); }
.stamp-card__content { padding-bottom:17px; }
.stamp-card__icon { width:58px; height:58px; display:grid; place-items:center; margin-bottom:14px; border:1px solid rgba(148,211,249,.18); border-radius:18px; background:linear-gradient(145deg,rgba(244,55,214,.14),rgba(23,98,218,.16)); font-size:2rem; box-shadow:0 12px 24px rgba(0,0,0,.15); }
.stamp-card h4 { font-size:1.13rem; }
.stamp-card p { max-width:94%; font-size:.8rem; }
@media (max-width: 800px) {
  .collection-strip { grid-template-columns:1fr auto 1fr; }
  .collection-strip span:nth-child(2), .collection-strip span:nth-child(4) { display:none; }
  .album-page { padding-left:28px; }
  .album-page__spine { width:28px; }
}
@media (max-width: 560px) {
  .collection-strip { padding:10px 12px; font-size:.62rem; }
  .collection-strip strong { letter-spacing:.09em; }
  .album-page { padding-left:0; padding-top:30px; }
  .album-page__spine { inset:0 0 auto 0; width:auto; height:30px; flex-direction:row; padding:0 14px; border-right:0; border-bottom:1px solid rgba(148,211,249,.22); }
  .album-page__spine span, .album-page__spine b { writing-mode:horizontal-tb; transform:none; }
  .stamp-card { min-height:330px; }
}

.photo-source-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.photo-source-actions button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; }
.photo-source-actions ion-icon { flex-shrink: 0; font-size: 1.35rem; }
.photo-source-actions button:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
@media (max-width: 560px) { .photo-source-actions { grid-template-columns: 1fr; } }
.album-download { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.album-download .primary-button { width: auto; max-width: 100%; }
.album-download span { color: var(--ice); font-size: .83rem; }
@media (max-width: 560px) { .album-download .primary-button { width: 100%; } }
