/* Reelmark-inspired mint studio treatment, fitted to Wordstep's original layout. */
@font-face { font-family: 'Wordstep Caveat'; src: url('assets/fonts/caveat-600.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: 'Wordstep Inter Tight'; src: url('assets/fonts/inter-tight.woff2') format('woff2'); font-style: normal; font-weight: 500 700; font-display: swap; }
@font-face { font-family: 'Wordstep Inter'; src: url('assets/fonts/inter.woff2') format('woff2'); font-style: normal; font-weight: 400 700; font-display: swap; }
:root { --paper: #F5F8EF; --ink: #101410; --green: #08482D; --muted: #5E655D; --line: #dce5d5; --ws-forest: #08482D; }
body { background: #F5F8EF; }
header { background: transparent; border-color: #dce5d5; }
header::before { background: #F5F8EF; }
.brand { color: #08482D; }
header > .pill { color: #315a2b; background: #DAE7C7; border-color: #DAE7C7; border-radius: 999px; }
h1 { color: #101410; }
h2 { color: #193b26; }
.eyebrow { color: #657459; }
.ws-keyphrase { position: relative; background: none; isolation: isolate; }
.ws-keyphrase::after { content: ''; position: absolute; z-index: -1; left: -1%; right: -1%; bottom: 2%; height: 15%; background: #d5e5bd; clip-path: polygon(0 22%,98% 0,100% 68%,2% 100%); }
button { border-radius: 999px; border-color: #d6dfcc; box-shadow: none; }
button:hover { color: #08482D; background: #eaf1dd; border-color: #93ad7c; box-shadow: none; }
button.primary { color: #fff; background: #08482D; border-color: #08482D; box-shadow: none; }
button.primary:hover { color: #fff; background: #123e28; border-color: #123e28; box-shadow: none; }
button.primary:active { background: #063a24; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline-color: #779c4e; }
main[data-ws-view='home'] nav button:first-child { color: #08482D; background: #DAE7C7; border-color: #DAE7C7; }
.pill { color: #315a2b; background: #edf3e1; border-color: #dbe5ce; border-radius: 999px; }
.stats { background: #ffffffa6; border-color: #d8e2cd; box-shadow: none; border-radius: 17px; }
.stats b { color: #08482D; }
.stats b, .eyebrow { font-family: 'Wordstep Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.stats small { color: #62735a; }
.ws-stat-glyph { color: #66894a; }
.card { border-color: #dce5d1; box-shadow: none; border-radius: 17px; }
.ws-topic { border-color: #dce5d1; background: #fff; box-shadow: none; }
.ws-topic > .eyebrow { color: #67804e; }
.ws-topic:hover, .ws-topic:focus-within { border-color: #9eb784; box-shadow: 0 5px 20px #21481807; }
.ws-topic::before { background: radial-gradient(210px circle at var(--ws-spot-x,80%) var(--ws-spot-y,0%),#d6e7bb66,transparent 75%); }
.ws-topic-art img { filter: saturate(.85); }
.review-home { background: #e3edd5; border-color: #d7e5c7; color: #38522e; box-shadow: none; }
.review-home::before { opacity: .32; }
.review-home h2 { color: #153d26; }
.review-home .eyebrow { color: #5b7543; }
.review-home .muted { color: #526946; }
.review-home .primary { color: #fff; background: #08482D; border-color: #08482D; }
.review-home .primary:hover { color: #fff; background: #143f29; border-color: #143f29; }
.review-home button:not(.primary) { color: #244a2d; border-color: #b4c69f; background: #ffffffa3; }
.review-home button:not(.primary):hover { color: #08482D; background: #fff; border-color: #92ab78; }
.review-home .primary { position: relative; }
.review-home .primary::after { content: ''; position: absolute; inset: -5px; border: 1px dashed #64894d; border-radius: inherit; pointer-events: none; }
input, select, #topicFilter, #studyGroup { border-color: #cbd9bc; box-shadow: none; }
.wordcard { background: #fff; border-color: #d4e0c5; box-shadow: 0 8px 35px #28471705; }
.word { color: #08482D; }
.scene, .visual, .listening-player { background: #eaf1dd; box-shadow: none; }
.detail h2 { color: #214d2c; }
.good { color: #246b3d; }
.score-card { background: #08482D; box-shadow: none; }
.notice, .steps { background: #eaf0de; }
footer { color: #637158; border-color: #d9e3ce; }

/* The original hero footprint stays fixed. Everything below is inside that footprint. */
.art.ws-art.ws-studio { display: block; background: transparent; border-radius: 0; box-shadow: none; overflow: visible; }
.art.ws-studio span { margin: 0; }
.ws-studio-badge { position: absolute; left: 0; top: 9px; max-width: 62%; padding: 6px 11px; border-radius: 999px; color: #31572a; background: #DAE7C7; font: 500 10px/1.5 'Wordstep Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; white-space: nowrap; }
.art .ws-hand-note { position: absolute; z-index: 2; right: 17px; top: -6px; color: #08482D; font: 600 29px/.85 'Wordstep Caveat','Comic Sans MS',cursive; letter-spacing: -.5px; transform: rotate(11deg); text-align: center; pointer-events: none; }
.ws-hand-note > span { display: block; font: inherit; color: inherit; }
.ws-studio-arrow { position: absolute; top: 58px; right: -4px; width: 87px; height: 95px; z-index: 2; color: #08482D; overflow: visible; pointer-events: none; }
.ws-studio-arrow path, .ws-title-strokes path { vector-effect: non-scaling-stroke; }
.ws-studio-viewport { position: absolute; top: 51px; bottom: 29px; left: -5px; right: -5px; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; isolation: isolate; contain: layout paint; border-radius: 4px; }
.ws-studio-viewport[data-dragging='true'] { cursor: grabbing; }
.ws-studio-viewport:focus-visible { outline: 2px solid #76974f; outline-offset: 5px; }
.ws-reel { position: absolute; left: 0; top: 0; background: var(--reel-color,#c5dda0); overflow: hidden; pointer-events: none; backface-visibility: hidden; }
.ws-reel-art { position: absolute; width: 88%; height: 62%; top: 9%; left: 6%; object-fit: contain; }
.ws-reel-copy { position: absolute; bottom: 10%; left: 10%; right: 10%; color: #08482D; }
.ws-reel .ws-reel-title { display: block; color: #08482D; font-family: 'Wordstep Inter Tight',sans-serif; font-weight: 700; line-height: 1.1; letter-spacing: -.035em; white-space: nowrap; }
.ws-reel .ws-reel-cn { display: block; margin-top: 3px; color: #345a2d; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-reel .ws-reel-unit { position: absolute; left: 10%; top: 6%; color: #315c29; font-family: 'Wordstep Inter Tight',sans-serif; font-weight: 600; letter-spacing: .5px; }
.ws-reel .ws-reel-mobile-label { display: none; }
.ws-studio-caption { position: absolute; bottom: 0; left: 4px; right: 50px; height: 22px; display: flex; align-items: baseline; gap: 9px; overflow: hidden; white-space: nowrap; }
.ws-studio-caption strong { font: 600 16px/22px 'Wordstep Inter Tight',sans-serif; letter-spacing: -.025em; color: #08482D; }
.art .ws-studio-caption span { position: static; color: #637258; font-size: 11px; line-height: 22px; }
button.ws-carousel-toggle { position: absolute; z-index: 4; right: -4px; bottom: -11px; width: 44px; height: 44px; min-height: 0; padding: 0; display: grid; place-items: center; background: transparent; color: #08482D; border: 0; box-shadow: none; border-radius: 50%; }
button.ws-carousel-toggle::before { content: ''; position: absolute; inset: 9px; border: 1px solid #c2d4aa; border-radius: 50%; background: #F5F8EF; z-index: -1; }
button.ws-carousel-toggle:hover::before { background: #DAE7C7; border-color: #8eaa70; }
.ws-carousel-toggle svg { width: 12px; height: 12px; }
.ws-carousel-toggle .ws-play-mark { display: none; }
.ws-carousel-toggle[aria-pressed='true'] .ws-play-mark { display: block; }
.ws-carousel-toggle[aria-pressed='true'] .ws-pause-mark { display: none; }
.ws-carousel-toggle:disabled { opacity: .5; }
.ws-title-strokes { position: absolute; width: 30px; height: 25px; right: 22px; top: -11px; color: #08482D; pointer-events: none; }
.ws-mobile-note { display: none; }

@media (min-width: 651px) and (max-width: 900px) {
  .ws-studio-badge { top: 2px; font-size: 9px; }
  .art .ws-hand-note { top: 32px; font-size: 24px; }
  .ws-studio-arrow { top: 80px; width: 64px; height: 70px; }
  .ws-studio-viewport { top: 70px; }
}

@media (max-width: 650px) {
  .hero { position: relative; }
  /* Use the existing 35px hero margin for the moving strip: no new mobile row. */
  .art.ws-art.ws-studio { display: block; position: absolute; top: calc(100% + 3px); left: 0; right: 0; height: 28px; min-height: 0; }
  .ws-studio-viewport { top: 0; bottom: 0; left: 0; right: 38px; border-radius: 0; }
  .ws-studio-badge, .ws-studio-caption, .art .ws-hand-note, .ws-studio-arrow { display: none; }
  .ws-reel-art, .ws-reel-copy, .ws-reel-unit { display: none; }
  .ws-reel .ws-reel-mobile-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 500 8px/1.1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; color: #174729; white-space: nowrap; overflow: hidden; }
  button.ws-carousel-toggle { top: -8px; right: -7px; bottom: auto; }
  .ws-title-strokes { width: 22px; height: 18px; right: 1px; top: -6px; }
  .ws-mobile-note { display: block; position: absolute; top: 18px; right: 0; color: #08482D; font: 600 22px/1 'Wordstep Caveat',cursive; transform: rotate(8deg); pointer-events: none; }
}
@media (max-width: 370px) { .ws-mobile-note { display: none; } }
@media (prefers-reduced-motion: reduce) { .ws-studio-viewport { cursor: default; } }
