/* hideandcheck.whypixel.com — the pink poster of the app icon on top, the app's own paper below.
   Colors are the app's (HideAndCheck/Theme.swift); the pieces come from tools/pieces.py. */
:root {
  --paper: #F1EEE7; --panel: #E3DDD1; --fg: #1C1F1E; --sec: #6B675F; --cover: #6F9088; --cover-sh: #5F7E76;
  --tile: #FFFFFF; --zero: #E6E2D9; --dim: #CCC6BA; --gold: #A87E31; --line: #DCD5C7;
  --stone: #9C9381; --water: #D7D1C4; --wave: #86A6AB;
  --ink: #17312D; --pink: #E05198; --cream: #F5F0E4; --pill: #1C1F1E; --pill-ink: #F1EEE7;
  --f-display: "Sora", ui-rounded, system-ui, -apple-system, sans-serif;
  --f-body: ui-rounded, "Nunito", system-ui, -apple-system, "PingFang SC", "Hiragino Sans", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111614; --panel: #222B29; --fg: #ECE8DF; --sec: #9AA6A1; --cover: #62746E; --cover-sh: #4C5A55;
    --tile: #222B29; --zero: #1E2826; --dim: #5A6763; --gold: #D9B26F; --line: #26302D;
    --pill: #ECE8DF; --pill-ink: #111614; --stone: #6E7B76; --water: #0D1312; --wave: #4E7D86; color-scheme: dark;
  }
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--paper); color: var(--fg); font-family: var(--f-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased }
a { color: inherit }
button { font: inherit; color: inherit }
img { max-width: 100% }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 24px }
.amp { color: #A87E31 }
@media (prefers-color-scheme: dark) { .subnav .amp, .foot .amp { color: var(--gold) } }

/* nav */
.nav { display: flex; align-items: center; gap: 16px; padding-block: 18px }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 21px; text-decoration: none; letter-spacing: -1px; word-spacing: .14em; white-space: pre }
.brand img { width: 34px; height: 34px; border-radius: 9px }
.nav .links { margin-left: auto; display: flex; gap: 20px; font-weight: 700; font-size: 15px }
.nav .links a { text-decoration: none; opacity: .8 }
.nav .links a:hover { opacity: 1 }

/* Apple's official App Store badge (at least 40px tall, per Apple's guidelines) */
.store { display: inline-block; line-height: 0 }
.store img { height: 50px; width: auto }
.cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap }
.price { font-size: 15px; font-weight: 800 }

/* poster */
.top { /* the app icon's background (tools/icons.py R1H): bishop violet, queen pink, king yellow, a soft light behind the queen.
         Dark behind the words, light behind the 2, as in the icon. */
  background:
    radial-gradient(38% 55% at 76% 70%, rgba(255, 244, 230, .38), rgba(255, 244, 230, 0) 70%),
    linear-gradient(70deg, #5843C8 0%, #E4479A 52%, #FFC458 100%);
  color: var(--cream); overflow: hidden }
.top .lede, .top .price { color: var(--cream) }
.top .nav .links a { opacity: .85 }
/* gold disappears on the pink: the ampersand takes the icon's cream there */
.top .amp { color: #FFC458 }
.top .brand img { box-shadow: 0 0 0 2px var(--cream), 0 4px 12px rgba(23, 49, 45, .3) }
.poster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-block: 16px 0; min-height: 500px; align-items: end }
.poster > * { min-width: 0 }
.poster .copy { padding-bottom: 64px; align-self: center }
h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 6.6vw, 80px); line-height: .98; letter-spacing: -.045em; margin: 0 0 20px; text-wrap: balance }
.lede { font-size: 19px; font-weight: 700; max-width: 30ch; margin: 0 0 28px }
.art { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; min-height: 420px }
.icon-art { width: min(100%, 500px); display: block; overflow: visible }
.icon-art .sway { transform-box: view-box; transform-origin: 512px 960px; animation: sway 6s ease-in-out infinite }
@keyframes sway { 0%, 100% { transform: rotate(0deg) } 50% { transform: rotate(2.5deg) } }
.strip { background: var(--ink); color: var(--cream) }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 32px; padding-block: 22px; font-family: var(--f-display); font-weight: 700; font-size: clamp(17px, 2.2vw, 22px); letter-spacing: -.01em }
.strip span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--pink); margin-right: 10px; vertical-align: .1em }


/* sections */
section.block { padding-block: 72px 0 }
.film { padding-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: center }
.film video { display: block; width: 100%; aspect-ratio: 5 / 4; border-radius: 28px; background: #F1EEE7; box-shadow: 0 18px 50px rgba(23, 49, 45, .16); cursor: pointer }
.film .reel { position: relative }
.film .snd { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(23, 49, 45, .78); color: #F5F0E4; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px) }
.film .snd svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.film .snd .spk { fill: currentColor }
.film .snd .on, .film .snd[aria-pressed="true"] .off { display: none }
.film .snd[aria-pressed="true"] .on { display: inline }
.film .say { display: grid; font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -.02em }
.film .say p { grid-area: 1 / 1; margin: 0; transition: opacity .2s, transform .2s }
.film .say span { display: inline-block }
.film .say .g { color: var(--gold) }
.film .rule { opacity: 0 }
.film .rule span { opacity: 0; transform: translateY(.4em); transition: opacity .12s, transform .4s cubic-bezier(.3, 1.4, .5, 1) }
.film .rule-on .hook { opacity: 0; transform: translateY(-.5em) }
.film .rule-on .rule { opacity: 1 }
.film .rule-on .rule span { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .12s) }
h2 { font-family: var(--f-display); font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.025em; line-height: 1.12; margin: 0 0 12px; text-wrap: balance }
.sub { color: var(--sec); font-weight: 600; margin: 0; max-width: 52ch }

/* try it */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px }
.step { background: var(--tile); border-radius: 22px; padding: 20px 22px; display: grid; gap: 6px }
.step i { font-style: normal; font-family: var(--f-display); font-weight: 800; color: var(--gold); font-size: 13px; letter-spacing: .08em; text-transform: uppercase }
.step h3 { margin: 0; font-family: var(--f-display); font-size: 20px; letter-spacing: -.01em }
.step p { margin: 0; color: var(--sec); font-weight: 600 }

/* worlds */
.worlds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px }
.world { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--panel) }
.world > div { min-width: 0 }
/* world tiles in the game's colors (Theme.swift: stone, water, wave; pieces.py: piece colors) */
.wt { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex: none; --g: var(--ink) }
.wt svg { width: 80%; height: 80% }
.wt.stone { background: var(--tile); --g: var(--stone) }
.wt.water { background: var(--wave); --wave-line: #FFFFFF }
.world b { display: block; font-family: var(--f-display); font-size: 17px }
.world span { font-size: 15px; color: var(--sec); font-weight: 600 }

/* promises */
.promise { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px }
.promise span { background: var(--pill); color: var(--pill-ink); border-radius: 999px; padding: 10px 18px; font-weight: 800; font-size: 15px }
.promise span.soft { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--cover) }

/* end */
.end { display: grid; justify-items: center; text-align: center; gap: 18px; padding-block: 88px 72px }
.end img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 14px 30px rgba(88, 67, 200, .28) }
.end p { margin: 0; color: var(--sec); font-weight: 600; max-width: 46ch }

/* footer */
.foot { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-block: 28px 40px; font-size: 15px; align-items: center; border-top: 1px solid var(--line) }
.foot a { text-decoration: none; opacity: .8 }
.foot a:hover { opacity: 1 }
.foot .by { margin-right: auto; font-weight: 700; opacity: 1 }
.foot select { font: inherit; font-weight: 700; color: var(--fg); background: var(--panel); border: 0; border-radius: 999px; padding: 6px 12px }

/* text pages (privacy, support) */
.page { max-width: 720px; margin: 0 auto; padding-inline: 24px; padding-block: 24px 64px }
.page h1 { font-size: clamp(36px, 6vw, 52px); margin-top: 24px }
.page h2 { font-size: 22px; margin: 40px 0 8px }
.page p, .page li { color: var(--fg) }
.page .meta { color: var(--sec); font-weight: 600 }
.page ul { padding-left: 22px }
.page .mail { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; background: var(--panel); border-radius: 20px; padding: 18px 20px; margin: 20px 0 }
.page .mail b { font-family: var(--f-display); font-size: 19px; user-select: all; word-break: break-all }
.page .mail .acts { display: flex; gap: 10px }
.page .mail a, .page .mail button { background: var(--pill); color: var(--pill-ink); border: 0; border-radius: 999px; padding: 9px 18px; font-weight: 800; text-decoration: none; cursor: pointer }
.page details { border-top: 1px solid var(--line); padding-block: 14px }
.page summary { font-weight: 800; cursor: pointer }
.page details p { margin: 10px 0 0; color: var(--sec); font-weight: 600 }
.subnav { background: var(--paper); border-bottom: 1px solid var(--line) }

@media (max-width: 820px) {
  .poster, .film, .steps { grid-template-columns: 1fr }
  .film { gap: 20px }
  .poster { min-height: 0 }
  .poster .copy { padding-bottom: 8px }
  .art { min-height: 340px }
  .top { background: radial-gradient(60% 30% at 55% 82%, rgba(255, 244, 230, .38), rgba(255, 244, 230, 0) 70%), linear-gradient(160deg, #5843C8 0%, #E4479A 55%, #FFC458 100%) }
  .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .nav .links { display: none }
}
@media (max-width: 520px) {
  .wrap, .page { padding-inline: 18px }
  .worlds { grid-template-columns: 1fr }
}
@media (prefers-reduced-motion: reduce) {
  .icon-art .sway { animation: none }
}

/* cast: the nine pieces on a little stage, each doing its own move from the app now and then */
.cast { padding-top: 72px; text-align: center }
.cast h2 { margin: 0 0 28px }
.stage { isolation: isolate; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); align-items: end; gap: 14px; padding: 56px 28px 34px; position: relative; border-radius: 32px;
  background: radial-gradient(60% 90% at 50% 0%, rgba(255, 255, 255, .55), transparent 70%), linear-gradient(var(--panel), var(--panel)); overflow: hidden }
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(14% 70% at 18% -10%, rgba(255, 236, 190, .45), transparent 70%), radial-gradient(14% 70% at 50% -10%, rgba(255, 236, 190, .5), transparent 70%), radial-gradient(14% 70% at 82% -10%, rgba(255, 236, 190, .45), transparent 70%) }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58px; background: linear-gradient(rgba(23, 49, 45, .07), rgba(23, 49, 45, .13)); border-top: 1px solid rgba(255, 255, 255, .5); pointer-events: none }
.actor { position: relative }   /* no stacking of its own: its spotlight goes behind every piece on the stage */
.actor:hover .tile { transform: translateY(-4px) }
.actor .tile { transition: transform .2s ease }
.actor { border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 10px; cursor: pointer; font: inherit; color: var(--fg) }
.actor .tile { display: grid; place-items: center; width: 100%; max-width: 108px; aspect-ratio: 1; border-radius: 24%; background: var(--c); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .12) }
.actor svg { width: 76%; height: 76%; overflow: visible }
.actor b { font-family: var(--f-display); font-size: 16px; font-weight: 800; position: relative }
.actor .body, .actor .pupil { transform-box: view-box; transform-origin: 12px 22px }
.actor .pupil { transform: translate(var(--lx, 0), var(--ly, 0)); transition: transform .28s ease }
.actor .blink { animation-duration: var(--bt, 4.2s); animation-delay: var(--bd, 0s) }
/* the piece under the pointer steps into its own spotlight */
/* its spotlight takes the piece's own colour, soft at the edges */
.actor::before { content: ""; position: absolute; left: 50%; bottom: 22px; width: 160%; height: 300px; transform: translateX(-50%); pointer-events: none; opacity: 0; transition: opacity .3s ease; z-index: -1;
  clip-path: polygon(36% 0, 64% 0, 100% 100%, 0 100%); filter: blur(10px);
  background: radial-gradient(60% 120% at 50% 100%, color-mix(in srgb, var(--c) 55%, #FFF6DC) 0%, color-mix(in srgb, var(--c) 35%, #FFF6DC) 45%, transparent 80%) }
.actor::after { content: ""; position: absolute; left: 50%; bottom: 12px; width: 160%; height: 36px; transform: translateX(-50%); border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .3s ease; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 60%, #FFF6DC), transparent) }
.actor:hover::after, .actor:focus-visible::after { opacity: 1 }
.actor:hover::before, .actor:focus-visible::before { opacity: 1 }
.actor:hover .tile, .actor:focus-visible .tile { transform: translateY(-6px) scale(1.06); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .12), 0 14px 26px rgba(23, 49, 45, .22) }
.actor[data-k=K].sig .body { animation: nod 1.4s ease-in-out }
.actor[data-k=Q].sig .body { animation: sway 1.2s ease-out }
.actor[data-k=Q].sig.alt .body { animation: spin .75s ease-in-out }
.actor[data-k=R].sig .body { animation: stomp .9s linear }
.actor[data-k=B].sig .body { animation: lean 1s ease-in-out }
.actor[data-k=B].sig.alt .body { animation: lean-r 1s ease-in-out }
.actor[data-k=N].sig .body { animation: leap-l 1.15s ease-in-out }
.actor[data-k=P].sig .body { animation: hop .6s ease-in-out }
.actor[data-k=C].sig .body { animation: recoil .8s ease-out }
.actor[data-k=H].sig .body { animation: prance .9s ease-in-out }
.actor[data-k=E].sig .body { animation: trunk 1.3s ease-in-out }
@keyframes nod { 0%, 100% { transform: scaleY(1) } 30%, 70% { transform: scaleY(.89) } }
@keyframes sway { 0% { transform: rotate(0) } 17% { transform: rotate(12deg) } 50% { transform: rotate(-7deg) } 83% { transform: rotate(2deg) } 100% { transform: rotate(0) } }
@keyframes spin { 0% { transform: scaleX(1) } 25% { transform: scaleX(-.1) translateY(-.4px) } 50% { transform: scaleX(-1) translateY(-.6px) } 75% { transform: scaleX(.1) translateY(-.4px) } 100% { transform: scaleX(1) } }
@keyframes stomp { 0% { transform: none } 28% { transform: translateY(-1.4px) } 34% { transform: none } 40% { transform: scaleY(.74) } 60% { transform: scaleY(1.06) } 78% { transform: scaleY(.96) } 100% { transform: none } }
@keyframes lean { 0%, 100% { transform: none } 30%, 70% { transform: translate(-.7px, -.7px) rotate(-11deg) } }
@keyframes lean-r { 0%, 100% { transform: none } 30%, 70% { transform: translate(.7px, -.7px) rotate(11deg) } }
@keyframes leap-l { 0% { transform: none } 25% { transform: translateX(.6px) rotate(8deg) scaleY(.92) } 55% { transform: translate(-1.6px, -4px) rotate(-6deg) } 80% { transform: translateX(-.6px) scaleY(.94) } 100% { transform: none } }
@keyframes hop { 0%, 100% { transform: none } 15% { transform: scaleY(.94) } 50% { transform: translateY(-1.4px) } 85% { transform: scaleY(.95) } }
@keyframes recoil { 0% { transform: none } 12% { transform: translateX(-1.6px) rotate(-6deg) } 45% { transform: translateX(.4px) rotate(2deg) } 100% { transform: none } }
@keyframes prance { 0%, 50%, 100% { transform: none } 25%, 75% { transform: translateY(-1.3px) } }
@keyframes trunk { 0%, 100% { transform: none } 30% { transform: rotate(-7deg) } 55% { transform: scaleY(.85) } 75% { transform: scaleY(1.04) } }
@media (max-width: 820px) { .stage { gap: 8px; padding: 44px 14px 30px } .actor b { font-size: 13px } }
@media (max-width: 520px) { .stage { grid-template-columns: repeat(3, minmax(0, 88px)); justify-content: center; gap: 16px 18px; padding: 36px 16px 28px } .stage::after { display: none } .actor::before { height: 150px } }

/* The press page (/press/): facts, what sets the game apart, downloads. */
.press { max-width: 980px }
.press .lede { max-width: 46ch }
.press .hero { display: block; width: 100%; height: auto; border-radius: 22px; margin: 8px 0 28px }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 0 }
.facts dt { font-weight: 800; font-size: 13px; color: var(--sec); text-transform: uppercase; letter-spacing: .04em }
.facts dd { margin: 2px 0 0; font-weight: 700 }
.diff { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px }
.diff figure { margin: 0; display: grid; gap: 10px; align-content: start }
.diff img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 2px 10px rgba(23, 49, 45, .12) }
.diff b { display: block; font-family: var(--f-display); font-size: 18px }
.diff span { color: var(--sec); font-weight: 600 }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px }
.nums div { background: var(--tile); border-radius: 18px; padding: 16px 18px; display: grid }
.nums b { font-family: var(--f-display); font-size: 40px; line-height: 1.1 }
.nums span { color: var(--sec); font-weight: 600 }
.quick li { margin-bottom: 8px; font-weight: 600 }
.craft { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
.craft div { background: var(--tile); border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; align-content: start }
.craft b { font-family: var(--f-display); font-size: 18px }
.craft span { color: var(--sec); font-weight: 600 }
.dl { display: flex; gap: 18px; align-items: center; flex-wrap: wrap }
.dl .btn { background: var(--pill); color: var(--pill-ink); padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 800 }
@media (max-width: 760px) {
  .facts, .nums, .craft { grid-template-columns: minmax(0, 1fr) }
  .diff { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
.devices { display: grid; grid-template-columns: minmax(0, .46fr) minmax(0, 1.42fr) minmax(0, 1.33fr); gap: 18px; align-items: end; margin-top: 18px }
.devices figure { margin: 0; display: grid; gap: 8px }
.devices video { width: 100%; height: auto; border-radius: 18px; background: #000 }
.devices figcaption { font-weight: 700; color: var(--sec) }
@media (max-width: 760px) { .devices { grid-template-columns: minmax(0, 1fr) } .devices .iphone video { max-width: 260px } }
