
/* Inter Sweet & Snack — Sweet Adventure V4 — 2026-10-03 */
:root{
  --adv-green:#506B3A;
  --adv-green-dark:#3F562E;
  --adv-green-light:#DDE6D8;
  --adv-cream:#FFF9EC;
  --adv-gold:#F1C84A;
  --adv-orange:#F38A3E;
  --adv-red:#D73A35;
  --adv-ink:#25301F;
  --adv-soft:#F5F8F2;
}

/* ------------------------------------------------------------
   Global Sweet Adventure HUD
   ------------------------------------------------------------ */
.iss-adventure-hud{
  border-bottom:1px solid #dce5d6;
  background:
    radial-gradient(circle at 10% 50%,rgba(241,200,74,.16),transparent 20%),
    linear-gradient(90deg,#f9fbf7,#eef5e9,#f9fbf7);
}
.iss-adventure-hud-inner{
  width:min(1180px,calc(100% - 28px));
  margin:auto;
  min-height:68px;
  display:grid;
  grid-template-columns:auto minmax(220px,1fr) auto;
  gap:20px;
  align-items:center;
}
.iss-adventure-title{
  display:flex;
  align-items:center;
  gap:9px;
  text-decoration:none;
  color:var(--adv-ink);
}
.iss-adventure-compass{
  width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;
  color:#fff;
  background:linear-gradient(135deg,var(--adv-green),#789562);
  box-shadow:0 8px 18px rgba(63,86,46,.15);
}
.iss-adventure-title span:last-child{display:grid;gap:2px}
.iss-adventure-title b{font-size:10px;letter-spacing:.09em}
.iss-adventure-title small{font-size:9px;color:#687461}
.iss-adventure-meter-block{display:grid;gap:6px}
.iss-adventure-meter-label{
  display:flex;justify-content:space-between;gap:15px;align-items:center;
  font-size:9px;color:#677160;
}
.iss-adventure-meter-label strong{font-size:10px;color:#38442f}
.iss-adventure-meter{
  position:relative;
  height:9px;
  border-radius:999px;
  background:#dfe8da;
  overflow:visible;
}
.iss-adventure-meter-fill{
  position:absolute;left:0;top:0;height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#7ea366,var(--adv-green),var(--adv-gold));
  transition:width .9s cubic-bezier(.2,.8,.2,1);
}
.iss-adventure-marker{
  position:absolute;top:50%;
  transform:translate(-50%,-50%);
  width:28px;height:28px;border-radius:50%;
  display:grid;place-items:center;
  background:#fff;border:2px solid #bacaaf;
  color:#506B3A;
  font-style:normal;font-size:8px;font-weight:900;
  box-shadow:0 4px 10px rgba(63,86,46,.08);
}
.iss-adventure-marker.m30{left:60%}
.iss-adventure-marker.m50{left:100%}
.iss-adventure-hud-actions{display:flex;gap:7px}
.iss-adventure-hud-actions a{
  min-height:34px;padding:0 10px;
  display:flex;align-items:center;justify-content:center;
  border-radius:999px;text-decoration:none;
  font-size:9px;font-weight:900;
}
.iss-adventure-explore{background:#fff;color:#506B3A;border:1px solid #cdd8c7}
.iss-adventure-reward{background:#506B3A;color:#fff}

/* ------------------------------------------------------------
   Adventure hero
   ------------------------------------------------------------ */
.iss-adventure-hero{
  background:
    radial-gradient(circle at 77% 25%,rgba(255,255,255,.92),transparent 16%),
    radial-gradient(circle at 94% 78%,rgba(221,230,216,.7),transparent 24%),
    linear-gradient(105deg,#fff8ec,#fffdf9 48%,#edf5e8);
}
.iss-adventure-hero-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.iss-surprise-me{
  margin-top:14px;
  min-height:48px;padding:0 18px;
  border:1px solid #cbd8c5;background:#fff;
  color:#506B3A;border-radius:4px;
  cursor:pointer;font-size:11px;font-weight:900;
}
.iss-surprise-me:hover{background:#f1f6ee}
.iss-adventure-hero-stats{
  display:flex;gap:8px;flex-wrap:wrap;margin-top:19px;
}
.iss-adventure-hero-stats>div{
  min-width:112px;
  padding:10px 12px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(80,107,58,.12);
}
.iss-adventure-hero-stats strong{
  display:block;font-family:Georgia,serif;font-size:20px;color:#506B3A
}
.iss-adventure-hero-stats span{font-size:8px;color:#667060;text-transform:uppercase;letter-spacing:.04em}
.iss-adventure-hero-visual{overflow:visible}
.iss-adventure-map-badge{
  position:absolute;right:5%;bottom:9%;
  z-index:5;
  padding:12px 14px;border-radius:16px;
  background:rgba(255,255,255,.92);
  border:1px solid #d9e2d3;
  box-shadow:0 14px 28px rgba(63,86,46,.12);
  display:grid;grid-template-columns:30px 1fr;gap:2px 9px;
}
.iss-adventure-map-badge>span{
  grid-row:1/3;width:30px;height:30px;border-radius:50%;
  display:grid;place-items:center;background:#506B3A;color:#fff;
}
.iss-adventure-map-badge b{font-size:10px;color:#34402d}
.iss-adventure-map-badge small{font-size:8px;color:#75806d}
.iss-adventure-orbit{
  position:absolute;z-index:6;
  width:42px;height:42px;border-radius:50%;
  display:grid;place-items:center;
  background:#fff;
  box-shadow:0 12px 24px rgba(63,86,46,.13);
  animation:issOrbitFloat 4s ease-in-out infinite;
}
.iss-adventure-orbit.orbit-a{left:9%;top:18%}
.iss-adventure-orbit.orbit-b{right:8%;top:16%;animation-delay:.6s}
.iss-adventure-orbit.orbit-c{left:14%;bottom:16%;animation-delay:1.2s}
.iss-adventure-orbit.orbit-d{right:18%;bottom:18%;animation-delay:1.8s}
@keyframes issOrbitFloat{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-9px) rotate(4deg)}}

/* ------------------------------------------------------------
   Sweet Adventure map
   ------------------------------------------------------------ */
.iss-sweet-adventure{
  margin-top:22px;
  padding:28px;
  background:
    radial-gradient(circle at 90% 10%,rgba(241,200,74,.15),transparent 22%),
    linear-gradient(145deg,#f9fbf7,#eef5e9);
  border:1px solid #d7e2d2;
}
.iss-adventure-heading{
  display:flex;justify-content:space-between;align-items:start;gap:22px;margin-bottom:18px
}
.iss-adventure-heading.compact{align-items:end}
.iss-adventure-heading h2{
  margin:5px 0 6px;
  font-family:Georgia,serif;font-weight:400;
  font-size:clamp(30px,4vw,44px);color:#28341f
}
.iss-adventure-heading p{margin:0;max-width:650px;color:#667060;font-size:12px;line-height:1.55}
.iss-sweet-passport{
  min-width:230px;padding:12px 14px;background:#fff;border:1px solid #d7e0d1
}
.iss-passport-title{display:block;font-size:8px;font-weight:950;letter-spacing:.13em;color:#506B3A}
.iss-passport-stamps{display:flex;gap:7px;margin:8px 0}
.iss-passport-stamps i{
  width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;
  border:2px dashed #becbb7;color:#8a9583;
  font-style:normal;font-size:10px;font-weight:900;
}
.iss-passport-stamps i.is-stamped{
  border-style:solid;border-color:#506B3A;background:#506B3A;color:#fff;
  box-shadow:0 5px 12px rgba(63,86,46,.13)
}
.iss-sweet-passport small{font-size:8px;color:#778071}
.iss-world-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:12px
}
.iss-world-card{
  position:relative;min-height:195px;
  display:grid;grid-template-columns:118px 1fr;
  overflow:hidden;text-decoration:none;
  background:#fff;border:1px solid #dce5d7;
  color:#263120;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.iss-world-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 30px rgba(63,86,46,.10);
  border-color:#adc19f;
}
.iss-world-number{
  position:absolute;left:10px;top:10px;z-index:3;
  width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.9);box-shadow:0 4px 10px rgba(0,0,0,.08)
}
.iss-world-image{
  display:grid;place-items:center;background:#f5f7f1;overflow:hidden
}
.iss-world-image img{width:92%;height:92%;object-fit:contain}
.iss-world-copy{padding:15px 13px;align-self:center}
.iss-world-copy>span{font-size:7px;font-weight:950;letter-spacing:.12em;color:#7a8d6b}
.iss-world-copy h3{margin:5px 0;font-family:Georgia,serif;font-size:20px;font-weight:400;color:#34402d}
.iss-world-copy p{margin:0 0 8px;font-size:9px;line-height:1.45;color:#697264}
.iss-world-copy b{font-size:9px;color:#506B3A}
.iss-adventure-trail{
  margin-top:16px;padding:14px;
  display:flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.78);border:1px solid #dce4d7;
}
.iss-adventure-trail>i{flex:1;height:2px;background:#d9e1d5}
.iss-trail-stop{display:flex;align-items:center;gap:8px;min-width:130px;opacity:.48}
.iss-trail-stop.is-active{opacity:1}
.iss-trail-stop>span{
  width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
  background:#e6ece2;color:#61705a;font-size:10px;font-weight:900
}
.iss-trail-stop.is-active>span{background:#506B3A;color:#fff}
.iss-trail-stop div{display:grid}
.iss-trail-stop strong{font-size:9px;color:#38432f}
.iss-trail-stop small{font-size:7px;color:#75806e}

/* ------------------------------------------------------------
   Mystery gates
   ------------------------------------------------------------ */
.iss-mystery-gates{
  margin-top:18px;padding:25px;
  background:linear-gradient(135deg,#fff7e8,#f8f2df);
  border:1px solid #ead9a6;
}
.iss-gates-reset{
  min-height:34px;padding:0 11px;border:1px solid #d6c48c;background:#fff9e9;
  color:#7e661f;font-size:9px;font-weight:900;cursor:pointer
}
.iss-gates-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.iss-mystery-gate{
  position:relative;height:170px;border:0;padding:0;cursor:pointer;
  perspective:900px;background:transparent
}
.iss-gate-front,.iss-gate-back{
  position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  backface-visibility:hidden;
  transition:transform .55s cubic-bezier(.2,.75,.2,1);
  border:1px solid #e3cf91;
}
.iss-gate-front{
  background:
    radial-gradient(circle at 50% 25%,rgba(255,255,255,.8),transparent 30%),
    linear-gradient(145deg,#f9d75d,#ca8816);
  color:#7b4b00;
}
.iss-gate-front b{font-family:Georgia,serif;font-size:58px;color:#fff;text-shadow:0 3px 8px rgba(91,53,0,.2)}
.iss-gate-front small{font-size:8px;font-weight:950;letter-spacing:.13em}
.iss-gate-back{
  transform:rotateY(180deg);
  background:#fff;color:#39452f;
}
.iss-gate-back b{font-family:Georgia,serif;font-size:20px;font-weight:400}
.iss-gate-back small{margin:6px 0 12px;color:#75806e;font-size:9px}
.iss-gate-back em{font-style:normal;color:#506B3A;font-size:9px;font-weight:900}
.iss-mystery-gate.is-open .iss-gate-front{transform:rotateY(180deg)}
.iss-mystery-gate.is-open .iss-gate-back{transform:rotateY(0)}

/* ------------------------------------------------------------
   Shop explorer
   ------------------------------------------------------------ */
.iss-shop-adventure{
  padding:18px 20px;
  background:linear-gradient(135deg,#f7faf5,#edf4e9);
  border:1px solid #d9e3d4;
}
.iss-shop-adventure-copy h2{
  margin:4px 0 4px;font-family:Georgia,serif;font-size:27px;font-weight:400;color:#2d3926
}
.iss-shop-adventure-copy p{margin:0;color:#6a7464;font-size:10px}
.iss-shop-worlds{
  margin-top:12px;display:flex;gap:7px;overflow-x:auto;padding-bottom:3px;scrollbar-width:none
}
.iss-shop-worlds::-webkit-scrollbar{display:none}
.iss-shop-worlds a,.iss-shop-surprise{
  flex:0 0 auto;min-height:39px;padding:0 12px;
  display:flex;align-items:center;gap:6px;
  border:1px solid #ccd8c7;background:#fff;color:#43523a;
  text-decoration:none;font-size:9px;cursor:pointer
}
.iss-shop-worlds a:hover{border-color:#506B3A}
.iss-shop-surprise{background:#506B3A;color:#fff;border-color:#506B3A;font-weight:900}

/* ------------------------------------------------------------
   Toast
   ------------------------------------------------------------ */
.iss-adventure-toast{
  position:fixed;left:50%;bottom:22px;z-index:1600;
  transform:translate(-50%,16px);
  min-width:min(88vw,360px);
  padding:10px 13px;
  display:flex;align-items:center;gap:9px;
  border-radius:14px;background:#25331f;color:#fff;
  box-shadow:0 18px 38px rgba(23,33,19,.27);
  opacity:0;transition:opacity .18s ease,transform .18s ease
}
.iss-adventure-toast.is-showing{opacity:1;transform:translate(-50%,0)}
.iss-adventure-toast>span{
  width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#506B3A
}
.iss-adventure-toast div{display:grid}
.iss-adventure-toast strong{font-size:10px}
.iss-adventure-toast small{font-size:8px;color:#dae5d4}

/* Make existing content feel like chapters */
.jow-section-title>div{display:grid}
.iss-adventure-benefits b{font-size:22px}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media(max-width:900px){
  .iss-adventure-hud-inner{grid-template-columns:auto 1fr}
  .iss-adventure-hud-actions{grid-column:1/-1;justify-content:center;padding-bottom:8px}
  .iss-world-grid{grid-template-columns:1fr 1fr}
  .iss-adventure-trail{overflow-x:auto}
  .iss-adventure-trail>i{min-width:35px}
  .iss-trail-stop{min-width:125px}
}
@media(max-width:650px){
  .iss-adventure-hud-inner{width:calc(100% - 20px);grid-template-columns:1fr;gap:7px;padding:8px 0}
  .iss-adventure-title{justify-content:center}
  .iss-adventure-meter-label{font-size:8px}
  .iss-adventure-meter-label strong{font-size:9px}
  .iss-adventure-hud-actions{padding-bottom:0}
  .iss-adventure-hud-actions a{flex:1}
  .iss-adventure-hero-stats>div{flex:1 1 90px}
  .iss-adventure-map-badge{right:3%;bottom:4%}
  .iss-sweet-adventure,.iss-mystery-gates{padding:17px}
  .iss-adventure-heading{display:grid}
  .iss-sweet-passport{min-width:0}
  .iss-world-grid{grid-template-columns:1fr}
  .iss-world-card{grid-template-columns:100px 1fr;min-height:160px}
  .iss-gates-grid{grid-template-columns:1fr}
  .iss-mystery-gate{height:140px}
  .iss-adventure-trail{padding:10px}
}
@media(prefers-reduced-motion:reduce){
  .iss-adventure-orbit{animation:none!important}
  .iss-gate-front,.iss-gate-back,.iss-adventure-meter-fill{transition:none!important}
}
