/* =========================================================================
   Tell Tale — /account/: the sticker album.
   A dark room, cream album pages with punched binder holes and glassine
   pockets, and die-cut holographic stickers (site/kit.css) that catch the
   light as you move.
   ========================================================================= */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  min-height: 100vh;
  color: #e9e4da;
  font-family: "Courier Prime", ui-monospace, Menlo, monospace;
  background-color: #141416;
  background-image:
    var(--tt-noise),
    radial-gradient(70% 45% at 85% 0%, rgba(190, 120, 255, 0.13), transparent 70%),
    radial-gradient(60% 40% at 0% 30%, rgba(255, 110, 170, 0.08), transparent 70%),
    linear-gradient(180deg, #1b1b1e 0%, #141416 60%);
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--tt-amber); outline-offset: 3px; }

.ac {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px max(16px, env(safe-area-inset-right)) calc(64px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.ac-boot { font-family: VT323, monospace; font-size: 22px; color: var(--tt-amber); text-align: center; padding: 18vh 0; }

.ac-kicker {
  margin: 0 0 10px;
  font-family: Michroma, sans-serif;
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--tt-amber);
}
.ac-note { margin: 0 0 18px; max-width: 62ch; font-size: 0.92rem; line-height: 1.55; color: #bdb6a7; }
.ac-note a { color: var(--tt-amber); }

/* foil text: the heading catches the same light as the stickers */
.foil-text {
  background: linear-gradient(100deg, #ff9bd5, #b3a3ff 22%, #7fdcff 42%, #9ff0b9 60%, #ffe08a 78%, #ff9bd5);
  background-size: 220% 100%;
  background-position: calc(50% + var(--hx, 0) * 40%) 0;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
}

/* --- buttons + fields ------------------------------------------------------ */
.si-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 0 18px 2px;
  border: 0;
  border-radius: 10px;
  font-family: Michroma, sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #22170a;
  background: linear-gradient(180deg, #ffd796 0%, var(--tt-amber) 55%, #f0a43a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 0 #8a5a17, 0 10px 20px -8px rgba(255, 160, 50, 0.5);
  cursor: pointer;
  transition: transform 0.07s, box-shadow 0.07s;
}
.si-btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 0 #8a5a17; }
.si-btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.si-btn--dark {
  color: #ece6d8;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 32%), linear-gradient(180deg, #3c3e44 0%, #2b2d32 60%, #222327 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 0 #0b0c0e, 0 8px 14px -6px rgba(0, 0, 0, 0.6);
}
.si-btn--dark:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 0 #0b0c0e; }
.si-btn--ghost { color: inherit; background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.si-btn--ghost:active { box-shadow: inset 0 0 0 1.5px currentColor; }
.si-btn--danger { color: #fff2ee; background: linear-gradient(180deg, #e8664e, var(--tt-oxide) 60%, #a9361f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 0 #5f1d10; }
.si-btn--sm { min-height: 44px; padding: 0 14px; }

.si-label {
  display: block;
  margin: 0 0 6px;
  font-family: Michroma, sans-serif;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6a6252;
}
.si-input {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0 0 14px;
  padding: 10px 12px 8px;
  border: 0;
  border-bottom: 2px solid #b9ae95;
  border-radius: 6px 6px 0 0;
  background: rgba(255, 255, 255, 0.55);
  font-family: "Courier Prime", monospace;
  font-size: 1.1rem;
  color: var(--tt-ink);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}
.si-input:focus { outline: none; border-bottom-color: var(--tt-oxide); background: #fffdf7; }
.si-input::placeholder { color: #a39a86; }
.si-fine { margin: 12px 0 0; font-size: 0.8rem; line-height: 1.5; color: #776f5f; }
.si-link {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: Michroma, sans-serif;
  font-size: 7.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8d5a12;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.si-link:disabled { color: #a39a86; text-decoration: none; cursor: default; }
.si-status { min-height: 1.3em; margin: 12px 0 0; font-size: 0.9rem; line-height: 1.45; }
.si-status[data-tone="busy"] { font-family: VT323, monospace; font-size: 19px; letter-spacing: 0.08em; color: #8d5a12; }
.si-status[data-tone="bad"] { color: #b1341c; }

/* --- signed out ------------------------------------------------------------- */
.ac-out {
  display: grid;
  gap: 28px;
  grid-template-areas: "pitch" "card" "sample" "stored";
}
@media (min-width: 920px) {
  .ac-out { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-areas: "pitch card" "sample stored"; column-gap: 48px; align-items: start; }
}
.out-pitch { grid-area: pitch; }
.out-sample { grid-area: sample; }
.out-card { grid-area: card; }
.out-stored { grid-area: stored; }

.out-h1 {
  margin: 0;
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 5.4rem);
  line-height: 0.95;
  color: var(--tt-paper);
  transform: rotate(-1.5deg);
}
.out-lede { margin: 18px 0 16px; max-width: 46ch; font-size: 1.02rem; line-height: 1.6; color: #d4cdbf; }
@media (max-width: 600px) { .out-lede { font-size: 0.93rem; line-height: 1.55; } .out-perks li { font-size: 0.85rem; } }
.out-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.out-perks li { position: relative; padding-left: 22px; font-size: 0.92rem; line-height: 1.45; color: #bdb6a7; }
.out-perks li::before { content: "✦"; position: absolute; left: 0; color: #c9a8ff; }
.out-perks b { color: var(--tt-paper); }

.out-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  border-radius: 6px;
  overflow: hidden;
  color: var(--tt-ink);
  background: var(--tt-noise), linear-gradient(180deg, #f6eedd, #ebe0c8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 30px 50px -22px rgba(0, 0, 0, 0.9);
}
.jc-spine {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #D14B34, #e07a2e 30%, #FFB84D 55%, #2FB5BC);
}
.jc-spine span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: Michroma, sans-serif;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: #1d1a12;
}
.out-card-body { padding: 22px 20px 20px; min-width: 0; }
.out-card-h { margin: 0 0 18px; font-family: "Permanent Marker", cursive; font-weight: 400; font-size: 1.55rem; line-height: 1.1; }
.si-step .si-btn { width: 100%; }
.si-sent { margin: 0 0 14px; font-size: 0.95rem; line-height: 1.5; }
.si-sent b { word-break: break-all; }
.si-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* the code: six amber LCD cells over one real input */
.si-code { position: relative; margin: 0 0 4px; }
.si-cells {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  pointer-events: none;
}
.si-cells i {
  display: grid;
  place-items: center;
  height: 62px;
  border-radius: 8px;
  font-style: normal;
  font-family: VT323, monospace;
  font-size: 44px;
  line-height: 1;
  color: var(--tt-amber);
  text-shadow: 0 0 8px rgba(255, 160, 50, 0.7);
  background: linear-gradient(180deg, #0d0a06, #16110a);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.6);
}
.si-cells i:empty::after { content: "_"; color: rgba(255, 184, 77, 0.16); text-shadow: none; }
.si-cells i.is-cur { box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.9), 0 0 0 2px var(--tt-oxide); }
.si-cells i.is-cur:empty::after { color: var(--tt-amber); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.si-code input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;            /* no iOS zoom */
  letter-spacing: 2em;
  opacity: 0.01;
}
.shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.si-team { margin-top: 18px; padding-top: 10px; border-top: 1px dashed rgba(31, 36, 48, 0.2); }
.si-team summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  font-family: Michroma, sans-serif;
  font-size: 7.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8170;
}
.si-team summary::-webkit-details-marker { display: none; }
.si-team summary::before { content: "▸"; font-size: 10px; }
.si-team[open] summary::before { content: "▾"; }
.si-team .si-fine { margin: 0 0 12px; }
.si-team .si-btn { width: 100%; }

.ac-stored h2, .ac-stored h3 {
  margin: 0 0 8px;
  font-family: Michroma, sans-serif;
  font-weight: 400;
  font-size: 8.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tt-amber);
}
.ac-stored p { margin: 0; font-size: 0.86rem; line-height: 1.6; color: #a9a294; }
.out-stored { padding: 16px 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }

.out-sample .al-page { transform: rotate(-1.2deg); }

/* --- signed in: the cover ------------------------------------------------------ */
.al-cover {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 28px;
  margin-bottom: 26px;
}
.al-name {
  margin: 0;
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: 0.98;
  color: var(--tt-paper);
  transform: rotate(-1.5deg);
}
.al-name span { display: inline-block; }
.al-rename { color: #c9a26a; margin-top: 4px; }
.al-rename-form { max-width: 520px; margin-top: 14px; padding: 14px 16px 10px; border-radius: 8px; background: var(--tt-noise), linear-gradient(180deg, #f6eedd, #ebe0c8); color: var(--tt-ink); }
.al-rename-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.al-rename-row .si-input { flex: 1 1 200px; margin: 0; }
.al-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1px;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 184, 77, 0.14);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.07);
}
.al-stats > div { padding: 9px 16px 8px; background: linear-gradient(180deg, #0d0a06, #16110a); }
.al-stats dt { font-family: Michroma, sans-serif; font-size: 6.5px; letter-spacing: 0.2em; color: rgba(255, 184, 77, 0.55); }
.al-stats dd { margin: 3px 0 0; font-family: VT323, monospace; font-size: 30px; line-height: 1; letter-spacing: 0.04em; color: var(--tt-amber); text-shadow: 0 0 7px rgba(255, 160, 50, 0.6); }

/* --- god mode: a holo trading card ----------------------------------------- */
.god {
  margin: 0 0 26px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 18px 40px -16px rgba(150, 110, 255, 0.55);
}
.god-in { position: relative; z-index: 3; padding: 20px 22px 22px; color: #18132a; }
.god-k { margin: 0 0 6px; font-family: Michroma, sans-serif; font-size: 9px; letter-spacing: 0.4em; }
.god h2 { margin: 0 0 8px; font-family: "Permanent Marker", cursive; font-weight: 400; font-size: 1.8rem; line-height: 1.05; }
.god p { margin: 0; max-width: 70ch; font-size: 0.92rem; line-height: 1.55; }
.god-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* --- tabs ------------------------------------------------------------------- */
.ac-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
}
.ac-tabs a, .ac-tilt {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid #484a51;
  background: linear-gradient(180deg, #383a40, #2a2c31);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 0 #0d0e10;
  font-family: Michroma, sans-serif;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tt-putty);
}
.ac-tabs a:hover { border-color: var(--tt-amber); }
.ac-tilt { cursor: pointer; color: #d9c6ff; border-color: #6b55a8; }

.ac-sec { margin: 0 0 54px; }
.ac-h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: Michroma, sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tt-paper);
}
.ac-h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 184, 77, 0.4), transparent); }

/* --- the album pages ----------------------------------------------------------- */
.al-pages { display: grid; gap: 34px; }
@media (min-width: 980px) { .al-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 34px; } }

.al-page {
  --c: #3EC9B8;
  position: relative;
  padding: 18px 18px 14px 46px;
  border-radius: 4px 10px 10px 4px;
  color: var(--tt-ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(110, 90, 60, 0.14) 1px, transparent 1.4px) 0 0 / 18px 18px,
    var(--tt-noise),
    linear-gradient(180deg, #f7f0df, #efe4cc);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    -1px 0 0 rgba(0, 0, 0, 0.1) inset,
    0 2px 0 #d4c7a8,
    0 4px 0 #e9dfc6,
    0 6px 0 #cfc1a0,
    0 30px 46px -20px rgba(0, 0, 0, 0.85);
  transform: rotate(var(--tilt, 0deg));
}
/* the binder margin: a shaded gutter with three punched holes */
.al-page::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 34px;
  border-radius: 4px 0 0 4px;
  background:
    radial-gradient(circle at 17px 14%, #141416 0 6px, rgba(0, 0, 0, 0.25) 6.5px 7.5px, transparent 8px),
    radial-gradient(circle at 17px 50%, #141416 0 6px, rgba(0, 0, 0, 0.25) 6.5px 7.5px, transparent 8px),
    radial-gradient(circle at 17px 86%, #141416 0 6px, rgba(0, 0, 0, 0.25) 6.5px 7.5px, transparent 8px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0) 80%);
  border-right: 1px dashed rgba(110, 90, 60, 0.25);
}
.al-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "no count" "title count" "place count";
  column-gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--c);
}
.al-head-no { grid-area: no; font-family: Michroma, sans-serif; font-size: 7px; letter-spacing: 0.24em; color: #8a8170; }
.al-head-title {
  grid-area: title;
  justify-self: start;
  margin: 4px 0 2px;
  padding: 2px 0 0;
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.05;
}
.al-head-title span {
  /* a strip of washi tape in the tape's colour behind each line of the title */
  padding: 0 8px 0 2px;
  background: linear-gradient(transparent 52%, color-mix(in srgb, var(--c) 45%, transparent) 52% 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
.al-head-place { grid-area: place; font-size: 0.8rem; color: #6a6252; }
.al-head-count {
  grid-area: count;
  align-self: center;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2.5px solid var(--tt-oxide);
  font-family: VT323, monospace;
  font-size: 30px;
  line-height: 1;
  color: var(--tt-oxide);
  transform: rotate(-10deg);
  opacity: 0.85;
  box-shadow: inset 0 0 0 3px rgba(209, 75, 52, 0.18);
}

.al-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  align-items: start;
}
@media (min-width: 560px) { .al-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .al-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.al-slot { min-width: 0; }
.al-slot.is-earned .k-stk { animation: peel-on 0.6s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes peel-on { from { opacity: 0; transform: perspective(600px) rotate(calc(var(--rot) - 14deg)) scale(1.25); } }
.al-cap { margin: 10px 0 0; text-align: center; font-family: "Permanent Marker", cursive; font-size: 0.98rem; line-height: 1.1; color: #2f3440; }
.al-cap span { display: block; margin-top: 3px; font-family: "Courier Prime", monospace; font-size: 0.68rem; color: #8a8170; }

/* glassine pockets: an unfilled sticker space */
.al-pocket {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  aspect-ratio: 1;
  padding: 14%;
  border-radius: 50%;
  border: 1.6px dashed color-mix(in srgb, var(--c) 55%, #8a8170);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.15) 40%, rgba(255, 255, 255, 0.35) 41%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow: inset 0 1px 6px rgba(110, 90, 60, 0.12);
  text-align: center;
}
.al-pocket b { font-family: Michroma, sans-serif; font-weight: 400; font-size: 1.3rem; color: color-mix(in srgb, var(--c) 45%, #b8ad96); }
.al-pocket span { font-size: 0.72rem; line-height: 1.25; color: #7d7464; }

.al-slot--tape { grid-column: span 2; align-self: center; }
@media (min-width: 560px) { .al-slot--tape { grid-column: span 2; } }
.al-pocket--tape {
  aspect-ratio: 400 / 256;
  border-radius: 14px;
  padding: 10px 14px;
}
.al-pocket-tape {
  width: 46%;
  aspect-ratio: 400 / 256;
  border-radius: 6px;
  border: 1.5px solid color-mix(in srgb, var(--c) 40%, #b8ad96);
  background:
    radial-gradient(circle at 32% 50%, transparent 0 13%, color-mix(in srgb, var(--c) 40%, #b8ad96) 13.5% 16%, transparent 16.5%),
    radial-gradient(circle at 68% 50%, transparent 0 13%, color-mix(in srgb, var(--c) 40%, #b8ad96) 13.5% 16%, transparent 16.5%);
  opacity: 0.7;
}

/* the full-tape sticker: the whole cassette, printed on foil */
.al-tape-stk {
  --rot: -3deg;
  position: relative;
  margin: 0;
  transform: perspective(700px) rotate(var(--rot)) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform 0.5s cubic-bezier(.3,1.4,.5,1);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.2)) drop-shadow(0 10px 12px rgba(40, 24, 10, 0.32));
  animation: peel-on 0.7s cubic-bezier(.3,1.5,.5,1) both;
}
.al-tape-stk.is-tilting { transition: transform 0.08s linear; }
.al-tape-die { padding: 3.5%; border-radius: 18px; background: linear-gradient(160deg, #fff, #f1ece2); }
.al-tape-foil { padding: 5%; border-radius: 13px; }
.al-tape-foil .kc { position: relative; z-index: 3; }
.al-tape-foil .kc-back { fill-opacity: 0.85; }
.al-tape-rib {
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%) rotate(2deg);
  padding: 4px 10px 3px;
  border-radius: 3px;
  font-family: Michroma, sans-serif;
  font-size: 7px;
  letter-spacing: 0.2em;
  white-space: nowrap;
  color: #fff;
  background: var(--tt-oxide);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.al-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px dashed rgba(110, 90, 60, 0.3);
}
.al-foot a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font-family: Michroma, sans-serif;
  font-size: 7.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #8d5a12;
}
.al-foot a:hover { color: var(--tt-oxide); }

.al-page--sample { padding-bottom: 18px; }
.al-page--sample::after {
  content: "SAMPLE";
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 3px 8px 2px;
  border: 2px solid rgba(209, 75, 52, 0.7);
  border-radius: 3px;
  font-family: Michroma, sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(209, 75, 52, 0.75);
  transform: rotate(-8deg);
}

/* --- shelf --------------------------------------------------------------------- */
.sh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 820px) { .sh-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sh-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px 14px 20px;
  border-radius: 6px;
  color: var(--tt-ink);
  background: var(--tt-noise), linear-gradient(180deg, #f6eedd, #eadfc6);
  box-shadow: inset 7px 0 0 var(--c), 0 12px 24px -14px rgba(0, 0, 0, 0.9);
}
.sh-tape { display: block; transform: rotate(-3deg); }
.sh-body { display: grid; gap: 3px; min-width: 0; }
.sh-title { font-family: "Permanent Marker", cursive; font-size: 1.2rem; line-height: 1.05; }
.sh-place { font-size: 0.78rem; color: #6a6252; }
.sh-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin-top: 4px; }
.sh-a, .sh-rm {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  font-family: Michroma, sans-serif;
  font-size: 7.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: #8d5a12;
  cursor: pointer;
}
.sh-a--play { color: var(--tt-oxide); }
.sh-rm { color: #8a8170; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) { .sh-item { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; } }

/* --- my memories ----------------------------------------------------------------- */
.mem-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.mem {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 16px 18px 14px;
  padding-right: 150px;
  border-radius: 6px;
  color: var(--tt-ink);
  background: var(--tt-noise), linear-gradient(180deg, #f6eedd, #eadfc6);
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.9);
}
.mem-title { font-family: "Permanent Marker", cursive; font-size: 1.15rem; line-height: 1.1; }
.mem-meta { font-size: 0.74rem; color: #7d7464; }
.mem-note { font-size: 0.86rem; color: #3d3a33; }
.mem-stamp {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(-7deg);
  padding: 5px 9px 4px;
  border: 2.5px solid currentColor;
  border-radius: 4px;
  font-family: Michroma, sans-serif;
  font-size: 8px;
  letter-spacing: 0.18em;
  white-space: nowrap;
  color: #8a8170;
  opacity: 0.88;
}
.mem--pending .mem-stamp { color: #b07a1a; }
.mem--approved .mem-stamp { color: #1f8f95; }
.mem--rejected .mem-stamp { color: #a9361f; }
.mem--needs_changes .mem-stamp { color: #6b4fb0; }
@media (max-width: 560px) {
  .mem { padding-right: 18px; padding-top: 46px; }
  .mem-stamp { top: 12px; right: auto; left: 16px; transform: rotate(-4deg); }
}
.ac-leave { color: var(--tt-amber); }

/* --- settings -------------------------------------------------------------------- */
.set-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .set-danger { grid-column: 1 / -1; } }
.set-card { padding: 18px 18px 20px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.set-k { margin: 0; font-family: Michroma, sans-serif; font-size: 7.5px; letter-spacing: 0.22em; color: rgba(255, 184, 77, 0.7); }
.set-v { margin: 6px 0 16px; font-family: VT323, monospace; font-size: 24px; line-height: 1.1; color: var(--tt-paper); word-break: break-all; }
.set-danger summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  font-family: Michroma, sans-serif;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff9d8a;
}
.set-danger summary::-webkit-details-marker { display: none; }
.set-danger summary::before { content: "▸"; font-size: 10px; }
.set-danger[open] summary::before { content: "▾"; }
.set-danger p { max-width: 70ch; font-size: 0.88rem; line-height: 1.55; color: #c9c2b4; }
.set-danger .si-label { color: #a9a294; }
.set-danger .si-label b { color: #ff9d8a; font-weight: 400; }
.set-danger .si-input { max-width: 320px; }
.set-danger .si-status[data-tone="bad"] { color: #ff9d8a; }
.set-danger .si-status[data-tone="busy"] { color: var(--tt-amber); }

/* --- gone -------------------------------------------------------------------------- */
.ac-gone { padding: 10vh 0; max-width: 640px; }
.ac-gone:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .al-slot.is-earned .k-stk, .al-tape-stk { animation: none; }
  .al-tape-stk { transition: none; transform: rotate(var(--rot)); }
  .shake { animation: none; }
  html { scroll-behavior: auto; }
}
