:root {
  color-scheme: light;
  --ink: #211c23;
  --muted: #57515a;
  --paper: #f8f5ed;
  --line: #dcd5cc;
  --purple: #e6d8fd;
  --orange: #ff9764;
  --green: #e5e9c3;
  --dark: #272130;
  --body: Arial, Helvetica, sans-serif;
  --editorial: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.58 var(--body); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.01; }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; }
button { font: inherit; }
button:not(:disabled), summary { cursor: pointer; }
:focus-visible { outline: 3px solid #9a58da; outline-offset: 4px; }
.frame { width: min(100% - 64px, 1180px); margin-inline: auto; }
.skip, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  z-index: 2;
  top: 12px;
  left: 14px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 14px;
  background: white;
  clip-path: none;
}
.topbar { border-bottom: 1px solid var(--line); }
.bar { min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; text-decoration: none; font-size: 1.5rem; font-weight: 800; letter-spacing: -.07em; }
.brand img { border-radius: 9px; }
.brand small { font-size: inherit; color: #684488; }
.bar nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 38px); }
.bar nav a { font-size: .94rem; font-weight: 700; text-decoration: none; }
.bar nav a:hover, .text-link:hover { color: #74438e; text-decoration: underline; }
.store {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 10px;
  color: white;
  background: var(--ink);
  text-decoration: none;
  line-height: 1.15;
}
.store:hover { background: #473650; }
.store small, .store strong { display: block; }
.store small { margin-bottom: 3px; font-size: .75rem; color: #ebd8ff; }
.store strong { font-size: .875rem; }
.play-icon { width: 0; height: 0; border-block: 8px solid transparent; border-left: 13px solid #e0c6fb; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; gap: clamp(22px, 4vw, 64px); padding-block: 27px 0; }
.hero-copy { align-self: center; padding-block: 34px; }
.eyebrow { display: flex; align-items: center; gap: .65em; color: #54445f; font-size: .875rem; line-height: 1.25; font-weight: 700; }
.eyebrow span { width: .62em; height: .62em; border: 1px solid currentColor; border-radius: 50%; }
.hero h1 { margin-block: 25px 24px; font-size: clamp(4rem, 7vw, 7.2rem); font-weight: 760; line-height: .87; letter-spacing: -.09em; }
.hero h1 em { color: #754d93; font: italic .96em/.88 var(--editorial); letter-spacing: -.087em; }
.hero-intro { max-width: 35ch; font-size: clamp(1.06rem, 1.55vw, 1.26rem); color: var(--muted); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 26px; }
.button { min-height: 49px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; font-size: .97rem; font-weight: 750; text-decoration: none; }
.primary { background: var(--orange); border: 1px solid #a04829; }
.primary:hover { background: #ffac8a; }
.text-link { font-size: .97rem; font-weight: 700; }
.cover { overflow: hidden; border-radius: 17px; background: #dcc0ee; min-width: 0; }
.cover img { width: 100%; height: 100%; max-height: 595px; aspect-ratio: .96; object-fit: cover; object-position: center 44%; }

.rules { padding-block: clamp(64px, 8vw, 105px); }
.section-title { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: end; margin-bottom: 25px; }
.section-title .eyebrow { grid-column: 1 / -1; margin-bottom: 14px; }
.section-title > p:last-child { color: var(--muted); max-width: 54ch; }
h2 { font-size: clamp(2.65rem, 5.2vw, 5rem); font-weight: 760; letter-spacing: -.074em; }
.rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.rule { border-radius: 12px; min-height: 215px; padding: clamp(19px, 3vw, 32px); }
.rule-region { background: var(--purple); }
.rule-line { background: #ffdfcf; }
.rule-corner { background: var(--green); }
.rule h3, .tip-list h3 { font-size: clamp(1.35rem, 2vw, 1.67rem); letter-spacing: -.04em; }
.rule p { margin-top: 10px; max-width: 34ch; }
.rule-icon { display: grid; width: 46px; height: 40px; grid-template: 1fr 1fr / 1fr 1fr; gap: 3px; margin-bottom: 17px; transform: scale(.82); transform-origin: left top; }
.rule-icon i { display: block; border: 1.5px solid #31273a; border-radius: 4px; }
.territory-icon i:nth-child(2) { background: #a78ac8; }
.line-icon i { grid-column: 1 / -1; }
.line-icon i:first-child { background: #f49671; }
.corner-icon i { background: #aebe68; }
.corner-icon i:nth-child(2) { grid-area: 2 / 2; }

.practice { background: var(--dark); color: #fffaf1; padding-block: clamp(44px, 7.2vw, 95px); }
.practice-inner { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(34px, 9vw, 120px); align-items: center; }
.practice .eyebrow { color: #eacaff; }
.practice h2, .tips h2, .faq h2 { margin-block: 16px 20px; }
.practice-copy > p:not(.eyebrow) { max-width: 47ch; color: #f0e6f4; }
.solution { max-width: 425px; border-block: 1px solid #695c71; margin-top: 25px; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.solution summary, .questions summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; font-weight: 700; }
summary::after { content: "+"; flex: none; font-size: 1.45rem; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "−"; }
.solution ol { padding-inline-start: 1.55rem; margin: 0 0 15px; }
.solution li + li { margin-top: 6px; }
.practice-card { width: min(100%, 445px); justify-self: center; padding: clamp(15px, 3vw, 30px); border-radius: 18px; background: #e8d8f8; color: var(--ink); }
.board { width: min(100%, 342px); display: grid; grid-template-columns: .32fr repeat(4, minmax(0, 1fr)); grid-template-rows: .32fr repeat(4, minmax(0, 1fr)); gap: 5px; aspect-ratio: 1; margin-inline: auto; }
.axis { align-self: center; justify-self: center; font-size: .875rem; font-weight: 700; }
.tile { display: grid; place-items: center; min-width: 0; border: 0; border-radius: 9px; background: #fbf7ef; box-shadow: inset 0 -3px #c3adc9; }
.tile.fixed { background: #b798ca; box-shadow: inset 0 -3px #8d709d; }
.choice { padding: 0; background: #ffac83; box-shadow: inset 0 -3px #c77355; color: #38212b; font-size: clamp(.875rem, 2vw, 1.1rem); font-weight: 800; }
.choice:hover:not(:disabled) { background: #ffc3a5; }
.choice[data-result="blocked"] { text-decoration: line-through 2px; background: #ede3de; }
.choice[data-result="correct"] { background: #d5e697; box-shadow: inset 0 -3px #8da34d; }
.cat { position: relative; width: 53%; aspect-ratio: 1.22; border-radius: 43% 43% 49% 49%; background: var(--ink); }
.cat::before { content: ""; position: absolute; inset: -28% 1% auto; height: 68%; background: var(--ink); clip-path: polygon(0 100%, 7% 0, 41% 51%, 61% 51%, 93% 0, 100% 100%); }
.cat::after { content: ""; position: absolute; top: 50%; left: 26%; width: 48%; height: 18%; background: radial-gradient(circle at 12% 50%, #fbf1d9 0 17%, transparent 21%), radial-gradient(circle at 88% 50%, #fbf1d9 0 17%, transparent 21%); }
.feedback { min-height: 3.3em; margin: 13px 0 2px; line-height: 1.42; font-size: 1rem; }
.practice-actions:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px; }
.practice-actions button { min-height: 44px; padding: 5px 12px; border: 1px solid #9983a6; border-radius: 7px; background: transparent; color: inherit; font-size: .9rem; font-weight: 700; }
.practice-actions button:hover { background: #f6ebfb; }

.tips { display: grid; grid-template-columns: .9fr 1fr; gap: clamp(26px, 8vw, 107px); padding-block: clamp(62px, 8.4vw, 110px); }
.tips img { border-radius: 12px; width: 100%; height: auto; margin-top: 27px; }
.tip-list article { border-top: 1px solid var(--line); padding-block: 18px; }
.tip-list article:last-child { border-bottom: 1px solid var(--line); }
.tip-list p { color: var(--muted); margin-top: 8px; }
.faq { background: #eee2fb; padding-block: clamp(44px, 7vw, 88px); }
.faq-inner { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(16px, 7vw, 88px); }
.questions { border-top: 1px solid #bca8ce; }
.questions details { border-bottom: 1px solid #bca8ce; }
.questions p { max-width: 62ch; margin-bottom: 15px; }
.footer { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; padding-block: 20px; font-size: .9rem; color: var(--muted); }
.footer .brand { font-size: 1.32rem; color: var(--ink); }
.footer .brand img { width: 32px; height: 32px; }

@media (max-width: 800px) {
  .frame { width: min(100% - 36px, 1180px); }
  .bar { column-gap: 14px; }
  .bar nav { gap: 13px; }
  .hero { gap: 20px; }
  .hero h1 { font-size: clamp(3rem, 7.6vw, 5rem); }
  .hero-actions { gap: 10px 15px; }
}
@media (max-width: 740px) {
  .bar { grid-template-columns: 1fr max-content; min-height: 0; row-gap: 8px; padding-block: 11px; }
  .bar nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; }
  .bar nav a { padding: 6px 0; }
  .brand { gap: 7px; font-size: 1.35rem; }
  .brand img { width: 33px; height: 33px; }
  .store { min-height: 44px; padding: 5px 8px; }
  .store strong { font-size: .79rem; }
  .hero, .section-title, .practice-inner, .tips, .faq-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 0; gap: 20px; }
  .hero-copy { padding-block: 36px 0; }
  .hero h1 { font-size: clamp(3.45rem, 11vw, 5.75rem); margin-block: 17px; }
  .hero-actions { margin-top: 18px; }
  .cover img { aspect-ratio: .91; max-height: 500px; object-position: center 28%; }
  .section-title { row-gap: 10px; }
  .section-title .eyebrow { margin-bottom: 2px; }
  .rule-grid { grid-template-columns: 1fr; gap: 9px; }
  .rule { min-height: 0; }
  .rule-icon { margin-bottom: 10px; }
  .tip-list article { padding-block: 16px; }
  .footer { flex-wrap: wrap; justify-content: flex-start; }
}
@media (max-width: 380px) {
  .frame { width: calc(100% - 28px); }
  .bar { column-gap: 8px; }
  .bar .brand { gap: 5px; font-size: 1.12rem; }
  .bar .brand img { width: 28px; height: 28px; }
  .store { width: auto; max-width: 135px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
