:root{--bg:#f7fbfd;--ink:#10242e;--green:#0f6b5a;--mint:#a9e7d4;--blue:#bfddf5;--lilac:#d8c7f2;--pink:#f2c7d5;--yellow:#f5df88;--coral:#e98181;--line:#d6e6ef;--navy:#18478f;--mustard:#dfa900}
*{box-sizing:border-box}html,body{margin:0;min-width:320px;overflow:hidden;background:var(--bg);color:var(--ink)}body{font-family:Arial,"Helvetica Neue",sans-serif}.app{position:relative;isolation:isolate;width:100%;height:100vh;min-height:620px;max-height:760px;overflow:hidden;padding:14px 18px 8px;background:#f3efe5}
.paper-grid{position:absolute;inset:-10%;z-index:-5;opacity:.35;background-image:linear-gradient(#1d2b3117 1px,transparent 1px),linear-gradient(90deg,#1d2b3117 1px,transparent 1px);background-size:86px 86px;transform:rotate(-1deg)}.halftone{position:absolute;z-index:-3;width:180px;height:180px;opacity:.2;background-image:radial-gradient(var(--navy) 1.3px,transparent 1.3px);background-size:7px 7px;animation:drift 9s ease-in-out infinite alternate}.h1{left:-25px;top:160px}.h2{right:-25px;bottom:50px;animation-delay:-4s}.sticker{position:absolute;z-index:5;pointer-events:none}.star{left:calc(50% - 345px);top:64px;color:#f4c321;font-size:40px;text-shadow:-2px -2px #111,2px -2px #111,-2px 2px #111,2px 2px #111,5px 5px #fff;animation:bop 2.7s ease-in-out infinite}.spiral{right:7%;bottom:60px;color:#d29225;font:46px "Comic Sans MS",cursive;animation:spin 5s ease-in-out infinite}
.masthead{text-align:center;position:relative;z-index:3}.kicker{display:inline-block;padding:4px 10px;background:#fff;border:2px solid #111;box-shadow:4px 4px 0 var(--yellow);font:900 9px "Arial Narrow",Arial,sans-serif;letter-spacing:.15em;transform:rotate(-1deg)}.masthead h1{display:flex;justify-content:center;align-items:center;gap:7px;margin:5px 0 2px;font-family:Impact,"Arial Black",Arial,sans-serif;font-size:clamp(28px,4vw,48px);line-height:.9;letter-spacing:-.025em}.masthead h1 span{padding:5px 10px;color:#fff;background:var(--navy);border:3px solid #111;transform:rotate(-.8deg)}.masthead h1 b{padding:5px 10px;color:var(--mustard);background:#fff;border:3px solid #111;box-shadow:5px 5px 0 #111;transform:rotate(.7deg)}.masthead p{display:inline-block;margin:5px 0 7px;padding:3px 9px;background:#111;color:#fff;font-size:12px;font-weight:700;transform:rotate(-.25deg)}
.game-card{position:relative;width:min(900px,100%);height:515px;margin:auto;border:4px solid #111;background:linear-gradient(150deg,#fff 0 72%,#edf7fb);box-shadow:10px 11px 0 #173d78;overflow:hidden}.game-card:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.08;background-image:radial-gradient(#111 .7px,transparent .7px);background-size:5px 5px}.topbar{height:43px;display:grid;grid-template-columns:145px 1fr 130px;align-items:center;gap:12px;padding:7px 12px;border-bottom:2px solid #111;background:#fff;position:relative;z-index:6}.round-chip,.found{font:900 11px "Arial Narrow",Arial,sans-serif;letter-spacing:.08em}.found{text-align:right;color:var(--green)}.progress{height:8px;background:#e6edf0;border:1px solid #111;overflow:hidden}.progress i{display:block;width:25%;height:100%;background:linear-gradient(90deg,var(--blue),var(--mint));transition:width .45s}
.round-root{height:373px;position:relative;display:grid;place-items:center}.round-title{position:absolute;top:10px;left:0;right:0;text-align:center;z-index:5}.round-title h2{display:inline-block;margin:0;padding:4px 10px;background:var(--yellow);border:2px solid #111;box-shadow:4px 4px 0 #111;font:900 15px "Arial Black",Arial,sans-serif;transform:rotate(-.5deg)}.round-title p{margin:7px 0 0;font-size:12px;font-weight:800;color:#53666d}
.orbit-shell{position:relative;width:350px;height:350px;margin-top:26px;display:grid;place-items:center}.orbit-line{position:absolute;width:282px;height:282px;border:2px dashed #2a8474;border-radius:50%;opacity:.68}.currency-core{position:relative;z-index:2;width:126px;height:126px;border:4px solid var(--green);border-radius:50%;display:grid;place-content:center;text-align:center;background:linear-gradient(145deg,var(--blue),var(--mint));box-shadow:7px 8px 0 #111;animation:breathe 3.4s ease-in-out infinite}.currency-core:before{content:"";position:absolute;inset:9px;border:2px dashed rgba(16,36,46,.42);border-radius:50%;animation:ring 12s linear infinite}.currency-core b{font:900 42px "Arial Black",Arial,sans-serif;line-height:.9}.currency-core small{font-size:10px;font-weight:900;letter-spacing:.15em;margin-top:7px}.orbit{position:absolute;inset:0;animation:orbit 28s linear infinite}.orbit.paused,.orbit:focus-within,.orbit-shell:hover .orbit{animation-play-state:paused}.flag-node{--i:0;position:absolute;left:50%;top:50%;width:58px;height:58px;margin:-29px;transform:rotate(calc(var(--i)*72deg)) translateY(-141px) rotate(calc(var(--i)*-72deg));border:0;background:transparent;padding:0;cursor:pointer}.flag-node .counterspin{display:block;width:58px;height:58px;border-radius:50%;animation:counter 28s linear infinite,flag-float 2.8s ease-in-out infinite;box-shadow:0 6px 13px #10242e26}.orbit.paused .counterspin,.orbit:focus-within .counterspin,.orbit-shell:hover .counterspin{animation-play-state:paused}.flag-node img,.choice img{display:block;width:100%;height:100%;border:4px solid #fff;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #111}.flag-node:focus-visible .counterspin,.choice:focus-visible{outline:4px solid #2878cc;outline-offset:4px}.flag-node.discovered .counterspin{box-shadow:0 0 0 4px var(--mint),0 7px 14px #10242e32;transform:scale(1.13)}.flag-node .check{position:absolute;right:-3px;top:-4px;width:20px;height:20px;display:none;place-items:center;border:2px solid #111;border-radius:50%;background:#fff;color:var(--green);font:900 13px Arial}.flag-node.discovered .check{display:grid}.flag-label{position:absolute;z-index:8;left:50%;bottom:6px;transform:translateX(-50%) scale(.6);opacity:0;padding:5px 10px;white-space:nowrap;background:#fff;border:2px solid #111;box-shadow:4px 4px 0 var(--mint);font:900 11px Arial;transition:.25s}.flag-label.show{opacity:1;transform:translateX(-50%) scale(1)}.tap-hint{position:absolute;right:10px;top:154px;z-index:9;font-size:29px;animation:tap 2.6s ease-in-out infinite}.tap-hint:after{content:"";position:absolute;width:30px;height:30px;left:-4px;top:-5px;border:2px solid var(--green);border-radius:50%;animation:ripple 1.3s infinite}
.quiz-layout{width:min(590px,92%);margin-top:42px;display:grid;grid-template-columns:180px 1fr;gap:55px;align-items:center}.quiz-core{width:160px;height:160px}.choices{display:flex;justify-content:center;gap:26px}.choice{position:relative;width:78px;min-height:100px;border:0;background:transparent;cursor:pointer;padding:0}.choice img{width:70px;height:70px;margin:auto}.choice span{display:inline-block;margin-top:7px;padding:3px 6px;background:#fff;border:1px solid #111;font-size:10px;font-weight:900}.choice:hover img{transform:translateY(-6px) scale(1.08);box-shadow:0 0 0 3px var(--yellow),5px 7px 0 #111}.choice.wrong{animation:shake .38s}.choice.wrong img{box-shadow:0 0 0 4px var(--coral)}.choice.correct img{box-shadow:0 0 0 4px var(--mint),6px 7px 0 #111;animation:winner 1.5s ease-in-out infinite}.connector{position:absolute;width:90px;height:2px;background:var(--mint);left:calc(50% - 5px);top:50%;transform-origin:left;animation:connect .45s both}
.message{height:53px;display:flex;align-items:center;justify-content:center;text-align:center;padding:5px 12px;border-top:2px solid #111;background:#fff;font-size:12px;font-weight:900;position:relative;z-index:6}.message.success{color:var(--green);background:#effbf7}.message.error{color:#943d3d;background:#fff3f3}.actions{position:absolute;right:12px;bottom:8px;z-index:10;display:flex;gap:7px}.actions button{min-height:38px;padding:0 14px;border:2px solid #111;border-radius:0;background:var(--yellow);box-shadow:4px 4px 0 #111;color:#111;font:900 10px "Arial Black",Arial;cursor:pointer}.actions button.secondary{background:#fff}.actions button:hover{transform:translate(2px,2px);box-shadow:2px 2px #111}.actions button:focus-visible{outline:3px solid #2878cc;outline-offset:3px}
.complete-burst .orbit-line{animation:orbit-burst .85s ease}.complete-burst .currency-core{animation:core-win 1s ease}.summary{display:grid;place-items:center;text-align:center;width:100%;height:100%;padding-top:20px}.summary h2{margin:0 0 18px;padding:6px 13px;background:var(--navy);border:3px solid #111;color:#fff;box-shadow:7px 7px 0 var(--yellow);font:900 24px "Arial Black",Arial;transform:rotate(-.7deg)}.match-pair{display:flex;align-items:center;justify-content:center}.match-circle{width:130px;height:130px;border:3px solid #111;border-radius:50%;display:grid;place-items:center;background:var(--blue);font:900 15px "Arial Black",Arial;animation:puzzle-left 2.8s ease-in-out infinite}.match-circle:last-child{background:var(--mint);animation-name:puzzle-right}.link-mark{width:36px;height:36px;border:3px solid #111;border-radius:50%;margin:0 -7px;background:var(--yellow);z-index:2}.summary p{margin:18px 0 0;font-size:13px;font-weight:800}.summary-actions{position:static;margin-top:15px}
footer{height:20px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:9px;color:#61747b}footer b{color:var(--green)}footer i{width:3px;height:3px;border-radius:50%;background:#82979d}
@keyframes orbit{to{transform:rotate(360deg)}}@keyframes counter{to{transform:rotate(-360deg)}}@keyframes ring{to{transform:rotate(360deg)}}@keyframes breathe{50%{transform:scale(1.035)}}@keyframes flag-float{50%{margin-top:-4px}}@keyframes drift{to{transform:translate(15px,-12px)}}@keyframes bop{50%{transform:rotate(10deg) scale(1.12)}}@keyframes spin{50%{transform:rotate(25deg)}}@keyframes tap{0%,70%,100%{transform:translate(0,0)}80%{transform:translate(-12px,8px) scale(.9)}}@keyframes ripple{from{transform:scale(.3);opacity:.7}to{transform:scale(1.25);opacity:0}}@keyframes shake{25%{transform:translateX(-6px)}50%{transform:translateX(6px)}75%{transform:translateX(-3px)}}@keyframes winner{50%{transform:translateY(-7px) scale(1.08)}}@keyframes connect{from{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes orbit-burst{50%{transform:scale(1.1);border-width:4px}}@keyframes core-win{50%{transform:scale(1.09)}}@keyframes puzzle-left{50%{transform:translateX(7px) rotate(2deg)}}@keyframes puzzle-right{50%{transform:translateX(-7px) rotate(-2deg)}}
@media(max-width:620px){.app{min-height:680px;max-height:760px;padding:10px 7px 5px}.masthead h1{flex-direction:column;gap:0;font-size:29px}.masthead h1 span,.masthead h1 b{padding:3px 8px}.masthead p{font-size:10px;margin-top:5px}.star{left:7px;top:70px;font-size:26px}.spiral{display:none}.game-card{height:535px;border-width:3px;box-shadow:6px 7px 0 #173d78}.topbar{grid-template-columns:105px 1fr 95px;gap:6px;padding:6px 7px}.round-chip,.found{font-size:8.5px}.round-root{height:395px}.round-title{top:8px}.round-title h2{font-size:12px}.round-title p{font-size:10px}.orbit-shell{width:304px;height:304px;margin-top:36px}.orbit-line{width:242px;height:242px}.currency-core{width:108px;height:108px}.currency-core b{font-size:35px}.flag-node{width:50px;height:50px;margin:-25px;transform:rotate(calc(var(--i)*72deg)) translateY(-121px) rotate(calc(var(--i)*-72deg))}.flag-node .counterspin{width:50px;height:50px}.flag-node img{border-width:3px}.tap-hint{right:5px;top:165px}.flag-label{bottom:10px}.quiz-layout{width:100%;grid-template-columns:1fr;gap:12px;margin-top:40px}.quiz-core{width:112px;height:112px}.choices{gap:15px}.choice{width:76px;min-height:93px}.choice img{width:62px;height:62px}.message{height:55px;font-size:10px;padding-right:92px}.actions{right:8px}.actions button{padding:0 9px;font-size:8px}.summary h2{font-size:18px}.match-circle{width:105px;height:105px;font-size:12px}.summary p{font-size:11px;padding:0 18px}.summary-actions{margin-top:13px}.summary-actions button{font-size:9px}.h1,.h2{width:120px;height:120px}}
@media(max-width:350px){.orbit-shell{width:286px;height:286px}.orbit-line{width:224px;height:224px}.flag-node{transform:rotate(calc(var(--i)*72deg)) translateY(-112px) rotate(calc(var(--i)*-72deg))}.masthead h1{font-size:26px}.choices{gap:7px}.choice{width:70px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}.orbit{animation:none}.flag-node .counterspin{animation:none}.tap-hint{display:none}}
.euro-core{border:5px solid #173d78;background:#fff;overflow:visible;box-shadow:7px 8px 0 #111,0 0 0 5px #fff}
.euro-core:before{inset:-13px;border:3px dashed #173d78;opacity:.78}
.euro-core img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;transform:scale(.91)}
.euro-core span{position:absolute;left:50%;bottom:-23px;transform:translateX(-50%) rotate(-1deg);white-space:nowrap;padding:3px 8px;border:2px solid #111;background:#fff;color:#173d78;box-shadow:3px 3px 0 var(--yellow);font:900 9px "Arial Black",Arial,sans-serif;letter-spacing:.08em}

/* Compact desktop iframe: keep the full experience visible in short CMS frames */
@media (min-width:621px) and (max-height:610px){
  .app{height:100vh;min-height:0;max-height:none;padding:5px 14px 3px}
  .kicker{padding:2px 8px;font-size:8px}
  .masthead h1{margin:2px 0 0;font-size:30px}
  .masthead h1 span,.masthead h1 b{padding:3px 8px;border-width:2px}
  .masthead h1 b{box-shadow:4px 4px 0 #111}
  .masthead p{margin:3px 0 5px;padding:2px 8px;font-size:9px}
  .star{top:42px;font-size:27px}
  .game-card{height:calc(100vh - 89px);min-height:398px}
  .topbar{height:37px;padding:5px 11px}
  .round-root{height:calc(100% - 86px);min-height:300px}
  .round-title{top:7px}
  .round-title h2{padding:3px 9px;font-size:12px}
  .round-title p{margin-top:4px;padding:2px 7px;display:inline-block;background:#fff;border:1px solid var(--line);font-size:9px}
  .orbit-shell{width:284px;height:284px;margin-top:54px}
  .orbit-line{width:222px;height:222px}
  .currency-core{width:100px;height:100px}
  .flag-node{width:48px;height:48px;margin:-24px;transform:rotate(calc(var(--i)*72deg)) translateY(-111px) rotate(calc(var(--i)*-72deg))}
  .flag-node .counterspin{width:48px;height:48px}
  .euro-core span{bottom:-19px;padding:2px 6px;font-size:7px}
  .flag-label{bottom:0}
  .message{height:49px;font-size:10px}
  .actions{bottom:6px}
  footer{display:none}
  .tap-hint{right:-4px;top:132px;font-size:24px}
  .quiz-layout{margin-top:35px}
  .quiz-core{width:125px;height:125px}
  .summary{padding-top:4px}
  .summary h2{margin-bottom:10px;font-size:19px}
  .match-circle{width:95px;height:95px;font-size:11px}
  .summary p{margin-top:10px}
}
