:root {
  --green-950: #072d27;
  --green-900: #0b3c33;
  --green-800: #115044;
  --green-700: #176557;
  --green-100: #dfeae3;
  --blue-800: #184f65;
  --cream-50: #fbf8ef;
  --cream-100: #f4eddd;
  --cream-200: #e8dcc5;
  --paper: #f9f3e6;
  --gold-600: #a77b2d;
  --gold-500: #c59a48;
  --gold-300: #dec386;
  --ink: #18312d;
  --muted: #68756f;
  --white: #fffdf8;
  --shadow: 0 28px 80px rgba(16, 42, 37, 0.18);
  --sans: "Manrope", sans-serif;
  --serif: "Playfair Display", serif;
  --arabic: "IBM Plex Sans Arabic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 10%, rgba(197, 154, 72, 0.11), transparent 22rem),
    radial-gradient(circle at 85% 26%, rgba(24, 79, 101, 0.08), transparent 28rem),
    #f8f4e9;
  font-family: var(--sans);
  overflow-x: hidden;
}

body.panel-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  z-index: -1;
  border: 1px solid rgba(197, 154, 72, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: inherit;
  border-radius: inherit;
}

.ambient::after {
  inset: 28%;
}

.ambient-one {
  width: 420px;
  height: 420px;
  top: 80px;
  right: -260px;
}

.ambient-two {
  width: 320px;
  height: 320px;
  top: 560px;
  left: -210px;
}

.site-header {
  width: min(1440px, calc(100% - 80px));
  min-height: 92px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid rgba(24, 49, 45, 0.12);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--gold-500);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--arabic);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  position: relative;
  padding: 35px 0 31px;
  color: #53635e;
  font-size: 13px;
  font-weight: 700;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform 220ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green-900);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  color: var(--green-900);
  background: transparent;
  border: 1px solid rgba(11, 60, 51, 0.26);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: 200ms ease;
}

.header-cta svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.header-cta:hover {
  color: var(--white);
  background: var(--green-900);
  border-color: var(--green-900);
}

.hero {
  position: relative;
  width: min(1370px, calc(100% - 80px));
  min-height: 760px;
  margin: 0 auto;
  padding: 80px 0 92px;
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(560px, 1.18fr);
  align-items: center;
  gap: 70px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 42.5%;
  width: 1px;
  background: linear-gradient(transparent, rgba(24, 49, 45, 0.1), transparent);
}

.eyebrow {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  color: var(--green-950);
  font-family: var(--serif);
  font-size: clamp(54px, 5.3vw, 82px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 em {
  color: var(--gold-600);
  font-weight: 600;
}

.hero-description {
  max-width: 525px;
  margin: 30px 0 34px;
  color: #60706b;
  font-size: 15px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0;
}

.hero-meta > div {
  min-width: 112px;
  padding: 0 30px;
  border-right: 1px solid rgba(24, 49, 45, 0.14);
}

.hero-meta > div:first-child {
  padding-left: 0;
}

.hero-meta > div:last-child {
  border-right: 0;
}

.hero-meta strong,
.hero-meta span {
  display: block;
}

.hero-meta strong {
  color: var(--green-900);
  font-family: var(--serif);
  font-size: 27px;
}

.hero-meta span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.album-showcase {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  perspective: 1800px;
}

.book-shadow {
  position: absolute;
  z-index: 0;
  bottom: 63px;
  left: 50%;
  width: 510px;
  height: 90px;
  border-radius: 50%;
  background: rgba(18, 45, 39, 0.2);
  filter: blur(26px);
  transform: translateX(-50%);
  transition: opacity 500ms ease;
}

.closed-album {
  position: relative;
  z-index: 2;
  width: 390px;
  height: 525px;
  transform: rotate(-2.4deg);
  transform-style: preserve-3d;
  transition: transform 500ms ease;
}

.closed-album:hover {
  transform: rotate(-1deg) translateY(-6px);
}

.album-pages-edge {
  position: absolute;
  z-index: -1;
  top: 9px;
  right: -9px;
  bottom: -8px;
  left: 11px;
  border: 1px solid #d3c6ab;
  border-radius: 3px 8px 8px 3px;
  background:
    repeating-linear-gradient(to bottom, #e8deca 0, #e8deca 2px, #f8f1e2 2px, #f8f1e2 5px);
  box-shadow: 14px 18px 34px rgba(18, 45, 39, 0.16);
}

.album-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--cream-100);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(155deg, #0f5749, #07372f 64%, #062b25);
  border: 2px solid #bd9348;
  border-radius: 3px 8px 8px 3px;
  box-shadow:
    inset 0 0 0 7px #0c4238,
    inset 0 0 0 8px rgba(220, 190, 125, 0.65),
    inset 0 0 55px rgba(0, 0, 0, 0.32),
    -6px 7px 18px rgba(12, 39, 34, 0.2),
    20px 30px 55px rgba(12, 39, 34, 0.22);
  transform-origin: right center;
  transform-style: preserve-3d;
}

.album-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.album-cover::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  width: 6px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(255, 255, 255, 0.11), transparent);
}

.cover-pattern {
  position: absolute;
  inset: 16px;
  opacity: 0.17;
  background-image:
    linear-gradient(45deg, transparent 47%, #d7b66d 47%, #d7b66d 53%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, #d7b66d 47%, #d7b66d 53%, transparent 53%);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 35%, transparent 70%, #000);
}

.cover-corner {
  position: absolute;
  width: 58px;
  height: 58px;
  border-color: var(--gold-300);
  opacity: 0.85;
}

.corner-tl {
  top: 21px;
  left: 28px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.corner-tr {
  top: 21px;
  right: 21px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.corner-bl {
  bottom: 21px;
  left: 28px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.corner-br {
  right: 21px;
  bottom: 21px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.cover-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 40px 40px 83px 48px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.cover-edition {
  margin: 0;
  color: var(--gold-300);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cover-emblem {
  width: 107px;
  height: 107px;
  margin: 22px auto 18px;
  color: var(--gold-300);
}

.cover-emblem svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
}

.cover-kicker {
  margin: 0 0 5px;
  color: #d8c18e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.cover-content h2 {
  margin: 0;
  color: #f8f0dc;
  font-family: var(--serif);
  font-size: 43px;
  line-height: 0.94;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
}

.cover-content h2 span {
  color: var(--gold-300);
  font-style: italic;
}

.cover-arabic {
  margin: 17px 0 13px;
  color: #e5d4aa;
  font-family: var(--arabic);
  font-size: 17px;
  font-weight: 500;
}

.cover-rule {
  width: 152px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cover-rule span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold-300));
}

.cover-rule span:last-child {
  background: linear-gradient(90deg, var(--gold-300), transparent);
}

.cover-rule i {
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold-300);
  transform: rotate(45deg);
}

.cover-caption {
  max-width: 220px;
  margin: 13px 0 0;
  color: rgba(244, 237, 221, 0.72);
  font-family: var(--serif);
  font-size: 10px;
  font-style: italic;
  line-height: 1.5;
}

.open-album-button {
  position: absolute;
  z-index: 4;
  right: 58px;
  bottom: 30px;
  left: 64px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--green-950);
  background: linear-gradient(#dcbf7f, #bf9448);
  border: 0;
  border-radius: 2px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 200ms ease;
}

.open-album-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.open-album-button:hover {
  background: #eed49b;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.open-hint {
  position: absolute;
  bottom: 6px;
  left: 50%;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #84908c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.mouse-icon {
  width: 15px;
  height: 21px;
  padding-top: 4px;
  display: flex;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 9px;
}

.mouse-icon i {
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  animation: scrollHint 1.8s ease infinite;
}

.loose-sticker {
  position: absolute;
  z-index: 1;
  width: 78px;
  height: 102px;
  padding: 7px;
  color: var(--gold-600);
  background: #f8f1df;
  border: 1px solid rgba(167, 123, 45, 0.5);
  box-shadow: 0 13px 28px rgba(27, 51, 45, 0.14);
}

.loose-sticker::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid currentColor;
  opacity: 0.45;
}

.loose-sticker span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
}

.loose-sticker svg {
  position: relative;
  z-index: 1;
  width: 44px;
  margin: 15px auto 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.loose-one {
  top: 72px;
  right: 18px;
  transform: rotate(11deg);
}

.loose-two {
  bottom: 70px;
  left: 25px;
  color: var(--blue-800);
  transform: rotate(-13deg);
}

.album-showcase.is-opening .closed-album {
  animation: bookLift 950ms cubic-bezier(0.32, 0.72, 0.22, 1) forwards;
}

.album-showcase.is-opening .album-cover {
  animation: coverOpen 950ms cubic-bezier(0.36, 0.05, 0.18, 1) forwards;
}

.album-showcase.is-opening .book-shadow,
.album-showcase.is-opening .loose-sticker,
.album-showcase.is-opening .open-hint {
  opacity: 0;
  transition: opacity 350ms ease;
}

.collection-section {
  position: relative;
  padding: 90px max(40px, calc((100vw - 1400px) / 2)) 110px;
  background:
    linear-gradient(rgba(7, 45, 39, 0.975), rgba(7, 45, 39, 0.985)),
    radial-gradient(circle at 70% 30%, #23695a, transparent 40%);
  color: var(--cream-100);
}

.collection-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23fff' stroke-width='.7'%3E%3Cpath d='M35 2 68 35 35 68 2 35 35 2Z'/%3E%3Cpath d='M35 12 58 35 35 58 12 35 35 12Z'/%3E%3Ccircle cx='35' cy='35' r='8'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.section-heading,
.collection-controls,
.open-book-wrap,
.collection-progress {
  position: relative;
  z-index: 1;
  width: min(1260px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.section-heading .eyebrow {
  color: var(--gold-300);
}

.section-heading h2,
.info-intro h2 {
  margin: 0;
  color: var(--cream-50);
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 57px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.section-heading > p {
  max-width: 390px;
  margin: 0 0 4px;
  color: rgba(244, 237, 221, 0.65);
  font-size: 13px;
  line-height: 1.75;
}

.collection-controls {
  margin-top: 38px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 195px 180px auto;
  gap: 10px;
}

.search-control,
.select-control {
  min-height: 52px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  transition: 180ms ease;
}

.search-control:focus-within,
.select-control:focus-within {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(222, 195, 134, 0.7);
}

.search-control {
  padding: 0 14px;
}

.search-control > svg {
  width: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold-300);
  stroke-width: 1.5;
}

.search-control input {
  width: 100%;
  height: 50px;
  padding: 0 12px;
  color: var(--cream-50);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.search-control input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.search-control kbd {
  padding: 3px 6px;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 8px;
  white-space: nowrap;
}

.select-control {
  position: relative;
  padding-left: 14px;
}

.select-control > span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.select-control select {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 15px 34px 0 14px;
  color: var(--cream-50);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 11px;
  font-weight: 700;
  appearance: none;
  cursor: pointer;
}

.select-control select option {
  color: var(--ink);
}

.select-control svg {
  position: absolute;
  right: 12px;
  width: 15px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.62);
  stroke-width: 1.8;
  pointer-events: none;
}

.pack-button {
  min-height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--green-950);
  background: linear-gradient(135deg, #e1c98e, #c49848);
  border: 0;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.17);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 180ms ease;
}

.pack-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.pack-button:hover {
  background: #edd9a8;
  transform: translateY(-2px);
}

.pack-button.is-opening svg {
  animation: packShake 550ms ease;
}

.open-book-wrap {
  margin-top: 34px;
  perspective: 1800px;
}

.open-book {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--ink);
  filter: drop-shadow(0 32px 34px rgba(0, 0, 0, 0.28));
  transform-origin: center top;
}

.open-book.revealed {
  animation: openBookReveal 900ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

.book-page {
  position: relative;
  min-width: 0;
  padding: 38px 34px 28px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16), transparent 20%),
    var(--paper);
}

.book-page::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}

.page-left {
  border-radius: 10px 2px 2px 10px;
  box-shadow:
    inset -18px 0 26px rgba(73, 54, 25, 0.09),
    inset 1px 0 0 #d8ccb7;
  transform: perspective(1600px) rotateY(1.1deg);
  transform-origin: right;
}

.page-right {
  border-radius: 2px 10px 10px 2px;
  box-shadow:
    inset 18px 0 26px rgba(73, 54, 25, 0.09),
    inset -1px 0 0 #d8ccb7;
  transform: perspective(1600px) rotateY(-1.1deg);
  transform-origin: left;
}

.book-spine {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 25px;
  background: linear-gradient(
    90deg,
    rgba(48, 37, 17, 0.14),
    rgba(255, 255, 255, 0.18) 43%,
    rgba(48, 37, 17, 0.13)
  );
  transform: translateX(-50%);
  pointer-events: none;
}

.book-spine span {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 50%;
  width: 1px;
  background: rgba(107, 84, 44, 0.18);
}

.page-texture {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(167, 123, 45, 0.22);
  pointer-events: none;
}

.page-header {
  position: relative;
  z-index: 1;
  min-height: 75px;
  margin-bottom: 22px;
  padding-bottom: 17px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  border-bottom: 1px solid rgba(24, 49, 45, 0.16);
}

.page-number {
  color: var(--gold-600);
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
}

.page-header > div {
  text-align: center;
}

.page-header h3 {
  margin: 0;
  color: var(--green-900);
  font-family: var(--arabic);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
}

.page-header p {
  margin: 1px 0 0;
  color: var(--gold-600);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

.page-ornament {
  position: relative;
  width: 24px;
  height: 24px;
  justify-self: end;
  border: 1px solid rgba(167, 123, 45, 0.65);
  transform: rotate(45deg);
}

.page-ornament::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(167, 123, 45, 0.45);
}

.sticker-grid {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 19px 15px;
}

.sticker-card {
  --rarity: var(--green-700);
  --rarity-soft: #dfe9e0;
  position: relative;
  min-width: 0;
  min-height: 252px;
  padding: 7px;
  display: flex;
  color: var(--ink);
  background: #fffcf4;
  border: 1px solid color-mix(in srgb, var(--rarity) 65%, #d5cdbd);
  border-radius: 5px;
  box-shadow: 0 8px 18px rgba(36, 48, 43, 0.12);
  cursor: pointer;
  transition:
    transform 220ms cubic-bezier(0.2, 0.75, 0.3, 1),
    box-shadow 220ms ease,
    border-color 220ms ease;
  animation: stickerIn 500ms both;
  animation-delay: calc(var(--index) * 50ms);
}

.sticker-card::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid color-mix(in srgb, var(--rarity) 45%, transparent);
  border-radius: 3px;
  pointer-events: none;
}

.sticker-card:hover {
  z-index: 4;
  border-color: var(--rarity);
  box-shadow: 0 17px 28px rgba(23, 48, 42, 0.23);
  transform: translateY(-7px) rotate(-0.7deg);
}

.sticker-card.is-selected {
  z-index: 4;
  border-color: var(--rarity);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--rarity) 22%, transparent),
    0 18px 32px rgba(23, 48, 42, 0.25);
  transform: translateY(-5px) scale(1.02);
}

.sticker-source-badge {
  position: absolute;
  z-index: 3;
  right: 9px;
  bottom: 9px;
  padding: 5px 7px;
  color: #fff8e9;
  background: linear-gradient(135deg, var(--gold-600), #c68f2f);
  border: 1px solid rgba(255, 244, 204, 0.72);
  border-radius: 999px;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 7px 14px rgba(82, 55, 16, 0.22);
  pointer-events: none;
}

.sticker-card[data-rarity="incomum"] {
  --rarity: #29799a;
  --rarity-soft: #dceaf0;
}

.sticker-card[data-rarity="rara"] {
  --rarity: #3c467f;
  --rarity-soft: #e1e2ef;
}

.sticker-card[data-rarity="lendária"] {
  --rarity: #af7921;
  --rarity-soft: #f1e2bd;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.7), transparent 44%),
    #fff9e9;
}

.sticker-card[data-rarity="lendária"] .sticker-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background: linear-gradient(115deg, transparent 25%, #fff 45%, transparent 63%);
  background-size: 250% 100%;
  animation: foilShine 4s ease infinite;
}

.sticker-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sticker-topline {
  height: 22px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticker-code {
  color: var(--rarity);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.rarity-badge {
  padding: 3px 5px;
  color: var(--rarity);
  background: var(--rarity-soft);
  border-radius: 2px;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sticker-visual {
  position: relative;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--rarity);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.72), transparent 48%),
    var(--rarity-soft);
  border-radius: 2px;
}

.sticker-visual::before {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  border: 1px solid currentColor;
  opacity: 0.17;
  transform: rotate(45deg);
}

.sticker-visual svg {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sticker-copy {
  min-width: 0;
  padding: 9px 6px 5px;
  text-align: center;
}

.sticker-copy h4 {
  min-height: 31px;
  margin: 0;
  overflow: hidden;
  color: var(--green-950);
  font-family: var(--arabic);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticker-copy > p {
  min-height: 28px;
  margin: 0;
  color: #4e615b;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.sticker-category {
  margin-top: auto;
  padding: 8px 4px 2px;
  overflow: hidden;
  color: #77827e;
  border-top: 1px solid rgba(24, 49, 45, 0.1);
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.locked-slot {
  position: relative;
  min-height: 252px;
  padding: 11px;
  display: grid;
  place-items: center;
  color: rgba(24, 49, 45, 0.27);
  background: rgba(255, 255, 255, 0.19);
  border: 1px dashed rgba(24, 49, 45, 0.25);
  border-radius: 5px;
}

.locked-slot::before {
  content: attr(data-code);
  position: absolute;
  top: 11px;
  left: 11px;
  font-size: 7px;
  font-weight: 800;
}

.locked-slot > div {
  text-align: center;
}

.locked-slot svg {
  width: 27px;
  margin: 0 auto 9px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.locked-slot strong,
.locked-slot span {
  display: block;
}

.locked-slot strong {
  color: rgba(24, 49, 45, 0.38);
  font-family: var(--serif);
  font-size: 10px;
}

.locked-slot span {
  margin-top: 4px;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-results {
  grid-column: 1 / -1;
  min-height: 360px;
  padding: 40px;
  display: grid;
  place-items: center;
  color: #7a8580;
  border: 1px dashed rgba(24, 49, 45, 0.2);
  text-align: center;
}

.empty-results svg {
  width: 42px;
  margin: 0 auto 15px;
  fill: none;
  stroke: var(--gold-600);
  stroke-width: 1.2;
}

.empty-results strong {
  display: block;
  color: var(--green-900);
  font-family: var(--serif);
  font-size: 17px;
}

.empty-results p {
  margin: 5px 0 0;
  font-size: 10px;
}

.page-footer {
  position: absolute;
  z-index: 2;
  right: 34px;
  bottom: 16px;
  left: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(24, 49, 45, 0.44);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-footer i {
  height: 1px;
  flex: 1;
  background: rgba(24, 49, 45, 0.13);
}

.collection-progress {
  min-height: 105px;
  margin-top: 24px;
  padding: 19px 25px;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto auto;
  align-items: center;
  gap: 40px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
}

.progress-summary {
  display: flex;
  align-items: center;
  gap: 15px;
}

.progress-ring {
  position: relative;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--gold-300) calc(var(--progress) * 1%), rgba(255, 255, 255, 0.1) 0);
}

.progress-ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--green-950);
}

.progress-ring span {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 20px;
}

.progress-ring small {
  color: var(--gold-300);
  font-family: var(--sans);
  font-size: 8px;
}

.progress-summary p,
.progress-summary strong {
  display: block;
  margin: 0;
}

.progress-summary p {
  margin-bottom: 4px;
  color: var(--gold-300);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.progress-summary strong {
  max-width: 210px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
}

.progress-track-wrap {
  min-width: 180px;
}

.progress-label {
  margin-bottom: 10px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.56);
  font-size: 8px;
}

.progress-label strong {
  color: var(--cream-50);
  font-family: var(--serif);
  font-size: 19px;
}

.progress-label small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.progress-track span {
  display: block;
  width: 77%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), #e8d095);
  border-radius: inherit;
}

.stat {
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.stat-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #8fb8aa;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.stat-icon.gold {
  color: var(--gold-300);
}

.stat-icon svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.stat strong,
.stat span {
  display: block;
}

.stat strong {
  font-family: var(--serif);
  font-size: 21px;
}

.stat div span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-section {
  width: min(1260px, calc(100% - 80px));
  margin: 0 auto;
  padding: 105px 0 120px;
  display: grid;
  grid-template-columns: 0.76fr 1.4fr;
  gap: 85px;
}

.info-intro h2 {
  color: var(--green-950);
}

.info-intro > p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.steps article {
  position: relative;
  min-height: 260px;
  padding: 30px 25px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(24, 49, 45, 0.11);
  transition: 200ms ease;
}

.steps article:hover {
  background: var(--white);
  border-color: rgba(167, 123, 45, 0.38);
  box-shadow: 0 16px 32px rgba(28, 53, 47, 0.08);
  transform: translateY(-4px);
}

.steps article > span {
  position: absolute;
  top: 19px;
  right: 20px;
  color: rgba(167, 123, 45, 0.38);
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
}

.step-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 36px;
  display: grid;
  place-items: center;
  color: var(--gold-600);
  background: #f1e8d6;
  border-radius: 50%;
}

.step-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}

.steps h3 {
  margin: 0 0 10px;
  color: var(--green-900);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.16;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.about-section {
  position: relative;
  padding: 75px max(40px, calc((100vw - 1260px) / 2));
  display: grid;
  grid-template-columns: 170px 1fr 0.8fr;
  align-items: center;
  gap: 65px;
  color: var(--cream-100);
  background: var(--blue-800);
  overflow: hidden;
}

.about-section::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -230px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(255, 255, 255, 0.025),
    0 0 0 110px rgba(255, 255, 255, 0.018);
}

.about-mark {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(222, 195, 134, 0.48);
  transform: rotate(45deg);
}

.about-mark::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(222, 195, 134, 0.22);
}

.about-mark span {
  color: var(--gold-300);
  font-family: var(--arabic);
  font-size: 28px;
  transform: rotate(-45deg);
}

.eyebrow.light {
  color: var(--gold-300);
}

.about-section h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(34px, 3vw, 49px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.about-section > div:nth-child(2) > p:last-child {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.8;
}

.about-section blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 28px 0 28px 34px;
  border-left: 1px solid rgba(222, 195, 134, 0.5);
}

.about-section blockquote span {
  color: var(--gold-300);
  font-family: var(--arabic);
  font-size: 31px;
}

.about-section blockquote p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

footer {
  min-height: 130px;
  padding: 30px max(40px, calc((100vw - 1260px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #7a8782;
  background: #f4eddd;
  font-size: 9px;
}

footer > p {
  text-align: center;
}

footer > a:last-child {
  justify-self: end;
  color: var(--green-900);
  font-weight: 800;
}

.detail-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  visibility: hidden;
  background: rgba(5, 26, 23, 0.48);
  opacity: 0;
  backdrop-filter: blur(4px);
  transition:
    opacity 300ms ease,
    visibility 300ms;
}

.detail-backdrop.is-visible {
  visibility: visible;
  opacity: 1;
}

.detail-panel {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100%);
  padding: 72px 47px 45px;
  overflow-y: auto;
  color: var(--ink);
  background:
    linear-gradient(rgba(249, 243, 230, 0.97), rgba(249, 243, 230, 0.98)),
    var(--paper);
  border-left: 1px solid var(--gold-300);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.24);
  transform: translateX(102%);
  transition: transform 430ms cubic-bezier(0.22, 0.8, 0.25, 1);
}

.detail-panel.is-visible {
  transform: translateX(0);
}

.detail-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(167, 123, 45, 0.22);
  pointer-events: none;
}

.close-detail {
  position: absolute;
  z-index: 2;
  top: 25px;
  right: 25px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--green-900);
  background: transparent;
  border: 1px solid rgba(24, 49, 45, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: 180ms ease;
}

.close-detail:hover {
  color: var(--white);
  background: var(--green-900);
}

.close-detail svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-code {
  color: var(--gold-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.detail-rarity {
  padding: 5px 9px;
  color: var(--green-800);
  background: var(--green-100);
  border-radius: 2px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-rarity.incomum {
  color: #216985;
  background: #dceaf0;
}

.detail-rarity.rara {
  color: #3c467f;
  background: #e1e2ef;
}

.detail-rarity.lendária {
  color: #8e6018;
  background: #f1e2bd;
}

.detail-visual {
  position: relative;
  height: 190px;
  margin: 24px 0 27px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--green-700);
  background: #e2ebe3;
  border: 1px solid rgba(23, 101, 87, 0.24);
}

.detail-visual.incomum {
  color: #29799a;
  background: #dceaf0;
}

.detail-visual.rara {
  color: #3c467f;
  background: #e1e2ef;
}

.detail-visual.lendária {
  color: #af7921;
  background: #f1e2bd;
}

.detail-visual::before,
.detail-visual::after {
  content: "";
  position: absolute;
  width: 135px;
  height: 135px;
  border: 1px solid currentColor;
  opacity: 0.16;
  transform: rotate(45deg);
}

.detail-visual::after {
  width: 105px;
  height: 105px;
}

.detail-visual svg {
  position: relative;
  z-index: 1;
  width: 102px;
  height: 102px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-title {
  padding-bottom: 23px;
  border-bottom: 1px solid rgba(24, 49, 45, 0.13);
  text-align: center;
}

.detail-title h2 {
  margin: 0;
  color: var(--green-950);
  font-family: var(--arabic);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.45;
}

.detail-title > p {
  margin: 0;
  color: var(--gold-600);
  font-family: var(--serif);
  font-size: 20px;
}

.transliteration {
  margin-top: 8px !important;
  color: #78837f !important;
  font-family: var(--sans) !important;
  font-size: 10px !important;
  font-style: italic;
}

.detail-list {
  margin: 22px 0 0;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(24, 49, 45, 0.1);
}

.detail-list > div {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 15px;
  border-bottom: 1px solid rgba(24, 49, 45, 0.1);
}

.detail-list > div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  color: #89918e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  color: var(--green-900);
  font-size: 11px;
  font-weight: 700;
}

.detail-explanation {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding: 21px 20px 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 48%),
    #efe4cf;
  border: 1px solid rgba(197, 154, 72, 0.18);
  border-left: 3px solid var(--gold-500);
  box-shadow: 0 10px 22px rgba(57, 45, 26, 0.06);
}

.detail-explanation span {
  color: var(--gold-600);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-explanation p {
  margin: 7px 0 0;
  color: #52635e;
  font-size: 11px;
  line-height: 1.75;
}

.detail-source {
  margin-top: 16px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 48%),
    rgba(255, 248, 232, 0.76);
  border: 1px solid rgba(175, 121, 33, 0.28);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.detail-source span {
  color: var(--gold-600);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-source p {
  margin: 8px 0 13px;
  color: var(--green-900);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.35;
}

.detail-source a {
  width: fit-content;
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream-50);
  background: linear-gradient(135deg, var(--green-800), var(--green-950));
  border: 1px solid rgba(175, 121, 33, 0.45);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(17, 47, 40, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.detail-source a:hover {
  background: linear-gradient(135deg, var(--gold-600), #c9912c);
  box-shadow: 0 14px 26px rgba(175, 121, 33, 0.25);
  transform: translateY(-2px);
}

.detail-source svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 25px;
  bottom: 25px;
  min-width: 325px;
  padding: 16px 44px 16px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--cream-100);
  background: var(--green-900);
  border: 1px solid rgba(222, 195, 134, 0.55);
  border-radius: 4px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(25px);
  pointer-events: none;
  transition: 300ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--gold-300);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.toast-icon svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.toast strong,
.toast p {
  margin: 0;
}

.toast strong {
  font-family: var(--serif);
  font-size: 14px;
}

.toast p {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
}

.toast > button {
  position: absolute;
  top: 9px;
  right: 10px;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: 0;
  cursor: pointer;
}

@keyframes scrollHint {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(4px);
  }
}

@keyframes coverOpen {
  0% {
    opacity: 1;
    transform: rotateY(0);
  }
  72% {
    opacity: 1;
    transform: rotateY(132deg) translateX(10px);
  }
  100% {
    opacity: 0;
    transform: rotateY(166deg) translateX(18px) scale(1.08);
  }
}

@keyframes bookLift {
  0% {
    opacity: 1;
    transform: rotate(-2.4deg) translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: rotate(0) translateY(-18px) scale(1.03);
  }
  100% {
    opacity: 0;
    transform: rotate(0) translateY(-8px) scale(1.34);
  }
}

@keyframes openBookReveal {
  from {
    opacity: 0;
    transform: translateY(38px) rotateX(12deg) scale(0.93);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

@keyframes stickerIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes foilShine {
  0%,
  60%,
  100% {
    background-position: 130% 0;
  }
  78% {
    background-position: -80% 0;
  }
}

@keyframes packShake {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(-10deg) scale(1.08);
  }
  40% {
    transform: rotate(8deg);
  }
  65% {
    transform: rotate(-5deg);
  }
}

@media (max-width: 1180px) {
  .site-header {
    width: min(100% - 44px, 1100px);
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    width: min(100% - 50px, 1050px);
    grid-template-columns: 0.85fr 1fr;
    gap: 35px;
  }

  .closed-album {
    width: 350px;
    height: 472px;
  }

  .cover-content {
    padding-top: 32px;
  }

  .cover-emblem {
    width: 90px;
    height: 90px;
    margin: 18px auto 14px;
  }

  .cover-content h2 {
    font-size: 38px;
  }

  .open-album-button {
    right: 50px;
    left: 56px;
  }

  .collection-controls {
    grid-template-columns: 1fr 180px 170px;
  }

  .pack-button {
    grid-column: 1 / -1;
  }

  .open-book {
    min-height: 680px;
  }

  .book-page {
    padding: 30px 24px 26px;
  }

  .sticker-grid {
    min-height: 500px;
    gap: 15px 11px;
  }

  .sticker-card,
  .locked-slot {
    min-height: 225px;
  }

  .sticker-visual {
    height: 80px;
  }

  .collection-progress {
    grid-template-columns: 1fr 1fr;
  }

  .info-section {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-section {
    grid-template-columns: 125px 1fr;
  }

  .about-mark {
    width: 115px;
    height: 115px;
  }

  .about-section blockquote {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  .site-header {
    width: calc(100% - 30px);
  }

  .header-cta span {
    display: none;
  }

  .header-cta {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .hero {
    width: calc(100% - 36px);
    padding-top: 60px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero::before {
    display: none;
  }

  .hero-copy .eyebrow,
  .hero-meta {
    justify-content: center;
  }

  .hero-description {
    margin-right: auto;
    margin-left: auto;
  }

  .album-showcase {
    min-height: 580px;
  }

  .loose-one {
    right: 5%;
  }

  .loose-two {
    left: 5%;
  }

  .collection-section {
    padding: 75px 18px 80px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }

  .collection-controls {
    grid-template-columns: 1fr 1fr;
  }

  .search-control,
  .pack-button {
    grid-column: 1 / -1;
  }

  .open-book {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    filter: drop-shadow(0 22px 25px rgba(0, 0, 0, 0.24));
  }

  .book-page {
    border-radius: 8px;
    transform: none;
  }

  .book-spine {
    display: none;
  }

  .sticker-grid {
    min-height: auto;
  }

  .page-footer {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 25px;
  }

  .collection-progress {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .info-section {
    width: calc(100% - 36px);
    padding: 80px 0;
  }

  .steps {
    gap: 14px;
  }

  .about-section {
    padding: 65px 25px;
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-mark {
    display: none;
  }

  .about-section blockquote {
    grid-column: 1;
  }
}

@media (max-width: 590px) {
  .site-header {
    min-height: 76px;
  }

  .brand strong {
    font-size: 15px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 47px;
  }

  .hero-meta > div {
    min-width: 92px;
    padding: 0 17px;
  }

  .album-showcase {
    min-height: 500px;
    transform: scale(0.88);
    margin: -20px -30px -30px;
  }

  .closed-album {
    width: 325px;
    height: 438px;
  }

  .loose-sticker {
    display: none;
  }

  .collection-controls {
    grid-template-columns: 1fr;
  }

  .search-control,
  .pack-button {
    grid-column: 1;
  }

  .book-page {
    padding: 27px 18px 22px;
  }

  .page-header {
    grid-template-columns: 30px 1fr 30px;
  }

  .page-header h3 {
    font-size: 20px;
  }

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

  .sticker-card,
  .locked-slot {
    min-height: 230px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps article {
    min-height: auto;
  }

  footer {
    padding: 35px 25px;
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }

  footer .brand,
  footer > a:last-child {
    justify-self: center;
  }

  .detail-panel {
    padding: 67px 28px 35px;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
