@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}}

/* v5: one release-specific stylesheet is referenced by every HTML page. */
:root{--igo-release:5}
.hero-copy{justify-content:space-between;padding-top:38px;padding-bottom:31px}
.hero-intro{width:100%;margin:0;flex:0 0 auto}
.hero-intro h1{margin:0 0 16px;text-shadow:0 2px 15px #0009}
.hero-intro p{margin:0;text-shadow:0 1px 8px #000c}
.hero-bottom{margin-top:auto;padding-top:32px;width:100%}
.hero-bottom .hero-actions{margin-top:0}
#global-controls{position:sticky;top:0;z-index:45}
.utility-bar{height:40px;background:#15271ff5;border-bottom:1px solid #c5b78033;backdrop-filter:blur(14px)}
.utility-inner{max-width:1280px;height:100%;padding:4px 42px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:12px}
.utility-language{display:flex;align-items:center;gap:8px;background:none;padding:0;color:#d7dfc7;font-size:12px;min-height:30px}
.utility-language .flag{width:25px;height:18px}
.utility-buttons{display:flex;align-items:center;gap:7px}
.utility-buttons .icon-button,.dialog-controls .icon-button{height:30px;min-height:30px;min-width:32px;width:32px;border-radius:7px}
.utility-buttons .icon,.dialog-controls .icon{height:17px;width:17px}
.dialog-controls{display:flex;align-items:center;gap:6px;padding:3px 40px 10px 0;position:sticky;top:-22px;background:#21362bf5;z-index:5;margin-bottom:5px}
.language-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:23px 0}
.language-option{padding:20px 8px;background:linear-gradient(145deg,#3b513b,#1c3227);border:1px solid #b6bd7d55;border-radius:13px;display:flex;align-items:center;flex-direction:column;gap:12px;min-width:0}
.language-option.selected{border-color:#dfc57d;box-shadow:inset 0 0 0 1px #dac17c44}
.language-option:hover{background:#38513b;border-color:#f2d38d}
.language-choice-flag{width:64px;height:44px;border-radius:5px;box-shadow:0 3px 10px #0005}
.language-option strong{font-size:16px;color:#f1e6c6}
.language-option>span{font-size:11px;line-height:1.4;color:#b7c8b0;text-align:center}
.phase-image{height:auto;min-height:0;aspect-ratio:3/2;flex:0 0 auto;width:100%;display:block}
.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}
.phase-mosaic .mosaic-cell{position:relative;display:block;min-height:0;min-width:0;overflow:hidden;background:#23352b}
.phase-mosaic .mosaic-cell img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;transform:none!important}
.category .exam-card{flex-direction:column;grid-column:auto}
.category .exam-card .phase-image{width:100%;aspect-ratio:3/2;display:grid;place-items:center}
.category .exam-card .phase-image img{width:auto;height:75%;max-width:75%;object-fit:contain}
.category .exam-card .phase-body{flex:1 0 auto}
.gem-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;max-width:470px;align-items:center;margin:0 auto}
.gem-actions.single{grid-template-columns:minmax(0,235px);justify-content:center}
.gem-actions .start-gem{display:grid;place-items:center;width:100%;min-width:0!important;height:83px;min-height:0;padding:0 15px!important;background:transparent url('../images/art/gem-ruby-v5.webp') center/contain no-repeat!important;border:0!important;border-radius:50%!important;clip-path:none!important;box-shadow:none!important;filter:drop-shadow(0 5px 7px #0008);font:700 25px/1 Georgia,serif!important;color:#fff4d0;text-shadow:0 2px 3px #180b0a,0 0 5px #190606}
.gem-actions .start-gem.emerald{background-image:url('../images/art/gem-emerald-v5.webp')!important}
.gem-actions .start-gem:after,.gem-actions .start-gem:before{display:none!important}
.gem-actions .start-gem:hover{filter:brightness(1.14) drop-shadow(0 5px 10px #d3c48344);transform:translateY(-1px)}
.gem-actions .start-gem:active{transform:translateY(1px);filter:brightness(1.2)}
.gem-actions .start-gem:focus-visible{outline:3px solid #fff0a8;outline-offset:2px}
.combo-strip{position:static;inset:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.25fr);align-items:center;width:100%;max-width:600px;gap:8px;min-height:40px;padding:4px 8px;margin:0 auto 10px;flex-wrap:nowrap;border:1px solid #b7ac6b44;background:#142b1e}
.combo-strip[hidden],.game-surface.ready .combo-strip{display:none!important}
.combo-strip>span{display:flex;min-width:0;justify-content:center;align-items:center;gap:6px;padding:1px 4px;line-height:1.2}
.combo-strip .arcade-score>span,.combo-strip .combo-multiplier,.combo-strip .combo-bonus{display:flex;flex-direction:column;gap:1px;text-align:center}
.combo-strip small{font-size:10px;line-height:1.3;white-space:normal;color:#9fb79d}
.combo-strip b{font-size:16px;line-height:1.15;color:#f3df9e}
.combo-strip .combo-bonus{display:flex!important;font-size:11px;min-width:0}
.combo-strip .combo-bonus.active{border-radius:5px;background:#bea14822}
.combo-strip .combo-bonus.active small,.combo-strip .combo-bonus.active b{color:#ffe293}
.combo-strip .icon{height:18px;width:18px;flex-shrink:0}
#celebration{background:transparent!important;border:0!important;margin:0!important;padding:0!important;pointer-events:none!important}
body.playing .site-header{height:48px}
body.playing main{min-height:calc(100dvh - 88px);padding-top:8px;padding-bottom:8px}
body.playing .site-footer{display:none}
.game-head{min-height:36px;margin-bottom:10px}
.game-heading-left h1{font-size:23px;line-height:1.15}
.game-heading-left p{font-size:10px;line-height:1.3}
.game-surface{padding-top:13px;padding-bottom:12px}
.game-info:not(.ready){min-height:28px;padding:4px 8px;margin-bottom:8px}
.question-area{height:72px;margin-bottom:10px}
.game-surface.ready .question-area{height:88px}
.game-tools{margin-top:12px}
.game-stats{margin-top:11px;padding-top:11px}
@media(min-width:761px) and (min-height:651px){.answers{max-width:min(600px,calc((100dvh - 490px)*1.5))}}
@media(max-width:760px){
 .utility-inner{padding:4px 18px}.hero-copy{padding-top:25px;padding-bottom:24px;justify-content:space-between}.hero-intro h1{margin:0 0 14px;font-size:39px}.hero-bottom{padding-top:25px}.hero-intro p{font-size:14px;max-width:310px}
 .hero:after{background:linear-gradient(180deg,#12241cab 0%,#12241c24 48%,#10211dd9 100%)}
 .language-options{gap:8px}.language-choice-flag{width:54px;height:38px}.language-option{padding:18px 6px;gap:10px}.language-option strong{font-size:15px}.language-option>span{font-size:10px}
 .phase-image,.category .exam-card .phase-image{aspect-ratio:3/2}.phase-body{padding-left:8px;padding-right:8px}
 .gem-actions{gap:9px}.gem-actions .start-gem{height:74px;font-size:22px!important;padding:0 8px!important}
 .combo-strip{max-width:none;gap:4px;min-height:36px;padding:3px 5px;margin-bottom:9px}.combo-strip>span{padding:1px 2px;gap:4px}.combo-strip b{font-size:14px}.combo-strip small{font-size:10px}
 .answers{max-width:min(600px,calc((100dvh - 380px)*1.5))}.game-head{min-height:35px}.game-heading-left h1{font-size:22px}
}
@media(max-width:380px){.gem-actions .start-gem{font-size:19px!important;height:66px}.hero-intro h1{font-size:35px}.hero-intro p{font-size:13px}.utility-inner{padding-left:12px;padding-right:12px}.language-option strong{font-size:14px}.language-choice-flag{width:48px;height:34px}.combo-strip small{font-size:9px}}
@media(max-height:700px) and (max-width:760px){.game-heading-left p{display:none}.game-info.ready .intro-links{display:none}.game-info.ready p{font-size:11px;line-height:1.45}.game-info{min-height:0;padding:6px 2px}.question-area{height:53px}.game-surface.ready .question-area{height:70px}.question-word{font-size:34px}.game-head{min-height:31px;margin-bottom:7px}.combo-strip{min-height:33px;margin-bottom:8px}.game-tools{margin-top:9px}.game-stats{margin-top:9px;padding-top:9px}}
@media(max-height:500px) and (min-width:650px){
 body.playing .site-header{height:34px}.utility-bar{height:34px}.utility-inner{padding-top:2px;padding-bottom:2px}.utility-buttons .icon-button{height:27px;min-height:27px;min-width:30px}.utility-buttons .icon{width:15px;height:15px}body.playing main{min-height:calc(100dvh - 68px);padding:5px 18px}.game-head{height:27px;min-height:27px;margin-bottom:5px}.game-heading-left h1{font-size:21px}.game-heading-left p{display:none}
 .game-surface{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:12px;row-gap:6px;padding:7px 12px}.game-info{grid-column:1/-1;grid-row:1;margin:0;min-height:22px!important;padding:2px!important}.game-info.ready p{font-size:11px}.game-info .intro-links{display:none!important}
 .duel-track{grid-column:1/-1;grid-row:1;margin:0;padding:4px 9px}.game-surface:has(#duel-track) .game-info{display:none}
 .question-area{grid-column:1;grid-row:2;height:48px;margin:0}.game-surface.ready .question-area{grid-column:1/-1;height:51px}.game-surface.ready .gem-actions{max-width:390px}.gem-actions .start-gem{height:52px;font-size:19px!important}.question-word{font-size:29px}.question-counter{top:3px;left:0;right:auto;font-size:10px}
 .combo-strip,.game-surface:has(#duel-track) .combo-strip{grid-column:2;grid-row:2;position:static;width:100%;max-width:none;height:39px;min-height:0;margin:0;padding:2px 5px;background:#142b1e;border:1px solid #b7ac6b44;gap:3px;font-size:10px}.combo-strip b{font-size:13px}.combo-strip small{font-size:9px}.combo-strip .icon{height:14px;width:14px}
 .answers{grid-column:1/-1;grid-row:3;grid-template-columns:repeat(6,minmax(0,1fr));width:100%;max-width:680px;gap:8px}.answer{aspect-ratio:1}.game-tools{grid-column:1;grid-row:4;margin:0;gap:6px}.tool-button{padding:5px 7px;min-height:28px;font-size:11px}.game-stats{grid-column:2;grid-row:4;padding:0;margin:0;border:0;gap:7px;justify-content:center}.game-stat{font-size:10px}.game-stat b{font-size:12px}.game-stat .icon{width:13px;height:13px}.game-bottom{margin-top:5px;font-size:10px}
}
@media(max-height:500px) and (min-width:650px) and (max-width:760px){.game-tools{grid-column:1/-1;grid-row:4}.game-stats{grid-column:1/-1;grid-row:5}.game-surface{row-gap:4px}.combo-strip .combo-multiplier small{display:block}.question-word{font-size:27px}}

/* Comfortable type and contained tools on narrow phones. */
.game-info{font-size:14px}.game-info.ready p{font-size:14px}.game-info.ready .intro-links{font-size:12px}
.combo-strip small{font-size:11px}.game-stat{font-size:12px}.game-stat b{font-size:14px}
@media(max-width:760px){.game-info.ready p{font-size:13px}.tool-button{font-size:12px}.combo-strip small{font-size:11px}.game-stats{gap:6px}.game-stat{font-size:11px}.game-stat b{font-size:14px}}
@media(max-width:380px){.game-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.tool-button{flex-direction:column;justify-content:center;gap:3px;padding:5px 2px;min-width:0;min-height:47px;font-size:11px}.tool-button span{line-height:1.15}.tool-button .icon{height:15px;width:15px}.combo-strip small{font-size:10px}.game-stat{font-size:10px}.game-stat b{font-size:12px}.answers{max-width:min(600px,calc((100dvh - 400px)*1.5))}}
@media(max-height:700px) and (max-width:760px){.game-info.ready p{font-size:12px}}
@media(max-height:500px) and (min-width:650px){.game-info{font-size:12px}.game-info.ready p{font-size:12px}.combo-strip small{font-size:10px}.game-stat{font-size:10px}.game-stat b{font-size:12px}}

.topline{gap:12px}.welcome{min-width:0}.profile-stats{flex-shrink:0}.profile-stats>span{white-space:nowrap}
@media(max-width:760px){.hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:380px}.hero-actions .button{min-width:0!important;padding:12px 8px;font-size:13px;white-space:nowrap}.hero-actions .icon{width:18px;height:18px;flex-shrink:0}}

/* IGO v6: flexible questions, concise tools and complete exam rows. */
:root{--igo-release:6}
.phase-mosaic.unearned{filter:brightness(.3) saturate(.75)}
.learning-grid .exam-card{flex:0 0 100%!important;width:100%!important;max-width:none!important;display:grid!important;grid-template-columns:minmax(95px,18%) minmax(0,1fr);align-items:center;margin-top:13px;border-color:#d6bf796b;background:linear-gradient(110deg,#33432b,#1a3026);text-align:left}
.learning-grid .exam-card .phase-image{width:100%;height:120px;aspect-ratio:auto;display:grid;place-items:center;background:radial-gradient(ellipse,#a2ad5933,transparent 75%)}
.learning-grid .exam-card .phase-image img{position:static;width:auto;height:88px;max-width:85%;object-fit:contain;transform:none}
.learning-grid .exam-card .phase-number{display:none}
.learning-grid .exam-card .phase-body{padding:17px 21px}.learning-grid .exam-card h3{font-size:20px}.learning-grid .exam-card p{font-size:13px}.learning-grid .exam-card .phase-go{margin-top:9px!important;font-size:13px!important;justify-content:space-between}
.game-surface{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(auto,1fr) auto auto auto auto;min-height:var(--game-height,0);align-items:start;gap:0}
.game-info{grid-column:1;grid-row:1;width:100%;min-height:30px!important;margin-bottom:6px}.game-info.ready{min-height:0!important}
.duel-track{grid-column:1;grid-row:2}.game-surface:has(#duel-track) .game-info{display:none}
.question-area,.game-surface.ready .question-area{grid-column:1;grid-row:3;position:relative;display:grid;grid-template-rows:auto minmax(0,1fr);width:100%;height:auto!important;min-height:90px;padding:3px 6px;margin:0 0 8px;align-self:stretch;align-items:center;justify-content:stretch;gap:5px}
.game-surface.ready .question-area{grid-template-rows:minmax(0,1fr);min-height:95px}
.question-counter{position:static!important;inset:auto!important;display:block;justify-self:end;font-size:11px;line-height:1.25;color:#aebfa5}
.question-word{display:block;width:100%;min-width:0;max-width:100%;height:auto;margin:0!important;align-self:center;text-align:center;font-size:clamp(28px,6vw,58px);line-height:1.07;white-space:normal;overflow-wrap:anywhere;word-break:normal;text-wrap:balance}
.combo-strip{grid-column:1;grid-row:4;align-self:center}
.answers{grid-column:1;grid-row:5;width:100%;align-self:center}
.game-tools{grid-column:1;grid-row:6;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));max-width:600px;width:100%;margin:10px auto 0!important;gap:6px}
.game-tools .tool-button{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:6px;width:100%;min-width:0;min-height:31px;height:auto;padding:5px 7px;background:#3b4a33;border:1px solid #c5b77c55;color:#e1dfbd;border-radius:7px;font-size:12px;line-height:1.1;text-align:center}
.game-tools .tool-button:hover{background:#536342;border-color:#d6c787}.game-tools .tool-button:active{background:#65764a}.game-tools .tool-button.active{background:#506744;color:#f3df9e}
.game-tools .tool-button .icon{width:16px;height:16px;flex-shrink:0}.game-tools .tool-button span{line-height:1.15}
.game-stats{grid-column:1;grid-row:7;align-self:end;margin-top:10px;padding-top:9px}
.game-bottom{margin-top:6px;min-height:0;justify-content:space-between}.game-bottom .keyboard-hint{margin-left:auto}
.answer.obscured,.answer:disabled.obscured{opacity:.68;filter:brightness(.8) saturate(.6)}
.answer-before{filter:brightness(.38)}
.answer.hint{border:6px solid #ff4949;box-shadow:0 0 0 2px #ffdf68,0 0 24px #ff3c4eaa;animation:answerBeacon 1.1s ease-in-out infinite;z-index:2}
@keyframes answerBeacon{0%,100%{border-color:#ff343e;box-shadow:0 0 0 2px #ffb94d,0 0 14px #ff313b99}50%{border-color:#ffe34c;box-shadow:0 0 0 3px #ff393e,0 0 29px #ffc94acc}}
.table-wrap th{padding:9px 10px}.table-wrap td{padding:9px 10px;line-height:1.25}
.result-modal{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 20px);padding:20px}
.result-modal .dialog-controls{padding-bottom:5px;margin-bottom:2px;top:-20px}
.result-modal .dialog-title{font-size:27px;line-height:1.1;margin:0 0 9px}
.result-modal .dialog-body>p{margin:0;line-height:1.35;font-size:13px}.result-modal .result-unlock{color:#b7d292;font-size:12px!important;margin-top:4px!important}
.result-modal .result-strip{margin:8px 0;padding:8px 10px;gap:10px;font-size:13px;line-height:1.2;align-items:center;justify-content:space-between}
.result-modal .pill-tabs{margin:6px 0 0;padding:3px}.result-modal .pill-tabs button{padding:7px 8px;min-height:30px}
.result-table{max-height:clamp(72px,calc(100dvh - 500px),180px);overflow:auto;margin-top:8px}
.result-modal .table-wrap{border-radius:8px}.result-modal th{padding:7px 8px;font-size:10px;position:sticky;top:0;background:#192d23}.result-modal td{padding:7px 8px;font-size:12px;line-height:1.2}.result-modal .rank-position{font-size:17px}
.result-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:11px}.result-actions .button{width:100%;min-width:0;min-height:37px;padding:8px 7px;font-size:12px;line-height:1.15}.result-actions .button:last-child:nth-child(odd){grid-column:1/-1}.result-actions .button:disabled{opacity:.48;cursor:default}
.result-modal .local-note{margin-top:9px!important;font-size:11px!important;line-height:1.3!important}
@media(min-width:761px) and (min-height:651px){.answers{max-width:min(600px,calc((100dvh - 520px)*1.5))}}
@media(max-width:760px){
 .learning-grid .exam-card{grid-template-columns:90px minmax(0,1fr);margin-top:10px}.learning-grid .exam-card .phase-image{height:104px}.learning-grid .exam-card .phase-image img{height:76px}.learning-grid .exam-card .phase-body{padding:14px 13px}.learning-grid .exam-card h3{font-size:17px}.learning-grid .exam-card p{font-size:12px}.learning-grid .exam-card .phase-go{font-size:12px!important}
 .question-area,.game-surface.ready .question-area{min-height:84px}.question-word{font-size:clamp(28px,8vw,46px)}.game-tools .tool-button{min-height:30px;padding:4px 4px;font-size:11px;gap:4px}.game-tools .tool-button .icon{width:15px;height:15px}.game-bottom:has(.keyboard-hint:only-child){display:none}
}
@media(max-height:700px) and (max-width:760px) and (orientation:portrait){.answers{max-width:min(100%,calc((100dvh - 420px)*1.5))}.question-area,.game-surface.ready .question-area{min-height:67px}.game-info{padding:3px!important;margin-bottom:3px}.game-info.ready p{font-size:12px}.game-tools{margin-top:7px!important;gap:5px}.game-stats{margin-top:7px;padding-top:7px}.result-modal{padding:14px}.result-modal .dialog-title{font-size:23px;margin-bottom:6px}.result-modal .dialog-controls{top:-14px}.result-modal .result-strip{margin:5px 0;padding:6px 8px}.result-modal .dialog-body>p{font-size:12px}.result-actions{margin-top:8px;gap:5px}.result-actions .button{min-height:33px;padding:7px 5px;font-size:11px}.result-modal td{padding:5px 6px}.result-modal .local-note{margin-top:6px!important}}
@media(max-height:500px) and (min-width:650px){
 .game-surface{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(auto,1fr) auto auto;gap:4px 10px;padding:7px 12px}.game-info{grid-column:1/-1;grid-row:1;margin:0;min-height:20px!important;padding:2px!important}.duel-track{grid-column:1/-1;grid-row:1}.question-area,.game-surface.ready .question-area{grid-column:1;grid-row:2;min-height:48px;padding:1px 3px;margin:0;gap:0}.game-surface.ready .question-area{grid-column:1/-1}.question-counter{font-size:10px}.question-word{font-size:29px}.combo-strip,.game-surface:has(#duel-track) .combo-strip{grid-column:2;grid-row:2;margin:0}.answers{grid-column:1/-1;grid-row:3;max-width:min(680px,calc((100dvh - 282px)*6));grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.game-tools{grid-column:1;grid-row:4;margin:0!important;gap:4px}.game-tools .tool-button{min-height:25px;padding:3px 5px;font-size:10px}.game-tools .tool-button .icon{width:13px;height:13px}.game-stats{grid-column:2;grid-row:4;align-self:center;padding:0;margin:0;gap:7px;border:0}.game-bottom{margin-top:4px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){.answer.hint{animation:none!important;border-color:#ff5151}}

@media(max-width:760px) and (orientation:portrait){.question-word{font-size:clamp(34px,12vw,54px)}}
#rank-format[hidden]{display:none!important}

@media(max-width:380px) and (max-height:700px) and (orientation:portrait){
 .answers{max-width:min(100%,calc((100dvh - 435px)*1.5))}.combo-strip small{font-size:9px;line-height:1.2}.combo-strip .combo-multiplier small{white-space:nowrap}.combo-strip{min-height:33px}.game-tools .tool-button{height:30px;min-height:30px;padding:3px;font-size:10px;gap:3px}.game-tools .tool-button span{line-height:1.1}.question-area,.game-surface.ready .question-area{min-height:64px}
}

@media(max-width:760px){.filter-bar:has(#rank-format) .pill-tabs{order:0}#rank-phase{order:1}#rank-period{order:2}#rank-format{order:3;flex-basis:100%}}

/* IGO V7: style crystals, character shop and a personal board. */
:root{--igo-release:7}
.dialog-close{z-index:6}
.welcome-profile{padding:3px 0;background:none;border:0;color:inherit;text-align:left;line-height:1.6;border-radius:4px;cursor:pointer}
.welcome-profile:hover{color:#e8d596}.welcome-profile:focus-visible{outline:2px solid #dec781;outline-offset:5px}
.hero-water-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.compact-balances{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 22px}
.compact-balances .currency-card{padding:12px 15px;gap:11px;border-radius:12px;flex-direction:row;text-align:left}
.compact-balances .currency-icon{width:36px;height:36px;border-radius:10px}
.compact-balances .currency-icon .icon{width:25px;height:25px}
.compact-balances .currency-amount{font-size:27px;line-height:1.1}
.compact-balances .currency-label{font-size:12px;line-height:1.25;margin-top:3px}
.compact-balances .medals{color:#d8d499}.compact-balances .trophies{color:#e3b67c}
.compact-balances .crystals{color:#d8bdff;border-color:#b5a2dc66;background:radial-gradient(ellipse at top left,#a88bdf22,transparent 80%),#23352e}
.compact-balances .crystals .currency-icon{background:#4a3d6255;border-color:#b9a4da}
.world-intro h1{font:25px/1.2 Georgia;color:#c8d2b9;margin:0 0 13px}
.world-intro h2{font:36px/1.18 Georgia;color:#f0e1b9;max-width:850px;margin:0 0 18px;letter-spacing:-.4px}
.world-intro p{font-size:15px;line-height:1.65;color:#b5c7b2;margin:7px 0;max-width:900px}
.world-intro .local-note{font-size:12px;color:#9cad96;margin-top:13px}
.inline-link{display:inline;padding:0;color:#e6ce88;background:transparent;text-decoration:underline;text-underline-offset:3px;font-size:inherit;line-height:inherit;text-align:left}
.world-display{width:100%}.world-display .world-gallery{margin:0}
.world-main-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:17px 0 29px}
.world-main-actions .button{font-size:13px;padding:12px 17px}
.world-preview.personal-frame{margin-bottom:0}
.personal-board{position:relative;aspect-ratio:3/2;width:100%;overflow:hidden;background:#355b3c;isolation:isolate}
.board-background{display:block!important;width:100%!important;height:auto!important;aspect-ratio:3/2;object-fit:contain;pointer-events:none;user-select:none}
.board-objects{position:absolute;inset:0;pointer-events:none}
.board-object{position:absolute;display:block;aspect-ratio:2/3;width:auto;max-width:none;min-height:0;min-width:0;padding:0;border:0;border-radius:8px;background:none;transform:translate(-50%,-100%);touch-action:none;user-select:none;pointer-events:none}
.board-object .board-sprite{display:block;width:100%;height:100%;max-width:none;object-fit:contain;pointer-events:none;user-select:none;filter:drop-shadow(3px 7px 3px #15241555)}
.editing .board-object{pointer-events:auto;cursor:grab}.editing .board-object:active{cursor:grabbing}
.editing .board-object.selected{outline:2px dashed #ffeb9a;outline-offset:-3px;background:#ffe38a0a}
.editing .board-object:focus-visible{outline:3px solid #ffec9a}.board-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;padding:15px;pointer-events:none;color:#fff6d8;text-shadow:0 2px 6px #142b19;text-align:center;background:#152c1926;font-size:16px}
.board-empty .icon{height:47px;width:47px}.editing{touch-action:pan-y}
.world-shop{border-top:1px solid #c7b87555;padding-top:13px;scroll-margin-top:90px}
.world-shop .section-heading{margin-top:10px}.world-shop .section-heading p{display:flex;align-items:center;gap:6px;color:#d0b6f4}.world-shop .section-heading p .icon{width:18px;height:18px}
.shop-categories{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:18px 0}
.shop-category{padding:15px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:1px solid #c6b57555;border-radius:10px;background:#293e2d;color:#e1dfba;text-align:center;min-width:0}
.shop-category .icon{width:25px;height:25px;color:#dfc782}.shop-category strong{font-size:13px}.shop-category small{font-size:11px;color:#a6b59f}.shop-category.selected{background:#485439;border-color:#e2ca80}.shop-category:hover{border-color:#dbc68c}.shop-category.coming{background:#1d3025;color:#acb9a5}
.shop-intro{padding:8px 0 25px;color:#bac7b0;font-size:14px}
.world-shop .text-link{background:none;padding:5px 0;color:#e6ce88}
.shop-filters{display:flex;gap:15px;margin:17px 0}.shop-filters label{display:grid;gap:7px;color:#bac7b0;font-size:12px;min-width:0;flex:1}.shop-filters select{width:100%;min-width:0;padding:9px 11px;font-size:13px}
.character-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px;padding-bottom:26px}
.character-card{border:1px solid #aab27b44;border-radius:12px;overflow:hidden;background:linear-gradient(150deg,#344830,#1c3226);padding:11px 10px 12px;min-width:0;text-align:center;display:flex;flex-direction:column;align-items:stretch}
.character-card.owned{border-color:#a6c78288}.character-art{height:195px;display:grid;place-items:center;border-radius:7px;background:radial-gradient(ellipse at 50% 85%,#e6c57e33,transparent 65%)}
.character-art img{height:100%;width:100%;max-width:100%;object-fit:contain;filter:drop-shadow(2px 6px 4px #0004)}
.character-card h3{font-size:13px;line-height:1.4;color:#ede5c5;min-height:36px;margin:8px 0 3px}.crystal-price{display:flex;align-items:center;justify-content:center;gap:4px;font-size:14px;font-weight:700;color:#d6b6ff;margin:5px 0 9px}.crystal-price .icon{width:17px;height:17px}
.character-card .button{padding:8px 5px;min-width:0;width:100%;font-size:12px;min-height:34px;margin-top:auto}.character-card .button:disabled{opacity:.4;cursor:default}.character-card>small{font-size:10px;color:#b4d4a9;margin-top:7px}
.world-inventory-summary{padding:19px 0 28px;border-top:1px solid var(--line)}.world-inventory-summary h2{font:24px Georgia;color:#e7daba}.world-inventory-summary p{font-size:14px;line-height:1.6;color:#adbea7;margin:9px 0 13px}.world-inventory-summary .button{font-size:13px}
.world-streaks{margin-top:10px}.world-streaks .settings-row{min-width:0;gap:10px}.world-streaks .settings-row .button{font-size:12px;padding:9px 10px;min-width:0}.world-streaks .streak-card{gap:11px}.world-streaks .streak-number{font-size:30px}
.style-rule-lead{display:flex;align-items:center;gap:9px;color:#d6b5ff;font-size:17px;padding:3px 0 13px}.style-rule-lead .icon{flex-shrink:0;width:27px;height:27px}
.world-editor{max-width:1100px;width:calc(100vw - 28px);padding:22px;max-height:calc(100dvh - 24px)}
.world-editor .dialog-controls{top:-22px}.world-editor .dialog-title{font-size:27px;margin-bottom:7px}.world-editor .editor-help{font-size:13px;line-height:1.4;margin:0 0 13px}
.editor-layout{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(200px,1fr);gap:18px;align-items:start}.editor-layout>div{min-width:0}
.editor-layout .world-preview.world-frame{padding:13px;margin:0;border-width:2px}.editor-layout .world-frame:before{inset:6px}
.editor-inventory h3{font:20px Georgia;color:#e9dcbc}.editor-inventory>p{font-size:12px;line-height:1.5;margin:7px 0 10px}.editor-inventory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:420px;overflow:auto;padding:3px}
.inventory-object{display:flex;flex-direction:column;align-items:center;padding:7px;border:1px solid #b5ab6b55;border-radius:7px;background:#2c4230;color:#d7debd;font-size:11px;line-height:1.4;text-align:center;gap:3px}.inventory-object img{width:100%;height:100px;object-fit:contain}.inventory-object.placed{border-color:#dcc588;background:#47543a}.inventory-object small{font-size:10px;color:#d2bd84}
.editor-inspector{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}.editor-inspector>p{width:100%;font-size:13px;line-height:1.3;margin:0 0 1px;color:#dfd2ab}.editor-move{display:flex;gap:5px}.editor-move .icon-button{font-size:21px;min-width:34px;min-height:32px;width:34px;height:32px;background:#3a4d35;color:#ebdbac}.editor-tools{display:flex;flex-wrap:wrap;gap:5px}.editor-tools .button{padding:7px 9px;min-height:32px;font-size:11px;margin:0}.editor-tools .button:disabled,.editor-move button:disabled{opacity:.4;cursor:default}
.editor-footer{display:flex;justify-content:flex-end;gap:9px;position:sticky;bottom:-22px;background:#1a2d23f7;border-top:1px solid #aab27655;padding:12px 0 0;margin-top:16px}.editor-footer .button{font-size:13px;margin:0;min-height:38px;padding:9px 16px}.editor-footer .button:first-child{margin-right:auto}
.crystal-pop{display:flex!important;align-items:center;justify-content:center;gap:3px;color:#e3c2ff!important;text-shadow:0 1px 5px #27203d,0 0 12px #9a64ff;font-size:13px!important}.crystal-pop .icon{width:15px;height:15px}
.result-crystals{display:flex;align-items:center;gap:3px;margin-top:4px;color:#d5b5f6;font-size:11px;font-weight:400}.result-crystals .icon{width:13px;height:13px}
@media(max-width:1000px){.character-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.character-art{height:220px}.character-card h3{min-height:0}.editor-layout{grid-template-columns:minmax(0,2.2fr) minmax(165px,1fr)}}
@media(max-width:760px){
 .world-intro h1{font-size:22px;margin-bottom:10px}.world-intro h2{font-size:29px;margin-bottom:13px}.world-intro p{font-size:14px;line-height:1.6}.world-intro .local-note{font-size:12px}
 .compact-balances{gap:6px;margin:17px 0}.compact-balances .currency-card{padding:9px 3px;gap:5px;flex-direction:column;text-align:center;border-radius:9px}.compact-balances .currency-icon{height:27px;width:27px;border-radius:7px}.compact-balances .currency-icon .icon{height:20px;width:20px}.compact-balances .currency-amount{font-size:22px}.compact-balances .currency-label{font-size:11px;margin-top:2px}
 .world-main-actions{gap:8px;margin:14px 0 23px}.world-main-actions .button{padding:10px 12px;min-height:38px;font-size:12px;flex:1}.world-main-actions .button:first-child{flex-basis:100%}
 .shop-categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.shop-category{padding:11px 5px;gap:5px}.shop-category strong{font-size:12px}.shop-category small{font-size:10px}.shop-category .icon{width:22px;height:22px}
 .shop-filters{gap:8px}.shop-filters select{font-size:11px;padding:8px 5px}.shop-filters label{font-size:11px}.character-grid{gap:7px}.character-card{padding:7px 5px 9px;border-radius:9px}.character-art{height:150px}.character-card h3{font-size:11px;min-height:31px;line-height:1.35}.crystal-price{font-size:12px;margin:4px 0 8px}.crystal-price .icon{width:14px;height:14px}.character-card .button{font-size:11px;padding:7px 3px;min-height:32px}.character-card .button .icon{width:14px;height:14px}
 .board-empty{font-size:12px;gap:6px}.board-empty .icon{width:30px;height:30px}
 .world-streaks .two-columns{gap:0}.world-streaks .settings-row{padding:12px 0}.world-streaks .settings-row .button{font-size:11px}
 .world-editor{padding:14px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.world-editor .dialog-controls{top:-14px;margin-bottom:3px}.world-editor .dialog-title{font-size:23px;margin-bottom:7px}.world-editor .editor-help{font-size:12px;line-height:1.4;margin-bottom:10px}
 .editor-layout{grid-template-columns:minmax(0,1fr);gap:13px}.editor-layout .world-preview.world-frame{padding:9px}.editor-layout .world-frame:before{inset:4px}.editor-inspector{margin-top:8px;gap:6px}.editor-inspector>p{font-size:12px}.editor-tools .button{font-size:11px;padding:6px 7px;min-height:30px}.editor-move .icon-button{min-height:30px;height:30px;min-width:32px;width:32px}.editor-inventory h3{font-size:18px}.editor-inventory>p{margin:5px 0;font-size:11px}.editor-inventory-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:170px;gap:5px}.inventory-object{padding:4px;font-size:10px}.inventory-object img{height:76px}.inventory-object small{font-size:9px}
 .editor-footer{bottom:-14px;gap:6px;padding-top:10px;margin-top:10px}.editor-footer .button{padding:8px 9px;min-height:35px;font-size:11px}
}
@media(max-width:380px){.character-art{height:126px}.compact-balances .currency-amount{font-size:19px}.compact-balances .currency-label{font-size:10px}.world-intro h2{font-size:26px}.character-card .button{font-size:10px}.editor-inventory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.hero-water-layer{display:none}.world-slide{transition:none}}

/* IGO V8: the complete world shop, white boards and distinct object proportions. */
:root{--igo-release:8}
.personal-board{background:#fff}
.personal-board .board-background{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain;aspect-ratio:3/2}
.white-board{background:#fff!important}
.board-caption{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 15px;margin:10px 0 0;font-size:12px;line-height:1.4;color:#a9bda5}.board-caption strong{color:#ded5b0;font-weight:400}
.world-start-note{margin:-12px 0 24px;font-size:13px;line-height:1.6;color:#b1bfa7}
.shop-categories{grid-template-columns:repeat(5,minmax(0,1fr))}
.shop-category{min-height:89px}.shop-category small{color:#bdc8a7}
.shop-filters{flex-wrap:wrap;gap:12px}.shop-filters label{flex:1 1 160px}
.shop-person-view{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 17px;color:#bbc9ad;font-size:13px}.shop-person-view .pill-tabs{width:220px;margin:0}.shop-person-view .pill-tabs button{font-size:12px;padding:8px 10px;min-height:33px;flex:1}
.shop-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px}
.shop-card{border:1px solid #aab27b44;border-radius:12px;overflow:hidden;background:linear-gradient(150deg,#344830,#1c3226);padding:11px 10px 12px;min-width:0;text-align:center;display:flex;flex-direction:column;align-items:stretch}
.shop-card.owned{border-color:#a6c78288}.shop-art{height:150px;display:grid;place-items:center;border-radius:7px;background:radial-gradient(ellipse at 50% 85%,#e6c57e25,transparent 65%)}
.shop-card.person-card .shop-art{height:212px}.shop-art img{display:block;width:100%;height:100%;object-fit:contain;max-height:100%;filter:drop-shadow(2px 5px 3px #0004)}
.shop-art.terrain-art{height:150px;align-items:center}.shop-art.terrain-art img{height:auto;aspect-ratio:3/2;filter:none;border-radius:4px}
.shop-card h3{font-size:13px;line-height:1.4;color:#ede5c5;min-height:38px;margin:9px 0 3px;display:flex;align-items:center;justify-content:center}
.shop-card .button{padding:8px 5px;min-width:0;width:100%;font-size:12px;min-height:35px;margin-top:auto}.shop-card .button:disabled{opacity:.4;cursor:default}.shop-card>small{font-size:10px;color:#b4d4a9;margin-top:7px}
.crystal-price.free-price{color:#bce19b}.shop-pagination{display:flex;gap:15px;justify-content:center;align-items:center;margin:20px 0 30px;color:#c6cdae;font-size:12px}.shop-pagination .button{padding:9px 14px;min-height:36px;font-size:12px;min-width:0}.shop-pagination .button:disabled{opacity:.35;cursor:default}.shop-pagination span{white-space:nowrap}
.rules-subtitle{font:19px Georgia;color:#e2d7ad;margin:17px 0 9px}
.editor-terrain-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0 6px;color:#c4cfb5;font-size:12px}.editor-terrain-row strong{font-weight:400;color:#ebdcae}.editor-terrain-row .button{padding:6px 10px;min-height:30px;font-size:11px;margin:0;flex-shrink:0}
.inventory-filter{display:grid;gap:5px;font-size:11px;color:#c1cbae;margin:10px 0}.inventory-filter select{padding:8px;font-size:12px;min-width:0;width:100%}.editor-inventory-grid .inventory-empty{font-size:12px;line-height:1.5;grid-column:1/-1}.editor-inventory>.button{font-size:12px;padding:8px 11px;min-height:32px;margin:12px 0 0}
.editor-inventory-grid{max-height:380px}.editor-tools .view-tool{border-color:#d8c589aa;color:#f0dba7;background:#49523a}
@media(max-width:1100px){.shop-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){
 .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.shop-categories{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.shop-category{min-height:76px;padding:9px 3px}.shop-category strong{font-size:10px}.shop-category small{font-size:9px}.shop-category .icon{width:21px;height:21px}
 .shop-card{padding:8px 6px 10px}.shop-card h3{font-size:12px;min-height:34px;margin-top:7px}.shop-art{height:136px}.shop-card.person-card .shop-art{height:180px}.shop-art.terrain-art{height:136px}.shop-card .button{font-size:12px;min-height:34px}.shop-card .crystal-price{font-size:13px}
 .shop-filters{gap:8px;margin:15px 0}.shop-filters label{flex-basis:125px;font-size:12px}.shop-filters select{font-size:12px;padding:8px 6px}.shop-person-view{font-size:12px;gap:8px}.shop-person-view .pill-tabs{width:190px}.shop-person-view .pill-tabs button{font-size:11px;min-height:31px;padding:7px}
 .shop-pagination{gap:10px;margin-top:17px}.shop-pagination .button{font-size:11px;padding:8px 9px}.shop-pagination .icon{width:15px;height:15px}
 .editor-terrain-row{font-size:11px}.editor-terrain-row .button{font-size:10px;padding:5px 7px;min-height:28px}.inventory-filter{margin:8px 0}.editor-inventory-grid{max-height:190px}
 .board-caption{font-size:11px}.world-start-note{font-size:12px}
}
@media(max-width:520px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shop-card.person-card .shop-art{height:196px}.shop-art,.shop-art.terrain-art{height:140px}.shop-category strong{font-size:9px}.shop-category small{font-size:8px}.shop-category{min-height:72px}.shop-person-view{flex-wrap:wrap}.shop-person-view .pill-tabs{flex:1;min-width:175px;max-width:235px}}
@media(max-width:350px){.shop-card.person-card .shop-art{height:164px}.shop-art,.shop-art.terrain-art{height:115px}.shop-card h3{font-size:11px}.shop-category .icon{width:18px;height:18px}.shop-category strong{font-size:8px}.shop-category small{font-size:8px}.shop-person-view>span{font-size:11px}.shop-person-view .pill-tabs{min-width:150px}.shop-pagination{gap:6px}.shop-pagination .button{padding:7px;font-size:10px}.shop-pagination span{font-size:11px}}
@media(max-width:520px){.shop-categories{display:flex;flex-wrap:wrap;justify-content:center;gap:7px}.shop-category{flex:0 0 calc((100% - 14px)/3);min-height:80px;padding:11px 4px}.shop-category .icon{width:23px;height:23px}.shop-category strong{font-size:12px}.shop-category small{font-size:11px}}

/* IGO V9: personal collections, local showcase and a more visible editor entry. */
:root{--igo-release:9}
.world-main-actions .world-customize{position:relative;overflow:hidden;min-height:58px;padding:16px 30px;font-size:17px;letter-spacing:.1px;border:1px solid #c4f7d1;background:linear-gradient(155deg,#75cba0 0,#348b66 43%,#16513e 49%,#388e67 75%,#95d0a4 100%);color:#fff6d5;box-shadow:inset 0 2px 2px #e7ffdf77,inset 0 -3px 3px #092f2b88,0 0 24px #6bca9140,0 4px 0 #143f31;text-shadow:0 2px 2px #123a2b}
.world-customize:after{content:'';position:absolute;inset:-100% -60%;background:linear-gradient(110deg,transparent 43%,#f2ffdf40 49%,transparent 55%);transform:translateX(-55%);animation:worldButtonShine 7s ease-in-out infinite;pointer-events:none}.world-main-actions .world-customize:hover{background:linear-gradient(155deg,#94ddb0,#439b71 43%,#22654a 49%,#55ad80 75%,#b6ebbd);border-color:#efffdf}
@keyframes worldButtonShine{0%,55%{transform:translateX(-55%)}82%,100%{transform:translateX(55%)}}
.inspiration-heading{font:27px/1.2 Georgia;color:#ecdcb3;margin:0 0 7px}.inspiration-description{font-size:14px;color:#b4c2ad;margin:0 0 17px}
.world-library{margin:20px 0 34px;padding:23px 0;border-top:1px solid #b6b57555;border-bottom:1px solid #b6b57544;scroll-margin-top:90px}.world-library .section-heading{margin:0 0 18px}.world-library .section-heading p{font-size:13px}.world-library .section-heading .button{min-width:0;padding:10px 15px;font-size:13px}.library-tabs{max-width:420px;margin-bottom:12px}.world-library>.local-note{font-size:13px;line-height:1.6;margin-bottom:18px;max-width:780px}
.library-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:17px 0}.library-toolbar .button{font-size:12px;min-height:38px;padding:9px 12px}.library-toolbar label:not(.import-world-label){display:grid;gap:6px;font-size:12px;color:#bcc8af;flex:1 1 180px;max-width:300px}.library-toolbar input,.library-toolbar select{width:100%;min-width:0;padding:10px 11px;font-size:13px}.import-world-label{position:relative;cursor:pointer}.import-world-label input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.import-world-label:focus-within{outline:3px solid var(--mint);outline-offset:3px}
.world-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.saved-world-card{min-width:0;overflow:hidden;border:1px solid #bcb47b55;border-radius:14px;background:linear-gradient(145deg,#2b4030,#192f25)}.saved-world-preview{border-bottom:1px solid #a7ad6e66}.saved-world-preview .personal-board{pointer-events:none}.saved-world-body{padding:16px}.saved-world-body h3{font:22px/1.2 Georgia;color:#f1e1b7;overflow-wrap:anywhere;margin-bottom:9px}.saved-world-body>p{font-size:13px;line-height:1.5;color:#b9c7af;margin:0 0 10px;overflow-wrap:anywhere}.saved-world-meta{display:flex;flex-wrap:wrap;gap:6px 12px;color:#abbba1;font-size:11px;line-height:1.4}.saved-world-meta span{display:flex;gap:4px;align-items:center;overflow-wrap:anywhere}.saved-world-meta .icon{height:14px;width:14px;color:#d1b2eb}.publication-status{display:inline-block;font-size:11px;line-height:1.3;margin:13px 0 0;padding:6px 8px;border-radius:6px;background:#40513d;color:#c0c8b0}.publication-status.published{background:#345b40;color:#c8e9aa}.saved-world-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:13px}.saved-world-actions .button{min-width:0;min-height:35px;font-size:11px;line-height:1.2;padding:7px 6px}.saved-world-actions .icon{height:14px;width:14px}.library-empty{grid-column:1/-1;border:1px dashed #a7b57b66;padding:24px;border-radius:12px;font-size:15px;line-height:1.6;color:#bdcbb1}
#world-metadata{display:grid;gap:15px}#world-metadata label{display:grid;gap:7px;font-size:14px;color:#c5cfb7}#world-metadata input,#world-metadata textarea{width:100%;min-width:0;padding:11px 12px;font-size:15px}#world-metadata+.local-note{font-size:13px;line-height:1.6;margin-top:17px}.editor-title-field{display:flex;align-items:center;gap:12px;font-size:13px;color:#d6d8ba;margin:0 0 12px}.editor-title-field input{flex:1;min-width:0;padding:8px 11px;font-size:14px;max-width:380px}.editor-footer{flex-wrap:wrap}.editor-footer .button{min-width:0}
@media(max-width:1000px){.world-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.world-main-actions .world-customize{min-height:54px;padding:14px 17px;font-size:17px}.world-library{margin:15px 0 25px;padding:18px 0}.world-library-grid{grid-template-columns:minmax(0,1fr);gap:17px}.world-library .section-heading{flex-wrap:wrap;gap:12px}.world-library .section-heading h2{font-size:25px}.library-toolbar{gap:8px}.library-toolbar .button{font-size:12px;min-height:37px;flex:1 1 130px}.library-toolbar label:not(.import-world-label){max-width:none}.saved-world-body{padding:15px}.saved-world-body h3{font-size:23px}.saved-world-actions .button{font-size:12px;min-height:39px;padding:9px 7px}.saved-world-meta{font-size:12px}.publication-status{font-size:12px}.editor-title-field{display:grid;gap:5px;font-size:12px}.editor-title-field input{width:100%;max-width:none;font-size:14px}.editor-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.editor-footer .button:first-child{margin:0}.editor-footer .button{font-size:11px;width:100%;padding:8px 6px}.inspiration-heading{font-size:25px}.inspiration-description{font-size:13px}}
@media(prefers-reduced-motion:reduce){.world-customize:after{animation:none}}
.world-export-preview{display:block;width:100%;height:auto;max-height:55dvh;object-fit:contain;background:#fff;border:1px solid #a6b37466;border-radius:7px;margin:0 0 12px}.world-export-preview+.local-note{font-size:13px;line-height:1.5}

/* IGO V10: clearer shop cards and paid collection spaces. */
:root{--igo-release:10}
.world-main-actions .world-shop-button{background:linear-gradient(155deg,#f5df9a 0,#cca54d 43%,#94702c 49%,#d1aa54 75%,#fff0b8 100%);color:#292919;border-color:#f5e2a1;box-shadow:inset 0 2px 2px #fff7ccaa,inset 0 -3px 3px #6b481e88,0 0 24px #e8bf6040,0 4px 0 #72562a;text-shadow:0 1px 0 #ffeab677}.world-main-actions .world-shop-button:hover{background:linear-gradient(155deg,#fff0b8,#e1bb65 43%,#a78135 49%,#e5bf69 75%,#fff7cf);border-color:#fff6c9}
.shop-title-word{user-select:none;touch-action:manipulation;cursor:inherit}
.shop-card{position:relative}.shop-card h3{position:relative;z-index:2;min-height:3.6em;line-height:1.2;margin:0 0 9px;padding:4px 2px;overflow-wrap:anywhere;align-items:center;isolation:isolate;background:linear-gradient(135deg,#30452f,#283d2e);border-radius:5px}.shop-art{position:relative;z-index:1;flex-shrink:0;overflow:hidden;min-height:0}.shop-art img{min-height:0;max-height:100%;object-fit:contain}.shop-card .crystal-price{margin-top:10px}
.library-capacity{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;padding:13px;margin-bottom:17px;border:1px solid #b2ab7255;border-radius:10px;background:#283d2f}.library-capacity p{font-size:13px;line-height:1.5;color:#c3cdb1}.library-capacity .button{font-size:12px;min-width:0;min-height:38px;padding:9px 12px}.editor-capacity{display:flex;flex-wrap:wrap;gap:7px 14px;align-items:center;justify-content:space-between;margin:0 0 10px;padding:8px 0;border-bottom:1px solid #acb37b44;font-size:12px;color:#bcc8ab}.editor-capacity .button{font-size:11px;min-height:30px;padding:6px 9px}.previous-worlds{margin-top:22px;border-top:1px solid #a4b17a55;padding-top:16px}.previous-worlds summary{cursor:pointer;color:#dfd4ae;font-size:16px}.previous-worlds>p{font-size:13px;color:#bac6ad;margin:10px 0 15px}
@media(max-width:760px){.world-main-actions .world-shop-button{flex-basis:100%}.shop-card h3{font-size:12px;min-height:3.6em;margin-bottom:8px}.library-capacity{padding:11px}.library-capacity p{font-size:12px}.library-capacity .button{width:100%}.editor-capacity{font-size:11px;gap:6px}.editor-capacity .button{font-size:11px}}

/* V11: six store categories and independently selected object copies. */
.shop-categories{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(min-width:521px) and (max-width:780px){.shop-categories{grid-template-columns:repeat(3,minmax(0,1fr))}}

.editor-inspector>label{display:flex;flex-direction:column;gap:6px;margin:8px 0 12px;min-width:0}.editor-inspector>label select{width:100%;min-width:0;max-width:100%}

/* V12: visible silhouettes, direct editing and quick board navigation. */
.personal-board.editing{touch-action:none}
.editing .board-object,.editing .board-object:active{pointer-events:none;cursor:inherit}
.editing .board-object.selected,.editing .board-object:focus-visible{outline:0;background:none}
.board-selection-outline{position:absolute;display:block;pointer-events:none;border:2px dashed transparent;box-sizing:border-box}
.selected .board-selection-outline{border-color:#ffeb9a}
.board-object:focus-visible .board-selection-outline{border:3px solid #ffec9a}
.viewed-world{cursor:pointer}.viewed-world:focus-visible{outline:3px solid #f2d57c;outline-offset:4px}
.world-board-strip{display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;padding:5px 3px 14px;margin:0 0 13px;scroll-snap-type:x proximity}
.world-board-thumb{display:block;flex:0 0 150px;min-width:0;min-height:0;padding:5px;border:1px solid #9ca98666;border-radius:10px;background:#243d2e;color:#dce5cd;scroll-snap-align:start;text-align:left}
.world-board-thumb.selected{border:2px solid #f1ce75;padding:4px;background:#405139}
.world-thumb-art{display:block;overflow:hidden;border-radius:5px;aspect-ratio:3/2}.world-thumb-art .board-sprite{filter:none}.world-thumb-art .personal-board{pointer-events:none}
.world-thumb-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.35;margin:7px 4px 3px;overflow-wrap:anywhere}
.editor-board-strip .world-board-thumb{flex-basis:105px}.editor-board-strip .world-thumb-title{font-size:12px}
.editor-png-preview{margin:15px 0;padding:14px;border:1px solid #a6bd8c66;border-radius:12px;background:#10271e}.editor-png-preview h3{font-size:19px;margin:0 0 10px}.editor-png-preview .world-export-preview{max-height:55vh;width:auto;max-width:100%;margin:auto;display:block}.editor-png-preview p{text-align:center;font-size:13px;margin:10px 0}
@media(max-width:520px){.world-board-thumb{flex-basis:125px}.editor-board-strip .world-board-thumb{flex-basis:90px}.world-board-strip{gap:9px}.editor-footer{flex-wrap:wrap}.editor-png-preview{padding:10px}.editor-png-preview .dialog-actions .button{font-size:12px;min-width:0}}

#editor-export-host{scroll-margin-top:70px}.editor-png-preview .dialog-actions{display:flex;flex-wrap:nowrap}.editor-png-preview .dialog-actions .button{flex:1 1 0;min-width:0;padding:8px;font-size:13px}

/* V13: buy and sell without leaving the board editor. */
.shop-card .sell-item{border-color:#c7a17a88;color:#f1d4af;background:#4a3e2b;margin-top:7px}
.editor-commerce-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0 10px;padding-top:15px;border-top:1px solid #adba8255}
.editor-commerce-actions>span{flex:1 1 220px;color:#c4cfb6;font-size:13px;line-height:1.5}
.editor-commerce-actions .button{min-width:0;min-height:40px;padding:10px 15px}
#editor-shop-host,#editor-world-shop,#editor-sale-host{scroll-margin-top:75px;min-width:0}
#editor-world-shop{margin:16px 0;padding:18px;border:1px solid #a4b37a66;border-radius:13px;background:#20372a}
#editor-world-shop .section-heading{gap:12px;flex-wrap:wrap}
#editor-world-shop .section-heading h2{font-size:25px}
#editor-world-shop .section-heading p{font-size:14px}
#editor-world-shop .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#editor-world-shop .shop-card.person-card .shop-art{height:190px}
#editor-world-shop .shop-art{height:155px}
#editor-world-shop .shop-card .button{font-size:13px;min-width:0;min-height:35px;padding:8px}
#editor-world-shop .shop-categories{grid-template-columns:repeat(3,minmax(0,1fr))}
.editor-sale-confirm{margin:12px 0;padding:17px;border:1px solid #d8b48488;border-radius:11px;background:#3b3828;color:#f0e1c2}
.editor-sale-confirm h3{font-size:21px;margin:0 0 10px;overflow-wrap:anywhere}
.editor-sale-confirm p{font-size:14px;line-height:1.6;margin:8px 0}
.editor-sale-confirm .dialog-actions{margin-top:15px;gap:9px}
.editor-sale-confirm .button{min-width:0;font-size:13px;padding:10px 12px}
@media(max-width:620px){
 #editor-world-shop{padding:10px;margin:12px 0}
 #editor-world-shop .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #editor-world-shop .shop-card.person-card .shop-art{height:175px}
 #editor-world-shop .shop-art{height:125px}
 #editor-world-shop .shop-categories{gap:6px}
 #editor-world-shop .shop-category{flex-basis:calc((100% - 12px)/3);font-size:12px;padding:8px 3px;min-height:74px}
 #editor-world-shop .shop-category strong{font-size:11px}
 #editor-world-shop .shop-category small{font-size:10px}
 #editor-world-shop .shop-pagination{flex-wrap:wrap}
 #editor-world-shop .shop-pagination span{order:-1;flex-basis:100%;text-align:center}
 .editor-commerce-actions{gap:8px}.editor-commerce-actions>span{font-size:12px}
 .editor-sale-confirm{padding:12px}.editor-sale-confirm p{font-size:13px}
}

/* V13: course levels contain ten compact blocks of nine phases. */
.level-blocks{padding:0 22px 22px;min-width:0}
.category.level-block{margin:0 0 16px;background:#182d2499;border-color:#8aa07140;min-width:0}
.category.level-block>summary{padding:18px 19px;gap:14px}
.level-block .category-title{min-width:0;flex:1}
.level-block .category-title h3{font-size:19px;line-height:1.3;overflow-wrap:anywhere}
.level-block .category-title small{display:block;line-height:1.45;margin-top:5px}
.level-block .category-count{font-size:13px;flex-shrink:0}
.level-final-exam{padding:3px 0 0!important;border-top:1px solid var(--line)}
.mosaic-cell.mosaic-text{display:flex;align-items:center;justify-content:center;padding:4px;background:#ecdcb7;color:#24392d;font-weight:700;font-size:clamp(11px,1.5vw,17px);text-align:center;overflow-wrap:anywhere;line-height:1.2}
.install-invitation p+p{margin-top:14px}
.install-invitation .dialog-actions{margin-top:22px}
@media(max-width:620px){
 .level-blocks{padding:0 9px 12px}
 .category.level-block>summary{padding:15px 11px;gap:9px;flex-wrap:wrap}
 .level-block .category-title h3{font-size:17px}
 .level-block .category-title small{font-size:12px}
 .level-block .category-count{font-size:11px;max-width:70px;line-height:1.45;text-align:right}
 .level-block>.learning-grid{padding:0 9px 13px;gap:8px}
 .level-block .phase-body h3{overflow-wrap:anywhere;font-size:13px;line-height:1.3}
 .level-block .phase-body{padding:11px 7px 12px}
 .level-block .phase-body p{font-size:11px}
 .level-block .learning-grid .exam-card h3{font-size:16px}
 .mosaic-cell.mosaic-text{font-size:11px}
 .install-invitation .dialog-actions{gap:10px;flex-wrap:wrap}
}

/* V14: eight guided rounds and a small automatic-format indicator. */
.normal-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
.training-tools{grid-template-columns:repeat(3,minmax(0,1fr))}
.exam-tools,.duel-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
.round-stage{position:absolute;bottom:3px;left:6px;right:6px;text-align:center;color:#a9cfba;font-size:12px;line-height:1.35;letter-spacing:.1px}
.question-area:has(.round-stage){padding-top:23px;padding-bottom:27px}
.language-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.language-options .language-option{min-width:0}
@media(max-width:620px){
 .round-stage{font-size:11px}
 .normal-tools,.exam-tools,.duel-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
 .training-tools{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* V15: tactile feedback, occasional practice prompts, and medal previews. */
.medal-detail-button{display:block;min-width:0;width:100%;padding:0;color:inherit;background:none;text-align:inherit;border:0;border-radius:18px;cursor:pointer;font:inherit}
.medal-detail-button:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
.medal-preview{text-align:center}.medal-preview>img{display:block;width:clamp(150px,45vw,280px);height:clamp(150px,45vw,280px);object-fit:contain;margin:0 auto 12px;filter:drop-shadow(0 10px 20px #0007)}
.medal-preview>img.silhouette{filter:brightness(0) drop-shadow(0 0 1px #e6d8b0)}
.medal-preview>img.medal-silver{filter:grayscale(1) brightness(1.24) drop-shadow(0 10px 20px #0007)}
.medal-preview>img.medal-bronze{filter:sepia(.6) saturate(1.35) hue-rotate(340deg) brightness(.78) drop-shadow(0 10px 20px #0007)}
.medal-preview h3{font-size:clamp(22px,5vw,30px);margin:0 0 7px}.medal-preview p{color:var(--muted);margin:0 0 18px}.medal-preview-modal{max-width:560px}
[id^="journey-"]{scroll-margin-top:145px}
.game-tools .tool-button{position:relative;isolation:isolate;overflow:hidden}
.game-tools .tool-button.control-shine{animation:control-invitation .95s ease-in-out;border-color:#f7e6a3}
.game-tools .tool-button.control-shine:after{content:"";pointer-events:none;position:absolute;inset:-50% -60%;background:linear-gradient(115deg,transparent 35%,#fff7cc75 49%,transparent 63%);transform:translateX(-65%);animation:control-reflection .95s ease-in-out}
.game-tools .tool-button.help-attention{border-color:#f4ca67;background:#69582f;color:#fff1bd;box-shadow:0 0 0 1px #f1cd6b55,0 0 15px #e8b95328;animation:help-invitation 1.6s ease-in-out infinite}
.exam-tools,.duel-tools{grid-template-columns:repeat(3,minmax(0,1fr))}
@keyframes control-reflection{to{transform:translateX(65%)}}
@keyframes control-invitation{50%{box-shadow:0 0 17px #ffe7a270;background:#60714d}}
@keyframes help-invitation{50%{box-shadow:0 0 0 2px #f1cd6b88,0 0 19px #e8b95355}}
@media(max-width:620px){[id^="journey-"]{scroll-margin-top:125px}.medal-preview-modal .dialog-title{font-size:25px}.exam-tools,.duel-tools{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.game-tools .tool-button.control-shine,.game-tools .tool-button.help-attention,.game-tools .tool-button.control-shine:after{animation:none}.game-tools .tool-button.control-shine{box-shadow:0 0 0 2px #e5d28b}}

@media(max-width:400px){.collection-nav{gap:8px}.collection-nav a{flex:1;min-width:0;justify-content:center;gap:5px;font-size:12px;padding-inline:0}.collection-nav .icon{width:16px;height:16px;flex-shrink:0}}
