/* pizza1: Pizza Mondaze (templates/pizza.html). Warm night: gold cheese, tomato red and the club's purple. */
.pz-hero { position: relative; max-width: 1200px; margin: 18px auto 0; padding: 0 20px; }
.pz-hero-in { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 52px;
    align-items: center; padding: 44px 48px 40px; border-radius: 28px 28px 0 0; border: 1px solid rgba(251, 191, 36, 0.30); border-bottom: 0;
    background: radial-gradient(640px 420px at 14% 40%, rgba(251, 191, 36, 0.20), transparent 62%),
                radial-gradient(560px 380px at 96% 0%, rgba(239, 68, 68, 0.16), transparent 60%),
                linear-gradient(160deg, rgba(28, 12, 36, 0.94), rgba(10, 5, 22, 0.97));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.pz-hero-glow { position: absolute; inset: -40px 10% auto; height: 240px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(251, 191, 36, 0.22), transparent); filter: blur(30px); }
.pz-slices { position: absolute; inset: 0 20px; overflow: hidden; pointer-events: none; z-index: 1; border-radius: 28px; }
.pz-slices i { position: absolute; top: -40px; left: calc(var(--i) * 10% + 3%); font-style: normal; font-size: 22px; opacity: 0;
    animation: pz-fall 11s linear infinite; animation-delay: calc(var(--i) * -1.15s); }
@keyframes pz-fall { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 0.35; } 85% { opacity: 0.25; }
    100% { transform: translateY(620px) rotate(320deg); opacity: 0; } }
.pz-art { position: relative; z-index: 2; margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 1;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.5), 0 0 46px rgba(251, 191, 36, 0.32), 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: rotate(-1.5deg); transition: transform 0.35s ease; }
.pz-art:hover { transform: rotate(0) scale(1.015); }
.pz-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pz-copy { position: relative; z-index: 2; min-width: 0; }
.pz-kicker { display: inline-block; padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, #fde047, #f59e0b);
    color: #2a1600; font-weight: 900; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pz-copy h1 { margin: 16px 0 12px; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 0.98; font-weight: 900; letter-spacing: -0.02em; }
.pz-gold { background: linear-gradient(180deg, #fde047, #f59e0b 70%, #ea580c); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 4px 18px rgba(245, 158, 11, 0.35)); }
.pz-lead { margin: 0; color: #e4def5; font-size: 1.06rem; line-height: 1.6; max-width: 560px; }
.pz-lead b { color: #fff; }
.pz-clock { display: inline-grid; gap: 2px; margin: 22px 0 0; padding: 14px 20px; border-radius: 16px; min-width: 260px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(251, 191, 36, 0.35); box-shadow: inset 0 0 30px rgba(251, 191, 36, 0.08); }
.pz-clock small { color: #fcd34d; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pz-clock b { font-size: 1.9rem; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; }
.pz-clock em { color: #c4b5fd; font-size: 0.82rem; font-style: italic; }
.pz-clock.is-done b { color: #4ade80; }
.pz-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.pz-pills li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: 0.84rem; color: #e9e4f7;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.pz-pills li i { width: 8px; height: 8px; border-radius: 50%; background: var(--p); box-shadow: 0 0 10px var(--p); }
.pz-pills b { color: #fff; }
.pz-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid rgba(251, 191, 36, 0.30); border-top: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0 0 28px 28px; overflow: hidden;
    background: rgba(12, 6, 24, 0.92); }
.pz-steps li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 18px 22px; }
.pz-steps li + li { border-left: 1px solid rgba(255, 255, 255, 0.07); }
.pz-steps li b { color: #fff; font-size: 0.95rem; }
.pz-steps li small { grid-column: 2; color: #a79fc2; font-size: 0.82rem; }
.pz-step-ico { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 20px;
    background: rgba(255, 255, 255, 0.06); }
.pz-steps li.is-now { background: linear-gradient(180deg, rgba(251, 191, 36, 0.14), rgba(251, 191, 36, 0.03)); }
.pz-steps li.is-now::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #fde047, #f97316); }
.pz-steps li.is-now .pz-step-ico { background: rgba(251, 191, 36, 0.22); box-shadow: 0 0 18px rgba(251, 191, 36, 0.35); }

/* blocks */
.pz-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.pz-block--one { grid-template-columns: minmax(0, 1fr); }
section.block.pz-block { padding-top: 28px; }
section.block.first.pz-block { padding-top: 34px; }
.pz-card { position: relative; padding: 26px 28px; border-radius: 22px; background: linear-gradient(165deg, rgba(30, 16, 46, 0.86), rgba(12, 7, 26, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.10); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); min-width: 0; }
.pz-card h2, .pz-h2 { margin: 0 0 16px; font-size: 1.32rem; font-weight: 900; }
.pz-card h2 small { margin-left: 8px; color: #a79fc2; font-size: 0.78rem; font-weight: 600; }
.pz-note { margin: 0 0 14px; color: #cfc6e6; line-height: 1.6; }
.pz-note b, .pz-state b, .pz-trait b { color: #fff; }
.pz-note em, .pz-state em, .pz-trait em { color: #c4b5fd; font-style: italic; }
.pz-login { margin-top: 4px; }

.pz-days { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pz-days li { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08); text-align: center; }
.pz-days b { font-size: 0.92rem; }
.pz-days small { color: #a79fc2; font-size: 0.75rem; }
.pz-dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 19px; color: #6b6386;
    background: rgba(255, 255, 255, 0.05); margin-bottom: 4px; }
.pz-days li.is-said { border-color: rgba(251, 191, 36, 0.5); background: linear-gradient(180deg, rgba(251, 191, 36, 0.16), rgba(251, 191, 36, 0.04)); }
.pz-days li.is-said .pz-dot { background: rgba(251, 191, 36, 0.22); box-shadow: 0 0 16px rgba(251, 191, 36, 0.45); }
.pz-days li.is-today { outline: 2px solid rgba(196, 181, 253, 0.55); outline-offset: 2px; }
.pz-days li.is-future { opacity: 0.6; }
.pz-state { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e4def5; line-height: 1.55; }
.pz-state.is-in { border-color: rgba(74, 222, 128, 0.45); background: rgba(74, 222, 128, 0.08); }
.pz-state.is-off { border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.07); }
.pz-trait { margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; color: #fde68a; background: rgba(251, 191, 36, 0.08); border: 1px dashed rgba(251, 191, 36, 0.45); }
.pz-x { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; background: #000; color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22); font-weight: 800; transition: transform 0.2s, background 0.2s; }
.pz-x:hover, .pz-x:focus-visible { transform: translateY(-2px); background: #111; }
.pz-gm { margin-top: 2px; }
.pz-draw .pz-x { margin: 0 0 16px; }

/* the draw */
.pz-winner { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center;
    padding: 18px; border-radius: 18px; margin-bottom: 16px;
    background: radial-gradient(400px 160px at 0% 50%, rgba(251, 191, 36, 0.25), transparent 70%), rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(251, 191, 36, 0.45); }
.pz-winner-face { position: relative; z-index: 1; width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
    box-shadow: 0 0 0 3px #fbbf24, 0 0 26px rgba(251, 191, 36, 0.6); }
.pz-winner > div:last-child { position: relative; z-index: 1; display: grid; gap: 6px; justify-items: start; min-width: 0; }
.pz-winner small { color: #fcd34d; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pz-winner-name { font-size: 1.35rem; font-weight: 900; overflow-wrap: anywhere; }
.pz-winner-name a { color: #fff; }
.pz-winner-name a:hover { color: #fde047; }
.pz-status { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; background: rgba(255, 255, 255, 0.08); color: #e4def5; }
.pz-status--paid { background: rgba(74, 222, 128, 0.16); color: #86efac; }
.pz-status--claimed { background: rgba(34, 211, 238, 0.14); color: #67e8f9; }
.pz-status--expired { background: rgba(248, 113, 113, 0.12); color: #fca5a5; }
.pz-bonus { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; color: #2a1600;
    background: linear-gradient(135deg, #fde047, #f59e0b); }
.pz-confetti { position: absolute; inset: 0; pointer-events: none; }
.pz-confetti i { position: absolute; top: -10px; left: calc(var(--i) * 8.3%); width: 6px; height: 10px; border-radius: 2px;
    background: hsl(calc(var(--i) * 37deg + 30deg), 90%, 62%); opacity: 0; animation: pz-conf 3.6s ease-in infinite; animation-delay: calc(var(--i) * 0.28s); }
@keyframes pz-conf { 0% { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: 0.9; } 100% { transform: translateY(150px) rotate(400deg); opacity: 0; } }
.pz-photo { margin: 0 0 16px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); }
.pz-photo img { display: block; width: 100%; max-height: 380px; object-fit: cover; }
.pz-faces { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; }
.pz-faces li { position: relative; }
.pz-face { display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #241638; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14); }
.pz-faces li.is-me .pz-face { box-shadow: 0 0 0 2px #c4b5fd, 0 0 12px rgba(196, 181, 253, 0.6); }
.pz-faces li.is-winner .pz-face { box-shadow: 0 0 0 2px #fbbf24, 0 0 14px rgba(251, 191, 36, 0.7); }
.pz-more { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07);
    color: #e4def5; font-weight: 800; font-size: 0.85rem; }
.pz-fair { margin-top: 6px; color: #cfc6e6; font-size: 0.85rem; }
.pz-fair summary { cursor: pointer; color: #a79fc2; font-weight: 800; font-size: 0.84rem; width: max-content; max-width: 100%; }
.pz-fair summary:hover, .pz-fair summary:focus-visible { color: #fff; }
.pz-fair ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 8px; line-height: 1.5; }
.pz-fair li::marker { color: #f59e0b; }
.pz-fair b { color: #fff; }
.pz-fair em { color: #c4b5fd; font-style: italic; }
.pz-fair code { font-size: 0.75rem; color: #fde68a; word-break: break-all; background: rgba(0, 0, 0, 0.3); padding: 1px 6px; border-radius: 6px; }

/* claim */
.pz-claim { max-width: 760px; }
.pz-files { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 4px 0 16px; }
.pz-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pz-file-box { display: grid; place-content: center; gap: 4px; text-align: center; min-height: 170px; border-radius: 18px; cursor: pointer;
    border: 2px dashed rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.05) center / cover no-repeat; transition: border-color 0.2s, transform 0.2s; }
.pz-file-box:hover, .pz-file input:focus-visible + .pz-file-box { border-color: #fde047; transform: translateY(-2px); }
.pz-file-box small { color: #a79fc2; }
.pz-file-box.has-file { border-style: solid; }
.pz-file-box.has-file b, .pz-file-box.has-file small { padding: 2px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.62); justify-self: center; }
.pz-field { display: grid; gap: 6px; margin: 0 0 14px; }
.pz-field span { color: #cfc6e6; font-weight: 700; font-size: 0.86rem; }
.pz-field em { color: #a79fc2; font-weight: 400; }
.pz-field select, .pz-field input { width: 100%; padding: 11px 14px; border-radius: 12px; color: #fff; font: inherit;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); }
.pz-field select:focus, .pz-field input:focus { outline: 2px solid rgba(251, 191, 36, 0.6); outline-offset: 1px; }
.pz-preview { margin: 6px 0 16px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(196, 181, 253, 0.35); }
.pz-preview > small { display: block; margin-bottom: 10px; color: #c4b5fd; font-weight: 800; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pz-preview .pz-wall-card { max-width: 300px; }
.pz-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pz-actions .btn[disabled], .pz-host .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.pz-error { margin: 0 0 12px; color: #fca5a5; font-weight: 700; }

/* hosts */
.pz-host { border-color: rgba(34, 211, 238, 0.35); }
.pz-host-grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; align-items: start; }
.pz-host-doc { display: grid; gap: 6px; color: #a79fc2; font-size: 0.8rem; }
.pz-host-doc img { width: 100%; max-height: 340px; object-fit: contain; border-radius: 14px; background: #000; border: 1px solid rgba(255, 255, 255, 0.14); }
.pz-host-pay { display: grid; gap: 8px; align-content: start; }
.pz-host-k { color: #a79fc2; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.pz-wallet { display: block; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); color: #67e8f9; word-break: break-all; cursor: copy;
    border: 1px solid rgba(34, 211, 238, 0.3); font-size: 0.85rem; }
.pz-wallet.is-copied { border-color: #4ade80; color: #86efac; }
.pz-host-pay .btn { justify-self: start; margin-bottom: 8px; }
.pz-hist { margin: 10px 0 0; color: #a79fc2; font-size: 0.85rem; }

/* wall */
.pz-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.pz-wall-card { overflow: hidden; border-radius: 18px; background: linear-gradient(165deg, rgba(30, 16, 46, 0.9), rgba(12, 7, 26, 0.95));
    border: 1px solid rgba(251, 191, 36, 0.25); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); transition: transform 0.25s, border-color 0.25s; }
.pz-wall-card:hover { transform: translateY(-4px); border-color: rgba(251, 191, 36, 0.6); }
.pz-wall-card > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #1a0f2b; }
.pz-wall-card > div { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center; padding: 12px 14px; }
.pz-wall-card > div .pz-face { grid-row: span 2; width: 28px; height: 28px; }
.pz-wall-card b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-wall-card b a { color: #fff; }
.pz-wall-card small { color: #a79fc2; font-size: 0.78rem; }
.pz-wall-card .pz-bonus { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }

/* how */
.pz-how ul { margin: 0; padding-left: 20px; display: grid; gap: 9px; color: #cfc6e6; line-height: 1.6; }
.pz-how li::marker { color: #f59e0b; }
.pz-how b { color: #fff; font-weight: 800; }
.pz-how em { color: #c4b5fd; font-style: italic; }
.pz-how a { color: #fde047; }

.pz-you .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 980px) {
    .pz-hero-in { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 26px 20px 28px; }
    .pz-art { max-width: 420px; width: 100%; justify-self: center; }
    .pz-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pz-steps li:nth-child(3) { border-left: 0; }
    .pz-steps li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.07); }
    .pz-block { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .pz-hero { padding: 0 12px; }
    .pz-steps li { padding: 14px 12px; column-gap: 8px; }
    .pz-step-ico { width: 34px; height: 34px; font-size: 17px; }
    .pz-steps li b { font-size: 0.86rem; }
    .pz-card { padding: 20px 16px; }
    .pz-clock { min-width: 0; width: 100%; }
    .pz-days { gap: 6px; }
    .pz-dot { width: 32px; height: 32px; font-size: 16px; }
    .pz-files, .pz-host-grid { grid-template-columns: minmax(0, 1fr); }
    .pz-winner { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
    .pz-winner > div:last-child { justify-items: center; }
}
@media (prefers-reduced-motion: reduce) {
    .pz-slices, .pz-confetti { display: none; }
    .pz-art, .pz-art:hover, .pz-wall-card, .pz-file-box { transition: none; transform: none; }
}

/* pizza1b (Mortimer 30-11): the bascdao.com/gm plate and the host's name in their rank colour */
.pz-how a.pz-plate { display: inline-flex; align-items: center; gap: 6px; margin: 0 2px; padding: 2px 10px 2px 8px; border-radius: 999px;
    border: 1px solid rgba(245,158,11,0.55); background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(244,114,182,0.12));
    color: #fde68a; font-weight: 800; font-size: 0.88rem; line-height: 1.5; text-decoration: none; white-space: nowrap; vertical-align: 1px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease; }
.pz-how a.pz-plate:hover, .pz-how a.pz-plate:focus-visible { color: #fff; border-color: rgba(253,224,71,0.9);
    background: linear-gradient(135deg, rgba(245,158,11,0.32), rgba(244,114,182,0.2)); box-shadow: 0 0 18px rgba(245,158,11,0.3); outline: none; }
.pz-plate-sun { font-size: 0.85rem; line-height: 1; font-style: normal; }
.pz-plate-ico { flex: none; width: 12px; height: 12px; opacity: 0.75; transition: transform .18s ease, opacity .18s ease; }
.pz-how a.pz-plate:hover .pz-plate-ico, .pz-how a.pz-plate:focus-visible .pz-plate-ico { opacity: 1; transform: translate(1px, -1px); }
.pz-how a.pz-host { color: var(--pz-rc, #fde047); font-weight: 800; text-decoration: none; cursor: pointer;
    border-bottom: 1px dashed color-mix(in srgb, var(--pz-rc, #fde047) 55%, transparent); transition: border-color .18s ease, text-shadow .18s ease; }
.pz-how a.pz-host:hover, .pz-how a.pz-host:focus-visible { border-bottom-style: solid; border-color: var(--pz-rc, #fde047);
    text-shadow: 0 0 12px color-mix(in srgb, var(--pz-rc, #fde047) 45%, transparent); outline: none; }
@media (prefers-reduced-motion: reduce) { .pz-how a.pz-plate, .pz-plate-ico, .pz-how a.pz-host { transition: none; } }

/* pizza1c (Mortimer 30-11: «un poquito de show … que se pueda repetir»): the draw's show (static/js/pizza.js). A dark night
   over the page, the faces pass under the slice and brake on the winner; only transform and opacity move. */
.pz-unseen .pz-winner, .pz-unseen .pz-photo, .pz-unseen .pz-draw .pz-x { visibility: hidden; }
.pz-unseen .pz-faces .is-winner .pz-face { box-shadow: none; border-color: transparent; }
.pz-show-open { overflow: hidden; }
.pz-replay { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 16px; border-radius: 12px; cursor: pointer;
    border: 1px solid rgba(245,158,11,0.55); background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(244,114,182,0.12));
    color: #fde68a; font: inherit; font-weight: 800; font-size: 0.9rem; transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease; }
.pz-replay svg { width: 16px; height: 16px; flex: none; }
.pz-replay:hover, .pz-replay:focus-visible { color: #fff; border-color: rgba(253,224,71,0.9); box-shadow: 0 0 18px rgba(245,158,11,0.3); outline: none; }
.pz-draw .pz-replay + script + .pz-x, .pz-draw .pz-replay ~ .pz-x { margin-left: 8px; }

.pzs { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px 16px; overflow: auto;
    background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(46,20,5,0.93), rgba(6,3,14,0.975) 70%); animation: pzs-in .35s ease both; }
.pzs-in { position: relative; width: min(760px, 100%); display: grid; justify-items: center; gap: 18px; text-align: center; }
.pzs-head { display: grid; gap: 4px; }
.pzs-head small { color: #fcd34d; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.pzs-head b { color: #fff; font-size: clamp(1.25rem, 3.4vw, 1.7rem); font-weight: 900; }
.pzs-stage { position: relative; width: 100%; padding-top: 34px; transition: opacity .5s ease, transform .5s ease; }
.pzs-pointer { position: absolute; top: 0; left: 50%; z-index: 3; font-size: 30px; line-height: 1; transform: translateX(-50%) rotate(180deg);
    filter: drop-shadow(0 4px 10px rgba(245,158,11,0.7)); }
.pzs-window { position: relative; overflow: hidden; height: 108px; border-radius: 22px; border: 1px solid rgba(245,158,11,0.4);
    background: linear-gradient(180deg, rgba(40,20,60,0.85), rgba(18,10,30,0.92)); box-shadow: inset 0 0 40px rgba(0,0,0,0.6), 0 0 40px rgba(245,158,11,0.12);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.pzs-strip { position: absolute; top: 15px; left: 0; display: flex; gap: 12px; will-change: transform; }
.pzs-tile { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,0.16); background: #241637;
    transition: transform .4s ease, opacity .4s ease, border-color .4s ease, box-shadow .4s ease; }
.pzs-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pzs-spot { position: absolute; left: 50%; top: 34px; width: 108px; height: 108px; transform: translateX(-50%); border-radius: 26px; pointer-events: none;
    border: 2px solid rgba(253,224,71,0.75); box-shadow: 0 0 26px rgba(245,158,11,0.45), inset 0 0 18px rgba(245,158,11,0.2); }
.pzs.is-slow .pzs-spot { animation: pzs-pulse .7s ease-in-out infinite; }
.pzs.is-hit .pzs-tile { opacity: 0.28; }
.pzs.is-hit .pzs-tile.is-target { opacity: 1; transform: scale(1.22); border-color: #fde047; box-shadow: 0 0 28px rgba(253,224,71,0.8); }
.pzs.is-won .pzs-stage { opacity: 0; transform: scale(0.94); height: 0; padding: 0; overflow: hidden; }
.pzs-win { position: relative; display: grid; justify-items: center; gap: 8px; padding: 6px 0 2px; animation: pzs-pop .6s cubic-bezier(.2,1.4,.4,1) both; }
.pzs-win[hidden] { display: none; }
.pzs-halo { position: relative; width: 168px; height: 168px; display: grid; place-items: center; margin-bottom: 6px; }
.pzs-halo::before { content: ''; position: absolute; inset: 0; border-radius: 50%; animation: pzs-turn 9s linear infinite;
    background: conic-gradient(#f59e0b 0 9%, #fde047 9% 12.5%, #f97316 12.5% 21.5%, #fde047 21.5% 25%, #f59e0b 25% 34%, #fde047 34% 37.5%, #f97316 37.5% 46.5%, #fde047 46.5% 50%,
        #f59e0b 50% 59%, #fde047 59% 62.5%, #f97316 62.5% 71.5%, #fde047 71.5% 75%, #f59e0b 75% 84%, #fde047 84% 87.5%, #f97316 87.5% 96.5%, #fde047 96.5% 100%);
    box-shadow: 0 0 60px rgba(245,158,11,0.55); }
.pzs-win-face { position: relative; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 5px solid #1a0f2b; background: #241637; }
.pzs-win-tag { color: #fcd34d; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.pzs-win-name { color: #fff; font-size: clamp(1.7rem, 6vw, 2.6rem); font-weight: 900; line-height: 1.1; overflow-wrap: anywhere; text-shadow: 0 0 26px rgba(245,158,11,0.5); }
.pzs-win-what { color: #e9defc; font-size: 1.05rem; font-weight: 700; }
.pzs-conf { position: absolute; inset: -40px -10px auto; height: 0; pointer-events: none; }
.pzs-conf i { position: absolute; top: -30px; left: var(--x); width: 8px; height: 13px; border-radius: 2px; font-style: normal; opacity: 0;
    background: hsl(var(--h) 92% 60%); animation: pzs-fall 3.2s var(--d) ease-in both; }
.pzs-conf i.is-pizza { width: auto; height: auto; background: none; font-size: 20px; line-height: 1; }
.pzs-fair { margin: 0; color: #a99cc6; font-size: 0.8rem; }
.pzs-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pzs-btn { min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.07); color: #fff;
    font: inherit; font-weight: 800; font-size: 0.92rem; cursor: pointer; transition: background-color .18s ease, border-color .18s ease; }
.pzs-btn:hover, .pzs-btn:focus-visible { background: rgba(255,255,255,0.14); border-color: rgba(253,224,71,0.8); outline: none; }
.pzs-btn[hidden] { display: none; }
.pzs:not(.is-won) .pzs-again { display: none; }
.pzs.is-won .pzs-close { background: linear-gradient(135deg, #f59e0b, #ea580c); border-color: transparent; }
.pzs-say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes pzs-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pzs-pop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
@keyframes pzs-turn { to { transform: rotate(360deg); } }
@keyframes pzs-pulse { 0%, 100% { box-shadow: 0 0 26px rgba(245,158,11,0.45), inset 0 0 18px rgba(245,158,11,0.2); } 50% { box-shadow: 0 0 44px rgba(253,224,71,0.85), inset 0 0 22px rgba(245,158,11,0.35); } }
@keyframes pzs-fall { 0% { transform: translateY(0) rotate(0); opacity: 0; } 8% { opacity: 1; } 100% { transform: translateY(70vh) rotate(var(--r)); opacity: 0; } }
@media (max-width: 560px) {
    .pzs-window { height: 92px; } .pzs-strip { top: 13px; gap: 10px; } .pzs-tile { width: 62px; height: 62px; }
    .pzs-spot { width: 92px; height: 92px; border-radius: 22px; }
    .pzs-halo { width: 140px; height: 140px; } .pzs-win-face { width: 108px; height: 108px; }
}
@media (prefers-reduced-motion: reduce) { .pzs, .pzs-win, .pzs-halo::before, .pzs-conf i, .pzs.is-slow .pzs-spot { animation: none; } .pzs-conf { display: none; } .pz-replay, .pzs-btn, .pzs-tile, .pzs-stage { transition: none; } }

/* pizza1d: the show's 🔊/🔇 (pizza.js SND) and the slice's little tap with each face */
.pzs-sound { position: fixed; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.08); color: #fde68a; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.pzs-sound svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pzs-sound svg path:first-child { fill: currentColor; stroke-width: 1; }
.pzs-sound:hover, .pzs-sound:focus-visible { background: rgba(255,255,255,0.16); border-color: rgba(253,224,71,0.8); outline: none; }
.pzs-sound.is-off { color: #a99cc6; }
.pzs-sound.is-locked { animation: pzs-pulse 1.1s ease-in-out infinite; }
.pzs-pointer.is-tap { animation: pzs-tap .09s ease-out; }
@keyframes pzs-tap { 0% { transform: translateX(-50%) rotate(180deg) translateY(-3px); } 100% { transform: translateX(-50%) rotate(180deg); } }
@media (prefers-reduced-motion: reduce) { .pzs-sound.is-locked, .pzs-pointer.is-tap { animation: none; } .pzs-sound { transition: none; } }
