:root {
  color-scheme: light;
  --paper: #fff8e9;
  --ink: #26204c;
  --muted: #54516a;
  --green: #492b8b;
  --line: #ded5e4;
  font-family: ui-rounded, "Avenir Next", Avenir, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #877144; outline-offset: 5px; border-radius: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
.wrap { width: min(1320px, calc(100% - 80px)); margin-inline: auto; }
.site-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.16rem; font-weight: 800; text-decoration: none; letter-spacing: -.045em; white-space: nowrap; }
.brand small { color: var(--muted); font-size: .79rem; font-weight: 650; letter-spacing: 0; }
.brand-mark { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: #bc9af4; box-shadow: 0 2px #9268d5; margin-right: 3px; }
.brand-mark i, .placed i { width: 53%; height: 43%; position: relative; border-radius: 36% 36% 49% 49%; background: radial-gradient(circle at 35% 56%, #304634 0 7%, transparent 8%), radial-gradient(circle at 65% 56%, #304634 0 7%, transparent 8%), #fff2d6; }
.brand-mark i::before, .brand-mark i::after, .placed i::before, .placed i::after { content: ""; position: absolute; top: -23%; width: 41%; height: 47%; background: #fff2d6; }
.brand-mark i::before, .placed i::before { left: 1%; clip-path: polygon(0 0,100% 90%,12% 100%); }
.brand-mark i::after, .placed i::after { right: 1%; clip-path: polygon(100% 0,88% 100%,0 90%); }
nav { display: flex; gap: clamp(18px, 3vw, 39px); }
nav a { font-size: .94rem; font-weight: 700; text-decoration: none; }
nav a:hover, .text-link:hover { color: #85452f; }
.hero { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 555px; overflow: hidden; border-radius: 30px; background: #42277b; color: #fff9ea; }
.hero-copy { padding: clamp(30px, 4.3vw, 59px); align-self: center; }
.label { color: #63439e; font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 14px; }
.hero .label { color: #e8d4ff; }
h1, h2 { font-weight: 900; }
h1 { font-size: clamp(3.28rem, 6.15vw, 6.5rem); line-height: .93; letter-spacing: -.075em; }
h1 span { display: block; color: #ffd782; font-size: .38em; line-height: 1.13; letter-spacing: -.045em; margin-top: .55em; }
.intro { max-width: 35ch; color: var(--muted); line-height: 1.7; margin: 25px 0; }
.hero .intro, .hero .app-note { color: #f2e7fa; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 21px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 51px; padding: 11px 15px; border-radius: 11px; background: #ffdb83; color: #312047; text-decoration: none; font-size: .91rem; font-weight: 800; box-shadow: 0 4px #e3a752; transition: transform .16s ease; }
.store:hover { transform: translateY(-2px); background: #ffe49f; }
.play { display: block; width: 17px; height: 19px; clip-path: polygon(0 0,100% 50%,0 100%); background: #654da0; }
.hero .text-link:hover { color: #ffd782; }
.text-link { font-weight: 750; font-size: .94rem; text-underline-offset: 4px; }
.app-note { margin-top: 13px; font-size: .84rem; color: var(--muted); }
.hero-art { display: block; position: relative; min-width: 0; background: #1cb7cf; }
.hero-art img { width: 100%; height: 100%; position: absolute; inset: 0; display: block; object-fit: cover; object-position: center; }
.section { scroll-margin-top: 24px; }
.gallery { padding-block: 78px 67px; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gallery figure { overflow: hidden; border-radius: 19px; background: #fffdfa; box-shadow: 0 4px 0 #e9dec8; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; }
.gallery figcaption { justify-content: flex-start; flex-direction: column; gap: 4px; margin: 0; padding: 17px 20px; color: var(--muted); font-size: .95rem; }
.gallery figcaption strong { color: var(--ink); font-size: 1.12rem; }
.rules { padding-block: 22px 68px; }
.section-intro { display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: 24px 45px; margin-bottom: 29px; }
h2 { font-size: clamp(2.35rem, 4.2vw, 4.1rem); letter-spacing: -.063em; line-height: 1.02; text-wrap: balance; }
.section-intro p, .strategy-copy > p:not(.label), .tips p, .tips dd, .questions p { color: var(--muted); line-height: 1.65; }
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rule { padding: 24px; border-radius: 16px; border: 1px solid #34271217; background: var(--card); }
.rule-yellow { --card: #f1e5b5; --tile: #ecd483; --edge: #c6a451; }
.rule-peach { --card: #f1d6c0; --tile: #e9ad8c; --edge: #c78b6c; }
.rule-lilac { --card: #e8dce4; --tile: #d3bace; --edge: #a98ca5; }
.rule-icon { display: grid; place-items: center; width: 48px; height: 46px; margin-bottom: 19px; border-radius: 10px; background: var(--tile); box-shadow: 0 4px var(--edge), inset 0 2px #ffffff72; font: 1.65rem Georgia, serif; }
h3 { font-size: 1.19rem; line-height: 1.2; letter-spacing: -.035em; }
.rule p { color: #464c3f; line-height: 1.6; margin-top: 9px; }
.rule-note { margin-top: 21px; padding: 15px 18px; border-left: 4px solid #af8ade; background: #f5ebfb; color: var(--muted); line-height: 1.55; }
.rule-note strong { color: var(--ink); margin-right: .35em; }
.strategy { display: grid; grid-template-columns: 1fr .84fr; align-items: center; gap: clamp(38px, 7.5vw, 112px); padding-block: 24px 77px; }
.example { background: linear-gradient(145deg,#f1e5ff,#d0b4f4); border-radius: 22px; padding: 42px 15px 25px; display: grid; justify-items: center; }
.board { --tile-size: clamp(33px, 4.1vw, 51px); display: grid; grid-template-columns: repeat(5,var(--tile-size)); gap: 5px; padding: 10px; background: #eee1c3; border-radius: 12px; transform: rotate(-7deg); box-shadow: 0 8px #a79c7f, 0 18px 25px #40513a42; }
.board span { height: var(--tile-size); display: grid; place-items: center; border-radius: 6px; color: #3a4d37; background: #f9f1d9; box-shadow: inset 0 2px #ffffff85; font-weight: 750; }
.board .line, .swatch-line { background: #c5d4b5; }
.board .corner, .swatch-corner { background: #dfb9a4; }
.board .placed { background: var(--green); transform: translateY(-2px); box-shadow: 0 4px #718065; }
figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 19px; margin-top: 28px; font-size: .82rem; color: #344432; }
.swatch { display: inline-block; height: 11px; width: 11px; border-radius: 3px; margin-right: 4px; border: 1px solid #5d6a5259; }
.strategy-copy h2 { margin-bottom: 22px; }
.strategy-copy > p:not(.label) { margin-bottom: 15px; }
.strategy-copy .text-link { display: inline-block; margin-top: 5px; }
.panorama { overflow: hidden; border-radius: 23px; margin-bottom: 75px; background: #fbb174; }
.panorama img { display: block; width: 100%; height: auto; }
.tips { background: #ece2fa; padding-block: 65px; }
.tips-inner { display: grid; grid-template-columns: .9fr 1fr; gap: clamp(35px, 8vw, 110px); }
.tips-heading p { margin-top: 18px; max-width: 36ch; }
dl > div { padding-block: 14px; border-top: 1px solid #d5c5e8; }
dt { font-weight: 800; margin-bottom: 4px; }
.walkthrough { padding-block: 73px 21px; }
.walkthrough-steps { margin: 0; padding-inline-start: 2.2em; }
.walkthrough-steps li { padding: 14px 0 14px 7px; border-top: 1px solid var(--line); }
.walkthrough-steps li::marker { color: #63439e; font-weight: 850; }
.walkthrough-steps p { color: var(--muted); line-height: 1.65; margin-top: 5px; }
.faq { display: grid; grid-template-columns: .65fr 1fr; gap: 35px; padding-block: 65px 70px; }
.questions { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 56px; padding-block: 11px; font-weight: 750; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--green); }
details[open] summary::after { content: "−"; }
.questions p { padding-bottom: 17px; }
.questions a { text-underline-offset: 3px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 24px 29px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px; }
.site-footer p { font-size: .86rem; color: var(--muted); }

@media (max-width: 1020px) {
  .wrap { width: calc(100% - 48px); }
  .hero { min-height: 440px; }
  .hero-copy { padding: 36px 29px; }
  h1 { font-size: clamp(3.1rem, 6.3vw, 4.75rem); }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 67px; }
  .hero { grid-template-columns: 1fr; border-radius: 20px; }
  .hero-copy { padding: 31px 26px 29px; }
  h1 { font-size: clamp(3.6rem, 12vw, 6rem); }
  .hero-art { aspect-ratio: 3 / 2; }
  .section-intro, .strategy, .tips-inner, .faq { grid-template-columns: 1fr; }
  .gallery { padding-block: 50px 42px; }
  .rules { padding-block: 12px 43px; }
  .strategy { gap: 31px; padding-block: 10px 55px; }
  .strategy-copy { grid-row: 1; }
  .tips, .faq { padding-block: 49px; }
  .panorama { margin-bottom: 49px; }
  .walkthrough { padding-block: 49px 13px; }
}
@media (max-width: 600px) {
  .brand small { display: none; }
  .site-header { gap: 10px; }
  nav { gap: 10px; }
  nav a { font-size: .8rem; }
  .rule-grid, .gallery-grid { grid-template-columns: 1fr; gap: 13px; }
  .rule { padding: 18px; }
}
@media (max-width: 350px) {
  h1 { font-size: 2.65rem; }
  .site-header { gap: 9px; flex-wrap: wrap; padding-block: 12px; }
  .brand { gap: 6px; font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { .store { transition: none; } }
