@charset "UTF-8";
:root{color-scheme:dark;--ink:#eef0e6;--muted:#a4b3aa;--bg:#101918;--surface:#1a2925;--surface2:#21332b;--gold:#dbba77;--gold-dim:#83704e;--green:#a9d2a7;--mint:#7fcbb1;--line:rgba(207,204,160,.16);--danger:#ff9a88;--radius:18px;--shadow:0 18px 48px #0005;font-family:"Trebuchet MS",Arial,sans-serif;font-size:16px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:radial-gradient(ellipse at 15% 5%,#30413555,transparent 50%),repeating-linear-gradient(91deg,#ffffff01 0,#ffffff01 1px,transparent 1px,transparent 7px),var(--bg);color:var(--ink);min-height:100vh;min-height:100dvh}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--mint);outline-offset:4px}button{border:0}svg.icon{width:21px;height:21px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}img{display:block;max-width:100%;object-fit:cover}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:700}p{line-height:1.65}small{font-size:13px;color:var(--muted)}.muted{color:var(--muted)}.gold{color:var(--gold)}.eyebrow{display:flex;align-items:center;gap:9px;color:var(--gold);font-size:12px;text-transform:uppercase;letter-spacing:2.2px;font-weight:700}.eyebrow:before{content:"";display:inline-block;width:22px;height:1px;background:var(--gold)}.serif{font-family:Georgia,"Times New Roman",serif}.skip-link{position:fixed;top:-100px;left:16px;padding:16px;z-index:100;background:var(--gold);color:#17221c}.skip-link:focus{top:12px}main{max-width:1280px;margin:auto;padding:36px 42px 60px;outline:0;min-height:calc(100dvh - 190px)}.site-header{height:86px;padding:0 42px;max-width:1440px;margin:auto;display:flex;align-items:center;gap:36px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px}.brand-symbol{position:relative;display:grid;place-items:center;color:var(--gold);height:44px;width:44px;border:1px solid #b79b5c88;transform:rotate(45deg);border-radius:9px;background:linear-gradient(135deg,#48615144,#16241d)}.brand-symbol span{font:700 28px Georgia;transform:rotate(-45deg);text-shadow:1px 2px 0 #000}.brand-word{font-family:Georgia,serif;font-weight:900;letter-spacing:1px;font-size:30px;line-height:1}.brand-desc{display:block;font-size:10px;letter-spacing:1px;margin-top:4px;color:#b1beae;text-transform:uppercase}.desktop-nav{display:flex;align-items:center;gap:28px;height:100%;margin-right:auto}.desktop-nav a{font-size:14px;color:#aebbaf;height:100%;display:flex;align-items:center;gap:8px;position:relative}.desktop-nav a.active{color:var(--gold)}.desktop-nav a.active:after{position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--gold);content:""}.header-right{display:flex;align-items:center;gap:16px}.language-pair{display:flex;align-items:center;gap:7px}.flag-button{padding:5px;background:transparent;border-radius:6px;display:flex;align-items:center;gap:5px}.flag{width:27px;height:19px;border-radius:3px;box-shadow:0 0 0 1px #ffffff20}.language-pair .icon{width:12px;color:var(--gold)}.profile-button{display:flex;align-items:center;gap:9px;background:transparent;border-left:1px solid var(--line);padding:3px 0 3px 18px;font-size:14px}.avatar{height:34px;width:34px;border-radius:50%;display:grid;place-items:center;background:#334739;color:var(--gold);border:1px solid #647754;font-weight:bold}.profile-button .icon{width:12px}.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:42px;min-height:42px;border:1px solid var(--line);border-radius:10px;background:#1d2c26;color:#bbcabb}.icon-button:hover{border-color:var(--gold-dim);color:var(--gold)}.icon-button[aria-pressed=true]{background:#35543d;color:#eddfab;border-color:#95b57a55}.icon-button[aria-pressed=false]{color:#819287}.icon-button .off-mark{display:none}.icon-button[aria-pressed=false] .off-mark{display:block}.topline{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:20px}.welcome{font-size:14px;color:var(--muted)}.welcome strong{color:var(--ink)}.profile-stats{display:flex;gap:24px;color:#c2cdbd;font-size:13px}.profile-stats span{display:flex;align-items:center;gap:7px}.profile-stats .icon{width:17px;color:var(--gold)}.hero{height:430px;border-radius:22px;overflow:hidden;position:relative;background:#20372d;border:1px solid #6a775644;box-shadow:var(--shadow)}.hero-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:58% 50%}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#12201df0 0,#12201ddc 27%,#12201d55 53%,transparent 77%),linear-gradient(0deg,#14231c99,transparent 30%);pointer-events:none}.hero-copy{position:relative;z-index:1;padding:45px 48px;width:60%;height:100%;display:flex;flex-direction:column;align-items:flex-start}.hero h1{font:400 clamp(36px,4vw,57px)/1.08 Georgia,serif;letter-spacing:-1.8px;margin:21px 0 15px;color:#fff5dc;text-shadow:0 2px 24px #0003}.hero h1 em{font-style:normal;color:var(--green)}.hero p{font-size:15px;max-width:370px;color:#c7d1c2;line-height:1.6}.button{min-height:46px;padding:12px 22px;display:inline-flex;justify-content:center;align-items:center;gap:10px;font-size:14px;font-weight:700;border-radius:10px;border:1px solid #b6c19b44;background:#283c2e;color:#ecebd5;transition:transform .15s,background .15s,border-color .15s}.button:hover{transform:translateY(-2px);background:#38533d;border-color:#c3ce9b77}.button:active{transform:translateY(1px)}.button.primary{background:linear-gradient(170deg,#dfc987,#b9a366);color:#19271e;border:1px solid #f3dfa2;box-shadow:inset 0 1px 0 #fff8,0 3px 0 #776236,0 7px 22px #0003}.button.primary:hover{background:linear-gradient(170deg,#f2dca0,#c1ad74)}.button.ghost{background:transparent;color:var(--muted)}.button.danger{color:#ffb49e;border-color:#ad665b55}.hero-actions{display:flex;gap:12px;margin-top:26px}.hero-actions .primary{min-width:166px}.hero-note{font-size:11px!important;letter-spacing:.5px;margin-top:16px;display:flex;gap:8px;align-items:center}.hero-note .icon{width:14px;height:14px;color:var(--mint)}.hero-compass{position:absolute;right:23px;bottom:23px;z-index:2;display:flex;align-items:center;gap:10px;background:#13211ba8;backdrop-filter:blur(12px);padding:12px 18px;border:1px solid #dcc38c44;border-radius:10px;color:#eddec0;font-size:12px}.hero-compass .icon{width:26px;height:26px;color:var(--gold)}.hero-firefly{position:absolute;border-radius:100%;width:3px;height:3px;background:#ffdda3;box-shadow:0 0 13px 3px #ffd78255;z-index:2;left:65%;top:50%;animation:drift 9s ease-in-out infinite;pointer-events:none}.hero-firefly:nth-of-type(3){left:80%;top:72%;animation-delay:-4s}.hero-firefly:nth-of-type(4){left:47%;top:25%;animation-delay:-6s}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:32px 0 18px}.section-heading h2{font-size:22px;letter-spacing:-.6px}.section-heading p{font-size:13px;color:var(--muted);margin-top:5px}.text-link{color:var(--gold);display:flex;align-items:center;gap:6px;font-size:13px}.text-link .icon{width:16px}.learning-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}.phase-card{position:relative;overflow:hidden;border-radius:14px;background:linear-gradient(125deg,#26372d,#1c2b24);border:1px solid var(--line);transition:transform .2s,border .2s;display:flex;flex-direction:column;min-width:0}.phase-card:hover{transform:translateY(-4px);border-color:#b5ac6b88}.phase-image{position:relative;aspect-ratio:1.7;overflow:hidden;background:#304334}.phase-image>img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.phase-card:hover img{transform:scale(1.04)}.phase-image:after{position:absolute;content:"";inset:0;background:linear-gradient(0deg,#17271e44,transparent)}.phase-number{position:absolute;z-index:1;left:10px;top:9px;font-size:10px;letter-spacing:1px;color:#fff7da;padding:4px 7px;background:#0c1c19ba;border-radius:5px;border:1px solid #dfd5b430}.phase-medal{position:absolute;bottom:8px;right:8px;z-index:2;width:35px;height:35px;object-fit:contain;filter:drop-shadow(0 2px 3px #0008)}.phase-body{padding:14px 15px 16px}.phase-body h3{font-size:16px;margin-bottom:5px}.phase-body p{font-size:12px;color:var(--muted)}.phase-body .phase-go{display:flex;justify-content:space-between;align-items:center;margin-top:13px;color:var(--gold);font-size:11px}.phase-go .icon{width:17px}.exam-card .phase-image{display:grid;place-items:center;background:radial-gradient(circle,#526042,#213429)}.exam-card .phase-image img{object-fit:contain;width:77px;height:88px;filter:drop-shadow(0 5px 8px #0006)}.video-card .phase-image{display:grid;place-items:center;background:repeating-linear-gradient(135deg,#31433722 0 1px,transparent 1px 9px),#233b32;color:var(--mint)}.video-card .phase-image .icon{width:40px;height:40px}.mini-banner{display:flex;align-items:center;gap:17px;padding:19px 24px;background:linear-gradient(100deg,#2c3b2b88,#1c2c25);border:1px solid var(--line);border-radius:14px;margin-top:24px}.mini-banner>.icon{width:30px;height:30px;color:var(--gold)}.mini-banner p{font-size:13px;color:var(--muted)}.mini-banner h3{font-size:15px;margin-bottom:4px}.mini-banner .button{margin-left:auto;flex-shrink:0}.home-bottom{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:26px}.home-bottom .mini-banner{margin:0}.home-bottom .button{padding:8px 13px;min-height:38px;font-size:12px}.site-footer{max-width:1280px;padding:24px 42px;margin:auto;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:18px;align-items:center;color:#829284;font-size:11px;line-height:1.7}.footer-links{display:flex;gap:22px}.footer-links a:hover{color:var(--gold)}#mobile-nav{display:none}.page-heading{margin:9px 0 28px}.page-heading h1{font:400 38px/1.2 Georgia,serif;color:#f4e8cb;margin:11px 0 9px;letter-spacing:-.8px}.page-heading p{font-size:15px;color:var(--muted);max-width:680px}.breadcrumb{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;margin-bottom:20px}.breadcrumb .icon{width:13px;height:13px}.category{border:1px solid var(--line);border-radius:15px;margin-bottom:17px;background:#1d2c2399;overflow:hidden}.category summary{list-style:none;cursor:pointer;display:flex;align-items:center;padding:23px;gap:16px}.category summary::-webkit-details-marker{display:none}.category-badge{display:grid;place-items:center;height:45px;width:45px;border-radius:10px;background:#3a4b32;color:var(--gold);font:22px Georgia;border:1px solid #b49b5b33}.category-badge .icon{width:24px}.category-title{flex:1}.category-title h2{font-size:18px}.category-title small{display:block;margin-top:5px}.category summary>.icon{transition:transform .2s;color:var(--gold);width:17px}.category[open] summary>.icon{transform:rotate(180deg)}.category .learning-grid{padding:0 23px 23px}.phase-card.locked{border-color:#68764d22;background:#14221d;cursor:default}.phase-card.locked:hover{transform:none}.phase-card.locked .phase-image{display:grid;place-items:center;background:linear-gradient(150deg,#27352a,#1b2a21);aspect-ratio:1.5}.phase-card.locked .phase-image .icon{width:31px;height:31px;color:#768372}.phase-card.locked .phase-body{text-align:center;padding:12px 10px}.phase-card.locked h3{font-size:13px;color:#96a48f;font-weight:400;line-height:1.5}.phase-card.locked p{font-size:11px}.category-count{font-size:12px;color:var(--muted);margin-right:10px}.panel{background:linear-gradient(140deg,#22332a,#192923);border:1px solid var(--line);border-radius:var(--radius);padding:26px}.panel h2{font-size:20px;margin-bottom:12px}.panel p+p{margin-top:12px}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.content-prose{max-width:800px;margin:0 auto}.content-prose p{color:#bdcbbb;font-size:16px;margin-bottom:18px}.content-prose h2{font-size:22px;margin:30px 0 12px;color:#f3e7c9}.content-prose ul,.instruction-list{padding-left:22px;line-height:1.8;color:#bdcbbb}.content-prose a{color:var(--gold);text-decoration:underline}.content-prose details{padding:16px 0;border-bottom:1px solid var(--line)}.content-prose summary{cursor:pointer;color:var(--gold);font-weight:700}.content-prose details p{margin-top:15px}.empty-state{padding:45px 24px;text-align:center;color:var(--muted)}.empty-state>.icon{width:45px;height:45px;color:var(--gold);margin-bottom:15px}.empty-state h2{margin-bottom:10px;color:#eadcb8}.empty-state .button{margin-top:24px}.form-field{display:block;margin-bottom:20px}.form-field span,.form-label{display:block;font-size:14px;font-weight:700;color:#c4d1be;margin-bottom:9px}input,textarea,select{width:100%;background:#101f19;color:var(--ink);border:1px solid #9caa7c55;border-radius:9px;padding:12px 14px;line-height:1.5}textarea{resize:vertical;min-height:145px}.form-field small{display:block;margin-top:7px;line-height:1.5}.contact-note{font-size:13px!important;color:var(--muted)!important}.honeypot{position:absolute!important;left:-10000px!important;opacity:0!important}.filter-bar{display:flex;gap:12px;align-items:center;margin:20px 0;flex-wrap:wrap}.filter-bar select{width:auto;min-width:160px;font-size:14px}.pill-tabs{display:flex;border:1px solid var(--line);padding:4px;border-radius:10px;gap:3px;background:#14231c}.pill-tabs button{border-radius:7px;background:none;color:var(--muted);padding:9px 16px;font-size:13px}.pill-tabs button.active{background:#3c5137;color:#efe1b8}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:#1b2b23}table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}th{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);padding:15px 20px;border-bottom:1px solid var(--line)}td{padding:16px 20px;border-bottom:1px solid #bfc88b10}tr:last-child td{border-bottom:0}tr.current{background:#d5b96b12;color:#f2d88f}.rank-position{font-family:Georgia;font-size:20px;color:var(--gold)}.local-note{font-size:12px;color:var(--muted);margin:16px 0;display:flex;align-items:center;gap:7px}.local-note .icon{width:15px}.medal-frame{padding:20px;background:repeating-linear-gradient(5deg,#3c271d 0,#503729 3px,#432b20 7px,#624631 9px,#3b291e 12px);border:2px solid #7d603e;box-shadow:inset 0 0 0 5px #35261b,inset 0 0 0 7px #b39756,0 8px 18px #0004;border-radius:7px;margin:20px 0 30px}.medal-felt{background:radial-gradient(ellipse,#283f38,#162d27);border:2px solid #b59a61;padding:24px;box-shadow:inset 0 0 20px #0009;display:grid;grid-template-columns:repeat(15,1fr);gap:10px;min-height:115px}.medal-slot{aspect-ratio:1;min-width:0;display:grid;place-items:center;border-radius:50%;background:transparent;padding:0}.medal-slot img{max-height:48px;object-fit:contain;width:100%}.silhouette{filter:brightness(0) drop-shadow(0 0 1px #99aa9d)!important;opacity:.72}.medal-silver{filter:grayscale(1) brightness(1.17)}.medal-bronze{filter:sepia(1) saturate(2) hue-rotate(335deg) brightness(.8)}.award-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.award-card{text-align:center;padding:24px 20px;background:radial-gradient(ellipse at 50% 15%,#3b51343d,transparent 70%),#1b2d25;border:1px solid var(--line);border-radius:14px;position:relative}.award-card.earned{border-color:#c0ad6d55;background-color:#25382a}.award-card img{width:150px;height:150px;object-fit:contain;margin:0 auto 15px}.award-card h3{font-size:16px;margin-bottom:9px}.award-card p{font-size:13px;color:var(--muted);line-height:1.55}.award-card small{display:block;font-size:11px;margin-top:13px;color:var(--gold)}.award-card.final-trophy{grid-column:span 2;background:radial-gradient(ellipse at center top,#a28a3b22,transparent 80%),#1c2d24}.final-trophy img{height:205px;width:205px}.collection-progress{display:flex;gap:14px;align-items:center;margin:20px 0}.progress-track{height:5px;border-radius:6px;background:#30432f;overflow:hidden;flex:1}.progress-track>span{display:block;height:100%;background:linear-gradient(90deg,#649d81,#dfc77f);border-radius:6px}.collection-progress small{white-space:nowrap}.family-art{width:100%;aspect-ratio:16/8;object-fit:cover;border-radius:12px;image-rendering:pixelated;border:1px solid #8f9a6b44}.coming-ribbon{padding:8px 15px;border-radius:30px;background:#0d211de8;border:1px solid #cab06c66;display:inline-flex;gap:8px;font-size:12px;color:var(--gold);align-items:center}.world-preview{position:relative;margin-bottom:26px}.world-preview .coming-ribbon{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);white-space:nowrap}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:17px 0;border-bottom:1px solid var(--line)}.settings-row:last-child{border:0}.settings-row h3{font-size:15px;margin-bottom:4px}.settings-row p{font-size:13px;color:var(--muted)}.streak-card{display:flex;align-items:center;gap:16px}.streak-card>.icon{width:35px;height:35px;color:#dfad64}.streak-number{font:38px Georgia;color:var(--gold)}.coin-balance{font:42px Georgia;color:var(--gold);margin:20px 0 7px}.profile-list{display:grid;gap:10px;margin:20px 0}.profile-option{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:10px;background:#263c2d;padding:13px;text-align:left}.profile-option.selected{border-color:var(--gold)}.profile-option .avatar{height:40px;width:40px}.profile-option .profile-info{flex:1}.profile-info small{display:block;margin-top:4px}.dialog-divider{border:0;border-top:1px solid var(--line);margin:22px 0}dialog{background:linear-gradient(135deg,#24392d,#16271f);border:1px solid #b4a97877;border-radius:20px;color:var(--ink);box-shadow:0 32px 100px #0009;padding:30px;max-width:530px;width:calc(100% - 32px);max-height:88dvh;overflow-y:auto}dialog::backdrop{background:#07110de0;backdrop-filter:blur(7px)}.dialog-close{position:absolute;right:15px;top:15px;background:transparent;border:0;color:var(--muted);min-width:36px;min-height:36px;display:grid;place-items:center}.dialog-title{font:28px/1.2 Georgia;color:#f3e2b8;margin:3px 35px 14px 0}.dialog-body p{font-size:14px;color:#bdcbbb;line-height:1.7}.dialog-body .button{margin-top:19px}.dialog-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:22px}.dialog-actions .button{margin:0}.dialog-award{text-align:center}.dialog-award img{width:200px;height:200px;object-fit:contain;margin:10px auto 12px;filter:drop-shadow(0 0 20px #b9a86733);animation:awardIn .7s cubic-bezier(.2,.8,.3,1)}.dialog-award .dialog-title{margin-right:0}.dialog-award .eyebrow{justify-content:center}.dialog-award .eyebrow:before{display:none}.dialog-award strong{color:var(--gold)}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);padding:14px 23px;background:#e3d5ac;color:#213326;font-size:14px;border-radius:10px;box-shadow:0 8px 25px #0006;max-width:calc(100% - 32px);width:max-content;z-index:1000;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.visible{opacity:1;transform:translate(-50%,0)}#celebration{position:fixed;inset:0;pointer-events:none;z-index:999;overflow:hidden}.confetti{position:absolute;top:-20px;width:7px;height:13px;background:var(--gold);animation:confettiFall 2.5s linear forwards}.loading-shell{padding:60px 24px;text-align:center;line-height:2}.loading-shell nav{display:flex;justify-content:center;gap:20px;flex-wrap:wrap}.loading-shell h1{font:38px Georgia;margin:20px}.loading-shell #boot-status{margin-top:25px;color:var(--gold)}
/* The game uses the available viewport instead of fixed card heights. */
body.playing main{max-width:1040px;padding-top:19px;padding-bottom:24px}body.playing .site-footer{padding-top:12px;padding-bottom:12px}body.playing .site-header{height:66px}.game-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.game-heading-left{display:flex;align-items:center;gap:13px}.game-heading-left .icon-button{background:transparent}.game-heading-left h1{font:24px Georgia;color:#f2e5c6}.game-heading-left p{font-size:11px;letter-spacing:1px;color:var(--muted);text-transform:uppercase;margin-top:4px}.game-head-actions{display:flex;gap:7px}.game-head-actions .icon-button{min-width:36px;min-height:36px;border-radius:8px}.game-head-actions .icon{height:17px;width:17px}.game-surface{background:radial-gradient(ellipse at top,#344a3422,transparent 70%),#1c2c23;border:1px solid #b7aa7150;border-radius:17px;padding:20px 25px 16px;box-shadow:0 15px 40px #0003;position:relative}.game-info{min-height:63px;display:flex;align-items:center;justify-content:center;text-align:center;margin-bottom:12px;padding:8px 13px;color:#b8c7b5;font-size:13px;line-height:1.6;border-bottom:1px solid var(--line);position:relative}.game-info.ready{display:block}.game-info.ready p{font-size:13px;line-height:1.55}.game-info.ready .intro-links{display:flex;justify-content:center;gap:19px;margin-top:7px;color:var(--gold);font-size:11px}.game-info.error{color:#ffb5a4}.game-info.reveal{color:#edda9f}.game-info strong{color:var(--ink)}.game-info .button{padding:5px 10px;min-height:30px;font-size:12px;margin-left:10px}.question-area{height:94px;display:flex;align-items:center;justify-content:center;gap:12px;position:relative;margin-bottom:16px}.question-word{font:400 43px/1.1 Georgia;color:#f4e6bd;letter-spacing:-.6px}.question-counter{position:absolute;right:0;top:4px;font-size:11px;color:var(--muted)}.question-audio{background:none;color:var(--gold);padding:10px;border:1px solid #b9aa6655;border-radius:50%;height:39px;width:39px;display:grid;place-items:center}.question-audio .icon{width:18px;height:18px}.start-gem{position:relative;isolation:isolate;overflow:hidden;min-width:220px;padding:17px 35px;background:linear-gradient(155deg,#86bea0 0%,#468f71 27%,#1b674d 49%,#6bbd92 50%,#3f8b65 80%,#255a42 100%);border:2px solid #b5c993;clip-path:polygon(9% 0,91% 0,100% 30%,100% 70%,91% 100%,9% 100%,0 70%,0 30%);font:bold 23px Georgia;color:#fff1c7;text-shadow:0 2px 3px #0a3a26;box-shadow:inset 0 0 0 4px #07482b66}.start-gem:after{content:"";position:absolute;inset:-100% 0;width:30%;transform:rotate(25deg);background:linear-gradient(90deg,transparent,#fff8,transparent);animation:shine 4s ease-in-out infinite;z-index:-1}.answers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:700px;margin:auto}.answer{border-radius:12px;padding:5px;background:#101e17;border:1px solid #bbbf8f3a;position:relative;overflow:hidden;transition:transform .12s,border-color .15s,box-shadow .15s;aspect-ratio:1.5;display:grid;place-items:center}.answer img{width:100%;height:100%;border-radius:7px;object-fit:cover;position:absolute;inset:0}.answer img.color-answer{object-fit:cover}.answer .answer-number{position:absolute;left:8px;bottom:8px;z-index:1;font-size:10px;color:#e3dec6;line-height:1;background:#102019aa;border:1px solid #e0ddc133;padding:4px 5px;border-radius:4px}.answer .answer-label{display:none}.answer.text-mode{background:radial-gradient(ellipse at top,#3c563c,#243d2b);font-size:23px;font-family:Georgia;color:#e9e5c9}.answer.text-mode img{display:none}.answer.text-mode .answer-label{display:block;padding:12px}.answer:hover:not(:disabled){transform:translateY(-2px);border-color:#d7c27b;box-shadow:0 4px 15px #0004}.answer.correct{border:3px solid #8cdda0;box-shadow:0 0 18px #83d67e44;animation:correctPulse .6s ease-out}.answer.wrong{border:3px solid #f3957a;animation:shake .35s}.answer.hint{border:3px solid #e9c46a;box-shadow:0 0 20px #e8b94b44}.answer.obscured{opacity:.15;filter:brightness(.3) grayscale(1);pointer-events:none}.answer:disabled{opacity:1}.answer:disabled.obscured{opacity:.15}.answer-before{pointer-events:none;filter:brightness(.55)}.game-tools{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:17px}.tool-button{display:inline-flex;align-items:center;gap:7px;background:transparent;color:#b7c5ae;border:1px solid var(--line);padding:8px 12px;border-radius:8px;min-height:37px;font-size:12px}.tool-button .icon{width:17px;height:17px}.tool-button.active{color:var(--gold);border-color:#bbac6b88;background:#53603a22}.cube-icon{display:inline-grid;grid-template-columns:repeat(3,4px);grid-template-rows:repeat(3,4px);gap:1px;transform:rotate(-10deg)}.cube-icon i{background:#c4a552;border-radius:1px}.cube-icon.scrambled i:nth-child(2n){background:#6dab8a}.cube-icon.scrambled i:nth-child(3n){background:#ca8065}.cube-icon.scrambled i:nth-child(5){background:#98b8d2}.game-stats{display:flex;align-items:center;justify-content:center;gap:37px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.game-stat{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.game-stat .icon{width:15px;height:15px}.game-stat b{color:#ede6ca;font-size:14px;font-weight:400;font-variant-numeric:tabular-nums}.game-stat.correct-stat .icon{color:#97c790}.game-stat.error-stat .icon{color:#dc967c}.game-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:13px;gap:10px;font-size:12px;color:var(--muted)}.game-bottom .text-link{font-size:12px}.keyboard-hint{display:flex;align-items:center;gap:7px;font-size:11px}.key{border:1px solid #b8ba8b33;padding:2px 5px;border-radius:4px;color:#b5c4a9;font:10px monospace}.game-next{display:none}.game-next.visible{display:flex;position:absolute;bottom:-18px;left:50%;transform:translateX(-50%);z-index:5;min-height:36px;padding:8px 16px;background:#c9b777;color:#1d3020;border-radius:20px;font-size:12px;font-weight:700;border:1px solid #eee0b0;box-shadow:0 4px 12px #0005}.result-strip{display:flex;justify-content:center;gap:18px;padding:15px;margin:15px 0;border:1px solid var(--line);border-radius:10px;color:var(--gold)}.exam-timer{padding:4px 9px;border:1px solid #b3a76c55;border-radius:5px;color:var(--gold);font-size:12px;font-variant-numeric:tabular-nums}.exam-timer.urgent{color:var(--danger);border-color:var(--danger);animation:blink 1s infinite}.duel-track{margin-bottom:14px;padding:12px 15px;background:#11231a;border:1px solid var(--line);border-radius:10px}.duel-track-head{display:flex;justify-content:space-between;font-size:12px;margin-bottom:8px;gap:15px}.duel-track-head b{color:var(--gold)}.duel-bars{display:flex;gap:3px;height:8px;border-radius:8px;overflow:hidden;background:#2c3d2b}.duel-bars>span{min-width:3px;transition:width .3s}.duel-player{background:linear-gradient(90deg,#629d77,#bad087)}.duel-ai{background:linear-gradient(90deg,#bf8761,#dca469)}.score-pop{position:fixed;font-size:30px;font-weight:bold;color:#efd786;pointer-events:none;text-shadow:0 2px 8px #152c16;z-index:50;animation:scorePop .9s ease-out forwards}.duel-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:20px 0}.duel-choice{padding:21px 13px;background:#1c3024;border:1px solid var(--line);border-radius:12px;text-align:center}.duel-choice.selected{border-color:var(--gold);background:#34462d}.duel-choice>.icon{width:32px;height:32px;color:var(--gold);margin-bottom:12px}.duel-choice strong{display:block;font-size:15px;margin-bottom:7px}.duel-choice small{line-height:1.5;font-size:12px}.duel-poster{border:1px solid #c1af6e55;border-radius:18px;padding:36px;background:radial-gradient(ellipse at top right,#a38f4433,transparent 75%),#21352a}.duel-poster h2{font:34px Georgia;color:#f1e1b6;margin-bottom:12px}.duel-poster p{color:var(--muted);font-size:14px}.medal-rules{display:flex;gap:25px;justify-content:center;margin:18px 0;font-size:12px;color:var(--muted)}.medal-rules span{display:flex;align-items:center;gap:7px}.medal-dot{width:10px;height:10px;border-radius:50%;background:#c69764}.medal-dot.silver{background:#b8c7cb}.medal-dot.gold{background:#e6c576}.vocabulary-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.vocabulary-list div{padding:10px 13px;border:1px solid var(--line);border-radius:8px;font-size:14px;display:flex;justify-content:space-between;gap:12px}.vocabulary-list span{color:var(--muted)}
@keyframes drift{0%,100%{transform:translate(0,0);opacity:.3}50%{transform:translate(32px,-32px);opacity:.9}}@keyframes shine{0%,70%,100%{left:-50%}85%{left:130%}}@keyframes shake{0%,100%{transform:translateX(0)}25%,75%{transform:translateX(-5px)}50%{transform:translateX(5px)}}@keyframes correctPulse{50%{box-shadow:0 0 30px #a0ff8e77}}@keyframes awardIn{from{transform:scale(.5) rotate(-12deg);opacity:0}to{transform:scale(1);opacity:1}}@keyframes confettiFall{to{transform:translate(var(--dx),105vh) rotate(600deg);opacity:0}}@keyframes scorePop{to{transform:translateY(-80px) scale(1.3);opacity:0}}@keyframes blink{50%{opacity:.5}}
@media(min-width:1500px){main{padding-top:42px}.hero{height:480px}.hero-copy{padding-top:55px}.hero h1{font-size:61px}.hero-actions{margin-top:32px}.phase-image{aspect-ratio:1.6}}
@media(max-width:1100px){.site-header{gap:25px;padding:0 26px}.desktop-nav{gap:20px}.header-right{gap:10px}.brand-desc{display:none}.profile-button{padding-left:12px}.profile-name{display:none}main{padding:28px 26px 45px}.hero-copy{padding:40px 35px;width:68%}.hero{height:407px}.hero h1{font-size:48px}.hero p{max-width:340px;font-size:14px}.hero-compass{display:none}.learning-grid{gap:12px}.phase-body{padding:13px 12px}.phase-body p{font-size:11px}.home-bottom{gap:15px}.mini-banner{padding:17px}.award-grid{grid-template-columns:repeat(3,1fr)}.site-footer{padding-left:26px;padding-right:26px}}
@media(max-width:760px){.site-header{height:70px;padding:0 20px;gap:20px}.desktop-nav{display:none}.header-right{margin-left:auto;gap:9px}.brand-word{font-size:25px}.brand-symbol{width:34px;height:34px;border-radius:7px}.brand-symbol span{font-size:23px}.brand{gap:9px}.language-pair{gap:3px}.flag{width:25px;height:17px}.flag-button{padding:5px 2px}.profile-button{padding-left:10px}.avatar{width:31px;height:31px;font-size:13px}.profile-button>.icon{display:none}.header-fullscreen{display:none!important}main{padding:22px 20px 100px}.topline{margin-bottom:18px}.welcome{font-size:12px}.profile-stats{gap:13px;font-size:12px}.profile-stats span:first-child{display:none}.profile-stats .icon{width:15px;height:15px}.hero{height:460px;border-radius:17px}.hero-art{object-position:63% 50%;opacity:.85}.hero:after{background:linear-gradient(0deg,#14221dfc,#14221de6 45%,#14221d44 100%)}.hero-copy{padding:25px;width:100%;justify-content:flex-end}.hero-copy .eyebrow{font-size:10px;letter-spacing:1.5px}.hero h1{font-size:41px;letter-spacing:-1.4px;margin:15px 0 12px}.hero p{font-size:13px;max-width:300px}.hero-actions{margin-top:21px;gap:9px}.hero-actions .button{font-size:13px;padding:12px 15px}.hero-actions .primary{min-width:147px}.hero-note{font-size:10px!important;margin-top:13px}.section-heading{margin-top:26px}.section-heading h2{font-size:20px}.section-heading p{font-size:12px}.text-link{font-size:12px}.learning-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.phase-image{aspect-ratio:1.05}.phase-body{padding:12px 10px}.phase-body h3{font-size:14px;margin-bottom:4px}.phase-body p{font-size:10px;line-height:1.4}.phase-go{font-size:10px!important;margin-top:9px!important}.phase-number{left:6px;top:6px;font-size:8px;letter-spacing:.3px;padding:4px}.home-grid .exam-card,.home-grid .video-card{display:none}.mini-banner{padding:18px 16px;gap:12px;flex-wrap:wrap}.mini-banner>.icon{height:26px;width:26px}.mini-banner>div{flex:1}.mini-banner h3{font-size:14px}.mini-banner p{font-size:12px;line-height:1.5}.mini-banner .button{font-size:12px;padding:9px 12px;min-height:38px}.home-bottom{grid-template-columns:1fr;gap:12px;margin-top:17px}.home-bottom .mini-banner>div{flex:1}.home-bottom .mini-banner>.icon{display:none}.site-footer{margin:0 20px;padding:20px 0 95px;display:block;text-align:center;font-size:10px}.footer-links{justify-content:center;flex-wrap:wrap;gap:18px;margin-bottom:12px}#mobile-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;padding:8px 8px max(8px,env(safe-area-inset-bottom));border-top:1px solid #b6b38433;background:#13231cf2;backdrop-filter:blur(18px);z-index:30;box-shadow:0 -4px 20px #0003}#mobile-nav a,#mobile-nav button{display:flex;align-items:center;flex-direction:column;gap:5px;font-size:10px;color:#8d9e8c;background:none;min-width:50px;padding:3px}#mobile-nav .icon{width:21px;height:21px}#mobile-nav .active{color:var(--gold)}#toast{bottom:85px}.page-heading h1{font-size:32px}.page-heading p{font-size:14px}.page-heading{margin-bottom:24px}.category summary{padding:18px 15px;gap:11px}.category-badge{width:36px;height:39px;font-size:18px}.category-title h2{font-size:16px}.category-title small{font-size:11px}.category-count{font-size:10px;max-width:45px;line-height:1.5;text-align:right}.category .learning-grid{padding:0 12px 14px}.category .exam-card{grid-column:span 3;flex-direction:row}.category .exam-card .phase-image{width:32%;aspect-ratio:auto}.category .exam-card .phase-image img{height:76px;width:66px}.category .exam-card .phase-body{flex:1}.category .exam-card .phase-number{display:none}.phase-card.locked .phase-body{padding:9px 5px}.phase-card.locked h3{font-size:11px;line-height:1.4}.phase-card.locked p{font-size:10px}.phase-card.locked .phase-image .icon{width:26px}.two-columns{grid-template-columns:1fr;gap:18px}.panel{padding:21px}.award-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.award-card{padding:18px 12px}.award-card img{width:120px;height:120px;margin-bottom:11px}.award-card h3{font-size:14px}.award-card p{font-size:12px}.award-card small{font-size:10px}.medal-frame{padding:12px;margin-bottom:22px}.medal-felt{padding:13px;gap:7px;grid-template-columns:repeat(10,1fr);min-height:87px}.medal-felt img{height:30px}.filter-bar{gap:9px}.filter-bar select{min-width:0;max-width:100%;font-size:13px;flex:1}.pill-tabs{width:100%}.pill-tabs button{flex:1;padding:8px 11px;font-size:12px}th{font-size:10px;padding:13px 11px}td{font-size:12px;padding:14px 11px}.rank-position{font-size:18px}dialog{padding:25px 21px;border-radius:17px}.dialog-title{font-size:26px}.dialog-body p{font-size:14px}.dialog-award img{width:180px;height:180px}.duel-poster{padding:26px 21px}.duel-poster h2{font-size:29px}.duel-choice{padding:17px 8px}.duel-choice small{font-size:11px}.duel-choice strong{font-size:14px}.duel-choice>.icon{width:27px;height:27px}.game-bottom .keyboard-hint{display:none}.medal-rules{gap:14px;font-size:10px}.world-preview .coming-ribbon{font-size:10px;bottom:10px}.family-art{aspect-ratio:1.3}.content-prose p{font-size:15px}}
@media(max-width:760px){body.playing .site-header{height:56px}body.playing .brand-symbol{height:28px;width:28px}body.playing .brand-symbol span{font-size:19px}body.playing .brand-word{font-size:23px}body.playing .site-footer,body.playing #mobile-nav{display:none}body.playing main{padding:12px 12px 15px;min-height:calc(100dvh - 56px)}.game-head{margin-bottom:11px}.game-heading-left{gap:9px}.game-heading-left h1{font-size:22px}.game-heading-left p{font-size:10px}.game-heading-left .icon-button{min-width:32px;min-height:32px}.game-head-actions{gap:5px}.game-head-actions .icon-button{min-height:32px;min-width:32px}.game-head-actions .icon{height:16px;width:16px}.game-surface{padding:13px 12px 12px;border-radius:14px}.game-info{min-height:72px;font-size:12px;line-height:1.5;margin-bottom:9px;padding:5px 3px 10px}.game-info.ready p{font-size:12px}.game-info.ready .intro-links{font-size:10px;gap:15px;margin-top:7px}.question-area{height:87px;margin-bottom:13px}.question-word{font-size:37px}.question-counter{font-size:10px;right:2px;top:1px}.question-audio{height:33px;width:33px}.question-audio .icon{width:16px;height:16px}.start-gem{min-width:200px;font-size:23px;padding:16px 25px}.answers{gap:9px}.answer{aspect-ratio:1;min-width:0;border-radius:10px}.answer img{border-radius:8px}.answer.text-mode{font-size:19px}.answer.text-mode .answer-label{padding:8px;word-break:break-word}.game-tools{gap:7px;margin-top:15px}.tool-button{padding:8px 9px;font-size:11px;gap:6px;min-height:37px}.tool-button .icon{width:15px;height:15px}.game-stats{justify-content:space-between;gap:8px;margin-top:13px;padding:13px 3px 0}.game-stat{font-size:10px;gap:4px}.game-stat .icon{width:13px;height:13px}.game-stat b{font-size:13px}.game-bottom{font-size:11px;padding:0 3px;margin-top:12px}.game-bottom .text-link{font-size:11px}.game-info .button{font-size:10px;padding:4px 7px;margin-left:5px}.game-next.visible{font-size:11px;padding:7px 13px;min-height:32px;bottom:-15px}.duel-track{padding:10px;margin-bottom:10px}.duel-track-head{font-size:11px}.score-pop{font-size:25px}}
@media(max-width:380px){.site-header{padding-left:14px;padding-right:14px}.hero-copy{padding:21px}.hero h1{font-size:37px}.hero-actions .button{padding:11px;font-size:12px}.hero-actions .primary{min-width:135px}main{padding-left:15px;padding-right:15px}.question-area{height:73px}.game-info{min-height:75px}.game-head-actions .icon-button{min-width:29px;min-height:30px}.game-heading-left h1{font-size:19px}.game-tools{gap:5px}.tool-button{padding:8px 7px}.game-stat{font-size:9px}.game-stat b{font-size:12px}.game-stat .icon{width:12px;height:12px}}
@media(max-height:750px) and (max-width:760px){body.playing main{padding-top:8px}.game-head{margin-bottom:8px}.game-info{min-height:62px}.game-info.ready p{font-size:11px}.game-info.ready .intro-links{margin-top:4px}.question-area{height:69px;margin-bottom:10px}.answers{gap:8px;max-width:330px}.game-tools{margin-top:12px}.game-stats{margin-top:10px;padding-top:10px}.game-bottom{margin-top:9px}}
@media(max-height:550px) and (min-width:650px){body.playing .site-header{height:48px}body.playing main{padding-top:9px;max-width:1000px}.game-head{margin-bottom:8px}.game-surface{padding:8px 15px 10px}.game-info{min-height:39px;margin-bottom:3px;padding:4px}.game-info.ready p{font-size:11px}.game-info.ready .intro-links{display:none}.question-area{height:51px;margin-bottom:7px}.question-word{font-size:29px}.answers{grid-template-columns:repeat(6,1fr);max-width:100%;gap:9px}.answer{aspect-ratio:1}.answer.text-mode{font-size:18px}.game-tools{margin-top:10px}.game-stats{margin-top:9px;padding-top:9px}.game-bottom{margin-top:7px}body.playing .site-footer{display:none}}
.phase-image>img.phase-medal{width:35px;height:35px;object-fit:contain;position:absolute}
.collection-nav{display:flex;gap:24px;border-bottom:1px solid var(--line);margin:0 0 22px}.collection-nav a{display:flex;align-items:center;gap:7px;padding:0 3px 13px;color:var(--muted);font-size:14px;border-bottom:2px solid transparent}.collection-nav a.active{color:var(--gold);border-color:var(--gold)}.collection-nav .icon{width:18px;height:18px}
.answer img{object-fit:contain;background:#17221b}
@media(min-width:761px) and (min-height:551px) and (max-height:850px){body.playing main{padding-top:12px;padding-bottom:12px}.game-head{margin-bottom:10px}.game-surface{padding:12px 20px}.game-info{min-height:50px;margin-bottom:7px;padding:5px 9px}.question-area{height:68px;margin-bottom:10px}.question-word{font-size:37px}.answers{max-width:580px;gap:10px}.game-tools{margin-top:12px}.game-stats{margin-top:11px;padding-top:10px}.game-bottom{margin-top:10px}body.playing .site-footer{display:none}}
@media(min-width:761px) and (min-height:651px){.answers{max-width:min(600px,calc((100dvh - 450px)*1.5))}.answer{aspect-ratio:1}}
@media(max-height:650px) and (min-width:650px){body.playing .site-header{height:48px}body.playing main{padding-top:9px}.game-head{margin-bottom:8px}.game-surface{padding:8px 15px 10px}.game-info{min-height:39px;margin-bottom:3px;padding:4px}.game-info.ready p{font-size:11px}.game-info.ready .intro-links{display:none}.question-area{height:51px;margin-bottom:7px}.question-word{font-size:29px}.answers{grid-template-columns:repeat(6,1fr);max-width:100%;gap:9px}.answer{aspect-ratio:1}.answer.text-mode{font-size:18px}.game-tools{margin-top:10px}.game-stats{margin-top:9px;padding-top:9px}.game-bottom{margin-top:7px}body.playing .site-footer{display:none}}
@media(max-height:500px) and (min-width:650px){body.playing .site-header{height:36px}body.playing .desktop-nav,body.playing .header-fullscreen,body.playing .brand-desc{display:none}body.playing .brand-symbol{height:25px;width:25px}body.playing .brand-symbol span{font-size:19px}body.playing .brand-word{font-size:22px}body.playing .header-right{margin-left:auto}body.playing .profile-button .avatar{width:25px;height:25px}body.playing main{padding:6px 18px 8px;min-height:calc(100dvh - 36px)}.game-head{margin-bottom:5px;height:34px}.game-heading-left h1{font-size:22px}.game-heading-left p{display:none}.game-heading-left .icon-button,.game-head-actions .icon-button{min-height:29px;min-width:29px}.game-head-actions .icon{width:15px;height:15px}.game-surface{padding:6px 13px 8px}.game-info{min-height:27px;padding:3px;margin-bottom:3px;font-size:12px}.question-area{height:40px;margin-bottom:6px}.start-gem{font-size:18px;padding:9px 25px;min-width:170px}.answers{max-width:600px;gap:8px}.answer.text-mode{font-size:17px}.game-tools{margin-top:7px}.tool-button{min-height:30px;padding:5px 10px;font-size:11px}.tool-button .icon{width:15px;height:15px}.game-stats{margin-top:7px;padding-top:7px}.game-bottom{margin-top:6px;font-size:11px}.game-bottom .text-link{padding:0!important;font-size:11px}.game-bottom .icon{height:16px;width:16px}.duel-track{padding:5px 10px;margin-bottom:5px}.duel-track-head{margin-bottom:4px;font-size:11px}.duel-bars{height:5px}.game-surface:has(#duel-track) .game-info{display:none}}
@media(max-height:750px) and (max-width:760px){body.playing main{padding-bottom:4px}}
@media(max-height:650px) and (max-width:760px){body.playing .site-header{height:48px}body.playing main{padding-top:7px;min-height:calc(100dvh - 48px)}.game-head{min-height:33px;margin-bottom:7px}.game-heading-left p{display:none}.game-info{min-height:54px}.game-info.ready .intro-links{display:none}.question-area{height:55px}.start-gem{font-size:20px;padding:13px 25px}.game-tools{margin-top:10px}.game-bottom{margin-top:7px}.game-surface:has(#duel-track) .game-info{display:none}.duel-track{padding:8px 10px}}
/* Version 4: centered collections, complete framed scenes and arcade feedback. */
.learning-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:15px;--phase-width:calc(20% - 12px)}
.learning-grid>.phase-card{flex:0 0 var(--phase-width);width:var(--phase-width);max-width:var(--phase-width)}
.phase-mosaic{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:2px;padding:2px;background:#10231b}
.phase-mosaic .mosaic-cell{display:block;min-width:0;min-height:0;overflow:hidden}
.phase-mosaic .mosaic-cell img{width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .35s}
.phase-card:hover .phase-mosaic img{transform:scale(1.06)}
.phase-image:after{pointer-events:none}
.phase-image .silhouette{opacity:.8}

.medal-board-wrap{display:flex;justify-content:center;max-width:100%;width:100%;padding:0 18px}
.medal-board-wrap>.medal-frame{width:100%;min-width:0}
.medal-felt{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:10px;min-height:0}
.medal-slot{flex:0 0 calc((100% - 140px)/15);width:calc((100% - 140px)/15);align-self:flex-start}
.medal-frame.compact{width:max-content;max-width:100%;flex:0 0 auto}
.medal-frame.compact .medal-felt{flex-wrap:nowrap;width:max-content;padding:24px;gap:10px}
.medal-frame.compact .medal-slot{width:48px;height:48px;flex-basis:48px}
.medal-frame.compact .medal-slot img{height:48px;width:48px}

.hero-art{opacity:1}
.hero:after{background:linear-gradient(90deg,#10211ca8 0,#13251f88 32%,#15271e22 58%,transparent 78%),linear-gradient(0deg,#1022185c,transparent 28%)}
.hero h1{text-shadow:0 2px 14px #091c17a8}
.hero-firefly{width:4px;height:4px;background:#fff4bf;box-shadow:0 0 5px 2px #ffe39de6,0 0 19px 6px #e8c25b88,0 0 34px 9px #bdd65144;opacity:.9;will-change:transform,opacity;animation:fireflyA 17s ease-in-out infinite}
.hero-firefly:nth-of-type(1){left:58%;top:38%;animation:fireflyA 17s ease-in-out -2s infinite}
.hero-firefly:nth-of-type(2){left:82%;top:68%;animation:fireflyB 21s ease-in-out -8s infinite}
.hero-firefly:nth-of-type(3){left:43%;top:20%;animation:fireflyC 23s ease-in-out -12s infinite}
.hero-firefly:nth-of-type(4){left:71%;top:24%;animation:fireflyD 19s ease-in-out -15s infinite}
@keyframes fireflyA{0%,100%{transform:translate(0,0);opacity:.7}13%{transform:translate(19px,-24px);opacity:1}31%{transform:translate(-16px,-47px);opacity:.8}48%{transform:translate(25px,-13px);opacity:1}67%{transform:translate(54px,-31px);opacity:.6}82%{transform:translate(27px,14px);opacity:1}}
@keyframes fireflyB{0%,100%{transform:translate(0,0);opacity:1}18%{transform:translate(-31px,17px);opacity:.6}37%{transform:translate(-65px,-21px);opacity:1}55%{transform:translate(-22px,-41px);opacity:.8}71%{transform:translate(14px,-16px);opacity:1}89%{transform:translate(-11px,22px);opacity:.65}}
@keyframes fireflyC{0%,100%{transform:translate(0,0);opacity:.8}16%{transform:translate(-25px,28px);opacity:1}29%{transform:translate(10px,47px);opacity:.6}46%{transform:translate(48px,26px);opacity:1}68%{transform:translate(27px,-14px);opacity:.75}86%{transform:translate(-18px,-7px);opacity:1}}
@keyframes fireflyD{0%,100%{transform:translate(0,0);opacity:1}12%{transform:translate(29px,15px);opacity:.65}35%{transform:translate(57px,-19px);opacity:1}53%{transform:translate(18px,-44px);opacity:.7}74%{transform:translate(-20px,-18px);opacity:1}91%{transform:translate(-9px,13px);opacity:.8}}

.gem-actions{display:flex;align-items:center;justify-content:center;gap:14px;width:min(480px,100%)}
.gem-actions .start-gem{flex:1 1 0;min-width:0;width:50%;padding:17px 20px;font-size:23px;letter-spacing:.2px}
.gem-actions .start-gem:only-child{flex:0 1 240px;width:240px;max-width:100%}
.start-gem{--gem-edge:#9fe3c2;--gem-dark:#063c2f;--gem-light:#7ee3b4;--gem-main:#0b9361;border-color:var(--gem-edge);color:#fff5d1;text-shadow:0 2px 3px var(--gem-dark);background:linear-gradient(151deg,#ffffff30 0 12%,transparent 12% 40%,#ffffff28 40% 50%,transparent 50% 78%,#0004 78%),conic-gradient(from 35deg at 20% 50%,var(--gem-light),var(--gem-main) 45deg,var(--gem-dark) 110deg,var(--gem-main) 160deg,var(--gem-light) 220deg,var(--gem-main) 285deg,var(--gem-light));box-shadow:inset 0 0 0 3px #ffffff24,inset 0 0 13px 3px var(--gem-dark);transition:filter .15s,transform .15s}
.start-gem:before{content:"";position:absolute;inset:7px 10px;clip-path:polygon(9% 0,91% 0,100% 30%,100% 70%,91% 100%,9% 100%,0 70%,0 30%);border:1px solid #fff7;pointer-events:none;background:linear-gradient(165deg,#ffffff30,transparent 35%,#0002 74%);z-index:-1}
.start-gem.ruby{--gem-edge:#f0b6a0;--gem-dark:#5c1023;--gem-light:#f58c9a;--gem-main:#bb2946}
.start-gem.emerald{--gem-edge:#a3edc6;--gem-dark:#073d2b;--gem-light:#85dfad;--gem-main:#118858}
.start-gem:hover{filter:brightness(1.16);transform:translateY(-1px)}
.start-gem:active{transform:translateY(1px)}

.world-preview.world-frame{padding:20px;margin:0 0 27px;border:3px solid #917347;border-radius:7px;background:repeating-linear-gradient(4deg,#39271e 0,#63452c 4px,#493222 8px,#6b4b30 12px,#39271e 16px);box-shadow:inset 0 0 0 4px #2a2119,inset 0 0 0 6px #c3a86c,0 16px 37px #0005;position:relative}
.world-frame:before{content:"";position:absolute;inset:9px;border:1px solid #b7985b66;pointer-events:none;border-radius:2px}
.world-slides{position:relative;width:100%;aspect-ratio:3/2;background:#13271e;overflow:hidden;border:1px solid #b39656;box-shadow:0 0 0 3px #1b2118,inset 0 0 12px #0004}
.world-slide{position:absolute;inset:0;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .7s ease,visibility .7s}
.world-slide.active{opacity:1;visibility:visible;pointer-events:auto}
.world-slide img,.world-frame .family-art{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;aspect-ratio:auto;image-rendering:auto;border:0;border-radius:0}
.world-caption{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;color:#f3e4bb;font-size:15px;padding:17px 2px 0;line-height:1.5}
.world-controls{display:flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0}
.world-controls .icon-button{width:35px;min-width:35px;min-height:35px;background:#16281e;border-color:#a68c5d77}
.world-controls .icon{height:17px;width:17px}
.world-dots{display:flex;align-items:center;gap:7px}
.world-dot{height:9px;width:9px;min-height:9px;min-width:9px;padding:0;border-radius:50%;border:1px solid #c0a76988;background:#233f2b;transition:background .2s,transform .2s}
.world-dot.active,.world-dot[aria-current=true]{background:#e7cc84;border-color:#f4dfa8;transform:scale(1.15)}
.world-gallery{margin-bottom:27px}
.world-gallery>.world-controls{gap:12px;margin:-10px 0 12px}
.world-controls .world-caption{display:block;flex:1;min-width:0;padding:0;text-align:center}
.world-gallery>.world-dots{justify-content:center;margin:12px 0}
.world-gallery>.coming-ribbon{display:flex;justify-content:center;width:max-content;max-width:100%;white-space:normal;line-height:1.5;text-align:center;margin:17px auto 0}
.world-frame .coming-ribbon{position:relative;left:auto;bottom:auto;transform:none;display:flex;justify-content:center;white-space:normal;width:max-content;max-width:100%;padding:8px 17px;margin:15px auto 0;font-size:13px;line-height:1.5;text-align:center;background:#10271feb;border-color:#bba26488}
.currency-balances{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0 0 24px}
.currency-card{display:flex;align-items:center;gap:18px;padding:23px 26px;border:1px solid #c4a66277;border-radius:15px;background:radial-gradient(ellipse at 0 20%,#c5a45622,transparent 75%),linear-gradient(135deg,#30422c,#1a2e21);box-shadow:inset 0 1px #e2d3a112,0 9px 25px #0002;min-width:0}
.currency-card.points{color:#edcd7d}
.currency-card.crystals{color:#a7ede5;border-color:#70c2b866;background:radial-gradient(ellipse at 0 20%,#83dfd322,transparent 75%),linear-gradient(135deg,#24483c,#172e29)}
.currency-icon{display:grid;place-items:center;flex-shrink:0;width:61px;height:61px;border-radius:50%;background:radial-gradient(circle,#9c7b2c55,#302d1a);border:1px solid #ddbb70;box-shadow:inset 0 0 0 3px #f4d58322,0 3px 10px #0003}
.currency-card.crystals .currency-icon{background:radial-gradient(circle,#458f8755,#193b34);border-color:#98ded0;box-shadow:inset 0 0 0 3px #abf4df22,0 3px 10px #0003;border-radius:14px}
.currency-icon svg.icon{width:38px;height:38px;stroke-width:1.4;filter:drop-shadow(0 2px 4px #0004)}
.currency-amount{display:block;font:700 38px/1.1 Georgia,serif;letter-spacing:-.5px;color:inherit;font-variant-numeric:tabular-nums}
.currency-label{display:block;margin-top:5px;font-size:13px;line-height:1.5;color:#d2d8bb}
.currency-card.crystals .currency-label{color:#b9dcd2}

.answer-tooltip{display:none;position:absolute;z-index:4;bottom:12px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 14px);padding:6px 11px;border-radius:7px;border:1px solid #e3d0a178;background:#11271cf2;color:#fff1cc;box-shadow:0 3px 12px #0005;font:700 13px/1.25 "Trebuchet MS",Arial,sans-serif;pointer-events:none}
.answer.text-mode .answer-tooltip{display:none!important}
@media(hover:hover){.answer:not(.obscured):hover .answer-tooltip{display:block}}
.answer:not(.obscured):focus-visible .answer-tooltip{display:block}
.game-surface:has(.game-info.ready) .combo-strip{display:none}
.game-info:not(.ready){min-height:36px}
.combo-strip{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;max-width:600px;min-height:28px;margin:-2px auto 9px;padding:4px 10px;border:1px solid #bbad6733;border-radius:7px;background:#142b1e;font-size:12px;line-height:1.3;color:#bdccb5}
.combo-strip>span{display:inline-flex;align-items:center;gap:5px}
.combo-strip .icon{height:15px;width:15px;color:var(--gold)}
.arcade-score strong,.combo-multiplier strong,.combo-bonus strong{color:#f3d989;font-weight:700}
.arcade-score b{color:#f3d989;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.combo-multiplier{color:#a2dca6}
.combo-multiplier strong{font-size:14px}
.combo-multiplier small{font-size:10px;color:#9abf9a}
.combo-bonus{color:#f2cb72}
.combo-bonus:not(.active){color:#8fa486;font-size:10px}
.combo-bonus.active{font-weight:700;color:#ffe19a;text-shadow:0 0 10px #e5c37055}
.combo-bonus:empty{display:none}
.combo-strip.combo-burst{animation:comboGlow .55s ease-out}
.game-surface.combo-burst{animation:comboGlow .55s ease-out}
@keyframes comboGlow{0%,100%{box-shadow:none}40%{box-shadow:0 0 22px #f4ce7b60;border-color:#e9c975}}
.score-pop{width:max-content;max-width:250px;line-height:1;text-align:center;animation:scoreFloat 1.1s cubic-bezier(.14,.5,.4,1) forwards;filter:drop-shadow(0 2px 6px #102b15);transform:translateX(-50%)}
.score-pop strong{display:block;color:#fff2a8;text-shadow:0 2px 0 #956c2d,0 0 15px #ffcf5780}
.score-pop small{display:block;margin-top:5px;color:#fff2bd;font-size:12px;font-weight:700;line-height:1.3}
.score-pop.with-bonus{padding:9px 13px;border:1px solid #f2cf75aa;border-radius:12px;background:linear-gradient(135deg,#41502cef,#1b3425f2);box-shadow:0 0 24px #e2c36333}
.score-pop.with-bonus{animation-duration:1.35s}
@keyframes scoreFloat{0%{transform:translate(-50%,5px) scale(.85);opacity:.8}20%{transform:translate(-50%,-10px) scale(1.08);opacity:1}75%{opacity:1}100%{transform:translate(-50%,-104px) scale(1.15);opacity:0}}
.confetti{width:8px;height:15px;box-shadow:0 0 3px #ffffff22;animation-duration:4.3s}
.confetti.ribbon{width:6px;height:24px;border-radius:1px}
.confetti.spark{width:8px;height:8px;border-radius:50%;box-shadow:0 0 7px currentColor}
.celebration-rich .confetti{animation-timing-function:cubic-bezier(.2,.43,.75,1)}
#celebration[popover]{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;padding:0;background:transparent;overflow:hidden;pointer-events:none}
#celebration[popover]::backdrop{background:transparent;pointer-events:none}

@media(max-width:1100px){.learning-grid{gap:12px;--phase-width:calc(20% - 9.6px)}}
@media(max-width:760px){
  .learning-grid{gap:10px;--phase-width:calc((100% - 20px)/3)}
  .category .exam-card{flex-direction:column;grid-column:auto}
  .category .exam-card .phase-image{width:100%;aspect-ratio:1.05}
  .category .exam-card .phase-image img{height:68px;width:63px}
  .category .exam-card .phase-body{flex:0 1 auto}
  .category .exam-card .phase-number{display:block;font-size:7px;letter-spacing:0;padding:3px}
  .phase-body h3{font-size:14px}
  .phase-body p{font-size:11px}
  .phase-go{font-size:11px!important}
  .medal-felt{gap:7px}
  .medal-slot{flex-basis:calc((100% - 63px)/10);width:calc((100% - 63px)/10)}
  .medal-frame.compact .medal-felt{padding:14px;gap:8px}
  .medal-frame.compact .medal-slot{width:40px;height:40px;flex-basis:40px}
  .medal-frame.compact .medal-slot img{width:40px;height:40px;max-height:40px}
  .hero:after{background:linear-gradient(0deg,#0f211de0,#132820a8 44%,#11261c24 100%)}
  .gem-actions{gap:10px;width:100%}
  .gem-actions .start-gem{padding:15px 10px;font-size:22px}
  .world-preview.world-frame{padding:13px;border-width:2px}
  .world-frame:before{inset:6px}
  .world-caption{flex-direction:column;gap:10px;padding-top:14px;font-size:14px;text-align:center}
  .world-frame .coming-ribbon{font-size:12px;margin-top:13px;padding:8px 12px}
  .currency-balances{gap:10px;margin-bottom:19px}
  .currency-card{padding:17px 12px;gap:10px;flex-direction:column;text-align:center}
  .currency-icon{height:48px;width:48px}
  .currency-icon svg.icon{height:31px;width:31px}
  .currency-amount{font-size:32px}
  .currency-label{font-size:12px}
  .combo-strip{gap:9px;font-size:11px;min-height:27px;padding:4px 8px;margin-bottom:9px}
  .combo-multiplier strong{font-size:13px}
  .combo-strip .icon{height:14px;width:14px}
  .combo-bonus:not(.active){display:none}
  .score-pop.with-bonus{padding:8px 10px;max-width:205px}
  .score-pop small{font-size:11px}
}
@media(max-width:380px){.gem-actions{gap:8px}.gem-actions .start-gem{font-size:20px;padding:14px 7px}.combo-strip{gap:8px;font-size:10px}}
@media(min-width:761px) and (min-height:651px){.answers{max-width:min(600px,calc((100dvh - 465px)*1.5))}}
@media(max-height:750px) and (max-width:760px){.game-info:not(.ready){min-height:28px}.combo-strip{min-height:24px;margin-bottom:7px;padding:3px 7px}.question-area{height:64px}.gem-actions .start-gem{padding:13px 9px;font-size:21px}}
@media(max-height:650px) and (max-width:760px){.question-area{height:51px}.gem-actions .start-gem{padding:10px 8px;font-size:19px}.combo-strip{min-height:23px;font-size:10px}}
@media(max-height:500px) and (min-width:650px){
  .gem-actions{max-width:380px;gap:12px}
  .gem-actions .start-gem{font-size:18px;padding:9px 15px}
  .game-info:not(.ready){min-height:22px}
  .combo-strip{position:absolute;right:24px;top:40px;width:max-content;max-width:270px;background:transparent;border:0;padding:0;margin:0;min-height:20px;gap:9px;font-size:11px}
  .game-surface:has(#duel-track) .combo-strip{top:44px}
  .combo-strip .icon{height:13px;width:13px}
  .combo-multiplier strong{font-size:12px}
  .score-pop small{font-size:11px}
}
@media(max-height:500px) and (min-width:650px){.question-counter{left:0;right:auto;top:14px}}
@media(max-height:500px) and (min-width:650px) and (max-width:760px){.combo-strip{right:12px;max-width:180px;gap:6px;font-size:10px;justify-content:flex-end}.combo-multiplier small{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.hero-firefly{display:none}.score-pop{display:none}.confetti{display:none}}
