Vocab Quest
by BraveGecko3756 lines3.7 KB
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>Vocab Quest</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Arial', 'Microsoft YaHei'; min-height: 100vh; transition: background 0.6s; background: linear-gradient(135deg, #1a1a2e, #16213e); padding: 10px; overflow-x: hidden; }
.box { max-width: 480px; margin: 20px auto; perspective: 800px; }
/* ๅก็ */
.card { background: rgba(255,255,255,0.97); border-radius: 20px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); transform: rotateX(0deg); transition: transform 0.3s; }
/* ๆ ้ข */
.title { text-align: center; padding: 20px 0; }
.title h1 { font-size: 32px; background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: hue 3s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
/* ้กถ้จๆ */
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.hearts { display: flex; gap: 4px; }
.heart { font-size: 24px; transition: all 0.3s; display: inline-block; }
.heart.pop { animation: pop 0.4s ease; }
@keyframes pop { 0%{transform:scale(1)} 50%{transform:scale(1.6)} 100%{transform:scale(1)} }
.heart.break { animation: shake 0.5s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.combo { font-size: 18px; font-weight: bold; color: #e74c3c; }
.combo.bump { animation: bump 0.3s ease; }
@keyframes bump { 0%{transform:scale(1)} 50%{transform:scale(1.4)} 100%{transform:scale(1)} }
.timer-bar { height: 6px; background: #eee; border-radius: 3px; margin-bottom: 15px; overflow: hidden; }
.timer-fill { height: 100%; border-radius: 3px; transition: width 1s linear, background 0.3s; }
/* ้ข็ฎ */
.word-cn { font-size: 42px; font-weight: 900; text-align: center; margin: 15px 0 5px; color: #2c3e50; }
.word-pos { text-align: center; color: #aaa; font-size: 14px; margin-bottom: 8px; }
.word-unit { text-align: center; color: #ddd; font-size: 12px; margin-bottom: 20px; }
/* ้้กน */
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt-btn { padding: 16px 10px; border: 3px solid #e8e8e8; border-radius: 14px; background: white; cursor: pointer; font-size: 15px; font-weight: bold; color: #333; transition: all 0.2s; position: relative; overflow: hidden; }
.opt-btn:hover { border-color: #667eea; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(102,126,234,0.25); }
.opt-btn.correct { background: linear-gradient(135deg, #56ab2f, #a8e6cf); border-color: #28a745; color: white; animation: correctPulse 0.5s ease; }
.opt-btn.wrong { background: linear-gradient(135deg, #f5576c, #ff6b6b); border-color: #dc3545; color: white; animation: wrongShake 0.5s ease; }
.opt-btn.reveal { background: linear-gradient(135deg, #feca57, #ff9ff3); border-color: #f39c12; color: white; animation: revealGlow 0.8s ease; }
.opt-btn:disabled { cursor: default; transform: none; }
@keyframes correctPulse { 0%{transform:scale(1)} 50%{transform:scale(1.08)} 100%{transform:scale(1)} }
@keyframes wrongShake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-8px)} 40%{transform:translateX(8px)} 60%{transform:translateX(-5px)} 80%{transform:translateX(5px)} }
@keyframes revealGlow { 0%{box-shadow:0 0 0 0 rgba(254,202,87,0.7)} 100%{box-shadow:0 0 0 20px rgba(254,202,87,0)} }
/* ๅ้ฆ */
.feedback { text-align: center; padding: 14px; border-radius: 12px; margin-top: 15px; font-size: 16px; font-weight: bold; animation: slideUp 0.3s ease; }
@keyframes slideUp { from{opacity:0;transform:translateY(15px)} to{opacity:1;transform:translateY(0)} }
.fb-okGame Source: Vocab Quest
Creator: BraveGecko37
Libraries: none
Complexity: moderate (56 lines, 3.7 KB)
The full source code is displayed above on this page.
Remix Instructions
To remix this game, copy the source code above and modify it. Add a ARCADELAB header at the top with "remix_of: vocab-quest-bravegecko37" to link back to the original. Then publish at arcadelab.ai/publish.