/* IQM Games 1.1.0, design v4: the site's own language. White cards on paper, thin lines,
   Enriqueta only, one orange button per screen (white text, like the menu's "Start IQ Test"),
   app-style photo icons, text tabs. Everything is scoped under .iqmg (plus the
   toast). Buttons and links set their own colours, borders and hover states, because the theme
   styles bare <button> and <a> tags; ".iqmg .x" beats the theme reset
   body.jiq-home-active * { margin:0; padding:0 }. The band never fades its colour: a reaction
   test must change from red to green in one frame. */

.iqmg{--g-navy:#0C3158;--g-navy2:#123F6E;--g-dark:#0A1C33;--g-ink:#182635;--g-muted:#5E6E80;--g-faint:#93A2B4;
  --g-paper:#FBF9F6;--g-line:#E9E4DC;--g-link:#B4441A;--g-accent:#E4551F;--g-goldtext:#F5C26B;--g-soft:#C9D6E6;--g-dim:#8FA6C1;
  --g-orange:linear-gradient(135deg,#FFA41B 0%,#FF8A00 52%,#F2611C 100%);
  --g-gold:linear-gradient(120deg,#FFC24B 0%,#F5A623 38%,#F0821E 72%,#E4551F 100%);
  --g-hero:linear-gradient(168deg,#123F6E 0%,#0C3158 34%,#071E36 72%,#051627 100%);
  --g-f:"Enriqueta",Rockwell,Georgia,serif;
  display:block;font-family:var(--g-f);color:var(--g-ink);font-variant-numeric:lining-nums}
.iqmg.iqmg{margin:0 0 34px}
.iqmg *,.iqmg *::before,.iqmg *::after{box-sizing:border-box}
.iqmg [hidden]{display:none !important}
.iqmg .iqmg-noscript{margin:0;padding:18px;border:1px solid var(--g-line);border-radius:14px;background:#fff}
.iqmg .iqmg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}

/* ---------- shared pieces ---------- */
.iqmg .iqmg-eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 14px;font:700 12.5px/1 var(--g-f);letter-spacing:.2em;text-transform:uppercase;color:var(--g-accent)}
.iqmg .iqmg-eyebrow::before{content:"";width:22px;height:2px;border-radius:2px;background:currentColor}
.iqmg .iqmg-caps{display:block;margin:0;font:700 11.5px/1.3 var(--g-f);letter-spacing:.16em;text-transform:uppercase;color:var(--g-faint)}
.iqmg .iqmg-arrow{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.iqmg .iqmg-meta{margin:16px 0 0;font:400 13.5px/1.3 var(--g-f);color:var(--g-faint)}
/* the orange buttons (the IQ test, and the game's Start) = the site's own .btn: gold gradient,
   white text, layered shadow, a springy lift and the light streak that sweeps across */
.iqmg a.iqmg-gold,.iqmg a.iqmg-gold:visited,.iqmg a.iqmg-gold:hover,.iqmg a.iqmg-gold:focus,
.iqmg button.iqmg-go,.iqmg button.iqmg-go:hover,.iqmg button.iqmg-go:focus{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:11px;
  margin:0;padding:16px 32px;border:0;border-radius:999px;background:var(--g-gold);color:#fff;cursor:pointer;overflow:hidden;white-space:nowrap;
  font:700 17px/1 var(--g-f);letter-spacing:.01em;text-transform:none;text-decoration:none;text-shadow:0 1px 2px rgba(150,50,0,.25);
  box-shadow:0 18px 40px -12px rgba(228,85,31,.55),0 4px 12px -4px rgba(228,85,31,.4),inset 0 2px 0 rgba(255,255,255,.4),inset 0 -3px 8px rgba(160,50,0,.25);
  transition:transform .2s cubic-bezier(.2,.7,.3,1.4),box-shadow .2s}
.iqmg a.iqmg-gold::after,.iqmg button.iqmg-go::after{content:"";position:absolute;top:-40%;bottom:-40%;left:-80%;width:34%;pointer-events:none;
  background:linear-gradient(105deg,transparent,rgba(255,255,255,.65),transparent);transform:skewX(-18deg);animation:iqmgShine 3.4s ease-in-out infinite}
@keyframes iqmgShine{0%,58%{left:-80%}88%,100%{left:140%}}
.iqmg a.iqmg-gold:hover,.iqmg button.iqmg-go:hover{transform:translateY(-3px) scale(1.015);
  box-shadow:0 26px 52px -14px rgba(228,85,31,.6),0 6px 16px -6px rgba(228,85,31,.45),inset 0 2px 0 rgba(255,255,255,.4),inset 0 -3px 8px rgba(160,50,0,.25)}
.iqmg a.iqmg-gold:active,.iqmg button.iqmg-go:active{transform:translateY(-1px) scale(.99)}
.iqmg a.iqmg-gold:focus-visible,.iqmg button.iqmg-go:focus-visible{outline:3px solid #fff;outline-offset:3px}
.iqmg a.iqmg-gold .iqmg-arrow{color:#fff;transition:transform .2s}
.iqmg a.iqmg-gold:hover .iqmg-arrow{transform:translateX(5px)}
/* text links with an arrow (next steps) */
.iqmg a.iqmg-textlink,.iqmg a.iqmg-textlink:visited,.iqmg button.iqmg-textlink,.iqmg button.iqmg-textlink:hover,.iqmg button.iqmg-textlink:focus{
  display:flex;align-items:center;gap:8px;width:100%;margin:0;padding:12px 0;border:0;border-bottom:1px solid var(--g-line);border-radius:0;
  background:transparent;color:var(--g-navy);font:700 15px/1.25 var(--g-f);text-align:left;text-transform:none;letter-spacing:0;
  text-decoration:none;box-shadow:none;cursor:pointer}
.iqmg a.iqmg-textlink:hover,.iqmg button.iqmg-textlink:hover{color:var(--g-link)}
.iqmg .iqmg-textlink .iqmg-arrow{color:var(--g-accent);transition:transform .2s}
.iqmg .iqmg-textlink:hover .iqmg-arrow{transform:translateX(3px)}
.iqmg .iqmg-textlink:focus-visible{outline:3px solid #F5A623;outline-offset:2px}

/* ---------- the game band ---------- */
.iqmg .iqmg-card{position:relative;display:flex;flex-direction:column;min-height:460px;margin:0;padding:0;border-radius:22px;overflow:hidden;
  background:var(--g-hero);color:#fff;container-type:inline-size;container-name:iqmg}
/* the home page hero's background on the start screen: three slow glows and a faint grid */
.iqmg .iqmg-aurora,.iqmg .iqmg-gridtex{position:absolute;inset:0;z-index:0;pointer-events:none}
.iqmg .iqmg-aurora i{position:absolute;border-radius:50%;filter:blur(70px);opacity:.85}
.iqmg .iqmg-aurora i:nth-child(1){width:760px;height:520px;left:52%;top:-16%;background:radial-gradient(closest-side,rgba(48,118,196,.75),transparent);animation:iqmgDrift1 14s ease-in-out infinite}
.iqmg .iqmg-aurora i:nth-child(2){width:560px;height:480px;left:-14%;top:44%;background:radial-gradient(closest-side,rgba(240,130,30,.32),transparent);animation:iqmgDrift2 17s ease-in-out infinite}
.iqmg .iqmg-aurora i:nth-child(3){width:430px;height:380px;right:-8%;bottom:-6%;background:radial-gradient(closest-side,rgba(245,166,35,.25),transparent);animation:iqmgDrift1 20s ease-in-out infinite reverse}
/* the start screen in the game's own colours (--t1 deep, --t2 bright: 'tint' in games.json, set
   on .iqmg): a glow behind the mode cards, the slow glows in its colour, and a grid floor in
   perspective that drifts towards you (like the personality page's hero). While playing the band
   is the neutral navy again (colour games such as Stroop need it). */
.iqmg .iqmg-card[data-state="idle"]{background:radial-gradient(60% 62% at 50% 66%,var(--t2,#14457A) 0%,transparent 72%),var(--t1,#0A2440);
  background:radial-gradient(60% 62% at 50% 66%,color-mix(in srgb,var(--t2,#14457A) 88%,transparent) 0%,transparent 72%),
    linear-gradient(180deg,var(--t1,#0A2440) 0%,color-mix(in srgb,var(--t1,#0A2440) 78%,#000) 100%)}
.iqmg .iqmg-card[data-state="idle"] .iqmg-aurora i:nth-child(1){background:radial-gradient(closest-side,var(--t2,#3076C4),transparent);opacity:.7}
.iqmg .iqmg-card[data-state="idle"] .iqmg-aurora i:nth-child(2){background:radial-gradient(closest-side,rgba(255,255,255,.13),transparent)}
.iqmg .iqmg-card[data-state="idle"] .iqmg-aurora i:nth-child(3){background:radial-gradient(closest-side,var(--t2,#F5A623),transparent);opacity:.55}
.iqmg .iqmg-gridtex{inset:auto -60% -2% -60%;height:58%;opacity:.38;transform-origin:50% 100%;transform:perspective(440px) rotateX(64deg);
  background-image:linear-gradient(to right,rgba(255,255,255,.17) 1px,transparent 1px),linear-gradient(to bottom,rgba(255,255,255,.17) 1px,transparent 1px);
  background-size:72px 72px;animation:iqmgFloor 10s linear infinite;
  -webkit-mask-image:linear-gradient(to top,#000 0%,rgba(0,0,0,.55) 45%,transparent 95%);mask-image:linear-gradient(to top,#000 0%,rgba(0,0,0,.55) 45%,transparent 95%)}
@keyframes iqmgFloor{to{background-position:0 72px}}
/* How to play: a card over the start screen before a mode's first round (core: openHow()) */
.iqmg .iqmg-howto{position:absolute;inset:0;z-index:20;display:grid;place-items:center;padding:24px;background:rgba(4,10,22,.64);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);animation:iqmgHowIn .25s ease both}
.iqmg .iqmg-howto[hidden]{display:none}
.iqmg.is-hero .iqmg-howto{padding-top:88px} /* clear of the site's floating navbar over the band */
.iqmg .iqmg-howto-panel{position:relative;width:min(520px,100%);max-height:100%;overflow:auto;padding:14px 14px 22px;border-radius:24px;text-align:center;color:#fff;
  background:#0A1C33;background:linear-gradient(180deg,color-mix(in srgb,var(--t2,#14457A) 50%,#0A1C33) 0%,#0A1C33 72%);
  border:1px solid rgba(255,255,255,.18);box-shadow:0 40px 80px -30px rgba(0,0,0,.85);animation:iqmgHowPop .4s cubic-bezier(.2,.8,.3,1.15) both}
.iqmg .iqmg-howto-art{display:block;aspect-ratio:2/1;margin:0 0 18px;border-radius:16px;overflow:hidden}
.iqmg .iqmg-howto-art img{display:block;width:100%;height:100%;object-fit:cover}
.iqmg button.iqmg-howto-x,.iqmg button.iqmg-howto-x:hover,.iqmg button.iqmg-howto-x:focus{position:absolute;top:24px;right:24px;z-index:1;display:grid;place-items:center;
  width:38px;height:38px;margin:0;padding:0;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(4,10,22,.55);color:#fff;box-shadow:none;cursor:pointer}
.iqmg button.iqmg-howto-x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.iqmg button.iqmg-howto-x:focus-visible{outline:3px solid var(--g-goldtext);outline-offset:2px}
.iqmg .iqmg-howto .iqmg-eyebrow{justify-content:center;margin:0 0 6px;color:var(--g-goldtext)}
.iqmg .iqmg-howto-h{margin:0 0 18px;padding:0;font:700 28px/1.15 var(--g-f);color:#fff;text-transform:none}
.iqmg ol.iqmg-howto-steps{list-style:none;max-width:430px;margin:0 auto 20px;padding:0;text-align:left;counter-reset:iqmghow}
.iqmg ol.iqmg-howto-steps li{position:relative;margin:0 0 12px;padding:3px 0 0 46px;min-height:32px;font:400 16px/1.5 var(--g-f);color:rgba(255,255,255,.9);
  counter-increment:iqmghow;animation:iqmgHowIn .45s ease both}
.iqmg ol.iqmg-howto-steps li:nth-child(2){animation-delay:.12s}
.iqmg ol.iqmg-howto-steps li:nth-child(3){animation-delay:.24s}
.iqmg ol.iqmg-howto-steps li::before{content:counter(iqmghow);position:absolute;left:0;top:0;width:32px;height:32px;border-radius:50%;background:var(--g-gold);
  color:#fff;font:700 15px/32px var(--g-f);text-align:center;box-shadow:0 8px 16px -8px rgba(228,85,31,.9)}
.iqmg button.iqmg-howto-go{margin:4px auto 0}
.iqmg .iqmg-howto p.iqmg-howto-note{margin:12px 0 0;font:400 13px/1.4 var(--g-f);color:var(--g-dim)}
@keyframes iqmgHowIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes iqmgHowPop{from{opacity:0;transform:scale(.94) translateY(12px)}to{opacity:1;transform:none}}
/* How to play, the worked example: a small screen in the game's colours where a pointer (a finger
   on touch screens) plays a first round, one scene per step; the bars under it jump between them */
.iqmg .iqmg-howto-panel.has-ex{padding-top:20px}
.iqmg .iqmg-howto-panel.has-ex .iqmg-howto-h{margin-bottom:12px}
.iqmg .iqmg-ex-wrap{text-align:left}
.iqmg .iqmg-ex{position:relative;aspect-ratio:2/1;overflow:hidden;container:iqmgex/size;border-radius:16px;
  background:radial-gradient(130% 100% at 50% 0%,var(--t2,#3B4A9A) 0%,var(--t1,#18204A) 78%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 18px 40px -22px rgba(0,0,0,.8);font:700 15px/1.2 var(--g-f);color:#fff;-webkit-user-select:none;user-select:none}
.iqmg .iqmg-ex-hand{position:absolute;left:0;top:0;z-index:9;display:block;width:24px;height:24px;margin:-3px 0 0 -5px;opacity:0;pointer-events:none;
  transition:transform .52s cubic-bezier(.45,.05,.25,1),opacity .25s}
.iqmg .iqmg-ex-hand.is-on{opacity:1}
.iqmg .iqmg-ex-hand svg{display:block;width:100%;height:100%;fill:#fff;stroke:#0B1530;stroke-width:1.5;stroke-linejoin:round;
  filter:drop-shadow(0 3px 4px rgba(0,0,0,.5));transition:transform .12s}
.iqmg .iqmg-ex-hand.is-tap svg{transform:scale(.84)}
.iqmg .iqmg-ex-hand.is-touch{width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;background:rgba(255,255,255,.5);
  box-shadow:0 0 0 2px rgba(255,255,255,.85),0 6px 14px rgba(0,0,0,.4)}
.iqmg .iqmg-ex-hand.is-touch.is-tap{background:rgba(255,255,255,.9)}
.iqmg .iqmg-ex-ring{position:absolute;z-index:8;width:46px;height:46px;margin:-23px 0 0 -23px;border:3px solid var(--g-goldtext);border-radius:50%;
  pointer-events:none;animation:iqmgExRing .45s ease-out both}
@keyframes iqmgExRing{from{opacity:1;transform:scale(.3)}to{opacity:0;transform:scale(1.3)}}
@keyframes iqmgExPop{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:none}}
.iqmg .iqmg-ex .is-press{filter:brightness(1.3)}
.iqmg .iqmg-ex .is-dim{opacity:.3;transition:opacity .3s}
.iqmg .iqmg-ex-chip{position:absolute;left:0;right:0;bottom:8%;z-index:7;width:fit-content;max-width:90%;margin:0 auto;padding:7px 14px;border-radius:999px;
  background:#fff;color:#0B1530;font:700 14px/1.25 var(--g-f);text-align:center;box-shadow:0 10px 24px -8px rgba(0,0,0,.65);animation:iqmgExPop .35s cubic-bezier(.2,.8,.3,1.4) both}
.iqmg .iqmg-ex-chip.is-top{top:7%;bottom:auto}
.iqmg .iqmg-ex-chip.is-mid{top:50%;bottom:auto;margin-top:-16px}
.iqmg .iqmg-ex-chip.is-good{background:#7CF0B0;color:#06301B}
.iqmg .iqmg-ex-chip.is-bad{background:#FFB4A8;color:#4A0D04}
.iqmg .iqmg-ex-chip.is-gold{background:var(--g-gold);color:#2A1404}
.iqmg .iqmg-ex-chip.is-big{padding:10px 22px;font-size:24px}
.iqmg .iqmg-ex-chip.is-big.is-mid{margin-top:-22px}
.iqmg .iqmg-ex-grid{position:absolute;left:50%;top:50%;display:grid;gap:3cqh;transform:translate(-50%,-50%)}
.iqmg .iqmg-ex-cell{display:grid;place-items:center;transition:background .2s,box-shadow .2s,transform .3s,opacity .3s}
.iqmg .iqmg-ex-row{position:absolute;left:0;right:0;top:50%;display:flex;justify-content:center;gap:3cqw;transform:translateY(-50%)}
.iqmg .iqmg-ex-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.6cqh;width:23cqw;height:46cqh;border-radius:12px;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);font:700 4cqw/1.1 var(--g-f);text-align:center;transition:all .35s}
.iqmg .iqmg-ex-tile.is-small{width:18cqw;font-size:3.4cqw}
.iqmg .iqmg-ex-tile.is-locked{opacity:.45;border-style:dashed}
.iqmg .iqmg-ex-tile.is-done{background:rgba(124,240,176,.18);border-color:#7CF0B0}
.iqmg .iqmg-ex-tile.is-pick{background:var(--g-gold);border-color:transparent;color:#2A1404;opacity:1;transform:scale(1.06);box-shadow:0 0 24px rgba(245,166,35,.55)}
.iqmg .iqmg-ex-sub{font:400 2.8cqw/1.2 var(--g-f);opacity:.75}
.iqmg .iqmg-ex-tag{padding:1.4cqh 2.6cqw;border-radius:999px;background:rgba(0,0,0,.32);font:700 3.3cqw/1 var(--g-f);color:rgba(255,255,255,.9);animation:iqmgExPop .3s ease both}
.iqmg .iqmg-ex-tag.is-corner{position:absolute;left:4%;top:7%}
.iqmg .iqmg-ex-tags{position:absolute;left:0;right:0;top:46%;display:flex;justify-content:center;gap:2cqw}
.iqmg .iqmg-ex-hint{position:absolute;right:5%;bottom:9%;padding:2cqh 3.4cqw;border-radius:999px;background:#fff;color:#0B1530;font:700 3.4cqw/1 var(--g-f);transition:opacity .2s}
.iqmg .iqmg-ex-hint.is-tr{top:7%;bottom:auto}
.iqmg .iqmg-ex-hint.is-off{opacity:.55;text-decoration:line-through}
.iqmg .iqmg-ex-clue{position:absolute;left:6%;right:6%;top:6%;padding:1.6cqh 2.4cqw;border-radius:8px;background:rgba(0,0,0,.3);font:700 3.3cqw/1.25 var(--g-f);
  text-align:center;animation:iqmgExPop .3s ease both}
/* reaction */
.iqmg .iqmg-ex-screen{position:absolute;inset:9% 8%;display:grid;place-items:center;border-radius:12px;font:700 7cqw/1 var(--g-f);transition:background .12s}
.iqmg .iqmg-ex-screen.is-red{background:#D93A2B}
.iqmg .iqmg-ex-screen.is-green{background:#2FB869}
.iqmg .iqmg-ex-screen.is-amber{background:#E89A1C;color:#2A1404}
.iqmg .iqmg-ex-pips{position:absolute;left:0;right:0;bottom:16%;z-index:2;display:flex;justify-content:center;gap:6px}
.iqmg .iqmg-ex-pips div{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.35)}
.iqmg .iqmg-ex-pips div.is-on{background:#fff}
.iqmg .iqmg-ex-road{position:absolute;top:0;bottom:0;left:36%;right:36%;background:#262A33 linear-gradient(180deg,rgba(255,255,255,.85) 0 45%,transparent 45%) center 0/4px 34px repeat-y;
  animation:iqmgExRoad .45s linear infinite}
@keyframes iqmgExRoad{to{background-position:center 34px}}
.iqmg .iqmg-ex-road.is-still{animation-play-state:paused}
.iqmg .iqmg-ex-roadsign{position:absolute;left:calc(100% + 5cqw);top:12%;display:grid;place-items:center;width:22cqh;height:22cqh;font:700 5.4cqh/1 var(--g-f);
  opacity:0;transform:scale(.3);transform-origin:50% 0;transition:transform 1s cubic-bezier(.3,.1,.3,1),opacity .3s}
.iqmg .iqmg-ex-roadsign.is-in{opacity:1;transform:scale(1.45)}
.iqmg .iqmg-ex-roadsign.is-stop{background:#D93A2B;color:#fff;clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%)}
.iqmg .iqmg-ex-roadsign.is-limit{border:1.6cqh solid #D93A2B;border-radius:50%;background:#fff;color:#111;font-size:8cqh}
.iqmg .iqmg-ex-brake{position:absolute;right:5%;bottom:10%;padding:3cqh 5cqw;border-radius:12px;background:#fff;color:#0B1530;font:700 4.2cqw/1 var(--g-f)}
.iqmg .iqmg-ex-track{position:absolute;left:8%;right:8%;top:46%;height:3px;border-radius:3px;background:rgba(255,255,255,.3)}
.iqmg .iqmg-ex-car{position:absolute;left:0;bottom:3px;width:11cqw;height:7cqh;border-radius:2.4cqh 3.4cqh 1cqh 1cqh;background:#fff;transition:left 1.4s cubic-bezier(.3,.1,.3,1)}
.iqmg .iqmg-ex-car.is-go{left:62%}
.iqmg .iqmg-ex-grid.is-rings{top:45%;gap:3cqh 6cqh}
.iqmg .iqmg-ex-grid.is-rings .iqmg-ex-cell{width:18cqh;height:18cqh;border:2px solid rgba(255,255,255,.35);border-radius:50%}
.iqmg .iqmg-ex-grid .iqmg-ex-cell.is-gold{background:var(--g-gold);border-color:#FFE2A3;box-shadow:0 0 18px rgba(245,166,35,.8)}
.iqmg .iqmg-ex-grid .iqmg-ex-cell.is-red{background:#E5483A;border-color:#FF9C90;box-shadow:0 0 16px rgba(229,72,58,.7)}
.iqmg .iqmg-ex-grid .iqmg-ex-cell.is-hit{background:#3CCB7F;border-color:#9FF2C6;transform:scale(.8)}
.iqmg .iqmg-ex-grid .iqmg-ex-cell.is-fade{animation:iqmgExFade 1.5s linear .1s both}
@keyframes iqmgExFade{to{opacity:.12;transform:scale(.7)}}
/* memory */
.iqmg .iqmg-ex-grid.is-cards{top:42%;gap:3cqh 2.4cqw}
.iqmg .iqmg-ex-grid.is-cards.is-low{top:58%}
.iqmg .iqmg-ex-grid.is-cards .iqmg-ex-cell{width:15cqw;height:30cqh;border:1px solid rgba(255,255,255,.3);border-radius:10px;
  background:linear-gradient(145deg,rgba(255,255,255,.28),rgba(255,255,255,.08));font:700 13cqh/1 var(--g-f);color:#0B1530;transform:perspective(300px) rotateY(0)}
.iqmg .iqmg-ex-grid.is-cards.is-low .iqmg-ex-cell{width:13cqw;height:26cqh}
.iqmg .iqmg-ex-grid.is-cards .iqmg-ex-cell.is-up{background:#fff;transform:perspective(300px) rotateY(180deg) scaleX(-1)}
.iqmg .iqmg-ex-grid.is-cards .iqmg-ex-cell.is-match{background:#7CF0B0;color:#06301B}
.iqmg .iqmg-ex-players{position:absolute;left:0;right:0;top:5%;display:flex;justify-content:center;gap:3cqw}
.iqmg .iqmg-ex-player{padding:1.6cqh 3cqw;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.1);font:700 3.3cqw/1 var(--g-f);opacity:.6;transition:all .3s}
.iqmg .iqmg-ex-player.is-on{border-color:transparent;background:var(--g-gold);color:#2A1404;opacity:1}
/* digit span */
.iqmg .iqmg-ex-big{position:absolute;left:0;right:0;top:50%;margin-top:-10cqh;text-align:center;font:700 20cqh/1 var(--g-f);letter-spacing:.12em;animation:iqmgExPop .3s ease both}
.iqmg .iqmg-ex-timer{position:absolute;left:32%;right:32%;top:74%;height:4px;overflow:hidden;border-radius:4px;background:rgba(255,255,255,.25)}
.iqmg .iqmg-ex-timer::after{content:"";display:block;height:100%;background:var(--g-gold);animation:iqmgExDrain 2.4s linear both}
@keyframes iqmgExDrain{from{width:100%}to{width:0}}
.iqmg .iqmg-ex-boxes{position:absolute;left:0;right:0;top:9%;display:flex;justify-content:center;gap:1.6cqw}
.iqmg .iqmg-ex-box{display:grid;place-items:center;width:8cqw;height:20cqh;border:1px solid rgba(255,255,255,.3);border-radius:8px;background:rgba(255,255,255,.1);
  font:700 11cqh/1 var(--g-f);transition:all .25s}
.iqmg .iqmg-ex-box.is-full{background:#fff;color:#0B1530}
.iqmg .iqmg-ex-box.is-good{background:#7CF0B0;color:#06301B}
.iqmg .iqmg-ex-box.is-new{border-style:dashed;animation:iqmgExPop .35s ease both}
.iqmg .iqmg-ex-grid.is-keys{top:auto;bottom:7%;gap:2cqh 1.4cqw;transform:translateX(-50%)}
.iqmg .iqmg-ex-grid.is-keys .iqmg-ex-cell{width:9cqw;height:17cqh;border-radius:8px;background:rgba(255,255,255,.14);font:700 9cqh/1 var(--g-f)}
/* tower */
.iqmg .iqmg-ex-pegs{position:absolute;inset:0}
.iqmg .iqmg-ex-pegs::after{content:"";position:absolute;left:6%;right:6%;bottom:12%;height:3.5cqh;border-radius:4px;background:rgba(255,255,255,.55)}
.iqmg .iqmg-ex-peg{position:absolute;bottom:12%;width:22%;height:62%;margin-left:-11%}
.iqmg .iqmg-ex-peg::before{content:"";position:absolute;left:50%;bottom:0;width:1.6cqh;height:100%;margin-left:-.8cqh;border-radius:4px 4px 0 0;background:rgba(255,255,255,.6);
  transition:background .2s,box-shadow .2s}
.iqmg .iqmg-ex-peg.is-target::before{background:var(--g-goldtext);box-shadow:0 0 14px rgba(245,166,35,.8)}
.iqmg .iqmg-ex-peg.is-no::before{background:#FF6B5B;box-shadow:0 0 14px rgba(255,90,78,.9)}
.iqmg .iqmg-ex-peglab{position:absolute;left:0;right:0;bottom:-10cqh;text-align:center;font:700 3.6cqw/1 var(--g-f);color:rgba(255,255,255,.7)}
.iqmg .iqmg-ex-disk{position:absolute;z-index:2;height:11cqh;border-radius:6px;box-shadow:inset 0 -3px 0 rgba(0,0,0,.22);transform:translateX(-50%);
  transition:left .26s ease-in-out,bottom .26s ease-in-out}
.iqmg .iqmg-ex-disk.d0{width:10%;background:#FFD43B}
.iqmg .iqmg-ex-disk.d1{width:15%;background:#FF9F43}
.iqmg .iqmg-ex-disk.d2{width:20%;background:#FF5A4E}
/* stroop */
.iqmg .iqmg-ex-word{position:absolute;left:0;right:0;top:18%;text-align:center;font:700 15cqh/1 var(--g-f);letter-spacing:.04em;animation:iqmgExPop .3s ease both}
.iqmg .iqmg-ex-word.is-arrow{right:auto;width:34cqw;margin-left:-17cqw;font-size:10cqh}
.iqmg .iqmg-ex-dot{position:absolute;left:50%;top:34%;width:2.4cqh;height:2.4cqh;margin:-1.2cqh;border-radius:50%;background:rgba(255,255,255,.65)}
.iqmg .iqmg-ex-keys4{position:absolute;left:0;right:0;bottom:9%;display:flex;justify-content:center;gap:2cqw}
.iqmg .iqmg-ex-key{display:grid;place-items:center;min-width:16cqw;height:17cqh;padding:0 2cqw;border-radius:10px;background:rgba(255,255,255,.16);
  font:700 3.8cqw/1 var(--g-f);transition:box-shadow .2s}
.iqmg .iqmg-ex-key.is-arrow{min-width:11cqw;font-size:9cqh}
.iqmg .iqmg-ex-key.is-right{box-shadow:0 0 0 3px #7CF0B0,0 0 18px rgba(124,240,176,.7)}
.iqmg .iqmg-ex-hbars{position:absolute;left:12%;right:12%;top:14%;display:grid;gap:4cqh}
.iqmg .iqmg-ex-hbar{position:relative;height:13cqh;overflow:hidden;border-radius:6px;background:rgba(255,255,255,.12);font:700 3.4cqw/13cqh var(--g-f)}
.iqmg .iqmg-ex-hbar>div:first-child{position:absolute;left:0;top:0;bottom:0;width:0;background:rgba(255,255,255,.32);transition:width .8s ease}
.iqmg .iqmg-ex-hbar>div+div{position:relative;padding-left:2.4cqw}
/* logic */
.iqmg .iqmg-ex-lgrid{position:absolute;left:50%;top:60%;display:grid;gap:1.2cqh;transform:translate(-50%,-50%)}
.iqmg .iqmg-ex-lhead{display:grid;place-items:center;height:15cqh;padding:0 1.2cqw;font:700 3.6cqw/1 var(--g-f);color:rgba(255,255,255,.75)}
.iqmg .iqmg-ex-lhead.is-row{justify-items:end}
.iqmg .iqmg-ex-lcell{display:grid;place-items:center;width:15cqh;height:15cqh;border-radius:5px;background:rgba(255,255,255,.12);font:700 9cqh/1 var(--g-f);transition:background .2s,box-shadow .2s}
.iqmg .iqmg-ex-lcell.is-yes{background:#7CF0B0;color:#06301B}
.iqmg .iqmg-ex-lcell.is-no{color:#FFB4A8}
.iqmg .iqmg-ex-lcell.is-look{box-shadow:0 0 0 2px var(--g-goldtext)}
/* sequence */
.iqmg .iqmg-ex-grid.is-tiles{top:45%}
.iqmg .iqmg-ex-grid.is-tiles .iqmg-ex-cell{width:20cqh;height:20cqh;border-radius:8px;background:rgba(255,255,255,.14)}
.iqmg .iqmg-ex-grid .iqmg-ex-cell.is-lit{background:#fff;box-shadow:0 0 22px rgba(255,255,255,.85)}
.iqmg .iqmg-ex-grid .iqmg-ex-cell.is-wrong{background:#FF5A4E}
.iqmg .iqmg-ex-grid.is-pads{top:46%;gap:4cqh 3cqw}
.iqmg .iqmg-ex-grid.is-pads .iqmg-ex-cell{width:16cqw;height:30cqh;border-radius:14px;font:700 14cqh/1 var(--g-f);color:rgba(255,255,255,.92);opacity:.5}
.iqmg .iqmg-ex-grid.is-pads .iqmg-ex-cell.is-lit{opacity:1;box-shadow:0 0 26px rgba(255,255,255,.7)}
/* code breaker */
.iqmg .iqmg-ex-board{position:absolute;left:50%;top:7%;display:grid;gap:2cqh;transform:translateX(-50%)}
.iqmg .iqmg-ex-guess{display:flex;align-items:center;gap:1.6cqw;padding:1.2cqh 2cqw;border-radius:10px;background:rgba(0,0,0,.24);animation:iqmgExPop .3s ease both}
.iqmg .iqmg-ex-hole{display:grid;place-items:center;width:10cqh;height:10cqh;border-radius:50%;background:rgba(255,255,255,.14);font:700 6.5cqh/1 var(--g-f);transition:background .2s,box-shadow .2s}
.iqmg .iqmg-ex-hole.is-win{box-shadow:0 0 0 2px #7CF0B0}
.iqmg .iqmg-ex-fb{display:grid;grid-template-columns:repeat(2,3.4cqh);gap:1cqh;margin-left:1.6cqw}
.iqmg .iqmg-ex-fb div{width:3.4cqh;height:3.4cqh;box-sizing:border-box;border:1.5px solid rgba(255,255,255,.3);border-radius:50%;transition:all .25s}
.iqmg .iqmg-ex-fb div.is-hit{border-color:#fff;background:#fff}
.iqmg .iqmg-ex-fb div.is-near{border-color:#fff}
.iqmg .iqmg-ex-pal{position:absolute;left:0;right:0;bottom:8%;display:flex;justify-content:center;align-items:center;gap:1.8cqw}
.iqmg .iqmg-ex-pal div{width:11cqh;height:11cqh;border-radius:50%}
.iqmg .iqmg-ex-pal div.is-digit{display:grid;place-items:center;border-radius:6px;background:rgba(255,255,255,.16);font:700 6.5cqh/1 var(--g-f)}
.iqmg .iqmg-ex-pal div.is-check{width:auto;height:auto;margin-left:1.4cqw;padding:2.2cqh 3cqw;border-radius:999px;background:#fff;color:#0B1530;font:700 3.4cqw/1 var(--g-f)}
.iqmg .iqmg-ex-grid.is-cal{top:46%;gap:1.6cqh}
.iqmg .iqmg-ex-grid.is-cal .iqmg-ex-cell{width:7cqh;height:7cqh;border-radius:3px;background:rgba(255,255,255,.16)}
.iqmg .iqmg-ex-grid.is-cal .iqmg-ex-cell.is-done{background:rgba(124,240,176,.65)}
.iqmg .iqmg-ex-grid.is-cal .iqmg-ex-cell.is-pick{background:var(--g-gold);box-shadow:0 0 12px rgba(245,166,35,.8)}
/* the step bars and the line that narrates the scene */
.iqmg .iqmg-ex-bars{display:flex;gap:6px;margin:6px 0 0}
.iqmg button.iqmg-ex-bar,.iqmg button.iqmg-ex-bar:hover,.iqmg button.iqmg-ex-bar:focus{flex:1;display:block;margin:0;padding:8px 0;border:0;border-radius:0;background:none;box-shadow:none;cursor:pointer}
.iqmg .iqmg-ex-bar i{display:block;height:4px;overflow:hidden;border-radius:4px;background:rgba(255,255,255,.2)}
.iqmg .iqmg-ex-bar i::after{content:"";display:block;width:0;height:100%;border-radius:4px;background:var(--g-gold)}
.iqmg .iqmg-ex-bar.is-done i::after{width:100%}
.iqmg .iqmg-ex-bar.is-now i::after{animation:iqmgExFill var(--d,4s) linear both}
@keyframes iqmgExFill{to{width:100%}}
.iqmg button.iqmg-ex-bar:focus-visible{outline:2px solid var(--g-goldtext);outline-offset:2px}
.iqmg .iqmg-howto p.iqmg-ex-say{display:flex;align-items:flex-start;gap:12px;min-height:4.6em;margin:6px 0 14px;font:400 16px/1.5 var(--g-f);color:rgba(255,255,255,.92)}
.iqmg .iqmg-ex-say b{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--g-gold);color:#2A1404;font:700 14px/1 var(--g-f)}
.iqmg .iqmg-ex-say span{padding-top:3px;animation:iqmgHowIn .35s ease both}
.iqmg button.iqmg-howbtn,.iqmg button.iqmg-howbtn:hover,.iqmg button.iqmg-howbtn:focus{display:inline-flex;align-items:center;gap:7px;margin:14px 0 0;padding:8px 15px;
  border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(255,255,255,.06);color:rgba(255,255,255,.86);font:700 13.5px/1 var(--g-f);
  text-transform:none;letter-spacing:0;box-shadow:none;cursor:pointer;transition:background .2s,border-color .2s}
.iqmg button.iqmg-howbtn:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.5)}
.iqmg button.iqmg-howbtn:focus-visible{outline:3px solid var(--g-goldtext);outline-offset:2px}
.iqmg button.iqmg-howbtn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
/* faded drawings of the game's own things (iqmg_floats()): low in the band, at the sides, drifting;
   the far ones smaller and soft */
.iqmg .iqmg-floats{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.iqmg .iqmg-floats svg{position:absolute;display:block;width:var(--s,56px);height:var(--s,56px);fill:none;stroke:#fff;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;opacity:.15;animation:iqmgFloat var(--d,11s) ease-in-out infinite alternate;animation-delay:var(--w,0s)}
.iqmg .iqmg-floats svg text{fill:none;stroke:#fff;stroke-width:1.4}
.iqmg .iqmg-floats svg:nth-child(1){left:5%;top:50%;--s:68px;--r:-8deg;--d:12s}
.iqmg .iqmg-floats svg:nth-child(2){left:15%;top:69%;--s:44px;--r:10deg;--d:9s;--w:-3s;opacity:.11;filter:blur(1px)}
.iqmg .iqmg-floats svg:nth-child(3){left:3%;top:81%;--s:54px;--r:6deg;--d:14s;--w:-6s}
.iqmg .iqmg-floats svg:nth-child(4){left:23%;top:88%;--s:36px;--r:-12deg;--d:10s;--w:-2s;opacity:.1;filter:blur(1.4px)}
.iqmg .iqmg-floats svg:nth-child(5){right:6%;top:48%;--s:60px;--r:9deg;--d:13s;--w:-4s}
.iqmg .iqmg-floats svg:nth-child(6){right:16%;top:68%;--s:40px;--r:-7deg;--d:10s;--w:-7s;opacity:.11;filter:blur(1px)}
.iqmg .iqmg-floats svg:nth-child(7){right:4%;top:80%;--s:64px;--r:-5deg;--d:15s;--w:-1s}
.iqmg .iqmg-floats svg:nth-child(8){right:24%;top:89%;--s:34px;--r:12deg;--d:11s;--w:-5s;opacity:.1;filter:blur(1.4px)}
@keyframes iqmgFloat{from{transform:translateY(0) rotate(var(--r,0deg))}to{transform:translateY(-16px) rotate(calc(var(--r,0deg) * -1))}}
.iqmg .iqmg-card:not([data-state="idle"]) .iqmg-floats,.iqmg .iqmg-card[data-mode="drive"] .iqmg-floats{display:none}
/* the band's foot melts into the page like the home page hero (its own gradient: page colour
   from 0 to 60% at two thirds to solid, over the bottom ~30%); the start screen's words end above
   it. Start screen only: a game in play keeps its full band. */
.iqmg.is-hero .iqmg-card[data-state="idle"]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;z-index:0;height:230px;pointer-events:none;
  background:linear-gradient(180deg,rgba(251,249,246,0) 0%,rgba(251,249,246,.6) 66%,var(--g-paper) 100%)}
.iqmg.is-hero .iqmg-card[data-state="idle"] .iqmg-start{padding-bottom:200px}
@container iqmg (max-width: 760px){
  .iqmg .iqmg-floats svg:nth-child(4),.iqmg .iqmg-floats svg:nth-child(8){display:none}
  .iqmg .iqmg-floats svg{width:calc(var(--s,56px) * .7);height:calc(var(--s,56px) * .7);opacity:.12}
  .iqmg .iqmg-floats svg:nth-child(1),.iqmg .iqmg-floats svg:nth-child(5){top:58%}
  .iqmg .iqmg-howto{padding:16px 12px}
  .iqmg.is-hero .iqmg-howto{padding-top:72px}
  .iqmg .iqmg-howto-h{font-size:24px;margin-bottom:14px}
  .iqmg ol.iqmg-howto-steps li{font-size:15px}
  .iqmg .iqmg-ex-chip{padding:6px 11px;font-size:12.5px}
  .iqmg .iqmg-ex-chip.is-mid{margin-top:-14px}
  .iqmg .iqmg-howto p.iqmg-ex-say{min-height:6em;font-size:15px}
  .iqmg.is-hero .iqmg-card[data-state="idle"]::after{height:150px}
  .iqmg.is-hero .iqmg-card[data-state="idle"] .iqmg-start{padding-bottom:130px}
}
.iqmg .iqmg-card[data-state="idle"] .iqmg-intro{color:rgba(255,255,255,.86)}
@keyframes iqmgDrift1{0%,100%{transform:translate(0,0)}50%{transform:translate(-48px,34px)}}
@keyframes iqmgDrift2{0%,100%{transform:translate(0,0)}50%{transform:translate(40px,-30px)}}
/* while playing, the band is the signal only: no glows */
.iqmg .iqmg-card:not([data-state="idle"]) .iqmg-aurora,.iqmg .iqmg-card:not([data-state="idle"]) .iqmg-gridtex,
.iqmg .iqmg-card[data-mode="drive"] .iqmg-aurora,.iqmg .iqmg-card[data-mode="drive"] .iqmg-gridtex{display:none}
.iqmg.is-hero .iqmg-card{border-radius:0;min-height:clamp(520px,calc(100vh - 140px),660px)}
/* under the site's floating navbar (the page body's sticky header.site: 67 px, 56 px on phones) the
   band slides up behind it, like the home page hero, so no strip of page shows above the band */
header.site ~ .bl-page > .bl-article > .iqmg.is-hero:first-child{margin-top:-67px}
header.site ~ .bl-page > .bl-article > .iqmg.is-hero:first-child .iqmg-card{padding-top:67px;min-height:clamp(587px,calc(100vh - 73px),727px)}
@media (max-width:760px){
  header.site ~ .bl-page > .bl-article > .iqmg.is-hero:first-child{margin-top:-56px}
  header.site ~ .bl-page > .bl-article > .iqmg.is-hero:first-child .iqmg-card{padding-top:56px;min-height:clamp(556px,calc(100svh - 64px),676px)}
}
.iqmg .iqmg-card.is-result{min-height:0;background:var(--g-paper);color:var(--g-ink)}
.iqmg:not(.is-hero) .iqmg-card.is-result{border:1px solid var(--g-line)}

/* start panel: the game's icon + title (like an app header), mode cards, level pills, Start */
.iqmg .iqmg-start{display:none;flex:1;flex-direction:column;align-items:center;justify-content:center;margin:0;padding:40px 22px 50px;text-align:center}
.iqmg .iqmg-card[data-state="idle"] .iqmg-start{display:flex}
.iqmg .iqmg-challenge{margin:0 0 22px;padding:9px 16px;border-radius:999px;border:1px solid rgba(245,194,107,.5);
  font:700 14px/1.35 var(--g-f);color:var(--g-goldtext)}
.iqmg .iqmg-head{display:flex;align-items:center;gap:20px;margin:0 0 30px;text-align:left}
.iqmg .iqmg-icon{display:block;width:72px;height:72px;flex:none;border-radius:22.5%;filter:drop-shadow(0 16px 24px rgba(0,0,0,.35))}
.iqmg .iqmg-head .iqmg-eyebrow{margin:0 0 10px;color:var(--g-goldtext)}
.iqmg .iqmg-h1{margin:0;padding:0;font:700 46px/1.03 var(--g-f);font-size:clamp(34px,7.4cqi,64px);color:#fff;letter-spacing:-.015em;text-transform:none}
.iqmg .iqmg-start .iqmg-head,.iqmg .iqmg-start .iqmg-modes{position:relative}
/* modes = picture cards (like the hub's covers): pick one, then Start */
.iqmg .iqmg-modes{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));gap:16px;width:min(880px,100%);margin:0 0 24px}
/* the whole card is the picture: the sharp picture edge to edge on top, fading into a soft blurred
   copy of itself (--art, set on the button) that fills the rest, darkened under the words */
.iqmg button.iqmg-mode,.iqmg button.iqmg-mode:hover,.iqmg button.iqmg-mode:focus{position:relative;display:flex;flex-direction:column;align-items:stretch;
  isolation:isolate;overflow:hidden;margin:0;padding:0 0 16px;border:1px solid rgba(255,255,255,.16);border-radius:20px;background:#0A1C33;color:#fff;
  text-align:left;text-transform:none;letter-spacing:0;cursor:pointer;
  box-shadow:0 24px 44px -30px rgba(0,0,0,.95);transition:transform .25s cubic-bezier(.2,.7,.3,1.2),border-color .2s,box-shadow .2s}
.iqmg button.iqmg-mode::before{content:"";position:absolute;inset:-24px;z-index:-2;background:var(--art,none) center 70%/cover no-repeat;
  filter:blur(22px) saturate(1.35);transform:scale(1.15);opacity:.95}
.iqmg button.iqmg-mode::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(4,10,22,0) 34%,rgba(4,10,22,.42) 62%,rgba(4,10,22,.7) 100%)}
.iqmg button.iqmg-mode:hover{transform:translateY(-3px);border-color:rgba(255,255,255,.38)}
.iqmg .iqmg-mode-art{display:block;aspect-ratio:2/1;margin:0 0 10px;overflow:hidden;
  -webkit-mask-image:linear-gradient(180deg,#000 78%,transparent);mask-image:linear-gradient(180deg,#000 78%,transparent)}
.iqmg .iqmg-mode-art img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s}
.iqmg button.iqmg-mode:hover .iqmg-mode-art img{transform:scale(1.05)}
.iqmg .iqmg-mode-name{display:block;padding:0 16px;font:700 18px/1.2 var(--g-f);color:#fff;text-shadow:0 1px 10px rgba(0,0,0,.5)}
.iqmg .iqmg-mode-line{display:block;padding:4px 16px 0;font:400 13.5px/1.35 var(--g-f);color:rgba(255,255,255,.86);text-shadow:0 1px 8px rgba(0,0,0,.5)}
.iqmg .iqmg-mode-note{display:block;margin:10px 16px 0;font:700 10.5px/1.3 var(--g-f);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.72)}
.iqmg .iqmg-mode-note.is-best{color:var(--g-goldtext)}
.iqmg .iqmg-mode-check{position:absolute;top:12px;right:12px;width:26px;height:26px;border-radius:50%;opacity:0;transform:scale(.5);
  transition:opacity .2s,transform .25s cubic-bezier(.2,.7,.3,1.4);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat,var(--g-gold);
  box-shadow:0 6px 14px -4px rgba(228,85,31,.7)}
.iqmg button.iqmg-mode.is-on,.iqmg button.iqmg-mode.is-on:hover{transform:translateY(-3px);border-color:var(--g-goldtext);
  box-shadow:inset 0 0 0 1px var(--g-goldtext),0 0 0 3px rgba(245,194,107,.22),0 30px 54px -26px rgba(245,166,35,.6)}
.iqmg button.iqmg-mode.is-on .iqmg-mode-check{opacity:1;transform:scale(1)}
.iqmg button.iqmg-mode.is-on .iqmg-mode-line{color:#fff}
.iqmg button.iqmg-mode:focus-visible{outline:2px solid #fff;outline-offset:3px}
.iqmg .iqmg-intro{margin:0 0 24px;font:400 17.5px/1.6 var(--g-f);color:var(--g-soft);max-width:36em}
.iqmg .iqmg-levels{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0 0 18px}
.iqmg button.iqmg-level,.iqmg button.iqmg-level:hover,.iqmg button.iqmg-level:focus{display:inline-flex;align-items:center;gap:7px;margin:0;padding:9px 16px;
  border:1px solid rgba(255,255,255,.22);border-radius:999px;background:transparent;box-shadow:none;cursor:pointer;
  font:700 13.5px/1 var(--g-f);color:var(--g-soft);text-transform:none;letter-spacing:0}
.iqmg button.iqmg-level:hover{border-color:rgba(255,255,255,.5);color:#fff}
.iqmg button.iqmg-level.is-on,.iqmg button.iqmg-level.is-on:hover{background:#fff;border-color:#fff;color:var(--g-navy)}
.iqmg button.iqmg-level.is-locked,.iqmg button.iqmg-level.is-locked:hover{border-color:rgba(255,255,255,.12);color:#6F88A6;cursor:not-allowed}
.iqmg button.iqmg-level:focus-visible{outline:2px solid var(--g-goldtext);outline-offset:3px}
.iqmg .iqmg-lock{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8}
.iqmg button.iqmg-go,.iqmg button.iqmg-go:hover,.iqmg button.iqmg-go:focus{padding:18px 46px;font-size:18px}
.iqmg .iqmg-start .iqmg-meta{color:var(--g-dim)}

/* play area: the whole band is the signal */
.iqmg .iqmg-stage{display:none;position:relative;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:16px;margin:0;
  padding:36px 22px 64px;text-align:center;color:#fff;cursor:pointer;user-select:none;-webkit-user-select:none;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;overflow:hidden;outline:none}
.iqmg .iqmg-card:not([data-state="idle"]) .iqmg-stage{display:flex}
.iqmg .iqmg-card.is-result .iqmg-stage,.iqmg .iqmg-card.is-result .iqmg-dots{display:none}
.iqmg .iqmg-stage:focus-visible{box-shadow:inset 0 0 0 3px var(--g-goldtext)}
.iqmg .iqmg-stage-title{position:relative;z-index:2;font:700 60px/1 var(--g-f);font-size:clamp(46px,9cqi,84px);letter-spacing:-.01em}
.iqmg .iqmg-stage-sub{position:relative;z-index:2;max-width:32em;font:400 17px/1.55 var(--g-f);color:rgba(255,255,255,.8)}
.iqmg .iqmg-stage-hint{position:relative;z-index:2;font:400 13.5px/1.4 var(--g-f);color:rgba(255,255,255,.58)}
.iqmg .iqmg-stage-title:empty,.iqmg .iqmg-stage-sub:empty,.iqmg .iqmg-stage-hint:empty{display:none}
.iqmg .iqmg-card[data-state="early"] .iqmg-stage-title,.iqmg .iqmg-card[data-state="wrong"] .iqmg-stage-title,
.iqmg .iqmg-card[data-state="trap"] .iqmg-stage-title,.iqmg .iqmg-card[data-state="slow"] .iqmg-stage-title,
.iqmg .iqmg-card[data-state="braked"] .iqmg-stage-title{color:var(--g-goldtext);font-size:clamp(36px,7cqi,62px)}

/* Classic: red, then green; blue = the trap */
.iqmg .iqmg-card[data-mode="classic"][data-state="wait"]{background:#B3261E}
.iqmg .iqmg-card[data-mode="classic"][data-state="go"]{background:#12874A}
.iqmg .iqmg-card[data-mode="classic"][data-state="go"][data-level="2"]{background:#B3261E}
.iqmg .iqmg-card[data-mode="classic"][data-state="nogo"]{background:#1D4ED8}
.iqmg .iqmg-card[data-mode="classic"][data-state="held"]{background:#14567F}
/* Choice: one half turns green, a thin line down the middle */
.iqmg .iqmg-target{display:none}
.iqmg .iqmg-card[data-state="go"][data-level="2"] .iqmg-target{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;
  width:50%;background:#12874A;font:700 30px/1 var(--g-f);font-size:clamp(24px,4.4cqi,36px);color:#fff}
.iqmg .iqmg-stage.side-left .iqmg-target{left:0}
.iqmg .iqmg-stage.side-right .iqmg-target{left:50%}
.iqmg .iqmg-card[data-mode="classic"][data-level="2"][data-state="wait"] .iqmg-stage::after,
.iqmg .iqmg-card[data-mode="classic"][data-level="2"][data-state="go"] .iqmg-stage::after{content:"";position:absolute;top:0;bottom:0;left:50%;z-index:2;
  border-left:1px dashed rgba(255,255,255,.4)}

/* Emergency stop: a golden-hour drive seen from inside the car (owner: "trees, a car,
   buildings, like JustPark"; our own art). The scene fills the whole band, so it also shows,
   dimmed, behind the start screen. The horizon sits at 56%. */
.iqmg .iqmg-card[data-mode="lights"]:not([data-state="idle"]){background:var(--g-dark)}
.iqmg .iqmg-card[data-mode="drive"]:not([data-state="idle"]){background:#0F1B2C}
.iqmg .iqmg-start{position:relative;z-index:1}
.iqmg .iqmg-stage{z-index:1}
.iqmg .iqmg-road{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.iqmg .iqmg-road::after{content:"";position:absolute;inset:0;z-index:5;background:rgba(9,24,44,.76);transition:background .2s}
.iqmg .iqmg-card[data-state="drive"] .iqmg-road::after,.iqmg .iqmg-card[data-state="stop"] .iqmg-road::after{background:rgba(9,24,44,0)}
.iqmg .iqmg-card.is-result .iqmg-road{display:none}
.iqmg .iqmg-sky{position:absolute;left:0;right:0;top:0;height:56%;overflow:hidden;
  background:linear-gradient(180deg,#3E6D99 0%,#6F9CC1 42%,#D8B48F 84%,#F2CF9C 100%)}
.iqmg .iqmg-sun{position:absolute;left:50%;bottom:0;width:15cqi;min-width:90px;max-width:190px;aspect-ratio:1;border-radius:50%;transform:translate(-50%,40%);
  background:radial-gradient(circle,#FFEBB8 0 52%,#FFD68D 72%,#FFC46B 100%);box-shadow:0 0 60px 26px rgba(255,206,132,.55),0 0 170px 80px rgba(255,190,120,.28)}
.iqmg .iqmg-hills{position:absolute;left:0;right:0;bottom:44%;width:100%;height:19%}
.iqmg .iqmg-skyline{position:absolute;left:0;right:0;bottom:44%;width:100%;height:8%}
.iqmg .iqmg-ground{position:absolute;left:0;right:0;top:56%;bottom:0;overflow:hidden;perspective:300px;perspective-origin:50% 0;background:#6A8758}
.iqmg .iqmg-ground::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(242,207,156,.85) 0%,rgba(242,207,156,0) 30%)}
/* the road is a long plane tipped back in 3D: true perspective, and its lane marks move towards you */
.iqmg .iqmg-plane{position:absolute;left:-100%;right:-100%;bottom:0;height:900%;transform-origin:50% 100%;transform:rotateX(82deg);
  background:
    linear-gradient(180deg,#F2C14E 0 46%,transparent 46%) 50% 0/10px 150px repeat-y,
    linear-gradient(90deg,transparent calc(31% - 7px),rgba(255,255,255,.92) calc(31% - 7px) 31%,transparent 31% 69%,rgba(255,255,255,.92) 69% calc(69% + 7px),transparent calc(69% + 7px)) 0 0/100% 100% no-repeat,
    linear-gradient(90deg,#5D7C4E 0 25%,#A7AD93 25% 31%,#596372 31% 69%,#A7AD93 69% 75%,#5D7C4E 75%)}
.iqmg .iqmg-card[data-state="drive"] .iqmg-plane,.iqmg .iqmg-card[data-state="stop"] .iqmg-plane{animation:iqmgRoad .32s linear infinite}
@keyframes iqmgRoad{to{background-position:50% 150px,0 0,0 0}}
/* trees, houses and oncoming cars come out of the distance and pass by (newest at the back) */
.iqmg .iqmg-traffic{position:absolute;left:0;right:0;top:56%;bottom:0}
.iqmg .iqmg-pass{position:absolute;top:0;transform-origin:50% 100%;animation:1.7s cubic-bezier(.5,0,.95,.5) forwards}
.iqmg .iqmg-pass svg{display:block;width:100%;height:100%}
.iqmg .iqmg-pass.is-tree{width:60px;height:128px;margin:-128px 0 0 -30px}
.iqmg .iqmg-pass.is-tree.on-left{animation-name:iqmgTreeL}
.iqmg .iqmg-pass.is-tree.on-right{animation-name:iqmgTreeR}
.iqmg .iqmg-pass.is-tree.is-far.on-left{animation-name:iqmgTreeFarL}
.iqmg .iqmg-pass.is-tree.is-far.on-right{animation-name:iqmgTreeFarR}
.iqmg .iqmg-pass.is-house{width:120px;height:106px;margin:-106px 0 0 -60px;animation-duration:1.9s}
.iqmg .iqmg-pass.is-house.on-left{animation-name:iqmgHouseL}
.iqmg .iqmg-pass.is-house.on-right{animation-name:iqmgHouseR}
.iqmg .iqmg-pass.is-car{width:8cqi;height:5.6cqi;margin:-5.6cqi 0 0 -4cqi;animation:iqmgCar 1.25s cubic-bezier(.55,0,.95,.55) forwards}
@keyframes iqmgTreeL{0%{left:44%;top:0;transform:scale(.05);opacity:0}12%{opacity:1}100%{left:-36%;top:116%;transform:scale(3.2);opacity:1}}
@keyframes iqmgTreeR{0%{left:56%;top:0;transform:scale(.05);opacity:0}12%{opacity:1}100%{left:136%;top:116%;transform:scale(3.2);opacity:1}}
@keyframes iqmgTreeFarL{0%{left:41%;top:0;transform:scale(.05);opacity:0}12%{opacity:1}100%{left:-70%;top:112%;transform:scale(3.6);opacity:1}}
@keyframes iqmgTreeFarR{0%{left:59%;top:0;transform:scale(.05);opacity:0}12%{opacity:1}100%{left:170%;top:112%;transform:scale(3.6);opacity:1}}
@keyframes iqmgHouseL{0%{left:39%;top:0;transform:scale(.06);opacity:0}15%{opacity:1}100%{left:-95%;top:122%;transform:scale(3.6);opacity:1}}
@keyframes iqmgHouseR{0%{left:61%;top:0;transform:scale(.06);opacity:0}15%{opacity:1}100%{left:195%;top:122%;transform:scale(3.6);opacity:1}}
@keyframes iqmgCar{0%{left:47.6%;top:0;transform:scale(.05);opacity:0}10%{opacity:1}100%{left:19%;top:98%;transform:scale(2.7);opacity:1}} /* the oncoming lane */
/* inside the car (left-hand drive, US/Europe): window pillars, the dashboard stretched across, the
   centre console and the steering wheel with the gauges seen through it; each piece keeps its own
   shape at every width, anchored to the bottom of the band */
.iqmg .iqmg-cabin{position:absolute;inset:0;z-index:2;pointer-events:none} /* over the trap signs (z 1) too */
.iqmg .iqmg-cabin svg{position:absolute;display:block}
.iqmg .iqmg-pillar.is-left{left:0;bottom:12%;width:10%;height:44%}
.iqmg .iqmg-pillar.is-right{right:0;bottom:12%;width:5.5%;height:36%}
.iqmg .iqmg-dashbody{left:0;bottom:0;width:100%;height:17%}
.iqmg .iqmg-console{left:64%;bottom:0;width:auto;height:15%;aspect-ratio:360/150;max-width:30cqi;transform:translateX(-50%)}
.iqmg .iqmg-wheel{left:28%;bottom:0;width:auto;height:26%;aspect-ratio:2/1;max-width:60cqi;transform:translateX(-50%)}
@container iqmg (max-width: 560px){
  .iqmg .iqmg-wheel{left:31%}
  .iqmg .iqmg-console{left:79%;max-width:36cqi}
  .iqmg .iqmg-pillar.is-left{width:12%}
}
/* STOP: one sign on a post at the right of the road ahead; it appears in a single frame. Then it
   comes towards the car like everything on the road: its layer grows from the vanishing point
   (50% 56%) as a post that near the horizon would at 60 mph (scale T/(T - t), T = 2.2 s), so it
   slides up and to the right and has passed by 2.06 s, before "Still there?" at 3 s. Braking stops
   the car, so the sign and everything passing stop where they are. */
.iqmg .iqmg-stop{display:none;position:absolute;inset:0;z-index:1;transform-origin:50% 56%;animation:iqmgStop 2.0625s linear forwards}
.iqmg .iqmg-card[data-state="stop"] .iqmg-stop,.iqmg .iqmg-card[data-state="braked"] .iqmg-stop{display:block}
.iqmg .iqmg-octagon{display:block;position:absolute;left:calc(51.5% + clamp(60px,11cqi,95px));bottom:53%;width:clamp(120px,22cqi,190px);aspect-ratio:1;
  transform:translateX(-50%);background:#fff;clip-path:polygon(29% 0,71% 0,100% 29%,100% 71%,71% 100%,29% 100%,0 71%,0 29%)}
.iqmg .iqmg-octagon span{position:absolute;inset:5%;display:grid;place-items:center;background:#B3261E;color:#fff;font:700 40px/1 var(--g-f);
  font-size:clamp(28px,5.5cqi,44px);letter-spacing:.04em;clip-path:polygon(29% 0,71% 0,100% 29%,100% 71%,71% 100%,29% 100%,0 71%,0 29%)}
.iqmg .iqmg-stop-post{display:block;position:absolute;left:calc(51.5% + clamp(60px,11cqi,95px));top:46%;bottom:42.5%;width:calc(clamp(120px,22cqi,190px) * .07);
  transform:translateX(-50%);background:linear-gradient(90deg,#8D99A8,#D3DAE2 50%,#8D99A8)}
@keyframes iqmgStop{0%{transform:scale(1)}9.7%{transform:scale(1.1)}19.39%{transform:scale(1.222)}29.09%{transform:scale(1.375)}38.79%{transform:scale(1.571)}48.48%{transform:scale(1.833)}58.18%{transform:scale(2.2)}67.88%{transform:scale(2.75)}77.58%{transform:scale(3.667)}87.27%{transform:scale(5.5)}92.12%{transform:scale(7.333)}96.97%{transform:scale(11)}100%{transform:scale(16)}}
.iqmg .iqmg-card[data-state="braked"] .iqmg-pass,.iqmg .iqmg-card[data-state="braked"] .iqmg-sign,
.iqmg .iqmg-card[data-state="braked"] .iqmg-stop{animation-play-state:paused}
/* the fake signs (traps): roadside signs on posts that come towards you like the lamps */
.iqmg .iqmg-sign{position:absolute;top:0;left:60%;z-index:1;width:44px;height:104px;margin:-104px 0 0 -22px;transform-origin:50% 100%;
  animation:iqmgSignR 1.5s cubic-bezier(.5,0,.95,.5) forwards}
.iqmg .iqmg-sign.on-left{left:40%;animation-name:iqmgSignL}
.iqmg .iqmg-sign::before{content:"";position:absolute;left:20px;bottom:0;width:4px;height:62px;background:#7A8797}
.iqmg .iqmg-sign span{position:absolute;left:0;top:0;width:44px;height:44px;display:grid;place-items:center;font:700 16px/1 var(--g-f)}
.iqmg .iqmg-sign.is-limit span{border-radius:50%;background:#fff;border:4px solid #B3261E;color:var(--g-ink)}
.iqmg .iqmg-sign.is-warn span{padding-top:10px;background:#F2B33D;color:var(--g-dark);clip-path:polygon(50% 0,100% 92%,0 92%)}
.iqmg .iqmg-sign.is-park span{background:#1D4ED8;border:2px solid #fff;color:#fff;border-radius:7px}
@keyframes iqmgSignL{0%{left:43%;transform:scale(.08);opacity:0}15%{opacity:1}100%{left:-20%;top:112%;transform:scale(2.6);opacity:1}}
@keyframes iqmgSignR{0%{left:57%;transform:scale(.08);opacity:0}15%{opacity:1}100%{left:120%;top:112%;transform:scale(2.6);opacity:1}}

/* Brain lights: nine thin rings and thin lines */
.iqmg .iqmg-lhud,.iqmg .iqmg-board{display:none}
.iqmg .iqmg-card[data-state="lights"] .iqmg-lhud{display:flex}
.iqmg .iqmg-card[data-state="lights"] .iqmg-board{display:block}
.iqmg .iqmg-card[data-state="lights"] .iqmg-stage{justify-content:flex-start;padding-top:28px}
.iqmg .iqmg-lhud{gap:34px;align-items:baseline}
.iqmg .iqmg-lhud b{display:block;font:700 34px/1 var(--g-f);color:#fff;text-align:center;font-variant-numeric:lining-nums tabular-nums}
.iqmg .iqmg-lhud .iqmg-caps{margin-top:6px;text-align:center;color:var(--g-dim)}
.iqmg .iqmg-board{position:relative;width:min(400px,72cqi,50vh);aspect-ratio:1;margin:6px auto 0}
.iqmg .iqmg-board svg{position:absolute;inset:0;width:100%;height:100%}
.iqmg .iqmg-board line{stroke:rgba(201,214,230,.16);stroke-width:.5}
.iqmg .iqmg-light{position:absolute;width:15%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);cursor:pointer;
  border:1.5px solid rgba(201,214,230,.45);background:rgba(10,28,51,.92)}
.iqmg .iqmg-light.is-on{border-color:transparent;background:var(--g-gold);box-shadow:0 0 0 8px rgba(245,194,107,.14),0 0 34px rgba(245,166,35,.55)}
.iqmg .iqmg-light.is-red{border-color:transparent;background:#D7261E;box-shadow:0 0 0 8px rgba(215,38,30,.16),0 0 30px rgba(215,38,30,.5)}
.iqmg .iqmg-light.is-hit{border-color:transparent;background:#12874A}
.iqmg .iqmg-light.is-bad,.iqmg .iqmg-light.is-miss{box-shadow:0 0 0 4px rgba(215,38,30,.6)}

/* ---------- board games (the play area holds its own buttons) ---------- */
.iqmg .iqmg-card[data-kind="board"] .iqmg-stage{cursor:default;justify-content:flex-start;gap:18px;padding:30px 18px 40px}
.iqmg .iqmg-hud2{position:relative;z-index:2;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 14px;margin:0}
.iqmg .iqmg-hud2 > div{min-width:74px;padding:8px 14px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);text-align:center}
.iqmg .iqmg-hud2 b{display:block;font:700 24px/1 var(--g-f);color:#fff;font-variant-numeric:lining-nums tabular-nums}
.iqmg .iqmg-hud2 .iqmg-caps{margin-top:6px;font-size:10.5px;color:var(--g-dim)}
.iqmg .iqmg-hud2 > div.is-turn{background:rgba(245,194,107,.14);border-color:var(--g-goldtext)}
.iqmg .iqmg-hud2 > div.is-turn .iqmg-caps{color:var(--g-goldtext)}

/* Memory Game: a board that fits the screen, cards that turn in 3D */
.iqmg .iqmg-mboard{position:relative;z-index:2;display:grid;grid-template-columns:repeat(var(--cols,4),minmax(0,1fr));gap:10px;width:100%;margin:0 auto;perspective:1100px}
.iqmg button.iqmg-mcard,.iqmg button.iqmg-mcard:hover,.iqmg button.iqmg-mcard:focus{position:relative;display:block;width:100%;aspect-ratio:4/5;margin:0;padding:0;
  border:0;border-radius:14px;background:transparent;box-shadow:none;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.iqmg button.iqmg-mcard:focus-visible{outline:3px solid var(--g-goldtext);outline-offset:3px}
.iqmg .iqmg-mcard-in{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .22s ease}
.iqmg .iqmg-mcard.is-up .iqmg-mcard-in,.iqmg .iqmg-mcard.is-matched .iqmg-mcard-in{transform:rotateY(180deg)}
.iqmg .iqmg-mcard-back,.iqmg .iqmg-mcard-face{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  border-radius:14px;-webkit-backface-visibility:hidden;backface-visibility:hidden}
.iqmg .iqmg-mcard-back{background:linear-gradient(150deg,#1A4C82 0%,#0F355E 55%,#0A2747 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),inset 0 2px 0 rgba(255,255,255,.1),0 12px 24px -16px rgba(0,0,0,.9);transition:filter .2s}
.iqmg .iqmg-mcard-back::before{content:"";position:absolute;inset:7%;border-radius:9px;border:1px solid rgba(245,194,107,.28)}
.iqmg .iqmg-mcard-back::after{content:"";width:24%;aspect-ratio:1;border:2px solid rgba(245,194,107,.85);border-radius:4px;transform:rotate(45deg)}
.iqmg button.iqmg-mcard:hover .iqmg-mcard-back{filter:brightness(1.18)}
.iqmg .iqmg-mcard-face{gap:7%;transform:rotateY(180deg);background:#FBF9F6;box-shadow:inset 0 0 0 1px #E9E4DC,0 12px 24px -16px rgba(0,0,0,.75)}
.iqmg .iqmg-mcard-face svg{display:block;width:52%;height:auto;aspect-ratio:1;padding:10%;border-radius:50%;
  background:color-mix(in srgb,var(--acc) 15%,transparent);fill:none;stroke:var(--acc);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.iqmg .iqmg-mcard-face span{font:700 11px/1 var(--g-f);font-size:clamp(8px,1.5cqi,12px);letter-spacing:.12em;text-transform:uppercase;color:var(--g-navy)}
.iqmg .iqmg-mcard.is-matched{cursor:default}
.iqmg .iqmg-mcard.is-matched .iqmg-mcard-face{opacity:.78}
.iqmg .iqmg-mcard.is-matched .iqmg-mcard-face::after{content:"";position:absolute;top:7%;right:7%;width:20%;aspect-ratio:1;border-radius:50%;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/62% no-repeat,var(--g-gold)}
.iqmg .iqmg-mcard.is-miss .iqmg-mcard-face{box-shadow:inset 0 0 0 2px #D7261E,0 12px 24px -16px rgba(0,0,0,.75)}
@container iqmg (max-width: 560px){
  .iqmg .iqmg-card[data-kind="board"] .iqmg-stage{gap:12px;padding:22px 10px 30px}
  .iqmg .iqmg-mboard{gap:6px}
  .iqmg button.iqmg-mcard,.iqmg .iqmg-mcard-back,.iqmg .iqmg-mcard-face{border-radius:10px}
  .iqmg .iqmg-hud2{gap:6px}
  .iqmg .iqmg-hud2 > div{min-width:62px;padding:7px 10px}
  .iqmg .iqmg-hud2 b{font-size:20px}
}

/* Digit Span: the number, the answer slots, the keypad */
.iqmg .iqmg-dsp{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;min-height:120px;max-width:100%;padding:0 10px;
  font:700 72px/1 var(--g-f);font-size:clamp(48px,10cqi,96px);letter-spacing:.12em;color:#fff;font-variant-numeric:lining-nums tabular-nums;
  text-align:center;overflow-wrap:anywhere}
.iqmg .iqmg-dsp.is-on{color:#fff;text-shadow:0 0 40px rgba(245,194,107,.55)}
.iqmg .iqmg-dsp.is-ask{font:700 22px/1.35 var(--g-f);letter-spacing:0;color:var(--g-soft)}
.iqmg .iqmg-card[data-state="ok"] .iqmg-dsp{color:#8BE3B1}
.iqmg .iqmg-card[data-state="miss"] .iqmg-dsp{color:#FFB9AE}
.iqmg .iqmg-dans{position:relative;z-index:2;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;min-height:56px;max-width:640px}
.iqmg .iqmg-slot2{display:grid;place-items:center;width:44px;height:56px;border-radius:12px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.05);
  font:700 28px/1 var(--g-f);color:#fff;font-variant-numeric:lining-nums tabular-nums}
.iqmg .iqmg-slot2.is-filled{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.42)}
.iqmg .iqmg-slot2.is-ok{background:rgba(18,135,74,.38);border-color:#47C585}
.iqmg .iqmg-slot2.is-bad{background:rgba(215,38,30,.38);border-color:#FF7D70}
.iqmg .iqmg-keypad{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(340px,100%);margin:4px 0 0;transition:opacity .2s}
.iqmg .iqmg-keypad.is-locked{opacity:.32}
.iqmg button.iqmg-key,.iqmg button.iqmg-key:hover,.iqmg button.iqmg-key:focus{height:60px;margin:0;padding:0;border:1px solid rgba(255,255,255,.18);border-radius:14px;
  background:rgba(255,255,255,.08);color:#fff;font:700 24px/1 var(--g-f);text-transform:none;letter-spacing:0;box-shadow:none;cursor:pointer;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:background .15s,transform .1s}
.iqmg button.iqmg-key:hover{background:rgba(255,255,255,.16)}
.iqmg button.iqmg-key:active{transform:scale(.97)}
.iqmg button.iqmg-key.is-del,.iqmg button.iqmg-key.is-ok{font-size:15px;letter-spacing:.04em}
.iqmg button.iqmg-key.is-ok,.iqmg button.iqmg-key.is-ok:hover{background:var(--g-gold);border-color:transparent;text-shadow:0 1px 2px rgba(150,50,0,.25)}
.iqmg button.iqmg-key:disabled{cursor:default}
.iqmg button.iqmg-key:focus-visible{outline:3px solid var(--g-goldtext);outline-offset:2px}
.iqmg .iqmg-dcompare{margin:22px 0 0}
.iqmg .iqmg-dcompare .iqmg-caps{margin:0 0 12px}
.iqmg .iqmg-drow{display:grid;grid-template-columns:7em minmax(0,1fr);align-items:center;gap:12px;padding:9px 0;border-top:1px solid var(--g-line)}
.iqmg .iqmg-drow-l{font:400 13.5px/1.3 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-drow-c{display:flex;flex-wrap:wrap;gap:5px}
.iqmg .iqmg-drow-c span{display:grid;place-items:center;min-width:30px;height:36px;padding:0 4px;border-radius:8px;background:#F2F4F8;
  font:700 18px/1 var(--g-f);color:var(--g-navy);font-variant-numeric:lining-nums tabular-nums}
.iqmg .iqmg-drow-c span.is-bad{background:#FDE7E4;color:#B3261E;box-shadow:inset 0 0 0 1px #F3B2AA}
.iqmg .iqmg-result p.iqmg-dcompare-why{margin:12px 0 0;font:700 14.5px/1.5 var(--g-f);color:var(--g-link)}
@container iqmg (max-width: 560px){
  .iqmg .iqmg-dsp{min-height:96px}
  .iqmg .iqmg-slot2{width:36px;height:48px;font-size:22px;border-radius:10px}
  .iqmg .iqmg-dans{gap:6px}
  .iqmg button.iqmg-key,.iqmg button.iqmg-key:hover,.iqmg button.iqmg-key:focus{height:56px}
}

/* Tower of Hanoi: three full-height peg columns (tap or drag), brass disks from gold to copper;
   size is the cue, so it works for colour-blind players. 8 disks fit a phone (disks 22px min). */
.iqmg .iqmg-hanoi{--bh:clamp(232px,40cqi,340px);--dh:clamp(22px,calc(var(--bh) / (var(--n) + 2.6)),44px);position:relative;z-index:2;display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));width:min(780px,100%);margin:0 auto;touch-action:none;user-select:none;-webkit-user-select:none}
.iqmg button.iqmg-peg,.iqmg button.iqmg-peg:hover,.iqmg button.iqmg-peg:focus{position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;
  height:calc((var(--n) + 2.2) * (var(--dh) + 3px) + 40px);min-width:0;margin:0;padding:0 4px;border:0;border-radius:18px;background:transparent;box-shadow:none;
  color:#fff;font:inherit;text-transform:none;letter-spacing:0;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:none;transition:background .15s}
.iqmg button.iqmg-peg:hover,.iqmg button.iqmg-peg.is-over,.iqmg button.iqmg-peg.is-picked{background:rgba(255,255,255,.05)}
.iqmg button.iqmg-peg:focus-visible{outline:3px solid var(--g-goldtext);outline-offset:-3px}
.iqmg button.iqmg-peg.is-target::after{content:"";position:absolute;inset:2px 3px 40px;border:2px dashed rgba(245,194,107,.72);border-radius:16px;pointer-events:none}
.iqmg button.iqmg-peg.is-goal::before{content:"";position:absolute;inset:9px 10px 47px;border:1.5px dotted rgba(201,214,230,.7);border-radius:12px;pointer-events:none}
.iqmg .iqmg-peg-rod{position:absolute;left:50%;bottom:40px;width:10px;height:calc((var(--n) + 1.2) * (var(--dh) + 3px));margin-left:-5px;border-radius:6px 6px 0 0;
  background:linear-gradient(90deg,rgba(255,255,255,.16),rgba(255,255,255,.32) 50%,rgba(255,255,255,.14))}
.iqmg .iqmg-peg-disks{position:relative;display:flex;flex-direction:column-reverse;align-items:center;gap:3px;width:100%;margin:0 0 3px}
.iqmg .iqmg-peg-name{position:relative;display:block;width:100%;height:37px;padding:15px 0 0;font:700 13px/1 var(--g-f);letter-spacing:.16em;color:var(--g-dim);text-align:center}
.iqmg .iqmg-peg-name::before{content:"";position:absolute;left:-4px;right:-4px;top:0;height:9px;background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,.12))}
.iqmg button.iqmg-peg:first-child .iqmg-peg-name::before{left:6%;border-radius:6px 0 0 6px}
.iqmg button.iqmg-peg:last-child .iqmg-peg-name::before{right:6%;border-radius:0 6px 6px 0}
.iqmg button.iqmg-peg.is-target .iqmg-peg-name{color:var(--g-goldtext)}
.iqmg button.iqmg-peg.is-target .iqmg-peg-name::after{content:" · goal";letter-spacing:.12em;text-transform:uppercase;font-size:11px}
.iqmg .iqmg-disk{--t:calc((var(--s) - 1) / (var(--n) - 1));position:relative;display:flex;align-items:center;justify-content:center;flex:none;
  width:calc(30% + 65% * var(--t));height:var(--dh);border-radius:999px;background:#E0893A;
  background:linear-gradient(180deg,rgba(255,255,255,.3),rgba(255,255,255,0) 55%),color-mix(in srgb,#9E3A12 calc(var(--t) * 100%),#FFD27A);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2),0 6px 12px -6px rgba(0,0,0,.65);color:#3A1E06;
  font:700 13px/1 var(--g-f);font-size:clamp(10px,calc(var(--dh) * .42),15px);font-variant-numeric:lining-nums tabular-nums;transition:transform .16s ease}
.iqmg .iqmg-disk.is-dark{color:#fff}
.iqmg .iqmg-disk.is-up{transform:translateY(calc(-1 * var(--dh) - 12px));box-shadow:inset 0 0 0 2px #fff,0 16px 22px -8px rgba(0,0,0,.7)}
.iqmg .iqmg-disk.is-in{animation:iqmgDrop .16s ease-out}
.iqmg .iqmg-disk.is-group{box-shadow:inset 0 0 0 2px rgba(201,214,230,.95),0 6px 12px -6px rgba(0,0,0,.65)}
.iqmg .iqmg-disk.is-gone{visibility:hidden}
.iqmg .iqmg-ghost{position:absolute;left:0;top:0;z-index:6;margin:0;pointer-events:none;transition:none;animation:none;
  box-shadow:inset 0 0 0 2px #fff,0 18px 30px -10px rgba(0,0,0,.75)}
.iqmg button.iqmg-peg.is-from .iqmg-disk:last-child{transform:translateY(-10px);box-shadow:inset 0 0 0 2px var(--g-goldtext),0 0 0 4px rgba(245,194,107,.35)}
.iqmg button.iqmg-peg.is-to{background:rgba(245,194,107,.1)}
.iqmg button.iqmg-peg.is-to .iqmg-peg-rod{background:rgba(245,194,107,.7)}
.iqmg button.iqmg-peg.is-to .iqmg-peg-rod::after{content:"";position:absolute;left:50%;top:-30px;width:14px;height:14px;margin-left:-8px;
  border-right:3px solid var(--g-goldtext);border-bottom:3px solid var(--g-goldtext);transform:rotate(45deg);animation:iqmgPoint .75s ease-in-out infinite alternate}
.iqmg button.iqmg-peg.is-no{animation:iqmgNo .32s}
.iqmg .iqmg-hanoi.is-solved .is-target .iqmg-disk{box-shadow:inset 0 0 0 1px rgba(255,255,255,.3),0 0 24px rgba(245,194,107,.6)}
@keyframes iqmgDrop{from{transform:translateY(calc(-1 * var(--dh)))}to{transform:none}}
@keyframes iqmgPoint{to{translate:0 6px}}
@keyframes iqmgNo{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
.iqmg .iqmg-hud2 > div.is-warn b{color:#FFB98A}
.iqmg .iqmg-hud2 .is-short{display:none}
.iqmg .iqmg-hteach{position:relative;z-index:2;max-width:40em;margin:0;padding:10px 16px;border-radius:12px;background:rgba(201,214,230,.1);
  border:1px solid rgba(201,214,230,.22);font:400 14.5px/1.5 var(--g-f);color:var(--g-soft)}
.iqmg .iqmg-hmsg{position:relative;z-index:2;min-height:1.5em;max-width:40em;margin:0;font:400 14px/1.5 var(--g-f);color:rgba(255,255,255,.66)}
.iqmg .iqmg-htools{position:relative;z-index:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 10px}
.iqmg button.iqmg-tool,.iqmg button.iqmg-tool:hover,.iqmg button.iqmg-tool:focus{margin:0;padding:10px 18px;border:1px solid rgba(255,255,255,.22);border-radius:999px;
  background:rgba(255,255,255,.06);box-shadow:none;color:#fff;font:700 14px/1 var(--g-f);text-transform:none;letter-spacing:.01em;cursor:pointer;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:background .15s,border-color .15s}
.iqmg button.iqmg-tool:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.4)}
.iqmg button.iqmg-tool:disabled{opacity:.38;cursor:default}
.iqmg button.iqmg-tool:focus-visible{outline:3px solid var(--g-goldtext);outline-offset:2px}
.iqmg .iqmg-teach{display:inline-flex;align-items:center;gap:9px;margin:0 0 0 6px;font:700 14px/1 var(--g-f);color:var(--g-soft);cursor:pointer}
.iqmg .iqmg-teach input{-webkit-appearance:none;appearance:none;position:relative;flex:none;width:38px;height:22px;margin:0;border:0;border-radius:999px;
  background:rgba(255,255,255,.2);cursor:pointer;transition:background .15s}
.iqmg .iqmg-teach input::before{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}
.iqmg .iqmg-teach input:checked{background:var(--g-goldtext)}
.iqmg .iqmg-teach input:checked::before{transform:translateX(16px)}
.iqmg .iqmg-teach input:focus-visible{outline:3px solid var(--g-goldtext);outline-offset:2px}
/* the result: the path, move by move (colour + a key), and the full move list */
.iqmg .iqmg-hpath{margin:24px 0 0;padding:18px 0 0;border-top:1px solid var(--g-line)}
.iqmg .iqmg-hpath .iqmg-caps{margin:0 0 12px}
.iqmg .iqmg-hpath-strip{display:flex;flex-wrap:wrap;gap:3px}
.iqmg .iqmg-hpath-strip i{width:10px;height:14px;border-radius:3px;background:var(--g-navy2)}
.iqmg .iqmg-hpath-strip i.is-off{background:#F0821E}
.iqmg .iqmg-result p.iqmg-hpath-key{display:flex;flex-wrap:wrap;gap:6px 16px;margin:10px 0 0;font:400 12.5px/1.3 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-hpath-key span::before{content:"";display:inline-block;width:9px;height:12px;margin:0 6px -1px 0;border-radius:3px;background:var(--g-navy2)}
.iqmg .iqmg-hpath-key span.is-off::before{background:#F0821E}
.iqmg .iqmg-result p.iqmg-hpath-why{margin:12px 0 0;font:700 14.5px/1.5 var(--g-f);color:var(--g-navy)}
.iqmg details.iqmg-hmoves{margin:10px 0 0}
.iqmg details.iqmg-hmoves summary{display:inline-block;cursor:pointer;list-style:none;font:700 14px/1.4 var(--g-f);color:var(--g-link)}
.iqmg details.iqmg-hmoves summary::-webkit-details-marker{display:none}
.iqmg .iqmg-result details.iqmg-hmoves p{max-height:9.5em;margin:10px 0 8px;overflow:auto;font:400 13.5px/1.7 var(--g-f);color:var(--g-ink);word-spacing:.12em}
@container iqmg (max-width: 560px){
  .iqmg .iqmg-hanoi{--bh:232px}
  .iqmg .iqmg-hud2 .is-long{display:none}
  .iqmg .iqmg-hud2 .is-short{display:inline}
  .iqmg .iqmg-peg-rod{width:8px;margin-left:-4px}
  .iqmg button.iqmg-tool,.iqmg button.iqmg-tool:hover,.iqmg button.iqmg-tool:focus{padding:9px 14px;font-size:13.5px}
  .iqmg .iqmg-teach{margin:0}
  .iqmg .iqmg-hteach{padding:9px 12px;font-size:13.5px}
}

/* Stroop Test: the rule line, the word box (a cross, then the word), the answer pad; the
   colour-vision palette sits on grey; Arrows uses place only, no colour */
.iqmg .iqmg-cvswitch{margin:2px auto 20px}
.iqmg .iqmg-srule{position:relative;z-index:2;margin:0;font:400 16px/1.4 var(--g-f);color:var(--g-soft)}
.iqmg .iqmg-srule b{font-weight:700;color:#fff}
.iqmg .iqmg-sbox{position:relative;z-index:2;display:grid;place-items:center;width:min(720px,100%);height:clamp(220px,30cqi,290px);margin:0 auto;
  border-radius:22px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.12);transition:border-color .2s,box-shadow .2s}
.iqmg .iqmg-sbox.is-cv{background:#545A62;border-color:#6B7079}
.iqmg .iqmg-sbox.is-right{border-color:#47C585;box-shadow:0 0 0 3px rgba(71,197,133,.22)}
.iqmg .iqmg-sbox.is-wrong{border-color:#FF7D70;box-shadow:0 0 0 3px rgba(255,125,112,.22)}
.iqmg .iqmg-sfix{position:absolute;font:400 46px/1 var(--g-f);color:rgba(255,255,255,.6)}
.iqmg .iqmg-sbox.is-cv .iqmg-sfix{color:rgba(255,255,255,.75)}
.iqmg .iqmg-sword{position:absolute;font:700 64px/1 var(--g-f);font-size:clamp(52px,8.6cqi,84px);letter-spacing:.03em;color:#fff;white-space:nowrap}
.iqmg .iqmg-sbox.is-arrows .iqmg-sword{font-size:clamp(32px,5cqi,48px)}
.iqmg .iqmg-sword.at-up{top:12%}
.iqmg .iqmg-sword.at-down{bottom:12%}
.iqmg .iqmg-sword.at-left{left:9%}
.iqmg .iqmg-sword.at-right{right:9%}
.iqmg .iqmg-spanel{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:20px;
  border-radius:21px;background:rgba(7,30,54,.94);text-align:center}
.iqmg .iqmg-sbox.is-cv .iqmg-spanel{background:rgba(44,48,54,.96)}
.iqmg .iqmg-spanel-h{margin:0;font:700 26px/1.1 var(--g-f);color:#fff}
.iqmg .iqmg-spanel-t{max-width:30em;margin:0 0 8px;font:400 16px/1.5 var(--g-f);color:var(--g-soft)}
.iqmg button.iqmg-go.iqmg-spanel-go,.iqmg button.iqmg-go.iqmg-spanel-go:hover,.iqmg button.iqmg-go.iqmg-spanel-go:focus{padding:13px 34px;font-size:16px}
.iqmg .iqmg-spad{position:relative;z-index:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(520px,100%);margin:0 auto}
.iqmg button.iqmg-sbtn,.iqmg button.iqmg-sbtn:hover,.iqmg button.iqmg-sbtn:focus{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  height:68px;margin:0;padding:0 10px;border:0;border-radius:16px;background:#FBF9F6;box-shadow:0 10px 22px -14px rgba(0,0,0,.85);color:var(--g-navy);
  font:700 18px/1 var(--g-f);letter-spacing:.06em;text-transform:none;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;
  user-select:none;-webkit-user-select:none;transition:transform .08s,background .15s}
.iqmg button.iqmg-sbtn:hover{background:#fff}
.iqmg button.iqmg-sbtn:active{transform:scale(.97)}
.iqmg button.iqmg-sbtn:focus-visible{outline:3px solid var(--g-goldtext);outline-offset:2px}
.iqmg .iqmg-sbtn-key{font:700 10.5px/1 var(--g-f);letter-spacing:.14em;color:var(--g-faint)}
.iqmg .iqmg-spad.is-dpad{grid-template-columns:repeat(3,66px);grid-template-areas:". up ." "left . right" ". down .";width:auto;gap:8px}
.iqmg .iqmg-spad.is-dpad button.iqmg-sbtn{width:66px;height:66px;padding:0}
.iqmg .iqmg-spad.is-dpad .is-up{grid-area:up}
.iqmg .iqmg-spad.is-dpad .is-left{grid-area:left}
.iqmg .iqmg-spad.is-dpad .is-right{grid-area:right}
.iqmg .iqmg-spad.is-dpad .is-down{grid-area:down}
.iqmg .iqmg-sbtn svg{width:28px;height:28px;fill:none;stroke:var(--g-navy);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.iqmg .iqmg-sbtn.is-left svg{transform:rotate(-90deg)}
.iqmg .iqmg-sbtn.is-right svg{transform:rotate(90deg)}
.iqmg .iqmg-sbtn.is-down svg{transform:rotate(180deg)}
/* the result: every answer as a dot on a time line (crosses = mistakes, gold tick = the middle time) */
.iqmg .iqmg-sdots{margin:24px 0 0;padding:18px 0 0;border-top:1px solid var(--g-line)}
.iqmg .iqmg-sdots .iqmg-caps{margin:0 0 10px}
.iqmg .iqmg-sdots-svg svg{display:block;width:100%;height:auto;overflow:visible}
.iqmg .iqmg-sdots-svg .l{font:700 12.5px var(--g-f);fill:var(--g-navy)}
.iqmg .iqmg-sdots-svg .t{font:400 12px var(--g-f);fill:var(--g-faint);text-anchor:middle}
.iqmg .iqmg-sdots-svg .axis{stroke:#E6EAF0;stroke-width:1}
.iqmg .iqmg-sdots-svg .ok{fill:var(--g-navy2);fill-opacity:.5}
.iqmg .iqmg-sdots-svg .bad{fill:none;stroke:#E4551F;stroke-width:2;stroke-linecap:round}
.iqmg .iqmg-sdots-svg .med{stroke:#F5A623;stroke-width:3.2;stroke-linecap:round}
.iqmg .iqmg-hpath-key span.is-dot::before{width:9px;height:9px;margin-bottom:0;border-radius:50%;opacity:.7}
.iqmg .iqmg-hpath-key span.is-x::before{width:9px;height:3px;margin-bottom:3px;background:#E4551F;transform:rotate(45deg)}
.iqmg .iqmg-hpath-key span.is-med::before{width:3px;height:13px;background:#F5A623}
.iqmg .iqmg-result .iqmg-slines p{margin:10px 0 0;font:400 14.5px/1.55 var(--g-f);color:var(--g-ink)}
.iqmg .iqmg-result .iqmg-slines p:first-child{margin-top:16px}
.iqmg .iqmg-result .iqmg-slines p.is-dev{font-size:13px;color:var(--g-muted)}
@container iqmg (max-width: 560px){
  .iqmg .iqmg-sbox{height:200px;border-radius:18px}
  .iqmg .iqmg-spanel{border-radius:17px}
  .iqmg .iqmg-spanel-h{font-size:22px}
  .iqmg .iqmg-spanel-t{font-size:15px}
  .iqmg .iqmg-srule{font-size:15px}
  .iqmg button.iqmg-sbtn,.iqmg button.iqmg-sbtn:hover,.iqmg button.iqmg-sbtn:focus{height:64px;font-size:17px}
  .iqmg .iqmg-spad.is-dpad{grid-template-columns:repeat(3,64px)}
  .iqmg .iqmg-spad.is-dpad button.iqmg-sbtn{width:64px;height:64px}
  .iqmg .iqmg-sdots-svg .l{font-size:16px}
  .iqmg .iqmg-sdots-svg .t{font-size:15px}
}

/* Logic Puzzles: a paper sheet on the band: the clues beside the staircase grid; on a phone one
   grid at a time with a mini-map. ✗ and ✓ differ by shape, not only colour. */
.iqmg .iqmg-lday{display:inline-flex;align-items:center;gap:10px;margin:2px auto 18px;font:700 13px/1 var(--g-f);color:var(--g-soft)}
.iqmg .iqmg-lday select{margin:0;padding:8px 12px;border:1px solid rgba(255,255,255,.25);border-radius:10px;background:#123F6E;color:#fff;font:400 14px/1.2 var(--g-f)}
.iqmg .iqmg-lpaper{position:relative;z-index:2;display:grid;grid-template-columns:minmax(230px,310px) minmax(0,1fr);gap:26px;width:100%;max-width:1180px;margin:0 auto;
  padding:24px;border-radius:22px;background:#FBF9F6;color:var(--g-ink);text-align:left;box-shadow:0 30px 60px -40px rgba(0,0,0,.85)}
.iqmg .iqmg-lpaper.is-pair{grid-template-columns:minmax(0,1fr);gap:18px;padding:16px 12px}
.iqmg .iqmg-lpaper .iqmg-caps{margin:0 0 10px;color:var(--g-muted)}
.iqmg ol.iqmg-lclues{margin:0;padding:0;list-style:none;counter-reset:lc}
.iqmg ol.iqmg-lclues li{display:flex;align-items:flex-start;gap:6px;margin:0 0 4px;padding:0;border-radius:12px;counter-increment:lc;transition:background .15s}
.iqmg ol.iqmg-lclues li::before{content:counter(lc);flex:none;width:20px;padding-top:10px;font:700 12px/1 var(--g-f);color:var(--g-faint);text-align:right}
.iqmg button.iqmg-lclue,.iqmg button.iqmg-lclue:hover,.iqmg button.iqmg-lclue:focus{flex:1;min-width:0;margin:0;padding:7px 8px;border:0;border-radius:10px;background:transparent;box-shadow:none;
  color:var(--g-ink);font:400 15px/1.45 var(--g-f);text-align:left;text-transform:none;letter-spacing:0;cursor:pointer}
.iqmg button.iqmg-lclue:focus-visible{outline:2px solid var(--g-goldtext);outline-offset:1px}
.iqmg ol.iqmg-lclues li.is-rel{background:#EAF0F8}
.iqmg ol.iqmg-lclues li.is-on,.iqmg ol.iqmg-lclues li.is-hint{background:#FFF1D6}
.iqmg ol.iqmg-lclues li.is-struck .iqmg-lclue{color:var(--g-faint);text-decoration:line-through}
.iqmg button.iqmg-lstrike,.iqmg button.iqmg-lstrike:hover,.iqmg button.iqmg-lstrike:focus{display:grid;place-items:center;flex:none;width:30px;height:30px;margin:4px 0 0;padding:0;
  border:1px solid var(--g-line);border-radius:50%;background:#fff;box-shadow:none;cursor:pointer}
.iqmg button.iqmg-lstrike svg{width:16px;height:16px;fill:none;stroke:#B9C3CF;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.iqmg li.is-struck button.iqmg-lstrike{background:var(--g-navy);border-color:var(--g-navy)}
.iqmg li.is-struck button.iqmg-lstrike svg{stroke:#fff}
.iqmg .iqmg-lgridwrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.iqmg table.iqmg-lgrid{--cs:34px;width:auto;margin:0 auto 0 0;border:0;border-collapse:separate;border-spacing:0;background:transparent;font-family:var(--g-f)}
.iqmg .iqmg-lpaper.is-pair table.iqmg-lgrid{margin:0 auto}
.iqmg .iqmg-lgrid th,.iqmg .iqmg-lgrid td{padding:0;border:0;background:transparent;vertical-align:middle}
.iqmg .iqmg-lgrid th.iqmg-lcat{padding:0 0 6px;font:700 10.5px/1 var(--g-f);letter-spacing:.14em;text-transform:uppercase;color:var(--g-accent);text-align:center}
.iqmg .iqmg-lgrid th.iqmg-lcol{height:92px;padding:0 0 6px;vertical-align:bottom;text-align:center}
.iqmg .iqmg-lgrid th.iqmg-lcol span{display:inline-block;writing-mode:vertical-rl;transform:rotate(180deg);font:700 13px/1 var(--g-f);color:var(--g-navy);white-space:nowrap}
.iqmg .iqmg-lgrid th.iqmg-lrcat{width:24px;padding:0 6px 0 0;text-align:center}
.iqmg .iqmg-lgrid th.iqmg-lrcat span{display:inline-block;writing-mode:vertical-rl;transform:rotate(180deg);font:700 10.5px/1 var(--g-f);letter-spacing:.14em;text-transform:uppercase;color:var(--g-accent)}
.iqmg .iqmg-lgrid th.iqmg-lrow{padding:0 10px 0 0;font:700 13px/1 var(--g-f);color:var(--g-navy);text-align:right;white-space:nowrap}
.iqmg .iqmg-lgrid th.is-lit,.iqmg .iqmg-lgrid th.is-lit span{color:var(--g-link)}
.iqmg .iqmg-lgrid th.is-lit{background:#FFF1D6;border-radius:6px}
.iqmg .iqmg-lgrid td{width:var(--cs);height:var(--cs);border-right:1px solid #D9DFE7;border-bottom:1px solid #D9DFE7}
.iqmg .iqmg-lgrid td.is-first{border-left:2px solid var(--g-navy)}
.iqmg .iqmg-lgrid td.is-last{border-right:2px solid var(--g-navy)}
.iqmg .iqmg-lgrid tr.is-first td{border-top:2px solid var(--g-navy)}
.iqmg .iqmg-lgrid tr.is-end td{border-bottom:2px solid var(--g-navy)}
.iqmg .iqmg-lgrid tr td.iqmg-lvoid{border:0}
.iqmg button.iqmg-lcell,.iqmg button.iqmg-lcell:hover,.iqmg button.iqmg-lcell:focus{display:grid;place-items:center;width:var(--cs);height:var(--cs);margin:0;padding:0;border:0;border-radius:0;
  background:#fff;box-shadow:none;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.iqmg button.iqmg-lcell:hover{background:#F2F6FA}
.iqmg button.iqmg-lcell:focus-visible{position:relative;z-index:1;outline:3px solid var(--g-goldtext);outline-offset:-3px}
.iqmg button.iqmg-lcell svg{width:58%;height:58%;fill:none;stroke-linecap:round;stroke-linejoin:round}
.iqmg button.iqmg-lcell.is-x svg{stroke:#98A5B4;stroke-width:2.4}
.iqmg button.iqmg-lcell.is-o{background:#E3ECF7}
.iqmg button.iqmg-lcell.is-o svg{stroke:var(--g-navy);stroke-width:3.2}
.iqmg button.iqmg-lcell.is-wrong{box-shadow:inset 0 0 0 2.5px #D7261E}
.iqmg button.iqmg-lcell.is-hint{background:#FFF1D6;box-shadow:inset 0 0 0 3px #F5A623}
.iqmg .iqmg-lnav{display:none}
.iqmg .iqmg-lpaper.is-pair .iqmg-lnav{display:flex;flex-direction:column;align-items:center;gap:12px;margin:0 0 14px}
.iqmg .iqmg-lmap{display:grid;grid-template-columns:repeat(var(--m),24px);grid-auto-rows:24px;gap:4px}
.iqmg button.iqmg-lmapcell,.iqmg button.iqmg-lmapcell:hover,.iqmg button.iqmg-lmapcell:focus{width:24px;height:24px;margin:0;padding:0;border:1px solid #C4CFDC;border-radius:5px;
  background:linear-gradient(0deg,#BCD0E8 var(--fill,0%),#fff var(--fill,0%));box-shadow:none;cursor:pointer}
.iqmg button.iqmg-lmapcell.is-on{border:2px solid var(--g-navy)}
.iqmg .iqmg-lnavrow{display:flex;align-items:center;gap:10px}
.iqmg .iqmg-lpaper button.iqmg-tool,.iqmg .iqmg-lpaper button.iqmg-tool:hover,.iqmg .iqmg-lpaper button.iqmg-tool:focus{padding:8px 14px;border-color:var(--g-line);background:#fff;color:var(--g-navy)}
.iqmg .iqmg-lpairname{min-width:9.5em;margin:0;font:700 15px/1.2 var(--g-f);color:var(--g-navy);text-align:center}
.iqmg .iqmg-lanswer{margin:18px 0 0}
.iqmg .iqmg-lanswer table{width:100%;margin:0;border:0;border-collapse:collapse;background:transparent;font-family:var(--g-f)}
.iqmg .iqmg-lanswer th,.iqmg .iqmg-lanswer td{padding:7px 10px;border:0;border-bottom:1px solid var(--g-line);background:transparent;font:400 14px/1.3 var(--g-f);color:var(--g-ink);text-align:left}
.iqmg .iqmg-lanswer thead th{font:700 10.5px/1 var(--g-f);letter-spacing:.14em;text-transform:uppercase;color:var(--g-faint)}
.iqmg .iqmg-lanswer tbody th{font-weight:700;color:var(--g-navy)}
.iqmg .iqmg-lanswer td.is-empty{color:#C3CBD5}
.iqmg .iqmg-lhint{position:relative;z-index:2;width:100%;max-width:860px;margin:0 auto;padding:14px 18px;border-radius:14px;background:#FFF6E3;color:var(--g-ink);text-align:left;
  box-shadow:0 16px 30px -22px rgba(0,0,0,.8)}
.iqmg .iqmg-lhint p{margin:0}
.iqmg .iqmg-lhint .iqmg-lhint-a{font:700 15.5px/1.4 var(--g-f);color:var(--g-navy)}
.iqmg .iqmg-lhint .iqmg-lhint-b{margin-top:6px;font:400 15px/1.55 var(--g-f)}
.iqmg .iqmg-lhint-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin:10px 0 0}
.iqmg .iqmg-lhint button.iqmg-tool,.iqmg .iqmg-lhint button.iqmg-tool:hover,.iqmg .iqmg-lhint button.iqmg-tool:focus{border-color:#E7C98E;background:#fff;color:var(--g-navy)}
.iqmg .iqmg-card[data-kind="board"] .iqmg-hud2 > div:first-child{cursor:pointer}
.iqmg .iqmg-lres{margin:24px 0 0;padding:18px 0 0;border-top:1px solid var(--g-line)}
.iqmg .iqmg-lres .iqmg-lanswer{margin:0}
.iqmg .iqmg-result p.iqmg-lres-why{margin:12px 0 0;font:400 14px/1.55 var(--g-f);color:var(--g-muted)}
@container iqmg (max-width: 560px){
  .iqmg .iqmg-lday{flex-direction:column;gap:6px}
  .iqmg button.iqmg-lclue,.iqmg button.iqmg-lclue:hover,.iqmg button.iqmg-lclue:focus{font-size:14.5px}
  .iqmg .iqmg-lgrid th.iqmg-lcol{height:84px}
  .iqmg .iqmg-lanswer th,.iqmg .iqmg-lanswer td{padding:6px 6px;font-size:13px}
}
@media print{ .iqmg .iqmg-lhint{display:none} }

/* Sequence Memory: a 3 x 3 grid of tiles that light gold, or four pads that differ by shape,
   colour and note; the result replays the path next to your taps */
.iqmg .iqmg-qgrid,.iqmg .iqmg-qpads{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:min(400px,100%);margin:0 auto;aspect-ratio:1}
.iqmg .iqmg-qpads{grid-template-areas:". up ." "left . right" ". down ."}
.iqmg button.iqmg-qtile,.iqmg button.iqmg-qtile:hover,.iqmg button.iqmg-qtile:focus,.iqmg button.iqmg-qpad,.iqmg button.iqmg-qpad:hover,.iqmg button.iqmg-qpad:focus{
  position:relative;display:grid;place-items:center;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:18px;cursor:pointer;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;user-select:none;-webkit-user-select:none;transition:background .06s,box-shadow .06s}
.iqmg button.iqmg-qtile{background:linear-gradient(150deg,#1A4C82 0%,#0F355E 60%,#0A2747 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.13),0 14px 24px -16px rgba(0,0,0,.9)}
.iqmg button.iqmg-qtile.is-lit{background:linear-gradient(150deg,#FFE29A 0%,#F5B94A 55%,#E8962E 100%);box-shadow:0 0 0 2px #FFE29A,0 0 42px rgba(245,194,107,.75)}
.iqmg button.iqmg-qpad{background:color-mix(in srgb,var(--c) 20%,#0C3158);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--c) 60%,transparent)}
.iqmg button.iqmg-qpad.is-up{grid-area:up}
.iqmg button.iqmg-qpad.is-left{grid-area:left}
.iqmg button.iqmg-qpad.is-right{grid-area:right}
.iqmg button.iqmg-qpad.is-down{grid-area:down}
.iqmg button.iqmg-qpad svg{width:50%;height:50%;fill:var(--c);opacity:.8}
.iqmg button.iqmg-qpad.is-lit{background:var(--c);box-shadow:0 0 0 3px #fff,0 0 46px var(--c)}
.iqmg button.iqmg-qpad.is-lit svg{fill:#fff;opacity:1}
.iqmg .is-watch button.iqmg-qtile,.iqmg .is-watch button.iqmg-qpad{cursor:default}
.iqmg button.iqmg-qtile:focus-visible,.iqmg button.iqmg-qpad:focus-visible{outline:3px solid var(--g-goldtext);outline-offset:3px}
.iqmg button.iqmg-qtile.is-miss,.iqmg button.iqmg-qpad.is-miss{box-shadow:inset 0 0 0 4px #FF7D70}
.iqmg button.iqmg-qtile.is-want,.iqmg button.iqmg-qpad.is-want{box-shadow:inset 0 0 0 4px #8BE3B1}
.iqmg .iqmg-qkey{position:absolute;left:0;right:0;bottom:8px;display:none;font:700 11px/1 var(--g-f);letter-spacing:.1em;color:rgba(255,255,255,.6);text-align:center}
.iqmg .is-keys .iqmg-qkey{display:block}
.iqmg .is-lit .iqmg-qkey{color:rgba(12,49,88,.7)}
.iqmg .iqmg-qreplay{margin:24px 0 0;padding:18px 0 0;border-top:1px solid var(--g-line)}
.iqmg .iqmg-qreplay .iqmg-caps{margin:0 0 12px}
.iqmg .iqmg-qrow{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:0 0 8px}
.iqmg .iqmg-qrow-l{width:5.6em;font:400 13px/1.2 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-qchip{display:grid;grid-template-columns:repeat(3,6px);gap:1.5px;padding:4px;border-radius:7px;background:#F2F4F8}
.iqmg .iqmg-qchip i{width:6px;height:6px;border-radius:1.5px;background:#D3DAE3}
.iqmg .iqmg-qchip i.is-on{background:#F0A030}
.iqmg .iqmg-qchip.is-bad{background:#FDE7E4;box-shadow:inset 0 0 0 1.5px #E4551F}
.iqmg .iqmg-qchip.is-want{box-shadow:inset 0 0 0 1.5px #12874A}
.iqmg .iqmg-qchip.is-pad{display:grid;place-items:center;width:30px;height:30px;padding:0}
.iqmg .iqmg-qchip.is-pad svg{width:18px;height:18px;fill:var(--c)}
.iqmg .iqmg-result p.iqmg-qwhy{margin:10px 0 0;font:700 14.5px/1.5 var(--g-f);color:var(--g-link)}
.iqmg .iqmg-result p.iqmg-qwhy.is-soft{font-weight:400;color:var(--g-muted)}
@container iqmg (max-width: 560px){
  .iqmg .iqmg-qgrid,.iqmg .iqmg-qpads{gap:9px;width:min(340px,100%)}
  .iqmg button.iqmg-qtile,.iqmg button.iqmg-qpad{border-radius:14px}
}

/* Code Breaker: a paper board (rows of holes, clue dots and rings) beside the palette; every
   colour has its own shape, numbers can be shown on the pegs */
.iqmg .iqmg-cpaper{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,320px);gap:26px;width:100%;max-width:860px;margin:0 auto;
  padding:22px;border-radius:22px;background:#FBF9F6;color:var(--g-ink);text-align:left;box-shadow:0 30px 60px -40px rgba(0,0,0,.85)}
.iqmg ol.iqmg-cboard{margin:0;padding:0;list-style:none}
.iqmg .iqmg-crow{display:flex;align-items:center;gap:12px;margin:0;padding:5px 8px;border-radius:12px}
.iqmg .iqmg-crow.is-now{background:#EAF0F8}
.iqmg .iqmg-crow.is-later{opacity:.42}
.iqmg .iqmg-cnum{width:1.5em;flex:none;font:700 12px/1 var(--g-f);color:var(--g-faint);text-align:right}
.iqmg .iqmg-choles{display:flex;gap:8px}
.iqmg .iqmg-cpeg{position:relative;display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:var(--pc,#ddd);
  box-shadow:inset 0 -2px 0 rgba(0,0,0,.18),inset 0 2px 0 rgba(255,255,255,.35),0 2px 4px rgba(0,0,0,.18)}
.iqmg .iqmg-cpeg.is-empty{background:#E3E7ED;box-shadow:inset 0 2px 4px rgba(0,0,0,.16)}
.iqmg .iqmg-cpeg.is-num{background:#fff;box-shadow:inset 0 0 0 1.5px #C2CCD8;font:700 16px/1 var(--g-f);color:var(--g-navy)}
.iqmg .iqmg-cpeg svg{width:60%;height:60%}
.iqmg .iqmg-cpeg svg.is-light{fill:#0C3158;stroke:#0C3158}
.iqmg .iqmg-cpeg svg.is-dark{fill:#fff;stroke:#fff}
.iqmg .iqmg-cpeg b{position:absolute;right:-4px;bottom:-4px;display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#fff;
  box-shadow:0 0 0 1px #C2CCD8;font:700 9.5px/1 var(--g-f);color:var(--g-navy)}
.iqmg button.iqmg-cslot,.iqmg button.iqmg-cslot:hover,.iqmg button.iqmg-cslot:focus{display:grid;place-items:center;margin:0;padding:3px;border:0;border-radius:50%;
  background:transparent;box-shadow:none;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.iqmg button.iqmg-cslot.is-sel{box-shadow:0 0 0 2.5px var(--g-accent)}
.iqmg button.iqmg-cslot:focus-visible{outline:3px solid var(--g-goldtext);outline-offset:1px}
.iqmg .iqmg-crow .iqmg-choles{gap:5px}
.iqmg .iqmg-cmarks{display:grid;grid-template-columns:repeat(var(--cols,2),10px);gap:4px;margin-left:auto}
.iqmg .iqmg-cmarks i{width:10px;height:10px;border-radius:50%;background:#E3E7ED}
.iqmg .iqmg-cmarks i.is-place{background:var(--g-navy)}
.iqmg .iqmg-cmarks i.is-colour{background:#fff;box-shadow:inset 0 0 0 2px var(--g-navy)}
.iqmg .iqmg-cmarks.is-blank{width:24px}
.iqmg .iqmg-cleft{min-width:4.6em;font:400 12px/1 var(--g-f);color:var(--g-muted);text-align:right}
.iqmg .iqmg-cpal{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.iqmg button.iqmg-cpick,.iqmg button.iqmg-cpick:hover,.iqmg button.iqmg-cpick:focus{position:relative;display:grid;place-items:center;height:58px;margin:0;padding:0;
  border:1px solid var(--g-line);border-radius:14px;background:#fff;box-shadow:none;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;
  user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.iqmg button.iqmg-cpick:hover{border-color:#C2CCD8}
.iqmg button.iqmg-cpick:focus-visible{outline:3px solid var(--g-goldtext);outline-offset:2px}
.iqmg button.iqmg-cpick .iqmg-cpeg{width:38px;height:38px}
.iqmg button.iqmg-cpick.is-out .iqmg-cpeg{opacity:.28}
.iqmg button.iqmg-cpick.is-in{box-shadow:inset 0 0 0 2px #12874A}
.iqmg .iqmg-cnote{position:absolute;top:4px;right:7px;font:700 12px/1 var(--g-f);color:var(--g-link)}
.iqmg button.iqmg-cpick.is-in .iqmg-cnote{color:#12874A}
.iqmg .iqmg-cpaper p.iqmg-cpal-help{margin:10px 0 14px;font:400 13px/1.5 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-cpaper .iqmg-htools{justify-content:flex-start}
.iqmg .iqmg-cpaper button.iqmg-tool,.iqmg .iqmg-cpaper button.iqmg-tool:hover,.iqmg .iqmg-cpaper button.iqmg-tool:focus{padding:9px 14px;border-color:var(--g-line);background:#fff;color:var(--g-navy)}
.iqmg .iqmg-cpaper button.iqmg-tool.is-on,.iqmg .iqmg-cpaper button.iqmg-tool.is-on:hover,.iqmg .iqmg-cpaper button.iqmg-tool.is-on:focus{border-color:var(--g-navy);background:var(--g-navy);color:#fff}
.iqmg .iqmg-cswitches{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:16px 0 0}
.iqmg .iqmg-cpaper .iqmg-teach{margin:0;color:var(--g-navy)}
.iqmg .iqmg-cpaper .iqmg-teach input{background:#C9D3DF}
.iqmg .iqmg-cpaper .iqmg-teach input:checked{background:var(--g-accent)}
.iqmg .iqmg-cpaper .iqmg-teach input:disabled{opacity:.5}
.iqmg .iqmg-cres{margin:24px 0 0;padding:18px 0 0;border-top:1px solid var(--g-line)}
.iqmg .iqmg-ccode{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:0 0 16px}
.iqmg .iqmg-ccode .iqmg-caps{margin:0}
.iqmg .iqmg-cbars{display:grid;gap:6px;margin:10px 0 0}
.iqmg .iqmg-cbar{display:grid;grid-template-columns:5.4em minmax(0,1fr) 4.6em;align-items:center;gap:10px}
.iqmg .iqmg-cbar-l{font:400 13px/1 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-cbar-b{height:8px;border-radius:6px;background:#EEF1F5;overflow:hidden}
.iqmg .iqmg-cbar-b i{display:block;height:100%;border-radius:6px;background:var(--g-navy)}
.iqmg .iqmg-cbar b{font:700 13.5px/1 var(--g-f);color:var(--g-navy);text-align:right;font-variant-numeric:lining-nums tabular-nums}
.iqmg .iqmg-result p.iqmg-cwhy{margin:14px 0 0;font:700 14.5px/1.5 var(--g-f);color:var(--g-navy)}
@container iqmg (max-width: 640px){
  .iqmg .iqmg-cpaper{grid-template-columns:minmax(0,1fr);gap:18px;padding:14px 12px}
  .iqmg .iqmg-cpeg{width:30px;height:30px}
  .iqmg .iqmg-crow{gap:8px;padding:4px 6px}
  .iqmg button.iqmg-cpick,.iqmg button.iqmg-cpick:hover,.iqmg button.iqmg-cpick:focus{height:54px}
}

/* tries */
.iqmg .iqmg-dots{position:absolute;left:0;right:0;bottom:26px;z-index:3;display:flex;justify-content:center;gap:10px;margin:0;pointer-events:none}
.iqmg .iqmg-card[data-state="idle"] .iqmg-dots{display:none}
.iqmg .iqmg-dots i{width:9px;height:9px;border-radius:50%;border:1.5px solid rgba(255,255,255,.55)}
.iqmg .iqmg-dots i.is-done{background:#fff;border-color:#fff}

/* ---------- result, game style (owner, 2 Nov) ----------
   a hero in the game's own colours (--t1 / --t2), the details card beside the Einstein IQ test
   card and Challenge a friend, then Play next cards */
.iqmg .iqmg-slot{margin:0;padding:0 22px 64px}
.iqmg .iqmg-slot:empty{display:none}
.iqmg .iqmg-result{outline:none}
.iqmg .iqmg-result p{margin:0}
.iqmg .iqmg-rhero{position:relative;isolation:isolate;overflow:hidden;margin:0 -22px;padding:50px 22px 128px;text-align:center;color:#fff;
  background:radial-gradient(56% 70% at 50% 42%,var(--t2,#14457A) 0%,transparent 72%),var(--t1,#0A2440);
  background:radial-gradient(56% 70% at 50% 42%,color-mix(in srgb,var(--t2,#14457A) 90%,transparent) 0%,transparent 72%),
    linear-gradient(180deg,var(--t1,#0A2440) 0%,color-mix(in srgb,var(--t1,#0A2440) 74%,#000) 100%)}
.iqmg .iqmg-rhero-floor{position:absolute;left:-60%;right:-60%;bottom:0;height:56%;z-index:-1;opacity:.35;transform-origin:50% 100%;transform:perspective(440px) rotateX(64deg);
  background-image:linear-gradient(to right,rgba(255,255,255,.17) 1px,transparent 1px),linear-gradient(to bottom,rgba(255,255,255,.17) 1px,transparent 1px);
  background-size:72px 72px;-webkit-mask-image:linear-gradient(to top,#000,transparent 92%);mask-image:linear-gradient(to top,#000,transparent 92%)}
.iqmg canvas.iqmg-burst{position:absolute;inset:0;z-index:0;width:100%;height:100%;pointer-events:none}
.iqmg .iqmg-rhero > *:not(.iqmg-rhero-floor):not(canvas){position:relative;z-index:1}
.iqmg .iqmg-rhero .iqmg-eyebrow{justify-content:center;margin:0 0 12px;color:var(--g-goldtext)}
.iqmg .iqmg-result-h{margin:0;padding:0;font:700 34px/1.1 var(--g-f);font-size:clamp(28px,4cqi,40px);color:#fff;text-transform:none}
.iqmg .iqmg-result p.iqmg-rhero-kick{margin:18px 0 0;color:rgba(255,255,255,.72)}
.iqmg .iqmg-result .iqmg-score{display:flex;align-items:baseline;justify-content:center;gap:12px;margin:4px 0 16px} /* Enriqueta digits drop below the line */
.iqmg .iqmg-score b{font:700 112px/.95 var(--g-f);font-size:clamp(80px,12cqi,128px);color:#fff;letter-spacing:-.02em;font-variant-numeric:lining-nums tabular-nums;
  text-shadow:0 0 42px rgba(245,194,107,.45),0 6px 24px rgba(0,0,0,.35)}
.iqmg .iqmg-score span{font:700 26px/1 var(--g-f);color:rgba(255,255,255,.85)}
.iqmg .iqmg-result .iqmg-badge{display:inline-flex;align-items:center;gap:8px;margin:0 0 18px;padding:8px 14px;border-radius:999px;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);font:700 14px/1.2 var(--g-f);color:#fff}
.iqmg .iqmg-badge svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.iqmg .iqmg-result .iqmg-badge.is-best{position:relative;overflow:hidden;border:0;background:linear-gradient(100deg,#F5C26B,#F5A623 45%,#E4551F);color:#3A1A06;
  box-shadow:0 10px 26px -10px rgba(228,85,31,.8)}
.iqmg .iqmg-badge.is-best::after{content:"";position:absolute;top:0;bottom:0;width:40%;left:-60%;transform:skewX(-20deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.65),transparent);animation:iqmgShineX 3.4s ease-in-out 1s infinite}
@keyframes iqmgShineX{0%,55%{left:-60%}100%{left:130%}}
.iqmg .iqmg-vs{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 14px;max-width:520px;margin:0 auto 18px;padding:12px 18px;
  border:1px solid rgba(255,255,255,.24);border-radius:14px;background:rgba(255,255,255,.1);font:400 14.5px/1.35 var(--g-f);color:rgba(255,255,255,.8)}
.iqmg .iqmg-vs b,.iqmg .iqmg-vs-res{font-weight:700;color:#fff}
.iqmg .iqmg-vs.is-win .iqmg-vs-res{color:#7CF0B0}
.iqmg .iqmg-vs.is-lose .iqmg-vs-res{color:var(--g-goldtext)}
.iqmg .iqmg-result .iqmg-verdict{max-width:34em;margin:0 auto 26px;font:400 18.5px/1.55 var(--g-f);color:rgba(255,255,255,.9)}
.iqmg .iqmg-verdict strong{color:var(--g-goldtext)}
.iqmg .iqmg-rgrid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:start;max-width:900px;
  margin:-84px auto 0;text-align:left}
.iqmg .iqmg-report-main{padding:34px 38px 32px;border-radius:22px;background:#fff;border:1px solid var(--g-line);box-shadow:0 40px 80px -50px rgba(5,22,39,.55)}
.iqmg .iqmg-result p.iqmg-rdetail-h{margin:0 0 18px}
.iqmg .iqmg-result .iqmg-compare{margin:0 0 22px;font:400 14.5px/1.55 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-figs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 26px;border-top:1px solid var(--g-line);border-bottom:1px solid var(--g-line)}
.iqmg .iqmg-fig{padding:16px 0 16px 16px;border-left:1px solid var(--g-line)}
.iqmg .iqmg-fig:nth-child(4n+1){padding-left:0;border-left:0} /* the first of each row of four */
.iqmg .iqmg-fig:nth-child(n+5){border-top:1px solid var(--g-line)}
.iqmg .iqmg-fig b{display:block;font:700 21px/1 var(--g-f);color:var(--g-navy);font-variant-numeric:lining-nums tabular-nums}
.iqmg .iqmg-fig.is-hot b{color:var(--g-link)}
.iqmg .iqmg-fig .iqmg-caps{margin-top:8px;font-size:10.5px;letter-spacing:.12em}
.iqmg .iqmg-chart{margin:0 0 10px}
.iqmg svg.iqmg-curve{display:block;width:100%;height:auto;overflow:visible}
.iqmg .iqmg-curve .c-line{fill:none;stroke:var(--g-navy);stroke-width:1.6}
.iqmg .iqmg-curve .c-fill{fill:rgba(12,49,88,.07)}
.iqmg .iqmg-curve .c-axis{stroke:var(--g-line);stroke-width:1}
.iqmg .iqmg-curve .c-med{stroke:var(--g-faint);stroke-width:1;stroke-dasharray:3 4}
.iqmg .iqmg-curve .c-you{stroke:var(--g-accent);stroke-width:1.5}
.iqmg .iqmg-curve .c-dot{fill:#F5A623;stroke:#fff;stroke-width:2.5}
.iqmg .iqmg-curve text{font:400 10px var(--g-f);fill:var(--g-faint)}
.iqmg .iqmg-curve text.c-ylab{font-weight:700;font-size:11px;fill:var(--g-link)}
.iqmg .iqmg-tries{margin:18px 0 0}
.iqmg .iqmg-tries-row{display:flex;align-items:flex-end;gap:10px;height:76px;margin:12px 0 0}
.iqmg .iqmg-tries-row span{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;height:100%;
  font:400 11px/1 var(--g-f);color:var(--g-faint)}
.iqmg .iqmg-tries-row i{display:block;width:100%;max-width:36px;border-radius:3px 3px 0 0;background:#C9D4E2}
.iqmg .iqmg-tries-row span.is-best{font-weight:700;color:var(--g-navy)}
.iqmg .iqmg-tries-row span.is-best i{background:var(--g-navy)}
/* your last rounds on this level + records (historyBox in the core; saved in this browser only) */
.iqmg .iqmg-hist{margin:24px 0 0;padding:20px 20px 16px;border-radius:16px;border:1px solid var(--g-line);background:#fff}
.iqmg .iqmg-hist-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.iqmg .iqmg-hist-dir{font:400 12.5px/1.3 var(--g-f);color:var(--g-faint)}
.iqmg .iqmg-hist-row{display:flex;align-items:flex-end;gap:8px;height:96px;margin:14px 0 0}
.iqmg .iqmg-hist-row span{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;height:100%;min-width:0}
.iqmg .iqmg-hist-row i{display:block;width:100%;max-width:34px;border-radius:4px 4px 0 0;background:#D5DEEA}
.iqmg .iqmg-hist-row em{flex:none;max-width:100%;overflow:hidden;font:400 11px/1.25 var(--g-f);font-style:normal;color:var(--g-faint);white-space:nowrap}
.iqmg .iqmg-hist-row span.is-best i{background:var(--g-navy)}
.iqmg .iqmg-hist-row span.is-now i{background:linear-gradient(180deg,#F5A623,#E4551F)}
.iqmg .iqmg-hist-row span.is-now em{font-weight:700;color:var(--g-accent)}
.iqmg dl.iqmg-hist-recs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:16px 0 0;padding:14px 0 0;border-top:1px solid var(--g-line)}
.iqmg .iqmg-hist-recs div{margin:0;padding:0 8px 0 0}
.iqmg .iqmg-hist-recs dt{margin:0;font:700 10.5px/1.3 var(--g-f);letter-spacing:.12em;text-transform:uppercase;color:var(--g-faint)}
.iqmg .iqmg-hist-recs dd{margin:4px 0 0;font:700 17px/1.2 var(--g-f);color:var(--g-navy)}
.iqmg p.iqmg-hist-note{margin:12px 0 0;font:400 12px/1.45 var(--g-f);color:var(--g-faint)}
@media (max-width:760px){
  .iqmg .iqmg-hist{padding:16px 14px 12px}
  .iqmg .iqmg-hist-row{gap:5px;height:84px}
  .iqmg dl.iqmg-hist-recs{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 0}
}
.iqmg .iqmg-dist{margin:22px 0 0}
.iqmg .iqmg-dist .iqmg-caps{margin-bottom:12px}
.iqmg .iqmg-dist-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 4.2em;align-items:center;gap:12px;padding:9px 0;
  border-top:1px solid var(--g-line);font:400 13.5px/1.3 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-dist-track{height:4px;border-radius:4px;background:#EEF1F5;overflow:hidden}
.iqmg .iqmg-dist-track i{display:block;height:100%;background:#C9D4E2}
.iqmg .iqmg-dist-row.is-you{color:var(--g-navy);font-weight:700}
.iqmg .iqmg-dist-row.is-you .iqmg-dist-track i{background:var(--g-accent)}
.iqmg .iqmg-dist-v{text-align:right;color:var(--g-navy);font-weight:700}
.iqmg .iqmg-result .iqmg-note{margin:18px 0 0;font:400 12.5px/1.6 var(--g-f);color:var(--g-faint)}

.iqmg .iqmg-side-h{margin:0 0 12px}
/* the IQ test as the result's own Next level card: glass in the game's colours inside the hero,
   Einstein leaning out over its edge, a level bar for the brain profile, the IQ test button */
.iqmg .iqmg-nextlvl{display:grid;grid-template-columns:178px minmax(0,1fr) 250px;align-items:center;gap:0 26px;max-width:980px;margin:8px auto 28px;
  padding:20px 26px 20px 8px;border-radius:24px;text-align:left;
  background:linear-gradient(135deg,rgba(255,255,255,.16) 0%,rgba(255,255,255,.05) 100%);border:1px solid rgba(245,194,107,.55);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 0 0 4px rgba(245,194,107,.09),0 34px 64px -32px rgba(0,0,0,.7)}
.iqmg img.iqmg-nextlvl-pic{display:block;align-self:end;width:200px;max-width:none;height:auto;margin:-58px 0 -20px -14px;
  filter:drop-shadow(0 16px 22px rgba(0,0,0,.5));pointer-events:none}
.iqmg .iqmg-nextlvl-body{min-width:0}
.iqmg .iqmg-result p.iqmg-nextlvl-kick{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 8px;font:700 11.5px/1.2 var(--g-f);
  letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.75)}
.iqmg .iqmg-nextlvl-tag{padding:5px 10px;border-radius:999px;background:var(--g-gold);color:#2A1404;letter-spacing:.12em}
.iqmg .iqmg-nextlvl-h{margin:0 0 14px;padding:0;font:700 23px/1.22 var(--g-f);color:#fff;text-transform:none}
.iqmg .iqmg-xp{margin:0 0 14px}
.iqmg .iqmg-result p.iqmg-xp-top{display:flex;justify-content:space-between;gap:10px;margin:0 0 7px;font:700 12.5px/1 var(--g-f);color:rgba(255,255,255,.75)}
.iqmg .iqmg-xp-top b{color:var(--g-goldtext)}
.iqmg .iqmg-xp-bar{display:flex;gap:5px}
.iqmg .iqmg-xp-bar span{flex:1;min-width:0}
.iqmg .iqmg-xp-bar i{display:block;height:8px;border-radius:8px;background:rgba(255,255,255,.16)}
.iqmg .iqmg-xp-bar span.is-done i{background:var(--g-gold);box-shadow:0 0 12px rgba(245,166,35,.5)}
.iqmg .iqmg-xp-bar span.is-now i{animation:iqmgXp 1.6s ease-in-out 2}
@keyframes iqmgXp{50%{box-shadow:0 0 0 3px rgba(255,255,255,.55),0 0 18px rgba(245,166,35,.9)}}
.iqmg .iqmg-xp-bar em{display:block;margin:6px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 11px/1 var(--g-f);font-style:normal;
  color:rgba(255,255,255,.5)}
.iqmg .iqmg-xp-bar span.is-done em{color:#fff}
.iqmg ul.iqmg-nextlvl-pts{display:flex;flex-wrap:wrap;gap:6px 16px;list-style:none;margin:0;padding:0}
.iqmg ul.iqmg-nextlvl-pts li{position:relative;margin:0;padding:0 0 0 22px;font:700 13.5px/1.35 var(--g-f);color:rgba(255,255,255,.9)}
.iqmg ul.iqmg-nextlvl-pts li::before{content:"";position:absolute;left:0;top:1px;width:16px;height:16px;border-radius:50%;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat,var(--g-gold)}
.iqmg .iqmg-nextlvl-cta{display:flex;flex-direction:column;align-items:stretch;text-align:center}
.iqmg .iqmg-nextlvl-cta a.iqmg-gold{display:flex;justify-content:center;width:100%}
.iqmg .iqmg-result .iqmg-nextlvl-cta .iqmg-meta{margin:10px 0 0;font-size:13px;color:rgba(255,255,255,.75)}
.iqmg .iqmg-result p.iqmg-nextlvl-proof{margin:5px 0 0;font:700 10.5px/1.3 var(--g-f);letter-spacing:.12em;text-transform:uppercase;color:var(--g-goldtext)}
.iqmg .iqmg-rwhy{margin:24px 0 0;padding:18px 20px;border-radius:16px;background:#F7F4EE}
.iqmg .iqmg-rwhy .iqmg-caps{margin:0 0 8px}
.iqmg .iqmg-result .iqmg-rwhy p:not(.iqmg-caps){font:400 15px/1.6 var(--g-f);color:var(--g-ink)}
/* Keep playing: picture tiles under the Next level card; hover (or keyboard focus) lifts the tile,
   zooms its picture and shows "Play again" / "Play" on a gold play button */
.iqmg .iqmg-rplay{max-width:980px;margin:0 auto;text-align:left}
.iqmg .iqmg-rplay-top{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.iqmg .iqmg-result .iqmg-rplay-top .iqmg-caps{margin:0 auto 0 0;color:rgba(255,255,255,.75)}
.iqmg a.iqmg-rplay-all,.iqmg a.iqmg-rplay-all:visited,.iqmg a.iqmg-rplay-all:hover{display:inline-flex;align-items:center;gap:6px;margin:0 4px 0 0;
  font:700 14px/1 var(--g-f);color:#fff;text-decoration:none}
.iqmg a.iqmg-rplay-all:hover{color:var(--g-goldtext)}
.iqmg a.iqmg-rplay-all .iqmg-arrow{width:14px;height:14px}
.iqmg button.iqmg-rplay-btn,.iqmg button.iqmg-rplay-btn:hover,.iqmg button.iqmg-rplay-btn:focus{display:none;place-items:center;width:36px;height:36px;margin:0;padding:0;
  border:1px solid rgba(255,255,255,.3);border-radius:50%;background:rgba(255,255,255,.08);color:#fff;box-shadow:none;cursor:pointer;transition:background .2s,opacity .2s}
.iqmg .iqmg-rplay.is-scroll button.iqmg-rplay-btn{display:grid}
.iqmg button.iqmg-rplay-btn:hover{background:rgba(255,255,255,.2)}
.iqmg button.iqmg-rplay-btn:disabled{opacity:.35;cursor:default}
.iqmg button.iqmg-rplay-btn .iqmg-arrow{width:16px;height:16px}
.iqmg button.iqmg-rplay-btn.is-prev .iqmg-arrow{transform:scaleX(-1)}
.iqmg button.iqmg-rplay-btn:focus-visible{outline:3px solid var(--g-goldtext);outline-offset:2px}
.iqmg .iqmg-rplay-row{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 42px) / 4);gap:14px;justify-content:center;
  margin:-6px -6px 0;padding:6px 6px 10px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 6px;scrollbar-width:none}
.iqmg .iqmg-rplay-row::-webkit-scrollbar{display:none}
.iqmg .iqmg-rplay.is-scroll .iqmg-rplay-row{justify-content:start}
.iqmg .iqmg-rplay.is-scroll:not(.at-end) .iqmg-rplay-row{-webkit-mask-image:linear-gradient(90deg,#000 86%,transparent);mask-image:linear-gradient(90deg,#000 86%,transparent)}
.iqmg button.iqmg-tile,.iqmg button.iqmg-tile:hover,.iqmg button.iqmg-tile:focus,.iqmg a.iqmg-tile,.iqmg a.iqmg-tile:visited,.iqmg a.iqmg-tile:hover{
  display:flex;flex-direction:column;min-width:0;margin:0;padding:0;border:1px solid rgba(255,255,255,.16);border-radius:18px;overflow:hidden;
  background:rgba(255,255,255,.07);color:#fff;font:inherit;text-align:left;text-decoration:none;text-transform:none;letter-spacing:0;cursor:pointer;
  scroll-snap-align:start;box-shadow:0 22px 40px -28px rgba(0,0,0,.75);transition:transform .25s,border-color .25s,background .25s,box-shadow .25s}
.iqmg .iqmg-tile.is-again{border-color:rgba(255,255,255,.5)}
.iqmg .iqmg-tile:hover,.iqmg .iqmg-tile:focus-visible{transform:translateY(-5px);border-color:rgba(245,194,107,.8);background:rgba(255,255,255,.13);
  box-shadow:0 0 0 3px rgba(245,194,107,.16),0 30px 50px -24px rgba(0,0,0,.8)}
.iqmg .iqmg-tile:focus-visible{outline:3px solid var(--g-goldtext);outline-offset:3px}
.iqmg .iqmg-tile-art{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:rgba(0,0,0,.25)}
.iqmg .iqmg-tile-art img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.iqmg .iqmg-tile-art::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,8,24,0) 45%,rgba(4,8,24,.5) 100%);transition:background .3s}
.iqmg .iqmg-tile:hover .iqmg-tile-art img,.iqmg .iqmg-tile:focus-visible .iqmg-tile-art img{transform:scale(1.08)}
.iqmg .iqmg-tile:hover .iqmg-tile-art::after,.iqmg .iqmg-tile:focus-visible .iqmg-tile-art::after{background:rgba(4,8,24,.52)}
.iqmg .iqmg-tile-tag{position:absolute;z-index:1;left:10px;top:10px;padding:5px 9px;border-radius:999px;background:rgba(4,8,24,.55);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);font:700 10px/1 var(--g-f);letter-spacing:.12em;text-transform:uppercase;color:#fff}
.iqmg .iqmg-tile-cue{position:absolute;z-index:1;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;
  opacity:0;transform:scale(.82);transition:opacity .25s,transform .35s cubic-bezier(.2,.8,.3,1.35)}
.iqmg .iqmg-tile-cue svg{box-sizing:content-box;width:28px;height:28px;padding:12px;border-radius:50%;background:var(--g-gold);color:#2A1404;fill:currentColor;
  box-shadow:0 0 0 6px rgba(245,194,107,.28),0 12px 26px -8px rgba(0,0,0,.7)}
.iqmg .iqmg-tile-cue svg.is-again{fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.iqmg .iqmg-tile-cue b{font:700 15px/1 var(--g-f);color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.65)}
.iqmg .iqmg-tile:hover .iqmg-tile-cue,.iqmg .iqmg-tile:focus-visible .iqmg-tile-cue{opacity:1;transform:none}
.iqmg .iqmg-tile-body{display:flex;flex-direction:column;gap:4px;padding:11px 14px 13px}
.iqmg .iqmg-tile-body b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 15px/1.25 var(--g-f);color:#fff}
.iqmg .iqmg-tile-body span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 12.5px/1.3 var(--g-f);color:rgba(255,255,255,.65)}
@media (hover:none){ /* no hover on touch screens: a small play button always shows */
  .iqmg .iqmg-tile-cue{inset:auto 9px 9px auto;opacity:1;transform:none}
  .iqmg .iqmg-tile-cue svg{width:18px;height:18px;padding:8px;box-shadow:0 0 0 4px rgba(245,194,107,.25)}
  .iqmg .iqmg-tile-cue b{display:none}
}
/* Challenge a friend (user, 3 Nov): a glass bar right under the score; each app tile in that app's own
   colour with its name under it, the tools (Email, Copy link, More) in white; the message the friend gets */
.iqmg .iqmg-sharebar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px 34px;align-items:center;max-width:980px;margin:0 auto 30px;padding:22px 26px;
  border:1px solid rgba(255,255,255,.16);border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.11),rgba(255,255,255,.04));
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 28px 50px -34px rgba(0,0,0,.7);text-align:left}
.iqmg .iqmg-result p.iqmg-sharebar-h{margin:0 0 4px;color:var(--g-goldtext)}
.iqmg .iqmg-result p.iqmg-sharebar-sub{margin:0 0 12px;font:400 13.5px/1.45 var(--g-f);color:rgba(255,255,255,.72)}
.iqmg .iqmg-result p.iqmg-sharebar-msg{display:-webkit-box;margin:0 0 14px;padding:10px 14px;overflow:hidden;border-radius:16px 16px 16px 4px;background:#FFFDF8;
  font:400 14px/1.45 var(--g-f);color:var(--g-ink);-webkit-box-orient:vertical;-webkit-line-clamp:2;box-shadow:0 10px 24px -16px rgba(0,0,0,.6)}
.iqmg .iqmg-sharebar .iqmg-name{display:flex;align-items:center;gap:12px;margin:0;font:400 12.5px/1.3 var(--g-f);color:rgba(255,255,255,.62)}
.iqmg .iqmg-sharebar .iqmg-name span{flex:none}
.iqmg .iqmg-sharebar .iqmg-name input,.iqmg .iqmg-sharebar .iqmg-name input:focus{flex:1;width:auto;min-width:0;max-width:190px;margin:0;padding:6px 0;border:0;
  border-bottom:1px solid rgba(255,255,255,.3);border-radius:0;background:transparent;box-shadow:none;outline:none;font:400 15px/1.2 var(--g-f);color:#fff}
.iqmg .iqmg-sharebar .iqmg-name input::placeholder{color:rgba(255,255,255,.42)}
.iqmg .iqmg-sharebar .iqmg-name input:focus{border-bottom-color:var(--g-goldtext)}
.iqmg .iqmg-share{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:14px 4px;max-width:540px;margin:0}
.iqmg a.iqmg-sh,.iqmg a.iqmg-sh:visited,.iqmg button.iqmg-sh,.iqmg button.iqmg-sh:hover,.iqmg button.iqmg-sh:focus{display:flex;flex-direction:column;align-items:center;gap:7px;
  width:62px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;outline:none;cursor:pointer;text-decoration:none;
  font:400 11.5px/1.2 var(--g-f);color:rgba(255,255,255,.8);white-space:nowrap}
.iqmg .iqmg-sh-ico{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background-color:var(--sh,#fff);
  background-image:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,0) 58%);color:#fff;
  box-shadow:0 12px 22px -12px var(--sh,#000),inset 0 0 0 1px rgba(255,255,255,.16);transition:transform .2s,box-shadow .2s,filter .2s}
.iqmg .iqmg-sh.is-x .iqmg-sh-ico{box-shadow:0 12px 22px -12px #000,inset 0 0 0 1px rgba(255,255,255,.3)}
.iqmg .iqmg-sh.is-tool .iqmg-sh-ico{background-color:#fff;background-image:linear-gradient(180deg,#fff,#EEF2F7);color:var(--g-navy);box-shadow:0 12px 22px -14px rgba(0,0,0,.7)}
.iqmg a.iqmg-sh:hover .iqmg-sh-ico,.iqmg button.iqmg-sh:hover .iqmg-sh-ico{transform:translateY(-3px);filter:brightness(1.07)}
.iqmg a.iqmg-sh:hover,.iqmg button.iqmg-sh:hover{color:#fff}
.iqmg .iqmg-sh:focus-visible .iqmg-sh-ico{outline:3px solid #F5A623;outline-offset:3px}
.iqmg .iqmg-sh svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.iqmg .iqmg-sh.is-fb svg,.iqmg .iqmg-sh.is-tg svg,.iqmg .iqmg-sh.is-rd svg{width:26px;height:26px} /* round logos fill more of the tile */
.iqmg .iqmg-sh.is-x svg{width:19px;height:19px}
.iqmg .iqmg-sh svg .f{fill:currentColor;stroke:none}

/* "Brain Games" in a game's eyebrow links the hub: same colour and letters, underline on hover */
.iqmg .iqmg-eyebrow a.iqmg-crumb,.iqmg .iqmg-eyebrow a.iqmg-crumb:visited{color:inherit;font:inherit;letter-spacing:inherit;text-decoration:none;border-bottom:1px solid transparent}
.iqmg .iqmg-eyebrow a.iqmg-crumb:hover,.iqmg .iqmg-eyebrow a.iqmg-crumb:focus-visible{border-bottom-color:currentColor;outline:none}
/* How to play + Full screen under Start; full screen = the band fixed over the whole screen (and the
   browser's own full screen where it allows it), with a round exit button in the top corner */
.iqmg .iqmg-startlinks{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:14px 0 0}
.iqmg .iqmg-startlinks button.iqmg-howbtn,.iqmg .iqmg-startlinks button.iqmg-howbtn:hover,.iqmg .iqmg-startlinks button.iqmg-howbtn:focus{margin:0}
.iqmg .iqmg-startlinks button.iqmg-fullbtn[hidden]{display:none}
.iqmg .iqmg-card.is-full,header.site ~ .bl-page > .bl-article > .iqmg.is-hero:first-child .iqmg-card.is-full{position:fixed;inset:0;z-index:99995;width:auto;height:100%;
  min-height:0;margin:0;padding-top:env(safe-area-inset-top,0px);border-radius:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.iqmg .iqmg-card.is-full:fullscreen{width:100%;height:100%}
.iqmg.is-hero .iqmg-card.is-full[data-state="idle"] .iqmg-start{padding-bottom:50px}
.iqmg.is-hero .iqmg-card.is-full[data-state="idle"]::after{display:none} /* no page below to melt into */
html.iqmg-lock,html.iqmg-lock body{overflow:hidden}
.iqmg button.iqmg-fullx,.iqmg button.iqmg-fullx:hover,.iqmg button.iqmg-fullx:focus{position:fixed;top:calc(12px + env(safe-area-inset-top,0px));right:12px;z-index:6;
  display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:rgba(10,28,51,.55);
  color:#fff;box-shadow:0 10px 24px -12px rgba(0,0,0,.6);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);cursor:pointer}
.iqmg button.iqmg-fullx[hidden]{display:none}
.iqmg button.iqmg-fullx:focus-visible{outline:3px solid var(--g-goldtext);outline-offset:2px}
.iqmg button.iqmg-fullx svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* See your full result: a quiet outline button above Keep playing, down to the report card */
.iqmg .iqmg-result p.iqmg-seeall-row{margin:0 0 30px;text-align:center}
.iqmg .iqmg-result button.iqmg-seeall,.iqmg .iqmg-result button.iqmg-seeall:hover,.iqmg .iqmg-result button.iqmg-seeall:focus{display:inline-flex;align-items:center;gap:9px;
  margin:0;padding:13px 24px;border:1px solid rgba(255,255,255,.34);border-radius:999px;background:rgba(255,255,255,.08);color:#fff;font:700 15.5px/1 var(--g-f);
  text-transform:none;letter-spacing:0;box-shadow:none;cursor:pointer;transition:background .2s,border-color .2s}
.iqmg .iqmg-result button.iqmg-seeall:hover{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.55)}
.iqmg .iqmg-result button.iqmg-seeall:focus-visible{outline:3px solid var(--g-goldtext);outline-offset:3px}
.iqmg .iqmg-result button.iqmg-seeall svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.iqmg .iqmg-report-main{scroll-margin-top:100px}
.iqmg .iqmg-card.is-full .iqmg-report-main{scroll-margin-top:20px}

/* narrow band (phones, or a narrow column): one column, the IQ test button right after the score */
@container iqmg (max-width: 760px){
  .iqmg .iqmg-start{padding:30px 16px 40px}
  .iqmg .iqmg-head{gap:14px;margin-bottom:24px}
  .iqmg .iqmg-icon{width:58px;height:58px}
  .iqmg .iqmg-modes{gap:8px;margin-bottom:20px}
  .iqmg button.iqmg-mode,.iqmg button.iqmg-mode:hover,.iqmg button.iqmg-mode:focus{padding:0 0 10px;border-radius:14px}
  .iqmg .iqmg-mode-art{margin-bottom:6px}
  .iqmg .iqmg-mode-name{padding:0 4px;font-size:13.5px;text-align:center}
  .iqmg .iqmg-mode-line,.iqmg .iqmg-mode-note{display:none}
  .iqmg .iqmg-mode-check{top:9px;right:9px;width:20px;height:20px;background-size:12px,auto}
  .iqmg .iqmg-intro{font-size:16px;margin-bottom:22px}
  .iqmg .iqmg-levels{margin-bottom:16px}
  .iqmg button.iqmg-level,.iqmg button.iqmg-level:hover,.iqmg button.iqmg-level:focus{padding:9px 13px;font-size:13px}
  .iqmg .iqmg-stage{padding:28px 18px 56px}
  .iqmg .iqmg-slot{padding:0 12px 44px}
  .iqmg .iqmg-rhero{margin:0 -12px;padding:36px 14px 104px}
  .iqmg .iqmg-rgrid{grid-template-columns:1fr;gap:16px;margin-top:-70px}
  /* Einstein leans out over the card's top edge, centred, and his faded bottom melts into the card */
  .iqmg .iqmg-nextlvl{grid-template-columns:minmax(0,1fr);gap:0;margin:62px 0 22px;padding:0 16px 16px;border-radius:20px}
  .iqmg img.iqmg-nextlvl-pic{grid-column:1;grid-row:1;justify-self:center;width:186px;margin:-60px 0 6px}
  .iqmg .iqmg-nextlvl-body{grid-column:1;grid-row:2}
  .iqmg .iqmg-nextlvl-cta{grid-column:1;grid-row:3;margin-top:16px}
  .iqmg .iqmg-result p.iqmg-nextlvl-kick{justify-content:center}
  .iqmg .iqmg-nextlvl-h{font-size:19px;text-align:center}
  .iqmg .iqmg-xp-bar em{display:none} /* five names do not fit a phone: the count above says it */
  .iqmg ul.iqmg-nextlvl-pts{flex-direction:column;gap:6px}
  .iqmg .iqmg-report-main{padding:24px 20px 22px;border-radius:18px}
  .iqmg .iqmg-sharebar{grid-template-columns:minmax(0,1fr);gap:16px;margin-bottom:24px;padding:18px 16px 16px;border-radius:18px}
  .iqmg .iqmg-share{justify-content:center;gap:14px 2px;max-width:none}
  .iqmg a.iqmg-sh,.iqmg a.iqmg-sh:visited,.iqmg button.iqmg-sh,.iqmg button.iqmg-sh:hover,.iqmg button.iqmg-sh:focus{width:calc(25% - 2px)}
  .iqmg .iqmg-share:has(.is-more) .iqmg-sh{width:calc(20% - 2px)} /* 9 tiles with the phone's own menu: 5 + 4, not 4 + 4 + 1 */
  .iqmg .iqmg-sharebar .iqmg-name input,.iqmg .iqmg-sharebar .iqmg-name input:focus{max-width:none}
  .iqmg .iqmg-rplay-row{grid-auto-columns:64%;gap:10px}
  .iqmg button.iqmg-rplay-btn,.iqmg .iqmg-rplay.is-scroll button.iqmg-rplay-btn{display:none} /* swipe instead */
  .iqmg .iqmg-tile-body{padding:9px 12px 11px}
  .iqmg .iqmg-tile-body b{font-size:14px}
  .iqmg .iqmg-figs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .iqmg .iqmg-fig:nth-child(4n+1){padding-left:16px;border-left:1px solid var(--g-line)}
  .iqmg .iqmg-fig:nth-child(odd){padding-left:0;border-left:0} /* the first of each row of two */
  .iqmg .iqmg-fig:nth-child(n+3){border-top:1px solid var(--g-line)}
  .iqmg .iqmg-result .iqmg-verdict{font-size:16.5px}
  .iqmg .iqmg-dist-row{grid-template-columns:minmax(0,1fr) 4.2em;gap:6px 12px}
  .iqmg .iqmg-dist-track{grid-column:1/-1;grid-row:2}
}

/* ---------- "More brain games" under a game (server HTML) ---------- */
body nav.iqmg-more{box-sizing:border-box;width:calc(100% - 52px);max-width:1158px;margin:26px auto 0;padding:18px 20px;border:1px solid #E9E4DC;border-radius:18px;background:#fff;box-shadow:none;
  font-family:"Enriqueta",Rockwell,Georgia,serif}
.iqmg-more p.iqmg-more-h{margin:0 0 12px;font:700 12px/1 "Enriqueta",Georgia,serif;letter-spacing:.16em;text-transform:uppercase;color:#93A2B4}
.iqmg-more ul.iqmg-more-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.iqmg-more ul.iqmg-more-list li{margin:0;padding:0}
.iqmg-more ul.iqmg-more-list li::before{content:none;display:none}
.iqmg-more ul.iqmg-more-list a,.iqmg-more ul.iqmg-more-list a:visited{display:flex;align-items:center;gap:14px;color:#5E6E80;text-decoration:none;font-size:14px;line-height:1.45}
.iqmg-more ul.iqmg-more-list img{width:48px;height:48px;flex:none;border-radius:11px}
.iqmg-more ul.iqmg-more-list b{display:block;color:#0C3158;font-size:16px}
.iqmg-more a.iqmg-more-all,.iqmg-more a.iqmg-more-all:visited{display:inline-flex;align-items:center;gap:8px;margin:14px 0 0;color:#B4441A;font-weight:700;text-decoration:none}
.iqmg-more .iqmg-arrow{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- hub: [iqm_games_hub] ---------- */
.iqmg.iqmg-hub{max-width:1210px;margin:0 auto;padding:46px 26px 70px}
.iqmg .iqmg-hub-head{max-width:46em;margin:0 0 34px}
.iqmg .iqmg-hub-head h1{margin:0 0 14px;padding:0;font:700 50px/1.06 var(--g-f);font-size:clamp(40px,5vw,58px);color:var(--g-navy);letter-spacing:-.01em}
.iqmg .iqmg-lede{margin:0;max-width:38em;font:400 18.5px/1.65 var(--g-f);color:var(--g-muted)}
/* the featured slider: one slide per game on its own two colours (--t1 deep, behind the text;
   --t2 bright, the glow behind the cover). The slides are a scroll-snap row (swipe works without
   the script); the script adds .is-ready (bar, autoplay, entrance), .is-paused, .is-still */
.iqmg .iqmg-slider{position:relative;margin:0 0 46px;border-radius:26px;overflow:hidden;background:var(--g-dark);
  box-shadow:0 30px 60px -40px rgba(5,22,39,.7);container:iqmgs/inline-size}
.iqmg .iqmg-slides{position:relative;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;
  overscroll-behavior-x:contain;scrollbar-width:none}
.iqmg .iqmg-slides::-webkit-scrollbar{display:none}
.iqmg .iqmg-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);align-items:center;gap:40px;padding:44px 48px;color:#fff;
  background:radial-gradient(52% 78% at 77% 46%,var(--t2) 0%,transparent 72%),linear-gradient(112deg,var(--t1) 0%,var(--t1) 40%,var(--t2) 150%)}
.iqmg .iqmg-slider[data-iqmg-slider] .iqmg-slide{padding-bottom:110px} /* room for the bar, kept before the script runs: no jump */
.iqmg .iqmg-slide-copy{min-width:0}
.iqmg .iqmg-slide-copy p{margin:0;padding:0}
.iqmg .iqmg-slide-copy p.iqmg-slide-tag{display:inline-block;margin:0 0 14px;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.13);
  font:700 11.5px/1 var(--g-f);letter-spacing:.16em;text-transform:uppercase;color:var(--g-goldtext)}
.iqmg .iqmg-slide-copy p.iqmg-slide-h{margin:0 0 12px;font:700 44px/1.06 var(--g-f);font-size:clamp(30px,4cqi,48px);letter-spacing:-.01em;color:#fff}
.iqmg .iqmg-slide-copy p.iqmg-slide-p{margin:0 0 22px;max-width:30em;font:400 17px/1.6 var(--g-f);color:rgba(255,255,255,.84)}
.iqmg .iqmg-slide-copy p.iqmg-slide-modes{display:flex;flex-wrap:wrap;gap:10px 18px;margin:0 0 28px}
.iqmg .iqmg-slide-modes span{display:inline-flex;align-items:center;gap:8px;font:700 14px/1 var(--g-f);color:#fff}
.iqmg .iqmg-slide-modes img{width:22px;height:22px;flex:none;border-radius:6px;box-shadow:0 0 0 1px rgba(255,255,255,.22)}
.iqmg a.iqmg-slide-btn,.iqmg a.iqmg-slide-btn:visited,.iqmg a.iqmg-slide-btn:hover{display:inline-flex;align-items:center;gap:10px;padding:15px 28px;
  border-radius:999px;background:#fff;color:var(--g-navy);font:700 16px/1 var(--g-f);text-decoration:none;
  box-shadow:0 16px 30px -16px rgba(0,0,0,.65);transition:transform .2s}
.iqmg a.iqmg-slide-btn:hover{transform:translateY(-2px)}
.iqmg a.iqmg-slide-btn:focus-visible{outline:3px solid var(--g-goldtext);outline-offset:3px}
.iqmg .iqmg-slide-btn .iqmg-arrow{color:var(--g-accent);transition:transform .2s}
.iqmg a.iqmg-slide-btn:hover .iqmg-arrow{transform:translateX(3px)}
.iqmg a.iqmg-slide-art,.iqmg a.iqmg-slide-art:visited,.iqmg a.iqmg-slide-art:hover{display:block;aspect-ratio:16/9;border-radius:20px;overflow:hidden;
  background:rgba(0,0,0,.2);box-shadow:0 34px 60px -26px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.14)}
.iqmg .iqmg-slide-art img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.iqmg a.iqmg-slide-art:hover img{transform:scale(1.03)}
/* the bar over the bottom of the slides: game tabs (the open one shows its name and a line that
   fills while it is shown; its end moves the slider on), then previous, next and pause */
.iqmg .iqmg-slider-bar{display:none}
.iqmg .iqmg-slider.is-ready .iqmg-slider-bar{position:absolute;left:48px;right:48px;bottom:28px;z-index:2;display:flex;align-items:center;gap:10px}
.iqmg .iqmg-slider-tabs{position:relative;display:flex;align-items:center;gap:8px;flex:1;min-width:0;margin-right:auto;padding:4px 2px 10px;overflow-x:auto;scrollbar-width:none}
.iqmg .iqmg-slider-tabs::-webkit-scrollbar{display:none}
.iqmg button.iqmg-slider-tab,.iqmg button.iqmg-slider-tab:hover,.iqmg button.iqmg-slider-tab:focus{position:relative;display:inline-flex;align-items:center;flex:none;
  margin:0;padding:4px;border:0;border-radius:14px;background:rgba(255,255,255,.08);color:#fff;text-transform:none;letter-spacing:0;
  box-shadow:none;cursor:pointer;opacity:.66;transition:opacity .25s,background .25s}
.iqmg button.iqmg-slider-tab:hover{opacity:.95}
.iqmg button.iqmg-slider-tab.is-on{opacity:1;background:rgba(255,255,255,.17)}
.iqmg button.iqmg-slider-tab:focus-visible,.iqmg button.iqmg-slider-btn:focus-visible{outline:3px solid var(--g-goldtext);outline-offset:2px}
.iqmg button.iqmg-slider-tab img{display:block;width:40px;height:40px;flex:none;border-radius:22.5%}
.iqmg button.iqmg-slider-tab span{display:block;max-width:0;overflow:hidden;white-space:nowrap;font:700 14px/1 var(--g-f);color:#fff;
  transition:max-width .45s cubic-bezier(.2,.7,.2,1),padding .45s}
.iqmg button.iqmg-slider-tab.is-on span{max-width:14em;padding:0 14px 0 11px}
.iqmg button.iqmg-slider-tab i{position:absolute;left:12px;right:12px;bottom:-9px;height:3px;border-radius:3px;background:rgba(255,255,255,.22);overflow:hidden;opacity:0}
.iqmg button.iqmg-slider-tab.is-on i{opacity:1}
.iqmg button.iqmg-slider-tab b{display:block;width:100%;height:100%;background:#fff;transform:scaleX(0);transform-origin:0 50%}
.iqmg .iqmg-slider.is-ready button.iqmg-slider-tab.is-on b{animation:iqmgSlideTime 6.5s linear forwards}
.iqmg .iqmg-slider.is-paused button.iqmg-slider-tab.is-on b{animation-play-state:paused}
.iqmg .iqmg-slider.is-still button.iqmg-slider-tab i{display:none}
@keyframes iqmgSlideTime{to{transform:scaleX(1)}}
.iqmg button.iqmg-slider-btn,.iqmg button.iqmg-slider-btn:hover,.iqmg button.iqmg-slider-btn:focus{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;
  margin:0;padding:0;border:1px solid rgba(255,255,255,.3);border-radius:50%;background:rgba(6,14,26,.3);color:#fff;box-shadow:none;cursor:pointer;
  transition:background .2s}
.iqmg button.iqmg-slider-btn:hover{background:rgba(255,255,255,.2)}
.iqmg button.iqmg-slider-btn svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.iqmg button.iqmg-slider-btn .is-tri{display:none;fill:currentColor;stroke:none}
.iqmg button.iqmg-slider-btn[aria-pressed="true"] .is-tri{display:block}
.iqmg button.iqmg-slider-btn[aria-pressed="true"] .is-bars{display:none}
.iqmg .iqmg-slider.is-still button.iqmg-slider-btn.is-pause{display:none}
/* entrance (script on, motion allowed): the open slide's words rise in, its cover grows in */
.iqmg .iqmg-slider.is-ready:not(.is-still) .iqmg-slide-copy>*{opacity:0;transform:translateY(12px);transition:opacity .5s,transform .6s cubic-bezier(.2,.7,.2,1)}
.iqmg .iqmg-slider.is-ready:not(.is-still) .iqmg-slide.is-on .iqmg-slide-copy>*{opacity:1;transform:none}
.iqmg .iqmg-slider.is-ready .iqmg-slide.is-on .iqmg-slide-copy>:nth-child(2){transition-delay:.06s}
.iqmg .iqmg-slider.is-ready .iqmg-slide.is-on .iqmg-slide-copy>:nth-child(3){transition-delay:.12s}
.iqmg .iqmg-slider.is-ready .iqmg-slide.is-on .iqmg-slide-copy>:nth-child(4){transition-delay:.18s}
.iqmg .iqmg-slider.is-ready .iqmg-slide.is-on .iqmg-slide-copy>:nth-child(5){transition-delay:.24s}
.iqmg .iqmg-slider.is-ready:not(.is-still) a.iqmg-slide-art{transform:scale(.92);opacity:.55;transition:transform .8s cubic-bezier(.2,.7,.2,1),opacity .6s}
.iqmg .iqmg-slider.is-ready:not(.is-still) .iqmg-slide.is-on a.iqmg-slide-art{transform:none;opacity:1}
@container iqmgs (max-width: 700px){
  .iqmg .iqmg-slide{grid-template-columns:1fr;align-items:start;gap:18px;padding:16px 16px 26px}
  .iqmg .iqmg-slider[data-iqmg-slider] .iqmg-slide{padding-bottom:80px}
  .iqmg a.iqmg-slide-art{order:-1;border-radius:16px}
  .iqmg .iqmg-slide-copy{padding:0 6px}
  .iqmg .iqmg-slide-copy p.iqmg-slide-tag{margin-bottom:12px}
  .iqmg .iqmg-slide-copy p.iqmg-slide-h{font-size:28px}
  .iqmg .iqmg-slide-copy p.iqmg-slide-p{margin-bottom:16px;font-size:15.5px}
  .iqmg .iqmg-slide-copy p.iqmg-slide-modes{gap:8px 14px;margin-bottom:20px}
  .iqmg .iqmg-slide-modes span{font-size:13px}
  .iqmg .iqmg-slider.is-ready .iqmg-slider-bar{left:12px;right:12px;bottom:16px;gap:6px}
  .iqmg .iqmg-slider-tabs{gap:6px}
  .iqmg button.iqmg-slider-tab,.iqmg button.iqmg-slider-tab:hover,.iqmg button.iqmg-slider-tab:focus{padding:2px;border-radius:10px}
  .iqmg button.iqmg-slider-tab img{width:30px;height:30px}
  .iqmg button.iqmg-slider-tab.is-on span{max-width:0;padding:0}
  .iqmg button.iqmg-slider-tab i{left:5px;right:5px;bottom:-8px}
  .iqmg button.iqmg-slider-btn.is-prev,.iqmg button.iqmg-slider-btn.is-next{display:none}
  .iqmg button.iqmg-slider-btn,.iqmg button.iqmg-slider-btn:hover,.iqmg button.iqmg-slider-btn:focus{width:36px;height:36px}
}
.iqmg .iqmg-rowhead{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 16px}
.iqmg .iqmg-rowhead h2{margin:0;padding:0;font:700 26px/1.2 var(--g-f);color:var(--g-navy)}
.iqmg ul.iqmg-covers{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 22px}
.iqmg ul.iqmg-covers li{margin:0;padding:0}
.iqmg ul.iqmg-covers li::before{content:none;display:none}
.iqmg a.iqmg-cc,.iqmg a.iqmg-cc:visited,.iqmg a.iqmg-cc:hover{display:flex;flex-direction:column;height:100%;color:var(--g-ink);text-decoration:none}
.iqmg .iqmg-cc-img{display:block;aspect-ratio:16/9;border-radius:18px;overflow:hidden;background:var(--g-dark);
  box-shadow:0 22px 40px -26px rgba(5,22,39,.6);transition:transform .25s,box-shadow .25s}
.iqmg .iqmg-cc-img img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s}
.iqmg a.iqmg-cc:hover .iqmg-cc-img{transform:translateY(-4px);box-shadow:0 30px 50px -26px rgba(5,22,39,.65)}
.iqmg a.iqmg-cc:hover .iqmg-cc-img img{transform:scale(1.03)}
.iqmg .iqmg-cc-body{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 14px;padding:14px 4px 0}
.iqmg .iqmg-cc-name{grid-column:1;font:700 18px/1.25 var(--g-f);color:var(--g-navy)}
.iqmg .iqmg-cc-tags{grid-column:1;font:400 13.5px/1.45 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-cc-play{grid-column:2;grid-row:1/3;display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:999px;
  background:#EAF0F8;color:var(--g-navy2);font:700 14px/1 var(--g-f);transition:background .2s,color .2s}
.iqmg .iqmg-cc-play .iqmg-arrow{width:14px;height:14px}
.iqmg a.iqmg-cc:hover .iqmg-cc-play{background:var(--g-navy);color:#fff}
.iqmg .iqmg-hub-lower{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;margin:40px 0 0}
.iqmg .iqmg-panel{padding:28px;border-radius:20px;background:#fff;border:1px solid var(--g-line)}
.iqmg .iqmg-panel h2,.iqmg .iqmg-iqcard h2{margin:0 0 6px;padding:0;font:700 22px/1.25 var(--g-f);color:var(--g-navy)}
.iqmg .iqmg-panel .iqmg-panel-sub{margin:0 0 20px;font:400 14.5px/1.55 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-prow{display:grid;grid-template-columns:7.5em minmax(0,1fr) 6.5em;align-items:center;gap:14px;padding:11px 0;border-top:1px solid var(--g-line);
  font:400 14.5px/1 var(--g-f)}
.iqmg .iqmg-prow:first-child{border-top:0}
.iqmg .iqmg-prow-name{font-weight:700;color:var(--g-ink)}
.iqmg .iqmg-prow-bar{height:4px;border-radius:4px;background:#EEF1F5;overflow:hidden}
.iqmg .iqmg-prow-bar i{display:block;width:0;height:100%;background:var(--g-navy)}
.iqmg .iqmg-prow-val{text-align:right;color:var(--g-faint)}
.iqmg .iqmg-prow-val a,.iqmg .iqmg-prow-val a:visited{color:var(--g-link);font-weight:700;text-decoration:none}
.iqmg .iqmg-prow.is-done .iqmg-prow-val{color:var(--g-navy);font-weight:700}
.iqmg .iqmg-prow.is-iq{margin-top:6px;border-top:1px dashed #D9D1C4}
.iqmg .iqmg-prow.is-iq .iqmg-prow-bar{background:repeating-linear-gradient(90deg,#F1E9DD 0 6px,transparent 6px 10px)}
.iqmg .iqmg-iqcard{display:flex;flex-direction:column;justify-content:center;padding:34px;border-radius:20px;background:var(--g-navy);color:#fff}
.iqmg .iqmg-iqcard .iqmg-eyebrow{color:var(--g-goldtext)}
.iqmg .iqmg-iqcard h2{font-size:28px;color:#fff}
.iqmg .iqmg-iqcard .iqmg-iq-text{margin:0 0 24px;max-width:28em;font:400 16px/1.6 var(--g-f);color:var(--g-soft)}
.iqmg .iqmg-iqcard .iqmg-iq-btn{margin:0}
.iqmg .iqmg-iqcard .iqmg-meta{margin:14px 0 0;color:var(--g-dim)}
@media (max-width:760px){
  .iqmg.iqmg-hub{padding:30px 16px 50px}
  .iqmg .iqmg-hub-head{margin-bottom:24px}
  .iqmg .iqmg-lede{font-size:17px}
  .iqmg .iqmg-slider{margin-bottom:32px;border-radius:20px}
  .iqmg .iqmg-rowhead h2{font-size:22px}
  .iqmg ul.iqmg-covers{grid-template-columns:1fr;gap:22px}
  .iqmg .iqmg-cc-img{border-radius:16px}
  .iqmg .iqmg-hub-lower{grid-template-columns:1fr;gap:14px;margin-top:26px}
  .iqmg .iqmg-panel,.iqmg .iqmg-iqcard{padding:24px 22px}
  .iqmg .iqmg-prow{grid-template-columns:6.5em minmax(0,1fr) 5.5em;gap:10px}
  .iqmg.is-hero .iqmg-card{min-height:clamp(500px,calc(100svh - 120px),620px)}
}

/* ---------- game page under the game: [iqm_game_guide] ---------- */
.iqmg.iqmg-guide{max-width:1210px;margin:0 auto;padding:0 26px}
/* the IQ test banner, first thing under the game (iqmg_iq_banner) */
.iqmg .iqmg-iqban{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:24px;margin:26px 0 0;padding:22px 26px;
  border:1px solid var(--g-line);border-radius:20px;background:linear-gradient(100deg,#fff 0%,#fff 55%,#FFF5EA 100%);box-shadow:0 26px 50px -40px rgba(5,22,39,.5)}
.iqmg .iqmg-iqban-ico{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:16px;background:var(--g-navy)}
.iqmg .iqmg-iqban-ico svg{width:46px;height:46px;fill:none;stroke-linecap:round;stroke-linejoin:round}
.iqmg .iqmg-iqban-ico .is-fill{fill:rgba(245,194,107,.16)}
.iqmg .iqmg-iqban-ico .is-axis{stroke:rgba(255,255,255,.3);stroke-width:1.5}
.iqmg .iqmg-iqban-ico .is-curve{stroke:var(--g-goldtext);stroke-width:2.4}
.iqmg .iqmg-iqban-ico .is-mark{stroke:var(--g-goldtext);stroke-width:1.5;stroke-dasharray:2 2.5}
.iqmg .iqmg-iqban-ico circle{fill:var(--g-goldtext)}
.iqmg .iqmg-iqban .iqmg-eyebrow{margin:0 0 8px}
.iqmg .iqmg-iqban p.iqmg-iqban-line{margin:0;max-width:44em;font:400 17px/1.5 var(--g-f);color:var(--g-ink)}
.iqmg .iqmg-iqban-line a,.iqmg .iqmg-iqban-line a:visited{color:var(--g-link);font-weight:700;white-space:nowrap;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
.iqmg .iqmg-iqban-line a:hover{color:var(--g-accent)}
.iqmg .iqmg-iqban .iqmg-meta{margin:8px 0 0}
@media (max-width:760px){
  .iqmg .iqmg-iqban{grid-template-columns:auto minmax(0,1fr);align-items:start;gap:16px;margin-top:18px;padding:18px}
  .iqmg .iqmg-iqban-ico{width:52px;height:52px;border-radius:14px}
  .iqmg .iqmg-iqban-ico svg{width:38px;height:38px}
  .iqmg .iqmg-iqban p.iqmg-iqban-line{font-size:16px}
  .iqmg .iqmg-iqban a.iqmg-gold{grid-column:1/-1;width:100%}
}
.iqmg .iqmg-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:34px 0 0;background:#fff;border:1px solid var(--g-line);border-radius:22px;
  box-shadow:0 26px 50px -40px rgba(5,22,39,.5)}
.iqmg .iqmg-stat{display:flex;flex-direction:column;gap:6px;padding:24px 26px;border-left:1px solid var(--g-line)}
.iqmg .iqmg-stat:first-child{border-left:0}
.iqmg .iqmg-stat b{font:700 32px/1 var(--g-f);color:var(--g-navy);letter-spacing:-.01em}
.iqmg .iqmg-stat span{font:400 14.5px/1.45 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-stat .iqmg-src{margin-top:auto;font:700 10.5px/1.3 var(--g-f);letter-spacing:.14em;text-transform:uppercase;color:var(--g-faint)}
.iqmg .iqmg-gsec{margin:66px 0 0}
.iqmg .iqmg-gsec h2,.iqmg .iqmg-gcard h2{margin:0 0 12px;padding:0;font:700 32px/1.15 var(--g-f);font-size:clamp(26px,3vw,34px);color:var(--g-navy);letter-spacing:-.01em}
.iqmg .iqmg-glede{margin:0 0 28px;max-width:44em;font:400 17.5px/1.65 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-howgrid,.iqmg .iqmg-skills{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.iqmg .iqmg-how,.iqmg .iqmg-skill,.iqmg .iqmg-gcard{display:flex;flex-direction:column;padding:28px;border-radius:20px;background:#fff;border:1px solid var(--g-line);
  box-shadow:0 22px 44px -40px rgba(5,22,39,.5)}
.iqmg .iqmg-how-top{display:flex;align-items:center;gap:14px;margin:0 0 20px}
.iqmg .iqmg-how-top img{width:44px;height:44px;flex:none;border-radius:12px}
.iqmg .iqmg-how h3,.iqmg .iqmg-skill h3{margin:0 0 4px;padding:0;font:700 20px/1.2 var(--g-f);color:var(--g-navy)}
.iqmg .iqmg-how-top p{margin:0;font:400 14px/1.45 var(--g-f);color:var(--g-muted)}
.iqmg ol.iqmg-steps{list-style:none;margin:0 0 24px;padding:0;counter-reset:iqmgstep}
.iqmg ol.iqmg-steps li{position:relative;margin:0 0 14px;padding:0 0 0 38px;font:400 15.5px/1.6 var(--g-f);color:var(--g-ink);counter-increment:iqmgstep}
.iqmg ol.iqmg-steps li::before{content:counter(iqmgstep);position:absolute;left:0;top:1px;width:24px;height:24px;border-radius:50%;background:#EAF0F8;
  color:var(--g-navy);font:700 12px/24px var(--g-f);text-align:center}
.iqmg a.iqmg-how-btn,.iqmg a.iqmg-how-btn:visited{display:inline-flex;align-items:center;align-self:flex-start;gap:8px;margin-top:auto;padding:11px 20px;border-radius:999px;
  background:#EAF0F8;color:var(--g-navy2);font:700 14.5px/1 var(--g-f);text-decoration:none;transition:background .2s,color .2s}
.iqmg a.iqmg-how-btn:hover{background:var(--g-navy);color:#fff}
.iqmg a.iqmg-how-btn .iqmg-arrow{width:14px;height:14px;transform:rotate(-90deg)}
.iqmg .iqmg-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.iqmg .iqmg-gcard{padding:32px}
.iqmg .iqmg-gcard > p{margin:0 0 20px;font:400 16px/1.6 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-gcard > p.iqmg-eyebrow{margin:0 0 14px;font:700 12.5px/1 var(--g-f);letter-spacing:.2em;color:var(--g-accent)}
.iqmg .iqmg-gcard > p.iqmg-gnote{margin:16px 0 0;font-size:13px;line-height:1.55;color:var(--g-faint)}
.iqmg table.iqmg-ladder{width:100%;margin:0;border-collapse:collapse;border:0;background:transparent;font-family:var(--g-f)}
.iqmg .iqmg-ladder th,.iqmg .iqmg-ladder td{padding:11px 0;border:0;border-top:1px solid var(--g-line);background:transparent;text-align:left;vertical-align:middle}
.iqmg .iqmg-ladder thead th{padding:0 0 10px;border-top:0;font:700 11px/1.2 var(--g-f);letter-spacing:.14em;text-transform:uppercase;color:var(--g-faint)}
.iqmg .iqmg-ladder tbody th{width:38%;padding-right:14px;font:700 15.5px/1.3 var(--g-f);color:var(--g-navy)}
.iqmg .iqmg-ladder tbody th span{display:block;font:400 12.5px/1.35 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-ladder td{display:flex;align-items:center;gap:12px}
.iqmg .iqmg-ladder .iqmg-bar{flex:1;height:6px;border-radius:6px;background:#EEF1F5;overflow:hidden}
.iqmg .iqmg-ladder .iqmg-bar i{display:block;height:100%;border-radius:6px;background:var(--g-navy)}
.iqmg .iqmg-ladder td b{min-width:4.2em;text-align:right;font:700 15px/1 var(--g-f);color:var(--g-navy);white-space:nowrap}
.iqmg .iqmg-ladder td b span{display:block;margin-top:4px;font:400 12px/1 var(--g-f);color:var(--g-faint)}
.iqmg .iqmg-ladder tr.is-mark th,.iqmg .iqmg-ladder tr.is-mark td b{color:var(--g-link)}
.iqmg .iqmg-ladder tr.is-mark .iqmg-bar i{background:var(--g-accent)}
.iqmg .iqmg-ladder.is-dist .iqmg-bar i{background:linear-gradient(90deg,#123F6E,#E4551F)}
.iqmg .iqmg-skill-ico{display:grid;place-items:center;width:46px;height:46px;margin:0 0 18px;border-radius:13px;background:var(--g-navy);color:#fff}
.iqmg .iqmg-skill-ico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.iqmg .iqmg-skill p{margin:0;font:400 15.5px/1.6 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-faqlist{border-radius:20px;background:#fff;border:1px solid var(--g-line);overflow:hidden}
.iqmg details.iqmg-qa{margin:0;padding:0;border-top:1px solid var(--g-line)}
.iqmg details.iqmg-qa:first-child{border-top:0}
.iqmg details.iqmg-qa summary{position:relative;display:block;margin:0;padding:20px 64px 20px 26px;list-style:none;cursor:pointer;
  font:700 17px/1.4 var(--g-f);color:var(--g-navy)}
.iqmg details.iqmg-qa summary::-webkit-details-marker{display:none}
.iqmg details.iqmg-qa summary::after{content:"";position:absolute;right:26px;top:50%;width:10px;height:10px;margin-top:-7px;border-right:2px solid var(--g-accent);
  border-bottom:2px solid var(--g-accent);transform:rotate(45deg);transition:transform .2s}
.iqmg details.iqmg-qa[open] summary::after{margin-top:-2px;transform:rotate(-135deg)}
.iqmg details.iqmg-qa summary:hover{color:var(--g-link)}
.iqmg details.iqmg-qa p{margin:0;padding:0 26px 22px;max-width:52em;font:400 16px/1.65 var(--g-f);color:var(--g-ink)}
.iqmg details.iqmg-qa a,.iqmg details.iqmg-qa a:visited{color:var(--g-link);font-weight:700;text-decoration:underline;text-underline-offset:2px}
/* a worked example (clues, then the steps) and classic puzzles with the answer behind a toggle */
.iqmg .iqmg-example{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:22px}
.iqmg .iqmg-excard,.iqmg .iqmg-riddle{padding:28px;border-radius:20px;background:#fff;border:1px solid var(--g-line);box-shadow:0 22px 44px -40px rgba(5,22,39,.5)}
.iqmg .iqmg-excard h3,.iqmg .iqmg-riddle h3{margin:0 0 12px;padding:0;font:700 19px/1.25 var(--g-f);color:var(--g-navy)}
.iqmg .iqmg-excard ol{margin:0;padding:0 0 0 22px}
.iqmg .iqmg-excard li{margin:0 0 9px;padding:0;font:400 15.5px/1.55 var(--g-f);color:var(--g-ink)}
.iqmg .iqmg-excard p.iqmg-exanswer{margin:16px 0 0;padding:12px 14px;border-radius:12px;background:#EAF0F8;font:700 15px/1.5 var(--g-f);color:var(--g-navy)}
.iqmg .iqmg-riddles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.iqmg .iqmg-riddle > p{margin:0 0 14px;font:400 15.5px/1.6 var(--g-f);color:var(--g-ink)}
.iqmg .iqmg-riddle details{margin:0;padding:0;border-top:1px solid var(--g-line)}
.iqmg .iqmg-riddle summary{display:block;margin:0;padding:12px 0 0;list-style:none;cursor:pointer;font:700 14.5px/1.3 var(--g-f);color:var(--g-link)}
.iqmg .iqmg-riddle summary::-webkit-details-marker{display:none}
.iqmg .iqmg-riddle details p{margin:10px 0 0;font:400 15px/1.6 var(--g-f);color:var(--g-ink)}
/* sources with DOI links */
.iqmg ol.iqmg-refs{margin:0;padding:24px 28px 14px 48px;border-radius:20px;background:#fff;border:1px solid var(--g-line)}
.iqmg ol.iqmg-refs li{margin:0 0 12px;padding:0;font:400 15px/1.6 var(--g-f);color:var(--g-ink)}
.iqmg ol.iqmg-refs a,.iqmg ol.iqmg-refs a:visited{color:var(--g-link);text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
/* worked solutions as numbered moves, and the solution in code (Tower of Hanoi) */
.iqmg .iqmg-sols,.iqmg .iqmg-code{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.iqmg .iqmg-sol{padding:28px;border-radius:20px;background:#fff;border:1px solid var(--g-line);box-shadow:0 22px 44px -40px rgba(5,22,39,.5)}
.iqmg .iqmg-sol h3{margin:0 0 16px;padding:0;font:700 20px/1.2 var(--g-f);color:var(--g-navy)}
.iqmg ol.iqmg-solmoves{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;margin:0;padding:0;list-style:none;counter-reset:iqmgmv}
.iqmg ol.iqmg-solmoves li{display:flex;align-items:center;gap:8px;margin:0;padding:10px 10px 9px;border-radius:10px;background:#F4F6FA;counter-increment:iqmgmv;
  font:700 15px/1 var(--g-f);color:var(--g-navy);white-space:nowrap}
.iqmg ol.iqmg-solmoves li::before{content:counter(iqmgmv);min-width:1.3em;font:700 11px/1 var(--g-f);color:var(--g-faint)}
.iqmg figure.iqmg-codebox{margin:0;border-radius:18px;background:var(--g-dark);overflow:hidden;box-shadow:0 22px 44px -36px rgba(5,22,39,.7)}
.iqmg figure.iqmg-codebox figcaption{margin:0;padding:14px 20px;border-bottom:1px solid rgba(255,255,255,.08);font:700 11.5px/1 var(--g-f);letter-spacing:.16em;
  text-transform:uppercase;color:var(--g-goldtext)}
.iqmg figure.iqmg-codebox pre{margin:0;padding:18px 20px 22px;background:transparent;border:0;border-radius:0;overflow-x:auto;white-space:pre}
.iqmg figure.iqmg-codebox code{padding:0;background:transparent;border:0;font:400 13.5px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#E6EDF6}
.iqmg .iqmg-iqcard.is-wide{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:center;gap:30px;padding:44px 48px;border-radius:24px;
  background:radial-gradient(60% 120% at 90% 50%,rgba(255,138,0,.22) 0%,rgba(255,138,0,0) 70%),var(--g-navy)}
.iqmg .iqmg-iqcard.is-wide h2{margin:0 0 10px;font-size:clamp(26px,2.8vw,32px);color:#fff}
.iqmg .iqmg-iqcard.is-wide .iqmg-iq-text{margin:0}
.iqmg .iqmg-iqcard-cta{text-align:center}
.iqmg .iqmg-iqcard-cta a.iqmg-gold{display:flex;width:100%}
.iqmg .iqmg-iqcard-cta .iqmg-meta{margin:12px 0 0;color:var(--g-dim)}
.iqmg.iqmg-related{padding-bottom:20px}

/* the article as GAME-PAGE blocks (not a blog layout): header + trust line, chapter chips,
   "At a glance", numbered topic cards with Read more, text + table blocks, tiles, a highlight
   card and folded sources */
.iqmg.iqmg-sci{max-width:1210px;margin:70px auto 0;padding:0 26px}
.iqmg .iqmg-sci-head{max-width:880px;margin:0 0 18px}
.iqmg .iqmg-sci-head h2{margin:0 0 12px;padding:0;font:700 34px/1.15 var(--g-f);font-size:clamp(28px,3.4vw,40px);color:var(--g-navy);letter-spacing:-.01em}
.iqmg .iqmg-sci-lede{margin:0 0 18px;max-width:46em;font:400 18px/1.65 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-trust{display:inline-flex;align-items:center;gap:12px;padding:7px 18px 7px 7px;border-radius:999px;background:#fff;border:1px solid var(--g-line);
  font:400 13px/1.45 var(--g-f);color:var(--g-muted);box-shadow:0 14px 30px -26px rgba(5,22,39,.6)}
.iqmg .iqmg-trust img{width:40px;height:40px;flex:none;border-radius:50%;object-fit:cover}
.iqmg .iqmg-trust a,.iqmg .iqmg-trust a:visited{color:var(--g-navy);font-weight:700;text-decoration:none}
.iqmg .iqmg-chips{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 30px}
.iqmg .iqmg-chips a,.iqmg .iqmg-chips a:visited{padding:9px 15px;border-radius:999px;background:#fff;border:1px solid var(--g-line);color:var(--g-navy2);
  font:700 13.5px/1.2 var(--g-f);text-decoration:none;transition:background .2s,color .2s,border-color .2s}
.iqmg .iqmg-chips a:hover{background:var(--g-navy);border-color:var(--g-navy);color:#fff}
.iqmg .iqmg-mod,.iqmg .iqmg-topic{margin:0 0 22px;padding:34px 36px;border-radius:24px;background:#fff;border:1px solid var(--g-line);
  box-shadow:0 26px 50px -44px rgba(5,22,39,.5);scroll-margin-top:110px}
.iqmg .iqmg-mod.is-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:40px;align-items:center}
.iqmg .iqmg-mod.is-split.is-flip .iqmg-mod-text{order:2}
/* a table section and a single topic card: heading on the left, text on the right; a table spans the width below */
.iqmg .iqmg-mod.is-table,.iqmg .iqmg-cardgrid.is-one .iqmg-topic{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.6fr);gap:8px 48px;align-items:start}
.iqmg .iqmg-mod.is-table .iqmg-mod-visual{grid-column:1/-1;margin-top:20px}
.iqmg .iqmg-mod-head h2{margin-bottom:0}
.iqmg .iqmg-cardgrid:not(.is-one) .iqmg-mod-head{margin:0 0 12px}
.iqmg .iqmg-mod p.iqmg-eyebrow{margin:0 0 14px;font:700 12.5px/1 var(--g-f);letter-spacing:.2em;color:var(--g-accent)}
.iqmg .iqmg-mod.is-glance p.iqmg-eyebrow{color:var(--g-goldtext)}
.iqmg .iqmg-chips{background:transparent;box-shadow:none}
.iqmg .iqmg-mod.is-glance{background:var(--g-hero);border:0;color:#fff}
.iqmg .iqmg-mod.is-glance p{color:#D3DFEC}
.iqmg .iqmg-mod.is-glance strong{color:#fff}
.iqmg .iqmg-mod.is-glance .iqmg-eyebrow{color:var(--g-goldtext)}
.iqmg .iqmg-mod.is-glance a,.iqmg .iqmg-mod.is-glance a:visited{color:var(--g-goldtext)}
.iqmg .iqmg-mod.is-glance figcaption{color:#8FA6C1}
.iqmg .iqmg-mod.is-glance details.iqmg-more > summary,.iqmg .iqmg-callout details.iqmg-more > summary{color:var(--g-goldtext)}
.iqmg .iqmg-mod h2,.iqmg .iqmg-topic h2,.iqmg .iqmg-callout h2{margin:12px 0 12px;padding:0;font:700 25px/1.25 var(--g-f);color:var(--g-navy)}
.iqmg .iqmg-num{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:26px;padding:0 10px;border-radius:999px;
  background:#FFF1E3;color:var(--g-link);font:700 12.5px/1 var(--g-f);letter-spacing:.08em}
.iqmg .iqmg-mod p,.iqmg .iqmg-topic p,.iqmg .iqmg-callout p{margin:0 0 14px;font:400 16.5px/1.7 var(--g-f);color:var(--g-ink)}
.iqmg .iqmg-mod a,.iqmg .iqmg-mod a:visited,.iqmg .iqmg-topic a,.iqmg .iqmg-topic a:visited,.iqmg .iqmg-sources a{color:var(--g-link);text-decoration:underline;text-underline-offset:2px}
.iqmg .iqmg-mod figure{margin:0}
.iqmg .iqmg-mod img{display:block;max-width:100%;height:auto;border-radius:16px}
.iqmg .iqmg-mod figcaption{margin:10px 0 0;font:400 12.5px/1.5 var(--g-f);color:var(--g-faint)}
.iqmg .iqmg-facts,.iqmg .iqmg-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.iqmg .iqmg-facts{margin:-6px 0 22px}
.iqmg .iqmg-tiles{margin:20px 0 0}
.iqmg .iqmg-tile{padding:20px 22px;border-radius:18px;background:#fff;border:1px solid var(--g-line)}
.iqmg .iqmg-tiles .iqmg-tile{background:#F8F6F1}
.iqmg .iqmg-tile h3{margin:0 0 6px;padding:0;font:700 16.5px/1.3 var(--g-f);color:var(--g-navy)}
.iqmg .iqmg-mod .iqmg-tile p,.iqmg .iqmg-tile p{margin:0;font:400 14.5px/1.6 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-cardgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:0 0 22px}
.iqmg .iqmg-cardgrid .iqmg-topic{margin:0}
.iqmg .iqmg-cardgrid.is-one{grid-template-columns:1fr}
.iqmg details.iqmg-more{margin:4px 0 0}
.iqmg details.iqmg-more > summary{display:inline-flex;align-items:center;gap:8px;list-style:none;cursor:pointer;font:700 14.5px/1 var(--g-f);color:var(--g-link)}
.iqmg details.iqmg-more > summary::-webkit-details-marker,.iqmg details.iqmg-sources > summary::-webkit-details-marker{display:none}
.iqmg details.iqmg-more > summary::after,.iqmg details.iqmg-sources > summary::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);transition:transform .2s}
.iqmg details[open].iqmg-more > summary::after,.iqmg details[open].iqmg-sources > summary::after{transform:rotate(-135deg) translateY(-2px)}
.iqmg .iqmg-more-body{padding:14px 0 0}
.iqmg .iqmg-mod-visual table,.iqmg .iqmg-more-body table{width:100%;margin:0;border-collapse:collapse;font:400 14.5px/1.45 var(--g-f)}
.iqmg .iqmg-mod-visual th,.iqmg .iqmg-mod-visual td{padding:11px 12px;border:0;border-bottom:1px solid var(--g-line);text-align:left;vertical-align:top;background:transparent}
.iqmg .iqmg-mod-visual thead th{background:#F6F3EE;color:var(--g-navy);font-weight:700}
.iqmg .iqmg-mod-visual .ab-tablewrap{margin:0;border:1px solid var(--g-line);border-radius:16px;overflow:hidden}
.iqmg .iqmg-mod-visual .ab-tablescroll{overflow-x:auto}
.iqmg .iqmg-callout{margin:0 0 22px;padding:38px 42px;border-radius:24px;background:var(--g-hero);color:#fff;scroll-margin-top:110px}
.iqmg .iqmg-callout h2{color:#fff}
.iqmg .iqmg-callout .iqmg-num{background:rgba(255,255,255,.12);color:var(--g-goldtext)}
.iqmg .iqmg-callout p{max-width:52em;font-size:18px;color:#D3DFEC}
.iqmg .iqmg-callout a,.iqmg .iqmg-callout a:visited{color:var(--g-goldtext)}
.iqmg details.iqmg-sources{margin:0 0 22px;border-radius:22px;background:#fff;border:1px solid var(--g-line);scroll-margin-top:110px}
.iqmg details.iqmg-sources > summary{display:flex;align-items:center;gap:14px;padding:22px 28px;list-style:none;cursor:pointer;color:var(--g-navy)}
.iqmg details.iqmg-sources > summary h2{margin:0;padding:0;font:700 20px/1.2 var(--g-f);color:var(--g-navy)}
.iqmg details.iqmg-sources > summary span{flex:1;font:400 13.5px/1.3 var(--g-f);color:var(--g-faint)}
.iqmg details.iqmg-sources .iqmg-more-body{padding:0 28px 22px}
.iqmg .iqmg-sources ul{margin:0;padding:0 0 0 18px}
.iqmg .iqmg-sources li{margin:0 0 8px;font:400 14px/1.6 var(--g-f);color:var(--g-muted)}

/* ---------- the game page, styled like the personality landing page (iqmetrics.org/personality-test/):
   a navy key-numbers band, "On this page" tiles, kicker sections with slanted gold accent words,
   a soft band behind every other section, FAQ and skills with a sticky head, blocks that rise in
   (.is-anim / .iqmg-rv / .is-in, set by the script) and the dot rail (body nav.iqmg-rail) ---------- */
.iqmg.iqmg-guide{--band:#F3F0FA}
.iqmg .iqmg-gsec{margin:72px 0 0;scroll-margin-top:100px}
.iqmg.iqmg-guide .iqmg-stats{border:0;background:linear-gradient(120deg,#0A2440 0%,#0C3158 55%,#14457A 100%);box-shadow:0 30px 60px -36px rgba(5,22,39,.75)}
.iqmg.iqmg-guide .iqmg-stats .iqmg-stat{padding:26px 28px;border-color:rgba(255,255,255,.12)}
.iqmg.iqmg-guide .iqmg-stat::before{content:"";display:block;width:28px;height:3px;margin:0 0 12px;border-radius:3px;background:linear-gradient(90deg,#F5A623,#E4551F)}
.iqmg.iqmg-guide .iqmg-stat b{font-size:34px;color:#fff}
.iqmg.iqmg-guide .iqmg-stat span{color:#C9D6E6}
.iqmg.iqmg-guide .iqmg-stat .iqmg-src{color:var(--g-goldtext)}
.iqmg nav.iqmg-toc{margin:26px 0 0;padding:24px 28px 26px;border-radius:22px;background:#fff;border:1px solid var(--g-line);box-shadow:0 22px 44px -40px rgba(5,22,39,.5)}
.iqmg .iqmg-toc p.iqmg-toc-h{margin:0 0 14px;padding:0;font:700 20px/1.2 var(--g-f);color:var(--g-navy)}
.iqmg .iqmg-toc ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.iqmg .iqmg-toc li{margin:0;padding:0}
.iqmg .iqmg-toc li::before{content:none;display:none}
.iqmg .iqmg-toc a,.iqmg .iqmg-toc a:visited{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;background:#FBF7F1;border:1px solid #F1E7DA;
  color:var(--g-navy);font:700 14.5px/1.25 var(--g-f);text-decoration:none;transition:background .2s,border-color .2s,transform .2s}
.iqmg .iqmg-toc a:hover{background:#FFF1E4;border-color:#F3C9A6;transform:translateY(-2px)}
.iqmg .iqmg-toc a b{font:700 11.5px/1 var(--g-f);letter-spacing:.06em;color:var(--g-accent)}
.iqmg .iqmg-ghead{margin:0 0 30px}
.iqmg .iqmg-ghead .iqmg-glede{margin:14px 0 0}
.iqmg.iqmg-guide .iqmg-gsec h2,.iqmg.iqmg-guide .iqmg-gcard h2{font-size:clamp(28px,3.4vw,42px);line-height:1.1}
.iqmg.iqmg-guide .iqmg-gcard h2{font-size:clamp(24px,2.4vw,30px)}
/* the accent words: slanted Enriqueta in the site's gold-to-orange (padding + negative margins keep
   the slanted letter edges inside the painted box; see the gradient text note) */
.iqmg em.iqmg-acc{font-style:italic;font-weight:700;color:var(--g-accent);background:linear-gradient(100deg,#F5A623 0%,#E4551F 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;padding:0 .3em 0 .12em;margin:0 -.3em 0 -.12em;
  -webkit-box-decoration-break:clone;box-decoration-break:clone}
.iqmg .iqmg-gsec.is-center .iqmg-ghead{max-width:46em;margin:0 auto 34px;text-align:center}
.iqmg .iqmg-gsec.is-center .iqmg-glede{margin-left:auto;margin-right:auto}
.iqmg .iqmg-gsec.is-band{padding:64px 0;background:var(--band);box-shadow:0 0 0 100vmax var(--band);clip-path:inset(0 -100vmax)}
.iqmg.iqmg-guide ol.iqmg-steps li::before{background:linear-gradient(135deg,#F5A623,#E4551F);color:#fff;box-shadow:0 6px 12px -6px rgba(228,85,31,.8)}
.iqmg.iqmg-guide .iqmg-how,.iqmg.iqmg-guide .iqmg-skill,.iqmg.iqmg-guide .iqmg-gcard,.iqmg.iqmg-guide .iqmg-sol,.iqmg.iqmg-guide .iqmg-riddle,
.iqmg.iqmg-guide .iqmg-excard{box-shadow:0 26px 50px -38px rgba(5,22,39,.55)}
.iqmg .iqmg-gsec.is-cta{margin-top:80px}
/* "In short": the page's main question answered first */
.iqmg .iqmg-answer{position:relative;margin:26px 0 0;padding:30px 36px 30px 40px;border-radius:22px;background:#fff;border:1px solid var(--g-line);overflow:hidden;
  box-shadow:0 26px 50px -40px rgba(5,22,39,.5)}
.iqmg .iqmg-answer::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(180deg,#F5A623,#E4551F)}
.iqmg .iqmg-answer .iqmg-eyebrow{margin:0 0 10px}
.iqmg .iqmg-answer h2{margin:0 0 12px;padding:0;font:700 26px/1.2 var(--g-f);color:var(--g-navy)}
.iqmg .iqmg-answer p.iqmg-answer-text{margin:0;max-width:52em;font:400 18px/1.65 var(--g-f);color:var(--g-ink)}
.iqmg .iqmg-answer p.iqmg-answer-next{margin:12px 0 0;font:400 15px/1.5 var(--g-f);color:var(--g-muted)}
/* topic sections: the direct answer, then cards and steps */
.iqmg p.iqmg-tlead{margin:-12px 0 28px;max-width:46em;font:400 18px/1.65 var(--g-f);color:var(--g-ink)}
.iqmg .iqmg-tcards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.iqmg .iqmg-tcards.is-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.iqmg .iqmg-tcards.is-one{grid-template-columns:1fr}
.iqmg .iqmg-tcard.is-table{grid-column:1/-1}
.iqmg .iqmg-tscroll{overflow-x:auto}
.iqmg table.iqmg-ttable{width:100%;margin:0;border-collapse:collapse;border:0;background:transparent;font:400 15px/1.45 var(--g-f)}
.iqmg .iqmg-ttable th,.iqmg .iqmg-ttable td{padding:12px 14px 12px 0;border:0;border-top:1px solid var(--g-line);background:transparent;text-align:left;vertical-align:top;color:var(--g-muted)}
.iqmg .iqmg-ttable thead th{padding-top:4px;border-top:0;font:700 12px/1.3 var(--g-f);letter-spacing:.12em;text-transform:uppercase;color:var(--g-faint)}
.iqmg .iqmg-ttable tbody th{font-weight:700;color:var(--g-navy)}
.iqmg .iqmg-tcard.is-table p.iqmg-gnote{margin:14px 0 0;font:400 13px/1.55 var(--g-f);color:var(--g-faint)}
.iqmg .iqmg-tcard{padding:28px;border-radius:20px;background:#fff;border:1px solid var(--g-line);box-shadow:0 26px 50px -38px rgba(5,22,39,.55)}
.iqmg .iqmg-tcard h3{margin:0 0 10px;padding:0;font:700 20px/1.25 var(--g-f);color:var(--g-navy)}
.iqmg .iqmg-tcard > p{margin:0;font:400 15.5px/1.65 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-tcard.is-steps{grid-column:1/-1}
.iqmg .iqmg-tcard.is-steps ol.iqmg-steps{margin:6px 0 0}
.iqmg .iqmg-answer a,.iqmg .iqmg-tlead a,.iqmg .iqmg-tcard a,.iqmg .iqmg-iqsec-text a{color:var(--g-link);font-weight:700;text-decoration:underline;
  text-decoration-thickness:1.5px;text-underline-offset:3px}
.iqmg .iqmg-answer a:hover,.iqmg .iqmg-tlead a:hover,.iqmg .iqmg-tcard a:hover,.iqmg .iqmg-iqsec-text a:hover{color:var(--g-accent)}
/* "And IQ": the text beside the five areas of a modern IQ test, the game's closest one lit */
.iqmg .iqmg-iqsec{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:48px;align-items:center}
.iqmg .iqmg-iqsec-text > p{margin:0 0 16px;font:400 17px/1.7 var(--g-f);color:var(--g-ink)}
.iqmg .iqmg-iqsec-text > p:last-child{margin:0}
.iqmg .iqmg-iqmap{padding:30px 30px 26px;border-radius:22px;background:linear-gradient(140deg,#0A2440 0%,#0C3158 55%,#14457A 100%);color:#fff;
  box-shadow:0 30px 60px -36px rgba(5,22,39,.75)}
.iqmg .iqmg-iqmap p.iqmg-iqmap-h{margin:0 0 12px;font:700 12.5px/1.3 var(--g-f);letter-spacing:.18em;text-transform:uppercase;color:var(--g-goldtext)}
.iqmg .iqmg-iqmap ol{list-style:none;margin:0;padding:0}
.iqmg .iqmg-iqmap li{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0;padding:13px 0;border-top:1px solid rgba(255,255,255,.12)}
.iqmg .iqmg-iqmap li::before{content:none;display:none}
.iqmg .iqmg-iqmap li:first-child{border-top:0}
.iqmg .iqmg-iqmap li span{font:400 14px/1.45 var(--g-f);color:var(--g-dim)}
.iqmg .iqmg-iqmap li b{display:block;font:700 17px/1.3 var(--g-f);color:#fff}
.iqmg .iqmg-iqmap li.is-main,.iqmg .iqmg-iqmap li.is-also{margin:4px -14px;padding:13px 14px;border-top:0;border-radius:14px;background:rgba(245,194,107,.12)}
.iqmg .iqmg-iqmap li.is-main + li,.iqmg .iqmg-iqmap li.is-also + li{border-top:0}
.iqmg .iqmg-iqmap li.is-main span,.iqmg .iqmg-iqmap li.is-also span{color:var(--g-soft)}
.iqmg .iqmg-iqmap li em{flex:none;padding:6px 11px;border-radius:999px;font:700 11.5px/1 var(--g-f);font-style:normal;white-space:nowrap}
.iqmg .iqmg-iqmap li.is-main em{background:var(--g-gold);color:#fff}
.iqmg .iqmg-iqmap li.is-also em{border:1px solid rgba(245,194,107,.6);color:var(--g-goldtext)}
.iqmg .iqmg-iqmap p.iqmg-gnote{margin:14px 0 0;font:400 13px/1.55 var(--g-f);color:var(--g-dim)}
.iqmg .iqmg-iqmap p.iqmg-gnote a{color:var(--g-goldtext);text-decoration:underline;text-underline-offset:3px}
@media (max-width:760px){
  .iqmg .iqmg-answer{padding:22px 20px 22px 24px}
  .iqmg .iqmg-answer h2{font-size:22px}
  .iqmg .iqmg-answer p.iqmg-answer-text{font-size:16.5px}
  .iqmg p.iqmg-tlead{margin-top:-8px;font-size:16.5px}
  .iqmg .iqmg-tcards,.iqmg .iqmg-tcards.is-two{grid-template-columns:1fr;gap:16px}
  .iqmg .iqmg-ttable th,.iqmg .iqmg-ttable td{padding-right:10px;font-size:14px}
  .iqmg .iqmg-tcard{padding:22px}
  .iqmg .iqmg-iqsec{grid-template-columns:1fr;gap:26px}
  .iqmg .iqmg-iqmap{padding:22px 20px 20px}
  .iqmg .iqmg-iqmap li em{display:none}
  .iqmg .iqmg-iqmap li.is-main b::after{content:" \2022  closest";font-size:12.5px;color:var(--g-goldtext)}
  .iqmg .iqmg-iqmap li.is-also b::after{content:" \2022  also";font-size:12.5px;color:var(--g-goldtext)}
}
/* Brain games or an IQ test (hub): two cards with an "or" between them, the IQ test card navy with the gold button */
.iqmg .iqmg-vsgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
.iqmg .iqmg-vscard{position:relative;display:flex;flex-direction:column;padding:32px 32px 30px;border-radius:22px;background:#fff;border:1px solid var(--g-line);
  box-shadow:0 26px 50px -38px rgba(5,22,39,.55)}
.iqmg .iqmg-vscard h3{margin:0 0 18px;padding:0;font:700 23px/1.2 var(--g-f);color:var(--g-navy)}
.iqmg .iqmg-vscard ul{flex:1;margin:0;padding:0;list-style:none}
.iqmg .iqmg-vscard li{position:relative;margin:0 0 13px;padding:0 0 0 32px;font:400 16px/1.55 var(--g-f);color:var(--g-ink)}
.iqmg .iqmg-vscard li::before{content:"";position:absolute;left:0;top:.2em;width:20px;height:20px;border-radius:50%;background:#EEF2F7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C3158' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat}
.iqmg .iqmg-vscard.is-iq{border-color:transparent;background:radial-gradient(70% 90% at 100% 0%,rgba(255,138,0,.26) 0%,rgba(255,138,0,0) 70%),var(--g-navy);
  box-shadow:0 34px 60px -34px rgba(5,22,39,.8)}
.iqmg .iqmg-vscard.is-iq::before{content:"or";position:absolute;left:-35px;top:50%;z-index:1;display:grid;place-items:center;width:46px;height:46px;margin-top:-23px;
  border-radius:50%;background:#fff;border:1px solid var(--g-line);box-shadow:0 10px 24px -14px rgba(5,22,39,.6);font:italic 700 16px/1 var(--g-f);color:var(--g-accent)}
.iqmg .iqmg-vscard.is-iq h3{color:#fff}
.iqmg .iqmg-vscard.is-iq li{color:#E6EDF6}
.iqmg .iqmg-vscard.is-iq li::before{background:rgba(245,194,107,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5C26B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat}
.iqmg .iqmg-vscard a.iqmg-gold{display:flex;justify-content:center;width:100%;margin:14px 0 0}
.iqmg .iqmg-result .iqmg-vscard .iqmg-meta,.iqmg .iqmg-vscard p.iqmg-meta{margin:10px 0 0;text-align:center;font-size:13px;color:rgba(255,255,255,.72)}
.iqmg .iqmg-gsec.is-compare > p.iqmg-gnote{margin:20px 0 0;max-width:46em;font:400 15px/1.6 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-gsec.is-compare > p.iqmg-gnote a{color:var(--g-link);font-weight:700;text-decoration:underline;text-underline-offset:2px}
/* A topic with a photo beside its head (hub): text left, photo right; stacked on phones */
.iqmg .iqmg-tsplit{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:28px 48px;align-items:center;margin:0 0 34px}
.iqmg .iqmg-tsplit p.iqmg-tlead{margin-bottom:0}
.iqmg figure.iqmg-tsplit-fig{margin:0}
.iqmg figure.iqmg-tsplit-fig img{display:block;width:100%;max-width:none;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:24px;
  box-shadow:0 34px 64px -38px rgba(5,22,39,.65)}
/* Pick a game by goal (hub): a card per goal, a gold accent, its games as icon rows */
.iqmg .iqmg-goals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.iqmg .iqmg-goal{display:flex;flex-direction:column;padding:26px 20px 20px;border-radius:22px;background:#fff;border:1px solid var(--g-line);
  box-shadow:0 26px 50px -38px rgba(5,22,39,.55)}
.iqmg .iqmg-goal::before{content:"";display:block;width:34px;height:4px;margin:0 0 16px;border-radius:4px;background:var(--g-gold)}
.iqmg .iqmg-goal h3{margin:0 0 8px;padding:0;font:700 19px/1.25 var(--g-f);color:var(--g-navy)}
.iqmg .iqmg-goal > p{margin:0 0 18px;font:400 15px/1.6 var(--g-f);color:var(--g-muted)}
.iqmg ul.iqmg-goal-games{display:flex;flex-direction:column;gap:8px;margin:auto 0 0;padding:0;list-style:none}
.iqmg ul.iqmg-goal-games li{margin:0;padding:0}
.iqmg ul.iqmg-goal-games li::before{content:none;display:none}
.iqmg ul.iqmg-goal-games a,.iqmg ul.iqmg-goal-games a:visited{display:flex;align-items:center;gap:10px;padding:8px 12px 8px 8px;border-radius:14px;background:#F7F5F1;
  color:var(--g-navy);font:700 14.5px/1.2 var(--g-f);text-decoration:none;transition:background .2s,transform .2s}
.iqmg ul.iqmg-goal-games a:hover{background:#EFE9DF;transform:translateX(2px)}
.iqmg ul.iqmg-goal-games img{flex:none;width:36px;height:36px;border-radius:10px}
.iqmg ul.iqmg-goal-games span{flex:1;min-width:0}
.iqmg ul.iqmg-goal-games .iqmg-arrow{flex:none;width:14px;height:14px;fill:none;stroke:var(--g-accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* Daily brain games (hub): today's puzzles on navy cards with a white outline button */
.iqmg .iqmg-daily{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.iqmg .iqmg-dailycard{display:grid;grid-template-columns:56px minmax(0,1fr);gap:16px;align-items:start;padding:26px 24px;border-radius:22px;
  background:radial-gradient(80% 120% at 100% 0%,rgba(255,138,0,.2) 0%,rgba(255,138,0,0) 60%),linear-gradient(140deg,#0A2440 0%,#0C3158 60%,#14457A 100%);
  box-shadow:0 30px 56px -36px rgba(5,22,39,.8)}
.iqmg img.iqmg-dailycard-ico{display:block;width:56px;height:56px;border-radius:14px;box-shadow:0 10px 22px -12px rgba(0,0,0,.6)}
.iqmg p.iqmg-dailycard-tag{margin:2px 0 6px;font:700 11px/1.2 var(--g-f);letter-spacing:.14em;text-transform:uppercase;color:var(--g-goldtext)}
.iqmg .iqmg-dailycard h3{margin:0 0 8px;padding:0;font:700 19px/1.25 var(--g-f);color:#fff}
.iqmg .iqmg-dailycard p:not(.iqmg-dailycard-tag){margin:0 0 16px;font:400 14.5px/1.6 var(--g-f);color:#C9D6E6}
.iqmg a.iqmg-dailycard-btn,.iqmg a.iqmg-dailycard-btn:visited{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border:1px solid rgba(255,255,255,.4);
  border-radius:999px;background:rgba(255,255,255,.08);color:#fff;font:700 14px/1 var(--g-f);text-decoration:none;transition:background .2s,border-color .2s}
.iqmg a.iqmg-dailycard-btn:hover{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.65)}
.iqmg a.iqmg-dailycard-btn .iqmg-arrow{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.iqmg .iqmg-gsec > p.iqmg-gnote{margin:22px 0 0;max-width:46em;font:400 15px/1.6 var(--g-f);color:var(--g-muted)}
.iqmg .iqmg-gsec > p.iqmg-gnote a{color:var(--g-link);font-weight:700;text-decoration:underline;text-underline-offset:2px}
@media (max-width:1100px){
  .iqmg .iqmg-goals{grid-template-columns:repeat(2,minmax(0,1fr))}
  .iqmg .iqmg-daily{grid-template-columns:1fr}
}
@media (max-width:760px){
  .iqmg .iqmg-tsplit{grid-template-columns:1fr;gap:22px;margin-bottom:26px}
  .iqmg figure.iqmg-tsplit-fig img{border-radius:18px}
  .iqmg .iqmg-goals{grid-template-columns:1fr;gap:16px}
  .iqmg .iqmg-dailycard{grid-template-columns:48px minmax(0,1fr);padding:22px 18px}
  .iqmg img.iqmg-dailycard-ico{width:48px;height:48px}
}
/* A short history (hub): a gold line with the years on it, each milestone a white card, a square picture where one is free to use */
.iqmg ol.iqmg-tline{position:relative;max-width:960px;margin:0;padding:0;list-style:none}
.iqmg ol.iqmg-tline::before{content:"";position:absolute;left:44px;top:14px;bottom:14px;width:2px;border-radius:2px;background:linear-gradient(180deg,#F5A623,#E4551F 70%,rgba(228,85,31,.2))}
.iqmg li.iqmg-tl{position:relative;display:grid;grid-template-columns:90px minmax(0,1fr);gap:0 22px;margin:0 0 22px;padding:0}
.iqmg li.iqmg-tl:last-child{margin-bottom:0}
.iqmg .iqmg-tl-year{position:relative;z-index:1;justify-self:center;align-self:start;margin:20px 0 0;padding:7px 12px;border-radius:999px;background:var(--g-gold);
  font:700 14px/1 var(--g-f);letter-spacing:.04em;color:#fff;box-shadow:0 8px 18px -10px rgba(228,85,31,.9)}
.iqmg .iqmg-tl-body{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:center;padding:22px 26px;border-radius:20px;background:#fff;
  border:1px solid var(--g-line);box-shadow:0 26px 50px -38px rgba(5,22,39,.55)}
.iqmg li.iqmg-tl.has-img .iqmg-tl-body{grid-template-columns:150px minmax(0,1fr)}
.iqmg figure.iqmg-tl-fig{margin:0}
.iqmg figure.iqmg-tl-fig img{display:block;width:150px;height:150px;max-width:none;object-fit:cover;border-radius:14px;border:1px solid var(--g-line);background:#fff}
.iqmg figure.iqmg-tl-fig figcaption{margin:7px 0 0;font:400 10.5px/1.35 var(--g-f);color:var(--g-faint)}
.iqmg figure.iqmg-tl-fig figcaption a,.iqmg figure.iqmg-tl-fig figcaption a:visited{color:var(--g-faint);text-decoration:underline;text-underline-offset:2px}
.iqmg .iqmg-tl-text h3{margin:0 0 6px;padding:0;font:700 19px/1.25 var(--g-f);color:var(--g-navy)}
.iqmg .iqmg-tl-text p{margin:0;font:400 15.5px/1.65 var(--g-f);color:var(--g-muted)}
@media (max-width:760px){
  .iqmg .iqmg-vsgrid{grid-template-columns:1fr;gap:34px}
  .iqmg .iqmg-vscard{padding:24px 22px 22px}
  .iqmg .iqmg-vscard h3{font-size:20px}
  .iqmg .iqmg-vscard li{font-size:15px}
  .iqmg .iqmg-vscard.is-iq::before{left:50%;top:-40px;margin:0 0 0 -23px}
  .iqmg ol.iqmg-tline::before{left:13px}
  .iqmg li.iqmg-tl{grid-template-columns:minmax(0,1fr);padding:0 0 0 30px}
  .iqmg .iqmg-tl-year{justify-self:start;margin:0 0 10px -30px}
  .iqmg .iqmg-tl-body{padding:18px}
  .iqmg li.iqmg-tl.has-img .iqmg-tl-body{grid-template-columns:96px minmax(0,1fr);gap:16px;align-items:start}
  .iqmg figure.iqmg-tl-fig img{width:96px;height:96px;border-radius:12px}
  .iqmg .iqmg-tl-text h3{font-size:17px}
  .iqmg .iqmg-tl-text p{font-size:14.5px}
}
/* FAQ and skills: the head stays in view on the left while the answers scroll on the right */
@media (min-width:1000px){
  .iqmg .iqmg-gsec.is-two{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.5fr);gap:0 56px;align-items:start}
  .iqmg .iqmg-gsec.is-two .iqmg-ghead{position:sticky;top:110px;margin:0}
  .iqmg .iqmg-gsec.is-two .iqmg-skills{grid-template-columns:1fr;gap:16px}
  .iqmg .iqmg-gsec.is-two .iqmg-skill{display:grid;grid-template-columns:46px minmax(0,1fr);column-gap:18px;align-items:start}
  .iqmg .iqmg-gsec.is-two .iqmg-skill-ico{grid-row:span 2;margin:0}
}
/* rise in (the script adds .is-anim, so nothing is hidden without it or with reduced motion) */
.iqmg.iqmg-guide.is-anim .iqmg-rv{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
.iqmg.iqmg-guide.is-anim .iqmg-rv.is-in{opacity:1;transform:none}
/* the dot rail: wide screens, left edge, a dot per section, the read line, the name on hover */
body nav.iqmg-rail{display:none}
@media (min-width:1320px){
  body nav.iqmg-rail{position:fixed;left:24px;top:50%;z-index:40;display:block;transform:translateY(-50%);opacity:0;pointer-events:none;transition:opacity .3s}
  body nav.iqmg-rail.is-on{opacity:1;pointer-events:auto}
}
body nav.iqmg-rail ol{position:relative;list-style:none;margin:0;padding:0}
body nav.iqmg-rail ol::before{content:"";position:absolute;left:5px;top:10px;bottom:10px;width:2px;border-radius:2px;background:rgba(12,49,88,.14)}
body nav.iqmg-rail ol > i{position:absolute;left:5px;top:10px;width:2px;height:0;border-radius:2px;background:#E4551F}
body nav.iqmg-rail li{margin:0;padding:0}
body nav.iqmg-rail li::before{content:none;display:none}
body nav.iqmg-rail a,body nav.iqmg-rail a:visited{position:relative;display:flex;align-items:center;gap:12px;padding:6px 0;text-decoration:none}
body nav.iqmg-rail a::before{content:"";flex:none;width:12px;height:12px;box-sizing:border-box;border:2px solid #C3CEDB;border-radius:50%;background:#fff;
  transition:background .2s,border-color .2s,transform .2s}
body nav.iqmg-rail a.is-on::before{border-color:#E4551F;background:#E4551F;transform:scale(1.15)}
body nav.iqmg-rail a span{padding:5px 10px;border-radius:999px;background:#0C3158;color:#fff;font:700 12.5px/1 "Enriqueta",Georgia,serif;white-space:nowrap;
  opacity:0;transform:translateX(-6px);transition:opacity .2s,transform .2s;pointer-events:none}
body nav.iqmg-rail a:hover span,body nav.iqmg-rail a:focus-visible span{opacity:1;transform:none}
body nav.iqmg-rail a:focus-visible{outline:none}
body nav.iqmg-rail a:focus-visible::before{box-shadow:0 0 0 3px rgba(228,85,31,.35)}

@media (max-width:760px){
  .iqmg.iqmg-guide,.iqmg.iqmg-sci{padding:0 16px}
  .iqmg .iqmg-toc ol{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .iqmg nav.iqmg-toc{padding:20px 18px}
  .iqmg .iqmg-toc a,.iqmg .iqmg-toc a:visited{padding:10px 11px;font-size:13.5px}
  .iqmg .iqmg-gsec.is-band{padding:46px 0}
  .iqmg .iqmg-gsec{margin-top:52px}
  .iqmg.iqmg-sci{margin-top:48px}
  .iqmg .iqmg-chips{flex-wrap:nowrap;overflow-x:auto;margin:18px -16px 24px;padding:0 16px;scrollbar-width:none}
  .iqmg .iqmg-chips a{flex:none}
  .iqmg .iqmg-trust{border-radius:18px;align-items:flex-start}
  .iqmg .iqmg-mod,.iqmg .iqmg-topic{padding:24px 20px;border-radius:20px}
  .iqmg .iqmg-mod.is-split{grid-template-columns:minmax(0,1fr);gap:22px}
  .iqmg .iqmg-mod.is-split.is-flip .iqmg-mod-text{order:0}
  .iqmg .iqmg-mod.is-table,.iqmg .iqmg-cardgrid.is-one .iqmg-topic{grid-template-columns:minmax(0,1fr);gap:10px}
  .iqmg .iqmg-mod.is-table .iqmg-mod-visual{margin-top:12px}
  .iqmg .iqmg-facts,.iqmg .iqmg-tiles,.iqmg .iqmg-cardgrid{grid-template-columns:minmax(0,1fr);gap:12px}
  .iqmg .iqmg-mod h2,.iqmg .iqmg-topic h2,.iqmg .iqmg-callout h2{font-size:21px}
  .iqmg .iqmg-mod p,.iqmg .iqmg-topic p{font-size:16px}
  .iqmg .iqmg-callout{padding:28px 22px}
  .iqmg details.iqmg-sources > summary{padding:18px 20px}
  .iqmg details.iqmg-sources .iqmg-more-body{padding:0 20px 18px}
  .iqmg .iqmg-stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:22px}
  .iqmg .iqmg-stat{padding:18px 18px}
  .iqmg .iqmg-stat:nth-child(3){border-left:0}
  .iqmg .iqmg-stat:nth-child(n+3){border-top:1px solid var(--g-line)}
  .iqmg .iqmg-stat b{font-size:26px}
  .iqmg .iqmg-stat span{font-size:13.5px}
  .iqmg .iqmg-gsec{margin-top:46px}
  .iqmg .iqmg-glede{font-size:16.5px;margin-bottom:22px}
  .iqmg .iqmg-howgrid,.iqmg .iqmg-skills,.iqmg .iqmg-two,.iqmg .iqmg-sols,.iqmg .iqmg-code,.iqmg .iqmg-example,.iqmg .iqmg-riddles{grid-template-columns:1fr;gap:14px}
  .iqmg .iqmg-how,.iqmg .iqmg-skill,.iqmg .iqmg-gcard,.iqmg .iqmg-sol,.iqmg .iqmg-excard,.iqmg .iqmg-riddle{padding:24px 22px}
  .iqmg details.iqmg-qa summary{padding:18px 52px 18px 20px;font-size:16px}
  .iqmg details.iqmg-qa summary::after{right:22px}
  .iqmg details.iqmg-qa p{padding:0 20px 20px;font-size:15.5px}
  .iqmg .iqmg-iqcard.is-wide{grid-template-columns:1fr;gap:22px;padding:30px 24px}
}

/* ---------- the toast lives outside .iqmg ---------- */
body div.iqmg-toast{position:fixed;left:50%;bottom:24px;z-index:99990;max-width:calc(100vw - 32px);margin:0;padding:12px 18px;border-radius:12px;
  background:#0C3158;color:#fff;font:400 14px/1.4 "Enriqueta",Rockwell,Georgia,serif;text-align:center;
  box-shadow:0 14px 30px -12px rgba(5,22,39,.5);transform:translate(-50%,20px);opacity:0;transition:opacity .2s,transform .2s}
body div.iqmg-toast.is-on{opacity:1;transform:translate(-50%,0)}
@media (max-width:760px){ body nav.iqmg-more{width:calc(100% - 32px);margin-top:18px} }

@media (prefers-reduced-motion:reduce){
  .iqmg .iqmg-ex *{animation:none !important}
  .iqmg .iqmg-ex-hand,.iqmg .iqmg-ex-ring{display:none}
  .iqmg .iqmg-ex-bar.is-now i::after{animation:none !important;width:100%}
  .iqmg *,body div.iqmg-toast{transition:none !important}
  .iqmg .iqmg-mcard-in{transition:none !important}
  .iqmg .iqmg-disk.is-in,.iqmg button.iqmg-peg.is-no,.iqmg button.iqmg-peg.is-to .iqmg-peg-rod::after{animation:none !important}
  .iqmg .iqmg-disk.is-up,.iqmg button.iqmg-peg.is-from .iqmg-disk:last-child{transform:none} /* no lift: the outline shows it */
  .iqmg .iqmg-plane,.iqmg .iqmg-sign,.iqmg .iqmg-stop,.iqmg button.iqmg-slider-tab b,.iqmg .iqmg-gridtex,.iqmg .iqmg-floats svg,.iqmg .iqmg-badge.is-best::after,.iqmg .iqmg-xp-bar span.is-now i,.iqmg .iqmg-howto,.iqmg .iqmg-howto-panel,.iqmg ol.iqmg-howto-steps li,.iqmg .iqmg-aurora i,.iqmg a.iqmg-gold::after,.iqmg button.iqmg-go::after{animation:none !important}
}
