:root {
  color-scheme: light;
  --paper: #f4f0e6;
  --ink: #173e35;
  --forest: #204c40;
  --forest-dark: #163a32;
  --moss: #7d9781;
  --sage: #a9b5a1;
  --sun: #f1c85f;
  --clay: #d68d50;
  --sand: #eadfb9;
  --muted: #53655d;
  --line: #d7d9cd;
  --card: #fffdf7;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; min-width: 320px; font-size: 1rem; line-height: 1.75; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #d27644; outline-offset: 4px; border-radius: 3px; }
img, svg { max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: -80px; left: 16px; padding: 10px 16px; border-radius: 8px; background: var(--card); }
.skip-link:focus { top: 16px; }

.site-header { display: flex; align-items: center; gap: 28px; min-height: 92px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 14px; }
.brand span { display: grid; gap: 0; line-height: 1.25; }
.brand strong { font-size: 1rem; letter-spacing: .02em; }
.brand small { color: #5d7065; font: .65rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .2em; }
.header-nav { display: flex; flex: 1; justify-content: center; gap: clamp(16px, 3vw, 36px); }
.header-nav a { padding: 9px 0; color: #415d52; font-size: .88rem; text-decoration: none; }
.header-nav a:hover, .language-switch a:hover { text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; }
.language-switch { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; font-size: .78rem; white-space: nowrap; }
.language-switch a { color: #52675c; text-decoration: none; }
.language-switch a[aria-current="page"] { color: var(--ink); font-weight: 700; }

.hero { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: clamp(32px, 6vw, 80px); padding-block: 76px 86px; }
.hero-copy { padding: 10px 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #557565; font: 700 .72rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(241,200,95,.18); }
h1, h2, h3, p { overflow-wrap: anywhere; }
.hero h1 { margin: 0; color: var(--ink); font-size: clamp(3rem, 6.2vw, 5.15rem); font-weight: 680; line-height: 1.12; letter-spacing: -.045em; }
.hero-lead { margin: 24px 0 0; color: #40594e; font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 27px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 14px; padding: 11px 21px; border: 1px solid transparent; border-radius: 999px; font-size: .94rem; font-weight: 680; line-height: 1.35; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,58,50,.14); }
.button:active { transform: translateY(0); }
.button-gold { background: var(--sun); color: #293a32; }
.text-link { color: #405e50; font-size: .9rem; font-weight: 650; }
.hero-note { margin: 21px 0 0; color: #738076; font-size: .84rem; }
.hero-art { position: relative; display: grid; min-height: 410px; align-content: center; justify-items: center; overflow: hidden; border-radius: 32px; background: radial-gradient(circle at 72% 20%, rgba(255,255,255,.09), transparent 31%), var(--forest); box-shadow: 0 22px 60px rgba(32,76,64,.13); }
.art-orbit { position: absolute; right: -80px; bottom: -190px; width: 420px; height: 420px; border: 1px solid rgba(240,231,198,.24); border-radius: 50%; }
.hex-board { position: relative; z-index: 1; width: min(100%, 440px); padding: 14px 22px 0; overflow: visible; }
.hex > path:first-child { fill: #d3ad54; stroke: #254c40; stroke-width: 5; stroke-linejoin: round; }
.hex .tile-face { fill: #f4d778; opacity: .94; }
.hex .tile-mark { fill: none; stroke: #335a4a; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.hex circle { fill: #335a4a; }
.tile-down > path:first-child { fill: #718875; stroke: #1f483d; }
.tile-down .tile-face { fill: #95a696; }
.tile-down .tile-mark { stroke: #365849; }
.tile-press > path:first-child { fill: #dc9852; stroke: #f5d27e; stroke-width: 7; }
.tile-press .tile-face { fill: #efb365; }
.tile-press .tile-mark { stroke: #583c29; }
.tile-press circle { fill: #583c29; }
.spark { fill: none; stroke: #f5df9b; stroke-width: 4; stroke-linecap: round; }
.art-caption { z-index: 1; margin: 8px 0 21px; color: #d2ddce; font: .65rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .25em; }

.count-band { background: #e5e4d7; border-block: 1px solid #dcddcf; }
.count-grid { display: grid; grid-template-columns: repeat(3,1fr); padding-block: 23px; }
.count-grid > div { display: flex; align-items: baseline; justify-content: center; gap: 11px; padding: 4px 14px; border-right: 1px solid #cdd2c4; }
.count-grid > div:last-child { border: 0; }
.count-grid strong { color: #366251; font: 600 clamp(1.9rem, 4vw, 2.6rem)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.08em; }
.count-grid span { color: #51655b; font-size: .88rem; }

.section { padding-block: 104px; }
.section-intro { max-width: 710px; margin: 0 auto 44px; text-align: center; }
.section-intro .eyebrow, .settings-copy .eyebrow, .feature-heading .eyebrow, .sharing-layout .eyebrow, .closing .eyebrow { justify-content: center; }
.section-intro h2, .feature-heading h2, .settings-copy h2, .sharing-layout h2, .closing h2 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 650; line-height: 1.25; letter-spacing: -.04em; }
.section-intro > p:last-child { max-width: 640px; margin: 19px auto 0; color: var(--muted); }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.app-screen-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; gap: 22px; }
.app-screen { display: grid; justify-items: center; gap: 17px; min-width: 0; margin: 0; padding: 22px; border: 1px solid #e0ddcf; border-radius: 22px; background: var(--card); }
.app-screen img { display: block; width: auto; height: 650px; max-height: min(650px,165vw); max-width: 100%; border: 1px solid #e3dfd2; border-radius: 15px; background: #f4f0e6; object-fit: contain; }
.app-screen figcaption { display: grid; width: 100%; gap: 5px; color: #53665b; }
.app-screen figcaption strong { color: #244d3f; font-size: 1rem; }
.app-screen figcaption span { font-size: .9rem; }
.rule-card { min-width: 0; padding: clamp(24px, 4vw, 40px); border: 1px solid #e0ddcf; border-radius: 22px; background: var(--card); box-shadow: 0 12px 36px rgba(44,58,48,.04); }
.rule-rise { background: linear-gradient(135deg, #fffdf7 0 68%, #f5edcf); border-color: #e5d7ab; }
.rule-vanish { background: linear-gradient(135deg, #fffdf7 0 68%, #e5ece1); border-color: #d4ded1; }
.rule-card-top { display: flex; justify-content: space-between; align-items: center; }
.rule-index { color: #3e6e58; font: 600 1.3rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.rule-tag { color: #806933; font: 700 .62rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.rule-vanish .rule-tag { color: #5d7765; }
.rule-mini-board { display: flex; align-items: center; justify-content: center; min-height: 145px; gap: clamp(3px, 1.5vw, 12px); margin-block: 4px 10px; }
.mini-tile { display: grid; width: clamp(42px, 8vw, 72px); aspect-ratio: 1 / 1.12; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(145deg, #f7e7ab 0 49%, #d1b763 50% 100%); color: #365947; filter: drop-shadow(0 4px 3px rgba(23,62,53,.18)); }
.mini-tile i { font-style: normal; font-size: clamp(1.1rem, 2.4vw, 1.8rem); font-weight: 700; }
.mini-tile.down { background: linear-gradient(145deg, #b8c2ae 0 49%, #809582 50% 100%); }
.mini-tile.vanished { background: transparent; color: #829286; border: 1px dashed #98a69a; clip-path: none; outline: 1px dashed #aab5a9; outline-offset: -4px; }
.mini-tile.active { transform: translateY(-5px) scale(1.04); outline: 3px solid #d48948; outline-offset: 3px; }
.rule-card h3 { margin: 0 0 10px; color: #244d3f; font-size: clamp(1.2rem, 2.3vw, 1.65rem); line-height: 1.4; }
.rule-card p { color: #52645a; font-size: .95rem; }
.rule-rise > p:not(.rule-phrase) { text-wrap: balance; }
.rule-phrase { margin: 23px 0 0; padding-top: 16px; border-top: 1px solid #dce0d4; color: #305c49 !important; font-weight: 700; }
.section-footnote { margin: 22px 0 0; color: #6e7b70; font-size: .86rem; text-align: center; }

.feature-band { padding-block: 96px; background: var(--forest-dark); color: #f5f1e4; }
.feature-layout { display: grid; grid-template-columns: .82fr 1.18fr; align-items: start; gap: clamp(40px,8vw,100px); }
.feature-heading .eyebrow { color: #d2c27e; }
.feature-heading h2 { font-size: clamp(2.1rem,4.4vw,3.2rem); }
.feature-heading > p:last-child { margin: 20px 0 0; color: #d1d8cb; }
.feature-list { display: grid; gap: 0; }
.feature-list article { display: grid; grid-template-columns: 40px 1fr; gap: 17px; padding: 22px 0; border-top: 1px solid rgba(235,237,220,.2); }
.feature-list article:last-child { border-bottom: 1px solid rgba(235,237,220,.2); }
.feature-number { color: var(--sun); font: .78rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.feature-list h3 { margin: 0 0 5px; color: #fff8e6; font-size: 1.06rem; }
.feature-list p { margin: 0; color: #c7d2c6; font-size: .9rem; }

.settings-section { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(40px, 8vw, 100px); }
.settings-art { position: relative; display: grid; min-height: 310px; align-content: center; justify-items: center; overflow: hidden; border-radius: 24px; background: #e9e5d8; }
.palette-row { display: flex; gap: 15px; margin-bottom: 20px; }
.palette-chip { width: 48px; height: 48px; border-radius: 16px; box-shadow: 0 4px 12px rgba(27,51,43,.13); transform: rotate(-9deg); }
.palette-chip.garden { background: linear-gradient(135deg,#f4de91 50%,#819780 50%); }
.palette-chip.ocean { background: linear-gradient(135deg,#d5e7da 50%,#4f7891 50%); }
.palette-chip.clay { background: linear-gradient(135deg,#ebc19a 50%,#787f88 50%); }
.settings-card { position: relative; display: grid; width: min(310px, 80%); min-height: 136px; grid-template-columns: 1fr 40px; align-content: center; gap: 17px; padding: 24px; border: 1px solid #dad8ca; border-radius: 17px; background: #fffdf7; box-shadow: 0 16px 36px rgba(30,55,44,.1); }
.setting-line { width: 72%; height: 8px; border-radius: 8px; background: #cbd4c7; }
.setting-line.long { width: 93%; background: #768c7c; }
.setting-line.short { width: 54%; }
.setting-switch { grid-row: 2; grid-column: 2; width: 34px; height: 20px; margin-top: -7px; border-radius: 14px; background: #4e765e; }
.setting-switch::after { display: block; width: 14px; height: 14px; margin: 3px 0 0 17px; border-radius: 50%; background: white; content: ""; }
.settings-art-caption { margin: 17px 0 0; color: #697a6e; font: .64rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .22em; }
.settings-copy h2 { font-size: clamp(2rem, 4vw, 3rem); }
.settings-copy h2 span { display: block; }
.settings-copy > p:not(.eyebrow) { color: var(--muted); }
.check-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 20px; margin: 23px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 22px; color: #415a4e; font-size: .9rem; }
.check-list li::before { position: absolute; top: .14em; left: 0; color: #8b9e78; font-weight: 800; content: "✓"; }

.sharing-band { padding-block: 83px; background: #e5e7db; }
.sharing-layout { display: grid; grid-template-columns: 1fr .72fr; align-items: center; gap: 50px; }
.sharing-layout .eyebrow { justify-content: flex-start; }
.sharing-layout h2 { font-size: clamp(2rem, 4vw, 3rem); }
.sharing-layout > div:first-child > p:last-child { max-width: 580px; color: #4c6257; }
.share-reel { justify-self: center; width: 180px; padding: 12px; border: 1px solid #cbd2c6; border-radius: 22px; background: #f8f6ef; box-shadow: 0 18px 38px rgba(22,58,50,.12); transform: rotate(4deg); }
.reel-screen { position: relative; display: grid; min-height: 246px; grid-template-columns: repeat(2, 1fr); align-content: center; justify-items: center; gap: 5px; padding: 24px 12px; overflow: hidden; border-radius: 14px; background: #204c40; }
.reel-dot { width: 54px; height: 62px; clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); background: linear-gradient(145deg,#f3d982 50%,#d2ae53 50%); }
.reel-dot:nth-child(2n) { background: linear-gradient(145deg,#b6c1ae 50%,#778b78 50%); }
.reel-dot.accent { background: linear-gradient(145deg,#efb266 50%,#c67b44 50%); }
.reel-play { position: absolute; top: 50%; left: 50%; display: grid; width: 44px; height: 44px; place-items: center; padding-left: 3px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(255,253,247,.86); color: var(--forest); font-size: .8rem; transform: translate(-50%,-50%); }
.reel-time { display: block; margin-top: 10px; color: #65746a; font: .52rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-align: center; }

.closing { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 50px; padding-block: 86px; }
.closing .eyebrow { justify-content: flex-start; }
.closing h2 { font-size: clamp(2rem, 4vw, 3rem); }
.closing-copy > p:last-child { color: var(--muted); }
.closing-actions { padding: 24px; border: 1px solid #dcd9cb; border-radius: 19px; background: var(--card); }
.button-light { background: var(--forest); color: #fffdf4; }
.store-status { margin: 0; padding: 15px 16px; border-left: 3px solid var(--sun); background: #f4f0e6; color: #4d6257; font-size: .92rem; }
.support-note { margin: 17px 0 0; color: #728075; font-size: .8rem; }
.support-note a { color: #3e6852; font-weight: 650; }
.site-footer { display: grid; grid-template-columns: 1fr 1fr auto auto; align-items: center; gap: 14px; padding-block: 25px 32px; border-top: 1px solid var(--line); color: #617267; }
.footer-brand { color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.site-footer p { margin: 0; font-size: .8rem; }
.site-footer small { font: .65rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.analytics-settings { padding: 0; border: 0; background: transparent; color: #536c5d; font: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.analytics-settings:focus-visible, .analytics-consent button:focus-visible { outline: 3px solid #d27644; outline-offset: 3px; }
.analytics-consent[hidden] { display: none; }
.analytics-consent { position: fixed; z-index: 1000; right: 16px; bottom: 16px; left: 16px; display: grid; width: min(900px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-inline: auto; padding: 22px 24px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border: 1px solid #c5cbbc; border-radius: 18px; background: #fffdf7; box-shadow: 0 16px 55px rgba(22,58,50,.22); }
.analytics-consent-copy h2 { margin: 0 0 5px; color: var(--ink); font-size: 1.05rem; line-height: 1.4; }
.analytics-consent-copy p { margin: 0; color: #4c6257; font-size: .9rem; line-height: 1.65; }
.analytics-consent-copy a { display: inline-block; margin-top: 6px; color: #3e6852; font-size: .85rem; font-weight: 650; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.analytics-consent-actions button { min-height: 44px; padding: 9px 15px; border: 1px solid #667d6b; border-radius: 999px; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; }
.analytics-allow, .analytics-deny { background: #e5e7db; color: var(--forest-dark); }

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; gap: 8px 20px; padding-block: 17px; }
  .header-nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 21px; }
  .language-switch { margin-left: auto; }
  .hero { grid-template-columns: 1fr .85fr; gap: 26px; padding-block: 56px 66px; }
  .hero-art { min-height: 340px; }
  .hex-board { width: min(100%, 365px); }
  .feature-layout { gap: 45px; }
  .settings-section { gap: 45px; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .wrap { width: calc(100% - 36px); }
  .site-header { min-height: 0; gap: 5px 12px; padding-block: 14px; }
  .brand { gap: 9px; }
  .brand img { width: 38px; height: 38px; border-radius: 12px; }
  .brand strong { font-size: .86rem; }
  .brand small { font-size: .56rem; }
  .language-switch { gap: 6px; font-size: .7rem; }
  .header-nav { flex-wrap: wrap; align-items: center; gap: 4px 18px; overflow: visible; }
  .header-nav a { flex: 0 1 auto; min-width: 0; font-size: .79rem; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 43px 48px; }
  .hero h1 { font-size: clamp(1.2rem, 12vw, 3rem); }
  .hero-lead { font-size: 1rem; line-height: 1.8; }
  .hero-actions { align-items: flex-start; gap: 16px; }
  .button { min-height: 50px; padding-inline: 17px; }
  .hero-art { min-height: 300px; border-radius: 24px; }
  .hex-board { width: min(100%, 340px); padding-inline: 17px; }
  .art-caption { margin-bottom: 17px; }
  .count-grid { padding-block: 17px; }
  .count-grid > div { flex-direction: column; align-items: center; gap: 3px; padding-inline: 4px; text-align: center; }
  .count-grid span { font-size: .7rem; }
  .count-grid strong { font-size: clamp(1.8rem, 9vw, 2.2rem); }
  .section { padding-block: 68px; }
  .section-intro { margin-bottom: 29px; text-align: left; }
  .section-intro .eyebrow { justify-content: flex-start; }
  .section-intro h2, .feature-heading h2, .settings-copy h2, .sharing-layout h2, .closing h2 { font-size: clamp(1.95rem, 9vw, 2.75rem); }
  .settings-copy h2 { font-size: clamp(1.2rem, 6vw, 2rem); line-height: 1.3; letter-spacing: -.03em; }
  .settings-copy h2 span { white-space: nowrap; }
  .rule-grid { grid-template-columns: 1fr; gap: 14px; }
  .rule-card { padding: 22px 21px; }
  .rule-mini-board { min-height: 126px; gap: 7px; }
  .mini-tile { width: min(15vw, 58px); }
  .mini-tile i { font-size: 1.2rem; }
  .feature-band { padding-block: 68px; }
  .feature-layout { grid-template-columns: 1fr; gap: 28px; }
  .feature-heading .eyebrow { justify-content: flex-start; }
  .feature-list article { grid-template-columns: 30px 1fr; gap: 11px; padding-block: 17px; }
  .settings-section { grid-template-columns: 1fr; gap: 32px; }
  .settings-art { min-height: 260px; }
  .check-list { grid-template-columns: 1fr; gap: 7px; }
  .sharing-band { padding-block: 62px; }
  .sharing-layout { grid-template-columns: 1fr .6fr; gap: 16px; }
  .sharing-layout h2 { font-size: clamp(1.8rem, 8vw, 2.35rem); }
  .share-reel { width: min(38vw, 150px); padding: 8px; border-radius: 17px; }
  .reel-screen { min-height: 190px; padding-inline: 7px; }
  .reel-dot { width: min(12vw, 46px); height: min(15vw, 54px); }
  .reel-play { width: 38px; height: 38px; }
  .closing { grid-template-columns: 1fr; gap: 24px; padding-block: 62px; }
  .site-footer { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .site-footer p, .site-footer small { grid-column: auto; grid-row: auto; text-align: left; }
  .analytics-consent { right: 10px; bottom: 10px; left: 10px; width: calc(100% - 20px); grid-template-columns: 1fr; gap: 15px; padding: 17px; }
  .analytics-consent-actions { justify-content: stretch; }
  .analytics-consent-actions button { flex: 1 1 120px; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 28px); }
  .hero-actions { flex-direction: column; }
  .sharing-layout { grid-template-columns: 1fr; }
  .share-reel { width: 144px; justify-self: end; }
  .reel-screen { min-height: 165px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Expanded product explanation and local, interactive rule sample. */
.center-action { display: flex; justify-content: center; margin-top: 34px; }
.rule-sequence { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin: 24px 0 12px; padding: 16px 12px; border: 1px solid #e3e1d4; border-radius: 16px; background: rgba(255,255,255,.58); }
.sequence-step { display: grid; min-width: 0; justify-items: center; gap: 7px; }
.sequence-step > small { color: #586d60; font-size: .72rem; font-weight: 700; text-align: center; }
.sequence-step > b { color: #3c684f; font-size: .72rem; }
.sequence-arrow { color: #84917f; font-size: 1.1rem; }
.state-row { display: flex; gap: 4px; }
.state-tile { display: grid; width: clamp(28px, 4vw, 38px); aspect-ratio: 1 / 1.08; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); font-size: .7rem; font-weight: 800; }
.state-up { background: linear-gradient(145deg,#f8e8af 0 49%,#d3b765 50%); color: #264f40; }
.state-down { background: linear-gradient(145deg,#bcc7b6 0 49%,#829583 50%); color: #294b3d; }
.state-gone { background: repeating-linear-gradient(135deg,#f8f6ee 0 6px,#e3e5db 6px 8px); color: #627769; }
.sequence-note { margin: 12px 0 0 !important; color: #68776c !important; font-size: .82rem !important; }
.edge-note { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin: 26px 0 0; padding: 18px 21px; border-left: 4px solid #d39a50; border-radius: 0 13px 13px 0; background: #ecefe5; color: #405a4d; }
.edge-note strong { color: #274e3f; }
.play-flow { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.play-flow li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 19px 0; border-top: 1px solid rgba(235,237,220,.2); counter-increment: flow; }
.play-flow li::before { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(241,200,95,.55); border-radius: 50%; color: var(--sun); content: counter(flow); font: .78rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.play-flow b, .play-flow span { grid-column: 2; }
.play-flow b { color: #fff8e6; font-size: 1rem; }
.play-flow span { color: #c7d2c6; font-size: .9rem; }
.detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.detail-card { min-width: 0; padding: 23px 24px; border: 1px solid #e0ddcf; border-radius: 18px; background: var(--card); }
.detail-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #e7eadf; color: #466d56; font-size: 1.1rem; font-weight: 700; }
.detail-card h3 { margin: 17px 0 7px; color: #284f40; font-size: 1.08rem; }
.detail-card p { margin: 0; color: #53665a; font-size: .89rem; }
.settings-note { margin-top: 17px; color: #708076; font-size: .84rem; }
.data-band { padding-block: 76px; background: #e7eadf; }
.data-layout { display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(38px,8vw,96px); align-items: start; }
.data-layout .eyebrow { color: #587561; }
.data-layout h2 { margin: 0; color: #22483a; font-size: clamp(2rem,4vw,3rem); line-height: 1.2; letter-spacing: -.035em; }
.data-layout p { margin: 0 0 17px; color: #4b6254; }
.data-warning { padding: 13px 16px; border-left: 3px solid #ca9150; background: rgba(255,255,255,.45); font-size: .9rem; }
.release-section { display: grid; grid-template-columns: 1fr minmax(240px,.46fr); gap: 50px; align-items: center; padding-block: 82px; }
.release-section h2 { margin: 0; font-size: clamp(1.9rem,4vw,2.8rem); line-height: 1.25; }
.release-section p:not(.eyebrow) { color: var(--muted); }
.release-links { display: grid; gap: 15px; padding: 24px; border: 1px solid #dcd9cb; border-radius: 19px; background: var(--card); }
.release-links > a:not(.button) { color: #3e6852; font-weight: 650; }
.release-links p { margin: 0; color: #728075; font-size: .86rem; overflow-wrap: anywhere; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .76rem; }
.site-footer nav a { color: #536c5d; }

.document-main { max-width: 900px; padding-block: 66px 84px; }
.document-main > .eyebrow { margin-bottom: 13px; }
.document-main > h1 { margin: 0; color: #193f34; font-size: clamp(2.5rem,7vw,4.35rem); line-height: 1.15; letter-spacing: -.045em; }
.document-lead { max-width: 740px; margin: 21px 0 30px; color: #52665a; font-size: clamp(1rem,2vw,1.2rem); line-height: 1.9; }
.last-reviewed { margin: -12px 0 34px; color: #748076; font-size: .85rem; }
.demo-limit { display: grid; gap: 4px; margin: 25px 0 27px; padding: 17px 21px; border-left: 4px solid #d39a50; border-radius: 0 13px 13px 0; background: #ecefe5; color: #4c6154; }
.demo-limit strong { color: #294f40; }
.demo-panel { padding: clamp(20px,4vw,38px); border: 1px solid #dcd9cb; border-radius: 24px; background: #fffdf7; box-shadow: 0 16px 42px rgba(35,60,47,.08); }
.demo-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.demo-heading-row .eyebrow { margin-bottom: 7px; }
.demo-heading-row h2 { margin: 0; color: #244d3f; font-size: clamp(1.25rem,3vw,1.8rem); line-height: 1.35; }
.demo-count { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; background: #edf0e7; color: #506a59; font: .66rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.demo-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 25px; padding: 5px; border-radius: 15px; background: #eeeee5; }
.demo-mode-tabs button { min-height: 48px; padding: 9px 13px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #4f665a; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.demo-mode-tabs button[aria-pressed="true"] { border-color: #d2d9cc; background: #fffdf7; color: #1f4a3b; box-shadow: 0 2px 8px rgba(31,74,59,.08); }
.demo-mode-tabs button:focus-visible, .demo-actions button:focus-visible, .demo-tile:focus-visible { outline: 3px solid #d27644; outline-offset: 4px; }
.demo-progress { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 14px 0 8px; }
.demo-progress button { min-height: 44px; border: 1px solid #d6dbce; border-radius: 12px; background: #f7f6ef; color: #45614f; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.demo-progress button[aria-current="step"] { border-color: #507861; background: #e8eee4; color: #244d3f; box-shadow: inset 0 0 0 1px #507861; }
.demo-progress button:disabled { opacity: .48; cursor: not-allowed; }
.demo-progress button:focus-visible { outline: 3px solid #d27644; outline-offset: 3px; }
.demo-rule-copy { min-height: 3.4em; margin: 17px 0 10px; color: #53675a; }
.demo-legend { display: flex; flex-wrap: wrap; gap: 10px 21px; justify-content: center; padding-block: 12px; color: #506357; font-size: .82rem; }
.demo-legend span { display: inline-flex; align-items: center; gap: 6px; }
.demo-legend i { display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; font-size: .9rem; font-style: normal; font-weight: 800; }
.legend-up { background: #f3df93; color: #294f40; }
.legend-down { background: #aebba9; color: #294f40; }
.legend-gone { border: 1px dashed #9eaa9f; background: repeating-linear-gradient(135deg,#fffdf7 0 5px,#e4e7dd 5px 7px); color: #536b5d; }
.demo-board-wrap { display: grid; min-height: 250px; place-items: center; overflow: hidden; border: 1px solid #e3e0d4; border-radius: 19px; background: radial-gradient(circle at 50% 0%,#fff 0,#f5f2e8 73%); }
.demo-board { position: relative; width: min(100%,560px); height: clamp(250px,58vw,340px); touch-action: manipulation; }
.demo-tile { position: absolute; display: grid; aspect-ratio: 1 / 1.12; place-items: center; align-content: center; gap: 2px; padding: 0; border: 0; clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); color: #294e3f; cursor: pointer; filter: drop-shadow(0 7px 5px rgba(24,61,48,.16)); transform: translate(-50%,-50%); transition: filter .18s ease, background-color .18s ease; touch-action: manipulation; user-select: none; }
.demo-tile[data-state="U"] { background: linear-gradient(145deg,#fae8a9 0 49%,#d3b65f 50%); }
.demo-tile[data-state="D"] { background: linear-gradient(145deg,#bfccba 0 49%,#839584 50%); }
.demo-tile[data-state="X"] { background: repeating-linear-gradient(135deg,#f9f7ef 0 8px,#e2e5db 8px 11px); color: #627669; filter: none; cursor: default; }
.demo-tile[data-color="1"][data-state="U"] { background: linear-gradient(145deg,#f4d598 0 49%,#c49b51 50%); }
.demo-tile[data-color="1"][data-state="D"] { background: linear-gradient(145deg,#c7d5cb 0 49%,#849e92 50%); }
.demo-tile:not(:disabled):hover { filter: drop-shadow(0 10px 7px rgba(24,61,48,.2)); }
.demo-tile.hint-target { z-index: 2; animation: demo-hint-pulse 1s ease-in-out infinite alternate; }
.demo-tile.hint-target::before { content: ""; position: absolute; z-index: 0; inset: 7%; border: 4px solid #a7442a; border-radius: 42%; box-shadow: inset 0 0 0 2px #fffdf7; pointer-events: none; }
.demo-tile.hint-target::after { content: attr(data-hint-label); position: absolute; top: 22%; right: 7%; padding: 1px 3px; border: 2px solid #fffdf7; border-radius: 999px; background: #a7442a; color: #fffdf7; font-size: clamp(.42rem,1.1vw,.6rem); font-weight: 800; line-height: 1.2; white-space: nowrap; }
@keyframes demo-hint-pulse { from { filter: drop-shadow(0 0 4px #fffdf7) drop-shadow(0 0 7px #a7442a); } to { filter: drop-shadow(0 0 7px #fffdf7) drop-shadow(0 0 13px #a7442a); } }
.demo-tile:disabled { cursor: not-allowed; opacity: .96; }
.demo-tile small { font-size: .86rem; opacity: .82; }
.demo-tile b { font-size: clamp(1.5rem,5vw,2.7rem); line-height: 1.05; }
.demo-tile:focus-visible { filter: drop-shadow(0 0 4px #d27644) drop-shadow(0 0 2px #d27644); }
.demo-status-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 17px; }
.demo-status { margin: 0; color: #244f3e; font-weight: 700; }
.demo-status[data-kind="hint"] { flex: 1 1 auto; padding: 12px 15px; border: 2px solid #a7442a; border-radius: 12px; background: #fff2cf; color: #68351f; font-size: 1rem; }
.demo-step { flex: 0 0 auto; margin: 0; color: #728075; font-size: .82rem; }
.demo-explanation { margin: 12px 0 0; padding: 14px 16px; border-radius: 12px; background: #edf0e7; color: #4e6255; font-size: .9rem; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.demo-actions .button { min-height: 44px; padding: 9px 15px; font-size: .84rem; }
.demo-actions button:disabled { opacity: .48; cursor: not-allowed; }
.button-outline { border-color: #cbd4c9; background: transparent; color: #345846; }
.demo-reading, .faq-group, .legal-section { margin-top: 45px; }
.demo-reading h2, .faq-group h2, .contact-card h2, .legal-section h2 { margin: 0 0 17px; color: #244d3f; font-size: 1.4rem; }
.demo-reading ol { padding-left: 1.4em; color: #52665a; }
.demo-reading li { padding-left: .25em; margin-block: 8px; }
.demo-reading > p { color: #65756a; }
.document-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 38px; }
.document-actions > a:not(.button) { color: #3e6852; font-weight: 650; }
.faq-group { display: grid; gap: 10px; }
.faq-group h2 { margin-bottom: 7px; }
.faq-group details { border: 1px solid #deded2; border-radius: 14px; background: #fffdf7; }
.faq-group summary { position: relative; padding: 16px 46px 16px 18px; color: #294f40; font-weight: 700; cursor: pointer; list-style: none; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { position: absolute; top: 50%; right: 18px; color: #66816d; content: "+"; font-size: 1.2rem; transform: translateY(-50%); }
.faq-group details[open] summary::after { content: "−"; }
.faq-group details p { margin: 0; padding: 0 18px 17px; color: #55695d; }
.contact-card { margin-top: 52px; padding: clamp(22px,4vw,36px); border-radius: 20px; background: #e8ece2; }
.contact-card > p { color: #52665a; }
.contact-address { margin-bottom: 0; font-size: .84rem; overflow-wrap: anywhere; }
.legal-copy { max-width: 850px; }
.legal-copy .document-lead { max-width: none; }
.legal-section { padding-top: 26px; border-top: 1px solid #d9ddd1; }
.legal-section p { color: #53675a; line-height: 1.9; }
.legal-section a { color: #315f49; font-weight: 650; }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .release-section { gap: 30px; }
}
@media (max-width: 680px) {
  .app-screen-grid { grid-template-columns: 1fr; }
  .app-screen { padding: 18px; }
  .app-screen img { height: min(650px,165vw); }
  .legal-copy > h1 { white-space: normal; text-wrap: balance; overflow-wrap: anywhere; font-size: clamp(1.75rem,8.2vw,2.5rem); letter-spacing: -.055em; }
  .detail-grid { grid-template-columns: 1fr; gap: 11px; }
  .detail-card { padding: 20px; }
  .rule-sequence { gap: 5px; padding-inline: 7px; }
  .sequence-arrow { font-size: .88rem; }
  .sequence-step > small { font-size: .64rem; }
  .state-row { gap: 2px; }
  .state-tile { width: clamp(19px,6vw,28px); font-size: .58rem; }
  .edge-note { grid-template-columns: 1fr; gap: 4px; }
  .play-flow li { grid-template-columns: 34px 1fr; gap: 9px; }
  .data-band { padding-block: 59px; }
  .data-layout { grid-template-columns: 1fr; gap: 20px; }
  .release-section { grid-template-columns: 1fr; gap: 20px; padding-block: 62px; }
  .release-links { padding: 19px; }
  .document-main { padding-block: 43px 66px; }
  .demo-panel { padding: 18px 14px; border-radius: 18px; }
  .demo-heading-row { gap: 9px; }
  .demo-count { padding: 6px 8px; font-size: .57rem; }
  .demo-mode-tabs { gap: 5px; }
  .demo-mode-tabs button { min-height: 54px; padding-inline: 8px; font-size: .78rem; }
  .demo-rule-copy { min-height: 0; font-size: .91rem; }
  .demo-board-wrap { min-height: 238px; }
  .demo-board { height: 238px; }
  .demo-progress { gap: 5px; }
  .demo-progress button { min-height: 46px; padding-inline: 4px; font-size: .81rem; }
  .demo-status-row { display: grid; gap: 4px; }
  .demo-step { justify-self: end; }
  .demo-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .demo-actions .button { width: 100%; padding-inline: 7px; font-size: .77rem; }
  .document-actions { align-items: flex-start; }
  .faq-group h2 { font-size: 1.2rem; }
  .site-footer nav { gap: 9px 14px; }
}

.demo-actions .button[hidden] { display: none; }
