*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fafbf7;color:#254640;font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif}.shell{max-width:1120px;margin:auto;padding:22px 18px 55px}.top{text-align:center}.brand{font-family:Georgia,serif;font-weight:700;letter-spacing:.12em;color:#2b7975}.brand span{display:block;font:600 11px system-ui;letter-spacing:.24em}.eyebrow{font-size:12px;font-weight:750;letter-spacing:.19em;color:#a37648;margin:24px 0 8px}h1{font:normal clamp(30px,5vw,52px) Georgia,serif;color:#246c73;margin:0}h2{font:normal 29px Georgia,serif;margin:0 0 8px}.lead{line-height:1.6;max-width:670px;margin:12px auto 25px}.levels,.controls,.chips{display:flex;flex-wrap:wrap;gap:10px}.levels{justify-content:center;margin:15px 0 24px}button{font:650 15px system-ui;cursor:pointer;border:1px solid #2b7975;border-radius:999px;background:#2b7975;color:#fff;padding:12px 20px;min-height:44px}button:hover{filter:brightness(1.09)}button:focus-visible,.target:focus-visible{outline:3px solid #ec9f27;outline-offset:3px}.levels button{background:#eef7f3;color:#23666d}.levels button.active{background:#2b7975;color:white}.game{padding:24px;background:white;border:1px solid #e2eae5;border-radius:28px;box-shadow:0 10px 35px #25464012}.status{display:flex;align-items:center;justify-content:space-between;gap:15px}.status p{margin:4px 0 15px}#score{background:#edf5ed;border-radius:30px;padding:9px 15px;white-space:nowrap;font-weight:750}.art-wrap{position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:16px;background:#fff;isolation:isolate;touch-action:manipulation}.scene{display:block;width:100%;height:100%;object-fit:fill;user-select:none;pointer-events:none}.targets,.reveals{position:absolute;inset:0}.reveals{pointer-events:none}.reveal{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.target{position:absolute;background:transparent;border:0;border-radius:50%;transform:translate(-50%,-50%);padding:0;min-height:0;transition:box-shadow .15s;z-index:4}.target:hover:not(.done),.target:focus-visible:not(.done){box-shadow:inset 0 0 0 2px #ffffffb0;background:#fff1}.target.done{pointer-events:none}.target.hint{animation:glow 1.1s ease-in-out infinite alternate}@keyframes glow{from{box-shadow:0 0 0 2px #ffd47966}to{box-shadow:0 0 0 7px #ffd479bb}}.feedback{min-height:42px;line-height:1.5;font-weight:600;color:#35766f;margin:18px 0 6px}.controls{margin-top:12px}.secondary{background:#fff;color:#23666d}.found{margin-top:24px}.found h3{font:normal 23px Georgia,serif;margin:0 0 12px}.chip{border-radius:100px;padding:8px 12px;background:#eef4f2;color:#375e57;font-size:13px}.chip.active{background:#dff4e1;color:#24643a}footer{text-align:center;font-size:13px;color:#697e75;margin-top:30px}.win{position:fixed;inset:0;z-index:40;background:#14332bb0;display:grid;place-items:center;padding:20px}.hidden{display:none}.win-card{text-align:center;background:#fffefa;border-radius:26px;max-width:540px;padding:34px;box-shadow:0 16px 60px #0002}.win-card p{line-height:1.65}.medal{margin:auto;background:#efdba4;color:#8a641b;border-radius:50%;height:84px;width:84px;display:grid;place-items:center;font-size:55px;box-shadow:inset 0 0 0 6px #fff4}.center{justify-content:center}@media(max-width:600px){.shell{padding:15px 8px 34px}.game{padding:12px;border-radius:18px}.status{align-items:flex-start}.status h2{font-size:23px}.status p{font-size:13px}.top .lead{font-size:14px}.levels button{font-size:13px;padding:10px 13px}.art-wrap{border-radius:5px}.feedback{font-size:14px}.controls button{flex:1}#score{font-size:12px;padding:8px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.target.done,.target.done:disabled{opacity:1!important;visibility:visible!important;display:block!important;pointer-events:none!important;background:transparent!important;z-index:99!important;}

.viva-voltar{text-align:center;margin:12px 0}.viva-voltar a{color:#0B4A6B;text-decoration:underline;text-underline-offset:3px}

/* Apenas organizacao visual: imagem primeiro e informacoes depois. */
.shell-game{padding-top:4px;max-width:1260px}
.shell-game .game{padding:8px 18px 26px;box-shadow:none;border:0;background:transparent}
.shell-game .art-wrap{margin:0 auto 22px;max-width:1120px}
.shell-game .below-scene{max-width:1120px;margin:0 auto;padding:0 12px}
.shell-game .below-scene h1{font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(29px,4vw,43px);color:#0B4A6B;margin:14px 0 8px;text-align:center}
.shell-game .game-instructions{font-family:"Crimson Pro",Georgia,serif;color:#385765;font-size:clamp(18px,2.2vw,23px);line-height:1.45;text-align:center;margin:0 auto 20px;max-width:720px}
.shell-game .levels{margin:14px 0 20px}
.shell-game .viva-voltar{margin-top:28px;text-align:center}
.shell-game .viva-voltar a{font-family:Montserrat,Arial,sans-serif;font-size:13px;color:#0B4A6B;text-decoration:none}
@media(max-width:600px){.shell-game{padding:2px 0 25px}.shell-game .game{padding:2px 4px 18px}.shell-game .below-scene{padding:0 12px}.shell-game .art-wrap{border-radius:0;margin-bottom:14px}}

/* Ajuste exclusivo para telas de computador: a imagem e as instruções
   cabem melhor na janela, sem alterar proporção ou coordenadas do jogo. */
@media (min-width: 761px) {
  .shell-game .art-wrap {
    width: 100%;
    max-width: clamp(470px, calc((100vh - 240px) * 4 / 3), 830px);
    margin: 0 auto 12px;
  }
  .shell-game .game { padding-top: 2px; }
  .shell-game .below-scene h1 { margin-top: 5px; margin-bottom: 4px; }
  .shell-game .game-instructions { margin-bottom: 12px; }
}

/* LAYOUT LATERAL DO JOGO — computador. O cabeçalho universal mantém seu visual. */
@media (min-width: 1000px) {
 .shell-game { max-width: 1440px; width: 100%; padding: 6px 14px 8px; }
 .shell-game .game {
   display: grid;
   grid-template-columns: minmax(0, 1fr) minmax(310px, 350px);
   align-items: start;
   gap: 18px;
   padding: 0;
   background: transparent;
   border: 0;
   box-shadow: none;
 }
 .shell-game .art-wrap {
   width: min(100%, calc((100dvh - 122px) * 4 / 3));
   max-width: none;
   margin: 0 auto;
   border-radius: 12px;
 }
 .shell-game .below-scene {
   min-width: 0; width: 100%; max-width: none;
   margin: 0;
   padding: 10px 14px 12px;
   border-radius: 15px;
   background: #fff;
   border: 1px solid #e2eae5;
   display: flex; flex-direction: column; gap: 7px;
 }
 .shell-game .below-scene h1 {
   margin: 0; text-align: left;
   font-size: clamp(25px, 2.4vw, 33px); line-height: 1.05;
 }
 .shell-game .game-instructions {
   margin: 0; text-align: left; font-size: 17px; line-height: 1.25;
 }
 .shell-game .levels {
   margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px;
 }
 .shell-game .levels button {font-size:12px; padding:7px 5px; min-height:36px; line-height:1.15;}
 .shell-game .status {display:flex; flex-direction:column; align-items:stretch; gap:2px;}
 .shell-game .status h2 {font-size:21px; margin:0;}
 .shell-game .status p {margin: 1px 0 2px; font-size:13px;}
 .shell-game #score {padding:5px 9px; align-self:flex-start; font-size:13px;}
 .shell-game .feedback {font-size:13px; font-weight:600; min-height:0; line-height:1.25; margin:0;}
 .shell-game .controls {display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0;}
 .shell-game .controls button {font-size:12px;min-height:37px;padding:7px 6px;}
 .shell-game .found {margin:0;}
 .shell-game .found h3 {font-size:18px;margin:0 0 6px;}
 .shell-game .chips {gap:4px;}
 .shell-game .chip {font-size:11px;padding:4px 7px;}
 .shell-game .viva-voltar {margin:2px 0 0; text-align:left;}
 .shell-game .viva-voltar a {font-size:12px;}
}
/* Nos monitores baixos, manter as opções compactas sem ocultar o texto. */
@media (min-width:1000px) and (max-height:720px) {
 .shell-game .below-scene {gap:4px;padding:7px 10px;}
 .shell-game .below-scene h1 {font-size:25px;}
 .shell-game .game-instructions {font-size:15px;}
 .shell-game .chip {font-size:10px;padding:3px 5px;}
 .shell-game .levels button {min-height:32px;}
}
