/* Lilianaland — design tokens + componenti sketchy */

:root {
  --ll-ink: #1a1a1a;
  --ll-paper: #fdfbf3;
  --ll-paper-dark: #efece4;
  --ll-muted: #6b6b66;
  --ll-accent: #ffd84a;
  --ll-accent-2: #ff7aa2;
  --ll-shadow: 2px 2px 0 var(--ll-ink);
  --ll-shadow-lg: 3px 3px 0 var(--ll-ink);
  --ll-shadow-xl: 4px 4px 0 var(--ll-ink);
  --ll-border: 2px solid var(--ll-ink);
  --ll-border-dashed: 2px dashed var(--ll-ink);
  --ll-radius-md: 12px;
  --ll-radius-lg: 16px;
  --ll-radius-pill: 999px;
  --ll-green: #6bd17a;
  --ll-yellow-soft: #fff4be;
  --ll-pink-soft: #ffdce5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ll-paper);
  color: var(--ll-ink);
  font-family: 'Patrick Hand', system-ui, sans-serif;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, .ll-handwritten {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: 0.5px;
}
h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }

a { color: var(--ll-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

button, .btn {
  font-family: inherit;
  font-size: 17px;
  background: var(--ll-paper);
  border: var(--ll-border);
  border-radius: var(--ll-radius-md);
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: var(--ll-shadow);
  transition: transform 80ms, box-shadow 80ms;
  min-height: 48px;
}
button:hover, .btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ll-ink); }
button:active, .btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ll-ink); }
button.primary, .btn.primary { background: var(--ll-accent); }
button.danger, .btn.danger { background: var(--ll-accent-2); }
button:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }

input[type="text"], input[type="password"], input[type="search"], textarea, select {
  font-family: inherit;
  font-size: 18px;
  background: #fff;
  border: var(--ll-border);
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  outline: none;
  min-height: 48px;
}
input:focus, textarea:focus, select:focus { box-shadow: var(--ll-shadow); }

/* Layout */
.ll-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 16px 80px;
}
.ll-topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: var(--ll-border);
  background: var(--ll-paper);
}
.ll-logo {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.ll-logo .star {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: var(--ll-accent);
  border: 1.5px solid var(--ll-ink);
  border-radius: 4px;
  transform: rotate(45deg);
}
.ll-nav-links { display: flex; gap: 18px; font-size: 16px; }
.ll-nav-links a { text-decoration: none; }
.ll-nav-links a:hover { text-decoration: underline; }

/* Cards */
.ll-card {
  background: #fff;
  border: var(--ll-border);
  border-radius: var(--ll-radius-md);
  padding: 16px;
  box-shadow: var(--ll-shadow-lg);
}
.ll-card.accent { background: var(--ll-accent); }
.ll-card.pink { background: var(--ll-pink-soft); }

.ll-pill {
  display: inline-block;
  padding: 4px 12px;
  border: var(--ll-border);
  border-radius: var(--ll-radius-pill);
  background: #fff;
  font-size: 14px;
  font-family: 'Caveat', cursive;
  font-weight: 600;
}
.ll-pill.accent { background: var(--ll-accent); }

/* Toast */
.ll-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: var(--ll-border);
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: var(--ll-shadow-lg);
  font-family: 'Patrick Hand';
  z-index: 1000;
  opacity: 0;
  transition: opacity 200ms;
  max-width: 90%;
  text-align: center;
}
.ll-toast.show { opacity: 1; }
.ll-toast.error { background: var(--ll-accent-2); color: #fff; }

/* Home mappa: fullscreen no-scroll */
html:has(.ll-home), body:has(.ll-home) {
  height: 100%;
  overflow: hidden;
}
.ll-home {
  height: 100vh;
  height: 100dvh;
  background: var(--ll-paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ll-home-header {
  padding: 10px 22px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}
.ll-home-header .greeting { font: 700 32px 'Caveat', cursive; line-height: 1; }
.ll-home-header .sub { font-size: 15px; color: var(--ll-muted); }
.ll-map-wrap {
  flex: 1 1 auto;
  position: relative;
  margin: 0 14px;
  border: var(--ll-border);
  border-radius: var(--ll-radius-lg);
  background: var(--ll-paper);
  overflow: hidden;
  min-height: 0;
  box-shadow: var(--ll-shadow-lg);
}
.ll-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ll-zone {
  position: absolute;
  border: 3px solid var(--ll-ink);
  border-radius: 50%;
  background: var(--ll-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 38px 'Patrick Hand', sans-serif;
  box-shadow: 4px 4px 0 var(--ll-ink);
  text-decoration: none;
  color: var(--ll-ink);
  cursor: pointer;
  transition: transform 100ms, box-shadow 100ms;
  user-select: none;
  transform: translate(-50%, -50%) rotate(var(--tilt, 0deg));
}
.ll-zone:hover {
  transform: translate(-50%, -50%) translate(-2px, -2px) rotate(var(--tilt, 0deg));
  box-shadow: 6px 6px 0 var(--ll-ink);
}
.ll-zone.disabled {
  background: #fff;
  border-style: dashed;
  opacity: 0.65;
  cursor: pointer;
  box-shadow: none;
}
.ll-zone-label {
  position: absolute;
  width: 180px;
  text-align: center;
  color: var(--ll-ink);
  line-height: 1.05;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateX(-50%);
}
.ll-zone-label .zone-label-text {
  font: 400 26px 'Caveat', cursive;
  line-height: 1;
  white-space: pre-line;
}
.ll-zone-label .zone-label-name {
  font: 700 13px 'Patrick Hand', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ll-muted);
}
.ll-zone-label.disabled .zone-label-text,
.ll-zone-label.disabled .zone-label-name { color: var(--ll-muted); }

.ll-bottom-bar {
  margin: 10px 14px 10px;
  border: var(--ll-border);
  border-radius: var(--ll-radius-md);
  background: #fff;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  box-shadow: var(--ll-shadow);
  flex: 0 0 auto;
}
.ll-bottom-bar .star {
  width: 18px; height: 18px; background: var(--ll-accent);
  border: 1.5px solid var(--ll-ink); border-radius: 3px; transform: rotate(45deg);
}
.ll-bottom-bar .muted { color: var(--ll-muted); font-family: 'Caveat'; font-size: 16px; }

/* SVG decorations */
.ll-cloud, .ll-sun {
  position: absolute;
  opacity: 0.6;
  pointer-events: none;
}

/* Game page common */
.ll-game-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(14px, 2vw, 32px) clamp(14px, 3vw, 36px) 80px;
}
.ll-game-title {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 22px);
  margin-bottom: clamp(12px, 2vw, 24px);
}
.ll-game-title .icon {
  width: clamp(56px, 8vw, 96px); height: clamp(56px, 8vw, 96px);
  border: var(--ll-border);
  border-radius: 50%;
  background: var(--ll-accent);
  display: flex; align-items: center; justify-content: center;
  font: 700 clamp(26px, 4vw, 44px) 'Patrick Hand', sans-serif;
  box-shadow: var(--ll-shadow);
  transform: rotate(-3deg);
  flex-shrink: 0;
}
.ll-game-title h1 { font-size: clamp(30px, 5vw, 60px); margin: 0; }
.ll-game-title .muted { font-size: clamp(15px, 1.6vw, 22px); }
.ll-game-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'Caveat', cursive; font-size: clamp(20px, 2vw, 28px);
  text-decoration: none;
  margin-bottom: clamp(8px, 1vw, 16px);
}
/* Pulsanti dentro la wrapper game scalano con vw */
.ll-game-wrap > button,
.ll-game-wrap > form > button,
.ll-game-wrap > .btn {
  font-size: clamp(17px, 2vw, 26px);
  padding: clamp(12px, 1.6vw, 22px) clamp(18px, 2vw, 28px);
  min-height: clamp(48px, 6vw, 72px);
}
/* Input testo / search nei giochi */
.ll-game-wrap input[type="text"],
.ll-game-wrap input[type="search"],
.ll-game-wrap input[type="number"] {
  font-size: clamp(18px, 2vw, 26px);
  padding: clamp(10px, 1.4vw, 18px) clamp(14px, 1.6vw, 22px);
  min-height: clamp(48px, 6vw, 72px);
}

/* Wordle grid */
.wordle-grid {
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  gap: clamp(6px, 0.8vw, 12px);
  width: 100%;
  max-width: clamp(320px, 60vw, 640px);
  margin: clamp(16px, 2vw, 30px) auto;
}
.wordle-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(6px, 0.8vw, 12px);
}
.wordle-cell {
  aspect-ratio: 1;
  border: 2.5px solid var(--ll-ink);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 700 clamp(26px, 5vw, 56px) 'Patrick Hand', sans-serif;
  text-transform: uppercase;
  border-radius: 10px;
}
.wordle-cell.correct { background: var(--ll-green); }
.wordle-cell.present { background: var(--ll-accent); }
.wordle-cell.absent { background: var(--ll-paper-dark); color: var(--ll-muted); }
.wordle-cell.active { box-shadow: var(--ll-shadow); }

/* Songless / Spelling player */
.ll-audio-bar {
  display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px);
  border: var(--ll-border);
  border-radius: var(--ll-radius-md);
  padding: clamp(14px, 2vw, 24px);
  background: var(--ll-yellow-soft);
  margin: clamp(14px, 2vw, 24px) 0;
}
.ll-audio-bar button {
  background: var(--ll-accent);
  min-width: clamp(60px, 9vw, 110px);
  min-height: clamp(60px, 9vw, 110px);
  width: clamp(60px, 9vw, 110px);
  height: clamp(60px, 9vw, 110px);
  border-radius: 50%;
  font-size: clamp(24px, 4vw, 44px);
  padding: 0;
}
.ll-audio-bar .info { font-family: 'Caveat', cursive; font-size: clamp(20px, 2.2vw, 30px); }

/* Autocomplete dropdown */
.ll-autocomplete {
  position: relative;
}
.ll-autocomplete-list {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border: var(--ll-border);
  border-radius: 8px;
  margin-top: 4px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: var(--ll-shadow);
}
.ll-autocomplete-item {
  padding: 8px 12px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--ll-paper-dark);
}
.ll-autocomplete-item:last-child { border-bottom: none; }
.ll-autocomplete-item:hover { background: var(--ll-yellow-soft); }
.ll-autocomplete-item img { width: 36px; height: 36px; border-radius: 4px; border: 1px solid var(--ll-ink); }
.ll-autocomplete-item .meta { line-height: 1.2; }
.ll-autocomplete-item .meta .title { font-weight: 600; }
.ll-autocomplete-item .meta .sub { font-size: 14px; color: var(--ll-muted); }

/* Wordless guesses list */
.wordless-guess-list {
  margin-top: clamp(14px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.5vw, 8px);
}
.wordless-guess {
  display: flex; align-items: center; gap: clamp(10px, 1.4vw, 18px);
  border: var(--ll-border);
  border-radius: clamp(8px, 1vw, 12px);
  padding: clamp(8px, 1.2vw, 16px) clamp(12px, 1.6vw, 22px);
  background: #fff;
  font-size: clamp(15px, 1.8vw, 22px);
}
.wordless-guess.current { background: var(--ll-yellow-soft); }
.wordless-guess.win { background: var(--ll-green); }
.wordless-guess.hint { background: var(--ll-pink-soft); border-style: dashed; }
.wordless-guess .word { font-weight: 600; flex: 1; }
.wordless-guess .rank {
  font-family: 'Caveat', cursive; font-size: clamp(22px, 2.5vw, 32px);
  min-width: clamp(70px, 8vw, 110px); text-align: right;
}
.wordless-guess .bar {
  position: relative;
  flex: 2;
  height: 8px;
  background: var(--ll-paper-dark);
  border-radius: 99px;
  overflow: hidden;
}
.wordless-guess .bar .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--ll-accent);
}

/* Admin */
.ll-admin-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 16px 80px;
}
.ll-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.ll-admin-card {
  border: var(--ll-border);
  border-radius: var(--ll-radius-md);
  background: #fff;
  padding: 18px;
  box-shadow: var(--ll-shadow-lg);
  text-decoration: none;
  color: var(--ll-ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 130px;
  transition: transform 100ms;
}
.ll-admin-card:hover { transform: translate(-1px, -1px); box-shadow: var(--ll-shadow-xl); }
.ll-admin-card .icon { font-size: 30px; }
.ll-admin-card h3 { margin: 0; }
.ll-admin-card .status { font-size: 13px; color: var(--ll-muted); }
.ll-admin-card.active { background: var(--ll-yellow-soft); }

table.ll-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 16px;
}
table.ll-table th, table.ll-table td {
  border-bottom: 1.5px dashed var(--ll-ink);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
table.ll-table th { font-family: 'Caveat', cursive; font-size: 20px; }
table.ll-table tr.inactive td { opacity: 0.5; }

/* Avanti un altro live UI */
.avanti-host {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 768px) {
  .avanti-host { grid-template-columns: 2fr 1fr; }
}
.avanti-question-card {
  background: #fff;
  border: var(--ll-border);
  border-radius: var(--ll-radius-lg);
  padding: 22px;
  box-shadow: var(--ll-shadow-lg);
  min-height: 220px;
}
.avanti-question-card .q { font-size: 22px; margin-top: 12px; }
.avanti-question-card .a { font-family: 'Caveat'; font-size: 26px; margin-top: 14px; padding: 8px 12px; background: var(--ll-yellow-soft); border-radius: 8px; border: 1.5px dashed var(--ll-ink); }
.avanti-current-player {
  font: 700 32px 'Caveat', cursive;
  display: flex; align-items: center; gap: 8px;
}
.avanti-scoreboard {
  border: var(--ll-border);
  border-radius: var(--ll-radius-md);
  background: var(--ll-pink-soft);
  padding: 14px;
  box-shadow: var(--ll-shadow);
}
.avanti-scoreboard .row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--ll-ink);
  font-size: 17px;
}
.avanti-scoreboard .row:last-child { border-bottom: none; }
.avanti-scoreboard .row.done { opacity: 0.5; text-decoration: line-through; }
.avanti-scoreboard .points { margin-left: auto; font-family: 'Caveat'; font-size: 22px; }

.avanti-timer {
  font-family: 'Caveat', cursive;
  font-size: 48px;
  text-align: center;
  padding: 14px;
  background: var(--ll-accent);
  border: var(--ll-border);
  border-radius: var(--ll-radius-md);
  box-shadow: var(--ll-shadow);
}
.avanti-timer.urgent { background: var(--ll-accent-2); color: #fff; }

/* ANAGRAMMA */
.anagram-slots {
  display: flex; gap: clamp(6px, 0.8vw, 14px); justify-content: center; flex-wrap: wrap;
  margin: clamp(18px, 3vw, 36px) 0;
}
.anagram-slot {
  width: clamp(48px, 8vw, 120px);
  height: clamp(56px, 9vw, 130px);
  border: 3px dashed var(--ll-ink);
  border-radius: clamp(8px, 1vw, 16px);
  background: var(--ll-paper);
  display: flex; align-items: center; justify-content: center;
  font: 700 clamp(28px, 5vw, 56px) 'Patrick Hand', sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}
.anagram-slot.filled {
  background: var(--ll-accent);
  border-style: solid;
  box-shadow: clamp(2px, 0.4vw, 5px) clamp(2px, 0.4vw, 5px) 0 var(--ll-ink);
}
.anagram-letters {
  display: flex; gap: clamp(6px, 0.8vw, 14px); justify-content: center; flex-wrap: wrap;
  margin: clamp(18px, 3vw, 36px) 0;
}
.anagram-letter {
  width: clamp(52px, 8vw, 130px);
  height: clamp(52px, 8vw, 130px);
  min-height: clamp(52px, 8vw, 130px);
  border: 3px solid var(--ll-ink);
  border-radius: clamp(8px, 1vw, 16px);
  background: #fff;
  font: 700 clamp(26px, 5vw, 56px) 'Patrick Hand', sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: clamp(2px, 0.4vw, 5px) clamp(2px, 0.4vw, 5px) 0 var(--ll-ink);
  padding: 0;
}
.anagram-letter:hover { background: var(--ll-yellow-soft); transform: translate(-1px, -1px); box-shadow: clamp(3px, 0.5vw, 6px) clamp(3px, 0.5vw, 6px) 0 var(--ll-ink); }

/* HANGMAN */
.hangman-stage {
  display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2vw, 24px);
  margin: clamp(16px, 2vw, 28px) 0;
}
.hangman-figure {
  width: clamp(180px, 30vw, 320px);
  height: clamp(220px, 36vw, 400px);
  background: var(--ll-paper);
  border: var(--ll-border);
  border-radius: var(--ll-radius-md);
  box-shadow: var(--ll-shadow);
}
.hangman-word {
  font: 700 clamp(32px, 5vw, 56px) 'Patrick Hand', sans-serif;
  letter-spacing: clamp(6px, 1vw, 14px);
  text-align: center;
  text-transform: uppercase;
  padding: clamp(8px, 1.2vw, 18px) clamp(14px, 2vw, 28px);
  background: #fff;
  border: var(--ll-border);
  border-radius: clamp(8px, 1vw, 14px);
  min-width: clamp(200px, 50vw, 600px);
}
.hangman-status {
  font-family: 'Caveat'; font-size: clamp(20px, 2.2vw, 32px);
  color: var(--ll-muted);
}
.hangman-keyboard {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(4px, 0.6vw, 10px);
  margin-top: clamp(12px, 2vw, 22px);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 540px) { .hangman-keyboard { grid-template-columns: repeat(9, 1fr); } }
@media (min-width: 900px) { .hangman-keyboard { grid-template-columns: repeat(13, 1fr); } }
.hangman-key {
  padding: 0;
  min-height: clamp(44px, 7vw, 80px);
  font: 700 clamp(18px, 2.5vw, 32px) 'Patrick Hand', sans-serif;
  background: #fff;
}
.hangman-key.used {
  background: var(--ll-paper-dark);
  color: var(--ll-muted);
  text-decoration: line-through;
}

/* MEMORY */
.memory-grid {
  display: grid;
  gap: clamp(6px, 1vw, 14px);
  width: 100%;
  max-width: clamp(320px, 70vw, 800px);
  margin: clamp(16px, 2vw, 30px) auto;
  perspective: 1000px;
}
.memory-card {
  aspect-ratio: 1;
  cursor: pointer;
  position: relative;
}
.memory-card .card-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 400ms;
}
.memory-card.flipped .card-inner { transform: rotateY(180deg); }
.memory-card .card-front, .memory-card .card-back {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  border: var(--ll-border);
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.memory-card .card-front {
  background: var(--ll-accent);
  font: 700 clamp(28px, 4vw, 56px) 'Caveat', cursive;
  box-shadow: var(--ll-shadow);
}
.memory-card .card-back {
  background: #fff;
  font-size: clamp(36px, 5vw, 64px);
  transform: rotateY(180deg);
  box-shadow: var(--ll-shadow);
}
@media (max-width: 540px) {
  .memory-card .card-back { font-size: 28px; }
  .memory-card .card-front { font-size: 22px; }
}

/* DOWNLOAD OVERLAY (audio preload) */
.ll-dl-overlay {
  position: fixed; inset: 0;
  z-index: 9999;
  background: rgba(26, 26, 26, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: ll-dl-fade-in 250ms ease-out;
}
.ll-dl-overlay.done { opacity: 0; transition: opacity 400ms; }
@keyframes ll-dl-fade-in { from { opacity: 0; } to { opacity: 1; } }
.ll-dl-modal {
  background: var(--ll-paper);
  border: 3px solid var(--ll-ink);
  border-radius: var(--ll-radius-lg);
  box-shadow: 5px 5px 0 var(--ll-ink);
  padding: 24px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  transform: rotate(-1deg);
}
.ll-dl-title {
  font: 700 32px 'Caveat', cursive;
  margin-bottom: 6px;
}
.ll-dl-sub {
  font-size: 16px;
  color: var(--ll-muted);
  margin-bottom: 18px;
  font-family: 'Patrick Hand', sans-serif;
}
.ll-dl-track {
  height: 18px;
  border: 2px solid var(--ll-ink);
  border-radius: 99px;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.ll-dl-fill {
  height: 100%;
  width: 0%;
  background: var(--ll-accent);
  transition: width 300ms ease-out;
  border-right: 1.5px solid var(--ll-ink);
}
.ll-dl-counter {
  margin-top: 10px;
  font-family: 'Caveat', cursive;
  font-size: 22px;
}
.ll-dl-current {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ll-muted);
  font-family: 'Patrick Hand', sans-serif;
  min-height: 1.2em;
  font-style: italic;
}

/* Helpers */
.tilt-1 { transform: rotate(-2deg); }
.tilt-2 { transform: rotate(1.5deg); }
.tilt-3 { transform: rotate(-1deg); }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 6px; } .gap-2 { gap: 12px; } .gap-3 { gap: 18px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.muted { color: var(--ll-muted); }
.center { text-align: center; }

/* Responsive */
@media (max-width: 720px) {
  /* scaling progressivo su tablet/mobile per evitare overlap delle zone */
  .ll-zone {
    transform: translate(-50%, -50%) rotate(var(--tilt, 0deg)) scale(0.75);
    font-size: 32px;
  }
  .ll-zone:hover {
    transform: translate(-50%, -50%) translate(-2px, -2px) rotate(var(--tilt, 0deg)) scale(0.75);
  }
  .ll-zone-label { width: 150px; }
  .ll-zone-label .zone-label-text { font-size: 22px; }
  .ll-zone-label .zone-label-name { font-size: 12px; }
}
@media (max-width: 540px) {
  body { font-size: 17px; }
  h1 { font-size: 30px; }
  .ll-home-header { padding: 8px 16px 2px; }
  .ll-home-header .greeting { font-size: 26px; }
  .ll-home-header .sub { font-size: 14px; }
  .ll-map-wrap { margin: 0 10px; }
  .ll-zone {
    transform: translate(-50%, -50%) rotate(var(--tilt, 0deg)) scale(0.55);
    font-size: 32px;
    border-width: 2.5px;
    box-shadow: 3px 3px 0 var(--ll-ink);
  }
  .ll-zone:hover {
    transform: translate(-50%, -50%) translate(-2px, -2px) rotate(var(--tilt, 0deg)) scale(0.55);
  }
  .ll-zone-label { width: 110px; }
  .ll-zone-label .zone-label-text { font-size: 18px; }
  .ll-zone-label .zone-label-name { font-size: 10px; letter-spacing: 0.8px; }
  .ll-topnav { padding: 10px 14px; }
  .ll-logo { font-size: 24px; }
  .ll-bottom-bar { margin: 8px 10px; font-size: 14px; padding: 6px 12px; }
}
@media (max-height: 600px) {
  .ll-home-header { padding: 6px 22px 2px; }
  .ll-home-header .greeting { font-size: 24px; }
  .ll-bottom-bar { padding: 6px 12px; font-size: 14px; }
}
