:root {
  --pink: #ff6ad5;
  --mint: #5cffc5;
  --sun: #ffe56a;
  --sky: #6ad6ff;
  --orange: #ff8a3d;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: Fredoka, Outfit, sans-serif;
  background: #7ee7ff;
  color: #2b1840;
  overflow: hidden;
  user-select: none;
}
button { font-family: inherit; cursor: pointer; }
a { color: #7a2cff; }

.sky {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 15% 10%, #fff7a8 0 12%, transparent 13%),
    radial-gradient(circle at 80% 8%, #ffd0f5 0 10%, transparent 11%),
    linear-gradient(#9bebff, #7ee7ff 40%, #b4f5c8);
}
.sea-art {
  position: fixed; left: 50%; top: 46%;
  transform: translate(-50%,-50%);
  height: 88%; width: auto; max-width: 92vw;
  opacity: .18; pointer-events: none; z-index: 1;
  mix-blend-mode: multiply;
}

.hud {
  position: relative; z-index: 8;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + var(--safe-t)) 14px 6px;
}
.brand em { display: block; font-style: normal; font-size: 10px; letter-spacing: .24em; color: #7a2cff; }
.brand strong { font-size: 15px; }
.meter { text-align: center; min-width: 160px; }
.meter span { display: block; font-size: 10px; letter-spacing: .12em; }
.bar {
  height: 12px; border-radius: 99px; background: #fff; overflow: hidden;
  border: 2px solid #2b1840;
}
.bar i {
  display: block; height: 100%; width: 30%;
  background: linear-gradient(90deg, var(--mint), var(--sun), var(--pink), var(--orange));
  transition: width .25s ease;
}
.chip {
  height: 32px; padding: 0 10px; border-radius: 999px;
  border: 2px solid #2b1840; background: #fff; font-weight: 700;
}

.wrap {
  position: relative; z-index: 5;
  display: flex; height: calc(100% - 72px);
  padding: 0 8px calc(10px + var(--safe-b));
  gap: 8px;
}
.side { width: 110px; text-align: center; }
.bunny {
  width: 110px; height: 140px; object-fit: cover; object-position: center 12%;
  border-radius: 24px; border: 3px solid #2b1840; background: #fff6e8;
}
.side p { margin-top: 8px; font-size: 13px; line-height: 1.25; }
.map-box { flex: 1; display: flex; align-items: center; justify-content: center; }
.map-host { width: min(520px, 96%); height: 100%; }
.italy-svg { width: 100%; height: 100%; overflow: visible; }
.italy-svg .reg {
  stroke: #2b1840; stroke-width: 1.6; cursor: pointer;
  filter: drop-shadow(0 3px 0 rgba(43,24,64,.15));
  transition: transform .15s ease, filter .15s;
}
.italy-svg .reg:hover { filter: brightness(1.08) drop-shadow(0 6px 0 rgba(43,24,64,.2)); }

.twister {
  position: fixed; z-index: 12; width: 180px; pointer-events: none;
  opacity: 0; transform: translate(-50%,-50%) scale(.4);
}
.twister img { width: 100%; mix-blend-mode: multiply; }
.twister.go { animation: spinIn .9s ease-out forwards; }
@keyframes spinIn {
  0% { opacity: 0; transform: translate(-50%,-40%) rotate(-20deg) scale(.3); }
  35% { opacity: 1; transform: translate(-50%,-50%) rotate(20deg) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%,-62%) rotate(50deg) scale(1.2); }
}
.rename {
  position: fixed; left: 50%; top: 22%; z-index: 13; pointer-events: none;
  transform: translateX(-50%); font-family: Bebas Neue, sans-serif;
  font-size: clamp(22px, 6vw, 40px); letter-spacing: .04em;
  color: #2b1840; text-shadow: 3px 3px 0 #ffe56a;
  opacity: 0;
}
.rename.go { animation: up .9s ease-out forwards; }
@keyframes up {
  0% { opacity: 0; transform: translate(-50%, 16px); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -40px); }
}

.overlay {
  position: fixed; inset: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 18px 16px calc(16px + var(--safe-b));
  background: rgba(126,231,255,.72);
  backdrop-filter: blur(12px);
  text-align: center;
}
.overlay.hidden { display: none; }
.boot-it {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  height: 48vh; opacity: .55; pointer-events: none;
}
.card { position: relative; z-index: 2; max-width: 440px; }
.kicker { font-size: 11px; letter-spacing: .2em; color: #7a2cff; margin-bottom: 6px; }
h1, h2 { font-weight: 700; line-height: .95; font-size: clamp(34px, 10vw, 58px); }
h1 span { color: #ff3d8a; }
.sub { margin: 10px 0 12px; }
.card ul { list-style: none; margin-bottom: 14px; }
.cta {
  border: 3px solid #2b1840; border-radius: 999px;
  padding: 12px 22px; background: linear-gradient(90deg, var(--sun), var(--pink));
  font-size: 22px; font-weight: 700; color: #2b1840;
}
.cta.sm { font-size: 16px; }
.foot {
  width: min(520px,100%); margin-top: 16px;
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px;
}
.x {
  position: absolute; top: calc(12px + var(--safe-t)); right: 14px;
  width: 40px; height: 40px; border-radius: 50%; border: 3px solid #2b1840; background: #fff; font-size: 18px;
}
.pop-twister { width: 150px; mix-blend-mode: multiply; margin-bottom: 4px; }
.city { font-family: Bebas Neue, sans-serif; font-size: clamp(22px, 6vw, 36px); color: #ff3d8a; margin: 6px 0 10px; }
.body { max-width: 420px; margin-bottom: 12px; }
.pop-meter { margin-bottom: 14px; }
.pop-meter strong { display: block; font-size: 28px; }
.pick-label { font-size: 12px; letter-spacing: .08em; margin: 8px 0 6px; color: #7a2cff; }
.cities {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  max-width: 460px; margin: 0 auto 12px; max-height: 26vh; overflow: auto;
}
.cities button {
  border: 2px solid #2b1840; background: #fff; border-radius: 999px;
  padding: 6px 10px; font-size: 13px; font-weight: 700;
}
.cities button.on { background: #ffe56a; }
.ghost {
  margin-top: 8px; background: transparent; border: 2px solid #2b1840;
  border-radius: 999px; padding: 8px 14px; font-weight: 700;
}

@media (max-width: 700px) {
  .side { display: none; }
}
