/* v12 Sticker Album: the cover (landing), the album pages (intro + between) and the gate. */

/* ---------- the cover: a yellow album with a window onto the live 3D pitch ---------- */
.screen--cover { overflow: hidden; }
.cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px;
  padding: calc(var(--safe-t) + 14px) 16px calc(var(--safe-b) + 18px); overflow: hidden;
  transform-origin: left center; transition: transform .52s cubic-bezier(.55,0,.75,.1), opacity .52s;
}
.cover.is-open { transform: perspective(1500px) rotateY(-96deg); opacity: .6; }
.cover__window {
  position: relative; flex: 1 1 auto; min-height: 210px; border-radius: 28px;
  border: 4px solid var(--ink); box-shadow: 0 0 0 220vmax var(--sun);
}
.cover__window::after { content: ''; position: absolute; inset: 6px; border-radius: 21px; border: 2.5px dashed rgba(255,255,255,.85); pointer-events: none; }
.cover__ph {
  position: absolute; inset: 0; border-radius: 24px; transition: opacity 1s;
  background: radial-gradient(120% 80% at 50% 120%, rgba(0,0,0,.25), transparent 60%), repeating-linear-gradient(90deg, #36ad55 0 40px, #2e9c4b 40px 80px);
}
.cover.is-live .cover__ph { opacity: 0; }
.cover__live {
  position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 13px/1 var(--f-round); letter-spacing: .04em; text-transform: uppercase;
}
.cover__live i { width: 9px; height: 9px; border-radius: 50%; background: #ff4f6d; animation: live 1.2s ease-in-out infinite; }
@keyframes live { 50% { opacity: .25; } }
.cover__pip { position: absolute; left: 6px; bottom: -22px; z-index: 3; display: flex; align-items: flex-end; gap: 12px; }
.cover__pip .pip { --pip: 80px; }
.bubble--cover { font-size: 16px; padding: 9px 13px; margin-bottom: 30px; animation: bub-in .5s .5s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes bub-in { from { opacity: 0; transform: scale(.6) translateY(10px); } to { opacity: 1; transform: none; } }
.cover__body { position: relative; z-index: 2; flex: none; display: grid; gap: 12px; justify-items: center; text-align: center; padding-top: 18px; }
.cover__kicker {
  margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--sun);
  font: 700 13px/1 var(--f-round); letter-spacing: .08em; text-transform: uppercase;
}
.cover__title { margin: 0; font-size: clamp(31px, 8.6vw, 44px); line-height: 1.02; letter-spacing: -.01em; color: var(--ink); max-width: 12ch; }
.cover__title em {
  display: inline-grid; place-items: center; width: 1.2em; height: 1.2em; margin: 0 .04em; border-radius: 50%;
  background: var(--pink); color: #fff; border: 3px solid var(--ink); font-style: normal; transform: rotate(-8deg);
  box-shadow: 0 4px 0 var(--ink); vertical-align: -.08em; font-size: .95em;
}
.cover__sub { margin: 0; max-width: 31ch; font: 600 16px/1.35 var(--f-body); color: var(--ink2); }
.cover__slots { display: flex; align-items: center; gap: 7px; padding: 2px 0 4px; }
.cover__slots .stk { --mw: 36px; animation: pop-in .45s cubic-bezier(.2,1.6,.4,1) both; animation-delay: var(--d); }
.cover__slots .stk--empty { background: rgba(255,255,255,.55); border-color: rgba(26,33,80,.5); }
.cover__pro {
  display: inline-flex; align-items: center; gap: 4px; height: 48px; padding: 0 12px; border-radius: 12px; background: var(--gold);
  border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); font-size: 15px; color: var(--ink); animation: pop-in .45s cubic-bezier(.2,1.6,.4,1) both; animation-delay: var(--d);
}
.cover__pro .ico { width: 15px; height: 15px; }
@keyframes pop-in { from { opacity: 0; transform: scale(.4) rotate(-12deg); } to { opacity: 1; transform: none; } }
.cover__body .btn { max-width: 420px; }
.cover__fail { display: grid; gap: 10px; justify-items: center; font: 700 16px/1.3 var(--f-round); }
.cover__fail p { margin: 0; max-width: 30ch; }
.screen--cover.is-in .cover__body > * { animation: rise .5s cubic-bezier(.2,1.2,.4,1) both; }
.screen--cover.is-in .cover__body > :nth-child(2) { animation-delay: .06s; }
.screen--cover.is-in .cover__body > :nth-child(3) { animation-delay: .12s; }
.screen--cover.is-in .cover__body > :nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
  .cover { flex-direction: row; align-items: center; gap: 56px; padding: 40px 56px; }
  .cover__window { align-self: stretch; max-height: none; flex: 1 1 60%; }
  .cover__body { flex: 0 0 420px; justify-items: start; text-align: left; padding-top: 0; }
  .cover__title { font-size: 54px; }
  .cover__sub { font-size: 18px; }
  .cover__slots { gap: 9px; }
  .cover__slots .stk { --mw: 46px; }
  .cover__pro { height: 62px; padding: 0 16px; font-size: 17px; }
  .cover__pip { bottom: 22px; left: auto; right: -50px; flex-direction: row-reverse; }
  .cover__pip .bubble--cover::before { left: auto; right: -11px; transform: rotate(-135deg); }
  .cover__pip .pip { --pip: 104px; }
}

/* ---------- the album page (before and after each level) ---------- */
.screen--page { display: grid; place-items: center; padding: calc(var(--safe-t) + 22px) 14px calc(var(--safe-b) + 22px); background: var(--lc) radial-gradient(rgba(255,255,255,.14) 2px, transparent 2.6px) 0 0 / 24px 24px; }
.page { width: 100%; max-width: 480px; perspective: 1600px; }
.page__paper {
  position: relative; display: grid; gap: 14px; padding: 22px 16px 22px; border: 3px solid var(--ink); border-radius: 26px;
  background: var(--paper) radial-gradient(rgba(26,33,80,.08) 1.2px, transparent 1.6px) 0 0 / 18px 18px;
  box-shadow: 0 8px 0 var(--ink); transform-origin: left center;
}
.page__paper::before {
  content: ''; position: absolute; top: -13px; left: 34px; right: 34px; height: 24px; pointer-events: none;
  background: radial-gradient(circle at 12px 12px, var(--ink) 0 5.5px, transparent 6.5px) 0 0 / 38px 24px repeat-x;
}
.page__l, .page__r { display: grid; gap: 14px; align-content: start; }
.page__head { display: grid; justify-items: center; gap: 6px; text-align: center; }
.page__tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; background: var(--lc); color: #fff;
  border: 2.5px solid var(--ink); font: 700 14px/1 var(--f-round); letter-spacing: .02em; box-shadow: 0 3px 0 var(--ink);
}
.page__head h2 { margin: 0; font-size: 30px; line-height: 1.05; }
.page__slots { display: flex; justify-content: center; gap: 16px; }
.page__slots .stk { --sw: min(38vw, 158px); }
.slotbox { margin: 0; display: grid; gap: 10px; justify-items: center; position: relative; }
.slotbox > .stk--empty { animation: pop-in .45s cubic-bezier(.2,1.5,.4,1) both; animation-delay: var(--d); }
.slotbox figcaption { font: 700 14px/1 var(--f-round); color: var(--ink2); background: #fff; border: 2px solid rgba(26,33,80,.2); padding: 5px 10px; border-radius: 999px; }
.slotbox__in { position: relative; }
.slotbox__in > .stk.is-peel { position: absolute; inset: 0; }
.slotbox__in > .stk--empty { opacity: .8; }
.cap { display: grid !important; gap: 3px; text-align: center; font-weight: 600 !important; font-size: 13px !important; padding: 6px 10px !important; }
.cap b { color: var(--ink); }
.cap--shiny, .cap--got { border-color: var(--green) !important; }
.say { display: flex; align-items: flex-end; gap: 14px; }
.say .pip { --pip: 62px; }
.say .bubble { flex: 1; }
.rate { display: grid; gap: 8px; }
.rate__q { margin: 0; text-align: center; font: 700 17px/1.2 var(--f-round); }
.rate__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rate__n {
  height: 50px; border-radius: 16px; border: 3px solid var(--ink); background: #fff; box-shadow: 0 4px 0 var(--ink);
  font: 700 20px/1 var(--f-round); cursor: pointer; transition: transform .15s cubic-bezier(.2,1.6,.4,1), background-color .15s;
  animation: fade-up .35s ease-out both; animation-delay: var(--d);
}
@keyframes fade-up { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.rate__n:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.rate__n.is-on { background: var(--sun); transform: scale(1.12) rotate(-6deg); }
.rate__ends { margin: 0; display: flex; justify-content: space-between; font: 600 13px/1 var(--f-body); color: var(--ink2); }
.screen--page.is-in .page__paper { animation: page-in .5s cubic-bezier(.2,1.1,.4,1) both; }
@keyframes page-in { from { opacity: 0; transform: rotateY(28deg) translateX(30px); } to { opacity: 1; transform: none; } }
.page.is-turn .page__paper { animation: page-turn .48s cubic-bezier(.5,0,.8,.3) forwards; }
@keyframes page-turn { to { transform: rotateY(-92deg); opacity: .3; } }
/* after a level */
.prog { display: grid; gap: 8px; justify-items: center; padding: 12px; border-radius: 18px; background: #fff; border: 2.5px solid rgba(26,33,80,.18); }
.prog__k { margin: 0; font: 600 15px/1 var(--f-body); color: var(--ink2); }
.prog__k b { color: var(--ink); font-size: 17px; }
.prog__row { display: flex; align-items: center; gap: 7px; }
.prog__row .stk { --mw: 32px; }
.prog__pro { display: inline-flex; align-items: center; gap: 3px; height: 43px; padding: 0 9px; border-radius: 10px; background: var(--gold); border: 2.5px solid var(--ink); font: 700 13px/1 var(--f-round); }
.prog__pro .ico { width: 13px; height: 13px; }
.next { margin: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; border: 2.5px dashed rgba(26,33,80,.35); font: 600 15px/1.25 var(--f-body); color: var(--ink2); }
.next .ico { width: 22px; height: 22px; color: var(--ink); }
.next b { color: var(--ink); }

@media (max-height: 760px) and (max-width: 899px) {
  .page__slots .stk { --sw: min(33vw, 130px); }
  .page__paper { gap: 11px; padding-top: 18px; }
  .page__head h2 { font-size: 26px; }
}
@media (min-width: 900px) {
  .page { max-width: 1040px; }
  .page__paper { grid-template-columns: 1fr 1fr; gap: 0; padding: 34px 0; }
  .page__paper::after { content: ''; position: absolute; top: 18px; bottom: 18px; left: 50%; width: 3px; background: linear-gradient(rgba(26,33,80,.18), rgba(26,33,80,.06)); }
  .page__paper::before { top: 22px; bottom: 22px; left: calc(50% - 12px); right: auto; width: 24px; height: auto; background: radial-gradient(circle at 12px 12px, var(--ink) 0 5.5px, transparent 6.5px) 0 0 / 24px 40px repeat-y; z-index: 2; }
  .page__l, .page__r { padding: 0 44px; gap: 20px; align-content: center; }
  .page__head h2 { font-size: 40px; }
  .page__slots { gap: 26px; }
  .page__slots .stk { --sw: 190px; }
  .say .pip { --pip: 78px; }
  .bubble { font-size: 19px; }
}

/* ---------- the gate: the closed album, ready to send ---------- */
.screen--gate { padding: calc(var(--safe-t) + 18px) 16px calc(var(--safe-b) + 24px); display: grid; place-items: center; }
.gate { width: 100%; max-width: 460px; display: grid; gap: 22px; justify-items: center; }
.gate__album { position: relative; width: min(300px, 78vw); padding-top: 40px; }
.gate__peeks { position: absolute; top: 0; left: 18px; right: 30px; height: 70px; display: flex; justify-content: center; gap: 4px; }
.gate__peek { transform: translateY(calc(var(--i) * 4px)) rotate(calc(-10deg + var(--i) * 7deg)); filter: blur(1.6px); animation: peek 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .2s); }
.gate__peek .stk { --mw: 46px; }
@keyframes peek { 50% { translate: 0 -6px; } }
.gate__cover {
  position: relative; z-index: 2; height: 190px; border-radius: 12px 22px 22px 12px; background: var(--sun);
  border: 3px solid var(--ink); border-left-width: 16px; box-shadow: 0 8px 0 var(--ink); transform: rotate(-3deg);
  display: grid; align-content: center; gap: 6px; padding: 16px 20px; overflow: hidden;
}
.gate__ribbon { position: absolute; top: 0; bottom: 0; right: 46px; width: 22px; background: var(--pink); border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
.gate__name, .gate__count { position: relative; margin: 0; max-width: 150px; }
.gate__name { font: 700 21px/1.05 var(--f-round); }
.gate__count { font: 600 14px/1.2 var(--f-body); color: var(--ink2); }
.badge--seal { --bw: 98px; --bc: var(--gold); position: absolute; right: 8px; bottom: 6px; z-index: 3; transform: rotate(10deg); animation: seal 2.6s ease-in-out infinite; }
.badge--seal b { font-size: 34px; line-height: 1; color: var(--ink); }
.badge--seal small { font: 700 11px/1 var(--f-round); color: var(--ink); }
@keyframes seal { 0%, 100% { transform: rotate(10deg) scale(1); } 50% { transform: rotate(4deg) scale(1.06); } }
.gate__form {
  width: 100%; display: grid; gap: 8px; padding: 20px 16px; border-radius: 26px; background: var(--paper);
  border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink);
}
.gate__h { margin: 0; text-align: center; font-size: 29px; line-height: 1.05; }
.gate__sub { margin: 0 0 6px; text-align: center; font: 600 15.5px/1.35 var(--f-body); color: var(--ink2); }
.field { display: grid; gap: 6px; }
.field span { font: 700 15px/1 var(--f-round); }
.field input {
  width: 100%; height: 56px; padding: 0 16px; border-radius: 16px; border: 3px solid var(--ink); background: #fff;
  font: 600 18px/1 var(--f-body); color: var(--ink); outline: none; box-shadow: inset 0 3px 0 rgba(26,33,80,.08);
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,107,255,.25); }
.field.is-bad input { border-color: var(--pink); background: #fff1f5; }
.field.is-shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.err { margin: 0; min-height: 0; font: 700 14px/1.3 var(--f-round); color: #d61f5c; }
.err:empty { display: none; }
.gate__form .btn { margin-top: 10px; }
.gate__fine { margin: 6px 0 0; text-align: center; font: 600 13px/1.3 var(--f-body); color: var(--ink2); }
.screen--gate.is-in .gate__album { animation: drop .6s cubic-bezier(.2,1.4,.4,1) both; }
.screen--gate.is-in .gate__form { animation: rise .5s .15s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-60px) rotate(8deg); } to { opacity: 1; transform: none; } }
.gate.is-sent .gate__album { animation: send .6s cubic-bezier(.5,-.4,.7,.4) forwards; }
@keyframes send { to { transform: translateY(-120vh) rotate(-14deg); } }
@media (min-width: 900px) {
  .gate { max-width: 980px; grid-template-columns: 1fr 440px; align-items: center; gap: 60px; }
  .gate__album { width: 380px; justify-self: end; }
  .gate__cover { height: 250px; }
  .gate__name { font-size: 28px; max-width: 200px; }
  .badge--seal { --bw: 126px; }
  .gate__h { font-size: 34px; }
}
