.nav-wide{display:flex;gap:clamp(1.2rem,3.5vw,3.35rem);align-items:center;margin-left:auto;margin-right:auto}
.nav-wide a,.hero-story{font-size:.94rem;font-weight:550}
.nav-wide a:hover,.foot-links a:hover{color:var(--jade)}
.hero{position:relative;isolation:isolate;overflow:hidden;background:var(--felt);color:var(--ivory)}
.hero-inner{position:relative;display:flex;align-items:center;min-height:clamp(620px,48vw,730px);padding-block:clamp(3.3rem,5vw,5.7rem)}
.hero-copy{position:relative;z-index:1;max-width:54%}
.hero h1{font-size:clamp(4.4rem,6.55vw,6.65rem);line-height:.94;letter-spacing:-.055em;text-wrap:nowrap}
em{font-weight:400}
.hero h1 em{color:#f7e4cb}
.hero-copy p{margin-top:1.7rem;font-size:clamp(1rem,1.18vw,1.12rem);color:#f6f0e6;line-height:1.56;max-width:430px}
.hero-actions{display:flex;flex-direction:column;align-items:flex-start;gap:1.1rem;margin-top:2rem}
.hero-story{text-decoration:underline;text-underline-offset:.36em;text-decoration-thickness:1px}
.hero-story:hover{color:white}
h2{font-size:clamp(3rem,4.7vw,5rem);letter-spacing:-.054em;line-height:1.02;color:var(--felt)}
h2 em{color:var(--jade)}
.lesson{display:grid;grid-template-columns:.87fr 1.13fr;align-items:center;gap:clamp(2.75rem,8.6vw,8.3rem);padding-block:clamp(4rem,6vw,6rem)}
.lesson-copy{max-width:480px}
.bibi-perch{height:76px;width:auto;margin-bottom:1.25rem}
.lesson-copy p{max-width:43ch;color:#455146}
.lesson-copy p{margin-top:1.25rem;font-size:1.095rem;line-height:1.65}
.practice-card{min-width:0;border:1px solid #cbbda9;border-radius:14px;overflow:hidden;background:#fff9f2;box-shadow:0 5px 0 #e5dccc}
.felt-table{background-color:var(--felt);background-image:radial-gradient(ellipse at 35% 30%,#1a6442 2%,transparent 80%),repeating-linear-gradient(65deg,transparent 0 2px,#ffffff04 2px 3px);color:var(--ivory);padding:1.65rem 1.65rem 1.85rem}
.practice-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.practice-heading h3{font:400 1.6rem/1.1 var(--serif);color:var(--ivory)}
#practice-progress{color:#eae9d5;font-size:.875rem;white-space:nowrap}
.practice-meter{display:flex;gap:.35rem;margin:1rem 0 1.4rem}
.practice-meter span{flex:1;height:3px;border-radius:3px;background:#faf0e82e}
.practice-meter .current{background:var(--ivory)}
.practice-meter .complete{background:#94bf9a}
.tiles-hand{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:clamp(1rem,2vw,1.8rem);min-height:8rem}
.tile-group{text-align:center;min-width:0}
.table-label{display:block;color:#eae9d5;margin-bottom:.8rem;font-size:.82rem;font-weight:600;letter-spacing:.025em}
.tile-row{display:flex;gap:.3rem;justify-content:center}
.discard,.practice-draw{padding-left:clamp(1rem,2vw,1.8rem);border-left:1px dashed #f6f0db63}
.game-tile{width:clamp(45px,4.6vw,67px);height:auto;aspect-ratio:192/277;filter:drop-shadow(1px 4px 3px #0728188f);transition:transform .3s}
.game-tile[src^="/assets/practice/"]{aspect-ratio:108/157}
.tile-claim{display:block;padding:0;border:0;border-radius:10px;background:transparent;line-height:0}
.tile-claim:hover .game-tile{transform:translateY(-4px)}
.tile-claim:focus-visible{outline-color:#f5d080;outline-offset:5px}
.hint-body{padding:1.35rem clamp(1.2rem,2.5vw,2.15rem) 1.45rem}
.hint-title{font:400 1.55rem/1.2 var(--serif);color:var(--felt);letter-spacing:-.035em}
.hint-body p{font-size:.98rem;margin-top:.48rem;line-height:1.55;min-height:3.1em}
.mini-button{font:600 .9rem var(--sans);border:1px solid #b2bea8;border-radius:6px;color:var(--felt);background:transparent;padding:.48rem .95rem;margin-top:.85rem}
.mini-button:hover{background:#eceddf}
.practice-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem 1rem;margin-top:1rem}
.practice-actions .mini-button{margin:0;min-height:44px;background:var(--felt);border-color:var(--felt);color:var(--ivory)}
.practice-actions .mini-button:hover{background:#09623a}
.practice-text-button{min-height:44px;padding:.3rem 0;border:0;background:transparent;color:var(--felt);font:600 .875rem/1.4 var(--sans);text-decoration:underline;text-underline-offset:.2em}
@media(max-width:850px){.felt-table{padding:1.1rem .9rem 1.4rem}.tiles-hand{gap:.7rem}.discard,.practice-draw{padding-left:.7rem}.practice-card .game-tile{width:clamp(39px,5.2vw,50px)}.practice-card .table-label{font-size:.75rem}.practice-card[data-state="drawn"] .practice-draw{border:0;padding:0;flex-basis:100%}}
@media(max-width:690px){.felt-table{padding:1.3rem 1.1rem 1.6rem}.practice-card .game-tile{width:clamp(44px,11.2vw,58px)}.practice-card .table-label{font-size:.82rem}.tiles-hand{min-height:7.5rem}}
.founder{display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(2.75rem,8vw,8rem);padding-block:clamp(4rem,8vw,7.5rem)}
.story-seal{display:block;width:48px;aspect-ratio:192/277;transform:rotate(-8deg);margin-bottom:1.5rem}
.story-seal img{display:block;width:100%;height:auto;object-fit:contain}
.letter{max-width:60ch}.letter p{font:400 1.095rem/1.65 var(--sans);color:#455146}.letter p+p{margin-top:1.12em}
.signature{color:var(--felt);font:italic 2.15rem/1.2 var(--serif);letter-spacing:-.05em;margin-top:1.55rem}.byline{font-size:.88rem;color:var(--muted)}
.share{background:#f3e2d7;border-block:1px solid #e5d4c6}
.share-grid{display:grid;grid-template-columns:.91fr 1.09fr;align-items:start;gap:clamp(2.75rem,8.7vw,8.2rem);padding-block:clamp(4rem,6.8vw,6.5rem)}
.share h2{line-height:1.02;letter-spacing:-.03em;text-wrap:balance;color:#693c2b}.share h2 em{display:block;color:var(--red)}
.share-intro p{max-width:41ch;margin-top:1.8rem;color:#503e35;font-size:1.095rem;line-height:1.8}.share-intro p+p{margin-top:1.15rem}
.form-shell{border-radius:10px;background:#fff8f0;padding:clamp(1.35rem,3vw,2.6rem);border:1px solid #ddc9b8}
form label{font-weight:600;font-size:.97rem;display:block;color:var(--felt);margin-bottom:.45rem}form label span{font-weight:400;color:var(--muted)}
input:not([type=checkbox]),textarea{display:block;width:100%;border:1px solid #bfb8a9;border-radius:5px;background:#fffdf9;color:var(--ink);padding:.74rem .85rem;line-height:1.5}textarea{resize:vertical;min-height:100px}textarea+label{margin-top:1rem}
.helper,.demo-note{font-size:.83rem;color:#65675d;line-height:1.45;margin-top:.5rem}
.check-row{display:flex;align-items:flex-start;gap:.65rem;margin:1.1rem 0;color:var(--ink);font-weight:500}
.check-row input{width:18px;height:18px;accent-color:var(--felt);margin:2px 0 0;flex-shrink:0}
#reply-field{margin-bottom:1.2rem}.form-shell .demo-note{margin-top:.75rem}
.success h3{font-size:1.8rem;line-height:1.2;color:inherit}.success p{margin-top:.65rem}.reset{background:transparent;border:0;color:inherit;padding:.4rem 0;cursor:pointer;margin-top:.55rem}
.foot-links{display:flex;align-items:center;gap:2rem}.foot-links span{font-size:.81rem;color:var(--muted)}
@media(max-width:850px){.site-header .bar{gap:1rem;min-height:70px}.nav-wide{gap:1.05rem}.nav-wide a{font-size:.85rem}.wordmark{flex-basis:16.5rem;width:16.5rem}.nav-cta{padding:.6rem 1rem;min-height:43px}.hero h1{font-size:clamp(3.8rem,7.6vw,4.7rem)}.hero-copy{max-width:55%}.hero-copy p{font-size:1rem;max-width:355px}.hero-inner{min-height:550px}.lesson,.founder,.share-grid{column-gap:2.5rem}.foot-links{gap:1rem}}
@media(max-width:690px){.container{width:calc(100% - 2.5rem)}.nav-wide{display:none}.site-header .bar{min-height:68px}.wordmark{flex-basis:17rem;width:17rem}.site-header .nav-cta{display:none}.nav-cta{font-size:.85rem;min-height:40px}.hero-inner{min-height:0;padding:3.1rem 0 2rem;align-items:flex-start}.hero-copy{max-width:100%}.hero h1{font-size:clamp(3.15rem,10.5vw,4.5rem);line-height:.97}.hero h1{text-wrap:wrap}.hero-copy p{max-width:47ch;margin-top:1.1rem}.hero-actions{margin-top:1.35rem}.hero-inner{padding-top:0;padding-bottom:2.8rem}.lesson,.founder,.share-grid{grid-template-columns:1fr;gap:2rem}.lesson,.founder,.share-grid{padding-block:3.4rem}.bibi-perch{height:61px;margin-bottom:1rem}.lesson-copy p,.share-intro p,.letter p{font-size:1.02rem}.story-seal{margin-bottom:1rem}.share h2{max-width:100%}.form-shell{padding:1.25rem}.foot-inner{flex-wrap:wrap}.site-footer .foot-inner{padding:1.25rem 0;align-items:flex-start}.foot-links{align-items:flex-end;flex-direction:column-reverse;gap:.2rem}.foot-links span{font-size:.75rem}.hint-body p{min-height:0}.table-label{font-size:.82rem}.game-tile{width:48px}}
@media(max-width:370px){.hero h1{font-size:clamp(2.35rem,10.5vw,2.85rem)}.foot-links span{display:none}.hero-actions{gap:1.1rem}}

.nav-controls{display:flex;align-items:center;gap:.5rem}.nav-menu{display:none}
@media(max-width:900px){.nav-wide{display:none}.nav-menu{display:block}.nav-menu summary{list-style:none;cursor:pointer;min-height:40px;min-width:34px;display:grid;place-items:center;font-size:1.25rem;color:var(--felt)}.nav-menu summary::-webkit-details-marker{display:none}.nav-menu nav{position:absolute;top:100%;right:0;left:0;padding:.6rem 1.25rem 1.1rem;background:var(--ivory);border-bottom:1px solid var(--rule);box-shadow:0 4px 5px #0000000e}.nav-menu nav a{display:block;padding:.56rem 0;color:var(--felt);font-weight:600}.site-header .bar{gap:.4rem}}
@media(max-width:360px){.nav-controls{gap:0}.nav-cta{padding:.6rem .7rem}.wordmark{flex-basis:15rem;width:15rem}}


/* Give the closing invitation its own place at the table. */
.download {
  background: var(--felt);
  color: var(--ivory);
  overflow: hidden;
}
.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-block: clamp(3.25rem, 5.4vw, 6rem);
}
.app-identity {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 650;
  font-size: 1.1rem;
  letter-spacing: -.025em;
  margin-bottom: 1.4rem;
}
.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--ivory);
  display: grid;
  place-items: center;
}
.app-icon img { width: 34px; height: auto; }
.download h2 { color: var(--ivory); font-size: clamp(3.4rem, 5.6vw, 5.8rem); }
.download h2 em { color: #f7e4cb; }
.download-copy > p { max-width: 36ch; font-size: 1.1rem; margin-top: 1.15rem; line-height: 1.55; }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 1.05rem; margin-top: 1.2rem; padding-block: .9rem; }
.store-badge { display: inline-flex; border-radius: 8px; }
.store-badge img { height: 48px; width: auto; max-width: 100%; display: block; }
.bibi-scene { position: relative; isolation: isolate; width: 100%; max-width: 530px; aspect-ratio: 1 / 1.08; justify-self: center; margin-bottom: 2.5rem; }
.bibi-orbit { position: absolute; inset: 9% 2% 11% 2%; border: 1px solid #faf0e825; border-radius: 50%; transform: rotate(-20deg); }
.bibi-orbit::after { content: ""; position: absolute; inset: 9%; border: 1px solid #faf0e813; border-radius: 50%; }
.bibi-greeting { position: absolute; top: 1%; left: 1%; z-index: 3; width: max-content; max-width: 95%; padding: .8rem 1.1rem; background: var(--red); color: #fff; border-radius: 18px 18px 2px 18px; transform: rotate(-7deg); font: 500 clamp(.95rem, 1.2vw, 1.05rem)/1.35 var(--sans); white-space: normal; text-wrap: balance; box-shadow: 0 5px 14px #032d2018; pointer-events: none; }
.bibi-companion { position: absolute; width: 28%; height: auto; pointer-events: none; filter: drop-shadow(0 10px 9px #032d2030); }
.companion-left { left: 3%; top: 41%; transform: rotate(-20deg); }
.companion-right { right: 0; top: 51%; transform: rotate(20deg); }
.bibi-tile-wrap { position: absolute; top: 16%; left: 25%; width: 56%; transform: rotate(7deg); }
.bibi-tile { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 192 / 277; padding: 12% 15% 14%; border: 3px solid #e4d5bb; border-radius: clamp(18px, 2.5vw, 30px); color: var(--felt); background: #fffdf8; box-shadow: 0 11px 0 var(--jade), 0 13px 0 #023b23, 0 24px 25px -10px #032d2070; transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease; -webkit-tap-highlight-color: transparent; }
.bibi-tile:hover { transform: translateY(-5px) rotate(-3deg); box-shadow: 0 11px 0 var(--jade), 0 13px 0 #023b23, 0 31px 27px -12px #032d2060; }
.bibi-tile:active { transform: translateY(-1px) rotate(-2deg); }
.bibi-tile:focus-visible { outline: 3px solid var(--ivory); outline-offset: 18px; }
.bibi-bird { position: relative; display: block; width: 100%; aspect-ratio: 1014 / 1551; transform-origin: 48% 69%; }
.bibi-bird > img { width: 100%; height: auto; pointer-events: none; }
.bibi-expression-art { position: absolute; inset: 10% 5% 9%; width: 90%; height: 81%; overflow: visible; pointer-events: none; }
.bibi-expression-character { transform-box: view-box; }
.bibi-expression-art image { pointer-events: none; }
.bibi-scene figcaption { position: absolute; top: 100%; margin-top: 1rem; width: 100%; text-align: center; color: #dce8d8; font-size: .88rem; line-height: 1.5; letter-spacing: .01em; }
@media(max-width:850px) {
  .download-layout { gap: 2.25rem; }
  .store-badge img { height: 42px; }
  .store-badges { gap: .8rem; }
}
@media(max-width:690px) {
  .download-layout { grid-template-columns: 1fr; gap: 1.6rem; padding-block: 3rem; }
  .download h2 { font-size: clamp(2.8rem, 10vw, 4.2rem); text-wrap: balance; }
  .download h2 br { display: none; }
  .download h2 em { white-space: nowrap; }
  .bibi-scene { width: min(100%, 410px); margin-top: 1.5rem; }
  .app-identity { margin-bottom: 1rem; }
  .download-copy > p { font-size: 1.02rem; }
  .store-badges { margin-top: 1rem; column-gap: .75rem; }
  .store-badge img { height: 40px; }
}
@media (hover: none) { .bibi-tile:hover { transform: none; } }

#reply-field:not([hidden]) { animation: open-reply .25s ease-out; }
@keyframes open-reply {
  from { opacity: .25; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* The cover is drawn from the app's original artwork, with a gently dealt hand. */
.hero-visual {
  position: absolute;
  right: -1.25rem;
  bottom: 1.75rem;
  width: min(47%, 575px);
  aspect-ratio: 1;
}
.hero-art { position: absolute; inset: 0; }
.hero-linework { position: absolute; inset: 0; width: 100%; height: 100%; stroke: #b8d3aa; stroke-width: 1; opacity: .25; }
.hero-linework path { opacity: .65; }
.hero-tile {
  position: absolute;
  transform: rotate(var(--tile-angle));
  transform-origin: 50% 85%;
}
.hero-tile-dots { left: 2%; top: 44%; width: 32%; --tile-angle: -18deg; --fan-x: -7px; --fan-turn: -2deg; --deal-delay: 0s; }
.hero-tile-dragon { right: 1%; top: 35%; width: 33%; --tile-angle: 18deg; --fan-x: 7px; --fan-turn: 2deg; --deal-delay: .17s; }
.hero-tile-bibi { left: 33%; top: 13%; width: 36%; --tile-angle: -4deg; --fan-x: 0px; --fan-turn: 2deg; --deal-delay: .34s; }
.hero-tile-face {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 108 / 148;
  border: 3px solid #e5d7be;
  border-radius: clamp(16px, 1.9vw, 25px);
  background: #fffefa;
  box-shadow: 0 8px 0 #dfd0b4, 0 16px 0 #056238, 0 18px 0 #063c25;
  overflow: hidden;
}
.hero-tile-face > img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.hero-tile-bibi .hero-tile-face { padding: 11% 16%; }
.hero-tile-bibi img { object-fit: contain; }
.hero-spark { position: absolute; display: block; background: #e7d3a9; clip-path: polygon(50% 0, 60% 38%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.spark-one { top: 13%; right: 11%; width: 30px; height: 40px; transform: rotate(12deg); }
.spark-two { top: 34%; left: 17%; width: 15px; height: 22px; transform: rotate(-10deg); }
@media (prefers-reduced-motion: no-preference) {
  .hero-animated .hero-tile { animation: deal-hero-tile .95s cubic-bezier(.2,.7,.25,1) var(--deal-delay) backwards; }
  .hero-animated .hero-tile-motion { animation: fan-hero-tile 7s ease-in-out calc(1.2s + var(--deal-delay)) infinite; }
  .hero-animated .hero-spark { animation: hero-sparkle 7s ease-in-out 1.2s infinite; }
  .hero-motion-paused .hero-tile,
  .hero-motion-paused .hero-tile-motion,
  .hero-motion-paused .hero-spark { animation-play-state: paused; }
  @keyframes deal-hero-tile {
    from { opacity: 0; transform: translate(-35px, 55px) rotate(-24deg) scale(.94); }
    to { opacity: 1; transform: rotate(var(--tile-angle)); }
  }
  @keyframes fan-hero-tile {
    0%, 15%, 100% { transform: translate(0, 0) rotate(0deg); }
    45%, 60% { transform: translate(var(--fan-x), -12px) rotate(var(--fan-turn)); }
  }
  @keyframes hero-sparkle {
    0%, 15%, 100% { opacity: .6; scale: .85; }
    45%, 60% { opacity: 1; scale: 1.1; }
  }
}
@media (min-width: 691px) and (max-width: 1000px) {
  .hero h1 { font-size: clamp(3.5rem, 6.3vw, 4.1rem); }
  .hero-copy { max-width: 56%; }
  .hero-visual { width: 42%; right: .35rem; bottom: 3rem; }
  .hero-copy p { max-width: 350px; }
}
@media (max-width: 690px) {
  .hero { padding-top: 0; background: var(--felt); }
  .hero-inner { flex-direction: column-reverse; align-items: stretch; padding-top: .8rem; }
  .hero-visual { position: relative; align-self: center; right: auto; bottom: auto; width: min(92%, 400px); aspect-ratio: 1.32; margin-bottom: 1.6rem; }
  .hero-linework { width: 100%; height: 118%; top: -13%; }
  .hero-tile-dots { left: 5%; top: 32%; width: 29%; }
  .hero-tile-dragon { right: 3%; top: 28%; width: 30%; }
  .hero-tile-bibi { left: 33%; top: 7%; width: 34%; }
  .hero-tile-face { border-width: 2px; border-radius: 15px; box-shadow: 0 5px 0 #dfd0b4, 0 10px 0 #056238, 0 12px 0 #063c25; }
  .spark-one { top: 8%; right: 13%; width: 20px; height: 26px; }
  .spark-two { top: 23%; left: 19%; width: 12px; height: 17px; }
}

@media(max-width:690px) {
  .hero h1 br { display: none; }
  .hero h1 { text-wrap: balance; }
  .hero h1 em { display: block; text-wrap: balance; }
}
@media(max-width:360px) {
  .site-header .nav-cta { display: none; }
  .hero-actions { gap: 1rem; }
  .hero-story { font-size: .85rem; white-space: nowrap; }
}

/* The app tour is a single horizontal, scroll-snapping strip. */
.gameplay {
  background: #f7f3e9;
  border-block: 1px solid #e5dfd1;
  overflow: clip;
}
.gallery-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 2.3rem) 1rem;
  padding-block: clamp(2.7rem, 5.5vw, 5.25rem);
}
.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;

}
.gallery-header h2 { font-size: clamp(2.55rem, 5.1vw, 5.25rem); line-height: 1; }
.gallery-header em { white-space: nowrap; }
.gallery-controls { display: inline-flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.gallery-hint { color: #576457; font-size: .9rem; }
.drag-word { display: none; }
@media (hover: hover) and (pointer: fine) {
  .drag-word { display: inline; }
  .swipe-word { display: none; }
}
.gallery-meter { display: inline-flex; align-items: center; gap: .26rem; }
.gallery-meter i { width: 7px; height: 5px; border-radius: 5px; background: #b0bdad; transition: width .25s ease, background .25s ease; }
.gallery-meter .current { width: 22px; background: var(--felt); }
.gallery-track {
  grid-column: 1 / -1;
  --slide-width: 82%;
  --slide-gap: clamp(.65rem, 1.2vw, 1.15rem);
  position: relative;
  display: flex;
  gap: var(--slide-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: clamp(.9rem, 1.6vw, 1.45rem);
  -webkit-tap-highlight-color: transparent;
}
.gallery-track::after { content: ""; flex: 0 0 calc(100% - var(--slide-width) - var(--slide-gap)); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 3px solid #b86326; outline-offset: 5px; }
.gallery-track.interactive { cursor: grab; user-select: none; -webkit-user-select: none; }
.gallery-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-card {
  flex: 0 0 var(--slide-width);
  min-width: 0;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(.9rem, 1.6vw, 1.45rem);
  background: var(--card-bg);
  color: var(--card-ink);
}
.practice-scene {
  --card-bg: #0d4934; --card-ink: #fff9e9; --card-copy: #e1eee0;
  --plate: #a7c3a7; --plate-light: #dce8cb; --line: #244d3925;
}
.claiming-scene {
  --card-bg: #e4ecd9; --card-ink: #133e2b; --card-copy: #364e3e;
  --plate: #c3d5b8; --plate-light: #f5f6df; --line: #43651c28;
}
.tables-scene {
  --card-bg: #eddcd0; --card-ink: #543729; --card-copy: #624b40;
  --plate: #cfae98; --plate-light: #fae9d5; --line: #784f3528;
}
.gallery-art {
  position: relative; isolation: isolate;
  display: grid; place-items: center;
  overflow: hidden;
  padding: clamp(1.2rem, 2vw, 2rem) .75rem;
  background: radial-gradient(ellipse at 40% 24%, var(--plate-light), transparent 75%), var(--plate);
}
.gallery-art::before, .gallery-art::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 132%; aspect-ratio: 1;
  border-radius: 50%; border: 1px solid var(--line);
  right: 26%; bottom: 10%;
}
.gallery-art::after { width: 100%; right: -52%; bottom: -24%; }
.gallery-device {
  width: clamp(180px, 16.5vw, 244px);
  max-width: 85%;
  box-sizing: content-box;
  padding: 3px;
  border: 1px solid #586559; border-radius: 22px;
  background: #223326;
  box-shadow: 1px 2px 3px #102d2240, 6px 13px 20px -8px #163f284a;
}
.gallery-device img {
  display: block; width: 100%; height: auto; border-radius: 18px;
  pointer-events: none; -webkit-user-drag: none;
}
.gallery-caption {
  align-self: center;
  padding: clamp(1.5rem, 3.8vw, 4.3rem);
}
.gallery-caption h3 {
  color: var(--card-ink);
  font: 600 clamp(2.1rem, 4.1vw, 4rem)/1.02 var(--sans);
  letter-spacing: -.062em;
  text-wrap: balance;
}
.gallery-caption p {
  max-width: 34ch; margin: 1.1rem 0 0;
  font: 400 clamp(1rem, 1.25vw, 1.19rem)/1.5 var(--sans);
  color: var(--card-copy);
}
.gallery-announcement {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
@media (min-width: 1500px) {
  .gallery-track { --slide-width: 83.5%; }
}
@media (max-width: 830px) {
  .gallery-track { --slide-width: 88%; }
  .gallery-caption { padding: clamp(1.15rem, 3.5vw, 2.3rem); }
}
@media (max-width: 590px) {
  .gallery-shell { gap: 1rem; }
  .gallery-header { grid-column: 1 / -1; }
  .gallery-header h2 { font-size: clamp(2.05rem, 8.4vw, 3rem); }
  .gallery-controls { grid-row: 3; grid-column: 1 / -1; justify-self: center; gap: 1rem; }
  .gallery-hint { font-size: .9rem; }
  .gallery-meter { gap: 3px; }
  .gallery-meter i { width: 4px; height: 4px; }
  .gallery-meter .current { width: 13px; }
  .gallery-track { --slide-width: 91%; }
  .gallery-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .gallery-art { padding: 1rem .55rem; }
  .gallery-device { width: clamp(158px, 44vw, 205px); border-radius: 17px; }
  .gallery-device img { border-radius: 13px; }
  .gallery-caption { align-self: start; padding: 1.2rem 1.3rem 1.45rem; }
  .gallery-caption h3 { font-size: clamp(1.65rem, 6.6vw, 2.4rem); line-height: 1.08; text-wrap: initial; }
  .gallery-caption p { margin-top: .6rem; }
}
@media (max-width: 370px) {
  .gallery-header { gap: .25rem; }
  .gallery-header h2 { font-size: 2.05rem; }
}

.hero-store-badges { margin: 0; padding: 0; gap: 1rem; }
.hero-store-badges .store-badge img { height: 48px; }
.hero-store-badges .store-badge:focus-visible { outline-color: var(--ivory); }
@media (max-width: 690px) {
  .hero-actions { gap: 1rem; margin-top: 1.6rem; }
  .hero-store-badges { gap: .75rem; }
  .hero-store-badges .store-badge img { height: 40px; }
  .hero-story { min-height: 40px; display: inline-flex; align-items: center; }
  .share-grid { row-gap: 2.7rem; }
  .share-intro p { font-size: 1.05rem; line-height: 1.8; margin-top: 1.5rem; }
  .share-intro p+p { margin-top: 1.1rem; }
}
@media (max-width: 360px) {
  .hero-store-badges { gap: .5rem; }
}

/* Keep the two personal-story headings in one responsive type scale. */
.founder, .share-grid {
  container-type: inline-size;
  --story-heading-size: min(clamp(3rem, 4.7vw, 5rem), calc((100cqi - clamp(2.75rem, 8.7vw, 8.2rem)) / 16.5));
}
.founder-heading, .share-intro { min-width: 0; }
.founder .story-heading, .share .story-heading {
  max-width: none;
  font-size: var(--story-heading-size);
  line-height: 1.02;
}
.story-heading > span, .story-heading .heading-phrase { display: block; }
.story-heading .heading-phrase { white-space: nowrap; }
@media (min-width: 691px) and (max-width: 850px) {
  .founder, .share-grid { --story-heading-size: min(clamp(3rem, 4.7vw, 5rem), calc((100cqi - 2.5rem) / 16.5)); }
}
@media (max-width: 690px) {
  .founder, .share-grid { --story-heading-size: min(clamp(3rem, 4.7vw, 5rem), calc(100cqi / 7.2)); }
}
