/* PocaPal's shared page, in the app's toy look: the system's grounds, one
   tint (the toy pink, #D23A5F), rounded type (Nunito standing in for SF
   Rounded), flat neutral panels with a 2px edge, and a 3px lip only under
   what you press. Stacked on a phone; split half and half on a wide screen,
   the thing on the left, as every page in the app splits. */

:root {
  --tint: #D23A5F;
  --tint-lip: #97294A;
  --ground: #F7F7FA;
  --panel: #FFFFFF;
  --edge: #E2E4EA;
  --lip: #D3D6DE;
  --ink: #16161C;
  --ink-2: #6E6E78;
  --mono-fill: #FFD84D;
  --mono-ink: #3A2E00;
  --card-edge: #8E2240;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tint: #FF5C85;
    --tint-lip: #A6354F;
    --ground: #000000;
    --panel: #2A2A2F;
    --edge: #3A3A40;
    --lip: #1C1C20;
    --ink: #F5F5F7;
    --ink-2: #9A9AA4;
    --card-edge: #FF8FAB;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
}

.page { min-height: 100vh; padding: max(20px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); }

h1, h2, p { margin: 0; }
.sub { color: var(--ink-2); font-weight: 700; font-size: 15px; }

/* MARK: The halves */

.split { max-width: 1100px; margin: 0 auto; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .stage { position: sticky; top: 24px; }
}

.stage { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 18px 16px 24px; border-radius: 28px;
  /* The tint's wash, strongest at the top, as the app's showcases have it. */
  background: linear-gradient(to bottom, color-mix(in srgb, var(--tint) 13%, transparent), transparent 75%); }

.brand { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 900; }
/* The app's icon, in the rounded square a Home Screen gives it. */
.app-icon { width: 28px; height: 28px; border-radius: 22.5%; display: block; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }

.eyebrow { color: var(--tint); font-weight: 900; font-size: 15px; }
.titles h1 { font-size: 30px; font-weight: 900; line-height: 1.1; }
.titles .sub { margin-top: 4px; }

.thing { display: flex; justify-content: center; padding: 6px 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  background: var(--panel); border: 2px solid var(--edge); font-size: 13px; font-weight: 900; }
.chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }

.ways { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 360px; margin-top: 4px; }

/* A pressable toy surface: a fill, a 2px edge, and the 3px lip it sinks onto. */
.toy { display: flex; justify-content: center; align-items: center; height: 52px; border-radius: 999px;
  font-size: 17px; font-weight: 900; text-decoration: none; color: var(--ink);
  background: var(--panel); border: 2px solid var(--edge); box-shadow: 0 3px 0 var(--lip);
  transition: transform .12s ease, box-shadow .12s ease; }
.toy:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--lip); }
.toy.solid { background: var(--tint); border-color: var(--tint-lip); color: #fff; box-shadow: 0 3px 0 var(--tint-lip); }
.toy.solid:active { box-shadow: 0 1px 0 var(--tint-lip); }
@media (prefers-reduced-motion: reduce) { .toy { transition: none; } }

.see { color: var(--tint); font-weight: 900; font-size: 15px; text-decoration: none; }

/* MARK: Things */

/* A photocard: 55:85, its corners 7% of its width, a bold edge; never cropped. */
.card { width: 168px; aspect-ratio: 55 / 85; border-radius: 7% / 4.5%; border: 3px solid var(--card-edge);
  overflow: hidden; background: #fff; display: grid; place-items: center; }
.card.hero { width: min(220px, 56vw); transform: rotate(-2deg); }
.card img { width: 100%; height: 100%; display: block; }
.card.fill img { object-fit: cover; }
.card.whole img { object-fit: contain; }
.card.blank { background: color-mix(in srgb, var(--ink) 7%, transparent); border-style: solid; border-color: var(--edge); }

.sleeve { width: min(240px, 62vw); display: grid; place-items: end center; }
.sleeve.square { aspect-ratio: 1; }
.sleeve img { width: 100%; aspect-ratio: var(--a); object-fit: contain; border-radius: 7%; border: 3px solid var(--card-edge); display: block; }
.sleeve.blank { aspect-ratio: 1; border-radius: 7%; background: color-mix(in srgb, var(--ink) 7%, transparent); }

.fan { display: flex; }
.fan .card { width: 128px; margin: 0 -26px; }
.fan .card:nth-child(1) { transform: rotate(-8deg); }
.fan .card:nth-child(2) { transform: rotate(2deg); z-index: 1; }
.fan .card:nth-child(3) { transform: rotate(9deg); }

/* A thing with a back: two faces back to back in one body, turned by
   share.js as the app turns its card. The hero's size and lean are kept; a
   touch scrolling up or down is still the page's. */
.turn { perspective: 1100px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent; border-radius: 12px; }
.turn:active { cursor: grabbing; }
.turn:focus-visible { outline: 3px solid var(--tint); outline-offset: 8px; }
.turn.card-shape { width: min(220px, 56vw); transform: rotate(-2deg); }
.turn.sleeve-shape { width: min(240px, 62vw); }
.turn-body { position: relative; transform-style: preserve-3d; will-change: transform; }
.turn-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.turn-face.back { position: absolute; inset: 0; transform: rotateY(180deg); }
.turn .card, .turn .sleeve { width: 100%; }
.turn img { -webkit-user-drag: none; pointer-events: none; }
.sleeve-back { height: 100%; display: grid; place-items: end center; }
.sleeve-back img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 7%; border: 3px solid var(--card-edge); display: block; }

/* An event's ticket, in its own colour. */
.ticket { width: min(380px, 100%); border-radius: 24px; overflow: hidden; color: #fff; text-align: left;
  background: linear-gradient(135deg, oklch(0.74 0.14 calc(var(--h) - 14)), oklch(0.58 0.19 var(--h)) 50%, oklch(0.36 0.13 calc(var(--h) + 22)));
  border: 3px solid oklch(0.3 0.1 calc(var(--h) + 22)); }
.ticket-top { display: flex; gap: 14px; align-items: center; padding: 18px; }
.ticket-top div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ticket-top small { font-size: 13px; font-weight: 900; opacity: .85; }
.ticket-top b { font-size: 22px; font-weight: 900; line-height: 1.1; }
.ticket-top span { font-size: 14px; font-weight: 800; opacity: .9; }
.ticket-foot { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px 18px 18px;
  border-top: 3px dotted rgba(255, 255, 255, .55); }
.ticket-foot small { display: block; font-size: 11px; font-weight: 900; opacity: .8; }
.ticket-foot span { font-size: 15px; font-weight: 800; }
.face { width: 72px; height: 96px; border-radius: 14px; object-fit: cover; border: 3px solid rgba(255, 255, 255, .8); flex: none; }
.face.mono { display: grid; place-items: center; background: var(--mono-fill); color: var(--mono-ink); font-size: 28px; font-weight: 900; }

/* A playlist's cassette, its label in the playlist's colour. */
.tape { width: min(260px, 66vw); aspect-ratio: 240 / 152; border-radius: 16px; background: #2E2E33; border: 3px solid #3A3A44;
  padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.tape .label { background: var(--label); color: #fff; border-radius: 8px; padding: 8px 10px; font-weight: 900; font-size: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tape .reels { flex: 1; display: flex; justify-content: center; gap: 46px; align-items: center; }
.tape .reels i { width: 38px; height: 38px; border-radius: 999px; border: 6px solid #EDEDF2; background: #2E2E33; }

/* A photobook's board, in its colour, with its title. */
.book { width: min(200px, 52vw); aspect-ratio: .74; border-radius: 12px; background: var(--board);
  border: 3px solid color-mix(in srgb, var(--board) 60%, #000); display: grid; place-items: center; padding: 16px; }
.book span { font-size: 20px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }

/* MARK: The rest */

.house { display: flex; flex-direction: column; gap: 22px; }

.panel { background: var(--panel); border: 2px solid var(--edge); border-radius: 20px; }
.facts { margin: 0; padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.facts dt { color: var(--ink-2); font-size: 13px; font-weight: 800; }
.facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 800; }

.section h2 { font-size: 22px; font-weight: 900; margin-bottom: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 18px 12px; }
.grid figure { margin: 0; }
.grid .card { width: 100%; border-width: 2px; }
.grid figcaption { margin-top: 6px; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


.songs { list-style: none; margin: 0; padding: 0; }
.songs li { display: flex; gap: 14px; align-items: center; padding: 10px 0; }
.songs .n { min-width: 22px; text-align: right; color: var(--ink-2); font-weight: 900; }
.songs b { display: block; font-weight: 800; }
.songs small { display: block; color: var(--ink-2); font-size: 13px; font-weight: 700; }

.pages { display: flex; flex-direction: column; gap: 14px; }
.page-pic { width: 100%; border-radius: 12px; border: 2px solid var(--edge); display: block; }

/* MARK: States */

.state { max-width: 420px; margin: 12vh auto 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.state h1 { font-size: 28px; font-weight: 900; }
