:root {
  --ink: #111;
  --muted: #7a7a7a;
  --lime: #86d81c;
  --lime-d: #4f8f0c;
  --lime-soft: #eef9e0;
  --red: #e53935;
  --gold: #f5b53f;
  --cell: #f0f1ec;
  --paper: #fff;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: 'Montserrat', system-ui, sans-serif; color: var(--ink); background: var(--paper);
  min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
main { flex: 1; display: flex; }
button { font-family: inherit; cursor: pointer; color: var(--ink); }
a { color: inherit; }

/* ---------- desenhos ---------- */
.dd { display: block; pointer-events: none; }
.dd-q { color: var(--lime); width: 84px; transform: rotate(14deg); flex-shrink: 0; }
.dd-spark { color: var(--gold); width: 64px; }
.dd-check { color: var(--lime); width: 54px; }
.dd-cross { color: #fff; width: 30px; }
.dd-swirl { color: #b9b9b9; width: 120px; }
.dd-grid { color: #ececec; width: 300px; }

/* ---------- nav ---------- */
.nav-in { max-width: 1000px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 4px; text-decoration: none; }
.logo-box { border: 2.5px solid var(--ink); border-radius: 9px; padding: 2px 11px; font-weight: 900; font-size: 18px; box-shadow: 3px 3px 0 var(--ink); }
.logo-dot { color: var(--lime); font-weight: 900; font-size: 26px; transform: rotate(14deg); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 14px; }
.nav-links a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.lang-btn { border: 2px solid var(--ink); background: #fff; border-radius: 20px; padding: 3px 11px; font-weight: 800; font-size: 12px; }
.lang-btn:hover { background: var(--lime-soft); }

/* ---------- base ---------- */
.stage { position: relative; margin: auto; width: min(780px, 100% - 32px); padding: 20px 0 40px; }

.btn-y, .btn-w {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  border: 2.5px solid var(--ink); border-radius: 12px; padding: 11px 28px; font-weight: 800; font-size: 15px;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .08s, box-shadow .08s; color: var(--ink);
}
.btn-y { background: var(--lime); }
.btn-w { background: #fff; }
.btn-y:hover, .btn-w:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-y:active, .btn-w:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-y.wide, .btn-w.wide { min-width: 180px; }
.link-btn { background: none; border: none; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: underline; padding: 4px; }
.link-btn:hover { color: var(--red); }
.lead { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- home ---------- */
.home { width: min(1000px, 100% - 32px); }
.home > .dd-grid { position: absolute; top: -10px; left: -150px; z-index: -1; }
.home-head { position: relative; margin: 26px 0 84px; text-align: center; }
.kicker { font-weight: 800; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin: 0 0 14px; }
.title-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.title-box {
  margin: 0; background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 4px 34px 10px;
  font-size: clamp(48px, 9vw, 86px); font-weight: 900; letter-spacing: -2px; box-shadow: 7px 7px 0 var(--ink);
}
.home-head .dd-spark { position: absolute; left: 18%; bottom: -14px; }

.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font-size: 22px; font-weight: 900; border: 2.5px solid var(--ink); border-radius: 10px; padding: 3px 14px 5px; box-shadow: 4px 4px 0 var(--ink); background: #fff; }
.sec-head .dd-swirl { width: 90px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gcard {
  background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; overflow: hidden; text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .1s, box-shadow .1s;
}
.gcard:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.gcard:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.thumb { height: 112px; position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; border-bottom: 2.5px solid var(--ink); }
.num {
  position: absolute; top: 8px; left: 8px; min-width: 28px; height: 22px; padding: 0 5px; border-radius: 7px;
  background: #fff; border: 2px solid var(--ink); font-weight: 900; font-size: 11px; display: grid; place-items: center;
}
.gbody { padding: 10px 12px 14px; }
.gbody h3 { margin: 0 0 3px; font-size: 15px; font-weight: 900; }
.gbody p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; font-weight: 500; }
.study-link { display: table; margin: 30px auto 0; font-weight: 800; font-size: 15px; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* miniaturas */
.t-tile {
  width: 66px; height: 66px; background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; display: grid; place-items: center;
  font-size: 30px; font-weight: 900; box-shadow: 4px 4px 0 var(--ink); position: relative;
}
.t-tile small { position: absolute; top: 3px; left: 7px; font-size: 13px; color: var(--red); }
.t-tile.sm { width: 52px; height: 52px; font-size: 22px; }
.t-card { background: #fff; border: 2.5px solid var(--ink); border-radius: 9px; padding: 6px 12px; font-weight: 900; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.t-arrow { font-weight: 900; font-size: 22px; }
.t-vs { font-weight: 900; font-size: 13px; background: var(--ink); color: #fff; border-radius: 20px; padding: 2px 8px; }
.t-big { font-size: 36px; font-weight: 900; background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; padding: 2px 14px; box-shadow: 4px 4px 0 var(--ink); }
.t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.t-mini { width: 36px; height: 36px; border-radius: 8px; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.t-letters span { width: 30px !important; height: 36px !important; font-size: 17px !important; }
.ptable.mini { width: 165px; gap: 1.5px; grid-template-rows: repeat(7, auto) 4px repeat(2, auto); }
.mini .pc { border-radius: 2px; background: #fff; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.mini .pc.hl { background: var(--ink); }
.mini .pc.hl-red { background: var(--red); }
.mini .pc.dim { background: rgba(255, 255, 255, .45); box-shadow: none; }
.mini [class*="cat-"] { background: var(--cc); }
.mini .cat-am { --cc: #ff8c7a } .mini .cat-at { --cc: #ffc15e } .mini .cat-tr { --cc: #ffadc9 } .mini .cat-pt { --cc: #a8dcc0 } .mini .cat-sm { --cc: #d6e86a }
.mini .cat-nm { --cc: #7fd1ff } .mini .cat-ha { --cc: #5fe3c6 } .mini .cat-ng { --cc: #bca4ff } .mini .cat-la { --cc: #ffd9a8 } .mini .cat-ac { --cc: #f3b8f0 }

/* ---------- página do jogo ---------- */
.gp { max-width: 720px; }
.back-link { font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.round { display: flex; align-items: center; gap: 18px; margin: 10px 0 22px; position: relative; }
.round-num { font-size: 92px; font-weight: 900; color: var(--lime); line-height: .8; letter-spacing: -4px; }
.round-title {
  display: inline-block; margin: 0; border: 2.5px solid var(--ink); border-radius: 10px; padding: 2px 14px 4px;
  font-size: 24px; font-weight: 900; box-shadow: 4px 4px 0 var(--ink);
}
.round .dd-check { position: absolute; right: 0; top: -6px; transform: rotate(8deg); }
.round > div:nth-child(2) { padding-right: 56px; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tab {
  border: 2.5px solid var(--ink); border-bottom: none; border-radius: 14px 14px 0 0; padding: 11px; background: #f2f2ee;
  font-weight: 900; font-size: 17px; color: var(--muted);
}
.tab:hover { color: var(--ink); }
.tab.active { background: #fff; color: var(--ink); position: relative; z-index: 2; margin-bottom: -2.5px; padding-bottom: 13.5px; }
.panel { position: relative; border: 2.5px solid var(--ink); border-radius: 0 0 16px 16px; padding: 18px; background: #fff; box-shadow: 6px 6px 0 var(--ink); }
.og { margin-bottom: 16px; }
.og-label { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 7px; }
.og-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 9px; }
.opt {
  position: relative; border: 2.5px solid var(--ink); border-radius: 11px; padding: 10px 6px; background: #fff; min-height: 54px;
  font-weight: 800; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform .08s, box-shadow .08s, background .1s;
}
.opt small { font-size: 10px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.opt:hover { background: var(--lime-soft); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.opt.on { background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
.opt.on small { color: var(--ink); }
.opt.on::after {
  content: '✓'; position: absolute; top: -9px; right: -9px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 900;
}
.panel-btns { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 22px; }
.panel-btns .btn-y, .panel-btns .btn-w { width: 100%; max-width: 280px; padding: 13px; font-size: 16px; }

/* desafios */
.lvl { display: flex; border: 2.5px solid var(--ink); border-radius: 14px; overflow: hidden; margin-bottom: 14px; background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.lvl:last-child { margin-bottom: 0; }
.lvl-img { width: 100px; flex-shrink: 0; display: grid; place-items: center; font-size: 42px; border-right: 2.5px solid var(--ink); }
.lvl-body { flex: 1; padding: 12px 14px; min-width: 0; }
.lvl-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lvl-tag { color: #fff; font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 20px; }
.stars { color: var(--gold); font-size: 12px; }
.lvl h3 { margin: 4px 0 2px; font-size: 17px; font-weight: 900; }
.lvl p { margin: 0 0 8px; font-size: 12px; color: var(--muted); font-weight: 500; }
.lvl-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 8px; padding: 6px 0; border: 1.5px solid var(--ink); }
.lvl-stats div { text-align: center; border-left: 1.5px solid rgba(0, 0, 0, .12); }
.lvl-stats div:first-child { border-left: none; }
.lvl-stats b { display: block; font-size: 12px; font-weight: 800; }
.lvl-stats small { font-size: 9.5px; color: var(--muted); font-weight: 600; }
.lvl-go { display: flex; align-items: center; padding: 0 18px; border-left: 2.5px dashed #ddd; }
.lvl-go .btn-y { padding: 10px 22px; font-size: 14px; }
.done-badge, .best-badge { font-size: 10.5px; font-weight: 800; padding: 1px 8px; border-radius: 20px; margin-left: auto; border: 1.5px solid var(--ink); }
.done-badge { background: var(--lime); }
.best-badge { background: #fff; }

/* ---------- jogo ---------- */
.play { max-width: 720px; }
.play.wide { max-width: 1060px; }
.hud { display: flex; align-items: center; gap: 10px; }
.clock { border: 2px solid var(--ink); border-radius: 10px; padding: 2px 10px; text-align: center; min-width: 62px; }
.clock small { display: block; font-size: 8.5px; font-weight: 800; color: var(--muted); letter-spacing: .5px; }
.clock b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bars { flex: 1; min-width: 0; }
.ticks { display: flex; gap: 3px; height: 8px; }
.ticks i { flex: 1; background: #e8e8e8; border-radius: 4px; min-width: 1px; }
.ticks i.cur { background: var(--ink); }
.ticks i.ok { background: var(--lime); }
.ticks i.no { background: var(--red); }
.qbar { height: 5px; background: #eee; margin-top: 5px; border-radius: 3px; overflow: hidden; }
.qbar span { display: block; height: 100%; background: var(--ink); transition: width .1s linear; width: 100%; }
.fill-count { font-size: 13px; font-weight: 600; height: 8px; line-height: 8px; }
.fill-count b { font-weight: 900; }
.lives { font-size: 15px; display: flex; }
.lives .lost { opacity: .5; }
.hud-btn { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-size: 12px; font-weight: 900; flex-shrink: 0; }
.hud-btn:hover { background: var(--lime-soft); }

.qmeta { text-align: center; margin: 18px 0 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.ok-count { margin-left: 8px; color: var(--lime-d); font-weight: 800; }
.qhead {
  width: fit-content; max-width: 100%; margin: 10px auto 22px; text-align: center; background: #fff;
  border: 2.5px solid var(--ink); border-radius: 12px; padding: 10px 24px; font-size: clamp(16px, 2.6vw, 21px); font-weight: 800;
  box-shadow: 4px 4px 0 var(--ink); position: relative; z-index: 1;
}
.deco-l { position: absolute; left: -110px; top: 70px; transform: rotate(-10deg); }
.deco-r { position: absolute; right: -90px; top: 250px; }

.vis { display: grid; place-items: center; margin-bottom: 22px; }
.vis-wide .mapbox { width: 100%; }
.vis-wide .ptable { max-width: 580px; margin: 0 auto; }
.vis-compact { margin-bottom: 12px; }
.vis-compact .vis-name { font-size: 30px; }
.vis-compact .vis-num { font-size: 40px; display: flex; align-items: baseline; gap: 10px; }
.vis-compact .vis-num small { margin: 0; }
.vis-name { font-size: clamp(34px, 6vw, 50px); font-weight: 900; letter-spacing: -1px; }
.vis-num { font-size: 84px; font-weight: 900; line-height: 1; text-align: center; color: var(--lime); -webkit-text-stroke: 2px var(--ink); }
.vis-num small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; -webkit-text-stroke: 0; }

.tile { position: relative; border-radius: 12px; background: var(--c); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; border: 2.5px solid var(--ink); }
.tile.neutral { background: #fff; border-width: 3px; box-shadow: 5px 5px 0 var(--ink); }
.tile .tz { position: absolute; top: 7%; left: 10%; font-weight: 800; }
.tile .ts { font-weight: 900; line-height: 1; }
.tile .tn { font-weight: 700; margin-top: 4px; }
.tile-xl { width: 150px; height: 150px; } .tile-xl .ts { font-size: 64px; } .tile-xl .tz { font-size: 18px; } .tile-xl .tn { font-size: 15px; }
.tile-lg { width: 112px; height: 112px; } .tile-lg .ts { font-size: 44px; } .tile-lg .tz { font-size: 14px; } .tile-lg .tn { font-size: 12px; }
.tile-sm { width: 42px; height: 42px; border-radius: 8px; border-width: 2px; } .tile-sm .ts { font-size: 17px; } .tile-sm .tz { font-size: 8px; top: 2px; left: 4px; }
.vs { display: flex; align-items: center; gap: 18px; }
.vs > span { font-weight: 900; font-size: 18px; }

.letters { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.letters span { width: 42px; height: 52px; border-radius: 9px; border: 2.5px solid var(--ink); display: grid; place-items: center; font-size: 24px; font-weight: 900; background: #fff; }
.letters span.hole { background: var(--lime-soft); border-style: dashed; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; max-width: 580px; margin: 0 auto; }
.choice {
  position: relative; text-align: left; padding: 12px 16px; border: 2.5px solid var(--ink); border-radius: 10px; background: #fff;
  font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 10px; transition: background .1s, transform .08s;
}
.choice:hover:not(:disabled) { background: var(--lime-soft); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.choice kbd { font: 800 13px Montserrat; color: var(--ink); }
.choice kbd::after { content: '.'; }
.choice.right { background: var(--lime); }
.choice.wrong { background: var(--red); color: #fff; animation: shake .3s; }
.choice.wrong kbd { color: #fff; }
/* ✓ / ✕ do lado de fora: coluna da esquerda marca à esquerda, coluna da direita à direita */
.choice.right::after, .choice.wrong::after { position: absolute; top: 50%; transform: translateY(-50%); font-weight: 900; line-height: 1; }
.choice.right::after { content: '✓'; color: var(--lime); font-size: 26px; }
.choice.wrong::after { content: '✕'; color: var(--red); font-size: 22px; }
.choice:nth-child(odd)::after { right: calc(100% + 6px); }
.choice:nth-child(even)::after { left: calc(100% + 6px); }
.choice:disabled { cursor: default; }

.type-row, .fill-input { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
.fill-input { margin: 14px auto; }
.tin {
  flex: 1; min-width: 0; padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: 10px;
  font: 700 16px Montserrat; color: var(--ink); outline: none;
}
.tin:focus { box-shadow: 4px 4px 0 var(--lime); }
.tin.right { background: var(--lime); }
.tin.wrong { background: var(--red); color: #fff; animation: shake .3s; }
.tin.shake { animation: shake .3s; border-color: var(--red); }

.skip-row { display: flex; justify-content: center; margin-top: 18px; }
.skip-row.top { margin: 0 0 10px; justify-content: flex-end; }
.skip-btn { border: 2px solid var(--ink); background: #fff; border-radius: 30px; padding: 7px 18px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.skip-btn:hover:not(:disabled) { background: var(--lime-soft); }
.skip-btn:disabled { opacity: .4; cursor: default; }
.type-row .skip-btn { border-radius: 10px; }

/* ---------- tabela ---------- */
.ptable {
  display: grid; grid-template-columns: repeat(18, 1fr); grid-template-rows: repeat(7, auto) 10px repeat(2, auto);
  gap: 3px; width: 100%; font-size: clamp(8px, 1.3vw, 13px);
}
.pc { aspect-ratio: 1; border-radius: 5px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; overflow: hidden; }
.pc .z { position: absolute; top: 2px; left: 3px; font-size: .55em; font-weight: 700; opacity: .75; }
.pc b { font-size: 1.15em; font-weight: 900; }
.pc .n { font-size: .48em; margin-top: 2px; max-width: 94%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pc.ph { background: repeating-linear-gradient(45deg, #f4f4f4, #f4f4f4 3px, #fff 3px, #fff 6px); font-size: .55em; font-weight: 700; color: var(--muted); }
.pc.land, .pc.blank { background: var(--cell); }
.board, .mapbox { border: 2.5px solid var(--ink); border-radius: 16px; padding: 12px; overflow-x: auto; background: #fff; }
.board .ptable { min-width: 540px; }
.mapbox .pc.hl { background: var(--gold); box-shadow: 0 0 0 2.5px var(--ink); font-weight: 900; font-size: 1.2em; animation: pulse .7s infinite alternate; z-index: 1; }

.click-t .pc.blank { cursor: pointer; transition: background .1s, transform .1s; }
.click-t .pc.blank:hover { background: var(--lime-soft); box-shadow: inset 0 0 0 2px var(--ink); transform: scale(1.08); z-index: 1; }
.pc.done { background: var(--lime); }
.click-t .pc.wrong { background: #ffb3b1; color: #8a1412; }
.pc.reveal { background: var(--gold); box-shadow: 0 0 0 2.5px var(--ink); animation: pulse .4s 3 alternate; z-index: 1; }
.pc.miss { background: var(--red) !important; color: #fff; animation: shake .3s; }

.fill-t .pc.off { background: #fafafa; }
.fill-t .pc.got { background: var(--c); animation: pop .3s; }
.fill-t .pc.missing { background: #ffd3d2; color: #b3201c; }

/* ---------- popup ---------- */
.pop-wrap {
  position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(255, 255, 255, .5); cursor: pointer; animation: fade .1s;
}
.pop-wrap.pop-top { align-items: flex-start; padding-top: 80px; background: transparent; }
.pop {
  position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 20px 24px 16px;
  width: min(400px, 100%); text-align: center; box-shadow: 6px 6px 0 var(--ink);
  animation: popIn .22s cubic-bezier(.2, 1.6, .4, 1), beat .5s .22s ease-in-out infinite;
}
.pop::before { content: ''; position: absolute; inset: -3px; border-radius: 18px; border: 3px solid; pointer-events: none; animation: ring .5s ease-out infinite; }
.pop.good::before { border-color: var(--lime); }
.pop.bad::before { border-color: var(--red); }
.pop-ic {
  width: 62px; height: 62px; border-radius: 50%; margin: -52px auto 6px; display: grid; place-items: center;
  border: 3px solid var(--ink); font-size: 26px; animation: spinIn .25s cubic-bezier(.2, 1.6, .4, 1);
}
.pop.good .pop-ic { background: var(--lime); }
.pop.good .pop-ic .dd-check { color: var(--ink); width: 34px; }
.pop.bad .pop-ic { background: var(--red); }
.pop-title { font-size: 26px; font-weight: 900; }
.pop.bad .pop-title { color: var(--red); }
.pop-ans { font-size: 15px; margin-top: 2px; font-weight: 600; }
.pop-ans b { font-weight: 900; font-size: 17px; }
.facts { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 10px; text-align: left; }
.fact { display: flex; align-items: center; gap: 10px; }
.fact b { display: block; font-size: 13px; font-weight: 800; }
.fact small { font-size: 11px; color: var(--muted); font-weight: 600; }
.pop .btn-y { margin-top: 14px; }
.pop-hint { margin-top: 8px; font-size: 10.5px; color: var(--muted); font-weight: 600; }

/* ---------- resultados ---------- */
.results { max-width: 620px; }
.res-card { position: relative; text-align: center; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 26px 20px; box-shadow: 7px 7px 0 var(--ink); }
.res-card > .dd-spark { position: absolute; right: 18px; top: 14px; }
.res-card.inline { margin: 14px 0 16px; padding: 16px; box-shadow: 5px 5px 0 var(--ink); }
.res-emoji { font-size: 48px; animation: pop .4s; }
.res-card h1 { margin: 4px 0 2px; font-size: 30px; font-weight: 900; }
.res-card p { margin: 0; color: var(--muted); font-weight: 600; font-size: 14px; }
.res-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 440px; margin: 18px auto; }
.res-stats div { border: 2px solid var(--ink); background: var(--lime-soft); border-radius: 12px; padding: 8px 4px; }
.res-stats b { display: block; font-size: 21px; font-weight: 900; }
.res-stats small { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.res-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hint { font-size: 13px; margin-bottom: 14px !important; }
.r { color: var(--red); font-weight: 800; }
.g { color: var(--lime-d); }
.rv-title { margin: 28px 0 10px; font-weight: 900; }
.review { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rv { display: flex; gap: 10px; align-items: center; border: 2px solid var(--ink); border-radius: 10px; padding: 8px; }
.rv b { font-size: 13px; }
.rv small { display: block; font-size: 11px; color: var(--muted); }

/* ---------- estudar ---------- */
.learn-page { width: min(1100px, 100% - 32px); margin: 0 auto; padding: 16px 0 40px; }
.page-title { font-size: clamp(26px, 4.5vw, 38px); font-weight: 900; margin: 6px 0 2px; letter-spacing: -1px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.chip { border: 1.5px solid var(--ink); background: var(--c); border-radius: 20px; padding: 4px 11px; font-size: 11.5px; font-weight: 700; }
.chip.on { box-shadow: 2px 2px 0 var(--ink); transform: translate(-1px, -1px); }
.detail { display: flex; align-items: center; gap: 18px; border: 2.5px solid var(--ink); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.d-info h2 { margin: 0 0 8px; font-size: 26px; font-weight: 900; }
.d-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.d-tags span { border: 1.5px solid var(--ink); border-radius: 8px; padding: 3px 9px; font-size: 12px; color: #555; font-weight: 600; }
.d-tags b { color: var(--ink); }
.learn .ptable { min-width: 760px; font-size: clamp(10px, 1.3vw, 14px); }
.learn-t .pc.cat { background: var(--c); cursor: pointer; transition: transform .1s, opacity .2s; }
.learn-t .pc.cat:hover { transform: scale(1.1); z-index: 2; box-shadow: 0 0 0 2px var(--ink); }
.learn-t .pc.sel { box-shadow: 0 0 0 2.5px var(--ink); z-index: 1; }
.learn-t .pc.faded { opacity: .15; }

/* ---------- overlay / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(255, 255, 255, .7); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .12s; }
.ov-card { background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 7px 7px 0 var(--ink); padding: 24px; width: 290px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ov-card h2 { margin: 0 0 4px; font-weight: 900; }
.ov-emoji { font-size: 36px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 30px; font-size: 14px; font-weight: 700; z-index: 60; }

@keyframes shake { 0%, 100% { transform: translateX(0) } 25% { transform: translateX(-5px) } 75% { transform: translateX(5px) } }
@keyframes pulse { from { transform: scale(1) } to { transform: scale(1.18) } }
@keyframes pop { 0% { transform: scale(.4) } 70% { transform: scale(1.12) } 100% { transform: scale(1) } }
@keyframes fade { from { opacity: 0 } }
@keyframes popIn { 0% { transform: scale(.3); opacity: 0 } 100% { transform: scale(1); opacity: 1 } }
@keyframes beat { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.04) } }
@keyframes ring { 0% { transform: scale(1); opacity: .8 } 100% { transform: scale(1.15); opacity: 0 } }
@keyframes spinIn { 0% { transform: scale(0) rotate(-180deg) } 100% { transform: scale(1) rotate(0) } }

/* ---------- responsivo ---------- */
@media (max-width: 1000px) { .deco-l, .deco-r { display: none; } }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .home > .dd-grid { display: none; }
  .dd-q { width: 56px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .thumb { height: 92px; }
  .ptable.mini { width: 130px; }
  .og-row { grid-template-columns: 1fr; gap: 0; }
  .lvl { flex-wrap: wrap; }
  .lvl-img { width: 72px; font-size: 30px; }
  .lvl-go { width: 100%; border-left: none; border-top: 2.5px dashed #ddd; padding: 10px; justify-content: center; }
  .lvl-go .btn-y { width: 100%; }
}
@media (max-width: 560px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 13px; }
  .logo-box { font-size: 15px; padding: 2px 8px; }
  .title-box { padding: 2px 20px 8px; }
  .round-num { font-size: 60px; }
  .round-title { font-size: 19px; }
  .round .dd-check { display: none; }
  .round > div:nth-child(2) { padding-right: 0; }
  .tab { font-size: 15px; }
  .choices { grid-template-columns: 1fr; padding: 0 22px; }
  .choice:nth-child(even)::after { left: auto; right: calc(100% + 6px); }
  .review { grid-template-columns: 1fr; }
  .tile-xl { width: 120px; height: 120px; } .tile-xl .ts { font-size: 50px; }
  .tile-lg { width: 90px; height: 90px; } .tile-lg .ts { font-size: 36px; }
  .vis-num { font-size: 64px; }
  .letters span { width: 30px; height: 40px; font-size: 18px; }
  .hud { gap: 6px; }
  .hud-btn { width: 34px; height: 34px; }
  .detail { flex-direction: column; text-align: center; }
  .d-tags { justify-content: center; }
  .pop-wrap.pop-top { padding-top: 70px; }
}

/* cursor normal em textos; só campos de digitação mostram o cursor de texto */
body { cursor: default; }
h1, h2, h3, p, small, b, span, .kicker, .title-box, .round-num, .round-title, .lead, .qhead, .vis, .tile, .letters, .pc, .gcard, .thumb {
  user-select: none; -webkit-user-select: none;
}
a, button, .gcard, .opt, .choice, .tab, .chip, .click-t .pc.blank, .learn-t .pc.cat { cursor: pointer; }
input, textarea { cursor: text; user-select: text; -webkit-user-select: text; }



/* rodapé */
.foot { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 18px 16px 22px; }
