:root {
  --bg: #0a0d14;
  --panel: #121722;
  --line: #222a3a;
  --text: #f3f1ea;
  --muted: #8b93a7;
  --free: #26314a;
  --free-line: #34405c;
  --sold: #f3f1ea;
  --green: #1fbf75;
  --red: #ff4b4b;
  --hot: #ff7a2f;
  --accent: #ffd34d;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 70% -10%, #1a2340 0%, transparent 60%), var(--bg);
  color: var(--text);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  min-height: 100vh;
  padding: 0 16px 32px;
}
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
a { color: var(--accent); }

.top { max-width: 1200px; margin: 0 auto; padding: 28px 0 8px; }
.brand { display: flex; align-items: center; gap: 12px; }
.flag { display: inline-flex; height: 26px; border-radius: 4px; overflow: hidden; }
.flag i { width: 9px; }
.flag i:nth-child(1) { background: var(--green); }
.flag i:nth-child(2) { background: #f3f1ea; }
.flag i:nth-child(3) { background: var(--red); }
h1 { font-size: clamp(32px, 6vw, 64px); font-weight: 800; letter-spacing: -0.03em; margin: 0; line-height: 1; text-transform: uppercase; }
.lead { font-size: clamp(19px, 2.8vw, 26px); font-weight: 600; line-height: 1.25; margin: 14px 0 0; max-width: 820px; }
.lead b { color: var(--accent); }
.tag { color: var(--muted); font-size: clamp(16px, 2.2vw, 20px); margin: 8px 0 0; }
.tag b { color: var(--text); }

.counter { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.counter-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.counter .right { text-align: right; }
.label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.big { font-size: clamp(34px, 7vw, 60px); font-weight: 700; line-height: 1.05; }
.mid { font-size: clamp(18px, 3vw, 26px); font-weight: 700; }
.bar { height: 12px; background: var(--free); border-radius: 99px; margin-top: 14px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--green), #f3f1ea 50%, var(--red)); background-size: 100000px 100%; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.bar-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; }

.layout { max-width: 1200px; margin: 18px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

.map-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: relative; }
.map-tools { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.map-promos { position: absolute; z-index: 5; top: 62px; right: 20px; width: min(330px, calc(100% - 40px)); display: grid; justify-items: stretch; gap: 8px; }
.map-proof-stack { width: 210px; justify-self: end; display: grid; gap: 6px; }
.map-proof { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px;
  color: var(--text); background: rgba(12,16,25,.9); border: 1px solid rgba(255,211,77,.9); border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0,0,0,.38), 0 0 0 3px rgba(255,211,77,.08); backdrop-filter: blur(8px); pointer-events: none; }
.map-proof[hidden] { display: none; }
.map-proof-eye { width: 9px; height: 9px; overflow: hidden; color: var(--accent); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(255,211,77,.13); }
.map-proof div { display: grid; line-height: 1.05; }
.map-proof b { font-size: 17px; color: var(--accent); }
.map-proof small { margin-bottom: 3px; color: var(--muted); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.map-momentum { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; color: #fff; background: linear-gradient(135deg,rgba(78,16,13,.96),rgba(21,14,18,.96)); border: 1px solid rgba(255,92,68,.9); border-radius: 12px; box-shadow: 0 8px 22px rgba(0,0,0,.34), 0 0 0 3px rgba(255,75,75,.06); backdrop-filter: blur(8px); animation: momentumUrgency 1.35s ease-in-out infinite; }
.map-momentum[hidden] { display: none; }
.map-momentum-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #ff5c44; box-shadow: 0 0 0 5px rgba(255,75,75,.14), 0 0 18px rgba(255,75,75,.75); }
.map-momentum div { display: grid; line-height: 1.1; }
.map-momentum b { font-size: 13px; letter-spacing: -.01em; text-transform: uppercase; }
.map-momentum b span { color: #ff806b; font-size: 17px; }
.map-momentum small { margin-top: 3px; color: #ffc6bb; font-size: 8px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
@keyframes momentumUrgency { 50% { border-color: #ffb09f; box-shadow: 0 8px 26px rgba(0,0,0,.38), 0 0 0 5px rgba(255,75,75,.09), 0 0 24px rgba(255,75,75,.2); } }
.gold-hunt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  color: #fff7d0; background: linear-gradient(135deg, rgba(37,28,7,.96), rgba(12,16,25,.96)); border: 1px solid #ffd34d; border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0,0,0,.4), 0 0 22px rgba(255,211,77,.12); text-align: left; }
.gold-hunt[hidden] { display: none; }
.gold-hunt-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; color: #291e00; background: linear-gradient(145deg,#fff1a8,#ffd34d 55%,#b77a00); font-size: 20px; box-shadow: 0 0 18px rgba(255,211,77,.35); }
.gold-hunt > span:nth-child(2) { display: grid; line-height: 1.05; }
.gold-hunt b { font-size: 13px; letter-spacing: .03em; }
.gold-hunt small { margin-top: 4px; color: #d5c98f; font-size: 11px; }
.gold-hunt em { margin-left: auto; color: var(--accent); font-size: 16px; font-style: normal; font-weight: 900; white-space: nowrap; }
.gold-hunt.found { border-color: var(--green); box-shadow: 0 8px 26px rgba(0,0,0,.4), 0 0 22px rgba(31,191,117,.16); }
.gold-hunt.found em { min-width: 88px; padding: 7px 9px; border: 1px solid rgba(255,112,72,.72); border-radius: 10px; color: #fff; background: linear-gradient(145deg,#9f2719,#5c1711); text-align: center; font-size: 22px; line-height: 1; box-shadow: 0 0 0 4px rgba(255,75,75,.1), 0 0 20px rgba(255,75,75,.28); animation: timerUrgency 1.05s ease-in-out infinite; }
.gold-hunt.found em small { display: block; margin: 0 0 4px; color: #ffd8cd; font-family: var(--sans); font-size: 8px; letter-spacing: .11em; line-height: 1; }
@keyframes timerUrgency { 50% { transform: scale(1.055); box-shadow: 0 0 0 6px rgba(255,75,75,.08), 0 0 27px rgba(255,75,75,.38); } }
.map-title { min-width: 0; display: grid; font-weight: 600; color: var(--muted); line-height: 1.2; }
.map-title b { color: var(--text); font-size: 17px; }
.map-title small { margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; }
#map { width: 100%; height: auto; display: block; aspect-ratio: 1018 / 1305; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
#map.free, #map.zoomed { touch-action: none; cursor: grab; }
#map .prov { fill: #1a2132; stroke: #121722; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; cursor: pointer; transition: fill .22s cubic-bezier(.22,.61,.36,1), opacity .22s cubic-bezier(.22,.61,.36,1); }
#map .prov.hl { fill: #26334f; }
#map.zoomed .prov:not(.in) { opacity: .35; }
#map .t { fill: #33415f; cursor: pointer; transition: fill .22s cubic-bezier(.22,.61,.36,1), opacity .22s cubic-bezier(.22,.61,.36,1), stroke .18s ease-out; }
#map .t.hl { fill: #667fb9; stroke: rgba(219,228,255,.75); stroke-width: .7; }
#map.previewing .prov:not(.hl) { opacity: .22; }
#map.previewing .t:not(.hl) { opacity: .34; }
#map .t.sold.hl, #map .t.sold:hover { opacity: .85; }
#map .t.picked { fill: var(--accent); }
#map .t.gold-pixel { fill: #33415f; }
#map .t.gold-pixel.glint { transform-box: fill-box; transform-origin: center; animation: goldGlimmer .62s ease-in-out infinite; }
#map .t.gold-pixel.found { fill: #1fbf75; stroke: #dff8e9; animation: none; filter: drop-shadow(0 0 5px rgba(31,191,117,.8)); }
#map .gold-buyer-halo { fill: none; stroke: #c98200; stroke-width: 8; opacity: .72; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 5px #ffae00) drop-shadow(0 0 11px rgba(255,174,0,.95)); animation: goldBuyerHalo 1.15s ease-in-out infinite; }
#map .gold-buyer-frame { fill: none; stroke: #fff0a8; stroke-width: 2.8; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 2px #ffd34d) drop-shadow(0 0 5px rgba(255,174,0,1)); animation: goldBuyerShine 1.15s ease-in-out infinite; }
#map .gold-buyer-star { fill: #ffd34d; stroke: #3b2600; stroke-width: .55; paint-order: stroke fill; filter: drop-shadow(0 0 2px #ffae00) drop-shadow(0 0 6px rgba(255,174,0,1)); transform-box: fill-box; transform-origin: center; animation: goldBuyerStar .85s ease-in-out infinite; }
@keyframes goldBuyerHalo { 50% { stroke: #ffd34d; stroke-width: 10; opacity: 1; filter: drop-shadow(0 0 7px #ffca28) drop-shadow(0 0 16px rgba(255,174,0,1)); } }
@keyframes goldBuyerShine { 50% { stroke: #fff8d5; stroke-width: 3.8; filter: drop-shadow(0 0 3px #ffd34d) drop-shadow(0 0 8px rgba(255,174,0,1)); } }
@keyframes goldBuyerStar { 50% { transform: scale(1.3) rotate(18deg); fill: #ffae00; } }
#map .gold-marker { opacity: 0; pointer-events: none; }
#map .gold-marker.glint { opacity: 1; }
#map .gold-ring { fill: rgba(255,211,77,.04); stroke: #ffd34d; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: goldBurst .9s ease-out infinite; }
#map .gold-halo { fill: rgba(255,211,77,.28); stroke: #fff1a8; stroke-width: 2.2; filter: drop-shadow(0 0 9px rgba(255,211,77,1)); animation: goldHaloPulse .62s ease-in-out infinite; }
#map .gold-star { fill: #241900; pointer-events: none; }
@keyframes goldGlimmer { 0%,100% { transform: scale(1.12); fill: #e3ad20; stroke: #ffe785; stroke-width: 1.8; filter: drop-shadow(0 0 5px rgba(255,211,77,.8)); } 50% { transform: scale(1.58); fill: #fff078; stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 16px rgba(255,211,77,1)); } }
@keyframes goldBurst { 0% { transform: scale(.62); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes goldHaloPulse { 0%,100% { opacity: .72; } 50% { opacity: 1; } }
#map.zoomed .t:not(.in) { opacity: .25; }
#map text { pointer-events: none; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 8px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw.free { background: #33415f; }
.sw.sold { background: var(--sold); }
.sw.hot { background: var(--hot); }
.sw.gold { background: var(--accent); border: 1px solid #fff1a8; box-shadow: 0 0 8px rgba(255,211,77,.65); }

button { font: inherit; cursor: pointer; border-radius: 10px; border: 1px solid var(--line); background: var(--text); color: var(--bg); padding: 10px 14px; font-weight: 700; }
button.ghost { background: transparent; color: var(--text); padding: 6px 12px; }
button:disabled { opacity: .5; cursor: not-allowed; }

.side { display: flex; flex-direction: column; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.panel h2 { font-size: 20px; margin: 0 0 12px; letter-spacing: -0.01em; }
.how { padding-left: 20px; margin: 0; color: var(--muted); line-height: 1.5; }
.how li { margin-bottom: 6px; }
.how b { color: var(--text); }
.note { color: var(--muted); font-size: 13px; margin: 0; }

.prov-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.prov-head h2 { margin: 0; }
.chip { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 3px 8px; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.stats div { background: var(--free); border-radius: 12px; padding: 10px; }
.stats b { display: block; font-size: 20px; }
.stats small { color: var(--muted); font-size: 12px; }
.fill { height: 8px; background: var(--free); border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.fill span { display: block; height: 100%; background: var(--hot); }
.cta { width: 100%; padding: 14px; font-size: 17px; }
.owners { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.owners a { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; background: var(--free); border-radius: 10px; padding: 8px; }
.owners .av { width: 28px; height: 28px; border-radius: 6px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #0a0d14; background-size: cover; }

.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--free); cursor: pointer; }
.board li:hover { background: #222b40; }
.board .pos { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 13px; }
.board .nm { font-weight: 600; }
.board .eur { font-family: "JetBrains Mono", monospace; font-weight: 700; }
.board li:first-child .pos { color: var(--accent); }
.empty { color: var(--muted); margin: 0; }

.tip { position: fixed; z-index: 10; pointer-events: none; background: #f3f1ea; color: #0a0d14; border-radius: 10px; padding: 8px 10px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.4); max-width: 240px; }
.tip small { display: block; font-weight: 400; color: #4a5266; }

.foot { max-width: 1200px; margin: 24px auto 0; color: var(--muted); font-size: 14px; display: flex; gap: 6px; flex-wrap: wrap; }

.payment-status { max-width: 1200px; margin: 14px auto 0; padding: 15px 48px 15px 18px; border-radius: 14px; position: relative;
  display: grid; gap: 3px; color: #092a1b; background: #dff8e9; border: 1px solid #75d9a2; }
.payment-status[hidden] { display: none; }
.payment-status b { font-size: 18px; }
.payment-status span { line-height: 1.45; }
.payment-status button { position: absolute; right: 8px; top: 8px; color: #092a1b; border: 0; }
.checkout-resume { max-width: 1200px; margin: 14px auto 0; padding: 14px 52px 14px 18px; border-radius: 14px; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff2c7; color: #332707; border: 1px solid #e7c85d; }
.checkout-resume[hidden] { display: none; }
.checkout-resume div { display: grid; gap: 3px; }
.checkout-resume span { font-size: 14px; }
.checkout-resume button { position: absolute; right: 8px; top: 8px; color: #332707; border: 0; }
.pay-cta { display: inline-block; border-radius: 12px; background: var(--text); color: var(--bg); text-decoration: none; text-align: center; font-weight: 800; font-size: 17px; padding: 15px 22px; }
.checkout-resume .pay-cta { flex: none; }

.founders { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 12px 14px 12px 18px; border-radius: 14px; background: linear-gradient(90deg, rgba(31,191,117,.18), rgba(255,75,75,.14)); border: 1px solid #2f3b55; font-size: 17px; }
.founders[hidden] { display: none; }
.founders b { color: var(--accent); }
.founders .mono { font-size: 20px; }

.hero-grid { max-width: 1200px; margin: 18px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.prize { background: linear-gradient(160deg, #2a2210, var(--panel) 70%); border: 1px solid #4a3c17; border-radius: var(--radius); padding: 18px 20px; }
.prize-amt { font-size: clamp(34px, 5vw, 46px); font-weight: 700; color: var(--accent); line-height: 1.1; margin: 2px 0 6px; }
.prize p { margin: 0; color: var(--muted); line-height: 1.45; }
.prize p b { color: var(--text); }
.prize .leader { margin-top: 10px; color: var(--text); font-size: 15px; }
.prize .leader b { color: var(--accent); }
.panel .cta { margin-top: 14px; }

.apply { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); padding: 20px; }
.apply::backdrop { background: rgba(5,7,12,.75); backdrop-filter: blur(4px); }
.apply form { display: grid; gap: 12px; }
.apply form[hidden] { display: none; }
.apply-head { display: flex; justify-content: space-between; align-items: center; }
.apply h2 { margin: 0; font-size: 22px; }
.apply label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.apply input:not([type=radio]):not([type=checkbox]), .apply select, .apply textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--free); border: 1px solid var(--free-line); border-radius: 10px; padding: 11px 12px; width: 100%; }
.apply input:focus, .apply select:focus, .apply textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kind { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.kind legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.kind label { display: flex; align-items: center; gap: 6px; background: var(--free); border: 1px solid var(--free-line); border-radius: 99px; padding: 8px 12px; cursor: pointer; }
.kind label:has(input:checked) { border-color: var(--accent); }
.opt { color: var(--muted); font-weight: 400; }
.consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 8px; font-weight: 400 !important; color: var(--muted); }
.consent input { margin-top: 3px; }
.hp { position: absolute; left: -9999px; }
.formmsg { margin: 0; min-height: 1.2em; color: var(--muted); }
.formmsg b { color: var(--green); }
.gold-reward { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #ffd34d; border-radius: 11px; color: #fff7d0; background: linear-gradient(135deg,rgba(255,211,77,.14),rgba(255,211,77,.04)); }
.gold-reward[hidden] { display: none; }
.gold-reward > span { color: var(--accent); font-size: 25px; }
.gold-reward div { display: grid; gap: 2px; }
.gold-reward small { color: #d5c98f; font-size: 11px; }
.durata [data-price] s { color: var(--muted); font-weight: 500; }
.durata [data-price] span { color: var(--accent); }
.mini-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.mini-steps span { display: flex; align-items: center; gap: 6px; padding: 9px 8px; border-radius: 10px; background: var(--free); color: var(--muted); font-size: 12px; }
.mini-steps b { display: grid; place-items: center; width: 21px; height: 21px; flex: none; border-radius: 50%; background: var(--accent); color: var(--bg); }
.form-success { text-align: center; padding: 10px 4px 2px; }
.form-success[hidden] { display: none; }
.form-success .success-mark { width: 62px; height: 62px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #07170f; font-size: 34px; font-weight: 800; }
.form-success h2 { font-size: 28px; }
.form-success > p { line-height: 1.55; }
.form-success > .pay-cta { display: block; width: 100%; margin: 18px 0 0; }
.checkout-total { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--free); display: flex; justify-content: space-between; gap: 12px; }
.checkout-total b { color: var(--accent); }
.form-success ol { text-align: left; margin: 22px 0; padding: 16px 16px 16px 36px; border-radius: 12px; background: var(--free); line-height: 1.55; }
.form-success li + li { margin-top: 7px; }
.form-success .cta { margin-top: 20px; }

.gold-win { width: min(430px, calc(100vw - 28px)); border: 1px solid #ffd34d; border-radius: 20px; padding: 28px 24px 22px; color: var(--text); background: radial-gradient(circle at 50% 0, #4b3707, #171408 36%, #0d1018 75%); text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 45px rgba(255,211,77,.16); }
.gold-win::backdrop { background: rgba(3,5,9,.82); backdrop-filter: blur(6px); }
.gold-close { position: absolute; top: 10px; right: 10px; border: 0; background: transparent; color: #c8bea1; font-size: 18px; }
.gold-burst { width: 74px; height: 74px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 20px; color: #211700; background: linear-gradient(145deg,#fff2aa,#ffd34d 55%,#aa7100); box-shadow: 0 0 0 8px rgba(255,211,77,.07), 0 0 35px rgba(255,211,77,.38); font-size: 40px; transform: rotate(4deg); }
.gold-kicker { margin: 0; color: #d8c98a; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.gold-win h2 { margin: 7px 0 9px; color: var(--accent); font-size: clamp(34px,9vw,48px); line-height: 1; letter-spacing: -.04em; }
.gold-win > p:not(.gold-kicker) { margin: 0; color: #d3ccb7; line-height: 1.5; }
.gold-timer { display: grid; gap: 2px; margin: 18px 0; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.gold-timer small { color: #a99f85; }
.gold-timer b { color: #fff1a8; font-size: 27px; }
.gold-claim { width: 100%; padding: 15px; border-color: #ffe485; color: #241900; background: linear-gradient(135deg,#fff1a8,#ffd34d 55%,#c98b09); font-size: 17px; box-shadow: 0 8px 24px rgba(255,211,77,.18); }
.gold-demo-note { display: block; margin-top: 12px; color: #817966; }
.gold-intro h2 { font-size: clamp(30px,8vw,43px); }
.gold-intro-hint { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; padding: 12px 13px; border: 1px solid rgba(255,211,77,.22); border-radius: 12px; background: rgba(255,255,255,.05); text-align: left; }
.gold-intro-hint span { flex: none; font-size: 20px; line-height: 1.3; }
.gold-intro-hint p { margin: 0; color: #d3ccb7; font-size: 14px; line-height: 1.45; }

.why { max-width: 1200px; margin: 18px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.why h2 { margin: 0 0 16px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .mini-steps { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .checkout-resume { align-items: stretch; flex-direction: column; }
  .checkout-resume .pay-cta { width: 100%; }
}
.why article { background: var(--free); border-radius: 12px; padding: 16px; }
.why-n { color: var(--accent); font-size: 14px; }
.why h3 { margin: 6px 0 6px; font-size: 18px; line-height: 1.2; }
.why p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 15px; }
.why-cta { margin-top: 16px; width: auto; padding: 14px 22px; }

#map .plus rect { fill: var(--accent); }
#map .plus path { stroke: #0a0d14; stroke-width: .11; stroke-linecap: round; }
#map .plus { animation: pop .12s ease-out; }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }
.why { margin-top: 18px; }

.zoom { margin-left: auto; display: flex; gap: 6px; }
.zoom button { width: 38px; height: 38px; padding: 0; font-size: 20px; line-height: 1; display: grid; place-items: center; }
.map-wrap .map-tools { flex-wrap: wrap; }
.logo-pick { display: flex; align-items: center; gap: 10px; }
.logo-pick img { width: 56px; height: 56px; border-radius: 10px; object-fit: contain; background: #fff; flex: none; }
.apply input[type=file] { font: inherit; font-size: 14px; color: var(--muted); }
.apply input[type=file]::file-selector-button { font: inherit; font-weight: 700; border: 1px solid var(--free-line); background: var(--free); color: var(--text); border-radius: 10px; padding: 8px 12px; margin-right: 10px; cursor: pointer; }

/* Page flow: on phones the map comes right after the counter, before the rest. */
.flow { max-width: 1200px; margin: 0 auto; }
@media (max-width: 900px) {
  .flow { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
  .flow .hero-grid, .flow .layout { display: contents; }
  .flow .founders, .flow .counter, .flow .prize, .flow .map-wrap, .flow .side, .flow .why { margin: 0; }
  .flow .side { display: contents; }
  .map-wrap { order: 1; }
  .counter { order: 2; }
  #panel { order: 3; }
  .founders { order: 4; }
  .prize { order: 5; }
  .side > .panel:last-child { order: 6; }
  .why { order: 7; }
  .top { padding-top: 14px; }
  h1 { font-size: 30px; }
  .flag { height: 22px; }
  .lead { font-size: 16px; margin-top: 8px; }
  .tag { display: none; }
  /* the whole of Italy must be visible on landing, even on small phones */
  #map { max-height: calc(100svh - 230px); width: auto; max-width: 100%; margin: 0 auto; }
  .map-tools { min-height: 0; margin-bottom: 4px; }
  .map-title { font-size: 14px; }
  .zoom button { width: 34px; height: 34px; font-size: 18px; }
  .map-wrap .zoom { display: none; }
  .map-wrap:has(#map.zoomed) .zoom, .map-wrap:has(#map.free) .zoom { display: flex; }
  .legend { justify-content: center; font-size: 12px; margin-top: 4px; }
  .counter { padding: 14px 16px; }
  .map-promos { position: static; width: 100%; display: grid; gap: 0; margin: 3px 0 6px; }
  .map-proof-stack { position: absolute; z-index: 6; top: 101px; right: 10px; width: 196px; gap: 5px; }
  .map-proof { width: 100%; margin: 0; padding: 6px 8px; border-radius: 9px; }
  .map-proof-eye { width: 7px; height: 7px; box-shadow: 0 0 0 4px rgba(255,211,77,.12); }
  .map-proof b { font-size: 17px; }
  .map-proof small { margin-bottom: 3px; font-size: 8px; }
  .map-momentum { padding: 6px 8px; border-radius: 9px; }
  .map-momentum-dot { width: 7px; height: 7px; box-shadow: 0 0 0 4px rgba(255,75,75,.14), 0 0 14px rgba(255,75,75,.7); }
  .map-momentum b { font-size: 12px; }
  .map-momentum b span { font-size: 15px; }
  .map-momentum small { font-size: 8px; }
  .gold-hunt { width: 100%; max-width: none; margin: 0; padding: 8px 9px; }
  .gold-hunt-icon { width: 29px; height: 29px; }
  .gold-hunt em { font-size: 9px; }
  .gold-hunt.found em { min-width: 76px; padding: 6px 7px; font-size: 18px; }
  .big { font-size: 34px; }
  .map-wrap { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  #map .t.gold-pixel.glint { animation: none; fill: #ffd34d; stroke: #fff8d5; stroke-width: 2; }
  #map .gold-ring, #map .gold-halo { animation: none; }
  #map .gold-ring { opacity: .75; }
  .gold-hunt.found em { animation: none; }
  .map-momentum { animation: none; }
  #map .gold-buyer-halo { animation: none; }
  #map .gold-buyer-frame { animation: none; }
  #map .gold-buyer-star { animation: none; }
}

/* iOS zooms into inputs smaller than 16px */
.apply input:not([type=radio]):not([type=checkbox]):not([type=file]), .apply select, .apply textarea { font-size: 16px; }

/* touch preselection */
#map .t.pre { fill: #d7e1ff; transition: fill .08s; }
.precard { position: relative; margin-top: 8px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 12px;
  background: #121722; border: 1px solid #35415e; box-shadow: 0 8px 22px rgba(0,0,0,.32); }
.precard[hidden] { display: none; }
.pc-text { flex: 1; min-width: 0; display: grid; }
.pc-text b { font-size: 17px; line-height: 1.2; }
.pc-text small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.pc-actions { display: flex; gap: 6px; flex: none; }
.pc-actions button { padding: 9px 12px; font-size: 14px; border-radius: 9px; white-space: nowrap; }
.pc-x { flex: none; width: 28px; height: 28px; padding: 0; background: transparent; color: var(--muted); border: 0; font-size: 16px; order: 3; }
.pc-text small.hot { color: #ff9a5c; font-weight: 600; }
.hotnote { margin: 0 0 12px; color: #ff9a5c; font-weight: 700; font-size: 16px; }
.tip .hotline { color: #c2410c; }
.stats b.gift { color: var(--accent); font-size: 20px; }

/* sticky "free spots left" bar */
.freebar { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20;
  width: min(560px, calc(100vw - 24px)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px;
  background: rgba(18, 23, 34, 0.97); border: 1px solid #4a3c17; box-shadow: 0 14px 34px rgba(0,0,0,.5), 0 0 0 1px rgba(255,211,77,.15); }
.freebar[hidden] { display: none; }
.fb-text { flex: 1; min-width: 0; display: grid; gap: 6px; font-size: 15px; }
.fb-text b { color: var(--text); }
.fb-text .mono { color: var(--accent); font-size: 17px; }
.fb-track { display: block; height: 6px; border-radius: 99px; background: #26314a; overflow: hidden; }
.fb-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ff4b4b, #ffd34d); }
.freebar button { flex: none; background: var(--accent); color: #0a0d14; border: 0; padding: 10px 16px; }
body.has-freebar { padding-bottom: 96px; }
.pricelist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: -4px 0 14px; }
.pricelist div { background: var(--free); border-radius: 10px; padding: 8px 10px; display: grid; }
.pricelist small { color: var(--muted); font-size: 12px; }
.pricelist b { font-size: 17px; }
.durata label b { color: var(--accent); font-weight: 700; }

/* legal pages */
body.legal .top .brand { color: var(--text); text-decoration: none; }
body.legal h1 { font-size: clamp(26px, 5vw, 40px); }
.legal-body { max-width: 760px; margin: 18px auto 40px; line-height: 1.6; }
.legal-body h2 { font-size: 28px; margin: 0 0 4px; }
.legal-body h3 { font-size: 19px; margin: 22px 0 6px; }
.legal-body p, .legal-body li { color: #d6d9e2; }
.legal-body ul { padding-left: 20px; }
.consent a { color: var(--accent); }

/* Post-payment invoice details: separate from checkout to avoid conversion friction. */
.invoice-panel { max-width: 680px; }
.invoice-panel form { display: grid; gap: 14px; }
.invoice-panel form > label, .invoice-panel #business-fields > label, .invoice-panel .row2 > label {
  display: grid; gap: 6px; font-size: 15px; font-weight: 600;
}
.invoice-panel input:not([type=radio]) {
  width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid var(--free-line); border-radius: 10px;
  background: var(--free); color: var(--text); font: inherit; font-size: 16px; font-weight: 400;
}
.invoice-panel input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.invoice-panel #business-fields { display: grid; gap: 14px; }
.invoice-panel #business-fields[hidden], .invoice-panel form[hidden], .invoice-panel #invoice-done[hidden] { display: none; }
.invoice-panel .cta { width: 100%; margin-top: 4px; }
.invoice-panel .success-mark { margin-inline: auto; }
.invoice-panel .payment-confirmed { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 18px; border: 1px solid rgba(82, 214, 143, .38); border-radius: 14px; background: rgba(82, 214, 143, .09); }
.invoice-panel .payment-confirmed .success-mark { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #07170f; font-size: 24px; font-weight: 800; }
.invoice-panel .payment-confirmed strong, .invoice-panel .payment-confirmed small { display: block; }
.invoice-panel .payment-confirmed small { margin-top: 2px; color: #c9d0dc; }
.invoice-panel .invoice-map-link { display: block; margin-top: 18px; text-align: center; text-decoration: none; }
@media (max-width: 560px) {
  .invoice-page { padding-inline: 12px; }
  .invoice-page .top { padding-top: 20px; }
  .invoice-page h1 { font-size: 28px; }
  .invoice-panel { padding: 18px; margin-top: 12px; }
  .invoice-panel h2 { font-size: 25px; }
}

