
:root{
  --dark:#759239;--light:#BEE081;--ink:#26321e;--cream:#fffaf0;
  --white:#fff;--soft:#eef4df;--yellow:#f3c95e;--coral:#e98068;
  --shadow:0 18px 52px rgba(74,96,36,.16)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
button,a{font:inherit}
button:focus-visible,a:focus-visible{outline:4px solid var(--yellow);outline-offset:3px}
.hero{position:relative;overflow:hidden;background:linear-gradient(145deg,var(--dark),#60782f);color:#fff;padding:56px 22px 48px;border-radius:0 0 40px 40px}
.hero-inner{max-width:800px;margin:auto;position:relative;z-index:2}
.kicker{margin:0 0 10px;text-transform:uppercase;letter-spacing:.17em;font-size:.72rem;font-weight:900;opacity:.8}
.kicker.green{color:var(--dark)}.kicker.light{color:var(--light)}
h1{font-size:clamp(3rem,12vw,6rem);letter-spacing:-.065em;line-height:.86;margin:0;max-width:650px}
h1 span{color:var(--light)}
.lead{max-width:590px;font-size:1.08rem;line-height:1.55;color:rgba(255,255,255,.9);margin:24px 0 0}
.hero-actions,.actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:25px}
.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;padding:13px 19px;font-weight:850;text-decoration:none;cursor:pointer}
.primary{background:var(--light);color:#354617;box-shadow:0 10px 25px rgba(0,0,0,.15)}
.ghost{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.35);color:#fff}
.pale{background:#fff;color:var(--dark);border:1px solid rgba(117,146,57,.25)}
.shapes i{position:absolute;display:block;border-radius:43% 57% 60% 40%}
.shapes i:nth-child(1){width:190px;height:190px;background:var(--light);right:-55px;top:-45px;opacity:.28;transform:rotate(24deg)}
.shapes i:nth-child(2){width:105px;height:105px;background:var(--yellow);right:90px;bottom:-45px;opacity:.9}
.shapes i:nth-child(3){width:75px;height:75px;background:var(--coral);right:30%;top:30px;opacity:.85}
main{width:min(100%,880px);margin:auto;padding:28px 20px 48px}
.mode-panel{display:grid;grid-template-columns:1fr 1.2fr;gap:25px;align-items:end;margin-bottom:18px}
h2{font-size:clamp(1.7rem,6vw,2.65rem);letter-spacing:-.045em;line-height:1;margin:0}
.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mode{border:2px solid transparent;border-radius:20px;padding:16px;background:#fff;color:var(--ink);text-align:left;cursor:pointer;box-shadow:0 8px 22px rgba(74,96,36,.09)}
.mode strong,.mode span{display:block}.mode span{font-size:.78rem;color:#667355;margin-top:5px;line-height:1.3}
.mode.active{border-color:var(--dark);background:var(--soft)}
.progress-card{display:grid;grid-template-columns:190px 1fr;gap:18px;align-items:center;background:#fff;padding:16px 18px;border-radius:20px;box-shadow:var(--shadow)}
.progress-card small,.progress-card strong{display:block}.progress-card small{color:#748064;font-weight:750}.track{height:11px;background:#e4ead8;border-radius:999px;overflow:hidden}.track span{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--dark),var(--light));transition:width .25s}
.board-section{margin-top:32px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:15px}
.text-button{border:0;background:#fff;color:var(--dark);border-radius:999px;padding:10px 15px;font-weight:850;cursor:pointer}
.board{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.cell{position:relative;aspect-ratio:3/4;padding:0;border:0;border-radius:14px;overflow:hidden;background:#dce7c8;box-shadow:0 6px 18px rgba(60,78,30,.16);cursor:pointer}
.cell img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .2s,filter .2s}
.cell:hover img{transform:scale(1.035)}
.cell::after{content:"";position:absolute;inset:0;border:3px solid transparent;border-radius:inherit;transition:.2s}
.cell.marked::after{background:rgba(70,88,33,.42);border-color:var(--light)}
.tick{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%) scale(.5);opacity:0;width:44%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:var(--light);color:#39491c;font-size:clamp(1.2rem,5vw,2.1rem);font-weight:900;transition:.2s;box-shadow:0 8px 20px rgba(0,0,0,.2)}
.cell.marked .tick{opacity:1;transform:translate(-50%,-50%) scale(1)}
.clue-label{position:absolute;z-index:2;left:7px;bottom:7px;background:rgba(255,255,255,.92);color:var(--dark);font-size:.65rem;font-weight:900;border-radius:999px;padding:5px 7px}
.win{display:none;background:#fff0bd;border:1px solid #ebca55;border-radius:17px;padding:13px 15px;margin-bottom:13px}.win.show{display:block}
.actions{justify-content:center}.actions .primary{background:var(--dark);color:#fff}.helper{text-align:center;color:#738063;font-size:.84rem}
.map-section{margin-top:45px;background:linear-gradient(145deg,#60782f,var(--dark));padding:24px;border-radius:28px;color:#fff;box-shadow:var(--shadow)}
.map-head{align-items:center}.map-frame{border-radius:18px;overflow:hidden;background:#fff;min-height:420px}.map-frame iframe{display:block;width:100%;height:480px;border:0}.map-note{margin:12px 2px 0;color:rgba(255,255,255,.76);font-size:.8rem}
footer{text-align:center;padding:28px;color:#758064;display:flex;flex-direction:column;gap:4px;font-size:.84rem}
footer strong{color:var(--dark)}
dialog{width:min(calc(100% - 28px),560px);border:0;border-radius:25px;padding:0;overflow:hidden;box-shadow:0 35px 100px rgba(0,0,0,.3)}
dialog::backdrop{background:rgba(29,39,17,.72);backdrop-filter:blur(4px)}
dialog img{width:100%;max-height:58vh;object-fit:cover;display:block}.dialog-copy{padding:24px}.dialog-copy h2{margin-bottom:10px}.dialog-close{position:absolute;right:12px;top:12px;width:42px;height:42px;border:0;border-radius:50%;font-size:1.7rem;background:rgba(255,255,255,.93);color:var(--dark);cursor:pointer}
@media(max-width:650px){.mode-panel{grid-template-columns:1fr}.progress-card{grid-template-columns:1fr}.map-head{align-items:flex-start;flex-direction:column}.map-frame,.map-frame iframe{height:390px;min-height:390px}}
@media(max-width:450px){.hero{padding-top:42px}.board{gap:6px}.cell{border-radius:10px}.mode-switch{grid-template-columns:1fr}.actions .button{flex:1}.map-section{padding:17px}}
@media print{.hero,.mode-panel,.progress-card,.actions,.helper,.map-section,footer,.text-button,.win{display:none!important}main{padding:0}.board-section{margin:0}.board{width:540px;gap:5px}.cell{box-shadow:none;border:1px solid #ccc}.tick,.clue-label{display:none!important}}


.mode-panel,
.mode-switch {
  display: none !important;
}

.map-card-safe {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px;
  padding: 22px;
}

.map-card-copy h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.map-card-copy p {
  margin: 0 0 17px;
  line-height: 1.5;
  color: rgba(255,255,255,.84);
}

.map-illustration {
  height: 145px;
  border-radius: 18px;
  position: relative;
  background:
    linear-gradient(35deg, transparent 46%, rgba(255,255,255,.18) 47%, rgba(255,255,255,.18) 52%, transparent 53%),
    linear-gradient(-30deg, transparent 46%, rgba(190,224,129,.38) 47%, rgba(190,224,129,.38) 52%, transparent 53%),
    rgba(255,255,255,.08);
}

.map-illustration span {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  background: #BEE081;
  border: 5px solid white;
  transform: rotate(-45deg);
  box-shadow: 0 6px 14px rgba(0,0,0,.2);
}

.map-illustration span:nth-child(1) { left: 25px; top: 24px; }
.map-illustration span:nth-child(2) { right: 27px; top: 48px; }
.map-illustration span:nth-child(3) { left: 76px; bottom: 19px; }

@media (max-width: 650px) {
  .map-card-safe {
    grid-template-columns: 1fr;
  }

  .map-illustration {
    height: 110px;
  }
}
