:root {
  --ink: #132a4f;
  --muted: #647087;
  --cream: #fffaf0;
  --paper: #ffffff;
  --orange: #ff6b1a;
  --blue: #1166d8;
  --green: #309120;
  --purple: #7041b3;
  --red: #e94231;
  --yellow: #ffc83d;
  --line: rgba(19, 42, 79, .13);
  --shadow: 0 22px 60px rgba(26, 43, 73, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: white; transform: translateY(-150%); border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 240, .88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(19, 42, 79, .06); }
.nav-wrap { width: min(1180px, calc(100% - 40px)); min-height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.5rem; font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px 13px 13px 4px; color: white; background: var(--blue); font-size: 1.25rem; transform: rotate(-3deg); box-shadow: 3px 4px 0 #bdd9ff; }
.brand-dot { color: var(--orange); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: .92rem; font-weight: 700; text-decoration: none; }
.main-nav a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta { padding: 11px 18px; color: white; background: var(--ink); border-radius: 999px; transition: transform .2s, background .2s; }
.nav-cta:hover { background: var(--blue); transform: translateY(-2px); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; }
.menu-toggle > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--ink); transition: .2s; }

.hero { position: relative; width: min(1180px, calc(100% - 40px)); min-height: 720px; margin: auto; padding: 72px 0 90px; display: grid; grid-template-columns: 1.06fr .82fr; align-items: center; gap: 86px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-kicker { margin: 0 0 18px; color: var(--orange); font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { display: inline-block; padding: 7px 12px; border: 1px solid rgba(255,107,26,.25); background: rgba(255,107,26,.08); border-radius: 999px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(3.35rem, 6vw, 5.75rem); line-height: .98; letter-spacing: -.068em; }
h1 span { color: var(--blue); }
.hero-lead { max-width: 620px; margin-bottom: 32px; color: #53627a; font-family: "Segoe UI", sans-serif; font-size: 1.14rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 27px; margin-bottom: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 52px; padding: 13px 23px; border: 0; border-radius: 15px; font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: white; background: var(--orange); box-shadow: 0 10px 0 #d9480d, 0 18px 26px rgba(255,107,26,.18); }
.button-primary:hover { box-shadow: 0 7px 0 #d9480d, 0 16px 25px rgba(255,107,26,.22); }
.text-link { padding: 10px 0 6px; color: var(--ink); background: none; border: 0; border-bottom: 2px solid var(--ink); font-weight: 900; text-decoration: none; cursor: pointer; }
.text-link:hover { color: var(--blue); border-color: var(--blue); }
.hero-points { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; color: #56657b; font-family: "Segoe UI", sans-serif; font-size: .84rem; list-style: none; }
.hero-points span { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 5px; color: white; background: var(--green); border-radius: 50%; font-size: .7rem; font-weight: 900; }
.hero-visual { position: relative; justify-self: center; width: min(100%, 420px); }
.image-frame { position: relative; padding: 13px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(2.2deg); }
.image-frame img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.tape { position: absolute; z-index: 2; width: 86px; height: 27px; background: rgba(255, 210, 83, .72); box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.tape-top { top: -9px; left: 50%; transform: translateX(-50%) rotate(-3deg); }
.tape-bottom { right: -25px; bottom: 40px; transform: rotate(-55deg); }
.floating-note { position: absolute; z-index: 4; display: grid; place-items: center; text-align: center; box-shadow: 0 12px 28px rgba(20,40,70,.18); }
.note-one { top: 14%; left: -54px; width: 104px; height: 104px; color: white; background: var(--purple); border: 6px solid white; border-radius: 50%; transform: rotate(-9deg); }
.note-one strong { margin-bottom: -17px; font-size: 1.5rem; }
.note-one span { font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.note-two { right: -45px; bottom: 16%; width: 124px; min-height: 83px; padding: 11px; color: var(--ink); background: var(--yellow); border: 3px solid white; border-radius: 8px; transform: rotate(7deg); line-height: 1.12; }
.note-two > span { position: absolute; top: -16px; left: -13px; color: var(--orange); font-size: 2rem; }
.doodle { position: absolute; font-size: 4rem; opacity: .12; }
.doodle-one { top: 7%; left: -7%; color: var(--purple); transform: rotate(20deg); }
.doodle-two { right: -11%; bottom: 6%; color: var(--orange); }

.trust-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.5); display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-strip > div { min-height: 118px; display: flex; align-items: center; justify-content: center; gap: 13px; border-right: 1px solid var(--line); }
.trust-strip > div:last-child { border: 0; }
.trust-strip strong { color: var(--blue); font-size: 2rem; letter-spacing: -.05em; }
.trust-strip span { max-width: 105px; color: var(--muted); font-family: "Segoe UI", sans-serif; font-size: .78rem; font-weight: 600; line-height: 1.3; }

.games-section, .principles { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 110px 0; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 80px; margin-bottom: 45px; }
.section-heading h2, .how-intro h2, .faq-title h2, .final-cta h2 { margin-bottom: 0; font-size: clamp(2.35rem, 4vw, 4.1rem); line-height: 1.05; letter-spacing: -.055em; }
.section-heading > p { max-width: 430px; margin: 0 0 5px; color: var(--muted); font-family: "Segoe UI", sans-serif; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.filter { padding: 9px 16px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; font-size: .83rem; font-weight: 800; cursor: pointer; transition: .2s; }
.filter:hover, .filter.is-active { color: white; background: var(--ink); border-color: var(--ink); }
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 27px; }
.game-card { position: relative; min-width: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 11px 36px rgba(29,45,70,.07); transition: transform .3s, box-shadow .3s, opacity .25s; }
.game-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.game-card.is-hidden { display: none; }
.card-image { position: relative; display: block; width: 100%; height: 325px; padding: 0; overflow: hidden; background: #e7eef8; border: 0; cursor: pointer; }
.card-image::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(transparent, rgba(9,27,55,.14)); pointer-events: none; }
.card-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; transition: transform .5s; }
.game-card:hover .card-image img { transform: scale(1.045); }
.card-number { position: absolute; z-index: 2; right: 15px; top: 15px; display: grid; place-items: center; min-width: 49px; height: 42px; padding: 0 10px; color: white; background: var(--blue); border: 3px solid white; border-radius: 14px; font-size: .85rem; font-weight: 900; box-shadow: 0 7px 15px rgba(20,45,80,.18); }
.card-orange .card-number { background: var(--orange); }
.card-purple .card-number { background: var(--purple); }
.card-green .card-number { background: var(--green); }
.card-red .card-number { background: var(--red); }
.card-bonus .card-number { color: var(--ink); background: var(--yellow); }
.card-content { padding: 25px 25px 23px; }
.card-meta { display: flex; gap: 8px; margin-bottom: 12px; }
.card-meta span { padding: 5px 9px; color: var(--muted); background: #f2f5f8; border-radius: 7px; font-family: "Segoe UI", sans-serif; font-size: .69rem; font-weight: 700; }
.card-content h3 { margin-bottom: 10px; font-size: 1.42rem; line-height: 1.15; letter-spacing: -.035em; }
.card-content > p { min-height: 76px; margin-bottom: 22px; color: var(--muted); font-family: "Segoe UI", sans-serif; font-size: .9rem; line-height: 1.6; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 17px; border-top: 1px solid var(--line); }
.card-link { padding: 0; color: var(--ink); background: none; border: 0; font-size: .83rem; font-weight: 900; cursor: pointer; }
.card-link:hover { color: var(--blue); }
.skill-dot { display: grid; place-items: center; flex: 0 0 32px; height: 32px; color: white; background: var(--blue); border-radius: 50%; font-size: .72rem; font-weight: 900; }
.card-orange .skill-dot { background: var(--orange); }
.card-purple .skill-dot { background: var(--purple); }
.card-green .skill-dot { background: var(--green); }
.card-red .skill-dot { background: var(--red); }
.card-bonus { background: #fff9df; border: 2px solid var(--yellow); }
.card-bonus .skill-dot { color: var(--ink); background: var(--yellow); }
.bonus-ribbon { position: absolute; z-index: 5; top: 26px; left: -38px; width: 152px; padding: 6px; color: white; background: var(--orange); font-size: .67rem; font-weight: 900; letter-spacing: .08em; text-align: center; text-transform: uppercase; transform: rotate(-42deg); box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.empty-state { padding: 50px; color: var(--muted); text-align: center; }

.how-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; padding: 110px max(40px, calc((100vw - 1180px) / 2)); color: white; background: var(--ink); }
.how-intro { align-self: center; }
.how-intro .section-kicker { color: #72adff; }
.how-intro > p:not(.section-kicker) { margin: 25px 0 30px; color: #b9c5d7; font-family: "Segoe UI", sans-serif; }
.button-light { color: var(--ink); background: white; box-shadow: 0 8px 0 #9eb2ce; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.steps li:last-child { border: 0; }
.steps li > span { display: grid; place-items: center; width: 52px; height: 52px; color: var(--ink); background: var(--yellow); border-radius: 17px 17px 17px 5px; font-size: 1.2rem; font-weight: 900; transform: rotate(-3deg); }
.steps li:nth-child(2) > span { color: white; background: var(--blue); transform: rotate(3deg); }
.steps li:nth-child(3) > span { color: white; background: var(--green); }
.steps li:nth-child(4) > span { color: white; background: var(--orange); transform: rotate(2deg); }
.steps h3 { margin: 0 0 5px; font-size: 1.35rem; }
.steps p { margin: 0; color: #b9c5d7; font-family: "Segoe UI", sans-serif; font-size: .9rem; }

.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.principles-grid article { padding: 35px; background: white; border: 1px solid var(--line); border-radius: 23px; }
.principle-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 23px; color: white; border-radius: 17px 17px 17px 5px; font-size: 1.55rem; font-weight: 900; }
.principle-icon.blue { background: var(--blue); }.principle-icon.orange { background: var(--orange); }.principle-icon.green { background: var(--green); }
.principles h3 { margin-bottom: 8px; font-size: 1.35rem; }
.principles article p { margin: 0; color: var(--muted); font-family: "Segoe UI", sans-serif; font-size: .92rem; }

.faq-section { width: min(1000px, calc(100% - 40px)); margin: auto; padding: 70px 0 125px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; }
.faq-title { position: sticky; top: 120px; align-self: start; }
.faq-title h2 { margin-bottom: 20px; }
.faq-title > p:last-child { color: var(--muted); font-family: "Segoe UI", sans-serif; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 25px 55px 25px 0; font-weight: 900; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { position: absolute; right: 7px; top: 19px; display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--blue); border-radius: 50%; font-size: 1.25rem; transition: transform .2s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { padding: 0 55px 25px 0; margin: 0; color: var(--muted); font-family: "Segoe UI", sans-serif; font-size: .92rem; }

.final-cta { position: relative; width: min(1180px, calc(100% - 40px)); margin: 0 auto 90px; padding: 80px 30px; overflow: hidden; background: #fff1b7; border-radius: 38px; text-align: center; }
.final-cta h2 { position: relative; margin-bottom: 20px; }
.final-cta > p:not(.section-kicker) { position: relative; max-width: 620px; margin: 0 auto 30px; color: #5f6471; font-family: "Segoe UI", sans-serif; }
.final-cta .button { position: relative; }
.cta-shape { position: absolute; border-radius: 50%; }
.shape-one { width: 240px; height: 240px; left: -100px; bottom: -100px; background: var(--blue); opacity: .12; }
.shape-two { width: 160px; height: 160px; right: -50px; top: -60px; background: var(--orange); opacity: .16; }

.site-footer { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 45px 0 35px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; border-top: 1px solid var(--line); }
.site-footer > p { margin: 0; color: var(--muted); font-family: "Segoe UI", sans-serif; font-size: .8rem; }
.footer-links { display: flex; gap: 20px; font-size: .8rem; font-weight: 800; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
.copyright { grid-column: 1 / -1; text-align: center; }

.game-dialog { width: min(960px, calc(100% - 28px)); max-height: calc(100vh - 30px); padding: 0; color: var(--ink); background: white; border: 0; border-radius: 28px; box-shadow: 0 30px 100px rgba(8,24,47,.35); overflow: hidden; }
.game-dialog::backdrop { background: rgba(10,25,49,.72); backdrop-filter: blur(6px); }
.dialog-close { position: fixed; z-index: 5; top: max(26px, calc((100vh - min(720px, 100vh - 30px)) / 2 + 15px)); right: max(24px, calc((100vw - min(960px, 100vw - 28px)) / 2 + 15px)); display: grid; place-items: center; width: 42px; height: 42px; color: var(--ink); background: white; border: 0; border-radius: 50%; box-shadow: 0 5px 18px rgba(0,0,0,.16); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.dialog-layout { display: grid; grid-template-columns: .78fr 1.22fr; min-height: 690px; }
.dialog-image-wrap { position: sticky; top: 0; height: min(760px, calc(100vh - 30px)); background: #eef3f8; }
.dialog-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; }
.dialog-copy { padding: 55px 52px 50px; overflow: auto; }
.dialog-kicker { margin-bottom: 10px; color: var(--orange); font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.dialog-copy h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; letter-spacing: -.05em; }
.dialog-description { color: var(--muted); font-family: "Segoe UI", sans-serif; }
.dialog-facts { display: flex; gap: 9px; margin: 22px 0 28px; }
.dialog-facts span { padding: 7px 11px; background: #f1f5f8; border-radius: 8px; font-size: .73rem; font-weight: 800; }
.dialog-block { margin-top: 24px; }
.dialog-block h3 { margin-bottom: 10px; font-size: 1rem; }
.dialog-block ul, .dialog-block ol { margin: 0; padding-left: 20px; color: var(--muted); font-family: "Segoe UI", sans-serif; font-size: .86rem; }
.dialog-block li { margin-bottom: 5px; }
.dialog-skills { display: flex; flex-wrap: wrap; gap: 7px; margin: 27px 0; }
.dialog-skills span { padding: 6px 10px; color: var(--blue); background: #edf5ff; border-radius: 999px; font-size: .7rem; font-weight: 800; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { gap: 42px; }
  .hero-visual { width: min(100%, 350px); }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .how-section { gap: 50px; }
  .note-two { right: -20px; }
  .note-one { left: -25px; }
}

@media (max-width: 760px) {
  .doodle { display: none; }
  .nav-wrap { width: min(100% - 28px, 1180px); min-height: 68px; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: absolute; top: 68px; left: 14px; right: 14px; display: none; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; }
  .main-nav .nav-cta { text-align: center; }
  .hero { width: min(100% - 28px, 1180px); padding: 58px 0 75px; grid-template-columns: 1fr; gap: 60px; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-visual { width: min(82%, 400px); }
  .hero-points { gap: 12px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip > div { min-height: 90px; border-bottom: 1px solid var(--line); }
  .trust-strip > div:nth-child(2) { border-right: 0; }
  .games-section, .principles { width: min(100% - 28px, 1180px); padding: 80px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .games-grid { grid-template-columns: 1fr; }
  .card-image { height: 420px; }
  .card-content > p { min-height: auto; }
  .how-section { grid-template-columns: 1fr; padding: 80px 22px; }
  .principles-grid { grid-template-columns: 1fr; }
  .faq-section { grid-template-columns: 1fr; gap: 35px; padding: 30px 0 90px; }
  .faq-title { position: static; }
  .final-cta { width: calc(100% - 28px); padding: 65px 20px; border-radius: 28px; }
  .site-footer { width: calc(100% - 28px); grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .footer-links { justify-content: center; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-image-wrap { position: relative; height: 300px; }
  .dialog-copy { padding: 35px 25px 38px; }
  .dialog-close { position: fixed; top: 24px; right: 24px; }
}

@media (max-width: 430px) {
  .hero-actions { align-items: stretch; flex-direction: column; }
  .text-link { align-self: flex-start; }
  .hero-points { flex-direction: column; }
  .hero-visual { width: 86%; }
  .note-one { width: 86px; height: 86px; left: -22px; }
  .note-two { width: 106px; right: -25px; }
  .card-image { height: 345px; }
  .filters { flex-wrap: nowrap; padding-bottom: 6px; overflow-x: auto; }
  .filter { flex: 0 0 auto; }
  .trust-strip strong { font-size: 1.6rem; }
  .trust-strip span { font-size: .7rem; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
