:root {
  --forest-950: #020617;
  --forest-900: #0f172a;
  --forest-800: #1e293b;
  --forest-700: #06b6d4;
  --leaf: #06b6d4;
  --sprout: #cffafe;
  --paper: #ffffff;
  --paper-deep: #f8fafc;
  --white: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bark: #f43f5e;
  --bark-light: #fb7185;
  --focus: #06b6d4;
  --wash: #f8fafc;
  --wash-strong: #f1f5f9;
  --library-wash: #f8fafc;
  --feature-wash: #f1f5f9;
  --feature-pale: #ffffff;
  --entry-hover: #f1f5f9;
  --font-body: 'Plus Jakarta Sans', 'Be Vietnam Pro', system-ui, sans-serif;
  --font-display: 'Be Vietnam Pro', 'Plus Jakarta Sans', system-ui, sans-serif;
  
  /* Standardized Geometries */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 50px;
  --radius-round: 50%;
  
  /* Standardized Transitions */
  --transition-fast: .15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: .2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: .3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Standardized Shadows */
  --shadow-sm: 0 2px 4px rgba(2, 6, 23, .05);
  --shadow-md: 0 4px 6px -1px rgba(2, 6, 23, .1), 0 2px 4px -1px rgba(2, 6, 23, .06);
  --shadow-lg: 0 10px 15px -3px rgba(2, 6, 23, .1), 0 4px 6px -2px rgba(2, 6, 23, .05);
  --shadow-xl: 0 20px 25px -5px rgba(2, 6, 23, .1), 0 10px 10px -5px rgba(2, 6, 23, .04);
  --shadow-offset: 4px 4px 0 var(--forest-900);
  --shadow-glow-x: 0 0 12px rgba(6, 182, 212, 0.4);
  --shadow-glow-o: 0 0 12px rgba(244, 63, 94, 0.4);
}

body[data-theme="ocean"] { --forest-950: #154656; --forest-900: #1c5b6b; --forest-800: #277b8e; --forest-700: #3d9ab5; --leaf: #9bd3df; --sprout: #d9eff2; --paper-deep: #eff9fa; --ink: #17414c; --muted: #5b7479; --line: #d2e7ea; --bark: #a77b47; --bark-light: #e5d1b0; --focus: #2d8ca5; --wash: #f0f9fa; --wash-strong: #e3f3f5; --library-wash: #eef8f9; --feature-wash: #e3f3f5; --feature-pale: #f5fbfc; --entry-hover: #e3f3f5; }
body[data-theme="lilac"] { --forest-950: #443968; --forest-900: #574978; --forest-800: #705ca1; --forest-700: #8870bc; --leaf: #c8bce2; --sprout: #e8e2f2; --paper-deep: #f7f4fb; --ink: #403654; --muted: #716b80; --line: #e0d9eb; --bark: #a36e8f; --bark-light: #ead2df; --focus: #7a61af; --wash: #f7f4fb; --wash-strong: #eee9f6; --library-wash: #f4f0fa; --feature-wash: #eee9f6; --feature-pale: #fbf9fd; --entry-hover: #eee9f6; }
body[data-theme="sunset"] { --forest-950: #69462c; --forest-900: #80583a; --forest-800: #9e6e43; --forest-700: #bd8251; --leaf: #dfbd91; --sprout: #f3e4d2; --paper-deep: #fcf6ef; --ink: #63432d; --muted: #7c695b; --line: #eadbc9; --bark: #a85e47; --bark-light: #f0d0bd; --focus: #af7140; --wash: #fcf7f1; --wash-strong: #f7ede1; --library-wash: #faf3ea; --feature-wash: #f7ede1; --feature-pale: #fdfaf6; --entry-hover: #f7ede1; }
body[data-theme="rose"] { --forest-950: #704054; --forest-900: #874c63; --forest-800: #a35f7a; --forest-700: #c47896; --leaf: #e6b7c8; --sprout: #f5dfe6; --paper-deep: #fcf4f6; --ink: #633c4b; --muted: #7d6570; --line: #edd8df; --bark: #a47b4d; --bark-light: #efdaba; --focus: #b86988; --wash: #fcf5f7; --wash-strong: #f8e9ee; --library-wash: #fbf1f4; --feature-wash: #f8e9ee; --feature-pale: #fdf9fa; --entry-hover: #f8e9ee; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { min-width: 320px; margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
body::before { position: fixed; z-index: -1; inset: 0; content: ""; opacity: .22; background-image: radial-gradient(rgba(30, 87, 58, .19) .65px, transparent .75px); background-size: 7px 7px; pointer-events: none; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
.section-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 16px; padding: 10px 15px; color: var(--white); background: var(--forest-950); border-radius: 0 0 var(--radius-md) var(--radius-md); transition: top var(--transition-base); }.skip-link:focus { top: 0; }

.site-header { position: sticky; top: 0; z-index: 50; width: 100%; padding: 0 max(24px, calc((100% - 1280px)/2)); min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 22px; background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transition: box-shadow var(--transition-slow), background var(--transition-slow); }.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.07em; line-height: 1; }.brand > span:last-child span { color: var(--forest-700); }.brand-mark { width: 28px; height: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; transform: rotate(45deg); }.brand-mark i { background: var(--forest-900); border-radius: var(--radius-sm); }.brand-mark i:first-child { background: var(--bark); }.brand-mark i:last-child { background: var(--leaf); }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.8vw, 38px); font-size: 13px; font-weight: 700; }.site-nav a { position: relative; padding: 9px 0; }.site-nav a::after { position: absolute; right: 0; bottom: 3px; left: 0; height: 2px; content: ""; background: var(--forest-700); transform: scaleX(0); transform-origin: left; transition: transform var(--transition-base); }.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.header-action, .button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 19px; border: 1px solid transparent; cursor: pointer; font-family: var(--font-body); font-size: 13px; font-weight: 800; transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base); border-radius: var(--radius-md); }.header-action { color: var(--white); background: var(--forest-900); }.header-action:hover { background: var(--forest-700); transform: translateY(-2px); box-shadow: var(--shadow-offset); }.header-action svg, .button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.hero { position: relative; min-height: 654px; padding: 70px 0 84px; overflow: clip; }.hero::before, .hero::after { position: absolute; z-index: -1; content: ""; pointer-events: none; }.hero::before { top: -225px; right: -160px; width: 660px; height: 660px; border: 1px solid rgba(6, 182, 212, .18); border-radius: 50%; box-shadow: 0 0 0 70px rgba(6, 182, 212, .045), 0 0 0 140px rgba(6, 182, 212, .028); }.hero::after { right: 43%; bottom: -106px; width: 212px; height: 212px; border: 1px solid rgba(244, 63, 94, .16); transform: rotate(45deg); }
.hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }.hero-particles i { position: absolute; font-family: var(--font-display); font-style: normal; font-weight: 800; font-size: clamp(30px, 6vw, 60px); opacity: 0.05; animation: floatParticle 12s infinite ease-in-out; }.hero-particles .particle-x { color: var(--forest-900); }.hero-particles .particle-o { color: var(--bark); animation-delay: -6s; animation-duration: 15s; }.hero-particles i:nth-child(2n) { animation-direction: reverse; }@keyframes floatParticle { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-40px) rotate(15deg); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(500px, 1.15fr); gap: clamp(52px, 7vw, 106px); align-items: center; }.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--forest-700); font-size: 11px; font-weight: 800; letter-spacing: .12em; line-height: 1.25; text-transform: uppercase; }.eyebrow > span:first-child { width: 30px; height: 2px; background: currentColor; }.eyebrow.light { color: var(--bark-light); }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.07em; line-height: .99; }h1 { max-width: 590px; margin-bottom: 24px; font-size: clamp(53px, 5.6vw, 78px); }.hero h1 em, h2 em { color: var(--forest-700); font-style: normal; }.hero-intro { max-width: 500px; margin-bottom: 30px; color: var(--muted); font-size: 16px; line-height: 1.76; }.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }.button-primary { color: var(--forest-950); background: var(--forest-700); border-color: var(--forest-700); }.button-primary:hover { background: var(--forest-800); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-offset); }.button:active { transform: translate(0, 0); box-shadow: none; }.button-text { padding-inline: 8px; color: var(--ink); background: transparent; }.button-text:hover { color: var(--forest-700); }.button-text span { margin-left: 2px; font-size: 18px; transition: transform var(--transition-base); }.button-text:hover span { transform: translateY(3px); }.trust-list { display: flex; flex-wrap: wrap; gap: 14px 20px; padding: 0; margin: 35px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; list-style: none; }.trust-list li { display: flex; align-items: center; gap: 7px; }.trust-list svg { width: 18px; height: 18px; padding: 3px; fill: none; stroke: var(--forest-800); stroke-width: 2.4; border: 1px solid var(--line); border-radius: var(--radius-round); }

.game-showcase { position: relative; }.showcase-label { position: absolute; top: -28px; left: 0; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .11em; }.showcase-label span { color: var(--forest-700); }.game-card { position: relative; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }.game-card::before { position: absolute; inset: 10px; z-index: 0; content: ""; border: 1px solid rgba(16, 61, 43, .1); pointer-events: none; border-radius: var(--radius-md); }.game-card > * { position: relative; z-index: 1; }.game-card-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 5px 5px 20px; }.game-card-head p { margin-bottom: 5px; color: var(--forest-700); font-size: 10px; font-weight: 800; letter-spacing: .11em; }.game-card-head h2 { margin: 0; font-family: var(--font-body); font-size: 18px; font-weight: 800; letter-spacing: -.04em; line-height: 1.25; }.mode-switch { display: inline-flex; flex: 0 0 auto; padding: 3px; background: var(--paper-deep); border-radius: var(--radius-sm); }.mode-option { min-height: 44px; padding: 0 10px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 11px; font-weight: 800; transition: background var(--transition-base), color var(--transition-base); border-radius: var(--radius-sm); }.mode-option.is-active { color: var(--white); background: var(--forest-900); }
.play-area { display: grid; grid-template-columns: minmax(280px, 1.04fr) minmax(158px, .66fr); gap: 24px; align-items: center; padding: 3px 5px 23px; }.board-wrap { min-width: 0; }.turn-indicator { display: flex; align-items: center; gap: 9px; min-height: 26px; margin-bottom: 10px; color: var(--ink); font-size: 12px; font-weight: 800; }.turn-mark { width: 26px; height: 26px; display: grid; place-items: center; color: var(--forest-950); background: var(--forest-700); border-radius: var(--radius-round); font-family: var(--font-display); font-size: 16px; line-height: 1; }.turn-mark[data-player="O"] { background: var(--bark); color: var(--white); }.tic-board { width: min(100%, 330px); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 5px; padding: 8px; background: var(--forest-900); aspect-ratio: 1; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }.square { display: grid; min-width: 0; min-height: 0; place-items: center; padding: 0; overflow: hidden; color: var(--forest-700); background: var(--wash-strong); border: 0; cursor: pointer; font-family: var(--font-display); font-size: clamp(44px, 6.2vw, 65px); line-height: 1; transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast); text-shadow: var(--shadow-glow-x); border-radius: var(--radius-sm); }.square[data-value="O"] { color: var(--bark); text-shadow: var(--shadow-glow-o); }.square:not(:disabled):hover, .square:not(:disabled):focus-visible { background: var(--sprout); transform: scale(.97); }.square:disabled { cursor: default; }.square.is-winning { color: var(--forest-950); background: var(--leaf); animation: winPulse .55s ease-out both; text-shadow: none; }.board-help { max-width: 330px; min-height: 40px; margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }.trial-aside { display: flex; flex-direction: column; gap: 16px; }.score-card { padding: 15px 12px; border-top: 3px solid var(--bark); background: var(--paper-deep); border-radius: var(--radius-md); }.score-card > p { margin-bottom: 9px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }.score-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--ink); font-size: 10px; font-weight: 700; white-space: nowrap; }.score-line b { font-family: var(--font-display); font-size: 22px; line-height: 1; }.score-line strong { font-size: 17px; letter-spacing: .06em; }.x-color { color: var(--forest-700); }.o-color { color: var(--bark); }.trial-note { display: flex; gap: 9px; color: var(--muted); font-size: 10px; line-height: 1.58; }.trial-note svg { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px; fill: none; stroke: var(--forest-700); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }.trial-note p { margin: 0; }.trial-note strong { color: var(--ink); }.reset-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--forest-900); background: transparent; border: 1px solid var(--forest-900); cursor: pointer; font-size: 11px; font-weight: 800; transition: color var(--transition-base), background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base); border-radius: var(--radius-md); }.reset-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }.reset-button:hover { color: var(--white); background: var(--forest-900); transform: translateY(-2px); box-shadow: var(--shadow-offset); }.game-card-footer { display: flex; align-items: center; gap: 7px; padding: 14px 5px 2px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; line-height: 1.4; }.pulse-dot { width: 7px; height: 7px; flex: 0 0 auto; background: var(--leaf); border-radius: var(--radius-round); box-shadow: 0 0 0 4px rgba(6,182,212,.18); }.game-showcase-foot { margin: 22px 0 0; color: var(--muted); font-size: 12px; }.game-showcase-foot a { color: var(--forest-800); font-weight: 800; }.game-showcase-foot a span { color: var(--bark); padding-left: 4px; transition: padding var(--transition-base); }.game-showcase-foot a:hover span { padding-left: 10px; }

.bridge-section { position: relative; color: var(--white); background: var(--forest-900); overflow: hidden; }.bridge-section::after { position: absolute; top: -215px; right: 4%; width: 530px; height: 530px; content: ""; border: 1px solid rgba(226, 232, 240, .15); border-radius: 50%; box-shadow: 0 0 0 52px rgba(226, 232, 240, .025); }.bridge-grid { display: grid; grid-template-columns: 86px minmax(0, 1fr) minmax(270px, .72fr); gap: 42px; align-items: center; min-height: 314px; padding-top: 64px; padding-bottom: 64px; }.vertical-label { margin: 0; color: var(--bark-light); font-size: 10px; font-weight: 800; letter-spacing: .16em; writing-mode: vertical-rl; transform: rotate(180deg); }.bridge-copy h2 { margin: 0; color: var(--white); font-size: clamp(42px, 5vw, 68px); }.bridge-copy em { color: var(--sprout); }.bridge-description { position: relative; z-index: 1; margin: 0; color: #94a3b8; font-size: 15px; line-height: 1.76; }

.advanced-section { padding-top: 128px; padding-bottom: 124px; }.section-heading { display: flex; justify-content: space-between; gap: 50px; align-items: end; }.section-heading h2, .modes-heading h2, .library-heading h2, .faq-grid h2, .closing-section h2 { margin: 0; font-size: clamp(36px, 4.2vw, 62px); }.section-heading > p { max-width: 380px; margin: 0 0 4px; color: var(--muted); font-size: 15px; line-height: 1.78; }.feature-layout { display: grid; grid-template-columns: 1.16fr .92fr .92fr; gap: 14px; margin-top: 56px; }.feature-card { position: relative; min-height: 325px; display: flex; flex-direction: column; justify-content: end; padding: 25px; overflow: hidden; background: var(--paper-deep); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }.feature-card-main { color: var(--white); background: var(--forest-900); }.feature-card-line { background: #f1f5f9; }.feature-card-levels { background: #f8fafc; }.feature-order { position: absolute; top: 21px; left: 24px; color: var(--forest-700); font-size: 11px; font-weight: 800; letter-spacing: .1em; }.feature-card-main .feature-order { color: var(--bark-light); }.feature-content { position: relative; z-index: 2; }.feature-content h3 { margin-bottom: 9px; font-size: 22px; letter-spacing: -.05em; line-height: 1.1; }.feature-content p { max-width: 300px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.68; }.feature-card-main .feature-content p { color: #94a3b8; }.feature-card-line .feature-content p { color: #475569; }.stack-demo { position: absolute; top: 20px; right: -16px; width: 230px; height: 210px; }.piece { position: absolute; display: block; border-radius: var(--radius-round); }.piece-dark { background: var(--forest-800); border: 2px solid var(--forest-950); box-shadow: inset 8px 8px 9px rgba(255,255,255,.18), inset -9px -10px 12px rgba(0,0,0,.24); }.piece-gold { background: var(--bark-light); border: 2px solid var(--bark); box-shadow: inset 8px 8px 9px rgba(255,255,255,.34), inset -8px -10px 10px rgba(88,63,11,.2); }
@keyframes dropCrushMd { 0%, 15% { transform: translateY(-40px) scale(1.1); opacity: 0; } 22% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes dropCrushLg { 0%, 45% { transform: translateY(-60px) scale(1.1); opacity: 0; } 52% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes trembleSm { 0%, 21% { transform: scale(1); } 22%, 51% { transform: scale(0.95); } 52%, 100% { transform: scale(0.85); } }
.piece-lg { top: 4px; right: 3px; width: 174px; height: 174px; animation: dropCrushLg 4s infinite cubic-bezier(0.34, 1.56, 0.64, 1); }.piece-md { top: 67px; right: 76px; width: 120px; height: 120px; animation: dropCrushMd 4s infinite cubic-bezier(0.34, 1.56, 0.64, 1); }.piece-sm { top: 123px; right: 138px; width: 66px; height: 66px; animation: trembleSm 4s infinite ease-out; }.line-demo { position: absolute; top: 47px; right: -6px; width: 205px; height: 145px; }.line-demo::before { position: absolute; top: 68px; left: 5px; width: 173px; height: 2px; content: ""; background: var(--forest-700); transform: rotate(-30deg); transform-origin: left; }.line-demo i { position: absolute; width: 31px; height: 31px; background: var(--white); border: 2px solid var(--forest-900); border-radius: var(--radius-round); }.line-demo i:nth-child(1) { top: 83px; left: 7px; }.line-demo i:nth-child(2) { top: 49px; left: 68px; }.line-demo i:nth-child(3) { top: 14px; left: 129px; background: var(--forest-700); border-color: var(--forest-700); }.line-demo b { position: absolute; top: 19px; left: 134px; width: 21px; height: 21px; border: 1px solid var(--white); border-radius: var(--radius-round); }.levels-demo { position: absolute; top: 54px; right: 25px; display: flex; align-items: end; gap: 8px; }.levels-demo i { display: grid; place-items: center; color: var(--white); background: var(--forest-900); border-radius: var(--radius-round); font-size: 11px; font-style: normal; font-weight: 800; }.levels-demo i:nth-child(1) { width: 37px; height: 37px; }.levels-demo i:nth-child(2) { width: 59px; height: 59px; color: var(--forest-900); background: var(--bark-light); }.levels-demo i:nth-child(3) { width: 86px; height: 86px; background: var(--forest-700); }.advanced-action { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 32px; padding: 22px 24px; background: var(--paper-deep); border-left: 4px solid var(--forest-700); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }.advanced-action p { margin: 0; color: var(--muted); font-size: 13px; }.advanced-action strong { color: var(--ink); }

.iq-journey-section { padding-top: 100px; padding-bottom: 100px; }.iq-journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }.iq-copy h2 { font-size: clamp(36px, 4.2vw, 62px); margin-bottom: 24px; }.iq-copy p { color: var(--muted); font-size: 15px; line-height: 1.76; margin-bottom: 32px; max-width: 440px; }.iq-map { display: flex; align-items: center; justify-content: space-between; padding: 36px; background: var(--paper-deep); border-radius: var(--radius-xl); border: 1px solid var(--line); }.iq-node { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-round); color: var(--muted); font-family: var(--font-display); font-size: 14px; font-weight: 800; z-index: 2; position: relative; transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base); }.iq-node.is-done { background: var(--forest-900); border-color: var(--forest-900); color: var(--white); }.iq-node.is-active { background: var(--white); border-color: var(--forest-700); color: var(--forest-700); box-shadow: 0 0 0 4px rgba(45, 121, 82, 0.15); animation: pulseIq 2s infinite; }.iq-node.iq-boss { width: 56px; height: 56px; font-size: 18px; border-color: var(--bark); color: var(--bark); }.iq-node.iq-hidden { background: var(--paper); border-style: dashed; }.iq-line { flex: 1; height: 3px; background: var(--line); position: relative; z-index: 1; margin: 0 -4px; transition: background var(--transition-base); }.iq-line.is-done { background: var(--forest-900); }
@keyframes pulseIq { 0% { box-shadow: 0 0 0 0 rgba(45, 121, 82, 0.3); } 70% { box-shadow: 0 0 0 10px rgba(45, 121, 82, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 121, 82, 0); } }

.modes-section { padding: 121px 0 127px; background: #e2e8f0; }.modes-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; }.modes-heading > p { max-width: 340px; margin: 0 0 4px; color: var(--muted); font-size: 15px; line-height: 1.76; }.modes-grid { display: grid; grid-template-columns: 1.05fr .92fr 1.03fr; gap: 15px; margin-top: 55px; }.mode-card { position: relative; min-height: 307px; padding: 24px; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); transition: transform var(--transition-base), box-shadow var(--transition-base); }.mode-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }.mode-card::after { position: absolute; top: -87px; right: -69px; width: 216px; height: 216px; content: ""; border: 1px solid currentColor; border-radius: var(--radius-round); opacity: .14; }.local-card { background: var(--white); }.bot-card { color: var(--white); background: var(--forest-900); }.online-card { background: #e0f2fe; }.mode-card > span { color: var(--forest-700); font-size: 11px; font-weight: 800; }.bot-card > span { color: var(--bark-light); }.mode-card svg { position: absolute; top: 24px; right: 24px; width: 45px; height: 45px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }.mode-card h3 { position: relative; z-index: 1; margin: 101px 0 10px; font-size: 22px; letter-spacing: -.055em; line-height: 1.1; }.mode-card p { position: relative; z-index: 1; max-width: 260px; margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.68; }.bot-card p { color: #94a3b8; }.online-card p { color: #0f172a; }.mode-card a { position: absolute; z-index: 1; bottom: 23px; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-size: 12px; font-weight: 800; }.mode-card a b { color: var(--forest-700); font-size: 16px; transition: transform var(--transition-base); }.mode-card a:hover b { transform: translateX(6px); }.bot-card a b { color: var(--bark-light); }

.library-section { position: relative; padding: 112px 0 120px; color: var(--white); background: var(--forest-900); overflow: hidden; }.library-section::before { position: absolute; top: -230px; right: -100px; width: 610px; height: 610px; content: ""; border: 1px solid rgba(226, 232, 240, .10); border-radius: var(--radius-round); box-shadow: 0 0 0 80px rgba(226, 232, 240, .015); }.library-section::after { position: absolute; bottom: -120px; left: 4%; width: 245px; height: 245px; content: ""; border: 1px solid rgba(244, 63, 94, .18); transform: rotate(45deg); }.library-shell { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(280px, .62fr) minmax(0, 1.38fr); gap: clamp(55px, 8vw, 112px); align-items: start; }.library-heading { position: sticky; top: 28px; }.library-heading h2 { color: var(--white); font-size: clamp(42px, 4.9vw, 68px); }.library-heading h2 em { color: var(--bark-light); }.library-heading > p:not(.eyebrow) { max-width: 340px; margin: 24px 0; color: #94a3b8; font-size: 14px; line-height: 1.8; }.library-all-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--sprout); border-bottom: 1px solid rgba(226, 232, 240, .20); font-size: 13px; font-weight: 800; }.library-all-link span { color: var(--bark-light); font-size: 18px; }.game-catalogue { display: grid; gap: 24px; }.catalogue-group { padding: 21px; background: rgba(255,255,255,.03); border: 1px solid rgba(226, 232, 240, .08); border-radius: var(--radius-lg); overflow: hidden; }.catalogue-group header { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid rgba(226, 232, 240, .1); }.catalogue-group header p { margin: 0; color: var(--bark-light); font-family: var(--font-display); font-size: 12px; font-weight: 700; }.catalogue-group header h3 { margin: 0; color: var(--white); font-size: 18px; letter-spacing: -.04em; }.catalogue-group header span { color: #94a3b8; font-size: 11px; font-weight: 700; }.game-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 1px; background: rgba(226, 232, 240, .08); border-radius: var(--radius-md); overflow: hidden; }.game-entry { min-height: 82px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; color: var(--white); background: var(--forest-900); transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base); }.game-entry:hover, .game-entry:focus-visible { background: var(--forest-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }.game-sigil { width: 36px; height: 36px; display: grid; place-items: center; color: var(--forest-900); background: var(--sprout); border-radius: var(--radius-round); font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: -.06em; }.game-entry b, .game-entry small { display: block; }.game-entry b { overflow: hidden; color: var(--white); font-size: 12px; font-weight: 800; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }.game-entry small { margin-top: 3px; overflow: hidden; color: #94a3b8; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }.game-entry > i { color: var(--bark-light); font-family: var(--font-display); font-size: 17px; font-style: normal; transition: transform var(--transition-base); }.game-entry:hover > i { transform: translateX(4px); }.game-entry.word .game-sigil, .game-entry.history .game-sigil, .game-entry.power .game-sigil { background: var(--bark-light); }.game-entry.chemistry .game-sigil, .game-entry.biology .game-sigil, .game-entry.othello .game-sigil { background: #7dd3fc; }.game-entry.geography .game-sigil, .game-entry.ganh .game-sigil { color: var(--forest-950); background: var(--forest-700); }.game-entry.mancala .game-sigil { color: var(--white); background: #f43f5e; }.game-entry.chess .game-sigil { color: var(--white); background: #334155; }

.faq-section { padding: 107px 0 117px; background: var(--white); }.faq-grid { display: grid; grid-template-columns: .93fr 1.07fr; gap: 96px; }.faq-grid h2 { font-size: clamp(43px, 4.7vw, 65px); }.faq-list { border-top: 1px solid var(--line); }.faq-list details { border-bottom: 1px solid var(--line); }.faq-list summary { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; font-size: 14px; font-weight: 800; list-style: none; }.faq-list summary::-webkit-details-marker { display: none; }.faq-list summary span { position: relative; width: 17px; height: 17px; flex: 0 0 auto; }.faq-list summary span::before, .faq-list summary span::after { position: absolute; top: 8px; left: 0; width: 17px; height: 1.5px; content: ""; background: var(--forest-700); transition: transform var(--transition-base); }.faq-list summary span::after { transform: rotate(90deg); }.faq-list details[open] summary span::after { transform: rotate(0); }.faq-list details p { max-width: 510px; margin: -5px 42px 21px 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.closing-section { position: relative; min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 84px 0; overflow: hidden; text-align: center; }.closing-section > *:not(.closing-pattern) { position: relative; z-index: 1; }.closing-section .eyebrow { margin-bottom: 19px; }.closing-section h2 { max-width: 940px; font-size: clamp(46px, 5.3vw, 75px); }.closing-section > p:not(.eyebrow) { max-width: 490px; margin: 24px 0 29px; color: var(--muted); font-size: 15px; line-height: 1.76; }.closing-pattern { position: absolute; z-index: 0; top: 50%; left: 50%; width: 630px; height: 630px; display: grid; grid-template-columns: repeat(3, 1fr); opacity: .46; transform: translate(-50%, -50%) rotate(14deg); }.closing-pattern::before { position: absolute; inset: 0; content: ""; border: 1px solid var(--line); }.closing-pattern i { border: 1px solid var(--line); }.closing-pattern i:nth-child(2), .closing-pattern i:nth-child(7) { position: relative; width: 51px; height: 51px; align-self: center; justify-self: center; background: var(--bark-light); border-radius: var(--radius-round); box-shadow: inset 7px 7px 9px rgba(255,255,255,.35), inset -8px -8px 9px rgba(88,63,11,.2); }.closing-pattern i:nth-child(7) { background: var(--forest-800); }
.site-footer { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }.site-footer .brand { color: var(--ink); font-size: 15px; }.site-footer .brand-mark { width: 24px; height: 24px; }.site-footer p { margin: 0; }.site-footer > a:last-child { color: var(--forest-800); font-weight: 800; }.site-footer > a:last-child span { color: var(--bark); }.mobile-play { display: none; }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }@keyframes winPulse { 0% { transform: scale(.82); } 65% { transform: scale(1.07); } 100% { transform: scale(1); } }

.aos { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.aos.aos-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1020px) { .hero { padding-top: 52px; }.hero-grid { grid-template-columns: minmax(0, .82fr) minmax(440px, 1.18fr); gap: 42px; }.site-nav { gap: 18px; }.play-area { grid-template-columns: minmax(250px, 1fr) minmax(148px, .6fr); gap: 17px; }.game-card { padding: 17px; }.feature-layout { grid-template-columns: 1fr 1fr; }.feature-card-main { grid-row: span 2; }.feature-card-levels { min-height: 225px; }.library-shell { grid-template-columns: 1fr; gap: 45px; }.library-heading { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .68fr); gap: 0 48px; }.library-heading .eyebrow, .library-heading h2 { grid-column: 1; }.library-heading > p:not(.eyebrow), .library-heading .library-all-link { grid-column: 2; }.library-heading > p:not(.eyebrow) { align-self: end; margin: 0 0 22px; }.library-heading .library-all-link { align-self: start; }.faq-grid { gap: 60px; } }

@media (max-width: 760px) { .section-shell { width: min(100% - 40px, 580px); }.site-header { width: 100%; padding: 0 20px; min-height: 72px; }.header-action { min-height: 44px; padding: 0 14px; font-size: 11px; }.header-action svg { width: 16px; }.brand { font-size: 16px; }.brand-mark { width: 25px; height: 25px; }.hero { min-height: auto; padding: 49px 0 72px; }.hero::before { top: -295px; right: -375px; }.hero::after { right: -67px; bottom: 210px; width: 130px; height: 130px; }.hero-grid { grid-template-columns: 1fr; gap: 72px; }.hero-copy { text-align: center; }.hero-copy .eyebrow, .hero-actions, .trust-list { justify-content: center; }.hero h1 { max-width: 570px; margin-inline: auto; font-size: clamp(48px, 13.5vw, 65px); }.hero-intro { margin-inline: auto; font-size: 16px; line-height: 1.7; }.hero-actions { gap: 4px 8px; }.trust-list { margin-top: 28px; font-size: 11px; }.game-showcase { width: min(100%, 510px); margin: auto; }.showcase-label { top: -27px; }.game-card { padding: 16px; box-shadow: 6px 6px 0 var(--sprout), var(--shadow); }.game-card-head { padding: 4px 3px 17px; }.game-card-head h2 { font-size: 16px; }.mode-option { padding-inline: 9px; font-size: 10px; }.play-area { grid-template-columns: minmax(0, 1fr) minmax(133px, .57fr); gap: 16px; }.tic-board { gap: 4px; padding: 6px; }.board-help { font-size: 10px; }.score-card { padding: 12px 9px; }.score-line { gap: 3px; font-size: 9px; }.score-line b { font-size: 18px; }.score-line strong { font-size: 14px; }.trial-note { font-size: 9px; }.game-card-footer { font-size: 9px; }.game-showcase-foot { margin-left: 4px; }.bridge-grid { grid-template-columns: 1fr; gap: 24px; min-height: auto; padding: 72px 0; }.vertical-label { display: none; }.bridge-copy h2 { font-size: clamp(42px, 12vw, 58px); }.bridge-description { max-width: 510px; font-size: 15px; }.iq-journey-section { padding-top: 70px; padding-bottom: 70px; }.iq-journey-grid { grid-template-columns: 1fr; gap: 40px; }.iq-copy { text-align: center; }.iq-copy p { margin-left: auto; margin-right: auto; }.iq-copy .eyebrow { justify-content: center; }.iq-map { padding: 24px; gap: 10px; flex-wrap: wrap; justify-content: center; }.advanced-section { padding-top: 86px; padding-bottom: 84px; }.section-heading, .modes-heading { display: block; }.section-heading h2, .modes-heading h2 { font-size: clamp(42px, 11.5vw, 60px); }.section-heading > p, .modes-heading > p { margin-top: 25px; font-size: 15px; }.feature-layout { grid-template-columns: 1fr; gap: 12px; margin-top: 38px; }.feature-card, .feature-card-levels { min-height: 255px; }.feature-card-main { min-height: 314px; }.advanced-action { display: block; margin-top: 20px; padding: 20px; }.advanced-action .button { width: 100%; margin-top: 17px; }.modes-section { padding: 84px 0; }.modes-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 37px; }.mode-card { min-height: 274px; }.mode-card h3 { margin-top: 74px; }.library-section { padding: 83px 0 90px; }.library-shell { gap: 36px; }.library-heading { display: block; }.library-heading h2 { font-size: clamp(41px, 11.8vw, 58px); }.library-heading > p:not(.eyebrow) { margin: 22px 0; font-size: 15px; }.catalogue-group { padding: 16px; }.game-entry { min-height: 82px; }.faq-section { padding: 84px 0 94px; }.faq-grid { grid-template-columns: 1fr; gap: 39px; }.faq-grid h2 { font-size: clamp(40px, 11.3vw, 57px); }.faq-list summary { min-height: 70px; font-size: 13px; }.faq-list details p { margin-right: 20px; font-size: 13px; }.closing-section { min-height: 500px; padding-bottom: 110px; }.closing-section h2 { font-size: clamp(40px, 11.2vw, 58px); }.closing-section > p:not(.eyebrow) { font-size: 15px; }.closing-pattern { width: 500px; height: 500px; }.mobile-play { position: fixed; z-index: 10; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); left: 14px; min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: var(--white); background: var(--forest-900); box-shadow: 0 8px 24px rgba(8,40,27,.25); font-size: 13px; font-weight: 800; border-radius: var(--radius-md); }.mobile-play span { color: var(--bark-light); font-size: 18px; } }

@media (max-width: 520px) { .game-entry-grid { grid-template-columns: 1fr; }.catalogue-group header { gap: 9px; }.catalogue-group header h3 { font-size: 16px; }.game-entry { grid-template-columns: 42px minmax(0, 1fr) auto; min-height: 76px; }.game-sigil { width: 38px; height: 38px; } }
@media (max-width: 430px) { .section-shell { width: calc(100% - 32px); }.site-header { width: 100%; padding: 0 16px; }.header-action { width: 44px; min-width: 44px; padding: 0; font-size: 0; }.header-action svg { width: 18px; }.hero { padding-top: 42px; }.hero h1 { font-size: clamp(44px, 13.8vw, 57px); }.hero-intro { font-size: 15px; }.button-primary { width: 100%; }.button-text { min-height: 44px; font-size: 12px; }.trust-list { display: grid; justify-content: start; text-align: left; }.game-card-head { display: block; }.mode-switch { margin-top: 12px; }.play-area { grid-template-columns: 1fr; }.tic-board { width: min(100%, 310px); }.board-help { max-width: 310px; }.trial-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.trial-note { grid-column: 1 / -1; }.reset-button { grid-column: 1 / -1; }.game-card-footer { padding-top: 12px; }.game-showcase-foot { font-size: 11px; }.bridge-copy h2 { font-size: clamp(39px, 12.7vw, 51px); }.feature-content h3 { font-size: 21px; }.stack-demo { right: -46px; transform: scale(.86); transform-origin: top right; }.faq-grid h2 { font-size: clamp(37px, 12vw, 51px); }.closing-section h2 { font-size: clamp(37px, 11.9vw, 51px); }.library-heading h2 { font-size: clamp(39px, 12vw, 51px); }.game-entry b { font-size: 12px; }.game-entry small { font-size: 10px; } }
@media (max-height: 500px) and (orientation: landscape) { .site-header { min-height: 62px; }.site-nav { display: flex; font-size: 11px; }.hero { padding: 34px 0 48px; }.hero-grid { grid-template-columns: .87fr 1.13fr; gap: 38px; }.hero-copy { text-align: left; }.hero-copy .eyebrow, .hero-actions, .trust-list { justify-content: start; }.hero h1 { margin-bottom: 15px; font-size: clamp(43px, 6vw, 61px); }.hero-intro { margin-bottom: 18px; font-size: 13px; }.trust-list { display: none; }.game-showcase { width: 100%; }.game-card { padding: 12px; }.game-card-head { padding-bottom: 10px; }.game-card-head h2 { font-size: 14px; }.play-area { grid-template-columns: minmax(205px, .95fr) minmax(130px, .62fr); gap: 14px; padding-bottom: 10px; }.tic-board { width: min(100%, 220px); }.turn-indicator { margin-bottom: 6px; }.board-help { margin-top: 6px; min-height: auto; }.trial-aside { gap: 8px; }.trial-note { display: none; }.reset-button { min-height: 44px; }.game-card-footer { display: none; } }

/* Pastel refresh */
.hero::before { border-color: rgba(78, 157, 112, .16); box-shadow: 0 0 0 70px rgba(145, 205, 162, .07), 0 0 0 140px rgba(145, 205, 162, .035); }
.hero::after { border-color: rgba(168, 136, 73, .2); }
.modes-section { background: var(--wash); }
.feature-card-line { background: var(--feature-wash); }
.feature-card-levels { background: var(--feature-pale); }
.bridge-section { color: var(--ink); background: var(--wash-strong); }
.bridge-section::after { border-color: rgba(78, 157, 112, .2); box-shadow: 0 0 0 52px rgba(145, 205, 162, .1); }
.bridge-copy h2 { color: var(--forest-900); }.bridge-copy em { color: var(--forest-700); }.bridge-description { color: var(--muted); }
.library-section { color: var(--ink); background: var(--library-wash); }
.library-section::before { border-color: rgba(78, 157, 112, .19); box-shadow: 0 0 0 80px rgba(145, 205, 162, .09); }
.library-section::after { border-color: rgba(168, 136, 73, .18); }
.library-heading h2 { color: var(--forest-900); }.library-heading h2 em { color: var(--forest-700); }.library-heading > p:not(.eyebrow) { color: var(--muted); }.library-all-link { color: var(--forest-800); border-color: rgba(45, 121, 82, .36); }.library-all-link span { color: var(--bark); }
.catalogue-group { background: rgba(255, 255, 255, .76); border-color: var(--line); }.catalogue-group header { border-color: var(--line); }.catalogue-group header h3 { color: var(--forest-900); }.catalogue-group header span { color: var(--muted); }.game-entry-grid { background: var(--line); }.game-entry { color: var(--ink); background: rgba(255, 255, 255, .96); }.game-entry:hover, .game-entry:focus-visible { background: var(--entry-hover); }.game-entry b { color: var(--forest-900); }.game-entry small { color: var(--muted); }.game-entry > i { color: var(--forest-700); }

@media (max-width: 760px) {  }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* --- NEW UI RESPONSIVE --- */
.site-footer { display: block; border-top: 0; padding-top: 0; min-height: auto; }
.mobile-menu-toggle { display: none; background: transparent; border: none; color: var(--ink); padding: 8px; cursor: pointer; align-items: center; justify-content: center; }
.footer-main { display: flex; justify-content: space-between; gap: 40px; padding: 40px 0 20px; }
.footer-brand-col { max-width: 320px; }
.social-links a:hover { color: var(--forest-800) !important; transform: translateY(-2px); display: inline-block; transition: all 0.2s; }
.footer-links-col a:hover { color: var(--forest-800) !important; }
.footer-bottom { padding: 20px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }

@media (max-width: 760px) {
  .mobile-menu-toggle { display: flex; }
  .site-header { position: sticky; top: 0; z-index: 1000; }
  .site-nav { position: fixed; top: 72px; left: 0; right: 0; background: var(--paper-deep); backdrop-filter: blur(16px); padding: 20px; border-bottom: 1px solid var(--line); flex-direction: column; gap: 16px; align-items: center; box-shadow: var(--shadow-lg); transition: all 0.3s ease; opacity: 0; pointer-events: none; transform: translateY(-10px); }
  .site-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .header-action { display: none; } /* Hide the button in header, we can put it in drawer if needed, but it's redundant on mobile since they can scroll */
  
  .footer-main { flex-direction: column; gap: 32px; padding: 32px 0 16px; }
  .footer-links-col { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px 24px; width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; padding-bottom: 90px !important; }
}


