/* kudos.ad: holographic foil stickers on soft lilac paper. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-variable-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-variable-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@property --peel { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --fx { syntax: "<number>"; inherits: true; initial-value: 0.5; }
@property --fy { syntax: "<number>"; inherits: true; initial-value: 0.35; }

:root {
  --paper: #f4f0fb;
  --ink: #1f1a2e;
  --soft: #4f4766;
  --panel: #ebe4f7;
  --line: #cfc5e3;
  --focus: #6a2fc4;
  --shadow: 46 30 84;
  --backing: #fbf9ff;
  --backing-edge: #d8cfea;
  --site: #ffffff;
  --site-bar: #f6f3fb;
  --site-line: #ece6f6;
  --site-well: #f8f6fc;
  --tab-on: #1f1a2e;
  --tab-on-text: #ffffff;
  --glow: transparent;

  /* Sticker paper and ink: the same in both themes. */
  --stk-ink: #1f1a2e;
  --stk-soft: #564e6e;
  --stk-back: #e6e0f1;

  /* Foil: pink, butter, mint, sky, lavender. */
  --foil-1: #ffc4e1;
  --foil-2: #fff0b0;
  --foil-3: #c3f3dd;
  --foil-4: #c2e2ff;
  --foil-5: #dccbff;
  /* The headline's foil words: deep enough to read on the paper. */
  --foil-ink-1: #b4176f;
  --foil-ink-2: #7a33c9;
  --foil-ink-3: #1f63b8;
  --foil-ink-4: #0b6f5c;

  --foil: linear-gradient(115deg, var(--foil-1), var(--foil-2) 16%, var(--foil-3) 32%, var(--foil-4) 48%, var(--foil-5) 64%, var(--foil-1) 80%, var(--foil-2));
  --foil-lines: repeating-linear-gradient(115deg, rgb(255 255 255 / 0) 0 6px, rgb(255 255 255 / 0.32) 7px 8px, rgb(255 255 255 / 0) 9px 15px);
  --foil-pos: calc(var(--fx) * 100%) calc(var(--fy) * 100%);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #13111c;
    --ink: #f1edfb;
    --soft: #bab2d1;
    --panel: #1b1827;
    --line: #3a3450;
    --focus: #d2bdff;
    --shadow: 0 0 0;
    --backing: #272235;
    --backing-edge: #3b3550;
    --site: #1f1b2d;
    --site-bar: #252135;
    --site-line: #322c46;
    --site-well: #191624;
    --tab-on: #f1edfb;
    --tab-on-text: #13111c;
    --glow: rgb(205 180 255 / 0.22);
    --foil-ink-1: #ff9fd0;
    --foil-ink-2: #ffe27a;
    --foil-ink-3: #8eeec4;
    --foil-ink-4: #9ccfff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #13111c;
  --ink: #f1edfb;
  --soft: #bab2d1;
  --panel: #1b1827;
  --line: #3a3450;
  --focus: #d2bdff;
  --shadow: 0 0 0;
  --backing: #272235;
  --backing-edge: #3b3550;
  --site: #1f1b2d;
  --site-bar: #252135;
  --site-line: #322c46;
  --site-well: #191624;
  --tab-on: #f1edfb;
  --tab-on-text: #13111c;
  --glow: rgb(205 180 255 / 0.22);
  --foil-ink-1: #ff9fd0;
  --foil-ink-2: #ffe27a;
  --foil-ink-3: #8eeec4;
  --foil-ink-4: #9ccfff;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgb(var(--shadow) / 0.05) 0.8px, transparent 1.2px);
  background-size: 18px 18px;
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
blockquote {
  margin: 0;
}

main {
  display: block;
  overflow-x: clip;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

/* ---------- top bar ---------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-star {
  width: 26px;
  height: 26px;
  transform: rotate(-10deg);
  filter: drop-shadow(0 1px 1.5px rgb(var(--shadow) / 0.3));
}

/* The theme switch: three tiny stickers on a strip of backing paper; the chosen one is stuck down
   and shining, the others wait, lifted, for a press. */
.theme {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 4px;
  border-radius: 999px;
  background-color: var(--backing);
  background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgb(var(--shadow) / 0.07) 7px 8px);
  box-shadow: inset 0 0 0 1px var(--backing-edge), inset 0 1px 2px rgb(var(--shadow) / 0.1);
}

.theme-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #4f4766;
  cursor: pointer;
  box-shadow: 0 2px 3px -1px rgb(var(--shadow) / 0.35), 0 0 0 0.5px rgb(31 26 46 / 0.08);
  transform: translateY(-1px) rotate(-7deg);
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.25s;
}
.theme-btn:nth-child(2) {
  transform: translateY(-1px) rotate(5deg);
}
.theme-btn:nth-child(3) {
  transform: translateY(-1px) rotate(-4deg);
}

.theme-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .theme-btn[aria-pressed="false"]:hover {
    transform: translateY(-2.5px) rotate(-10deg);
    box-shadow: 0 4px 5px -1px rgb(var(--shadow) / 0.35), 0 0 0 0.5px rgb(31 26 46 / 0.08);
  }
}

.theme-btn[aria-pressed="true"] {
  color: #1f1a2e;
  background-image: radial-gradient(circle at calc(var(--fx) * 100%) 20%, rgb(255 255 255 / 0.85), transparent 55%), var(--foil);
  background-size: 100% 100%, 300% 300%;
  background-position: 0 0, var(--foil-pos);
  box-shadow: 0 0 0 2px #fff, 0 1px 1.5px 1px rgb(var(--shadow) / 0.22);
  transform: none;
}

/* ---------- foil ---------- */

.foil {
  background-color: var(--foil-3);
  background-image: var(--foil-lines), var(--foil);
  background-size: 100% 100%, 280% 280%;
  background-position: 0 0, var(--foil-pos);
}

.glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(70% 55% at calc(var(--fx) * 100%) calc(var(--fy) * 100%), rgb(255 255 255 / 0.6), rgb(255 255 255 / 0) 70%);
  mix-blend-mode: soft-light;
}

.foil-text {
  color: var(--foil-ink-2);
  background-image: linear-gradient(100deg, var(--foil-ink-1), var(--foil-ink-2) 25%, var(--foil-ink-3) 50%, var(--foil-ink-4) 75%, var(--foil-ink-1));
  background-size: 320% 100%;
  background-position: calc(var(--fx) * 100%) 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  white-space: nowrap;
  filter: drop-shadow(0 0 22px var(--glow));
}

/* ---------- stickers ---------- */

.stk {
  --r: 0deg;
  --rad: 18px;
  position: relative;
  display: block;
  list-style: none;
  transform: rotate(var(--r));
  filter: drop-shadow(0 1px 1px rgb(var(--shadow) / 0.16)) drop-shadow(0 7px 9px rgb(var(--shadow) / 0.14));
  transition: --peel 0.5s cubic-bezier(0.3, 0.8, 0.3, 1), transform 0.5s cubic-bezier(0.3, 0.8, 0.3, 1), filter 0.5s;
}

.stk[data-k="sam"] { --r: -2.4deg; --rad: 18px; --i: 0; }
.stk[data-k="priya"] { --r: 2.2deg; --rad: 26px; --i: 1; }
.stk[data-k="leo"] { --r: 1.4deg; --rad: 14px; --i: 2; }
.stk[data-k="ana"] { --r: -1.7deg; --rad: 22px; --i: 3; }

.stk-face {
  padding: 6px;
  border-radius: var(--rad);
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--peel)), calc(100% - var(--peel)) 100%, 0 100%);
}

.stk-print {
  position: relative;
  padding: 11px 13px 10px;
  border-radius: calc(var(--rad) - 5px);
  color: var(--stk-ink);
  background-color: #fff;
  background-image:
    radial-gradient(90% 70% at calc(var(--fx) * 100%) calc(var(--fy) * 100%), rgb(255 255 255 / 0.9), rgb(255 255 255 / 0) 70%),
    linear-gradient(125deg, rgb(255 196 225 / 0.42), rgb(255 240 176 / 0.38) 25%, rgb(195 243 221 / 0.38) 50%, rgb(194 226 255 / 0.42) 75%, rgb(220 203 255 / 0.42));
  background-size: 100% 100%, 260% 260%;
  background-position: 0 0, var(--foil-pos);
  box-shadow: inset 0 0 0 1px rgb(150 120 220 / 0.14);
}

.stk-q {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.stk-by {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--stk-soft);
}

.stk-name {
  font-weight: 700;
  color: var(--stk-ink);
}

.stk-tag {
  display: inline-block;
  padding: 0 6px;
  border: 1px dashed rgb(31 26 46 / 0.4);
  border-radius: 999px;
  font-size: 0.92em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* The corner that lifts: the back of the sticker, folded over the cut. */
.stk-curl {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--peel);
  height: var(--peel);
  border-top-left-radius: min(var(--peel), 14px);
  background: linear-gradient(to bottom right, #fdfcff 0%, var(--stk-back) 40%, #d2c9e4 49%, transparent 50%);
  filter: drop-shadow(2px 2px 2px rgb(31 26 46 / 0.22));
  pointer-events: none;
}

@media (hover: hover) {
  .motion .hero .stk:hover,
  .motion .strip .stk:not(.is-gone):hover {
    --peel: 30px;
    transform: translateY(-3px) rotate(calc(var(--r) - 1deg));
    filter: drop-shadow(0 2px 2px rgb(var(--shadow) / 0.16)) drop-shadow(0 14px 14px rgb(var(--shadow) / 0.18));
  }
}
.stk.is-touched {
  --peel: 30px;
  transform: translateY(-3px) rotate(calc(var(--r) - 1deg));
}
.stk.is-peeking {
  --peel: 24px;
  transform: translateY(-1.5px) rotate(calc(var(--r) + 0.6deg));
}
.stk.is-peeling {
  --peel: 46%;
  transform: translateY(-4px) rotate(calc(var(--r) - 2deg)) scale(1.03);
  transition-duration: 0.3s;
}

/* What is left on the backing once a sticker is gone: its die-cut outline. */
.stk.is-gone {
  filter: none;
}
.stk.is-gone > * {
  visibility: hidden;
}
.stk.is-gone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--rad);
  border: 1.5px dashed rgb(31 26 46 / 0.32);
  background: rgb(255 255 255 / 0.28);
}

.motion .hero .stk {
  animation: stick-in 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.15) backwards;
  animation-delay: calc(var(--i) * 120ms + 150ms);
}
.motion .strip .stk.is-back {
  animation: stick-in 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.15) backwards;
  animation-delay: calc(var(--i) * 90ms);
}

@keyframes stick-in {
  from {
    opacity: 0;
    transform: translate(-6px, -22px) rotate(calc(var(--r) - 9deg)) scale(1.12);
  }
  60% {
    opacity: 1;
  }
}

/* ---------- hero ---------- */

.hero {
  padding: 6px 0 64px;
}

h1 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 11.6vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  margin-top: 14px;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.5;
  color: var(--soft);
}

.sheet-wrap {
  margin-top: 26px;
  padding: 0 4px;
}

.sheet {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  padding: 12px 12px 20px;
  border-radius: 22px;
  transform: rotate(-1.2deg);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.55),
    0 1px 1px rgb(var(--shadow) / 0.12),
    0 18px 36px -14px rgb(var(--shadow) / 0.35),
    0 0 70px -6px var(--glow);
}

.sheet-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stk-ink);
}
.sheet-label::after {
  content: "";
  flex: 1;
  border-top: 1.5px dashed rgb(31 26 46 / 0.3);
}

.sheet-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  align-items: start;
  padding: 0;
}

.sheet-grid .stk[data-k="priya"] { margin-top: 14px; }
.sheet-grid .stk[data-k="leo"] { margin-top: -4px; }
.sheet-grid .stk[data-k="ana"] { margin-top: 10px; }

.seal {
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 2px 2px rgb(var(--shadow) / 0.25));
  pointer-events: none;
}
.seal--a {
  top: -16px;
  right: 14px;
  transform: rotate(14deg);
}
.seal--b {
  bottom: -14px;
  left: 22px;
  width: 32px;
  height: 32px;
  transform: rotate(-12deg);
}
.sheet .glare {
  z-index: 3;
}

/* ---------- the play ---------- */

.play {
  position: relative;
  display: grid;
  grid-template-areas: "title" "strip" "act" "site" "note";
  gap: 18px;
  padding: 30px 16px 26px;
  border-radius: 28px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgb(var(--shadow) / 0.06);
}

.play-title {
  grid-area: title;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 9vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.strip {
  grid-area: strip;
  position: relative;
  padding: 12px 12px 14px;
  border-radius: 18px;
  transform: rotate(0.8deg);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.55), 0 12px 24px -14px rgb(var(--shadow) / 0.4), 0 0 50px -10px var(--glow);
}

.strip-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.strip .stk-q,
.flyer .stk-q {
  font-size: 12.5px;
}
.strip .stk-by,
.flyer .stk-by {
  margin-top: 5px;
  font-size: 11px;
}
.strip .stk-print,
.flyer .stk-print {
  padding: 8px 10px 8px;
}
.strip .stk-face,
.flyer .stk-face {
  padding: 5px;
}

.flyer {
  position: absolute;
  z-index: 20;
  margin: 0;
  pointer-events: none;
  --peel: 0px;
  transition: none;
  filter: drop-shadow(0 3px 3px rgb(var(--shadow) / 0.18)) drop-shadow(0 22px 22px rgb(var(--shadow) / 0.26));
}

.play-act {
  grid-area: act;
  display: flex;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 5px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1f1a2e;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transform: rotate(-1.5deg);
  filter: drop-shadow(0 1px 1px rgb(var(--shadow) / 0.2)) drop-shadow(0 8px 10px rgb(var(--shadow) / 0.2));
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1), filter 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible {
  outline-offset: 4px;
  border-radius: 999px;
}

.btn-face {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px 11px 13px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.005em;
  background-color: var(--foil-3);
  background-image: radial-gradient(80% 120% at calc(var(--fx) * 100%) 0%, rgb(255 255 255 / 0.85), transparent 60%), var(--foil);
  background-size: 100% 100%, 300% 300%;
  background-position: 0 0, var(--foil-pos);
  box-shadow: inset 0 0 0 1px rgb(150 120 220 / 0.2);
}

.btn-star {
  width: 26px;
  height: 26px;
  margin: -3px 0;
  transform: rotate(-12deg);
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px) rotate(-2.5deg);
    filter: drop-shadow(0 2px 2px rgb(var(--shadow) / 0.2)) drop-shadow(0 14px 14px rgb(var(--shadow) / 0.22));
  }
}
.btn:active {
  transform: translateY(1px) rotate(-1deg) scale(0.98);
  filter: drop-shadow(0 1px 1px rgb(var(--shadow) / 0.25));
}

html:not(.js) .play-act {
  display: none;
}

/* The little website the kudos get stuck onto. */
.site {
  grid-area: site;
  border-radius: 16px;
  overflow: hidden;
  background: var(--site);
  box-shadow: 0 0 0 1px rgb(var(--shadow) / 0.1), 0 24px 48px -24px rgb(var(--shadow) / 0.45);
}

.site-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: var(--site-bar);
  border-bottom: 1px solid var(--site-line);
}
.site-chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.site-address {
  display: flex;
  align-items: center;
  flex: 1;
  height: 21px;
  margin-left: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--site);
  box-shadow: inset 0 0 0 1px var(--site-line);
  font-size: 12px;
  color: var(--soft);
}

.site-body {
  padding: 14px 14px 16px;
}

.site-head,
.site-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-head {
  margin-bottom: 14px;
}
.site-foot {
  margin-top: 14px;
}
.fake-logo {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--site-line);
}
.fake-line {
  height: 8px;
  width: 38%;
  border-radius: 99px;
  background: var(--site-line);
}
.fake-line--short {
  width: 18%;
}

.site-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: var(--site-line);
}

.site-tab {
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--soft);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.site-tab[aria-selected="true"] {
  background: var(--tab-on);
  color: var(--tab-on-text);
}
.site-tab:focus-visible {
  border-radius: 999px;
}

.site-panel {
  position: relative;
  min-height: 220px;
  margin-top: 12px;
  padding: 14px 12px;
  border-radius: 12px;
  background: var(--site-well);
  box-shadow: inset 0 0 0 1px var(--site-line);
}

.site-empty {
  position: absolute;
  inset: 12px;
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  font-size: 14px;
  color: var(--soft);
}
.site-panel.has-kudos .site-empty {
  display: none;
}

.mock-window {
  position: relative;
}

.mock-list {
  position: relative;
  padding: 0;
}

.mstk {
  display: none;
}
.mstk.is-stuck {
  display: block;
}
.mstk.is-incoming {
  visibility: hidden;
}
.mstk .stk-q {
  font-size: 12.5px;
}
.mstk .stk-by {
  margin-top: 5px;
  font-size: 11px;
}
.mstk .stk-face {
  padding: 4.5px;
}
.mstk .stk-print {
  padding: 8px 10px;
}
html:not(.js) .mstk[data-k="sam"] {
  display: block;
}
html:not(.js) .site-empty {
  display: none;
}

.site-panel[data-view="wall"] .mock-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  align-items: start;
}

.site-panel[data-view="carousel"] {
  display: grid;
  align-content: center;
}
.site-panel[data-view="carousel"] .mock-window {
  overflow: hidden;
  margin: -6px -12px;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.site-panel[data-view="carousel"] .mock-list {
  display: flex;
  gap: 14px;
  align-items: center;
  width: max-content;
  transition: transform 0.6s cubic-bezier(0.45, 0, 0.2, 1);
}
.site-panel[data-view="carousel"] .mock-list.no-anim {
  transition: none;
}
.site-panel[data-view="carousel"] .mstk {
  width: 190px;
  flex: none;
}
.site-panel[data-view="carousel"] .mstk .stk-q {
  font-size: 14px;
}
.site-panel[data-view="carousel"] .site-empty {
  inset: 12px;
}

.badge {
  display: none;
  color: var(--stk-ink);
}
.site-panel[data-view="badge"] .mock-window {
  display: none;
}
.site-panel[data-view="badge"].has-kudos {
  display: grid;
  place-items: center;
}
.site-panel[data-view="badge"] .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 15px 5px 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--stk-ink);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 0 0 1px rgb(31 26 46 / 0.06), 0 1px 1px rgb(var(--shadow) / 0.12), 0 8px 16px -6px rgb(var(--shadow) / 0.3);
  transform: rotate(-1.5deg);
}
.site-panel[data-view="badge"]:not(.has-kudos) .badge {
  visibility: hidden;
}
.badge-star {
  width: 30px;
  height: 30px;
  flex: none;
}
.badge-name {
  font-weight: 700;
}

.motion .mstk.just-stuck {
  animation: land 0.45s cubic-bezier(0.3, 0.9, 0.3, 1.3);
}
.motion .badge.pop {
  animation: badge-pop 0.5s cubic-bezier(0.25, 1.4, 0.4, 1);
}

@keyframes land {
  0% { scale: 1.12; }
  55% { scale: 0.96; }
  100% { scale: 1; }
}
@keyframes badge-pop {
  0% { scale: 0.7; opacity: 0; }
  60% { scale: 1.06; opacity: 1; }
  100% { scale: 1; }
}

.spark {
  position: absolute;
  z-index: 21;
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.spark.s1 { fill: #ff6fb5; }
.spark.s2 { fill: #ffc93c; }
.spark.s3 { fill: #3fd69a; }
.spark.s4 { fill: #4fb0ff; }
.spark.s5 { fill: #9d6bff; }

.play-note {
  grid-area: note;
}
.play-note p {
  max-width: 30em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--soft);
}
.motion .play-note p:not([hidden]) {
  animation: note-in 0.5s ease-out;
}
@keyframes note-in {
  from { opacity: 0; translate: 0 6px; }
}

/* ---------- three steps ---------- */

.steps {
  padding: 64px 0 56px;
}

.step-list {
  display: grid;
  gap: 30px;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 62px 1fr;
  column-gap: 18px;
  align-items: start;
  align-content: start;
}
.step h3 {
  grid-column: 2;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.step p {
  grid-column: 2;
  margin-top: 4px;
  color: var(--soft);
}

.step-stk {
  --r: -4deg;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background-color: var(--foil-3);
  background-image: radial-gradient(90% 80% at calc(var(--fx) * 100%) 10%, rgb(255 255 255 / 0.8), transparent 60%), var(--foil);
  background-size: 100% 100%, 300% 300%;
  background-position: 0 0, var(--foil-pos);
  box-shadow: 0 0 0 5px #fff;
  transform: rotate(var(--r));
  filter: drop-shadow(0 1px 1px rgb(var(--shadow) / 0.2)) drop-shadow(0 5px 6px rgb(var(--shadow) / 0.16));
  transition: transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1), filter 0.6s;
}
.step:nth-child(2) .step-stk { --r: 3deg; border-radius: 50%; }
.step:nth-child(3) .step-stk { --r: -2deg; border-radius: 14px; }

.motion .step-stk:not(.is-stuck) {
  transform: translate(-4px, -16px) rotate(calc(var(--r) - 14deg)) scale(1.12);
  filter: drop-shadow(0 4px 3px rgb(var(--shadow) / 0.12)) drop-shadow(0 22px 16px rgb(var(--shadow) / 0.22));
}

.step-stk svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #1f1a2e;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step-stk svg .fill {
  fill: #1f1a2e;
  stroke: none;
}

/* ---------- footer ---------- */

.foot {
  padding: 26px 0 40px;
  border-top: 1.5px dashed var(--line);
  text-align: center;
}
.foot-line {
  font-size: 14.5px;
  color: var(--soft);
}
.foot-line a {
  color: var(--ink);
  text-underline-offset: 3px;
}

/* ---------- 404 ---------- */

.nf {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 36px 0 72px;
  text-align: center;
}

.nf-art {
  position: relative;
  width: min(300px, 82vw);
  filter: drop-shadow(0 1px 1px rgb(var(--shadow) / 0.15)) drop-shadow(0 16px 22px rgb(var(--shadow) / 0.22));
}

.nf-backing {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 14px 4px 4px 14px;
  background-color: var(--backing);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 19px, rgb(var(--shadow) / 0.06) 19px 20px),
    repeating-linear-gradient(90deg, transparent 0 19px, rgb(var(--shadow) / 0.06) 19px 20px);
  clip-path: polygon(0 0, 97% 0, 100% 6%, 95.5% 13%, 99% 21%, 94.5% 29%, 98.5% 37%, 95% 46%, 100% 54%, 95.5% 62%, 99% 70%, 94.5% 78%, 98.5% 86%, 95% 93%, 98% 100%, 0 100%);
}

.nf-outline {
  position: absolute;
  inset: 20% 18%;
  border: 2px dashed rgb(var(--shadow) / 0.35);
  border-radius: 22px;
}
:root[data-theme="dark"] .nf-outline {
  border-color: rgb(241 237 251 / 0.3);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nf-outline {
    border-color: rgb(241 237 251 / 0.3);
  }
}

/* A scrap of the sticker that tore off and stayed behind. */
.nf-scrap {
  position: absolute;
  left: 18%;
  bottom: 20%;
  width: 24%;
  aspect-ratio: 1;
  border-bottom-left-radius: 22px;
  background-color: #fff;
  background-image: linear-gradient(125deg, rgb(255 196 225 / 0.55), rgb(255 240 176 / 0.5) 45%, rgb(195 243 221 / 0.55));
  box-shadow: inset 0 0 0 5px #fff;
  clip-path: polygon(0 2%, 9% 13%, 6% 24%, 19% 33%, 15% 45%, 32% 54%, 30% 64%, 50% 72%, 52% 82%, 74% 88%, 86% 100%, 0 100%);
}

.nf-ghost {
  position: absolute;
  inset: 20% 18%;
  border-radius: 22px;
  padding: 6px;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.nf-ghost span {
  display: block;
  height: 100%;
  border-radius: 17px;
}
.motion .nf-ghost {
  animation: fly-off 1.7s cubic-bezier(0.45, 0, 0.3, 1) 0.5s backwards;
}
@keyframes fly-off {
  0% { opacity: 1; transform: none; }
  25% { opacity: 1; transform: translate(4px, -10px) rotate(-6deg) scale(1.04); }
  100% { opacity: 0; transform: translate(120px, -220px) rotate(38deg) scale(0.9); }
}

.nf-star {
  position: absolute;
  top: -14px;
  left: -12px;
  width: 44px;
  height: 44px;
  transform: rotate(-16deg);
  filter: drop-shadow(0 2px 2px rgb(var(--shadow) / 0.25));
}

.nf h1 {
  font-size: clamp(36px, 10vw, 64px);
}

/* ---------- wider screens ---------- */

@media (min-width: 720px) {
  .strip-grid,
  .sheet-grid {
    gap: 16px 14px;
  }
  .step-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .step {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
  .step h3,
  .step p {
    grid-column: 1;
  }
  .step-stk {
    grid-row: auto;
    margin: 0 0 4px 4px;
  }
  .step h3 {
    font-size: 26px;
  }
}

@media (min-width: 960px) {
  .bar {
    min-height: 84px;
  }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 64px;
    padding: 36px 0 104px;
  }
  h1 {
    font-size: clamp(54px, 5.2vw, 76px);
  }
  .lede {
    margin-top: 22px;
    font-size: 20px;
    max-width: 27em;
  }
  .sheet-wrap {
    margin-top: 0;
  }
  .sheet {
    padding: 16px 18px 26px;
    border-radius: 28px;
    transform: rotate(-2deg);
  }
  .sheet-label {
    font-size: 12.5px;
    margin-bottom: 16px;
  }
  .sheet-grid {
    gap: 22px 18px;
  }
  .hero .stk-q {
    font-size: 19px;
  }
  .hero .stk-by {
    font-size: 13.5px;
    margin-top: 9px;
  }
  .hero .stk-print {
    padding: 15px 17px 13px;
  }
  .hero .stk-face {
    padding: 7px;
  }
  .seal--a {
    width: 56px;
    height: 56px;
    top: -22px;
    right: 26px;
  }
  .seal--b {
    width: 40px;
    height: 40px;
  }

  .play {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "title site" "strip site" "act site" "note site";
    column-gap: 56px;
    row-gap: 24px;
    padding: 52px 52px 52px 48px;
    border-radius: 36px;
  }
  .play-title {
    font-size: 54px;
    align-self: end;
  }
  .strip .stk-q,
  .flyer .stk-q {
    font-size: 13.5px;
  }
  .site {
    align-self: center;
  }
  .site-body {
    padding: 20px 22px 22px;
  }
  .site-panel {
    min-height: 256px;
    padding: 18px 16px;
  }
  .site-panel[data-view="wall"] .mock-list {
    gap: 16px 14px;
  }
  .mstk .stk-q {
    font-size: 14px;
  }
  .site-panel[data-view="carousel"] .mstk {
    width: 290px;
  }
  .site-panel[data-view="carousel"] .mstk .stk-q {
    font-size: 18px;
  }
  .site-panel[data-view="carousel"] .mstk .stk-by {
    font-size: 13px;
  }
  .site-panel[data-view="carousel"] .mstk .stk-print {
    padding: 13px 15px 12px;
  }
  .site-panel[data-view="carousel"] .mock-window {
    margin: -6px -16px;
  }
  .site-panel[data-view="badge"] .badge {
    font-size: 16px;
    padding: 6px 18px 6px 7px;
  }
  .badge-star {
    width: 34px;
    height: 34px;
  }
  .steps {
    padding: 96px 0 80px;
  }
  .nf {
    padding: 48px 0 96px;
  }
  .nf-art {
    width: 380px;
  }
}

/* ---------- calm mode ---------- */

html:not(.motion) *,
html:not(.motion) *::before,
html:not(.motion) *::after {
  animation: none !important;
  transition: none !important;
}
