/* III Concurs d'Aparadors · Palma 2026-2027 — DEMO Grupo Fantome */
:root {
  color-scheme: light;
  --bg: #fbf6ee;
  --bg-2: #f4ebdd;
  --surface: #fffdf9;
  --ink: #2a1d18;
  --muted: #5f4f46;
  --line: #e4d7c4;
  --red: #8e1b25;
  --red-2: #6f141c;
  --red-soft: #f6e3df;
  --green: #1d5640;
  --green-2: #15412f;
  --green-soft: #e1eee6;
  --gold: #b48a2f;
  --gold-ink: #7d5c14;
  --gold-light: #e3b55b;
  --gold-soft: #f6ead0;
  --focus: #1b4fd1;
  --ok: #1d5640;
  --warn: #8a5a00;
  --warn-soft: #fbf0d6;
  --err: #a1161f;
  --err-soft: #fbe5e3;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(42, 29, 24, .06), 0 8px 24px rgba(42, 29, 24, .07);
  --font-title: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --topbar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 1000; }
.demo-banner {
  background: var(--ink); color: #f7efe3; font-size: .8125rem; line-height: 1.35;
  padding: 6px var(--gutter); display: flex; gap: 10px; align-items: center; justify-content: center; text-align: center;
}
.demo-pill { background: var(--gold-light); color: var(--ink); font-weight: 700; letter-spacing: .08em; font-size: .7rem; padding: 2px 8px; border-radius: 99px; flex: none; }
.site-header { background: rgba(251, 246, 238, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-height: 44px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-ed { font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; }
.brand-city { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.inst-logos { display: flex; gap: 8px; }
.logo-ph {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  border: 1.5px dashed #a9988a; color: var(--muted); border-radius: 8px;
  font-size: .7rem; line-height: 1.2; padding: 4px 8px; width: 112px; min-height: 40px; background: transparent;
}
.lang { display: flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; background: var(--surface); }
.lang button {
  font: inherit; font-size: .85rem; font-weight: 700; border: 0; background: transparent; color: var(--muted);
  min-width: 44px; min-height: 40px; border-radius: 99px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--red); color: #fff; }
.menu-btn { display: none; }
.mainnav { border-top: 1px solid var(--line); }
.mainnav ul { list-style: none; display: flex; gap: 4px; margin: 0 auto; padding-top: 4px; padding-bottom: 4px; overflow-x: auto; }
.mainnav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 99px;
  text-decoration: none; color: var(--ink); font-weight: 500; white-space: nowrap; font-size: .95rem;
}
.mainnav a:hover { background: var(--bg-2); color: var(--ink); }
.mainnav a[aria-current="page"] { background: var(--red-soft); color: var(--red-2); font-weight: 700; }

@media (max-width: 960px) {
  .site-header .inst-logos { display: none; }
}
@media (max-width: 760px) {
  .header-in { gap: 8px; min-height: 60px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-ed { font-size: .95rem; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .9rem; font-weight: 600;
    min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); cursor: pointer;
  }
  .menu-btn svg { width: 20px; height: 20px; }
  .menu-btn span { display: none; }
  .mainnav { display: none; }
  .mainnav.open { display: block; max-height: calc(100vh - 110px); overflow-y: auto; }
  .mainnav ul { flex-direction: column; padding-top: 8px; padding-bottom: 12px; }
  .mainnav a { width: 100%; border-radius: 10px; }
  .demo-banner { font-size: .72rem; padding-top: 5px; padding-bottom: 5px; }
  .lang button { min-width: 40px; }
}
@media (max-width: 380px) {
  .brand-city { display: none; }
}

/* ---------- Generic ---------- */
main { display: block; min-height: 60vh; outline: none; }
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section--tint { background: var(--bg-2); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .6em; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.page-head { padding-top: clamp(32px, 5vw, 56px); padding-bottom: 8px; }
.page-head p { max-width: 68ch; color: var(--muted); }
.grid { display: grid; gap: 20px; }
.g1 { grid-template-columns: minmax(0, 1fr); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.stack > * + * { margin-top: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  min-height: 48px; padding: 12px 22px; border-radius: 99px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-2); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-soft { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .9rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; letter-spacing: .02em; white-space: nowrap; }
.badge-a { background: var(--red-soft); color: var(--red-2); }
.badge-b { background: var(--green-soft); color: var(--green-2); }
.badge-ok { background: var(--green-soft); color: var(--green-2); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-err { background: var(--err-soft); color: var(--err); }
.badge-neutral { background: var(--bg-2); color: var(--muted); }
.dot-a, .dot-b { width: 10px; height: 10px; display: inline-block; flex: none; }
.dot-a { background: var(--red); border-radius: 50%; }
.dot-b { background: var(--green); border-radius: 2px; transform: rotate(45deg); }

.notice { border-radius: var(--radius-sm); padding: 14px 16px; border: 1px solid; display: flex; gap: 12px; align-items: flex-start; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.notice p:last-child { margin-bottom: 0; }
.notice-info { background: var(--gold-soft); border-color: #e6d1a3; color: var(--ink); }
.notice-ok { background: var(--green-soft); border-color: #b9d6c5; color: var(--green-2); }
.notice-err { background: var(--err-soft); border-color: #efbdb8; color: var(--err); }
.notice-warn { background: var(--warn-soft); border-color: #ecd49b; color: #5e3e00; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); background:
  radial-gradient(1200px 500px at 85% -10%, rgba(227, 181, 91, .28), transparent 60%),
  radial-gradient(800px 400px at -10% 110%, rgba(29, 86, 64, .12), transparent 60%), var(--bg); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--red); font-weight: 600; }
.hero-cta { margin-top: 28px; }
.hero-art { position: relative; aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--red-2); }
.hero-art svg { width: 100%; height: 100%; display: block; }
.counters { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.counter b { display: block; font-family: var(--font-title); font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.counter span { font-size: .9rem; color: var(--muted); }
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; aspect-ratio: 1 / 1; border-radius: var(--radius); order: -1; width: 100%; }
}

.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.timeline .t-date { font-family: var(--font-title); font-size: 1.3rem; font-weight: 600; display: block; margin: 4px 0 6px; }
.timeline .t-key { border-color: var(--red); }
.timeline .t-key2 { border-color: var(--green); }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

.mod-card { display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.mod-card .mod-letter { font-family: var(--font-title); font-size: 4rem; line-height: .9; font-weight: 700; }
.mod-a .mod-letter { color: var(--red); }
.mod-b .mod-letter { color: var(--green); }
.mod-card ul { margin: 0; padding-left: 1.2em; }
.prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: auto; padding-top: 12px; }
.prize { text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 6px; }
.prize b { display: block; font-family: var(--font-title); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.prize span { font-size: .8rem; color: var(--muted); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { counter-increment: s; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; margin-bottom: 10px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Filters + shop cards ---------- */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; align-items: end; margin: 20px 0 8px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters .field { margin: 0; }
@media (max-width: 860px) { .filters { grid-template-columns: 1fr 1fr; } .filters .f-search { grid-column: 1 / -1; } }
@media (max-width: 480px) { .filters { grid-template-columns: 1fr; } }
.result-count { margin: 12px 0 16px; color: var(--muted); font-size: .95rem; }
.shop-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.shop-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; min-width: 0; }
.shop-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(42,29,24,.06), 0 16px 32px rgba(42,29,24,.1); }
.shop-card .thumb { aspect-ratio: 4 / 3; background: var(--bg-2); position: relative; }
.shop-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-card .thumb .badge { position: absolute; top: 12px; left: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.shop-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shop-card h3 { font-size: 1.15rem; margin: 0; }
.shop-card h3 a { color: var(--ink); text-decoration: none; }
.shop-card h3 a::after { content: ''; position: absolute; inset: 0; }
.shop-card { position: relative; }
.shop-card .meta { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.shop-card .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; position: relative; z-index: 1; align-items: center; justify-content: space-between; }
.votes-mini { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.empty { padding: 40px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
.req { color: var(--red); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], input[type="number"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #b9a796; border-radius: var(--radius-sm);
  min-height: 48px; padding: 10px 14px; width: 100%; min-width: 0;
}
textarea { min-height: 110px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
[aria-invalid="true"] { border-color: var(--err) !important; background: #fffafa; }
.err-msg { color: var(--err); font-size: .88rem; font-weight: 600; }
.err-msg:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; min-height: 48px; }
.choice + .choice { margin-top: 8px; }
.choice input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--red); }
.choice:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; padding: 8px 0; }
.check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--red); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-section { padding: 24px; margin-bottom: 20px; }
.form-section h2 { font-size: 1.35rem; }
.phone-row { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 10px; }
@media (max-width: 420px) { .phone-row { grid-template-columns: minmax(0, 1fr); } }
.otp-input { font-family: ui-monospace, 'SF Mono', Menlo, monospace !important; font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; max-width: 280px; }

.uploader { border: 2px dashed #b9a796; border-radius: var(--radius); padding: 20px; text-align: center; background: #fff; }
.uploader input[type="file"] { font: inherit; max-width: 100%; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.previews figure { margin: 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); position: relative; }
.previews img { width: 100%; height: 100%; object-fit: cover; }
.previews figcaption { position: absolute; bottom: 0; left: 0; right: 0; font-size: .7rem; background: rgba(42,29,24,.75); color: #fff; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.meter > span { display: block; height: 100%; background: var(--green); width: 0; }
.meter.over > span { background: var(--err); }

/* ---------- Shop detail ---------- */
.breadcrumb { font-size: .9rem; margin: 24px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: var(--muted); }
.detail-head { display: flex; gap: 20px; align-items: center; margin: 20px 0 24px; flex-wrap: wrap; }
.shop-logo { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-title); font-size: 1.9rem; font-weight: 700; color: #fff; flex: none; box-shadow: inset 0 0 0 4px rgba(255,255,255,.35); }
.detail-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 6px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; display: block; min-width: 0; }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery button:first-child img { aspect-ratio: auto; }
.side-card { position: sticky; top: calc(var(--topbar-h) + 16px); }
.vote-big { width: 100%; font-size: 1.1rem; min-height: 56px; }
.minimap { height: 220px; border-radius: var(--radius-sm); border: 1px solid var(--line); margin-top: 12px; z-index: 0; }
.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qr-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr-holder { background: #fff; padding: 10px; border-radius: 10px; border: 1px solid var(--line); width: 150px; height: 150px; flex: none; display: grid; place-items: center; }
.qr-holder img, .qr-holder canvas { width: 128px !important; height: 128px !important; }
.qr-box > div:last-child { flex: 1; min-width: 180px; }
.lightbox { position: fixed; inset: 0; background: rgba(20, 12, 10, .88); z-index: 3000; display: none; place-items: center; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 85vh; max-width: 100%; border-radius: var(--radius-sm); }
.lightbox .btn { position: absolute; top: 16px; right: 16px; }

/* Material establishment (poster + sticker) */
.materials { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 620px) { .materials { grid-template-columns: minmax(0, 1fr); } }
.poster { aspect-ratio: 148 / 210; background: var(--red); color: #fff; border-radius: 6px; padding: 8% 8% 6%; display: flex; flex-direction: column; gap: 4%; position: relative; overflow: hidden; box-shadow: var(--shadow); max-width: 320px; }
.poster::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(circle at 15% 12%, rgba(227,181,91,.5) 0 2px, transparent 3px),
  radial-gradient(circle at 80% 20%, rgba(227,181,91,.5) 0 2px, transparent 3px),
  radial-gradient(circle at 60% 8%, rgba(255,255,255,.5) 0 1.5px, transparent 2.5px),
  radial-gradient(circle at 30% 30%, rgba(255,255,255,.4) 0 1.5px, transparent 2.5px); pointer-events: none; }
.poster > * { position: relative; }
.poster .p-ed { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; }
.poster .p-title { font-family: var(--font-title); font-size: 1.15rem; line-height: 1.1; font-weight: 600; }
.poster .p-shop { font-family: var(--font-title); font-size: 1rem; background: rgba(255,255,255,.12); padding: 6px 8px; border-radius: 6px; }
.poster .p-qr { background: #fff; padding: 6px; border-radius: 6px; width: 46%; aspect-ratio: 1; align-self: center; display: grid; place-items: center; }
.poster .p-qr img, .poster .p-qr canvas { width: 100% !important; height: auto !important; }
.poster .p-slogan { font-size: .78rem; text-align: center; font-weight: 600; }
.poster .p-logos { display: flex; gap: 6px; margin-top: auto; }
.poster .p-logos span { flex: 1; border: 1px dashed rgba(255,255,255,.6); border-radius: 4px; font-size: .5rem; text-align: center; padding: 4px 2px; line-height: 1.2; }
.sticker { width: 180px; height: 180px; border-radius: 50%; background: var(--surface); border: 6px solid var(--green); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px; box-shadow: var(--shadow); gap: 4px; }
.sticker svg { width: 38px; height: 38px; }
.sticker b { font-family: var(--font-title); font-size: 1.05rem; line-height: 1.1; color: var(--green-2); }
.sticker span { font-size: .68rem; color: var(--muted); line-height: 1.2; }

/* ---------- Map ---------- */
.map-wrap { position: relative; }
#bigmap { height: min(70vh, 640px); min-height: 420px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 16px 0; font-size: .95rem; }
.legend span { display: inline-flex; gap: 8px; align-items: center; }
.pin { width: 30px; height: 30px; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); color: #fff; font-size: 11px; font-weight: 700; font-family: var(--font-body); }
.pin-a { background: var(--red); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.pin-a > i { transform: rotate(45deg); font-style: normal; }
.pin-b { background: var(--green); border-radius: 6px; }
.pin-b > i { font-style: normal; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content { margin: 12px; width: 220px !important; }
.pop img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.pop h3 { font-size: 1.05rem; margin: 0 0 2px; }
.pop p { margin: 0 0 10px !important; font-size: .85rem; color: var(--muted); }
.pop .btn-row { gap: 6px; }
.pop .btn { padding: 8px 12px; min-height: 44px; font-size: .85rem; flex: 1; }
.map-list { margin-top: 16px; }
.map-list summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* ---------- Vote ---------- */
.vote-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 28px; align-items: start; padding-bottom: 56px; }
@media (max-width: 900px) { .vote-layout { grid-template-columns: minmax(0, 1fr); } }
.vote-shop { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); margin-bottom: 20px; }
.vote-shop img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.vote-shop .shop-logo { width: 56px; height: 56px; font-size: 1.2rem; }
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; flex-wrap: wrap; }
.stepper li { font-size: .85rem; padding: 6px 12px; border-radius: 99px; background: var(--bg-2); color: var(--muted); font-weight: 600; }
.stepper li[aria-current="step"] { background: var(--ink); color: #fff; }
.stepper li.done { background: var(--green-soft); color: var(--green-2); }
.otp-demo { background: var(--ink); color: #fff; border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 18px; }
.otp-demo .code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 2rem; letter-spacing: .35em; color: var(--gold-light); font-weight: 700; display: block; margin: 4px 0; }
.otp-demo p { margin: 0; font-size: .88rem; color: #e9dfd2; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; }
.success-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; margin-bottom: 16px; }
.success-mark svg { width: 40px; height: 40px; color: var(--green); }
.picker { max-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.picker a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); min-height: 52px; }
.picker a:hover { background: var(--bg); }
.picker a:last-child { border-bottom: 0; }
.rules-list { padding-left: 1.2em; margin: 0; }
.rules-list li { margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; min-height: 52px; display: flex; align-items: center; list-style: none; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; font-size: 1.4rem; color: var(--red); line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 18px 16px; color: var(--muted); }
.channel { display: flex; flex-direction: column; gap: 8px; }
.channel .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.channel .ico svg { width: 24px; height: 24px; }
.channel .big { font-family: var(--font-title); font-size: 1.35rem; font-weight: 600; }

/* ---------- Admin ---------- */
.admin-bar { background: var(--ink); color: #f7efe3; }
.admin-bar .wrap { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.admin-bar p { margin: 0; font-size: .9rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.kpi .k-label { font-size: .85rem; color: var(--muted); display: block; }
.kpi .k-value { font-family: var(--font-title); font-size: 2rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; display: block; margin: 4px 0 2px; }
.kpi .k-sub { font-size: .8rem; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
th { background: var(--bg-2); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .btn-sm { min-height: 36px; padding: 4px 12px; font-size: .8rem; }
.table-actions { display: flex; gap: 6px; }
.icon-btn { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--ink); }
.admin-head { display: flex; gap: 12px; align-items: end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.admin-head h2 { font-size: 1.4rem; margin: 0; }
.rank-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: .88rem; padding: 4px 0; }
.rank-row .bar { height: 12px; background: var(--bg-2); border-radius: 0 4px 4px 0; overflow: hidden; }
.rank-row .bar span { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.rank-row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
@media (max-width: 480px) { .rank-row { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 40px; } }
.sec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sec-list li { display: flex; gap: 12px; align-items: flex-start; }
.sec-list svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 2px; }
.sec-card { border-color: #b9d6c5; background: linear-gradient(180deg, var(--green-soft), var(--surface) 120px); }

/* ---------- Legal ---------- */
.prose { max-width: 72ch; padding-bottom: 56px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #eadfd2; margin-top: 0; padding: 40px 0 28px; }
.footer-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr; } }
.foot-title { font-family: var(--font-title); font-size: 1.1rem; color: #fff; }
.site-footer .logo-ph { border-color: #8a7a6e; color: #cbbdb0; }
.inst-logos--foot { margin-top: 12px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.foot-links a { color: #f7efe3; display: inline-flex; min-height: 44px; align-items: center; }
.foot-links a:hover { color: var(--gold-light); }
.foot-by { color: #fff; }
.foot-small { font-size: .82rem; color: #c3b4a6; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 99px; font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 4000; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Motion ---------- */
.fade-in { animation: fadeIn .4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.twinkle { animation: tw 3s ease-in-out infinite; }
@keyframes tw { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .twinkle { opacity: .8; }
}

/* ---------- Print: only the poster ---------- */
@media print {
  body.printing > *:not(main), body.printing main > *:not(.print-target) { display: none !important; }
  body.printing .print-target { display: block !important; padding: 0; }
  body.printing .print-target > *:not(.materials) { display: none !important; }
}
