:root{--cream:#f7efe1;--paper:#fffaf1;--forest:#173d2c;--forest-deep:#123526;--forest2:#294737;--red:#a94c43;--red-soft:#f7e7e3;--gold:#c69a53;--gold-light:#e7ca8f;--line:#eadcc5;--ink:#3d332b;--muted:#776b60;--green-soft:#e8efe6;--shadow:0 20px 55px rgba(70,51,31,.10);--shadow-soft:0 10px 28px rgba(70,51,31,.08)}
*{box-sizing:border-box}html{min-width:320px;background:var(--cream)}body{margin:0;min-width:320px;color:var(--ink);font-family:Inter,ui-rounded,"Avenir Next",Avenir,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(circle at 18% 0%,rgba(255,255,255,.96),transparent 38rem),linear-gradient(180deg,#fbf5eb 0%,var(--cream) 76%)}button,input{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible{outline:4px solid rgba(198,154,83,.38);outline-offset:3px}img{max-width:100%;display:block}[hidden]{display:none!important}.ambient{position:fixed;border-radius:50%;filter:blur(70px);opacity:.14;pointer-events:none}.ambient-one{width:38vw;height:38vw;left:-14vw;top:10vh;background:#edca91}.ambient-two{width:30vw;height:30vw;right:-12vw;top:52vh;background:#b9cdbb}.app-shell{width:min(1240px,calc(100% - 28px));margin:0 auto;padding:clamp(16px,3vw,36px) 0 34px;position:relative}.screen{animation:screenIn .32s ease both}@keyframes screenIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}.eyebrow{margin:0;color:var(--forest);font-size:.75rem;font-weight:950;letter-spacing:.21em}.button{min-height:52px;border:0;border-radius:999px;padding:0 24px;font-weight:900;box-shadow:var(--shadow-soft);transition:transform .15s ease}.button:active{transform:translateY(1px) scale(.99)}.button:disabled{opacity:.42;cursor:not-allowed}.button-primary{background:var(--forest);color:#fff8ee}.button-secondary{background:#f2e4c9;color:var(--forest);box-shadow:none}.tiny-note{color:#8d8074;font-size:.9rem}.access-screen{min-height:calc(100vh - 80px);display:grid;grid-template-columns:minmax(0,1.03fr) minmax(440px,.97fr);align-items:center;gap:clamp(34px,6vw,88px)}.access-visual img{width:100%;filter:drop-shadow(0 12px 24px rgba(87,59,37,.08))}.access-copy h1,.home-heading h1,.level-heading h1,.game-heading h1{font-family:Georgia,"Times New Roman",serif;color:var(--forest-deep);letter-spacing:-.045em}.access-copy h1{margin:10px 0 20px;font-size:clamp(48px,6.6vw,91px);line-height:.93}.lead{margin:0 0 28px;color:var(--muted);font:clamp(18px,2vw,25px)/1.48 Georgia,serif;max-width:660px}.code-card{padding:26px;border:1px solid var(--line);border-radius:28px;background:rgba(255,249,239,.86);box-shadow:var(--shadow-soft);text-align:left}.code-card label{display:block;color:var(--forest-deep);font-weight:950}.code-card>p{margin:6px 0 16px;color:var(--muted);font-size:.94rem}.code-row{display:flex;gap:10px}.code-row input{min-width:0;flex:1;height:58px;border:1.5px solid rgba(73,59,47,.20);border-radius:999px;background:#fffdf8;padding:0 22px;text-transform:uppercase;font-weight:850;letter-spacing:.08em;color:var(--forest-deep)}.form-message{min-height:20px;margin:11px 0 0!important;color:var(--red)!important;font-size:.86rem!important;font-weight:800}.form-message.success{color:var(--forest)!important}.home-screen{padding:20px 0 10px}.home-heading{text-align:center;max-width:850px;margin:0 auto 26px}.home-heading h1{margin:8px 0 10px;font-size:clamp(44px,6.4vw,76px);line-height:.96}.home-heading>p:last-child{margin:0;color:var(--muted);font:18px/1.5 Georgia,serif}.mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.mode-card{min-width:0;display:grid;grid-template-columns:minmax(170px,.78fr) minmax(0,1.22fr);align-items:stretch;border:1px solid var(--line);border-radius:28px;background:rgba(255,249,239,.88);padding:0;color:inherit;text-align:left;overflow:hidden;box-shadow:var(--shadow-soft);transition:.18s ease}.mode-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.mode-art{min-height:220px;background:linear-gradient(145deg,#f1e4c9,#ead9b8);display:flex;align-items:center;justify-content:center;padding:18px}.mode-copy{padding:22px 22px 20px;display:flex;flex-direction:column;min-width:0}.mode-number{color:var(--gold);font-size:10px;font-weight:950;letter-spacing:.18em}.mode-name{margin-top:6px;color:var(--forest);font:700 28px/1.02 Georgia,serif}.mode-detail{margin-top:7px;color:#665649;font-weight:900;font-size:13px}.mode-caption{margin-top:7px;color:var(--muted);font-size:12px;line-height:1.45}.mode-badge{align-self:flex-start;margin-top:13px;padding:6px 9px;border-radius:999px;background:#f3e5c7;color:#8e7245;font-size:10px;font-weight:900}.mode-badge.earned{background:var(--green-soft);color:var(--forest)}.mode-cta{margin-top:auto;padding-top:16px;color:var(--forest);font-size:12px;font-weight:950}.scramble-art,.missing-art{gap:6px;flex-wrap:wrap}.scramble-art span,.missing-art span,.mix-art span{width:47px;height:55px;border-radius:12px;background:#fffaf0;border:1px solid #d8bc7e;display:grid;place-items:center;color:var(--forest);font:700 25px Georgia,serif;box-shadow:0 5px 10px rgba(60,42,28,.07)}.scramble-art span:nth-child(2){transform:translateY(-9px)}.scramble-art span:nth-child(4){transform:translateY(8px)}.missing-art .blank{border-style:dashed;color:var(--gold);background:#f5e7cf}.mix-art{display:grid;gap:8px;align-content:center}.mix-art>div:not(.plus){display:flex;gap:4px;justify-content:center}.mix-art span{width:36px;height:43px;font-size:19px}.mix-art .plus{text-align:center;color:var(--red);font:700 25px Georgia,serif}.speed-art{display:grid;place-items:center;align-content:center;gap:10px}.timer-ring{width:108px;height:108px;border-radius:50%;border:9px solid var(--forest);outline:5px solid rgba(198,154,83,.30);display:grid;place-items:center;align-content:center;color:var(--red);font:700 41px/1 Georgia,serif;background:#fffaf1}.timer-ring span{font:900 9px system-ui;letter-spacing:.14em;color:var(--forest);margin-top:3px}.speed-stars{color:var(--gold);letter-spacing:.2em}.champion-card{max-width:760px;margin:20px auto 0;padding:15px 18px;border:1px solid var(--line);border-radius:22px;background:rgba(255,249,239,.62);display:flex;align-items:center;justify-content:center;gap:12px;color:#7b6b5c}.champion-card>span{font-size:28px;color:#c5a66d}.champion-card strong{display:block;color:var(--forest)}.champion-card small{display:block;margin-top:2px}.champion-card.earned{background:var(--green-soft);border-color:rgba(41,71,55,.28)}.champion-card.earned>span{color:var(--gold)}.how-to{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px auto 0;max-width:900px}.how-to div{text-align:center;padding:15px 10px;border-top:1px solid var(--line)}.how-to span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--forest);color:white;font-weight:900;margin:0 auto 7px}.how-to strong{display:block;color:var(--forest);font:700 18px Georgia,serif}.how-to small{color:var(--muted)}.level-screen{padding:28px 0 30px;position:relative}.round-back,.icon-button{width:50px;height:50px;border-radius:50%;border:1px solid var(--line);background:#fffaf1;color:var(--forest);font-size:27px;display:grid;place-items:center}.level-heading{text-align:center;max-width:760px;margin:-30px auto 28px}.level-heading h1{margin:7px 0 9px;font-size:clamp(42px,5.8vw,68px)}.level-heading>p:last-child{color:var(--muted);margin:0}.level-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;max-width:960px;margin:auto}.level-card{min-height:255px;border:1px solid var(--line);border-radius:28px;background:rgba(255,249,239,.88);padding:28px 20px;color:var(--forest);text-align:center;box-shadow:var(--shadow-soft);transition:.18s ease}.level-card:hover{transform:translateY(-2px);border-color:rgba(198,154,83,.55)}.level-stars{display:block;color:var(--gold);letter-spacing:.12em;font-size:18px;margin-bottom:20px}.level-card strong{display:block;font:700 31px Georgia,serif}.level-card b{display:block;margin:8px 0;color:var(--red);font-size:12px}.level-card small{display:block;color:var(--muted);font-size:12px;line-height:1.5}.game-screen{padding:10px 0 22px}.game-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;margin-bottom:13px}.game-heading h1{margin:3px 0 0;font-size:clamp(32px,4.5vw,48px);line-height:1}.game-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.pill{min-height:42px;padding:0 14px;border-radius:999px;background:#f0e2c5;color:var(--forest);display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:900}.speed-pill{background:var(--red);color:#fff}.speed-pill b{font-size:17px;margin-right:2px}.progress-track{height:6px;border-radius:999px;background:#e8dcc8;overflow:hidden;margin-bottom:13px}.progress-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--red),var(--gold));border-radius:inherit;transition:width .3s ease}.play-card{border:1px solid var(--line);border-radius:30px;background:rgba(255,249,239,.93);box-shadow:var(--shadow);padding:22px 26px 24px;min-height:520px}.prompt-row{display:grid;grid-template-columns:auto 1fr;gap:20px;align-items:center;max-width:900px;margin:0 auto 18px}.prompt-art{width:132px;height:132px;border-radius:26px;background:#fbf0db;border:1px solid var(--line);display:grid;place-items:center;padding:12px}.prompt-art img{width:100%;height:100%;object-fit:contain}.prompt-copy{min-width:0}.challenge-label{margin:0;color:var(--red);font-size:10px;font-weight:950;letter-spacing:.16em}.prompt-copy h2{margin:5px 0 7px;color:var(--forest);font:700 clamp(26px,3.4vw,38px)/1.08 Georgia,serif}.prompt-copy>p:last-child{margin:0;color:var(--muted);font:16px/1.45 Georgia,serif}.challenge-area{max-width:930px;margin:0 auto;min-height:245px;display:grid;align-content:center;gap:18px}.word-answer{display:flex;justify-content:center;gap:5px;flex-wrap:wrap}.answer-slot{width:48px;height:54px;border:1px solid #d8c29d;border-radius:12px;background:#fffaf1;color:var(--forest);display:grid;place-items:center;font:700 25px Georgia,serif;padding:0}.answer-slot.empty{border-style:dashed;color:#c8ad7a;background:#f7ecd8}.answer-slot.locked{background:var(--green-soft);border-color:rgba(41,71,55,.35)}.letter-pool{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.letter-tile{width:52px;height:58px;border:1px solid #d2b883;border-radius:14px;background:#fffaf1;color:var(--forest);font:700 25px Georgia,serif;box-shadow:0 5px 12px rgba(65,45,27,.08);transition:.12s ease}.letter-tile:active:not(:disabled){transform:translateY(1px)}.letter-tile:disabled{opacity:.24;box-shadow:none}.helper-line{text-align:center;color:#8a7967;font-size:11px;font-weight:800}.missing-word{display:flex;justify-content:center;gap:5px;flex-wrap:wrap}.missing-char{width:48px;height:54px;border-radius:12px;display:grid;place-items:center;background:#fffaf1;border:1px solid #ddc9a8;color:var(--forest);font:700 24px Georgia,serif}.missing-char.blank{border:2px dashed #cca85f;background:#f6e8cd;color:#bd9146}.missing-char.solved{background:var(--green-soft);border-style:solid;border-color:rgba(41,71,55,.4)}.choice-letters{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.choice-letter{width:58px;height:62px;border-radius:16px;border:1px solid #d2b883;background:#fffaf1;color:var(--forest);font:700 26px Georgia,serif;box-shadow:var(--shadow-soft)}.choice-letter.wrong{animation:wrongShake .36s ease;background:var(--red-soft);border-color:#a94f48}.mix-targets{display:grid;grid-template-columns:1fr 1fr;gap:11px}.mix-target{border:2px solid transparent;border-radius:20px;background:#f8edd9;padding:12px;text-align:center;transition:.14s ease}.mix-target.active{border-color:var(--gold);background:#fff7e8}.mix-target.wrong{border-color:#a94f48;background:var(--red-soft)}.mix-target-head{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;border:0;background:transparent;padding:0;color:inherit;text-align:center}.mix-target-head img{width:46px;height:46px;object-fit:contain}.mix-target-head strong{color:var(--forest);font:700 17px Georgia,serif}.mix-target .word-answer{margin-top:10px}.mix-target .answer-slot{width:40px;height:46px;font-size:20px}.feedback{min-height:26px;margin:14px auto 0;text-align:center;color:var(--muted);font:16px Georgia,serif}.feedback.correct{color:var(--forest);font-weight:700}.feedback.wrong{color:var(--red);font-weight:700}.play-card.flash-wrong{animation:cardWrong .42s ease}.play-card.flash-correct{animation:cardCorrect .48s ease}.play-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:12px}.speed-stats{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:11px}.speed-stats span{min-width:100px;text-align:center;padding:10px 14px;border-radius:999px;background:#efe2c8;color:#725f4d;font-size:11px;font-weight:900}.speed-stats b{color:var(--forest);font-size:16px;margin-left:3px}.result-layer{position:fixed;inset:0;z-index:50;background:rgba(39,30,24,.33);display:grid;place-items:center;padding:20px;backdrop-filter:blur(5px)}.result-card{width:min(540px,100%);border:1px solid var(--line);border-radius:32px;background:#fffaf1;box-shadow:0 30px 80px rgba(40,28,19,.23);padding:29px;text-align:center}.result-sparkle{font-size:34px;color:var(--gold)}.result-card h2{margin:7px 0 10px;color:var(--forest);font:700 42px/1 Georgia,serif}.result-card>p:not(.eyebrow){color:var(--muted);font:17px/1.5 Georgia,serif}.result-badge{margin:20px auto;max-width:330px;padding:13px 16px;border-radius:20px;background:var(--green-soft);display:flex;align-items:center;justify-content:center;gap:12px;color:var(--forest)}.result-badge>span{font-size:32px;color:var(--gold)}.result-badge small{display:block;font-size:8px;font-weight:950;letter-spacing:.14em}.result-badge strong{display:block;font:700 20px Georgia,serif}.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.brand-footer{text-align:center;padding:7px 12px 24px}.brand-footer img{width:108px;opacity:.78}@keyframes wrongShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@keyframes cardWrong{0%,100%{box-shadow:var(--shadow)}50%{box-shadow:0 0 0 4px rgba(169,79,72,.14),var(--shadow)}}@keyframes cardCorrect{0%,100%{box-shadow:var(--shadow)}50%{box-shadow:0 0 0 5px rgba(41,71,55,.10),var(--shadow)}}
@media(max-width:900px){.access-screen{grid-template-columns:1fr;min-height:auto;text-align:center;padding:28px 0}.access-visual{order:2;max-width:720px;margin:0 auto}.access-copy{order:1}.lead{margin-left:auto;margin-right:auto}.code-card{text-align:left}.mode-card{grid-template-columns:150px 1fr}.mode-art{min-height:205px}.level-grid{grid-template-columns:1fr 1fr}.level-card:last-child{grid-column:1/-1;max-width:470px;width:100%;justify-self:center}.game-header{grid-template-columns:auto 1fr}.game-actions{grid-column:1/-1;justify-content:flex-start}.prompt-row{grid-template-columns:105px 1fr}.prompt-art{width:105px;height:105px}}
@media(max-width:640px){.app-shell{width:min(100% - 16px,1240px);padding-top:10px}.access-copy h1{font-size:clamp(43px,13.5vw,62px)}.code-row{flex-direction:column}.code-row .button{width:100%}.home-heading h1{font-size:clamp(39px,12vw,54px)}.home-heading>p:last-child{font-size:16px}.mode-grid{grid-template-columns:1fr;gap:10px}.mode-card{grid-template-columns:118px 1fr;border-radius:23px}.mode-art{min-height:175px;padding:10px}.mode-copy{padding:16px 15px}.mode-name{font-size:23px}.mode-caption{font-size:11px}.scramble-art span,.missing-art span{width:36px;height:43px;font-size:19px;border-radius:10px}.mix-art span{width:28px;height:34px;font-size:15px}.timer-ring{width:83px;height:83px;border-width:7px;font-size:31px}.champion-card{justify-content:flex-start}.how-to{grid-template-columns:1fr}.how-to div{display:grid;grid-template-columns:34px 1fr;text-align:left;column-gap:9px}.how-to span{grid-row:1/3;margin:0}.how-to strong,.how-to small{grid-column:2}.level-screen{padding-top:13px}.level-heading{margin:14px auto 20px}.level-heading h1{font-size:43px}.level-grid{grid-template-columns:1fr;gap:9px}.level-card,.level-card:last-child{grid-column:auto;min-height:0;max-width:none;padding:20px}.level-card .level-stars{margin-bottom:10px}.game-header{gap:9px}.icon-button{width:46px;height:46px}.game-heading h1{font-size:31px}.game-actions{gap:5px}.pill{min-height:38px;padding:0 11px;font-size:10px}.play-card{border-radius:24px;padding:15px 9px 18px;min-height:0}.prompt-row{grid-template-columns:88px 1fr;gap:10px;margin-bottom:14px}.prompt-art{width:88px;height:88px;border-radius:18px;padding:7px}.prompt-copy h2{font-size:25px}.prompt-copy>p:last-child{font-size:14px}.challenge-area{min-height:235px;gap:15px}.answer-slot{width:42px;height:48px;border-radius:10px;font-size:21px}.letter-pool{gap:6px}.letter-tile{width:46px;height:52px;border-radius:12px;font-size:22px}.missing-char{width:42px;height:48px;font-size:21px}.choice-letter{width:51px;height:56px;font-size:23px}.mix-targets{grid-template-columns:1fr;gap:7px}.mix-target{padding:9px}.mix-target-head{min-height:39px}.mix-target-head img{width:38px;height:38px}.mix-target .answer-slot{width:36px;height:42px;font-size:18px}.feedback{font-size:14px}.play-actions .button{min-height:48px;padding:0 17px}.result-card{padding:24px 16px}.result-card h2{font-size:35px}.result-actions{grid-template-columns:1fr}.brand-footer img{width:100px}}
@media(max-width:380px){.mode-card{grid-template-columns:102px 1fr}.mode-name{font-size:21px}.mode-detail{font-size:11px}.mode-badge{font-size:9px}.prompt-row{grid-template-columns:1fr;text-align:center}.prompt-art{margin:auto}.challenge-area{min-height:220px}.answer-slot{width:39px;height:45px}.letter-tile{width:43px;height:49px}.missing-char{width:39px;height:45px}.choice-letter{width:48px;height:53px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}


/* V64 POLISH LOCK: centered footer, safe clipart frames, Word Mix completed state */
.brand-footer{display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important;text-align:center!important;padding:10px 12px 24px!important}
.brand-footer a{display:flex!important;align-items:center!important;justify-content:center!important;width:max-content!important;margin:0 auto!important}
.brand-footer img{display:block!important;margin:0 auto!important}
.prompt-art{overflow:hidden!important;padding:14px!important}
.prompt-art img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;margin:auto!important}
.mix-target{overflow:hidden!important}
.mix-target-head img{display:block!important;width:52px!important;height:52px!important;max-width:52px!important;max-height:52px!important;object-fit:contain!important;object-position:center!important;flex:0 0 52px!important;margin:0!important}
.mix-target.completed{border-color:rgba(41,71,55,.45)!important;background:var(--green-soft)!important}
.mix-target.completed .mix-target-head strong{color:var(--forest)!important}
.mix-target.completed .answer-slot{background:#edf3eb!important;border-color:rgba(41,71,55,.28)!important;color:var(--forest)!important}
@media(max-width:640px){.prompt-art{padding:9px!important}.mix-target-head img{width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important;flex-basis:44px!important}}

/* V65 MOBILE HOME + FULL-WIDTH PROMPT POLISH */
.prompt-row.no-art{
  grid-template-columns:minmax(0,1fr)!important;
  max-width:930px!important;
}
.prompt-row.no-art .prompt-copy{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}

@media(max-width:640px){
  .mode-card{
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto!important;
  }
  .mode-art{
    min-height:132px!important;
    border-bottom:1px solid var(--line);
    padding:14px 16px!important;
  }
  .mode-copy{
    padding:17px 18px 19px!important;
  }
  .mode-name{
    font-size:26px!important;
  }
  .mode-caption{
    font-size:12px!important;
  }
  .mode-cta{
    padding-top:14px!important;
  }
  .scramble-art,.missing-art{
    max-width:250px;
    margin:0 auto;
  }
  .mix-art{
    width:100%;
    max-width:250px;
    margin:0 auto;
  }
  .speed-art{
    min-height:104px;
  }
  .prompt-row.no-art{
    display:block!important;
    margin-bottom:14px!important;
  }
  .prompt-row.no-art .prompt-copy h2{
    font-size:clamp(28px,8.6vw,36px)!important;
    line-height:1.04!important;
  }
  .prompt-row.no-art .prompt-copy>p:last-child{
    font-size:15px!important;
    line-height:1.45!important;
  }
}

/* V66 MOBILE MODE CARD BACKGROUND LOCK
   The preview background spans edge-to-edge across the full card width. */
@media(max-width:640px){
  .mode-card{
    overflow:hidden!important;
  }
  .mode-art,
  .mode-art.scramble-art,
  .mode-art.missing-art,
  .mode-art.mix-art,
  .mode-art.speed-art{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    min-height:142px!important;
    border-radius:0!important;
    background:linear-gradient(145deg,#f1e4c9,#ead9b8)!important;
  }
  .mode-art.scramble-art,
  .mode-art.missing-art{
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    align-content:center!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }
  .mode-art.mix-art{
    display:grid!important;
    justify-content:stretch!important;
    align-content:center!important;
    gap:7px!important;
    padding-left:18px!important;
    padding-right:18px!important;
  }
  .mode-art.mix-art>div:not(.plus){
    justify-content:center!important;
  }
  .mode-art.speed-art{
    display:grid!important;
    place-items:center!important;
    align-content:center!important;
  }
}
