/* ================= Font self-hosted ================= */
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-display: swap; font-weight: 400;
  src: url('/fonts/playfair-display-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-display: swap; font-weight: 700;
  src: url('/fonts/playfair-display-latin-700-normal.woff2') format('woff2');
}

/* ================= Token ================= */
:root {
  --bordeaux: #6e1423;
  --bordeaux-dark: #4d0d18;
  --verde: #1f4d3a;
  --libero: #2e7d4f;
  --libero-edge: #1b4d30;
  --oro: #c9a227;
  --oro-chiaro: #e6cf7a;
  --crema: #f8f1e3;
  --crema-2: #efe4cc;
  --bordo: #d8ccb4;
  --testo: #2b1d16;
  --testo-2: #6b5d50;
  --rosso: #b3261e;
  --rosso-edge: #6e1611;
  --focus: #c9a227;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --radius: 14px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --t-fast: 150ms;
  --t: 220ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--testo);
  background: var(--crema);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(201,162,39,.10) 0, transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(110,20,35,.08) 0, transparent 45%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
button, a, select, [role="button"] { cursor: pointer; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt8 { margin-top: var(--sp-2); }
.mt16 { margin-top: var(--sp-4); }

/* Icone SVG (sprite /icons.svg) */
.ic { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

/* Focus sempre visibile da tastiera */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.num:focus-visible, .btn:focus-visible { outline-offset: 3px; }

/* ================= Header pubblico ================= */
.hero {
  background: linear-gradient(160deg, var(--bordeaux) 0%, var(--bordeaux-dark) 100%);
  color: var(--crema);
  text-align: center;
  padding: calc(var(--sp-5) + env(safe-area-inset-top)) var(--sp-4) var(--sp-6);
  border-bottom: 4px solid var(--oro);
  position: relative;
  overflow: hidden;
}
.hero .snow { position: absolute; inset: 0; pointer-events: none; opacity: .16; color: var(--oro-chiaro); }
.hero .snow i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.hero > * { position: relative; }
.hero .bar-name { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--oro-chiaro); margin: 0 0 var(--sp-2); font-weight: 600; min-height: 1.5em; }
.hero h1, .card h2, .modal h2, .draw-bar .title { font-variant-numeric: lining-nums; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 7.5vw, 44px); line-height: 1.15; margin: 0; display: inline-flex; align-items: center; gap: var(--sp-3); }
.hero h1 .ic { color: var(--oro); width: .85em; height: .85em; }
.info-row { display: flex; justify-content: center; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-4); }
.pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(248,241,227,.10);
  border: 1px solid rgba(201,162,39,.55);
  border-radius: 999px;
  padding: var(--sp-2) var(--sp-4);
  font-size: 15px;
}
.pill .ic { color: var(--oro-chiaro); }
.pill b { color: var(--oro-chiaro); font-weight: 600; }

main { max-width: 900px; margin: 0 auto; padding: var(--sp-4) var(--sp-3) var(--sp-6); }

.counter { text-align: center; margin: var(--sp-1) 0 var(--sp-4); font-size: 16px; color: var(--verde); min-height: 1.6em; }
.counter b { font-size: 24px; font-variant-numeric: tabular-nums; }

/* ================= Griglia numeri ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: var(--sp-2);
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 480px) { .grid { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); } }
.num {
  aspect-ratio: 1;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 750;
  letter-spacing: -.5px;
  font-variant-numeric: lining-nums tabular-nums;
  border: 2px solid transparent;
  user-select: none;
  position: relative;
  padding: 0;
}
.num.libero { background: var(--libero); color: #fff; border-color: #24653f; box-shadow: 0 2px 0 var(--libero-edge); }
.num.occupato { background: var(--rosso); color: #fff; border-color: #8f1d17; box-shadow: 0 2px 0 var(--rosso-edge); }
.num.chiuso { background: #ddd8cf; color: #5f5a52; border-color: #c8c2b6; }
.num.chiuso.prenotato { background: #b3ab9e; color: #3f3b35; border-color: #a49c90; }
button.num { transition: transform var(--t-fast) var(--ease), filter var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
button.num:hover { filter: brightness(1.08); }
button.num:active { transform: translateY(2px) scale(.96); box-shadow: none; }
.num .wa-dot { position: absolute; top: 6px; right: 6px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; }
.wa-dot.inviato, .wa-dot.consegnato, .wa-dot.letto { background: #25d366; }
.wa-dot.in_attesa { background: var(--oro); }
.wa-dot.fallito { background: #111; }

.notice {
  text-align: center; background: #fff; border: 1px solid var(--crema-2); border-left: 5px solid var(--oro);
  border-radius: var(--radius); padding: var(--sp-5) var(--sp-4); font-size: 18px; color: var(--bordeaux);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
}
.notice .ic { width: 28px; height: 28px; color: var(--oro); }
.notice small { color: var(--testo); font-size: 15px; }

footer.site { text-align: center; padding: var(--sp-5) var(--sp-3) calc(var(--sp-6) + env(safe-area-inset-bottom)); color: var(--testo-2); font-size: 14px; }
footer.site a { color: var(--bordeaux); text-underline-offset: 3px; }
footer.site .bar-line { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-1) var(--sp-3); }
footer.site .bar-line span, footer.site .bar-line a { display: inline-flex; align-items: center; gap: 6px; }
footer.site .bar-line a { color: inherit; text-decoration: none; min-height: 44px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--verde); }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #2fbf6c; animation: pulse 2s infinite; }
.live.off { color: var(--testo-2); }
.live.off::before { background: #9b958b; animation: none; }
@keyframes pulse { 50% { opacity: .3; } }

/* ================= Admin: barra superiore + navigazione ================= */
.topbar {
  background: var(--bordeaux); color: var(--crema); border-bottom: 3px solid var(--oro);
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top);
}
.topbar-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: var(--sp-2) var(--sp-3); gap: var(--sp-2); min-height: 56px; }
.topbar .brand { font-family: var(--serif); font-size: 19px; font-weight: 700; display: inline-flex; align-items: center; gap: var(--sp-2); white-space: nowrap; }
.topbar .brand .ic { color: var(--oro); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 var(--sp-3);
  background: rgba(248,241,227,.08); color: var(--crema); border: 1px solid rgba(248,241,227,.25); border-radius: 10px;
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: background var(--t-fast) var(--ease);
}
.icon-btn:hover { background: rgba(248,241,227,.18); }
@media (max-width: 520px) { .icon-btn .lbl { display: none; } .icon-btn { padding: 0; } }

.nav { background: var(--bordeaux); }
.nav-inner { display: flex; gap: var(--sp-1); max-width: 1100px; margin: 0 auto; padding: 0 var(--sp-2); }
.tab {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: none; border: none; color: var(--crema); opacity: .8; padding: var(--sp-3) var(--sp-4); min-height: 48px;
  border-bottom: 3px solid transparent; white-space: nowrap; font-size: 15px; font-weight: 500;
  transition: opacity var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.tab:hover { opacity: 1; }
.tab[aria-current="page"] { opacity: 1; border-bottom-color: var(--oro); font-weight: 700; }

/* Mobile: navigazione in basso (4 voci) raggiungibile col pollice */
@media (max-width: 719px) {
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    border-top: 3px solid var(--oro);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 16px rgba(0,0,0,.18);
  }
  .nav-inner { padding: 0; gap: 0; }
  .tab {
    flex: 1; flex-direction: column; gap: 2px; padding: var(--sp-2) 2px; min-height: var(--nav-h);
    font-size: 12px; border-bottom: none; justify-content: center; opacity: .85;
  }
  .tab .ic { width: 22px; height: 22px; }
  .tab[aria-current="page"] { color: var(--oro-chiaro); opacity: 1; }
  .admin-main { padding-bottom: calc(var(--nav-h) + var(--sp-6) + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(var(--nav-h) + var(--sp-4) + env(safe-area-inset-bottom)); }
}
.admin-main { max-width: 1100px; }

/* ================= Card, badge, form ================= */
.card { background: #fff; border: 1px solid var(--crema-2); border-radius: var(--radius); padding: var(--sp-4); margin-bottom: var(--sp-4); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card h2 { font-family: var(--serif); font-weight: 700; color: var(--bordeaux); margin: 0 0 var(--sp-3); font-size: 22px; line-height: 1.25; display: flex; align-items: center; gap: var(--sp-2); }
.card h2 .ic { color: var(--oro); }
.card h3 { margin: var(--sp-5) 0 var(--sp-2); font-size: 16px; color: var(--verde); }

.draw-bar { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.draw-bar .title { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--bordeaux); line-height: 1.25; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .3px; vertical-align: middle; }
.badge .ic { width: 13px; height: 13px; }
.badge.aperta { background: #dcefe3; color: var(--verde); }
.badge.chiusa { background: #e7e3dc; color: #4f4a43; }
.badge.corrente { background: var(--oro); color: #2e2300; }
.badge.wa-inviato, .badge.wa-consegnato, .badge.wa-letto { background: #dcf8e6; color: #136c36; }
.badge.wa-in_attesa { background: #fbf0cc; color: #6b5300; }
.badge.wa-fallito { background: #fde2e0; color: var(--rosso); }
.legend { display: flex; gap: var(--sp-2) var(--sp-4); flex-wrap: wrap; font-size: 13px; color: var(--testo-2); margin: var(--sp-4) 0 0; align-items: center; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.legend .sw.libero { background: var(--libero); }
.legend .sw.occupato { background: var(--rosso); }
.legend .sw.chiuso { background: #ddd8cf; border: 1px solid #c8c2b6; }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend .dot.inviato { background: #25d366; }
.legend .dot.in_attesa { background: var(--oro); }
.legend .dot.fallito { background: #111; }
.stats { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.stat { background: var(--crema); border-radius: 10px; padding: 6px 12px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.stat b { font-size: 18px; font-variant-numeric: tabular-nums; }
.stat.warn { background: #fde2e0; color: var(--rosso); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 15px;
  background: var(--verde); color: #fff; text-decoration: none; min-height: 44px;
  transition: filter var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.gold { background: var(--oro); color: #2e2300; }
.btn.bordeaux { background: var(--bordeaux); }
.btn.ghost { background: #fff; color: var(--testo); border-color: var(--bordo); }
.btn.ghost:hover { background: var(--crema); filter: none; }
.btn.danger { background: #fff; color: var(--rosso); border-color: #efc2bf; }
.btn.danger:hover { background: #fdf0ef; filter: none; }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.big { width: 100%; padding: 14px; font-size: 17px; letter-spacing: .4px; min-height: 52px; }
.btn .spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.row { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }

label.f { display: block; font-size: 14px; font-weight: 600; margin: var(--sp-3) 0 6px; color: #4a3b30; }
input.i, select.i {
  width: 100%; padding: 12px 13px; border: 1px solid var(--bordo); border-radius: 10px; background: #fffdf8; font-size: 16px; min-height: 48px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
input.i:focus, select.i:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 3px rgba(201,162,39,.4); }
input.i[aria-invalid="true"] { border-color: var(--rosso); box-shadow: 0 0 0 3px rgba(179,38,30,.15); }
.field-err { color: var(--rosso); font-size: 13.5px; margin-top: 6px; display: flex; gap: 6px; align-items: flex-start; }
.field-err .ic { margin-top: 2px; }
.search-wrap { position: relative; width: 100%; }
.search-wrap .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--testo-2); pointer-events: none; }
.search-wrap input.i { padding-left: 42px; }
.check { display: flex; gap: var(--sp-2); align-items: center; margin-top: var(--sp-3); font-size: 15px; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--verde); }
.hint { font-size: 13.5px; color: var(--testo-2); margin-top: 6px; }
.err { color: var(--rosso); font-size: 14px; margin-top: var(--sp-2); min-height: 1em; }

/* ================= Modal ================= */
.modal-bg { position: fixed; inset: 0; background: rgba(30,10,12,.55); display: flex; align-items: flex-end; justify-content: center; z-index: 50; animation: fade var(--t) var(--ease); }
.modal {
  background: #fff; width: 100%; max-width: 460px; border-radius: 20px 20px 0 0; padding: var(--sp-5) var(--sp-4) calc(var(--sp-5) + env(safe-area-inset-bottom));
  max-height: 92vh; overflow-y: auto; border-top: 5px solid var(--oro);
  animation: slide-up var(--t) var(--ease);
}
@media (min-width: 600px) { .modal-bg { align-items: center; } .modal { border-radius: 20px; animation-name: zoom; } }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-up { from { transform: translateY(40px); opacity: .4; } }
@keyframes zoom { from { transform: scale(.96); opacity: 0; } }
.modal-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-1); }
.modal-num { width: 64px; height: 64px; flex: none; border-radius: 14px; background: var(--libero); color: #fff; font-family: var(--sans); font-size: 30px; font-weight: 750; font-variant-numeric: lining-nums; display: flex; align-items: center; justify-content: center; }
.modal-num.occ { background: var(--rosso); }
.modal h2 { margin: 0; font-family: var(--serif); font-weight: 700; color: var(--bordeaux); font-size: 21px; line-height: 1.25; }
.modal .sub { font-size: 14px; color: var(--testo-2); }
.close-x { margin-left: auto; align-self: flex-start; background: none; border: none; color: var(--testo-2); width: 44px; height: 44px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.close-x:hover { background: var(--crema); }
.close-x .ic { width: 24px; height: 24px; }
.detail { margin: var(--sp-4) 0; font-size: 16px; display: grid; gap: var(--sp-2); }
.detail > div { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.detail a { color: var(--verde); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.actions-grid .btn:first-child { grid-column: 1 / -1; }

/* ================= Lista prenotazioni ================= */
.list { display: flex; flex-direction: column; gap: var(--sp-2); }
.bk { display: grid; grid-template-columns: 54px 1fr auto; gap: var(--sp-3); align-items: center; padding: var(--sp-3); border: 1px solid var(--crema-2); border-radius: 12px; background: #fff; }
.bk .n { width: 52px; height: 52px; border-radius: 12px; background: var(--bordeaux); color: #fff; font-family: var(--sans); font-size: 22px; font-weight: 750; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.bk .who { font-weight: 700; }
.bk .meta { font-size: 13.5px; color: var(--testo-2); }
.bk .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .bk { grid-template-columns: 52px 1fr; } .bk .actions { grid-column: 1 / -1; } .bk .actions .btn { flex: 1; } .bk .actions .btn.danger { flex: 0 0 48px; } }

.draw-item { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-3) 0; border-bottom: 1px solid var(--crema-2); }
.draw-item:last-child { border-bottom: none; }
.draw-item .d { font-weight: 700; }
pre.preview { white-space: pre-wrap; background: #e7f6ec; border-radius: 4px 14px 14px 14px; padding: var(--sp-4); font-family: var(--sans); font-size: 14px; line-height: 1.45; max-width: 380px; border: 1px solid #cfe9d8; margin: 0; }
.kv { font-size: 14px; line-height: 1.9; }
.kv .ok { color: #136c36; font-weight: 700; }
.kv .ko { color: var(--rosso); font-weight: 700; }

.login-wrap { max-width: 400px; margin: 6vh auto; padding: 0 var(--sp-3); }
.login-wrap .card { padding: var(--sp-5); border-top: 5px solid var(--oro); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--sp-5) + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--verde); color: #fff; display: flex; gap: var(--sp-2); align-items: flex-start;
  padding: 12px 16px; border-radius: 12px; z-index: 100; font-size: 15px; box-shadow: 0 6px 24px rgba(0,0,0,.25);
  width: max-content; max-width: min(92vw, 460px);
  animation: toast-in var(--t) var(--ease);
}
.toast .ic { margin-top: 2px; }
.toast.error { background: var(--rosso); }
@keyframes toast-in { from { transform: translate(-50%, 12px); opacity: 0; } }

.prose { line-height: 1.65; }
.prose h1 { font-family: var(--serif); color: var(--bordeaux); font-weight: 700; line-height: 1.2; }

/* ================= Movimento ridotto ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.detail > .field-err { flex-wrap: nowrap; align-items: flex-start; }
.pill > span { text-align: left; }

/* Cesti in palio */
textarea.i { min-height: 64px; resize: vertical; line-height: 1.4; font-family: var(--sans); }
fieldset.prizes { border: 1px solid var(--crema-2); border-radius: 12px; padding: var(--sp-2) var(--sp-3) var(--sp-3); margin: var(--sp-4) 0 0; }
fieldset.prizes legend { font-weight: 700; color: var(--bordeaux); padding: 0 6px; }
.prize-list { margin: var(--sp-2) 0 0; padding-left: 0; list-style: none; font-size: 14px; display: grid; gap: 2px; }
.prize-list b { color: var(--verde); }
.prizes-public { margin: 0 0 var(--sp-5); background: #fff; border: 1px solid var(--crema-2); border-top: 4px solid var(--oro); border-radius: var(--radius); padding: var(--sp-4); }
.prizes-public h2 { font-family: var(--serif); color: var(--bordeaux); font-size: 22px; margin: 0 0 var(--sp-3); text-align: center; display: flex; justify-content: center; align-items: center; gap: var(--sp-2); }
.prizes-public h2 .ic { color: var(--oro); }
.prizes-public ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.prizes-public li { display: grid; grid-template-columns: 44px 1fr; gap: var(--sp-3); align-items: center; padding: var(--sp-2); border-radius: 10px; background: var(--crema); }
.prizes-public .pos { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #2e2300; background: var(--oro); font-variant-numeric: lining-nums; }
.prizes-public li:nth-child(2) .pos { background: #cfcac2; color: #2b2b2b; }
.prizes-public li:nth-child(3) .pos { background: #d39b6a; color: #2e1a08; }
.prizes-public .what b { display: block; font-size: 13px; color: var(--testo-2); text-transform: uppercase; letter-spacing: .5px; }
@media (min-width: 720px) { .prizes-public ol { grid-template-columns: repeat(3, 1fr); } .prizes-public li { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

.prize-edit { border-top: 1px solid var(--crema-2); padding-top: var(--sp-3); margin-top: var(--sp-3); }
.prize-edit:first-child { border-top: none; margin-top: 0; }
.prize-edit-head { display: flex; align-items: center; gap: var(--sp-2); }
.pos-badge { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; background: var(--oro); color: #2e2300; }
.pos-badge.p2 { background: #cfcac2; color: #2b2b2b; }
.pos-badge.p3 { background: #d39b6a; color: #2e1a08; }
textarea.i.list { min-height: 140px; }
.counter-chars { display: block; text-align: right; }
.prizes-public .what .sum { display: block; }
.prizes-public details { margin-top: var(--sp-2); }
.prizes-public summary { cursor: pointer; color: var(--bordeaux); font-weight: 600; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.prizes-public summary::-webkit-details-marker { display: none; }
.prizes-public summary::after { content: '▾'; transition: transform var(--t-fast) var(--ease); }
.prizes-public details[open] summary::after { transform: rotate(180deg); }
.prizes-public .items { margin: 0; padding: 0 0 0 18px; columns: 1; font-size: 14.5px; line-height: 1.6; text-align: left; }
.prizes-public .items li { display: list-item; padding: 0; background: none; grid-template-columns: none; }
@media (min-width: 520px) { .prizes-public .items { columns: 2; column-gap: 28px; } }
@media (min-width: 720px) { .prizes-public .items { columns: 1; } }
.prizes-public li { align-items: start; }
