@font-face {
  font-family: "Eva Hand";
  src: url("assets/fonts/eva-handwriting.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1b1814;
  --ink-soft: #4a4239;
  --paper: #f4ecdf;
  --cream: #f3e9dc;
  --rec: #e0463a;
  --amber: #e3a857;
  --rust: #cf7446;
  --sage: #93ab7e;
  --dusk: #86a3b8;
  --plum: #b48aa6;
  --daw-bg: #1d1916;
  --daw-panel: #2a241f;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hand: "Eva Hand", "Bradley Hand", "Segoe Print", cursive;
  --dock-h: 0px;
}

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

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: #151311;
  color: var(--cream);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid #f0c27a; outline-offset: 3px; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink);
  padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- the room ---------- */

.viewport { position: fixed; inset: 0; overflow: hidden; background: #151311; }

.scene {
  position: absolute; top: 0; left: 0;
  width: 1024px; height: 1024px;
  transform-origin: 0 0;
  will-change: transform;
  perspective: 1400px;
}
.scene.is-zooming { transition: transform 1.3s cubic-bezier(.65, 0, .25, 1); }

.parallax { position: absolute; inset: 0; will-change: transform; }

.room-tiny, .room-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  user-select: none; -webkit-user-drag: none;
}
.room-tiny { filter: blur(14px); transform: scale(1.03); }
.room-photo { opacity: 0; transition: opacity .6s ease; }
.room-photo.is-loaded { opacity: 1; }

/* the screen: a soft glow and a playhead sweeping across, as if a song is playing.
   The clip shape is the part of the screen not hidden behind eva's head. */
.screen-light, .playhead-track {
  position: absolute; inset: 0;
  pointer-events: none;
  clip-path: polygon(533px 401px, 780px 401px, 780px 638px, 612px 638px, 607px 604px, 601px 563px, 594px 512px, 584px 477px, 564px 436px, 545px 416px);
}
.screen-light {
  mix-blend-mode: screen;
  background: radial-gradient(ellipse 240px 150px at 660px 510px, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03));
  animation: screen-breathe 6s ease-in-out infinite;
  transition: filter .4s ease;
}
.screen-spill {
  position: absolute; inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(ellipse 300px 200px at 650px 515px, rgba(255, 255, 255, .08), transparent 70%);
}
@keyframes screen-breathe { 50% { opacity: .7; } }

/* 16 beats at 88 bpm per sweep; the speaker LEDs breathe twice per sweep */
.playhead {
  --playhead: #e2574c;
  position: absolute; left: 520px; top: 418px;
  width: 1.5px; height: 216px;
  background: var(--playhead);
  animation: playhead 10.909s linear infinite;
}
.playhead::before {
  content: ""; position: absolute; left: -3.25px; top: -1px;
  border: 4px solid transparent; border-top: 6px solid var(--playhead); border-bottom: 0;
}
@keyframes playhead {
  from { transform: translateX(0); }
  to { transform: translateX(262px); }
}
.screen-spill { transition: filter .6s ease; }
.parallax:has(.hs-monitor:hover, .hs-monitor:focus-visible) .screen-light { filter: brightness(2.2); }
.parallax:has(.hs-monitor:hover, .hs-monitor:focus-visible) .screen-spill { filter: brightness(2); }

.led::after { animation: led-breathe 5.4545s ease-in-out infinite; }
@keyframes led-breathe {
  0%, 100% { opacity: 0; }
  50% { opacity: .4; }
}

.led {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  mix-blend-mode: screen;
  pointer-events: none;
}
.led::before, .led::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 16%, rgba(255, 255, 255, .6) 30%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
}
.led::before { transition: opacity 1.2s ease; }
.led-left { left: 133px; top: 553px; }
.led-right { left: 832px; top: 537px; }

.hotspot {
  position: absolute;
  padding: 0; border: 0; background: transparent;
  border-radius: 10px;
  cursor: pointer;
}
/* keyboard focus: a soft pool of light, no outlines (mouse users get the label and cursor instead) */
.hotspot::after {
  content: ""; position: absolute; inset: -35%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 250, 240, .32), rgba(255, 250, 240, 0));
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.hotspot:focus-visible { outline: none; }
.hotspot:focus-visible::after { opacity: 1; }
.hs-monitor {
  left: 522px; top: 390px; width: 268px; height: 262px;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='16' fill='%23f4ecdf' fill-opacity='.92'/%3E%3Cpath d='M14.5 11.5v13l10.5-6.5z' fill='%231b1814'/%3E%3C/svg%3E") 18 18, pointer;
}
.hs-monitor::after { display: none; }
/* touch screens: a faint tap ripple on the lit part of the screen */
.hs-monitor::before {
  content: ""; position: absolute; left: 150px; top: 100px;
  width: 64px; height: 64px;
  border: calc(2px / var(--s, 1)) solid rgba(255, 250, 240, .75);
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
body.hint-monitor .hs-monitor::before { animation: tap-ripple 4.2s ease-out 1.8s infinite; }
@keyframes tap-ripple {
  0% { opacity: 0; transform: scale(.35); }
  6% { opacity: .9; }
  32%, 100% { opacity: 0; transform: scale(1.5); }
}
.hs-note {
  left: 798px; top: 658px; width: 114px; height: 62px;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='rotate(45 16 16)'%3E%3Crect x='13' y='2' width='6' height='20' rx='1' fill='%23f4ecdf' stroke='%231b1814' stroke-width='1.5'/%3E%3Cpath d='M13 22h6l-3 7z' fill='%23e8d3b0' stroke='%231b1814' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M15.2 26.5h1.6L16 29z' fill='%231b1814'/%3E%3C/g%3E%3C/svg%3E") 7 25, pointer;
}
.hs-speaker {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='16' fill='%23f4ecdf' fill-opacity='.92'/%3E%3Cpath d='M10 15h4l5-4v14l-5-4h-4z' fill='%231b1814'/%3E%3Cpath d='M22 14.5c1.5 1.2 1.5 5.8 0 7M24.5 12c3 2.6 3 9.4 0 12' stroke='%231b1814' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") 18 18, pointer;
}
/* the stack of CDs on the desk opens the shop */
.hs-cd {
  left: 664px; top: 652px; width: 120px; height: 52px;
  border-radius: 50%;
  text-decoration: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='16' fill='%23f4ecdf' fill-opacity='.92'/%3E%3Cpath d='M11.5 14h13l-1 11.5h-11z' fill='none' stroke='%231b1814' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M15 16v-2.5a3 3 0 0 1 6 0V16' fill='none' stroke='%231b1814' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") 18 18, pointer;
}
.hs-cd .tag { transform: translate(-50%, calc(-2px / var(--s, 1))) rotate(-3deg); }
.hs-spk-left { left: 40px; top: 485px; width: 205px; height: 215px; }
.hs-spk-right { left: 805px; top: 465px; width: 205px; height: 190px; }

/* with sound on, the LEDs follow the actual music instead of breathing */
body.sound-on .led::after { animation: none; opacity: calc(var(--level, 0) * .9); }

.tag {
  position: absolute; left: 50%; bottom: 100%;
  transform: translate(-50%, calc(-10px / var(--s, 1))) rotate(-2deg);
  font: 400 calc(26px / var(--s, 1))/1.1 var(--hand);
  white-space: nowrap;
  color: var(--cream);
  text-shadow: 0 0 calc(10px / var(--s, 1)) rgba(0, 0, 0, .85), 0 calc(1px / var(--s, 1)) calc(2px / var(--s, 1)) rgba(0, 0, 0, .6);
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
}
.hs-note .tag { transform: translate(-50%, calc(-10px / var(--s, 1))) rotate(1.5deg); }
/* labels write themselves in on hover, or once on phones during the nudge */
.hotspot:hover .tag,
.hotspot:focus-visible .tag,
body.reveal-tags .tag,
body.hint-monitor .hs-monitor .tag {
  opacity: 1;
  animation: write-in .8s steps(16, end) both;
}
.vignette {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 55% 48%, transparent 50%, rgba(0, 0, 0, .5));
}

.room-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 18px 0;
  pointer-events: none;
}
.room-top > * { pointer-events: auto; }
.wordmark {
  margin: 0;
  font: 400 34px/1 var(--hand);
  color: var(--cream);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.corner-link {
  padding: 10px 14px;
  font: 12.5px/1 var(--mono);
  color: var(--cream);
  background: rgba(20, 18, 16, .55);
  border: 1px solid rgba(243, 233, 220, .28);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.corner-link:hover { background: rgba(20, 18, 16, .8); }

body.is-entering .hotspot .tag,
body.is-entering .room-top { opacity: 0; transition: opacity .3s ease; pointer-events: none; }

/* ---------- always-visible signup ---------- */

/* a black-and-white note that looks photographed with the room: grey paper, film grain, soft ink */
.dock {
  --ink: #1d1d1c;
  --ink-soft: #4b4b49;
  position: fixed; left: 28px; bottom: 28px; z-index: 20;
  width: 300px;
  padding: 18px 18px 16px;
  color: var(--ink);
  transform: rotate(-1.2deg);
  filter: drop-shadow(0 9px 14px rgba(0, 0, 0, .38)) drop-shadow(0 2px 2px rgba(0, 0, 0, .22));
}
.dock::before {
  content: ""; position: absolute; top: -11px; left: 50%; z-index: 2;
  width: 86px; height: 22px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(214, 212, 207, .62);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
/* the paper itself: grain on grey, cut out with a torn, uneven edge */
.dock::after {
  content: ""; position: absolute; inset: -5px; z-index: -1;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .24 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .07) 100%),
    linear-gradient(170deg, #e6e4df 0%, #d9d7d2 100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' preserveAspectRatio='none'%3E%3Cfilter id='t' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05 .07' numOctaves='4' seed='7'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='8' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='5' y='5' width='290' height='190' filter='url(%23t)'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' preserveAspectRatio='none'%3E%3Cfilter id='t' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05 .07' numOctaves='4' seed='7'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='8' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='5' y='5' width='290' height='190' filter='url(%23t)'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.dock:focus { outline: none; }
.dock-title {
  display: flex; align-items: center; gap: 9px;
  margin: 0;
  font: 400 31px/1 var(--hand);
}
.dock-title .rec-dot { animation: soft-pulse 2.6s ease-in-out infinite; }
.dock .rec-dot { background: #c8453a; box-shadow: 0 0 0 2px rgba(200, 69, 58, .18); }
.dock-sub { margin: 4px 0 14px; font-size: 12.5px; color: var(--ink-soft); }
.sub-short { display: none; }
.dock-text { width: 100%; min-height: 52px; font-size: 16px; }
.dock .btn-arm { color: #ecebe7; background: #222221; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.dock .btn-arm:hover { background: #333331; }

.email-link {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  text-align: center;
  color: var(--ink-soft);
  text-underline-offset: 3px;
}
button.email-link {
  width: 100%;
  padding: 4px 0;
  font-family: inherit;
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}
.email-link:hover { color: var(--ink); }
.email-link-dark { margin-top: 0; color: rgba(243, 233, 220, .7); }
.email-link-dark:hover { color: var(--cream); }

.rec-dot {
  display: inline-block; flex: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 0 2px rgba(224, 70, 58, .22);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 16px;
  font: 500 15px var(--mono);
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-arm, .btn-ink { color: #fbf4e8; background: var(--ink); }
.btn-arm:hover, .btn-ink:hover { background: #342c25; }
.btn-text { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-text:hover { background: rgba(27, 24, 20, .06); }
.btn-text-dark { color: var(--cream); border-color: rgba(243, 233, 220, .45); }
.btn-text-dark:hover { background: rgba(243, 233, 220, .08); }

@keyframes soft-pulse { 50% { opacity: .55; } }

body.in-screen .dock { display: none; }

/* ---------- the computer screen ---------- */

.screen {
  position: fixed; inset: 0; z-index: 30;
  padding: 14px;
  overflow: hidden;
  isolation: isolate;
  background: #0c0b0a;
  opacity: 0;
  transition: opacity .5s ease;
}
.screen.is-on { opacity: 1; }
/* the wallpaper: a blurred crop of the room */
.screen::before {
  content: ""; position: absolute; inset: -40px; z-index: -1;
  background: url("assets/room.jpg") 62% 30% / cover no-repeat, #151311;
  filter: blur(14px) brightness(.5) contrast(1.05);
}

.desktop-bar, .desktop-icons, .traffic, .home, .phone-only { display: none; }

/* ---------- apps: shared by the computer dock and the phone home screen ---------- */

.app-icon {
  --tile: 58px;
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 0;
  color: var(--cream);
  text-decoration: none;
  background: none; border: 0;
  cursor: pointer;
}
.app-icon:focus-visible { outline: none; }
.app-icon:focus-visible .app-tile { outline: 2px solid #f0c27a; outline-offset: 3px; }
.app-tile {
  display: grid; place-items: center;
  width: var(--tile); height: var(--tile);
  border-radius: 24%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 4px 12px rgba(0, 0, 0, .35);
  transition: transform .2s cubic-bezier(.3, 1.4, .5, 1);
}
.app-icon:active .app-tile { transform: scale(.92); }
.app-tile svg {
  width: 56%; height: 56%;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.tile-messages { color: #1b1814; background: linear-gradient(160deg, #bfd1ad, #86a172); }
.tile-studio { color: var(--amber); background: linear-gradient(160deg, #3d352e, #1d1916); }
.tile-maps { color: #1b1814; background: linear-gradient(160deg, #fbf7ef, #ddd3c2); }
.tile-maps .glyph-star { fill: #c8453a; stroke: #c8453a; stroke-width: .8; }
.tile-notes { color: #4a4239; background: linear-gradient(180deg, #efd27e 0 23%, #f7f0de 23%); }
.tile-shop { color: #fbf4e8; background: linear-gradient(160deg, #dc8a5e, #ad5b37); }
.tile-links { color: #fbf4e8; background: linear-gradient(160deg, #a2bbcc, #6a889f); }
.tile-social { color: var(--cream); background: linear-gradient(160deg, #3a342e, #1b1814); }
.tile-spotify { color: #a9cf94; background: linear-gradient(160deg, #3d352e, #1d1916); }
.tile-applemusic { color: #fbf4e8; background: linear-gradient(160deg, #df9a9c, #b4606a); }
.tile-youtube { color: #c8453a; background: linear-gradient(160deg, #fbf7ef, #ddd3c2); }
.tile-instagram { color: #fbf4e8; background: linear-gradient(160deg, #c9a3bd, #8f6282); }
.tile-tiktok { color: var(--cream); background: linear-gradient(160deg, #3a342e, #1b1814); }
.dock-group { display: contents; }

/* "follow me": a dock folder that fans the socials out upward, like a Mac stack */
.dock-folder { position: relative; display: flex; }
.tile-folder { position: relative; background: rgba(243, 233, 220, .1); box-shadow: inset 0 0 0 1px rgba(243, 233, 220, .2); }
.tile-folder .app-tile {
  position: absolute;
  width: 46%; height: 46%;
  border-radius: 26%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .45);
}
.tile-folder .app-tile:nth-child(1) { left: 12%; top: 12%; rotate: -7deg; }
.tile-folder .app-tile:nth-child(2) { right: 12%; bottom: 12%; rotate: 6deg; }
.tile-folder .app-tile:nth-child(3) { right: 12%; top: 12%; rotate: 4deg; }
.tile-folder .app-tile:nth-child(4) { left: 12%; bottom: 12%; rotate: -4deg; }
.folder-fan {
  position: absolute; left: 50%; bottom: calc(100% + 22px);
  width: 0; height: 0;
  margin: 0; padding: 0; list-style: none;
}
.folder-fan li {
  position: absolute; left: 0; bottom: calc(var(--i) * 68px);
  transform: translateX(calc(-50% + var(--i) * var(--i) * 6px)) rotate(calc(var(--i) * 3deg));
  opacity: 0;
  translate: 0 36px;
  scale: .6;
  transition: opacity .2s ease, translate .3s cubic-bezier(.2, .9, .3, 1.15), scale .3s cubic-bezier(.2, .9, .3, 1.15);
  transition-delay: calc(var(--i) * 35ms);
}
.folder-fan.is-open li { opacity: 1; translate: 0 0; scale: 1; }
.os-dock .folder-fan .app-name {
  position: absolute; top: 50%; right: calc(100% + 10px); bottom: auto; left: auto;
  padding: 4px 10px;
  font-size: 12.5px;
  translate: 0 -50%;
  opacity: 1;
}
.folder-btn[aria-expanded="true"] .app-tile { background: rgba(243, 233, 220, .22); }
.app-name { font-size: 11.5px; line-height: 1.2; white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
.badge {
  position: absolute; top: -6px; left: calc(50% + var(--tile) / 2 - 14px);
  display: grid; place-items: center;
  min-width: 21px; height: 21px; padding: 0 6px;
  font: 500 11.5px/1 var(--mono);
  color: #fff;
  background: var(--rec);
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .25);
  animation: badge-in .4s cubic-bezier(.3, 1.6, .5, 1) 1.2s both;
}
@keyframes badge-in { from { transform: scale(0); } }

/* windows for the apps that aren't the studio */
.app-window {
  display: flex; flex-direction: column;
  overflow: hidden;
  color: var(--cream);
  background: #1f1a17;
}
.window-bar {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px;
  font-size: 12.5px;
  background: #2a2420;
  border-bottom: 1px solid #000;
}
.window-title, .window-name {
  position: absolute; left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: 8px;
  margin: 0;
  font: 500 13px var(--mono);
  white-space: nowrap;
}
.window-name { font-weight: 400; opacity: .7; }
.window-title:focus { outline: none; }
.contact-avatar {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  font: 400 19px/1 var(--hand);
  color: #1b1814;
  background: linear-gradient(160deg, #e6e4df, #b9b5ad);
  border-radius: 50%;
}
.app-back {
  display: none;
  min-height: 40px; padding: 0 6px;
  font-size: 14px;
  color: inherit;
  background: none; border: 0;
  cursor: pointer;
}

/* messages: a text thread from eva, and the reply bar is the signup */
.thread {
  flex: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  overflow: auto;
  padding: 18px 16px;
  background: #171411;
}
.thread-stamp { align-self: center; margin: 0 0 8px; font-size: 11px; opacity: .5; }
.bubble {
  max-width: 82%;
  margin: 0; padding: 9px 14px;
  font: 15.5px/1.4 ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--cream);
  background: #302a25;
  border-radius: 19px 19px 19px 6px;
  transform-origin: 0 100%;
  animation: bubble-in .3s cubic-bezier(.2, .9, .3, 1.2) both;
}
@keyframes bubble-in { from { opacity: 0; transform: scale(.8); } }
.bubble.is-typing { display: flex; gap: 4px; padding: 13px 14px; }
.is-typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(243, 233, 220, .6); animation: typing 1s ease-in-out infinite; }
.is-typing i:nth-child(2) { animation-delay: .15s; }
.is-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.reply-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: #221d19;
  border-top: 1px solid #000;
}
.reply-send {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px;
  font: 500 15.5px var(--mono);
  color: #fbf4e8;
  text-decoration: none;
  background: #c8453a;
  border-radius: 999px;
  transition: background-color .2s ease;
}
.reply-send:hover { background: #d4554a; }
.reply-send .rec-dot { width: 10px; height: 10px; background: #fbf4e8; box-shadow: none; animation: soft-pulse 2.6s ease-in-out infinite; }
.reply-alt {
  flex: none;
  padding: 8px 4px;
  font-size: 12.5px;
  color: rgba(243, 233, 220, .7);
  background: none; border: 0;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.reply-alt:hover { color: var(--cream); }

/* notes: about, on a sheet of paper */
.app-notes { color: var(--ink); background: #f6f0e3; }
.app-notes .window-bar { background: #ebe3d3; border-bottom-color: rgba(27, 24, 20, .15); }
.note-page { flex: 1; overflow: auto; padding: 18px 26px 30px; }
.note-date { margin: 0 0 8px; font-size: 11.5px; text-align: center; color: var(--ink-soft); opacity: .75; }
.note-title { margin: 8px 0 12px; font: 400 42px/1 var(--hand); }
.note-title:focus { outline: none; }
.note-text p { margin: 0 0 12px; font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, sans-serif; }
.note-text .caret { background: var(--ink); }
.note-specs {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px;
  margin: 18px 0 0; padding-top: 14px;
  font-size: 13px;
  border-top: 1px dashed rgba(27, 24, 20, .25);
}
.note-specs dt { color: var(--ink-soft); }
.note-specs dd { margin: 0; }

/* ---------- computers: a desktop with a dock; the studio is the main window ---------- */
@media (min-width: 701px) and (min-height: 501px) {
  .screen { padding: 40px 28px 98px; }
  .screen::before { background-position: 56% 6%; background-size: 190% auto; }
  .os-dock {
    position: absolute; left: 50%; bottom: 12px; z-index: 5;
    display: flex; align-items: flex-end; gap: 10px;
    padding: 8px 10px;
    translate: -50% 0;
    background: rgba(40, 35, 31, .5);
    border: 1px solid rgba(243, 233, 220, .14);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  }
  .os-dock .app-icon { --tile: 52px; }
  .os-dock .app-icon:hover .app-tile, .os-dock .app-icon:focus-visible .app-tile { transform: translateY(-6px) scale(1.08); }
  .os-dock .app-name {
    position: absolute; bottom: calc(100% + 16px); left: 50%;
    padding: 4px 9px;
    font-size: 12px;
    text-shadow: none;
    background: rgba(20, 18, 16, .88);
    border-radius: 6px;
    translate: -50% 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
  }
  .os-dock .app-icon:hover .app-name, .os-dock .app-icon:focus-visible .app-name { opacity: 1; }
  .os-dock .app-icon::after {
    content: ""; position: absolute; left: 50%; bottom: -6px;
    width: 4px; height: 4px; margin-left: -2px;
    border-radius: 50%;
    background: var(--cream);
    opacity: 0;
  }
  .os-dock .app-icon.is-running::after { opacity: .8; }
  .dock-sep { align-self: stretch; width: 1px; margin: 4px 2px; background: rgba(243, 233, 220, .2); }

  .app-window {
    position: absolute; z-index: 4; top: 72px; left: 50%;
    width: min(430px, calc(100% - 56px)); height: min(620px, calc(100% - 190px));
    translate: -50% 0;
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 40px 100px rgba(0, 0, 0, .7), 0 10px 30px rgba(0, 0, 0, .5);
    animation: window-in .28s cubic-bezier(.2, .8, .2, 1);
  }
  .app-notes { width: min(540px, calc(100% - 56px)); }
  @keyframes window-in { from { opacity: 0; transform: scale(.94); } }

  .desktop-bar {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; align-items: center; gap: 18px;
    height: 28px; padding: 0 16px;
    font-size: 12.5px;
    color: rgba(243, 233, 220, .88);
    background: rgba(20, 18, 16, .55);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .desktop-bar strong { font-weight: 500; color: var(--cream); }
  .menu-items { display: flex; align-items: center; gap: 18px; min-width: 0; overflow: hidden; }
  .menu-items span:not(.menu-dot) { opacity: .75; }
  .menu-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); opacity: .9; }
  .menu-clock { margin-left: auto; font-variant-numeric: tabular-nums; }
  .screen .daw {
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 30px 80px rgba(0, 0, 0, .6), 0 8px 24px rgba(0, 0, 0, .4);
  }
  .traffic { display: flex; gap: 8px; margin-right: 4px; }
  .tl { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .35); }
  .tl-close { background: #e0574c; cursor: pointer; }
  .tl-close:hover { background: #ef6a5f; }
  .tl-min { background: #d9a23e; }
  .tl-max { background: #6ea553; }
  .traffic:not(:hover) .tl { filter: saturate(.8); }
}
/* on big screens the windows sit a little off-centre, like they've been dragged around */
@media (min-width: 1100px) and (min-height: 501px) {
  .app-messages { translate: -20% 0; }
  .app-notes { translate: -75% 0; }
}
/* desktop icons need a little room to the right of the window */
@media (min-width: 1280px) and (min-height: 501px) {
  .screen { padding-right: 132px; }
  .desktop-icons {
    position: absolute; top: 52px; right: 14px;
    display: grid; gap: 18px;
    width: 104px; margin: 0; padding: 0; list-style: none;
  }
  .desk-icon {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    width: 100%; padding: 6px 4px;
    color: var(--cream);
    background: none; border: 0; border-radius: 6px;
    cursor: pointer;
  }
  .desk-icon:hover .file-name, .desk-icon:focus-visible .file-name { background: rgba(80, 110, 170, .75); }
  .file-glyph {
    position: relative;
    display: grid; place-items: end center;
    width: 40px; height: 50px; padding-bottom: 6px;
    font-size: 9px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
    color: #5a5148;
    background: linear-gradient(135deg, #f4efe7, #dcd4c8);
    clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .45);
  }
  .file-glyph::after {
    content: ""; position: absolute; top: 0; right: 0;
    width: 28%; height: 22%;
    background: linear-gradient(225deg, transparent 50%, #bfb6a8 50%);
  }
  .file-audio { color: #7a3d2a; background: linear-gradient(135deg, #f1d9c9, #d8b19a); }
  .desk-icon[aria-pressed="true"] .file-audio { box-shadow: 0 0 0 2px #f0c27a, 0 3px 8px rgba(0, 0, 0, .45); }
  .file-name {
    max-width: 100%; padding: 1px 5px;
    font-size: 11px; line-height: 1.3; text-align: center; overflow-wrap: anywhere;
    border-radius: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
  }
}

.daw {
  height: 100%;
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  color: var(--cream);
  background: var(--daw-bg);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #000, 0 0 90px rgba(255, 170, 90, .12);
  filter: brightness(1.7) saturate(.5) blur(5px);
  transition: filter .8s ease .1s;
}
.screen.is-on .daw { filter: none; }

.daw-titlebar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px;
  font-size: 12.5px;
  background: #2a2420;
  border-bottom: 1px solid #000;
}
.back-btn {
  min-height: 40px; padding: 0 14px;
  background: #3a322b;
  border: 1px solid #4b4138;
  border-radius: 8px;
  cursor: pointer;
}
.back-btn:hover { background: #473d34; }
.titlebar-right { display: flex; align-items: center; gap: 8px; }
.sound-toggle { display: inline-flex; align-items: center; gap: 7px; }
.sound-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(243, 233, 220, .35);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.sound-toggle[aria-pressed="true"] .sound-dot { background: #f0c27a; box-shadow: 0 0 8px rgba(240, 194, 122, .8); }

/* "text me" lives in the title bar so the session gets the full height */
.titlebar-signup { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rec-arm {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; min-height: 42px; padding: 5px 16px 5px 8px;
  text-align: left;
  color: var(--cream);
  text-decoration: none;
  background: #1a1613;
  border: 1px solid #4a3f36;
  border-radius: 999px;
  cursor: pointer;
}
.rec-arm .rec-dot {
  width: 20px; height: 20px;
  box-shadow: 0 0 0 3px #3a1512, 0 0 12px rgba(224, 70, 58, .5);
  transition: box-shadow .25s ease;
}
.rec-arm:hover .rec-dot { box-shadow: 0 0 0 3px #3a1512, 0 0 22px rgba(224, 70, 58, .9); }
.rec-arm-text { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.rec-arm-text strong { flex: none; font-size: 14px; font-weight: 500; }
.rec-arm-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; opacity: .72; }
.titlebar-signup .email-link { flex: none; width: auto; margin: 0; }

.daw-body { display: grid; grid-template-columns: auto minmax(0, 1fr); min-height: 0; }

.mixer {
  display: flex; gap: 5px;
  padding: 12px 8px;
  background: #221d19;
  border-right: 1px solid #000;
}
.channel {
  --c: var(--amber);
  width: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 14px 0 12px;
  font-size: 11px;
  background: #2b2520;
  border: 1px solid #3a322b;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.channel[data-tab="notes"] { --c: var(--sage); }
.channel[data-tab="demo"] { --c: var(--rust); }
.channel:hover { background: #312a24; }
.channel[aria-current] { background: #362d26; border-color: var(--c); }
.channel[aria-current] .channel-name { color: var(--c); }
.fader {
  position: relative; flex: 1;
  width: 6px; min-height: 90px; max-height: 260px;
  background: #0f0d0b;
  border-radius: 3px;
  box-shadow: inset 0 1px 2px #000;
}
.fader-cap {
  position: absolute; left: 50%; bottom: 16%;
  width: 30px; height: 16px;
  transform: translate(-50%, 50%);
  background: linear-gradient(#ddd3c6, #9b9185);
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .6);
  transition: bottom .5s cubic-bezier(.3, 1.35, .5, 1);
}
.fader-cap::after {
  content: ""; position: absolute; left: 4px; right: 4px; top: 50%;
  height: 2px; margin-top: -1px;
  background: var(--c);
}
.channel:hover .fader-cap { bottom: 26%; }
.channel[aria-current] .fader-cap { bottom: 82%; }

.daw-main {
  overflow: auto;
  padding: 14px;
  overscroll-behavior: contain;
}
/* the whole session on one screen: two columns on wide screens, one column on narrow ones */
.arrange {
  display: grid; gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1280px;
}
/* on computers the session fills the screen: tracks stretch to share the height, the note pad docks on the right */
@media (min-width: 1000px) and (min-height: 501px) {
  .daw-main { display: flex; flex-direction: column; }
  .arrange {
    flex: 1 0 auto; width: 100%; max-width: none; min-height: 470px;
    grid-template-columns: minmax(520px, 58%) minmax(320px, 1fr);
    grid-template-rows: 1fr;
    grid-template-areas: "tracks notes";
  }
  .tracks { grid-area: tracks; display: flex; flex-direction: column; min-height: min-content; }
  .pane-notes { grid-area: notes; }
  .arrange .lane { grid-template-columns: 180px minmax(0, 1fr); }
  .stack { display: flex; flex-direction: column; flex: var(--n, 1) 1 auto; }
  .stack.is-closed { flex: none; }
  .stack-tracks { flex: 1; display: flex; flex-direction: column; }
  .track { flex: 1; min-height: 50px; }
  .track.is-embed { flex: none; }
  .track-lane { display: flex; align-items: center; }
  .region { height: 100%; max-height: 72px; }
  .arrange .region .clip-wave { flex: 1; height: auto; min-height: 18px; }
  .arrange .track.is-demo { flex: 2 1 auto; min-height: 90px; }
  .arrange .demo-region { max-height: 240px; }
  .arrange .stack.pane-music { flex: none; }
  .arrange .notepad { margin: -14px -14px -14px 0; border-width: 0 0 0 1px; border-radius: 0; }
  .arrange .notepad-body { padding: 22px 24px; }
  .arrange .notepad-text p { font-size: 16px; }
}
@media (min-width: 1000px) and (min-height: 940px) {
  .embed-slot iframe { height: 352px; }
}
.pane { --c: var(--amber); scroll-margin: 14px; border-radius: 10px; }
.pane.is-soloed { animation: solo 1.4s ease; }
.stack.is-soloed { animation-name: solo-inset; }
@keyframes solo {
  0%, 55% { box-shadow: 0 0 0 2px var(--c), 0 0 24px color-mix(in srgb, var(--c) 35%, transparent); }
  100% { box-shadow: 0 0 0 2px transparent, 0 0 24px transparent; }
}
@keyframes solo-inset {
  0%, 55% { box-shadow: inset 0 0 0 2px var(--c); }
  100% { box-shadow: inset 0 0 0 2px transparent; }
}
.pane-notes { --c: var(--sage); }
.pane-demo { --c: var(--rust); }
.pane .lane { margin-bottom: 0; }

.lane {
  display: grid; grid-template-columns: 150px minmax(0, 1fr);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--daw-panel);
  border: 1px solid #000;
  border-radius: 8px;
}
.lane-head {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  background: #2f2823;
  border-right: 1px solid #000;
  box-shadow: inset 4px 0 0 var(--c);
}
.lane-num {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  font-size: 11px;
  color: #1b1612;
  background: var(--c);
  border-radius: 5px;
}
.lane-body {
  min-width: 0;
  padding: 12px;
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, .045) 79px 80px),
    #1f1a17;
}
/* summing stacks: a folder row per section, then one track per link, each with a single region */
.tracks {
  min-width: 0;
  overflow: hidden;
  background: var(--daw-panel);
  border: 1px solid #000;
  border-radius: 8px;
}
.stack { border-radius: 0; }
.stack + .stack { border-top: 1px solid #000; }
.stack-row, .track { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.stack-head {
  display: flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 0 10px;
  font-size: 12.5px; text-align: left;
  background: #2f2823;
  border: 0; border-right: 1px solid #000;
  box-shadow: inset 4px 0 0 var(--c);
  cursor: pointer;
}
.stack-head:hover { background: #362e28; }
.stack-arrow {
  width: 0; height: 0; flex: none;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 6px solid rgba(243, 233, 220, .7);
  transition: transform .2s ease;
}
.stack.is-closed .stack-arrow { transform: rotate(-90deg); }
.stack-head .lane-num { width: 18px; height: 18px; font-size: 10px; }
.stack-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack-row > .stack-sum {
  margin: 9px 10px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--c) 30%, #1f1a17);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3);
}
.stack-tracks { margin: 0; padding: 0; list-style: none; }
.track.is-embed .track-lane { padding: 8px; }
.track.is-embed .embed-col { flex: 1; width: 100%; min-width: 0; }
.track.is-embed .embed-slot iframe { border-radius: 8px; }
.stack.is-closed .stack-tracks { display: none; }
.track { border-top: 1px solid #000; }
.track-head {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  min-width: 0; padding: 0 8px 0 22px;
  font-size: 12px;
  background: #29231f;
  border-right: 1px solid #000;
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--c) 55%, transparent);
}
.track-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms { display: flex; gap: 3px; flex: none; }
.ms i {
  display: grid; place-items: center;
  width: 14px; height: 14px;
  font: normal 500 8.5px var(--mono);
  color: rgba(243, 233, 220, .55);
  background: #1b1714;
  border-radius: 3px;
}
.track-lane {
  min-width: 0; padding: 5px 8px;
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, .045) 79px 80px),
    #1f1a17;
}
/* a region like Logic's: the name sits on a strip across the top, the waveform underneath */
.region {
  display: flex; flex-direction: column;
  width: var(--w, 80%); min-width: fit-content; max-width: calc(100% - var(--x, 0%));
  margin-left: var(--x, 0%);
  overflow: hidden;
  color: #1b1612;
  text-decoration: none;
  background: var(--c);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .28);
  transition: filter .15s ease;
}
.region:hover { filter: brightness(1.1); }
.region:focus-visible { outline-color: var(--cream); }
.region-name {
  display: flex; align-items: baseline; gap: 8px;
  padding: 3px 9px 2px;
  font-size: 12px; line-height: 1.25; white-space: nowrap;
  background: rgba(0, 0, 0, .12);
}
.region-label { font-weight: 500; }
.region-label::after { content: " ↗"; opacity: .6; }
.region small { font-size: 11px; opacity: .72; }
.region .clip-wave { display: block; width: 100%; height: 18px; padding: 2px 0 3px; opacity: .4; }

.embed-slot iframe { display: block; width: 100%; border: 0; border-radius: 12px; }
.embed-slot iframe + iframe { margin-top: 10px; }
.embed-placeholder {
  margin: 0; padding: 22px;
  font-size: 13px; line-height: 1.5;
  border: 1px dashed #5a4e44; border-radius: 10px;
  opacity: .8;
}

/* the song's notes: docked on the right like Logic's Note Pad */
.notepad {
  --c: var(--sage);
  display: flex; flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #1c1916;
  border: 1px solid #000;
  border-radius: 8px;
}
.notepad-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px;
  font-size: 11.5px;
  background: #2a2420;
  border-bottom: 1px solid #000;
}
.notepad-title { opacity: .7; }
.notepad-tabs { display: flex; padding: 2px; background: #1a1613; border-radius: 6px; }
.notepad-tabs span { padding: 3px 10px; border-radius: 4px; opacity: .55; }
.notepad-tabs .is-on { background: #3a322b; opacity: 1; }
.notepad-body { flex: 1; overflow: auto; padding: 18px 20px 22px; }
.notepad-body h2 { margin: 0 0 10px; font: 500 15px/1.4 ui-sans-serif, system-ui, -apple-system, sans-serif; }
.notepad-text p { margin: 0 0 12px; font: 15px/1.65 ui-sans-serif, system-ui, -apple-system, sans-serif; color: rgba(243, 233, 220, .9); }
.caret {
  display: inline-block; width: 1.5px; height: 1.1em; margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--cream);
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.notepad-specs {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px;
  margin: 18px 0 0; padding-top: 14px;
  font-size: 12.5px;
  border-top: 1px solid #3a322b;
}
.notepad-specs dt { opacity: .55; }
.notepad-specs dd { margin: 0; }
.notepad.is-soloed { animation-name: solo-inset; }
.song-date { margin: -4px 0 14px; font-size: 11.5px; opacity: .55; }
.song-date:empty { display: none; }
.song-tuning { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.song-tuning:empty { display: none; }
.song-tuning li {
  padding: 3px 9px;
  font-size: 11.5px;
  color: #1b1612;
  background: color-mix(in srgb, var(--rust) 75%, #f3e9dc);
  border-radius: 4px;
}
.song-lyrics p { margin: 0 0 16px; font: 15px/1.65 ui-sans-serif, system-ui, -apple-system, sans-serif; color: rgba(243, 233, 220, .9); }
.song-lyrics p:last-child { margin-bottom: 0; }
.song-lyrics .caret { height: 1.1em; }
.song-ask {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; margin-top: 18px; padding: 0 18px 0 14px;
  font: 500 14px var(--mono);
  color: #fbf4e8;
  text-decoration: none;
  background: #c8453a;
  border-radius: 999px;
  transition: background-color .2s ease;
}
.song-ask:hover { background: #d4554a; }
.song-ask .rec-dot { width: 9px; height: 9px; background: #fbf4e8; box-shadow: none; animation: soft-pulse 2.6s ease-in-out infinite; }

/* the demo: a play button on the track, and one long region with the song's real waveform */
.demo-play {
  display: flex; align-items: center; gap: 8px;
  min-width: 0; padding: 0;
  font: inherit; color: inherit;
  background: none; border: 0;
  cursor: pointer;
}
.play-glyph { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c); }
.play-glyph::before {
  content: ""; position: absolute; left: 8px; top: 6px;
  border-left: 8px solid #1b1612; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.demo-play[aria-pressed="true"] .play-glyph::before {
  left: 7px; top: 7px; width: 8px; height: 8px;
  border: 0;
  background: linear-gradient(90deg, #1b1612 0 3px, transparent 3px 5px, #1b1612 5px);
}
.track.is-demo .track-lane { padding: 8px; }
.demo-region {
  position: relative;
  width: 100%; max-width: 100%; margin-left: 0;
  padding: 0;
  font: inherit; text-align: left;
  border: 0;
  cursor: pointer;
}
.demo-region::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(var(--progress, 0) * 100%);
  background: rgba(0, 0, 0, .14);
  pointer-events: none;
}
.demo-wave { display: flex; flex: 1; min-height: 38px; }
.demo-wave .clip-wave { flex: 1; width: 100%; height: auto; min-height: 38px; padding: 3px 0; opacity: .5; }
.demo-playhead {
  position: absolute; top: 0; bottom: 0; z-index: 1;
  left: calc(var(--progress, 0) * 100%);
  width: 1.5px;
  background: #fbf4e8;
  box-shadow: 0 0 6px rgba(0, 0, 0, .5);
  pointer-events: none;
}

/* ---------- sheets ---------- */

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(10, 9, 8, .5);
  opacity: 0;
  transition: opacity .3s ease;
}
.sheet-backdrop.is-open { opacity: 1; }

.sheet {
  --rot: 0deg;
  position: fixed; left: 50%; top: 50%; z-index: 50;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 30px 26px 26px;
  color: var(--ink);
  opacity: 0;
  transform: translate(-50%, -46%) rotate(var(--rot));
  transition: opacity .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.sheet.is-open { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot)); }
.sheet h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 6px;
  font: 400 42px/1 var(--hand);
}
.sheet h2:focus { outline: none; }
.sheet h2 .rec-dot { width: 16px; height: 16px; }
.sheet-close {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px;
  font-size: 28px; line-height: 1;
  background: transparent; border: 0; border-radius: 50%;
  cursor: pointer;
}
.sheet-close:hover { background: rgba(0, 0, 0, .06); }
.sheet-lede, .card-lede { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.sheet .btn { margin-top: 18px; width: 100%; min-height: 54px; }

.sheet-paper { --rot: -.6deg; background: var(--paper); border-radius: 4px; }
/* the number shows on a little old-phone LCD */
.big-number {
  display: block;
  margin: 18px 0 4px;
  padding: 16px 10px 12px;
  font: 400 clamp(38px, 11vw, 50px)/1 'VT323', var(--mono);
  letter-spacing: .04em;
  text-align: center;
  white-space: nowrap;
  color: #1e2a18;
  text-decoration: none;
  text-shadow: 1px 1px 0 rgba(30, 42, 24, .18);
  background:
    repeating-linear-gradient(0deg, rgba(30, 42, 24, .05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(30, 42, 24, .05) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #b9c7a0, #a8b78e);
  border: 6px solid #2b2824;
  border-radius: 10px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .28), 0 1px 0 rgba(255, 255, 255, .5);
}
.big-number:hover { background-color: #c3d0aa; filter: brightness(1.04); }

/* "where should i play?": a big version of the index card on the desk */
.sheet-card {
  --rot: .8deg;
  --rule: rgba(92, 128, 186, .32);
  background: #fbf8f1;
  border-radius: 3px;
}
.card-title {
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgba(214, 84, 72, .6);
}
.card-lede { margin-top: 10px; }
.sheet.sheet-card { width: min(700px, calc(100vw - 32px)); }
.sheet-card.is-flipping { animation: card-flip .6s ease-in-out; }
@keyframes card-flip {
  0%, 100% { transform: translate(-50%, -50%) rotate(var(--rot)) scaleX(1); }
  50% { transform: translate(-50%, -50%) rotate(var(--rot)) scaleX(.02); }
}

.city-line input {
  padding: 4px 2px;
  font: 400 27px/1.25 var(--hand);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
@keyframes write-in {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.city-line { display: block; margin-top: 2px; }
.city-line input {
  display: block; width: 100%;
  background: transparent;
  border-width: 0 0 1px;
  border-radius: 0;
}
.city-line input::placeholder { color: rgba(40, 32, 20, .38); }
.city-line input:focus { outline: none; border-bottom: 1.5px solid var(--ink); }
.hand { font: 400 1.6em/1 var(--hand); color: var(--ink); }

.town-picker { position: relative; }
.town-options {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 3;
  margin: 2px 0 0; padding: 4px;
  max-height: 260px; overflow: auto;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(27, 24, 20, .15);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.town-options li {
  padding: 9px 10px;
  font: 400 22px/1.15 var(--hand);
  border-radius: 5px;
  cursor: pointer;
}
.town-options li:hover, .town-options li[aria-selected="true"] { background: rgba(92, 128, 186, .12); }
.town-options li.is-freeform { font: 12.5px/1.4 var(--mono); color: var(--ink-soft); }

.mini-btn {
  flex: none;
  min-height: 34px; padding: 0 12px;
  font: 500 12.5px var(--mono);
  color: #fbf4e8; background: var(--ink);
  border: 0; border-radius: 999px;
  cursor: pointer;
}
.mini-btn:disabled { color: var(--ink-soft); background: rgba(27, 24, 20, .08); cursor: default; }
.mini-btn-plain { color: var(--ink); background: transparent; border: 1px solid rgba(27, 24, 20, .35); }

.flip-link {
  display: block;
  margin: 16px auto 0; padding: 8px 4px;
  font: 400 22px/1.1 var(--hand);
  color: var(--ink);
  background: none; border: 0;
  cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 5px;
}
.flip-link:hover { text-decoration-color: currentColor; }

/* the map on the back of the card */
.tour-map { position: relative; margin-top: 12px; aspect-ratio: 975 / 610; }
.map-drawing, .map-drawing svg { display: block; width: 100%; height: 100%; }
.map-drawing svg { overflow: visible; }
.map-coast, .map-borders {
  fill: none;
  stroke: #2a2520;
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.map-coast { stroke-width: 1.3; }
.map-borders { stroke-width: .7; opacity: .35; }
.pin { cursor: pointer; outline: none; }
.pin-hit { fill: transparent; }
.pin-dot { fill: var(--ink); opacity: .85; transition: opacity .2s ease; }
.pin:hover .pin-dot, .pin.is-selected .pin-dot { opacity: 1; }
.pin.is-mine .pin-dot { fill: #3d5f93; }
.pin:focus-visible .pin-dot { stroke: #f0c27a; stroke-width: 3; vector-effect: non-scaling-stroke; }
.map-home { pointer-events: none; }
.home-star {
  fill: none;
  stroke: #c8453a; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.home-label { font: 400 26px var(--hand); fill: #c8453a; }
.pin-circle {
  fill: none;
  stroke: #c8453a; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
/* "most asked for": a small top-5 right under the map */
.top-towns {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); column-gap: 20px;
  margin: 10px 0 0; padding: 0;
  list-style: none;
  font-size: 12px;
}
.top-towns:empty { display: none; }
.top-towns::before {
  content: "most asked for";
  grid-column: 1 / -1;
  margin-bottom: 2px;
  font: 400 19px/1 var(--hand);
  color: var(--ink);
}
.top-town {
  display: flex; align-items: baseline; gap: 8px;
  width: 100%; padding: 2px 0;
  font: inherit; text-align: left;
  color: var(--ink);
  background: none; border: 0;
  cursor: pointer;
}
.top-town .town-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-town .town-count { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.top-town:hover .town-name { text-decoration: underline; text-underline-offset: 2px; }
.map-pop {
  position: absolute; z-index: 2;
  display: grid; gap: 2px;
  max-width: 190px; padding: 6px 9px 7px;
  font-size: 11px; line-height: 1.3; color: var(--ink-soft);
  background: #fff;
  border: 1px solid rgba(27, 24, 20, .12);
  border-radius: 7px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
  transform: translate(-50%, calc(-100% - 12px));
}
.map-pop.is-below { transform: translate(-50%, 12px); }
.map-pop-town { padding-right: 16px; font: 400 19px/1 var(--hand); color: var(--ink); white-space: nowrap; }
.map-pop-close {
  position: absolute; top: 2px; right: 2px;
  width: 22px; height: 22px; padding: 0;
  font-size: 16px; line-height: 1;
  color: var(--ink-soft);
  background: none; border: 0; border-radius: 50%;
  cursor: pointer;
}
.map-pop-close:hover { color: var(--ink); background: rgba(27, 24, 20, .07); }
.map-pop-actions { display: flex; gap: 5px; margin-top: 4px; }
.map-pop .mini-btn { min-height: 26px; padding: 0 9px; font-size: 11px; }
.map-pop [data-action="me-too"]:disabled { display: none; }
.map-status, .elsewhere { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.elsewhere-town {
  padding: 0; font: inherit; color: var(--ink);
  background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px;
}
.map-thanks { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule); }
.map-thanks .btn { margin-top: 12px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.field { display: block; margin-top: 16px; font: 400 21px/1.2 var(--hand); color: var(--ink-soft); }
.opt { font-size: 16px; opacity: .6; }
.field input, .field textarea {
  display: block; width: 100%;
  margin-top: 2px; padding: 8px 2px;
  font: 16px var(--mono);
  color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1.5px solid rgba(40, 32, 20, .4);
  border-radius: 0;
}
.field input { border-bottom-color: var(--rule); }
.field textarea { padding: 8px; resize: vertical; background: transparent; border: 1px solid var(--rule); border-radius: 4px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 1.5px 0 var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(40, 32, 20, .4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 12px 0 0; font-size: 13px; color: #9c2a1f; }
.form-error a { color: inherit; }
.fine-print { margin: 12px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--ink-soft); opacity: .8; }
.fine-print a { color: inherit; }
#signupSheet [data-view="email"] > .email-link { margin-top: 14px; }

/* "i'm lost, show me the links": the same paper as the other cards, every link a clear button */
.sheet-links { --rot: .5deg; }
.plain-links { margin-top: 6px; }
.links-heading {
  margin: 14px 0 5px;
  font: 400 24px/1 var(--hand);
  color: var(--ink-soft);
  transform: rotate(-1deg);
  transform-origin: left center;
}
.plain-links ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.plain-links ul.is-pair { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.plain-links .is-pair a { justify-content: center; padding: 0 10px; white-space: nowrap; }
.plain-links .is-pair .link-arrow { display: none; }
.plain-links .is-pair .link-text { flex: none; }
.plain-links a, .plain-links button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 46px; padding: 0 18px;
  font: 500 14.5px var(--mono);
  color: var(--ink);
  text-align: left; text-decoration: none;
  background: rgba(255, 255, 255, .35);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.plain-links a:hover, .plain-links button:hover { color: var(--paper); background: var(--ink); }
.plain-links a:active, .plain-links button:active { transform: scale(.98); }
.plain-links a:focus-visible, .plain-links button:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; }
.plain-links .link-text {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plain-links small { margin-left: 4px; font: 12.5px var(--mono); color: inherit; opacity: .6; }
.plain-links .link-arrow { margin-left: auto; font-size: 16px; }
.plain-links .is-main { color: #fbf4e8; background: var(--ink); }
.plain-links .is-main:hover { background: #342c25; }
.plain-links ul.social-icons { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.plain-links .social-icons a {
  justify-content: center;
  width: 46px; min-height: 46px; height: 46px; padding: 0;
  border-radius: 50%;
}
.plain-foot { margin: 14px 0 0; font-size: 12px; text-align: center; color: var(--ink-soft); opacity: .7; }

.toast {
  position: fixed; left: 50%; top: 18px; z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--cream); background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  transform: translate(-50%, -160%);
  transition: transform .35s ease;
}
.toast.is-on { transform: translate(-50%, 0); }

.noscript {
  position: fixed; left: 16px; right: 16px; top: 70px; z-index: 99;
  padding: 16px; color: var(--ink); background: var(--paper); border-radius: 8px;
}

/* ---------- phones ---------- */

@media (max-width: 700px) {
  .wordmark { font-size: 30px; }

  .hs-note .tag { left: auto; right: 0; transform: translate(0, calc(-10px / var(--s, 1))) rotate(1.5deg); }
  .hs-cd .tag { bottom: auto; top: 100%; transform: translate(-50%, calc(4px / var(--s, 1))) rotate(-3deg); }
  .hs-spk-right .tag { left: 50%; transform: translate(-100%, calc(-10px / var(--s, 1))) rotate(-1.5deg); }

  .wordmark { flex: none; font-size: 28px; white-space: nowrap; }
  .tag { font-size: calc(19px / var(--s, 1)); }
  .corner-link { padding: 9px 13px; white-space: nowrap; }

  /* the same torn, taped note as on computers, just narrower */
  .dock {
    left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    width: auto;
    padding: 14px 16px 8px;
    transform: rotate(-1deg);
  }
  .dock::before { top: -9px; width: 72px; height: 18px; }
  .dock-title { font-size: 26px; }
  .dock-sub { margin: 3px 0 10px; font-size: 11.5px; line-height: 1.4; }
  .dock-sub .sub-long { display: none; }
  .dock-sub .sub-short { display: inline; }
  .dock-text { min-height: 48px; font-size: 16px; }
  .email-link { margin-top: 4px; padding: 5px 0; }
}

/* ---------- phones (upright or sideways): eva's home screen; each app opens full-screen ---------- */
@media (max-width: 700px), (max-height: 500px) {
  .screen { padding: 0; }
  .desk-only { display: none; }
  .phone-only { display: inline; }

  .home {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; gap: 22px;
    overflow: auto;
    padding: max(16px, env(safe-area-inset-top)) 22px calc(124px + env(safe-area-inset-bottom));
  }
  .home-back {
    align-self: flex-start;
    padding: 9px 14px;
    font: 12.5px/1 var(--mono);
    color: var(--cream);
    background: rgba(20, 18, 16, .45);
    border: 1px solid rgba(243, 233, 220, .25);
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .widget {
    display: flex; align-items: center; gap: 14px;
    width: 100%; padding: 14px;
    text-align: left;
    color: var(--cream);
    background: rgba(30, 26, 23, .55);
    border: 1px solid rgba(243, 233, 220, .14);
    border-radius: 22px;
    cursor: pointer;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .widget-art {
    flex: none;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    width: 58px; height: 58px;
    background: linear-gradient(160deg, #3d352e, #1d1916);
    border-radius: 13px;
  }
  .widget-art span { width: 4px; height: 40%; border-radius: 2px; background: var(--amber); transform-origin: 50% 50%; }
  .widget-art span:nth-child(2) { height: 70%; }
  .widget-art span:nth-child(3) { height: 50%; }
  .widget-art span:nth-child(4) { height: 82%; }
  .widget-art span:nth-child(5) { height: 34%; }
  .widget[aria-pressed="true"] .widget-art span { animation: eq .8s ease-in-out infinite alternate; }
  .widget[aria-pressed="true"] .widget-art span:nth-child(2n) { animation-delay: -.4s; }
  .widget[aria-pressed="true"] .widget-art span:nth-child(3n) { animation-duration: .6s; }
  .widget-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .widget-text small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
  .widget-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 500; }
  .widget-sub { font-size: 12px; opacity: .7; }
  .widget-play { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--cream); }
  .widget-play::before {
    content: ""; position: absolute; left: 16px; top: 13px;
    border-left: 13px solid #1b1814; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  }
  .widget[aria-pressed="true"] .widget-play::before {
    left: 14px; width: 14px; height: 16px;
    border: 0;
    background: linear-gradient(90deg, #1b1814 0 5px, transparent 5px 9px, #1b1814 9px);
  }
  .home-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 6px;
    margin: 0; padding: 0; list-style: none;
  }
  .home-grid li { display: flex; justify-content: center; }

  .os-dock {
    position: absolute; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; justify-content: space-around;
    padding: 12px 8px 10px;
    background: rgba(40, 35, 31, .45);
    border: 1px solid rgba(243, 233, 220, .12);
    border-radius: 30px;
    backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  }

  /* an open app covers the whole screen */
  .app-window, .screen[data-app="studio"] .daw {
    position: absolute; inset: 0; z-index: 6;
    border-radius: 0;
    animation: app-open .32s cubic-bezier(.2, .8, .2, 1);
  }
  .screen:not([data-app="studio"]) .daw { display: none; }
  .window-bar { min-height: 54px; padding: max(6px, env(safe-area-inset-top)) 10px 6px; }
  .app-back { display: inline-flex; align-items: center; gap: 6px; }
  .note-page { padding: 16px 22px calc(30px + env(safe-area-inset-bottom)); }

  .daw { grid-template-rows: auto minmax(0, 1fr); border-radius: 0; }
  .daw-titlebar {
    display: grid; grid-template-columns: auto auto; grid-template-areas: "back right" "signup signup";
    row-gap: 8px;
    padding: max(8px, env(safe-area-inset-top)) 10px 10px;
  }
  .back-btn { grid-area: back; justify-self: start; }
  .titlebar-right { grid-area: right; justify-self: end; }
  .titlebar-signup { grid-area: signup; }
  .rec-arm { flex: 1; min-height: 46px; }
  .wide-only { display: none; }
  .daw-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .mixer { order: 2; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid #000; }
  .channel { flex: 1; width: auto; min-height: 48px; flex-direction: row; justify-content: center; padding: 0 4px; font-size: 12.5px; }
  .channel .fader { display: none; }
  .channel::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); opacity: .5; }
  .channel[aria-current]::before { opacity: 1; box-shadow: 0 0 8px var(--c); }
  .daw-main { padding: 10px; }
  .lane { grid-template-columns: minmax(0, 1fr); }
  .lane-head { flex-direction: row; align-items: center; padding: 8px 12px; border-right: 0; border-bottom: 1px solid #000; }
  .lane-body { padding: 10px; }
  .stack-row, .track { grid-template-columns: 150px minmax(0, 1fr); }
  .ms { display: none; }
  .region { margin-left: 0; max-width: 100%; }
}
@keyframes app-open { from { opacity: 0; transform: scale(.92); } }
@keyframes eq { to { transform: scaleY(.35); } }

/* phones held sideways: a wider grid so the home screen fits */
@media (max-height: 500px) and (min-width: 560px) {
  .home { padding-inline: max(40px, env(safe-area-inset-left)); }
  .home-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .widget { max-width: 420px; }
}

@media (max-width: 700px) {
  .sheet {
    left: 0; right: 0; top: auto; bottom: 0;
    width: auto;
    max-height: 90dvh;
    padding-bottom: calc(26px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }
  .sheet.is-open { transform: none; }
  .sheet.sheet-card { width: auto; }
  .sheet-card.is-flipping { animation-name: card-flip-phone; }}

/* small phones: the name and the button have to share one line */
@media (max-width: 430px) {
  .lost-rest { display: none; }
}

@keyframes card-flip-phone {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(.02); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
