:root {
  color-scheme: light;
  --paper: #fcf9f0;
  --ink: #163e32;
  --muted: #506057;
  --pink: #f5b3b8;
  --line: #d9dfd2;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #bc6578; outline-offset: 5px; border-radius: 5px; }
.wrap { width: min(1320px, calc(100% - 72px)); margin-inline: auto; }
.mast { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 82px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 850 1.35rem/1 system-ui, sans-serif; letter-spacing: -.065em; }
.wordmark img { border-radius: 11px; }
.wordmark span { font-size: .75rem; font-weight: 650; letter-spacing: 0; color: var(--muted); margin-left: 3px; }
nav { display: flex; gap: clamp(17px, 3.5vw, 39px); }
nav a { font-weight: 750; font-size: .91rem; text-decoration: none; }
nav a:hover { color: #9a4c63; }
.hero { display: grid; grid-template-columns: .94fr 1.06fr; min-height: 550px; overflow: hidden; border-radius: 25px; background: var(--ink); color: #fff8e9; }
.hero-copy { padding: clamp(32px, 4.6vw, 65px); align-self: center; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 15px; color: #9e5060; }
.hero .eyebrow { color: var(--pink); }
h1 { font: 850 clamp(3.5rem, 6vw, 6.1rem)/.94 ui-rounded, "Avenir Next", system-ui, sans-serif; letter-spacing: -.075em; }
h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--pink); }
.lead { max-width: 34ch; font-size: 1.12rem; line-height: 1.65; margin: 24px 0 12px; }
.hero-description { max-width: 37ch; color: #c7d6c9; line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 51px; padding: 11px 15px; background: var(--pink); color: #173b30; font-weight: 800; font-size: .91rem; text-decoration: none; border-radius: 10px; box-shadow: 0 4px #bc7c88; }
.store:hover { background: #ffcad0; }
.play { width: 16px; height: 18px; clip-path: polygon(0 0,100% 50%,0 100%); background: var(--ink); }
.quiet-link { font-size: .88rem; font-weight: 700; text-underline-offset: 4px; }
.app-note { color: #c7d6c9; margin-top: 14px; font-size: .82rem; }
.hero-art { position: relative; display: block; min-width: 0; background: #f5b4bb; }
.hero-art img { position: absolute; display: block; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.section { scroll-margin-top: 22px; }
h2 { font: 850 clamp(2.35rem, 4.2vw, 4rem)/1.04 ui-rounded, "Avenir Next", system-ui, sans-serif; letter-spacing: -.063em; text-wrap: balance; }
h3 { font-size: 1.17rem; line-height: 1.2; letter-spacing: -.035em; }
.introduction, .section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 65px; }
.introduction { padding-block: 77px 65px; }
.introduction p, .section-heading p, .hint-copy > p:not(.eyebrow), .strategy-inner p, dd, .routine p, .checklist p, .questions p { color: var(--muted); line-height: 1.75; }
.introduction p + p { margin-top: 13px; }
.basics { padding-bottom: 67px; }
.section-heading { align-items: end; margin-bottom: 28px; }
.rules { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.rule { padding: 23px; border-radius: 17px; background: var(--card); border: 1px solid #213c2c12; }
.yellow { --card: #f7e8b8; --tile: #f0d07d; --edge: #c5a14e; }
.pink { --card: #f3dadd; --tile: #e9b0ba; --edge: #bf7e8b; }
.blue { --card: #dfe8fa; --tile: #b8ccef; --edge: #869fc9; }
.tile { display: grid; place-items: center; width: 47px; height: 45px; border-radius: 10px; margin-bottom: 19px; background: var(--tile); box-shadow: 0 4px var(--edge), inset 0 2px #ffffff75; font-size: 1.5rem; }
.rule p { margin-top: 9px; color: #4d554d; line-height: 1.65; }
.hint { display: grid; grid-template-columns: .95fr 1fr; gap: clamp(30px, 7vw, 100px); align-items: center; padding-bottom: 70px; }
.hint h2 { margin-bottom: 21px; }
.hint-copy > p:not(.eyebrow) { margin-bottom: 13px; }
.toggle { display: inline-flex; border: 1px solid #b3c4b7; border-radius: 8px; min-height: 45px; padding: 10px 15px; background: #e7eee1; color: var(--ink); font-size: .91rem; font-weight: 750; cursor: pointer; margin-top: 8px; }
.toggle:hover { background: #d8e5d4; }
.hint-copy .demo-help { margin: 12px 0 0; font-size: .85rem; }
.demo { display: grid; justify-items: center; border-radius: 21px; padding: 40px 12px 24px; background: #edb6bc; }
.board { --side: clamp(33px, 4vw, 51px); display: grid; grid-template-columns: repeat(5,var(--side)); gap: 5px; padding: 10px; border-radius: 13px; background: #f2e1bf; transform: rotate(6deg); box-shadow: 0 8px #c7aa83, 0 20px 25px #6b3d4433; }
.board span { height: var(--side); display: grid; place-items: center; border-radius: 6px; font-weight: 850; background: #fff6dd; box-shadow: inset 0 2px #ffffff75; }
.board .line, .line-key { background: #bdd5b9; }
.board .corner, .corner-key { background: #abc4e6; }
.board .cat { background: var(--ink); box-shadow: 0 4px #657b5e; transform: translateY(-2px); }
.cat i { position: relative; width: 53%; height: 43%; border-radius: 36% 36% 49% 49%; background: radial-gradient(circle at 35% 56%,#183f33 0 7%,transparent 8%),radial-gradient(circle at 65% 56%,#183f33 0 7%,transparent 8%),#fff2d6; }
.cat i::before, .cat i::after { content: ""; position: absolute; top: -23%; width: 41%; height: 47%; background: #fff2d6; }
.cat i::before { left: 1%; clip-path: polygon(0 0,100% 90%,12% 100%); }
.cat i::after { right: 1%; clip-path: polygon(100% 0,88% 100%,0 90%); }
.board.hide-marks .line, .board.hide-marks .corner { background: #fff6dd; color: transparent; }
figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 17px; margin-top: 25px; font-size: .84rem; color: #51424a; }
figcaption i { display: inline-block; width: 11px; height: 11px; border: 1px solid #6c665255; border-radius: 3px; margin-right: 4px; }
.panorama { border-radius: 22px; overflow: hidden; margin-bottom: 69px; background: var(--ink); }
.panorama img { display: block; width: 100%; height: auto; }
.strategy-band { background: #e4eadc; padding-block: 62px; }
.strategy-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px clamp(30px, 7vw, 100px); }
.strategy-inner > div > p:last-child { margin-top: 19px; }
dl > div { border-top: 1px solid #c6d1bd; padding-block: 14px; }
dt { font-weight: 850; margin-bottom: 5px; }
.routine { padding-block: 69px 50px; }
.routine ol { padding-inline-start: 1.8em; margin: 0; }
.routine li { padding: 14px 0 14px 7px; border-top: 1px solid var(--line); }
.routine li::marker { color: #9e5060; font-weight: 850; }
.routine p { margin-top: 6px; }
.mistakes { display: grid; grid-template-columns: .85fr 1.15fr; gap: 35px 85px; padding-block: 21px 61px; }
.checklist article { border-top: 1px solid var(--line); padding-block: 15px; }
.checklist p { margin-top: 6px; }
.faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: 28px 65px; padding-block: 6px 70px; }
.questions { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; gap: 15px; min-height: 58px; padding-block: 12px; font-weight: 800; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.25rem; color: #9e5060; }
details[open] summary::after { content: "−"; }
.questions p { padding-bottom: 16px; }
.questions a { text-underline-offset: 4px; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-block: 24px 30px; border-top: 1px solid var(--line); }
.footer p, .footer > a:last-child { font-size: .84rem; color: var(--muted); }
.missing { padding-block: 80px; }
.missing p { margin-top: 25px; }
@media (max-width: 1040px) {
  .wrap { width: calc(100% - 48px); }
  .hero-copy { padding: 34px 29px; }
}
@media (max-width: 820px) {
  .wrap { width: calc(100% - 32px); }
  .hero, .introduction, .section-heading, .hint, .strategy-inner, .mistakes, .faq { grid-template-columns: 1fr; }
  .mast { min-height: 68px; }
  .wordmark span { display: none; }
  .hero { border-radius: 19px; }
  .hero-copy { padding: 32px 25px 28px; }
  h1 { font-size: clamp(3.5rem, 12vw, 5.7rem); }
  .hero-art { aspect-ratio: 3 / 2; }
  .introduction { padding-block: 50px 43px; }
  .basics { padding-bottom: 44px; }
  .hint { gap: 27px; padding-bottom: 46px; }
  .panorama { margin-bottom: 47px; }
  .strategy-band { padding-block: 46px; }
  .routine { padding-block: 48px 31px; }
  .mistakes { padding-block: 15px 43px; gap: 27px; }
  .faq { padding-bottom: 48px; }
}
@media (max-width: 590px) {
  .rules { grid-template-columns: 1fr; gap: 12px; }
  .rule { padding: 19px; }
  nav { gap: 10px; }
  nav a { font-size: .76rem; white-space: nowrap; }
  .mast { gap: 10px; }
  .wordmark { font-size: 1.05rem; gap: 6px; }
  h1 { font-size: clamp(2.75rem, 11.5vw, 4rem); }
}
@media (max-width: 360px) {
  .mast { flex-wrap: wrap; padding-block: 12px; }
  h1 { font-size: 3.15rem; }
}
