/*
 * The landing page, in the game's own look (src/style.css, scripts/store/media/template.html): the room wallpapers with
 * drifting paws, titles white with a thick cocoa outline, cream panels in a caramel frame, jelly pills and buttons.
 * Titles, pills and buttons take the language's display font, subset to site/messages.js (npm run gen:fonts).
 */
@font-face { font-family: 'Display ko'; font-weight: 400; font-display: swap; src: url('/fonts/display-ko.woff2') format('woff2'); }
@font-face { font-family: 'Display en'; font-weight: 600; font-display: swap; src: url('/fonts/display-en.woff2') format('woff2'); }
@font-face { font-family: 'Display ja'; font-weight: 800; font-display: swap; src: url('/fonts/display-ja.woff2') format('woff2'); }
@font-face { font-family: 'Display zh-hant'; font-weight: 900; font-display: swap; src: url('/fonts/display-zh-hant.woff2') format('woff2'); }
@font-face { font-family: 'Display es'; font-weight: 600; font-display: swap; src: url('/fonts/display-es.woff2') format('woff2'); }

:root {
  --ink: #5a3222; --ink-2: #93644c;
  --paper: #fffaf0;
  --tomato: #ff6c4d; --grass: #3dbd72; --sun: #ffc83d; --sky: #4db2f2; --plum: #9a72e3; --pink: #ff7898;
  --frame: #e3a864; --frame-d: #b26f36;
  --spring: cubic-bezier(.34, 1.56, .5, 1);
  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='%23000' opacity='.07'%3E%3Cellipse cx='22' cy='27' rx='7' ry='6'/%3E%3Cellipse cx='14' cy='18' rx='3' ry='4'/%3E%3Cellipse cx='21' cy='14' rx='3' ry='4'/%3E%3Cellipse cx='29' cy='16' rx='3' ry='4'/%3E%3Cellipse cx='66' cy='69' rx='7' ry='6'/%3E%3Cellipse cx='58' cy='60' rx='3' ry='4'/%3E%3Cellipse cx='65' cy='56' rx='3' ry='4'/%3E%3Cellipse cx='73' cy='58' rx='3' ry='4'/%3E%3C/g%3E%3C/svg%3E");
  --rounded: ui-rounded, 'Hiragino Maru Gothic ProN', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --display: 'Display en', var(--rounded); --display-weight: 600; --stroke-scale: 1;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: max(20px, (100% - 1120px) / 2);
  color: var(--ink);
  background: #ffe6bd;
  font-family: var(--body);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
:root:lang(ko) { --display: 'Display ko', var(--rounded); --display-weight: 400; --body: 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif; }
:root:lang(es) { --display: 'Display es', var(--rounded); }
:root:lang(ja) { --display: 'Display ja', var(--rounded); --display-weight: 800; --body: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', system-ui, sans-serif; }
:root:lang(zh-Hant) { --display: 'Display zh-hant', var(--rounded); --display-weight: 900; --body: 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', system-ui, sans-serif; }
/* Outlines are thinner on kanji and hanzi, whose dense strokes would fill in. */
:root:is(:lang(ja), :lang(zh-Hant)) { --stroke-scale: .65; }
/* Korean breaks only between words; Japanese keeps small kana off a line's start and titles break between phrases. */
:root:lang(ko) { word-break: keep-all; }
:root:lang(ja) { line-break: strict; }
:root:lang(ja) :is(.title, .pill, .kicker) { word-break: auto-phrase; }
:root:lang(zh-Hant) { line-break: strict; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; overflow-x: clip; transition: opacity .3s ease; }
/* landing.js shows the page once its words are in, or after a moment regardless. */
.js:not(.ready) body { opacity: 0; animation: show 0s 2.5s forwards; }
@keyframes show { to { opacity: 1; } }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* The paw wallpaper drifts diagonally by one tile, as in the game; it lies over the walls and under everything else. */
body::before { content: ''; position: fixed; z-index: 1; top: -88px; left: -88px; right: 0; bottom: 0; background: var(--paw); pointer-events: none; will-change: transform; animation: paw-drift 26s linear infinite; }
@keyframes paw-drift { to { transform: translate(88px, 88px); } }

/* Walls, one per room size as in the game, meeting at a scalloped blanket edge. */
[data-wall="honey"] { --wall-a: #ffe6bd; --wall-b: #ffc39e; --accent: var(--tomato); }
[data-wall="mint"] { --wall-a: #dff5d9; --wall-b: #a9dfbf; --accent: var(--grass); }
[data-wall="lavender"] { --wall-a: #ece0ff; --wall-b: #c6b0f3; --accent: var(--plum); }
[data-wall="peach"] { --wall-a: #fff0d0; --wall-b: #ffd2a8; --accent: var(--tomato); }
.wall { position: relative; background: linear-gradient(var(--wall-a), var(--wall-b)); padding: clamp(84px, 11vw, 140px) var(--gutter); }
.wall > * { position: relative; z-index: 2; }
.wall + .wall::before { content: ''; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 18px; background: radial-gradient(circle at 50% 100%, var(--wall-a) 17px, transparent 17.5px) 0 0 / 36px 18px repeat-x; }

/* Type. */
.title { margin: 0; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(36px, 4.6vw, 58px); line-height: 1.16; letter-spacing: .005em; color: #fff; text-wrap: balance;
  -webkit-text-stroke: calc(.2em * var(--stroke-scale)) var(--ink); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--ink), 0 .15em .22em #5a2d1238; }
.title em { font-style: normal; color: var(--sun); }
.kicker { margin: 0; display: inline-block; font: var(--display-weight) 15px/1 var(--display); color: #fff; padding: .5em 1em .45em; border-radius: 999px;
  background: linear-gradient(color-mix(in srgb, var(--accent), #fff 35%), var(--accent) 65%); border: 2px solid color-mix(in srgb, var(--accent), #1f0f2a 38%);
  box-shadow: inset 0 2px 0 #ffffff8c, 0 3px 0 color-mix(in srgb, var(--accent), #1f0f2a 38%); -webkit-text-stroke: calc(.15em * var(--stroke-scale)) color-mix(in srgb, var(--accent), #1f0f2a 38%); paint-order: stroke fill; }
.pill { margin: 0; display: inline-block; max-width: 100%; font: var(--display-weight) clamp(16px, 1.6vw, 19px)/1.3 var(--display); color: var(--ink); text-wrap: balance;
  padding: .5em 1.15em .45em; border-radius: 1.3em; background: linear-gradient(#fffdf7, #fff1da); border: 3px solid var(--frame);
  box-shadow: inset 0 2px 0 #fff, inset 0 -3px 0 #f3dcbc, 0 4px 0 var(--frame-d), 0 9px 16px #5a2d1230; }
.body, .lede, .note, .steps { font-size: clamp(16px, 1.45vw, 18px); line-height: 1.7; text-wrap: pretty; }
.body, .lede, .note { margin: 0; max-width: 34em; }
.note { font-size: 15px; color: var(--ink-2); }
.center { margin-inline: auto; text-align: center; }

/* Jelly: a glossy face with an outline and lip in its own dark shade, the label white and stroked to match. */
.jelly { --c: var(--tomato); --c-hi: color-mix(in srgb, var(--c), #fff 45%); --c-edge: color-mix(in srgb, var(--c), #1f0f2a 42%);
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: var(--display-weight) 17px/1 var(--display); color: #fff; white-space: nowrap;
  padding: .66em 1.15em .6em; border-radius: 999px; border: 2px solid var(--c-edge); background: linear-gradient(var(--c-hi), var(--c) 62%);
  box-shadow: inset 0 2px 0 #ffffffa6, inset 0 -3px 0 #0000001c, 0 4px 0 var(--c-edge), 0 8px 14px #5a2d1238;
  -webkit-text-stroke: calc(.16em * var(--stroke-scale)) var(--c-edge); paint-order: stroke fill; }
button.jelly { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s ease, box-shadow .12s ease; }
button.jelly:active { transform: translateY(3px); box-shadow: inset 0 2px 0 #ffffffa6, inset 0 -3px 0 #0000001c, 0 1px 0 var(--c-edge), 0 3px 6px #5a2d1230; }
.jelly svg { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1.5px 0 var(--c-edge)); }

/* Top bar. */
.topbar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--gutter) 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: var(--display-weight) 20px/1 var(--display); color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 0 #5a2d1226, 0 6px 12px #5a2d1226; }
.lang-pick { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 11px; border-radius: 999px; background: linear-gradient(#fffdf7, #fff1da);
  border: 2px solid var(--frame); box-shadow: inset 0 2px 0 #fff, 0 3px 0 var(--frame-d); }
.lang-pick svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.lang-pick select { appearance: none; border: 0; margin: 0; padding: 0 18px 0 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235a3222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right center / 11px 8px;
  font: 600 15px/1.2 system-ui, -apple-system, sans-serif; color: var(--ink); cursor: pointer; }
.lang-pick select:focus-visible { outline: none; }
.lang-pick:has(select:focus-visible) { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Hero: the logo and the trailer first, then the words and the stores. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title video" "cta video"; column-gap: clamp(32px, 7vw, 110px); row-gap: 26px; align-items: center;
  padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(84px, 9vw, 120px); min-height: min(calc(100svh - 54px), 940px); }
.hero-title { grid-area: title; align-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-cta { grid-area: cta; align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.lede { font-size: clamp(17px, 1.6vw, 20px); }
.stores { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 26px; }
.store { display: block; border-radius: 10px; transition: transform .15s var(--spring); }
.store:hover { transform: translateY(-2px); }
.store img { height: 48px; width: auto; }
.free { margin: 12px 0 0; font: var(--display-weight) 15px/1.3 var(--display); color: var(--ink-2); }

/* The logo: the game's name, the part that says "not" in tomato (Korean has it after the name, inline). */
.logo { margin: 0 0 0 -.02em; display: flex; flex-direction: column; align-items: flex-start; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(64px, 9vw, 124px); line-height: .98; color: #fff;
  -webkit-text-stroke: calc(.2em * var(--stroke-scale)) var(--ink); paint-order: stroke fill; text-shadow: 0 .075em 0 var(--ink), 0 .14em .2em #5a2d1238; }
.logo .not { color: var(--tomato); font-size: .52em; transform: rotate(-4deg); transform-origin: left bottom; margin: 0 0 .05em .06em; }
.logo .rest { white-space: nowrap; }
:root:lang(es) .logo { font-size: clamp(56px, 7.6vw, 108px); }
:root:lang(ko) .logo { flex-direction: row; align-items: baseline; gap: .04em; }
:root:lang(ko) .logo .not { order: 2; font-size: .74em; margin: 0 0 0 .04em; transform: rotate(-9deg) translateY(-.1em); }

.hero-video { grid-area: video; position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; --phone: clamp(240px, min(27vw, calc((100svh - 190px) * .44)), 340px); }
.hero-video::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 42%; width: 190%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, #fffaf0d9, #fffaf000); }
.phone { position: relative; width: var(--phone); padding: calc(var(--phone) * .03); border-radius: calc(var(--phone) * .15); background: linear-gradient(155deg, #835039, #4f2b1c 60%);
  box-shadow: inset 0 2px 0 #ffffff40, inset 0 -3px 0 #00000033, 0 9px 0 #3a1d11, 0 28px 50px #5a2d1252; rotate: 2.5deg; }
.phone video { width: 100%; aspect-ratio: 592 / 1282; object-fit: cover; border-radius: calc(var(--phone) * .125); background: #dbf1df; }
.video-controls { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.video-controls[hidden] { display: none; }
.sound { --c: var(--tomato); }
.sound.on { --c: var(--grass); }
.sound .speaker, .round .triangle { fill: #fff; }
.sound:not(.on) .waves, .sound.on .cross { display: none; }
.round { --c: var(--sun); width: 46px; height: 46px; padding: 0; }
.round.paused .bars, .round:not(.paused) .triangle { display: none; }
.zzz { position: absolute; z-index: 3; left: -6%; top: 2%; pointer-events: none; font: var(--display-weight) 30px/1 var(--display, sans-serif); color: #fff; -webkit-text-stroke: calc(.2em * var(--stroke-scale)) var(--ink); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--ink); }
.zzz i { position: absolute; font-style: normal; animation: snore 3.6s ease-in-out infinite; }
.zzz i:nth-child(1) { left: 26px; top: 66px; font-size: 1em; }
.zzz i:nth-child(2) { left: 6px; top: 26px; font-size: 1.35em; animation-delay: -1.2s; }
.zzz i:nth-child(3) { left: -26px; top: -18px; font-size: 1.8em; animation-delay: -2.4s; }
@keyframes snore { 0%, 100% { translate: 0 0; rotate: -10deg; opacity: .9; } 50% { translate: -6px -9px; rotate: 6deg; opacity: 1; } }

/* Features: words beside a capture of the game, sides alternating. */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature.flip .media { order: -1; }
.copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.copy .title { margin-bottom: 4px; }
.media { display: flex; justify-content: center; }
.screen { width: min(100%, 440px); height: auto; filter: drop-shadow(0 18px 26px #5a2d1230); }
.screen.rounded { border-radius: 28px; filter: none; box-shadow: 0 0 0 5px #fff, 0 18px 34px #5a2d1233; }

.steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: flex-start; gap: 14px; padding: 12px 16px; border-radius: 18px; background: #ffffffb8; box-shadow: 0 3px 0 #5a2d1214; line-height: 1.55; }
.chip { --c: var(--grass); --c-edge: color-mix(in srgb, var(--c), #1f0f2a 38%); flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -2px; border-radius: 10px;
  font: var(--display-weight) 19px/1 var(--display); color: #fff; background: linear-gradient(color-mix(in srgb, var(--c), #fff 40%), var(--c) 62%); border: 2px solid var(--c-edge);
  box-shadow: inset 0 2px 0 #ffffff99, 0 3px 0 var(--c-edge); -webkit-text-stroke: calc(.16em * var(--stroke-scale)) var(--c-edge); paint-order: stroke fill; }

/* Blankets and the guests they hold. */
.tiers { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; width: min(100%, 460px); }
.tiers li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; border-radius: 18px; background: #ffffffb8; box-shadow: 0 3px 0 #5a2d1214; font-size: 15px; line-height: 1.3; }
.tiers b { justify-self: end; text-align: center; max-width: 11em; font: var(--display-weight) 15px/1.15 var(--display); color: #fff; padding: .45em .8em .4em; border-radius: 999px; background: var(--tier);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--tier), #1f0f2a 35%); -webkit-text-stroke: calc(.15em * var(--stroke-scale)) color-mix(in srgb, var(--tier), #1f0f2a 35%); paint-order: stroke fill; }
.roll { position: relative; display: block; height: 28px; border-radius: 14px; rotate: -8deg; border: 2px solid var(--roll-edge); box-shadow: inset 0 3px 0 #ffffff80, inset 0 -4px 0 #0000001a, 0 4px 6px #5a2d1226; }
.roll::after { content: ''; position: absolute; top: -2px; bottom: -2px; right: 13px; width: 6px; border-radius: 3px; background: #e2574c; box-shadow: 0 0 0 1px #b53b31; }
[data-tier="common"] { --tier: #a8998a; --roll-edge: #c4b199; }
[data-tier="common"] .roll { background: linear-gradient(#fffaf0, #eadcc4); }
[data-tier="rare"] { --tier: #4f93e6; --roll-edge: #3b76c4; }
[data-tier="rare"] .roll { background: repeating-linear-gradient(90deg, #4f93e6aa 0 3px, transparent 3px 11px), repeating-linear-gradient(0deg, #4f93e666 0 3px, transparent 3px 9px), #e0edff; }
[data-tier="epic"] { --tier: #8a5ee0; --roll-edge: #6a47b3; }
[data-tier="epic"] .roll { background: linear-gradient(170deg, #c7a6ff, #8a5ee0 55%, #6a47b3); }
[data-tier="legendary"] { --tier: #e6a51f; --roll-edge: #c28512; }
[data-tier="legendary"] .roll { background: repeating-linear-gradient(115deg, #fff3b0 0 2px, transparent 2px 9px), linear-gradient(#ffe27a, #f2b51d); box-shadow: inset 0 3px 0 #ffffff80, 0 0 14px #ffd23fb3, 0 4px 6px #5a2d1226; animation: shimmer 2.4s ease-in-out infinite; }
@keyframes shimmer { 50% { box-shadow: inset 0 3px 0 #ffffff80, 0 0 22px #ffd23f, 0 4px 6px #5a2d1226; } }

/* Guest faces with name tags. */
.faces { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 12px; }
.faces li { width: 88px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.faces img { width: 84px; height: 84px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 5px 0 #5a2d121f, 0 10px 18px #5a2d1229; animation: bob 3.4s ease-in-out infinite; }
.faces li:nth-child(2) img { animation-delay: -.7s; } .faces li:nth-child(3) img { animation-delay: -1.4s; } .faces li:nth-child(4) img { animation-delay: -2.1s; } .faces li:nth-child(5) img { animation-delay: -2.8s; }
.faces span { font: var(--display-weight) 13px/1.2 var(--display); color: var(--ink); overflow-wrap: anywhere; }
@keyframes bob { 50% { translate: 0 -6px; } }

/* Personalities. */
.tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.tags li { --c: var(--tomato); font: var(--display-weight) 15px/1 var(--display); color: #fff; padding: .55em .95em .5em; border-radius: 999px; background: linear-gradient(color-mix(in srgb, var(--c), #fff 40%), var(--c) 62%);
  border: 2px solid color-mix(in srgb, var(--c), #1f0f2a 38%); box-shadow: inset 0 2px 0 #ffffff8c, 0 3px 0 color-mix(in srgb, var(--c), #1f0f2a 38%);
  -webkit-text-stroke: calc(.15em * var(--stroke-scale)) color-mix(in srgb, var(--c), #1f0f2a 38%); paint-order: stroke fill; }
.tags li:nth-child(8n+2) { --c: var(--sun); } .tags li:nth-child(8n+3) { --c: var(--pink); } .tags li:nth-child(8n+4) { --c: var(--grass); }
.tags li:nth-child(8n+5) { --c: var(--sky); } .tags li:nth-child(8n+6) { --c: var(--plum); } .tags li:nth-child(8n+7) { --c: #ff9f43; } .tags li:nth-child(8n+8) { --c: #e6a51f; }

/* Bond steps, warming from pale to deep pink; the last three (in white) bring postcards. */
.bond { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; }
.bond li { display: inline-flex; align-items: center; gap: 6px; font: var(--display-weight) 15px/1 var(--display); padding: .5em .85em .45em .6em; border-radius: 999px; background: #ffffffc4; box-shadow: 0 3px 0 #5a2d1214; }
.bond i { font: normal 17px/1 system-ui, sans-serif; color: #ffc2cf; }
.bond li:nth-child(2) i { color: #ffa0b5; } .bond li:nth-child(3) i { color: #ff7f9c; } .bond li:nth-child(4) i { color: #ff5f86; } .bond li:nth-child(5) i { color: #f03f6c; }
.bond li:nth-child(n+3) { background: #fff; box-shadow: 0 3px 0 #f03f6c33, 0 0 0 2px #ffc2cf; }
.postcards { position: relative; width: min(100%, 460px); aspect-ratio: 1 / 1.02; }
.postcards img { position: absolute; width: 70%; height: auto; border-radius: 4.5% / 4.3%; box-shadow: 0 2px 0 #e9d6b8, 0 16px 30px #3a21163a; }
.postcards img:nth-child(1) { left: 1%; top: 2%; rotate: -9deg; }
.postcards img:nth-child(2) { left: 16%; top: 15%; rotate: 4deg; }
.postcards img:nth-child(3) { right: 0; bottom: 1%; rotate: -2deg; }

/* Rooms: three sizes side by side. */
.rooms { display: flex; flex-direction: column; align-items: center; }
.rooms .copy, .mocha .copy, .final .copy { align-items: center; text-align: center; }
.room-list { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); align-items: end; }
.room-list li { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.room-list li:nth-child(2) { transition-delay: .1s; } .room-list li:nth-child(3) { transition-delay: .2s; }
.room-list img { width: 100%; height: auto; filter: drop-shadow(0 16px 20px #5a2d122e); }
.room-list span { --c: var(--sun); }
.room-list [data-size="cozy"] span { --c: var(--grass); }
.room-list [data-size="spacious"] span { --c: var(--plum); }
.room-list span { font: var(--display-weight) 17px/1 var(--display); color: #fff; padding: .55em 1.1em .5em; border-radius: 999px; background: linear-gradient(color-mix(in srgb, var(--c), #fff 40%), var(--c) 62%);
  border: 2px solid color-mix(in srgb, var(--c), #1f0f2a 40%); box-shadow: inset 0 2px 0 #ffffff8c, 0 3px 0 color-mix(in srgb, var(--c), #1f0f2a 40%); -webkit-text-stroke: calc(.15em * var(--stroke-scale)) color-mix(in srgb, var(--c), #1f0f2a 40%); paint-order: stroke fill; }

/* Mocha, the manager: her portrait and a speech bubble, as in the tutorial. */
.mocha { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 44px); }
.coach { display: flex; align-items: center; gap: 22px; max-width: 720px; }
.portrait { margin: 0; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 0; }
.portrait img { width: 128px; height: 128px; border-radius: 50%; background: radial-gradient(#fff8e8, #ffd9a8); border: 5px solid #fff; box-shadow: 0 0 0 3px var(--frame), 0 6px 0 3px var(--frame-d), 0 14px 22px #5a2d1230; animation: bob 3.8s ease-in-out infinite; }
.portrait figcaption { position: relative; margin-top: -14px; font: var(--display-weight) 15px/1 var(--display); color: #fff; padding: .45em .9em .4em; border-radius: 999px; background: linear-gradient(#ff9a80, var(--tomato) 62%);
  border: 2px solid #c94428; box-shadow: 0 3px 0 #c94428; -webkit-text-stroke: calc(.15em * var(--stroke-scale)) #c94428; paint-order: stroke fill; white-space: nowrap; }
.bubble { position: relative; margin: 0; font: var(--display-weight) clamp(17px, 1.7vw, 20px)/1.5 var(--display); padding: 18px 22px; border-radius: 22px; background: linear-gradient(#fffdf7, #fff1da);
  border: 3px solid var(--frame); box-shadow: inset 0 2px 0 #fff, inset 0 -3px 0 #f3dcbc, 0 4px 0 var(--frame-d), 0 12px 20px #5a2d1230; text-wrap: pretty; }
.bubble::before, .bubble::after { content: ''; position: absolute; top: 50%; clip-path: polygon(100% 0, 100% 100%, 0 50%); }
.bubble::before { right: 100%; width: 18px; height: 26px; margin-top: -13px; background: var(--frame); }
.bubble::after { right: calc(100% - 4px); width: 15px; height: 19px; margin-top: -9.5px; background: #fff7e8; }

/* The end: the hotel's door, then a room full of guests. */
.final { display: flex; flex-direction: column; align-items: center; padding-bottom: 0; }
.final .title { font-size: clamp(36px, 5.2vw, 64px); }
.final .stores { justify-content: center; }
.room-art { width: min(100%, 640px); height: auto; margin-top: clamp(28px, 4vw, 48px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }

.footer { position: relative; z-index: 2; padding: 30px var(--gutter) 40px; background: #ffc39e; text-align: center; color: var(--ink-2); font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font: var(--display-weight) 16px/1.4 var(--display); }
.footer nav a { color: var(--ink); text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.footer small { display: block; max-width: 40em; margin: 14px auto 0; font-size: 11px; line-height: 1.5; opacity: .85; }

/* Pop in once in view (landing.js). */
.js .pop { opacity: 0; transform: translateY(32px) scale(.96); }
.js .pop.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .85s var(--spring); }

@media (hover: hover) {
  .faces img:hover, .portrait img:hover { animation-play-state: paused; }
}

/* Narrow screens: one column, the trailer right under the logo. */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "video" "cta"; justify-items: center; text-align: center; min-height: 0; row-gap: 22px; padding-top: 18px; }
  .hero-title, .hero-cta { align-items: center; align-self: auto; }
  .hero-title { gap: 16px; }
  .logo { align-items: center; font-size: clamp(54px, 16vw, 96px); }
  :root:lang(es) .logo { font-size: clamp(48px, 13.5vw, 88px); }
  .logo .not { transform-origin: center bottom; margin-left: 0; }
  .hero-video { --phone: clamp(200px, min(66vw, calc((100svh - 300px) * .45)), 300px); margin-top: 6px; }
  .zzz { left: -2%; font-size: 24px; }
  .stores { justify-content: center; margin-top: 20px; }
  .store img { height: 44px; }
  .lede { max-width: 30em; }
  .feature { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 40px; }
  .feature.flip .media { order: 0; }
  .copy { align-items: center; }
  .body, .note { margin-inline: auto; }
  .steps, .tiers { text-align: left; width: min(100%, 460px); }
  .faces, .tags, .bond { justify-content: center; }
  .screen { width: min(100%, 380px); }
  .room-list { grid-template-columns: repeat(3, minmax(64vw, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; width: auto; align-self: stretch; }
  .room-list::-webkit-scrollbar { display: none; }
  .room-list li { scroll-snap-align: center; }
  .coach { flex-direction: column; gap: 26px; }
  .bubble { text-align: center; }
  .bubble::before, .bubble::after { top: auto; left: 50%; clip-path: polygon(0 100%, 100% 100%, 50% 0); }
  .bubble::before { bottom: 100%; right: auto; width: 28px; height: 18px; margin: 0 0 0 -14px; }
  .bubble::after { bottom: calc(100% - 4px); right: auto; width: 20px; height: 14px; margin: 0 0 0 -10px; background: #fffdf7; }
}
@media (max-width: 480px) {
  .faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .faces li { width: auto; }
  .faces img { width: 100%; height: auto; aspect-ratio: 1; border-width: 3px; }
  .faces span { font-size: 12px; }
  .tiers li { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; font-size: 14px; }
  .tiers b { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, .zzz i, .faces img, .portrait img, [data-tier="legendary"] .roll { animation: none; }
  .js .pop { transform: none; }
}
