/* Find your trading fit */
html[data-theme="terrain"] .quiz-band { padding-block: 92px; overflow: hidden; }
.big-eyebrow { display: inline-block; font: 700 14px var(--body); letter-spacing: .02em; padding: 8px 14px; border-radius: 999px; background: var(--fx-d); color: #07060F; margin-bottom: 18px; }
html[data-theme="terrain"] .band:not(.hero) h2.mega { font-size: clamp(42px, 7.2vw, 96px); line-height: 1.02; color: var(--fx-a); text-shadow: 0 0 44px color-mix(in srgb, var(--fx-a) 45%, transparent); }
.fit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 34px; align-items: start; margin-top: 30px; }
.fit-side .lede { margin-top: 0; font-size: 21px; }
.fit-ask { font: 700 20px var(--body); margin: 26px 0 12px; color: var(--fx-d); }
.fit-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fit-card { position: relative; border-radius: 14px; padding: 18px 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); transition: transform .3s cubic-bezier(.2, .9, .3, 1.3), background .3s ease, box-shadow .3s ease, opacity .3s ease; }
.fit-card b { display: block; font-size: 19px; line-height: 1.15; color: #FFFFFF; font-family: var(--body); font-weight: 700; }
.fit-card span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.3; color: rgba(255, 255, 255, .84); }
.fit-card.on { transform: translateY(-5px) scale(1.03); background: var(--fx-c); box-shadow: 0 14px 36px color-mix(in srgb, var(--fx-c) 60%, transparent), inset 0 0 0 2px var(--fx-a); }
.fit-card.off { opacity: .45; }
.fit-card.you::after { content: "Your fit"; position: absolute; top: -11px; right: 12px; padding: 3px 10px; border-radius: 999px; background: var(--fx-d); color: #07060F; font: 700 12px var(--body); }
.quiz-glow { position: relative; padding: 3px; border-radius: 22px; background: linear-gradient(90deg, var(--fx-a), var(--fx-c), var(--fx-b), var(--fx-d), var(--fx-a)) 0 0 / 300% 100%; animation: glowslide 6s linear infinite; box-shadow: 0 0 60px color-mix(in srgb, var(--fx-b) 40%, transparent), 0 24px 60px rgba(0, 0, 0, .5); }
@keyframes glowslide { to { background-position: -300% 0; } }
html[data-theme="terrain"] .quiz-glow .quiz { margin: 0; max-width: none; border-radius: 19px; }
html[data-theme="terrain"] .quiz .q-title { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.14; }
html[data-theme="terrain"] .q-bar { height: 10px; }
html[data-theme="terrain"] .q-bar i { background: linear-gradient(90deg, var(--fx-c), var(--fx-b)); transition: width .35s ease; }
.q-opts { counter-reset: opt; }
html[data-theme="terrain"] .q-opt { position: relative; counter-increment: opt; display: flex; align-items: center; gap: 14px; padding: 15px 16px; font-size: 17.5px; font-weight: 500; background: #FFFFFF; color: #07060F; box-shadow: 0 0 0 1.5px rgba(7, 6, 15, .16); border: 0; transition: transform .16s cubic-bezier(.2, .9, .3, 1.4), box-shadow .16s ease; animation: optin .42s cubic-bezier(.2, .9, .3, 1.2) backwards; }
html[data-theme="terrain"] .q-opt::before { content: counter(opt, upper-alpha); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #07060F; color: #FFFFFF; font: 700 15px var(--body); transition: background .16s ease, color .16s ease; }
html[data-theme="terrain"] .q-opt:hover, html[data-theme="terrain"] .q-opt:focus-visible { transform: translateX(7px); box-shadow: 0 0 0 2.5px #07060F, 0 10px 24px rgba(7, 6, 15, .2); }
html[data-theme="terrain"] .q-opt:hover::before { background: var(--fx-b); color: #07060F; }
html[data-theme="terrain"] .q-opt:nth-child(2) { animation-delay: .06s; }
html[data-theme="terrain"] .q-opt:nth-child(3) { animation-delay: .12s; }
html[data-theme="terrain"] .q-opt:nth-child(4) { animation-delay: .18s; }
@keyframes optin { from { opacity: 0; transform: translateY(14px); } }
html[data-theme="terrain"] .result { animation: optin .5s ease backwards; }

/* Survive the Market */
html[data-theme="terrain"] .game-band { padding-block: 92px; overflow: hidden; }
html[data-theme="terrain"] .game-promo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); gap: 42px; }
html[data-theme="terrain"] .band:not(.hero) .game-promo h2.mega { color: #FFFFFF; text-shadow: 0 0 44px color-mix(in srgb, var(--fx-b) 70%, transparent); font-size: clamp(42px, 5.8vw, 84px); }
.game-hook { font: 700 clamp(21px, 2.3vw, 27px)/1.2 var(--body); margin-top: 16px; color: var(--fx-d); }
.game-promo .lede { font-size: 18px; line-height: 1.45; margin-top: 12px; }
.game-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 20px; }
.game-facts div { padding: 11px 12px; border-radius: 12px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); min-width: 0; }
.game-facts b { display: block; font: 700 22px/1.1 var(--body); color: #FFFFFF; }
.game-facts span { display: block; font-size: 13.5px; line-height: 1.25; margin-top: 3px; color: rgba(255, 255, 255, .88); }
html[data-theme="terrain"] .btn.btn-play { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; padding: 24px 56px; min-width: min(100%, 360px); font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: #07060F; background: var(--fx-a); border-radius: 999px; box-shadow: 0 0 0 0 var(--fx-a), 0 14px 40px color-mix(in srgb, var(--fx-a) 55%, transparent); animation: playpulse 1.9s ease-out infinite; }
.btn-play i { width: 0; height: 0; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #07060F; }
@keyframes playpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--fx-a) 75%, transparent), 0 14px 40px color-mix(in srgb, var(--fx-a) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 26px color-mix(in srgb, var(--fx-a) 0%, transparent), 0 14px 40px color-mix(in srgb, var(--fx-a) 55%, transparent); } }
.play-note { margin-top: 14px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .92); }

#game-demo { display: block; position: relative; text-decoration: none; color: #FFFFFF; padding: 14px; border-radius: 20px; background: #07060F; box-shadow: 0 0 0 2px color-mix(in srgb, var(--fx-a) 70%, transparent), 0 30px 70px rgba(0, 0, 0, .6), 0 0 70px color-mix(in srgb, var(--fx-b) 35%, transparent); transition: transform .16s ease-out; min-width: 0; }
.demo-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 9px; }
.demo-top b { font: 700 18px/1.2 var(--body); }
.demo-live { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 700 12px var(--body); color: var(--fx-a); }
.demo-live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--fx-a); animation: blink 1.1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.demo-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.demo-stats div { padding: 8px 10px; border-radius: 10px; background: #17132A; min-width: 0; }
.demo-stats span { display: block; font-size: 12px; color: #C9C6DE; }
.demo-stats b { display: block; font: 700 clamp(15px, 1.7vw, 21px)/1.15 var(--body); font-variant-numeric: tabular-nums; }
.demo-tag { display: block; margin: 10px 0 7px; font-size: 13.5px; color: #C9C6DE; }
.demo-chart { position: relative; }
#game-demo canvas { display: block; width: 100%; height: clamp(190px, 21vw, 260px); border-radius: 10px; background: #0E0B1C; }
#d-result { position: absolute; inset: 8px; display: flex; flex-direction: column; justify-content: center; padding: 14px 18px; border-radius: 12px; background: rgba(7, 6, 15, .92); box-shadow: inset 0 0 0 1.5px var(--fx-d); opacity: 0; transform: translateY(12px) scale(.97); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .9, .3, 1.3); pointer-events: none; }
#d-result.show { opacity: 1; transform: none; }
#d-delta { font: 700 clamp(30px, 4vw, 46px)/1.05 var(--body); color: #FFFFFF; }
#d-delta.good { color: var(--fx-a); }
#d-delta.bad { color: var(--fx-b); }
#d-verdict { font: 700 16px/1.3 var(--body); margin-top: 3px; }
#d-lesson { font-size: 14.5px; line-height: 1.35; margin-top: 6px; color: #DCDAEC; }
#d-lesson::before { content: "The lesson: "; font-weight: 700; color: var(--fx-d); }
#d-msg { margin: 10px 0 8px; font: 700 15px/1.25 var(--body); color: #FFFFFF; min-height: 1.3em; }
#d-msg.ask { color: var(--fx-d); animation: blink .75s ease-in-out infinite; }
.demo-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-acts span { display: block; text-align: center; padding: 12px 6px; border-radius: 12px; font: 700 18px var(--body); color: #07060F; transition: transform .22s cubic-bezier(.2, .9, .3, 1.5), opacity .22s ease, box-shadow .22s ease; }
.demo-acts [data-a="buy"] { background: var(--fx-a); }
.demo-acts [data-a="sell"] { background: var(--fx-b); }
.demo-acts [data-a="skip"] { background: #FFFFFF; }
.demo-acts .picked { transform: scale(1.07); box-shadow: 0 0 0 3px #FFFFFF, 0 0 26px rgba(255, 255, 255, .55); }
.demo-acts .dim { opacity: .28; }
.demo-note { display: block; margin-top: 9px; font-size: 12.5px; color: #C9C6DE; }

@media (max-width: 900px) {
  .fit-grid, html[data-theme="terrain"] .game-promo { grid-template-columns: minmax(0, 1fr); }
  html[data-theme="terrain"] .band:not(.hero) .game-promo h2.mega { font-size: clamp(42px, 11vw, 76px); }
}
@media (max-width: 560px) {
  html[data-theme="terrain"] .band:not(.hero) h2.mega { font-size: clamp(38px, 11.4vw, 62px); }
  html[data-theme="terrain"] .btn.btn-play { display: flex; width: 100%; padding: 22px 20px; }
  .game-facts b { font-size: 18px; }
  .demo-stats { grid-template-columns: repeat(2, 1fr); }
  .fit-card b { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-glow, html[data-theme="terrain"] .btn.btn-play, .demo-live::before, #d-msg.ask, html[data-theme="terrain"] .q-opt { animation: none; }
}

html[data-theme="terrain"] .fit-card.on { background: color-mix(in srgb, var(--fx-c) 58%, #07060F); }

@media (max-width: 760px) {
  html[data-intro="drip"][data-theme="terrain"].has-3d .hero::before { background: linear-gradient(180deg, rgba(7, 6, 15, .62) 0%, rgba(7, 6, 15, .58) 72%, rgba(7, 6, 15, 0) 90%); }
}

/* Game tabs */
.game-tabs { display: none; }
nav li.tab-link a { padding: 7px 13px; border-radius: 999px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--fx-a); color: var(--fx-a); white-space: nowrap; }
nav li.tab-link + li.tab-link a { color: var(--fx-b); box-shadow: inset 0 0 0 1.5px var(--fx-b); }
nav li.tab-link a:hover { text-decoration: none; background: rgba(255, 255, 255, .12); }
nav ul { align-items: center; gap: 16px !important; }
nav ul li { white-space: nowrap; }
@media (max-width: 1180px) {
  nav .wrap { height: 58px; }
  nav ul { display: none !important; }
  .game-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 1120px; margin: 0 auto; padding: 0 0 9px; }
  .game-tabs a { display: block; text-align: center; padding: 9px 6px; border-radius: 10px; font: 700 15px var(--body); text-decoration: none; color: #07060F; background: var(--fx-a); }
  .game-tabs a + a { background: var(--fx-b); }
}
.is-game .game-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 860px; margin: 0 auto; padding: 0 0 9px; }
.is-game .game-tabs a { display: block; text-align: center; padding: 9px 6px; border-radius: 10px; font: 700 15px var(--body); text-decoration: none; color: #07060F; background: var(--fx-a); }
.is-game .game-tabs a + a { background: var(--fx-b); }

/* Bot Lab */
html[data-theme="terrain"] .lab-band { background: #1D0B3D; color: #FFFFFF; padding-block: 92px; }
.lab-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.lab-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 24px; border-radius: 20px; background: #F4F1FF; color: #07060F; text-decoration: none; box-shadow: 0 0 0 3px var(--fx-a), 0 22px 56px rgba(0, 0, 0, .45); transition: transform .24s cubic-bezier(.2, .9, .3, 1.3), box-shadow .24s ease; }
.lab-card.alt { box-shadow: 0 0 0 3px var(--fx-b), 0 22px 56px rgba(0, 0, 0, .45); }
.lab-card:hover { transform: translateY(-7px) rotate(-.6deg); }
.lab-top { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; }
.lab-top img { display: block; width: 90px; height: auto; animation: labbob 2.3s ease-in-out infinite; }
.lab-card.alt .lab-top img { animation: labshake .28s linear infinite; }
@keyframes labbob { 50% { transform: translateY(-5px) rotate(-2deg); } }
@keyframes labshake { 25% { transform: translate(-1.5px, 1px) rotate(-1.5deg); } 75% { transform: translate(1.5px, -1px) rotate(1.5deg); } }
.lab-say { display: block; padding: 11px 13px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 0 0 2px #17132A; font-size: 15.5px; line-height: 1.35; }
.lab-say b { display: block; margin-top: 3px; }
.alarm-say { background: #AE0B60; color: #FFFFFF; box-shadow: none; font-weight: 700; }
.alarm-say b { display: inline; margin: 0; color: #FFE9A8; }
.lab-title { display: block; margin-top: 16px; font: var(--w, 300) clamp(30px, 3.6vw, 46px)/1.08 var(--display); letter-spacing: var(--track, -.03em); }
.lab-text { display: block; margin-top: 8px; font-size: 17.5px; line-height: 1.4; }
html[data-theme="terrain"] .lab-card .btn.btn-play { margin-top: auto; padding: 18px 40px; min-width: 0; font-size: clamp(22px, 2.3vw, 27px); }
.lab-text { margin-bottom: 18px; }
@media (max-width: 760px) {
  .lab-cards { grid-template-columns: minmax(0, 1fr); }
  html[data-theme="terrain"] .lab-card .btn.btn-play { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .lab-top img { animation: none !important; } }

