A little color. A little motion. A tiny experiment in CSS gradients.
<div class="wrap">
<header class="hero">
<div class="kicker">⛏ SURVIVAL WORLD • ENGLISH QUEST</div>
<h1>PAST SIMPLE<br>THE ADVENTURE CONTINUES</h1>
<p>Two new missions. New grammar. New challenges.</p>
<div class="stats"><span class="chip">⚔ 2 lessons</span><span class="chip">⏱ 30–35 min each</span><span class="chip">🏆 Earn XP</span></div>
</header>
<div class="tabs"><button class="active" onclick="showLesson(0)">⚔ Lesson 1</button><button onclick="showLesson(1)">🏹 Lesson 2</button></div>
<div class="small muted">QUEST PROGRESS <b id="xpLabel">0 XP</b></div><div class="progressline"><span id="bar"></span></div>
<main id="lesson0" class="lesson show">
<section class="card"><div class="tag">MISSION 01 • 30–35 MINUTES</div><h2>🕵️ The Detective's Questions</h2><p class="muted">Steve came back from an adventure. Nobody knows what happened. Your job is to ask questions and discover the truth!</p></section>
<section class="card"><h3>1. Grammar checkpoint — WH questions</h3><p class="muted">Use these words when you need specific information about the past.</p>
<div class="grid">
<div class="tile"><b>WHAT?</b><br><span class="small muted">Що?</span><br>What did you find?</div>
<div class="tile"><b>WHERE?</b><br><span class="small muted">Де?</span><br>Where did you go?</div>
<div class="tile"><b>WHEN?</b><br><span class="small muted">Коли?</span><br>When did you leave?</div>
<div class="tile"><b>WHO?</b><br><span class="small muted">Хто?</span><br>Who did you meet?</div>
<div class="tile"><b>WHY?</b><br><span class="small muted">Чому?</span><br>Why did you run?</div>
<div class="tile"><b>HOW?</b><br><span class="small muted">Як?</span><br>How did you escape?</div>
</div>
<div class="rule"><strong>WH-word + DID + subject + base verb?</strong><br>Where did Steve go?<br>What did he find?<br><span class="small">Після DID дієслово завжди у початковій формі.</span></div></section>
<section class="card"><h3>2. Choose the correct question</h3><div id="l1quiz"></div></section>
<section class="card"><h3>3. Build the question</h3><p class="muted">Write a correct question using the words.</p>
<div class="taskrow"><b>WHERE / Steve / go / yesterday?</b><input id="build1" placeholder="Write your question"><button class="btn" onclick="checkInput('build1',['where did steve go yesterday?'],'buildfb1')">Check</button><div id="buildfb1" class="feedback"></div></div>
<div class="taskrow"><b>WHAT / he / find / in the cave?</b><input id="build2" placeholder="Write your question"><button class="btn" onclick="checkInput('build2',['what did he find in the cave?'],'buildfb2')">Check</button><div id="buildfb2" class="feedback"></div></div>
</section>
<section class="card"><h3>4. Detective interview 🎙</h3><p class="muted">Student is the detective. Ask Steve these questions aloud. Teacher answers as Steve — invent funny or surprising answers!</p>
<div class="story"><p>1. (where / go) → Where did you go?</p><p>2. (who / meet) → Who did you meet?</p><p>3. (what / find) → What did you find?</p><p>4. (why / run) → Why did you run?</p><p>5. (when / return) → When did you return?</p></div>
<p class="small muted">Challenge: ask one extra question of your own.</p></section>
<section class="card"><h3>5. Mystery story — What happened?</h3><p>Steve visited a mysterious cave. Ask at least five questions to discover the story.</p><div class="story"><b>🔎 Clues:</b><p>• A strange sound</p><p>• An old chest</p><p>• A missing diamond</p><p>• A mysterious stranger</p></div><p class="muted small">Try to use What...? Where...? Who...? Why...? How...?</p></section>
<section class="card"><h3>6. Exit ticket</h3><div id="l1exit"></div></section>
</main>
<main id="lesson1" class="lesson">
<section class="card"><div class="tag">MISSION 02 • 30–35 MINUTES</div><h2>🌲 The Unexpected Adventure</h2><p class="muted">Steve went on an adventure, but everything went wrong. Learn to describe what didn't happen and how things were.</p></section>
<section class="card"><h3>1. Grammar checkpoint — Negative sentences</h3><p class="muted">We use DIDN'T to say that something did not happen.</p><div class="rule"><strong>Subject + DIDN'T + base verb</strong><br>Steve didn't find the treasure.<br>I didn't see a zombie.<br>They didn't build a house.</div><p>Remember: DIDN'T already shows the past, so the main verb stays in its base form.</p><p>❌ He didn't went. ✅ He didn't go.</p></section>
<section class="card"><h3>2. Choose the correct sentence</h3><div id="l2quiz"></div></section>
<section class="card"><h3>3. WAS / WERE — Where were they?</h3><p class="muted">Use WAS and WERE to talk about a past state, feeling or location.</p><div class="grid"><div class="tile"><b>WAS</b><p>I / he / she / it</p><p>Steve was tired.</p><p>The cave was dark.</p></div><div class="tile"><b>WERE</b><p>You / we / they</p><p>They were scared.</p><p>We were at home.</p></div></div><div class="rule"><b>Negative:</b> was not = wasn't · were not = weren't<br><b>Questions:</b> Was Steve tired? / Were they in the cave?</div><p class="small muted">WAS/WERE — форми дієслова be. DIDN'T + verb — для звичайних дій. Не змішуємо їх.</p></section>
<section class="card"><h3>4. Was or Were?</h3><div id="wasquiz"></div></section>
<section class="card"><h3>5. Fix the mistakes</h3><p class="muted">Find the mistake and write the correct sentence.</p>
<div class="taskrow"><b>1. Steve didn't found the treasure.</b><input id="fix1" placeholder="Correct sentence"></div>
<div class="taskrow"><b>2. They was in the forest.</b><input id="fix2" placeholder="Correct sentence"></div>
<div class="taskrow"><b>3. I didn't saw a zombie.</b><input id="fix3" placeholder="Correct sentence"></div>
<div class="taskrow"><b>4. The cave were dark.</b><input id="fix4" placeholder="Correct sentence"></div>
<button class="btn" onclick="checkFixes()">Check all</button><div id="fixfb" class="feedback"></div></section>
<section class="card"><h3>6. Speaking mission — Tell the story</h3><p class="muted">Look at the clues and tell what happened. Use WAS/WERE, DIDN'T and Past Simple verbs.</p><div class="story"><b>Yesterday, Steve went into a forest...</b><p>🌲 The forest was dark.</p><p>🏚️ There was an old house.</p><p>🧟 A zombie appeared.</p><p>💎 Steve didn't find the diamond.</p><p>🏃 He ran away.</p></div><p><b>Your mission:</b> Tell the story in 6–8 sentences. Extra challenge: ask three questions about Steve's adventure.</p></section>
<section class="card"><h3>7. Final boss — Choose the correct answer</h3><div id="bossquiz"></div></section>
</main>
<section class="card"><div class="footer"><div><div class="tag">YOUR QUEST RESULTS</div><div class="xp" id="total">0 XP</div><div class="muted small" id="rank">Start your adventure!</div></div><button class="btn secondary" onclick="showLesson(current===0?1:0)" id="next">Go to Lesson 2 →</button></div></section>
</div>
<script>
let xp=0,current=0,completed=new Set();
function update(){document.getElementById('xpLabel').textContent=xp+' XP';document.getElementById('total').textContent=xp+' XP';document.getElementById('bar').style.width=Math.min(100,xp/1.5)+'%';document.getElementById('rank').textContent=xp>=100?'🏆 Master Explorer!':xp>=50?'⚔ Skilled Adventurer!':'Keep exploring to earn XP!'}
function award(id){if(!completed.has(id)){completed.add(id);xp+=10;update()}}
function showLesson(n){current=n;document.querySelectorAll('.lesson').forEach((x,i)=>x.classList.toggle('show',i===n));document.querySelectorAll('.tabs button').forEach((x,i)=>x.classList.toggle('active',i===n));document.getElementById('next').textContent=n===0?'Go to Lesson 2 →':'Back to Lesson 1 →';window.scrollTo({top:0,behavior:'smooth'})}
function quiz(id,data){let el=document.getElementById(id);data.forEach((q,i)=>{let box=document.createElement('div');box.className='q';let p=document.createElement('p');p.textContent=(i+1)+'. '+q.q;box.appendChild(p);let choices=document.createElement('div');choices.className='choices';let fb=document.createElement('div');fb.className='feedback';q.a.forEach((a,j)=>{let b=document.createElement('button');b.className='choice';b.textContent=a;b.onclick=()=>{if(box.dataset.done)return;box.dataset.done='1';let ok=j===q.correct;b.classList.add(ok?'good':'bad');if(!ok)choices.children[q.correct].classList.add('good');fb.textContent=ok?'✓ Correct! +10 XP':'Not quite. Correct answer: '+q.a[q.correct];fb.style.color=ok?'#69c477':'#ef8585';if(ok)award(id+i)};choices.appendChild(b)});box.append(choices,fb);el.appendChild(box)})}
quiz('l1quiz',[
{q:'___ did Steve go yesterday?',a:['Where','Who','What'],correct:0},
{q:'What ___ he find in the cave?',a:['does','did','was'],correct:1},
{q:'Who ___ you meet?',a:['did','were','do'],correct:0}
]);
quiz('l1exit',[
{q:'___ did you see at the village?',a:['Who','Where','When'],correct:0},
{q:'Where ___ they sleep?',a:['did','were','does'],correct:0}
]);
quiz('l2quiz',[
{q:'Choose the correct negative sentence.',a:["He didn't went home.","He didn't go home.","He don't went home."],correct:1},
{q:'Choose the correct negative sentence.',a:["They didn't see a zombie.","They didn't saw a zombie.","They not saw a zombie."],correct:0},
{q:'Choose the correct negative sentence.',a:["I didn't ate breakfast.","I not eat breakfast.","I didn't eat breakfast."],correct:2}
]);
quiz('wasquiz',[
{q:'Steve ___ tired yesterday.',a:['were','was'],correct:1},
{q:'They ___ in the forest.',a:['was','were'],correct:1},
{q:'The cave ___ dark.',a:['was','were'],correct:0},
{q:'We ___ scared.',a:['was','were'],correct:1},
{q:'I ___ at home.',a:['was','were'],correct:0}
]);
quiz('bossquiz',[
{q:'Steve ___ find the diamond.',a:["didn't","wasn't","weren't"],correct:0},
{q:'___ the cave dark?',a:['Did','Was','Were'],correct:1},
{q:'They ___ happy yesterday.',a:['was','were','did'],correct:1},
{q:'___ you see the zombie?',a:['Did','Were','Was'],correct:0}
]);
function checkInput(id,answers,fbid){let v=document.getElementById(id).value.trim().toLowerCase().replace(/\s+/g,' ');let ok=answers.includes(v);let f=document.getElementById(fbid);f.textContent=ok?'✓ Excellent! +10 XP':'Try again. Remember: WH-word + DID + subject + base verb.';f.style.color=ok?'#69c477':'#ef8585';if(ok)award(fbid)}
function checkFixes(){let a=["steve didn't find the treasure.","they were in the forest.","i didn't see a zombie.","the cave was dark."];let c=0;a.forEach((ans,i)=>{let v=document.getElementById('fix'+(i+1)).value.trim().toLowerCase().replace(/[’]/g,"'").replace(/\s+/g,' ');if(v===ans){c++;award('fix'+i)}});let f=document.getElementById('fixfb');f.textContent=c+'/4 correct. '+(c===4?'Perfect!':'Check the subject and the verb form, then try again.');f.style.color=c===4?'#69c477':'#ef8585'}
</script>