:root {
  --blue: #4285f4; --red: #ea4335; --yellow: #fbbc05; --green: #34a853;
  --gblue: #1a0dab; --gurl: #202124; --ggrey: #4d5156; --gline: #dadce0;
  --ink: #1d2340; --mute: #5b6178; --paper: #fffaf0; --sand: #ffe7a8; --sand2: #f6cf74;
  --sea1: #0b5f86; --sea2: #1597c4; --sea3: #5fd3f3; --foam: #e9fbff;
  --gold: #ffc531; --gold2: #e09a00; --purple: #7c3aed;
  --r: 22px; --shadow: 0 10px 30px rgba(17, 40, 80, .14), 0 3px 0 rgba(17, 40, 80, .08);
  --fh: Fredoka, "Baloo 2", system-ui, sans-serif; --fb: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fg: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font: 700 17px/1.45 var(--fb); color: var(--ink); -webkit-font-smoothing: antialiased; min-height: 100vh;
  background: linear-gradient(180deg, #bff0ff 0, #e6faff 260px, var(--paper) 620px) fixed;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }
.e { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; object-fit: contain; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
#top {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--blue) 0 25%, var(--red) 25% 50%, var(--yellow) 50% 75%, var(--green) 75%) 1;
}
.brand { display: flex; align-items: center; gap: 8px; font: 700 20px var(--fh); white-space: nowrap; }
.brand img { width: 38px; height: 38px; animation: bob 3s ease-in-out infinite; }
.brand .sq { color: var(--mute); font-weight: 600; }
.pips { display: flex; gap: 5px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.pip { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--fh); background: #eef2f7; color: #8a93a8; border: 2px solid #dfe5ee; transition: .3s; }
.pip.done { background: radial-gradient(circle at 35% 30%, #fff3b0, var(--gold) 55%, var(--gold2)); color: #7a4b00; border-color: #c98400; transform: scale(1.06); }
.pip.here { box-shadow: 0 0 0 3px rgba(66, 133, 244, .45); }
.coins { display: flex; align-items: center; gap: 4px; font: 700 18px var(--fh); background: #fff6d6; border: 2px solid #ffd970; padding: 2px 10px 2px 4px; border-radius: 999px; }
.coins img { width: 26px; height: 26px; }
.coins.bump { animation: bump .45s; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 2px solid #e3e8f0; font-size: 20px; transition: transform .15s; }
.iconbtn:active { transform: scale(.92); }
.iconbtn.off { opacity: .45; }
@media (max-width: 720px) { .pips { display: none; } .brand .sq { display: none; } #top { justify-content: space-between; } }

main { max-width: 1040px; margin: 0 auto; padding: 18px 16px 60px; }
.view { animation: viewIn .45s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes viewIn { from { opacity: 0; transform: translateY(18px) scale(.985); } }

/* ---------- generic bits ---------- */
.card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; margin: 18px 0; position: relative; }
h1, h2, h3 { font-family: var(--fh); margin: 0 0 8px; line-height: 1.15; }
h2 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
h2 .e { font-size: 34px; }
.sub { color: var(--mute); font-weight: 700; margin: 0 0 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font: 700 18px var(--fh);
  background: var(--blue); color: #fff; box-shadow: 0 5px 0 #2a5fc4; transition: transform .1s, box-shadow .1s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #2a5fc4; }
.btn.green { background: var(--green); box-shadow: 0 5px 0 #23793c; }
.btn.red { background: var(--red); box-shadow: 0 5px 0 #b02a1e; }
.btn.gold { background: linear-gradient(180deg, #ffd75a, var(--gold)); color: #5b3700; box-shadow: 0 5px 0 var(--gold2); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 4px 0 #d5dce8; border: 2px solid #e3e8f0; }
.btn.purple { background: var(--purple); box-shadow: 0 5px 0 #5221b5; }
.btn .e { font-size: 24px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spk { width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: #eaf2ff; border: 2px solid #cfe0ff; transition: transform .15s; }
.spk img { width: 22px; height: 22px; }
.spk:active { transform: scale(.9); }
.spk.on { animation: pulse 1s infinite; background: #d7e7ff; }
.tag { display: inline-block; font: 700 12px var(--fb); letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #eef2ff; color: #4054b2; }
.tag.real { background: #e7f8ec; color: #137333; }
.tag.extra { background: #f3e8ff; color: #6b21a8; }
.gword { font-family: "Product Sans", Poppins, var(--fg); font-weight: 500; letter-spacing: -.02em; }
.gword .b { color: var(--blue); } .gword .r { color: var(--red); } .gword .y { color: var(--yellow); } .gword .g { color: var(--green); }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; align-items: center; background: linear-gradient(135deg, #fff 0, #fff8e6 100%); overflow: hidden; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); }
.hero h1 .gword { font-size: 1.08em; }
.hero p { font-size: 19px; color: var(--mute); margin: 6px 0 16px; }
.hero .pixelbig { position: relative; justify-self: center; width: min(260px, 70%); }
.hero .pixelbig img { width: 100%; animation: bob 2.6s ease-in-out infinite; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .18)); cursor: pointer; }
.hero .bubble { position: absolute; top: -6px; right: -10px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 6px 12px; font: 700 16px var(--fh); transform: rotate(4deg); animation: wiggle 3s infinite; }
.hero .floaters img { position: absolute; width: 46px; opacity: .9; animation: float 6s ease-in-out infinite; }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; text-align: center; } .hero .row { justify-content: center; } .hero .pixelbig { order: -1; width: 120px; } .hero .bubble { font-size: 13px; right: -40px; } }

.reviewer { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rv { text-align: left; border-radius: 16px; padding: 12px 14px; background: var(--soft, #f3f6ff); border: 2px solid var(--c, #c9d6ff); display: flex; gap: 10px; align-items: flex-start; transition: transform .15s; }
.rv:hover { transform: translateY(-2px); }
.rv img { width: 40px; height: 40px; flex: none; }
.rv b { font: 700 18px var(--fh); display: block; color: var(--c2, var(--ink)); }
.rv span { font-size: 14.5px; color: #3a4060; font-weight: 700; }

/* treasure map */
.mapwrap { border-radius: 28px; overflow: hidden; position: relative; box-shadow: var(--shadow); margin: 18px 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .25), transparent 50%), linear-gradient(180deg, var(--sea3), var(--sea2) 45%, var(--sea1)); }
.mapwrap::before { content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background: repeating-radial-gradient(circle at 20% 30%, transparent 0 22px, rgba(255, 255, 255, .45) 23px 25px, transparent 26px 60px),
              repeating-radial-gradient(circle at 80% 75%, transparent 0 30px, rgba(255, 255, 255, .35) 31px 33px, transparent 34px 70px);
  animation: drift 16s linear infinite alternate; }
.maptitle { position: absolute; left: 18px; top: 14px; z-index: 3; color: #fff; font: 700 24px var(--fh); text-shadow: 0 2px 0 rgba(0, 0, 0, .25); display: flex; align-items: center; gap: 8px; }
.maptitle img { width: 36px; animation: spin 14s linear infinite; }
.map { position: relative; width: 100%; }
.map svg.path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map svg.path path { fill: none; stroke: #fff7d6; stroke-width: 5; stroke-dasharray: 2 16; stroke-linecap: round; opacity: .9; animation: dash 2.5s linear infinite; }
.isle { position: absolute; transform: translate(-50%, -50%); width: 128px; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.isle .land { position: relative; width: 112px; height: 74px; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 35%, #fff2c4, var(--sand) 45%, var(--sand2) 80%);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .35), 0 0 0 13px rgba(255, 255, 255, .12), 0 10px 0 rgba(0, 0, 0, .12);
  animation: bob 4s ease-in-out infinite; animation-delay: var(--d, 0s); transition: transform .2s; }
.isle:hover .land, .isle:focus-visible .land { transform: scale(1.08) rotate(-2deg); }
.isle .icon { position: absolute; left: 50%; top: -30px; width: 66px; transform: translateX(-50%); filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); }
.isle .num { position: absolute; left: -6px; top: -10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--blue)); color: #fff; font: 700 18px var(--fh); border: 3px solid #fff; }
.isle .done { position: absolute; right: -8px; top: -12px; width: 40px; animation: spinY 3s linear infinite; }
.isle .lbl { margin-top: 10px; background: #fff; border-radius: 12px; padding: 3px 10px; font: 700 15px/1.2 var(--fh); text-align: center; box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.isle .lbl small { display: block; font: 700 11.5px var(--fb); color: var(--mute); }
.isle.secret .land { background: radial-gradient(ellipse at 50% 35%, #f5e8ff, #d9b8ff 50%, #a970ff 90%); }
.isle.test .land { background: radial-gradient(ellipse at 50% 35%, #fff8d0, #ffd65c 50%, #f0a500 90%); }
.ship { position: absolute; width: 64px; z-index: 4; transform: translate(-50%, -50%); transition: left 1.6s cubic-bezier(.5, 0, .3, 1), top 1.6s cubic-bezier(.5, 0, .3, 1); pointer-events: none; }
.ship img { animation: rock 2.4s ease-in-out infinite; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .3)); }
.deco { position: absolute; z-index: 1; pointer-events: none; opacity: .92; animation: float 7s ease-in-out infinite; }
.fin { position: absolute; z-index: 1; width: 44px; animation: swim 14s linear infinite; pointer-events: none; }

.bonusgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.bcard { border-radius: 20px; padding: 16px 12px; color: #fff; text-align: center; background: var(--c); box-shadow: 0 6px 0 rgba(0, 0, 0, .18); position: relative; overflow: hidden; transition: transform .15s; }
.bcard:hover { transform: translateY(-3px) rotate(-1deg); }
.bcard img { width: 70px; margin: 0 auto 6px; animation: bob 3s ease-in-out infinite; }
.bcard b { display: block; font: 700 18px var(--fh); }
.bcard span { font-size: 13.5px; opacity: .92; }
.bcard .ok { position: absolute; top: 8px; right: 8px; width: 30px; }
.bcard::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .35) 50%, transparent 60%); animation: shine 4s infinite; }

/* ---------- lesson ---------- */
.banner { border-radius: 28px; padding: 22px 22px 22px 26px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #001a40)); box-shadow: var(--shadow); }
.banner .island { font: 700 15px var(--fh); opacity: .9; letter-spacing: .04em; text-transform: uppercase; }
.banner h1 { font-size: clamp(34px, 6vw, 54px); margin: 2px 0 12px; }
.banner .big { position: absolute; right: 18px; top: 50%; width: min(150px, 28%); transform: translateY(-50%); animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .25)); }
.banner .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .25); font: 700 20px var(--fh); margin-right: 8px; }
.banner .btn { background: #fff; color: var(--ink); box-shadow: 0 5px 0 rgba(0, 0, 0, .2); }
.banner::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.remember { display: flex; gap: 14px; align-items: center; border: 3px dashed var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); }
.remember .lab { font: 700 13px var(--fb); text-transform: uppercase; letter-spacing: .08em; color: var(--c); }
.remember .def { font: 600 clamp(20px, 3.2vw, 27px)/1.25 var(--fh); }
.remember .def b { color: var(--c); }
.remember img { width: 64px; flex: none; }

.lines { display: grid; gap: 10px; }
.line { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #f6f8fc; border: 2px solid transparent; transition: .25s; font-size: 18.5px; }
.line.now { background: #fff7d1; border-color: var(--gold); transform: scale(1.015); box-shadow: 0 6px 14px rgba(255, 197, 49, .25); }
.line.pixel { background: #eafff1; border-color: #bdf0cd; }
.line.pixel .who { width: 44px; flex: none; }
.line.pixel.now { background: #d9ffe6; border-color: var(--green); }

/* real screenshots */
.shot { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid #d6dbe4; background: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, .12); }
.chrome { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #eef1f6; border-bottom: 1px solid #dfe3ea; }
.chrome .dots { display: flex; gap: 6px; } .chrome .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .chrome .dots i:nth-child(2) { background: #febc2e; } .chrome .dots i:nth-child(3) { background: #28c840; }
.chrome .url { flex: 1; background: #fff; border-radius: 999px; padding: 3px 12px; font: 400 13.5px var(--fg); color: #3c4043; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shotimg { position: relative; overflow: hidden; }
.shotimg img { width: 100%; height: auto; transition: opacity .25s; }
.shotimg.flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: flash .45s forwards; pointer-events: none; }
.hs { position: absolute; border-radius: 12px; }
.shot.task .hs { cursor: pointer; }
.shot.task .shotimg { cursor: crosshair; }
.hs.glow { box-shadow: 0 0 0 4px var(--yellow), 0 0 22px 6px rgba(251, 188, 5, .65); animation: pulse 1.1s infinite; }
.hs.right { box-shadow: 0 0 0 4px var(--green), 0 0 24px 8px rgba(52, 168, 83, .55); animation: pop .5s; }
.hs.show { box-shadow: 0 0 0 4px var(--blue), 0 0 20px 6px rgba(66, 133, 244, .5); animation: pulse 1.2s infinite; }
.hs.tabhs:hover { background: rgba(66, 133, 244, .12); }
.hs.said { box-shadow: 0 0 0 3px var(--green); }
.ripple { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid var(--red); animation: ripple .6s forwards; pointer-events: none; }
.callout { position: absolute; transform: translate(-50%, 0); background: var(--ink); color: #fff; font: 700 clamp(11px, 1.6vw, 15px) var(--fh); padding: 4px 10px; border-radius: 10px; white-space: nowrap; animation: dropIn .45s backwards; pointer-events: none; z-index: 3; }
.callout::before { content: ""; position: absolute; left: 50%; top: -7px; margin-left: -7px; border: 7px solid transparent; border-top: 0; border-bottom-color: var(--ink); }
.callout.up::before { top: auto; bottom: -7px; border-bottom: 0; border-top: 7px solid var(--ink); }
.shotcap { padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-size: 16px; background: #fbfcfe; border-top: 1px solid #eef0f4; }
.lensscan { position: absolute; inset: 6%; border-radius: 22px; pointer-events: none; border: 6px solid transparent;
  background: linear-gradient(#0000, #0000) padding-box, conic-gradient(from var(--a, 0deg), var(--blue), var(--red), var(--yellow), var(--green), var(--blue)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  animation: lensSpin 1.1s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.scanline { position: absolute; left: 6%; right: 6%; height: 4px; top: 10%; background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 16px 4px rgba(255, 255, 255, .8); animation: scan 1.2s ease-in-out infinite alternate; pointer-events: none; }

/* ---------- practice Google (mock) ---------- */
.pg { border-radius: 18px; overflow: hidden; border: 1px solid #d6dbe4; background: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, .1); font-family: var(--fg); font-weight: 400; color: var(--gurl); }
.pg .chrome .url::after { content: " (practice)"; color: #9aa0a6; }
.pgbody { padding: 26px 18px 22px; min-height: 260px; position: relative; }
.pghome { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pglogo { font-size: clamp(54px, 10vw, 84px); line-height: 1; user-select: none; }
.pgbox { width: min(100%, 580px); height: 50px; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 16px; border: 1px solid var(--gline); border-radius: 26px; background: #fff; transition: box-shadow .2s; position: relative; }
.pgbox:hover, .pgbox.focus { box-shadow: 0 1px 6px rgba(32, 33, 36, .28); border-color: rgba(223, 225, 229, 0); }
.pgbox .plus { font-size: 26px; color: #3c4043; line-height: 1; }
.pgbox input { flex: 1; border: 0; outline: 0; font: 16px var(--fg); color: var(--gurl); min-width: 0; background: transparent; }
.pgbox .ico { width: 24px; height: 24px; flex: none; }
.pgbox .aimode { font: 14px var(--fg); background: #f1f3f4; border-radius: 18px; padding: 7px 12px; color: #202124; white-space: nowrap; }
.pgbox .caret { width: 2px; height: 22px; background: #202124; animation: blink 1s steps(1) infinite; }
.pgsugg { position: absolute; left: -1px; right: -1px; top: 49px; background: #fff; border: 1px solid var(--gline); border-top: 1px solid #e8eaed; border-radius: 0 0 26px 26px; box-shadow: 0 4px 6px rgba(32, 33, 36, .28); padding: 6px 0 10px; z-index: 5; }
.pgsugg div { padding: 6px 18px; display: flex; gap: 14px; align-items: center; cursor: pointer; }
.pgsugg div:hover { background: #f1f3f4; }
.pgsugg div b { font-weight: 700; }
.pgbtns { display: flex; gap: 12px; }
.gbtn { background: #f8f9fa; border: 1px solid #f8f9fa; border-radius: 8px; color: #3c4043; font: 14px var(--fg); padding: 10px 16px; }
.gbtn:hover { border-color: #dadce0; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }
.pgchips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font: 700 14px var(--fb); color: var(--mute); }
.pgchips button { font: 400 14px var(--fg); border: 1px solid var(--gline); border-radius: 999px; padding: 6px 14px; background: #fff; color: #1a73e8; }
.pgres .top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pgres .top .pglogo { font-size: 30px; cursor: pointer; }
.pgres .top .pgbox { width: min(100%, 560px); height: 44px; }
.gtabs { display: flex; gap: 22px; margin: 14px 0 0; border-bottom: 1px solid #ebebeb; overflow-x: auto; scrollbar-width: none; font: 14px var(--fg); }
.gtabs button { padding: 10px 0 12px; color: #70757a; border-bottom: 3px solid transparent; white-space: nowrap; }
.gtabs button.on { color: #202124; border-bottom-color: #202124; font-weight: 700; }
.gtabs button.glow { color: var(--blue); animation: pulse 1.1s infinite; border-radius: 6px; box-shadow: 0 0 0 3px var(--yellow); }
.gstats { color: #70757a; font-size: 13px; margin: 10px 0 4px; }
.gres { max-width: 640px; margin: 18px 0; animation: slideUp .45s backwards; }
.gres .site { display: flex; align-items: center; gap: 10px; }
.gres .fav { width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; overflow: hidden; flex: none; }
.gres .fav img, .gres .fav i { width: 18px; height: 18px; }
.gres .sn { font-size: 14px; color: #202124; line-height: 1.2; }
.gres .sn small { display: block; font-size: 12px; color: #4d5156; }
.gres h3 { font: 400 20px/1.3 var(--fg); color: var(--gblue); margin: 4px 0 3px; }
.gres p { margin: 0; font-size: 14px; color: var(--ggrey); line-height: 1.58; }
.gres .spon { font: 700 14px var(--fg); color: #202124; margin-bottom: 4px; }
.gimgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.gimg { animation: popIn .4s backwards; }
.gimg .ph { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: #e8f0fe; display: grid; place-items: center; }
.gimg .ph img { width: 100%; height: 100%; object-fit: cover; }
.gimg .ph img.emo { width: 60%; height: 60%; object-fit: contain; }
.gimg span { font-size: 12.5px; color: #202124; display: block; margin-top: 4px; }
.gempty { text-align: center; padding: 30px 10px; color: var(--ggrey); font-size: 15px; }
.gempty img { width: 90px; margin: 0 auto 8px; }
.logomask { display: inline-block; width: 22px; height: 22px; background: var(--lc, #444); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }

/* ---------- Google quiz ---------- */
.gq { font-family: var(--fg); font-weight: 400; color: var(--gurl); background: #fff; border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.gqhead { padding: 16px 18px 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gqhead .pglogo { font-size: 30px; }
.gqhead .quizbadge { font: 700 12px var(--fb); color: #fff; background: var(--red); border-radius: 6px; padding: 2px 6px; margin-left: 4px; vertical-align: 6px; }
.gqbox { flex: 1 1 420px; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 18px; border-radius: 24px; box-shadow: 0 1px 6px rgba(32, 33, 36, .28); font-size: 17px; line-height: 1.3; }
.gqbox .qt { flex: 1; }
.gqbox .caret { display: inline-block; width: 2px; height: 1.1em; background: #202124; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.gqbox .ico { width: 24px; height: 24px; flex: none; }
.gqbody { padding: 0 18px 18px; }
.gqbody .gtabs { margin-top: 10px; }
.didyoumean { font-size: 18px; color: var(--red); margin: 12px 0 2px; animation: slideUp .4s; }
.didyoumean a { color: var(--gblue); font-weight: 700; font-style: italic; }
.ans { display: block; width: 100%; text-align: left; margin: 10px 0; padding: 12px 14px; border-radius: 16px; border: 2px solid transparent; transition: background .15s, border-color .2s, transform .15s; animation: slideUp .45s backwards; position: relative; }
.ans:hover { background: #f8f9fb; }
.ans .site { display: flex; align-items: center; gap: 10px; }
.ans .fav { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 15px var(--fg); flex: none; }
.ans .sn { font-size: 14px; } .ans .sn small { display: block; font-size: 12px; color: #4d5156; }
.ans h3 { font: 400 clamp(18px, 2.6vw, 22px)/1.3 var(--fg); color: var(--gblue); margin: 6px 0 2px; }
.ans:hover h3 { text-decoration: underline; }
.ans p { margin: 0; font-size: 14px; color: var(--ggrey); }
.ans .spk { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; }
.ans.right { border-color: var(--green); background: #effaf2; animation: pop .45s; }
.ans.right h3 { color: #137333; }
.ans.wrong { border-color: var(--red); background: #fdeeee; animation: shake .45s; }
.ans.dim { opacity: .45; }
.ans .stamp { position: absolute; right: 54px; top: 50%; width: 52px; transform: translateY(-50%) rotate(-12deg); animation: stamp .35s backwards; }
.gqfb { margin: 10px 0 0; padding: 14px 16px; border-radius: 16px; font: 700 18px var(--fb); display: flex; gap: 12px; align-items: center; animation: slideUp .35s; }
.gqfb.ok { background: #e6f7eb; color: #0d5c27; } .gqfb.no { background: #fff4e5; color: #7a4100; }
.gqfb img { width: 46px; flex: none; }
.gqspot { margin-top: 12px; }
.gpager { display: flex; flex-direction: column; align-items: center; margin: 18px 0 6px; user-select: none; }
.gpager .word { font: 500 clamp(26px, 4vw, 36px) "Product Sans", Poppins, var(--fg); letter-spacing: -.03em; display: flex; align-items: baseline; flex-wrap: wrap; justify-content: center; }
.gpager .o { display: inline-block; transition: color .3s, transform .3s; color: #d0d4db; }
.gpager .o.ok { color: var(--green); } .gpager .o.no { color: var(--red); } .gpager .o.cur { color: var(--yellow); transform: translateY(-6px); animation: bob 1s infinite; }
.gpager .nums { font: 13px var(--fg); color: #70757a; }

/* test intro / results */
.ghome { text-align: center; padding: 34px 18px 28px; }
.ghome .pglogo { font-size: clamp(64px, 12vw, 104px); }
.ghome .tsub { font: 700 22px var(--fh); color: var(--mute); margin: -4px 0 18px; }
.ghome .pgbox { margin: 0 auto 22px; }
.ghome .pgbtns { justify-content: center; }
.ghome .best { margin-top: 18px; color: var(--mute); font: 700 16px var(--fb); }
.scorebig { text-align: center; padding: 10px 0; }
.scorebig .num { font: 700 clamp(64px, 14vw, 120px)/1 var(--fh); background: linear-gradient(90deg, var(--blue), var(--red), var(--yellow), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: zoomIn .6s cubic-bezier(.2, 1.6, .4, 1); }
.scorebig .of { font: 700 22px var(--fh); color: var(--mute); }
.review .ans { cursor: default; } .review .ans:hover h3 { text-decoration: none; }
.cert { border: 10px solid transparent; border-radius: 26px; padding: 28px; text-align: center; background: linear-gradient(#fffdf4, #fffdf4) padding-box, linear-gradient(90deg, var(--blue), var(--red), var(--yellow), var(--green)) border-box; animation: zoomIn .7s; }
.cert img { width: 110px; margin: 0 auto; animation: bob 2s infinite; }
.cert h2 { justify-content: center; font-size: 34px; }
.cert .who { font: 700 44px var(--fh); color: var(--blue); }

/* ---------- activities ---------- */
.sentence { display: flex; flex-wrap: wrap; gap: 8px; font: 700 22px var(--fh); margin: 10px 0; }
.word { padding: 8px 14px; border-radius: 14px; background: #f1f4fa; border: 2px solid #dfe5f0; transition: .2s; }
.word.key { background: linear-gradient(180deg, #fff3b8, var(--gold)); border-color: var(--gold2); color: #5b3700; animation: pop .4s; }
.word.nope { animation: shake .4s; background: #fdeaea; text-decoration: line-through; color: #a3a3a3; }
.searchchip { display: inline-flex; align-items: center; gap: 8px; font: 16px var(--fg); background: #fff; border: 1px solid var(--gline); border-radius: 999px; padding: 8px 16px; box-shadow: 0 1px 6px rgba(32, 33, 36, .2); animation: popIn .4s; }
.goal { font: 600 22px var(--fh); display: flex; gap: 10px; align-items: center; background: #f0f6ff; padding: 12px 16px; border-radius: 16px; }
.goal img { width: 40px; }
.opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 12px; }
.opt { padding: 14px; border-radius: 16px; background: #fff; border: 3px solid #e3e8f0; font: 600 19px var(--fh); box-shadow: 0 4px 0 #e3e8f0; transition: transform .1s; display: flex; align-items: center; gap: 8px; justify-content: center; text-align: center; }
.opt:active { transform: translateY(3px); box-shadow: 0 1px 0 #e3e8f0; }
.opt.right { border-color: var(--green); background: #e9f9ee; box-shadow: 0 4px 0 #bfe8cb; animation: pop .4s; }
.opt.wrong { border-color: var(--red); background: #fdeeee; animation: shake .4s; }
.opt.search { font-family: var(--fg); font-weight: 400; font-size: 17px; }

.safecard { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; padding: 18px; border-radius: 22px; background: linear-gradient(135deg, #fff, #f4f9ff); border: 3px solid #dce8ff; animation: dealIn .5s cubic-bezier(.2, 1.4, .4, 1); }
.safecard img { width: 86px; }
.safecard .txt { font: 600 22px/1.3 var(--fh); }
.safebtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.safebtns .btn { justify-content: center; font-size: 20px; padding: 16px; }
.smart { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.sm { border-radius: 18px; padding: 14px; text-align: left; color: #fff; background: var(--c); box-shadow: 0 5px 0 rgba(0, 0, 0, .18); transition: transform .15s; }
.sm:hover { transform: translateY(-3px); }
.sm .L { font: 700 44px/1 var(--fh); float: left; margin-right: 8px; }
.sm b { font: 700 19px var(--fh); display: block; }
.sm img { width: 34px; float: right; }
.sm p { clear: both; margin: 6px 0 0; font-size: 14.5px; }

.flip { perspective: 900px; height: 190px; }
.flip .in { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); transform-style: preserve-3d; }
.flip.on .in { transform: rotateY(180deg); }
.flip .f, .flip .b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px; text-align: center; box-shadow: var(--shadow); }
.flip .f { background: var(--c); color: #fff; font: 700 26px var(--fh); }
.flip .f img { width: 70px; margin-bottom: 6px; }
.flip .b { background: #fff; transform: rotateY(180deg); font: 600 19px/1.3 var(--fh); border: 4px solid var(--c); }
.flip .b small { color: var(--c); font: 700 13px var(--fb); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.match { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px 14px; }
.match .col { display: grid; gap: 10px; align-content: start; }
.mt { padding: 12px 14px; border-radius: 14px; border: 3px solid #e3e8f0; background: #fff; text-align: left; font: 600 17px/1.25 var(--fh); box-shadow: 0 3px 0 #e3e8f0; transition: .15s; }
.mt.term { font-size: 19px; }
.mt.sel { border-color: var(--blue); background: #eef4ff; transform: scale(1.03); }
.mt.done { border-color: var(--green); background: #e9f9ee; opacity: .75; pointer-events: none; }
.mt.bad { animation: shake .4s; border-color: var(--red); }
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.tip { display: flex; gap: 10px; align-items: center; background: #fffbe8; border: 2px solid #ffe28a; border-radius: 16px; padding: 12px; text-align: left; font-size: 16px; }
.tip img { width: 40px; flex: none; }

/* mystery lab */
.mystery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.myst { border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 1; box-shadow: 0 5px 0 rgba(0, 0, 0, .15); border: 4px solid #fff; transition: transform .15s; }
.myst:hover { transform: rotate(-2deg) scale(1.03); }
.myst img { width: 100%; height: 100%; object-fit: cover; }
.myst .q { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 10, 50, .35); color: #fff; font: 700 54px var(--fh); text-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.myst.solved .q { background: rgba(52, 168, 83, .3); font-size: 18px; align-items: end; padding-bottom: 8px; }
.lab { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; margin-top: 14px; }
.labpic { position: relative; border-radius: 20px; overflow: hidden; background: #111; aspect-ratio: 4/3; }
.labpic img { width: 100%; height: 100%; object-fit: cover; }
.lensfound { background: #fff; border-radius: 18px; border: 1px solid var(--gline); padding: 14px 16px; font-family: var(--fg); font-weight: 400; animation: slideUp .45s; }
.lensfound .t { font-size: 13px; color: #70757a; display: flex; gap: 8px; align-items: center; }
.lensfound h3 { font: 400 26px var(--fg); color: #202124; margin: 6px 0; }
.lensfound li { margin: 6px 0; font: 15px/1.45 var(--fg); color: #3c4043; }
@media (max-width: 720px) { .lab { grid-template-columns: 1fr; } }

/* long tail */
.tail { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; }
.kite { position: relative; height: 230px; }
.kite img.k { width: 110px; position: absolute; left: 10px; top: 0; animation: kite 3s ease-in-out infinite; transform-origin: 50% 100%; }
.kite svg { position: absolute; left: 0; top: 0; width: 220px; height: 230px; overflow: visible; }
.kite svg path { fill: none; stroke: #7a5cff; stroke-width: 3; transition: d .6s; }
.bow { position: absolute; width: 22px; height: 14px; transition: .5s; }
.bow::before, .bow::after { content: ""; position: absolute; top: 0; width: 11px; height: 14px; background: var(--bc); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.bow::after { right: 0; transform: scaleX(-1); }
.meter { margin: 8px 0; } .meter b { font: 700 15px var(--fb); display: flex; justify-content: space-between; }
.meter .bar { height: 18px; border-radius: 999px; background: #edf0f6; overflow: hidden; }
.meter .bar i { display: block; height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.3, 1.4, .5, 1); }
@media (max-width: 720px) { .tail { grid-template-columns: 1fr; } .kite { margin: 0 auto; width: 220px; } }

.tricks { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; }
.trick { border-radius: 20px; padding: 16px; background: #fff; border: 2px solid #eceff5; box-shadow: 0 4px 0 #eceff5; }
.trick h3 { display: flex; gap: 8px; align-items: center; font-size: 21px; }
.trick h3 img { width: 34px; }
.trick p { margin: 6px 0 10px; font-size: 15.5px; color: #3a4060; }
.demo { font: 15px var(--fg); font-weight: 400; background: #f8f9fa; border-radius: 14px; padding: 12px; }
.demo .pgbox { height: 42px; }
.minus { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
.minus figure { margin: 0; transition: .4s; }
.minus figure.gone { opacity: 0; transform: scale(.6) rotate(-8deg); }
.minus img { aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; width: 100%; }
.minus figcaption { font: 12.5px var(--fg); }
.mic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); margin: 4px auto; }
.mic.on { animation: micpulse 1s infinite; background: var(--red); }
.mic.on svg path { fill: #fff; }

.aiov { border-radius: 16px; background: #f8fafd; border: 1px solid #e3e8ef; padding: 14px 16px; font-family: var(--fg); font-weight: 400; }
.aiov .h { display: flex; gap: 8px; align-items: center; font-size: 15px; color: #202124; }
.aiov p { font-size: 17px; margin: 8px 0 0; }
.aiov mark { background: #d3e3fd; }

/* pixel popup + fx */
#pixel { position: fixed; right: 14px; bottom: 14px; z-index: 60; display: flex; align-items: flex-end; gap: 6px; pointer-events: none; transform: translateY(160%); transition: transform .45s cubic-bezier(.2, 1.5, .4, 1); }
#pixel.show { transform: none; }
#pixel img { width: 96px; animation: flap .5s ease-in-out infinite; transform-origin: 50% 90%; }
#pixel .say { max-width: 260px; background: #fff; border: 3px solid var(--ink); border-radius: 18px 18px 4px 18px; padding: 10px 12px; font: 600 17px/1.3 var(--fh); box-shadow: var(--shadow); }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.conf { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
.flycoin { position: fixed; width: 48px; z-index: 80; pointer-events: none; }
.toast { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 75; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font: 700 18px var(--fh); box-shadow: var(--shadow); animation: toast 2.6s forwards; display: flex; gap: 8px; align-items: center; }
.toast img { width: 30px; }

.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
footer { max-width: 1040px; margin: 0 auto; padding: 10px 16px 40px; font-size: 12.5px; color: var(--mute); font-weight: 600; }
footer a { color: inherit; }
details summary { cursor: pointer; font-weight: 800; }

/* ---------- keyframes ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(8px, -10px) rotate(6deg); } }
@keyframes rock { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-3px); } }
@keyframes wiggle { 0%, 90%, 100% { transform: rotate(4deg); } 94% { transform: rotate(-4deg); } 97% { transform: rotate(8deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes bump { 50% { transform: scale(1.25); } }
@keyframes pop { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes popIn { from { opacity: 0; transform: scale(.7); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.3) rotate(-8deg); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes dropIn { from { opacity: 0; transform: translate(-50%, -14px); } }
@keyframes dealIn { from { opacity: 0; transform: translateX(60px) rotate(8deg); } }
@keyframes stamp { from { opacity: 0; transform: translateY(-50%) scale(2.4) rotate(-30deg); } }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }
@keyframes flash { from { opacity: .9; } to { opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinY { to { transform: rotateY(360deg); } }
@keyframes dash { to { stroke-dashoffset: -36; } }
@keyframes drift { to { transform: translateX(40px); } }
@keyframes swim { 0% { left: -60px; } 100% { left: 105%; } }
@keyframes shine { 0%, 70% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
@keyframes flap { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(4deg) scale(1.04, .97); } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -20px) scale(.8); } 12%, 85% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -10px); } }
@keyframes lensSpin { to { --a: 360deg; } }
@keyframes scan { from { top: 10%; } to { top: 88%; } }
@keyframes kite { 0%, 100% { transform: rotate(-8deg) translate(0, 0); } 50% { transform: rotate(8deg) translate(10px, -6px); } }
@keyframes micpulse { 0% { box-shadow: 0 0 0 0 rgba(234, 67, 53, .5); } 100% { box-shadow: 0 0 0 22px rgba(234, 67, 53, 0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media print {
  body { background: #fff; } #top, footer, #pixel, .noprint, .nav { display: none !important; }
  .cert { break-inside: avoid; }
}
