/* Off-Season Specials — template-parts/sections/dining-specials*.php */

.hph-sp {
    --sp-accent: var(--hph-primary, #51bae0);
    --sp-accent-rgb: var(--hph-primary-rgb, 81, 186, 224);
    --sp-ink: var(--hph-gray-900, #111827);
    --sp-muted: var(--hph-gray-600, #4b5563);
    --sp-line: var(--hph-gray-200, #e5e7eb);
    --sp-soft: var(--hph-gray-50, #f9fafb);
    --sp-hot: var(--hph-secondary, #e8a87c);
    --sp-hot-ink: var(--hph-primary-dark, #02333a);
    --sp-hot-text: var(--hph-secondary-dark, #9c6347);
    background: var(--hph-white, #fff);
    color: var(--sp-ink);
    padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem;
    scroll-margin-top: calc(var(--hph-header-height-main, 80px) + 1rem);
}

.hph-sp--compact { background: var(--sp-soft); }

.hph-sp__inner { max-width: 1100px; margin: 0 auto; }

.hph-sp .screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header */
.hph-sp__header { max-width: 760px; margin: 0 auto 1.75rem; text-align: center; }
.hph-sp__badge {
    display: inline-block; margin: 0 0 .75rem; padding: .25rem .9rem; border-radius: 999px;
    background: rgba(var(--sp-accent-rgb), .12); color: var(--sp-accent);
    font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hph-sp__title {
    margin: 0 0 .75rem; font-family: var(--hph-font-heading, inherit);
    font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--sp-ink);
}
.hph-sp__intro { color: var(--sp-muted); font-size: 1.05rem; line-height: 1.65; }
.hph-sp__intro p { margin: 0 0 .5rem; }

.hph-sp__notice {
    display: flex; gap: .6rem; align-items: flex-start; margin: 0 auto 1.25rem; max-width: 760px;
    padding: .85rem 1rem; border-radius: var(--hph-radius-lg, 12px);
    background: var(--hph-secondary-light, #fce4d6); border: 1px solid var(--hph-secondary, #e8a87c); color: var(--hph-secondary-dark, #9c6347); font-size: .95rem;
}

/* Sticky filter bar */
.hph-sp__bar {
    position: sticky; top: calc(var(--hph-header-height-main, 80px) + .5rem); z-index: 20;
    display: grid; gap: .75rem; padding: .85rem; margin-bottom: 1.25rem;
    background: var(--hph-white, #fff);
    border: 1px solid var(--sp-line); border-radius: var(--hph-radius-xl, 16px);
    box-shadow: var(--hph-shadow-float, 0 6px 20px rgba(0, 0, 0, .06));
}
.hph-sp--compact .hph-sp__bar { position: static; }

.hph-sp__days {
    display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hph-sp__days::-webkit-scrollbar { display: none; }

.hph-sp-tab {
    position: relative; flex: 1 0 auto; display: inline-flex; flex-direction: column; align-items: center; gap: .1rem;
    min-width: 3.4rem; padding: .45rem .7rem; border: 1px solid var(--sp-line); border-radius: var(--hph-radius-md, 10px);
    background: var(--hph-white, #fff); color: var(--sp-ink); font: inherit; font-weight: 600; font-size: .9rem; line-height: 1.2;
    cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.hph-sp-tab abbr { text-decoration: none; }
.hph-sp-tab:hover { border-color: var(--sp-accent); }
.hph-sp-tab:focus-visible { outline: 3px solid rgba(var(--sp-accent-rgb), .45); outline-offset: 2px; }
.hph-sp-tab__count { font-size: .72rem; font-weight: 500; color: var(--sp-muted); }
.hph-sp-tab.is-active { background: var(--sp-accent); border-color: var(--sp-accent); color: #fff; }
.hph-sp-tab.is-active .hph-sp-tab__count { color: var(--hph-white, #fff); opacity: .85; }
.hph-sp-tab.is-today::after {
    content: "Today"; position: absolute; top: -.55rem; left: 50%; transform: translateX(-50%);
    padding: 0 .35rem; border-radius: 999px; background: var(--sp-hot); color: var(--sp-hot-ink);
    font-size: .6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5;
}
.hph-sp__days { padding-top: .55rem; }

.hph-sp__filters { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: .5rem; }
.hph-sp__select select,
.hph-sp__search input {
    width: 100%; height: 2.6rem; padding: 0 .8rem; border: 1px solid var(--sp-line); border-radius: var(--hph-radius-md, 10px);
    background: var(--hph-white, #fff); color: var(--sp-ink); font: inherit; font-size: .95rem;
}
.hph-sp__search { position: relative; }
.hph-sp__search i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--hph-gray-400, #9ca3af); font-size: .85rem; }
.hph-sp__search input { padding-left: 2.2rem; }
.hph-sp__select select:focus,
.hph-sp__search input:focus { outline: none; border-color: var(--sp-accent); box-shadow: 0 0 0 3px rgba(var(--sp-accent-rgb), .2); }

.hph-sp__summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.hph-sp__count { margin: 0; color: var(--sp-muted); font-size: .95rem; }
.hph-sp__count strong { color: var(--sp-ink); font-size: 1.1rem; }

.hph-sp-random {
    display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border: 0; border-radius: 999px;
    background: var(--sp-hot); color: var(--sp-hot-ink); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
    box-shadow: var(--hph-shadow-float, 0 4px 14px rgba(0, 0, 0, .15)); transition: transform .15s, background .15s;
}
.hph-sp-random:hover { transform: translateY(-1px); background: var(--hph-secondary-dark, #9c6347); color: var(--hph-white, #fff); }
.hph-sp-random:focus-visible { outline: 3px solid var(--hph-secondary-dark, #9c6347); outline-offset: 2px; }
.hph-sp-random__icon { flex-shrink: 0; }
.hph-sp-random:hover .hph-sp-random__icon { animation: hph-sp-wiggle .5s ease; }
@keyframes hph-sp-wiggle { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }

/* Results */
.hph-sp-town { margin-bottom: 1.5rem; }
.hph-sp-town__name {
    display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; padding-bottom: .4rem;
    border-bottom: 2px solid var(--sp-ink); font-size: 1.15rem; font-weight: 700;
}
.hph-sp-town__name a { color: inherit; text-decoration: none; }
.hph-sp-town__name a:hover { color: var(--sp-accent); }
.hph-sp-town__count {
    padding: 0 .5rem; border-radius: 999px; background: var(--hph-gray-100, #f3f4f6);
    color: var(--sp-muted); font-size: .78rem; font-weight: 600; line-height: 1.6;
}

.hph-sp-list { list-style: none; margin: 0; padding: 0; }
.hph-sp-row {
    display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) auto; gap: .35rem 1.25rem; align-items: baseline;
    padding: .7rem .25rem; border-bottom: 1px solid var(--sp-line);
}
.hph-sp-row[hidden] { display: none; }
.hph-sp-row.is-ended { opacity: .55; }
.hph-sp-row__place { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.hph-sp-row__name { font-weight: 700; color: var(--sp-ink); text-decoration: none; line-height: 1.3; }
a.hph-sp-row__name:hover { color: var(--sp-accent); text-decoration: underline; }
.hph-sp-row__days { font-size: .78rem; font-weight: 600; color: var(--sp-accent); text-transform: uppercase; letter-spacing: .03em; }
.hph-sp:not([data-day="all"]) .hph-sp-row__days { display: none; }
.hph-sp-row__deal { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.hph-sp-row__special { font-weight: 600; line-height: 1.35; }
.hph-sp-row__details { font-size: .88rem; color: var(--sp-muted); line-height: 1.45; }
.hph-sp-row__meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem; }

.hph-sp-pill {
    display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px;
    background: rgba(var(--sp-accent-rgb), .1); color: var(--hph-primary-dark, #1d6f8c);
    font-size: .76rem; font-weight: 600; white-space: nowrap; line-height: 1.5;
}
.hph-sp-pill[hidden] { display: none; }
.hph-sp-pill i { font-size: .7rem; }
.hph-sp-pill--muted { background: var(--hph-gray-100, #f3f4f6); color: var(--sp-muted); }
.hph-sp-pill--accent { background: var(--hph-secondary-light, #fce4d6); color: var(--hph-secondary-dark, #9c6347); }
.hph-sp-pill--now { background: var(--hph-success-100, #ecfdf5); color: var(--hph-success-800, #065f46); }
.hph-sp-pill--now::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; animation: hph-sp-pulse 1.6s infinite; }
.hph-sp-pill--ended { background: var(--hph-gray-100, #f3f4f6); color: var(--sp-muted); }
@keyframes hph-sp-pulse { 50% { opacity: .35; } }

.hph-sp__empty { padding: 2rem 1rem; text-align: center; color: var(--sp-muted); }
.hph-sp-link {
    padding: 0; border: 0; background: none; color: var(--sp-accent); font: inherit; font-weight: 600;
    text-decoration: none; cursor: pointer;
}
.hph-sp-link:hover { text-decoration: underline; }
.hph-sp__footer { margin-top: 1rem; color: var(--sp-muted); font-size: .88rem; }
.hph-sp__footer p { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: space-between; }

/* Modal: Pick for Me */
/* Theme resets strip the UA dialog margin, which pins it to the top-left. */
.hph-sp-modal {
    --sp-bright: var(--hph-primary-600, #1c9bc9);
    --sp-town: var(--hph-primary-700, #17758f);
    --sp-tint: rgba(var(--sp-accent-rgb), .08);
    --sp-edge: rgba(var(--sp-accent-rgb), .3);
    --sp-modal-bg: var(--hph-white, #fff);
    --sp-face: #f7fcfe;
    --sp-face-2: #eef8fc;
    --sp-face-3: #e5f4fb;
    --sp-again-bg: var(--hph-primary-dark, #02333a);
    --sp-again-ink: var(--hph-white, #fff);
    position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100dvh - 2rem);
    overflow-x: hidden; overflow-y: auto; width: min(92vw, 440px); padding: 0; border: 0;
    border-radius: var(--hph-radius-xl, 16px); background: var(--sp-modal-bg);
    box-shadow: var(--hph-shadow-modal, 0 20px 48px rgba(2, 51, 58, .28)); text-align: center; color: var(--sp-ink);
}
html.hph-dark-mode .hph-sp-modal {
    --sp-bright: var(--hph-primary, #51bae0);
    --sp-town: var(--hph-primary-300, #8fd3ec);
    --sp-tint: rgba(var(--sp-accent-rgb), .14);
    --sp-modal-bg: var(--hph-gray-800, #1f2937);
    --sp-face: #123840;
    --sp-face-2: #164249;
    --sp-face-3: #1b4d56;
    --sp-again-bg: var(--hph-primary, #51bae0);
    --sp-again-ink: var(--hph-primary-dark, #02333a);
    color: var(--hph-gray-100, #f3f4f6);
}
.hph-sp-modal::backdrop { background: var(--hph-primary-darkest, #010a0e); opacity: .6; }
.hph-sp-modal[open] { animation: hph-sp-pop .22s ease-out; }
@keyframes hph-sp-pop { from { transform: scale(.94); opacity: 0; } }

.hph-sp-modal__body { display: grid; gap: .5rem; padding: 1.4rem 1.5rem 1.25rem; }

/* Close (right) and back (left) share one round button style */
.hph-sp-modal__close-form { position: absolute; top: .875rem; right: .875rem; z-index: 3; margin: 0; }
.hph-sp-modal__close,
.hph-sp-modal__back {
    display: grid; place-items: center; width: 2.1rem; height: 2.1rem; padding: 0; border: 0; border-radius: 50%;
    background: rgba(var(--sp-accent-rgb), .22); color: var(--hph-primary-dark, #02333a); font-size: .85rem; cursor: pointer;
    transition: background .15s;
}
html.hph-dark-mode .hph-sp-modal__close,
html.hph-dark-mode .hph-sp-modal__back { color: var(--hph-gray-100, #f3f4f6); }
.hph-sp-modal__close:hover,
.hph-sp-modal__back:hover { background: var(--sp-accent); color: var(--hph-primary-dark, #02333a); }
.hph-sp-modal__back { position: absolute; top: .875rem; left: .875rem; z-index: 3; }
.hph-sp-modal__back:not([hidden]) { animation: hph-sp-pop-in .3s ease-out; }
.hph-sp-modal__close:focus-visible,
.hph-sp-modal__back:focus-visible,
.hph-sp-action:focus-visible,
.hph-sp-random--again:focus-visible,
.hph-sp-shake:focus-visible { outline: 3px solid var(--sp-accent); outline-offset: 2px; }

/* Heading block */
.hph-sp-modal__eyebrow { margin: 0; height: 1rem; color: var(--sp-hot-text); font-size: .72rem; font-weight: 700; letter-spacing: .09em; line-height: 1rem; text-transform: uppercase; }
.hph-sp-modal__name { display: grid; place-items: center; height: 3.4rem; margin-top: -.1rem; }
.hph-sp-modal__place {
    margin: 0; width: 100%; font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: var(--sp-bright);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance;
}
.hph-sp-modal__town {
    display: flex; align-items: center; justify-content: center; gap: .4rem; height: 1.2rem; margin: -.1rem 0 0;
    color: var(--sp-town); font-size: .95rem; font-weight: 500;
}
.hph-sp-modal__town[hidden] { display: none; }
.hph-sp-modal__town i { font-size: .8rem; }

/* Stage: the die sits directly on the card */
.hph-sp-stage { position: relative; height: 11rem; margin-top: -.75rem; }
.hph-sp-stage__shadow {
    position: absolute; left: 50%; top: 10.1rem; width: 6.5rem; height: .75rem; margin-left: -3.25rem; border-radius: 50%;
    background: var(--hph-primary-dark, #02333a); opacity: .12;
}
html.hph-dark-mode .hph-sp-stage__shadow { background: #000; opacity: .35; }
.hph-sp-stage__ring {
    position: absolute; left: 50%; top: 9.9rem; width: 6.5rem; height: 1.25rem; margin-left: -3.25rem; border-radius: 50%;
    border: 2px solid var(--sp-accent); opacity: 0; pointer-events: none;
}
.hph-sp-stage__bits { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hph-sp-bit { position: absolute; display: block; will-change: transform, opacity; }

.hph-sp-die {
    position: absolute; left: 50%; top: 2.6rem; z-index: 2; display: block; width: 7rem; height: 7rem; margin-left: -3.5rem;
    padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.hph-sp-die__hop { display: block; width: 7rem; height: 7rem; perspective: 44rem; transform-origin: 50% 100%; }
.hph-sp-die__tilt { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(-14deg) rotateY(-18deg); }
.hph-sp-die__cube { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(-90deg); will-change: transform; }
/* Square faces tile exactly along every edge; the core closes any antialiasing seam. */
.hph-sp-face {
    position: absolute; inset: -.5px; display: grid; place-items: center; background: var(--sp-face);
    box-shadow: inset 0 0 0 3px var(--sp-accent); backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.hph-sp-face i { font-size: 3.4rem; line-height: 1; color: var(--sp-bright); }
.hph-sp-face--2, .hph-sp-face--4 { background: var(--sp-face-2); }
.hph-sp-face--3, .hph-sp-face--6 { background: var(--sp-face-3); }
.hph-sp-core { position: absolute; inset: 0; background: var(--sp-accent); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hph-sp-face--1 { transform: translateZ(3.5rem); }
.hph-sp-face--2 { transform: rotateY(90deg) translateZ(3.5rem); }
.hph-sp-face--3 { transform: rotateY(180deg) translateZ(3.5rem); }
.hph-sp-face--4 { transform: rotateY(-90deg) translateZ(3.5rem); }
.hph-sp-face--5 { transform: rotateX(90deg) translateZ(3.5rem); }
.hph-sp-face--6 { transform: rotateX(-90deg) translateZ(3.5rem); }
.hph-sp-core--1 { transform: translateZ(3.375rem); }
.hph-sp-core--2 { transform: rotateY(90deg) translateZ(3.375rem); }
.hph-sp-core--3 { transform: rotateY(180deg) translateZ(3.375rem); }
.hph-sp-core--4 { transform: rotateY(-90deg) translateZ(3.375rem); }
.hph-sp-core--5 { transform: rotateX(90deg) translateZ(3.375rem); }
.hph-sp-core--6 { transform: rotateX(-90deg) translateZ(3.375rem); }
.hph-sp-die:focus-visible { outline: 3px solid var(--sp-accent); outline-offset: .5rem; }

/* One-time "try shaking" callout, beside the die */
.hph-sp-tip {
    position: absolute; right: 0; top: 3.4rem; z-index: 3; display: flex; flex-direction: column; gap: .3rem;
    width: min(7.6rem, calc(50% - 4.4rem)); padding: .55rem .7rem; border: 1px solid var(--sp-edge); border-radius: var(--hph-radius-lg, 12px);
    background: linear-gradient(var(--sp-tint), var(--sp-tint)), var(--sp-modal-bg); color: var(--sp-town); font-size: .72rem; font-weight: 600; line-height: 1.3; text-align: left; cursor: pointer;
    animation: hph-sp-tip-in .4s cubic-bezier(.2, 1, .3, 1) backwards;
}
.hph-sp-tip[hidden] { display: none; }
.hph-sp-tip::before {
    content: ""; position: absolute; left: -6px; top: 1.6rem; width: 10px; height: 10px; background: var(--sp-modal-bg);
    border-left: 1px solid var(--sp-edge); border-bottom: 1px solid var(--sp-edge); transform: rotate(45deg);
}
.hph-sp-tip i { font-size: .85rem; transform-origin: 50% 80%; animation: hph-sp-buzz 1.1s linear infinite; }
.hph-sp-modal.is-rolling .hph-sp-tip { opacity: 0; }
@keyframes hph-sp-tip-in { from { opacity: 0; transform: translateX(10px) scale(.9); } }
@keyframes hph-sp-buzz { 20% { transform: translateX(-2px) rotate(-12deg); } 40% { transform: translateX(2px) rotate(12deg); } 60% { transform: translateX(-2px) rotate(-8deg); } 80% { transform: translateX(1px) rotate(6deg); } }

/* Deal box: fixed height so the card never resizes between picks */
.hph-sp-modal__deal {
    display: grid; align-content: center; justify-items: center; gap: .25rem; height: 7.4rem; padding: .6rem 1.2rem;
    border-radius: var(--hph-radius-lg, 12px); background: var(--sp-tint);
}
.hph-sp-modal__meta { margin: 0; order: -1; color: var(--sp-town); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hph-sp-modal__special {
    margin: 0; color: var(--sp-bright); font-size: 1.1rem; font-weight: 700; line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance;
}
.hph-sp-modal__details {
    margin: 0; color: var(--sp-muted); font-size: .82rem; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html.hph-dark-mode .hph-sp-modal__details { color: var(--hph-gray-300, #d1d5db); }
.hph-sp-modal__details:empty,
.hph-sp-modal__meta:empty { display: none; }

/* Actions: one row of pills; two columns on phones */
.hph-sp-modal__actions { display: flex; justify-content: center; gap: .375rem; height: 2.5rem; }
.hph-sp-action {
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem; height: 100%; padding: 0 .75rem;
    border: 1px solid var(--sp-edge); border-radius: 999px; background: transparent; color: inherit; font-size: .8rem; font-weight: 600;
    text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s;
}
.hph-sp-action i { font-size: .8rem; }
.hph-sp-action:hover { border-color: var(--sp-accent); background: var(--sp-tint); color: inherit; }
.hph-sp-action--primary { background: var(--sp-accent); border-color: var(--sp-accent); color: var(--hph-primary-dark, #02333a); }
.hph-sp-action--primary:hover { background: var(--sp-accent); color: var(--hph-primary-dark, #02333a); filter: brightness(.94); }

/* Spin Again */
.hph-sp-modal__again { display: grid; justify-items: center; gap: .4rem; margin-top: .15rem; }
.hph-sp-random--again {
    height: 2.9rem; padding: 0 1.75rem; background: var(--sp-again-bg); color: var(--sp-again-ink);
    box-shadow: none; font-size: .95rem; font-weight: 600;
}
.hph-sp-random--again:hover { transform: none; background: var(--sp-again-bg); color: var(--sp-again-ink); filter: brightness(1.25); }
.hph-sp-random--again:active { transform: translateY(1px) scale(.98); }
.hph-sp-modal__count { display: flex; align-items: center; justify-content: center; min-height: 1rem; margin: 0; color: var(--sp-muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.hph-sp-shake {
    display: inline-flex; align-items: center; gap: .3rem; margin-left: .6rem; padding: 0 0 0 .6rem; border: 0;
    border-left: 1px solid var(--sp-edge); background: none; color: var(--sp-town); font: inherit; font-weight: 600; cursor: pointer;
}
.hph-sp-shake[hidden] { display: none; }
.hph-sp-shake[disabled] { cursor: default; }
.hph-sp-shake i { font-size: .7rem; }
.hph-sp-shake.is-hit i { animation: hph-sp-buzz .4s linear; }

/* Roll states: heading text stays put, the rest fades while the die is in the air */
.hph-sp-modal__eyebrow, .hph-sp-modal__town, .hph-sp-modal__deal, .hph-sp-modal__actions { transition: opacity .15s ease; }
.hph-sp-modal.is-rolling .hph-sp-modal__eyebrow,
.hph-sp-modal.is-rolling .hph-sp-modal__town,
.hph-sp-modal.is-rolling .hph-sp-modal__deal,
.hph-sp-modal.is-rolling .hph-sp-modal__actions { opacity: 0; }
.hph-sp-modal.is-rolling .hph-sp-modal__place { color: var(--sp-muted); font-size: 1.1rem; font-weight: 500; }
.hph-sp-modal.is-rolling .hph-sp-random--again { opacity: .6; pointer-events: none; }
.hph-sp-modal.is-rolling .hph-sp-random--again i { animation: hph-sp-spin .6s linear infinite; }
.hph-sp-modal.is-revealed .hph-sp-modal__place { animation: hph-sp-pop-in .4s cubic-bezier(.2, 1, .3, 1) backwards; }
.hph-sp-modal.is-revealed .hph-sp-modal__eyebrow,
.hph-sp-modal.is-revealed .hph-sp-modal__town { animation: hph-sp-fade .3s .05s backwards; }
.hph-sp-modal.is-revealed .hph-sp-modal__deal { animation: hph-sp-rise .35s .1s backwards; }
.hph-sp-modal.is-revealed .hph-sp-modal__actions { animation: hph-sp-rise .35s .18s backwards; }
.hph-sp-modal.is-empty .hph-sp-stage,
.hph-sp-modal.is-empty .hph-sp-modal__count { display: none; }
@keyframes hph-sp-pop-in { 0% { transform: scale(.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes hph-sp-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes hph-sp-fade { from { opacity: 0; } }
@keyframes hph-sp-spin { to { transform: rotate(360deg); } }

/* Single place: week grid */
.hph-sp--week { background: var(--sp-soft); }
.hph-sp-week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.hph-sp-week__day {
    padding: .85rem .75rem; border: 1px solid var(--sp-line); border-radius: var(--hph-radius-lg, 12px);
    background: var(--hph-white, #fff); font-size: .88rem;
}
.hph-sp-week__day.is-empty { background: transparent; color: var(--hph-gray-400, #9ca3af); }
.hph-sp-week__day.is-today { border: 2px solid var(--sp-hot); box-shadow: var(--hph-shadow-float, 0 6px 18px rgba(0, 0, 0, .1)); }
.hph-sp-week__name { margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--sp-muted); }
.hph-sp-week__today { display: none; margin-left: .25rem; padding: 0 .35rem; border-radius: 999px; background: var(--sp-hot); color: var(--sp-hot-ink); font-size: .62rem; }
.hph-sp-week__day.is-today .hph-sp-week__today { display: inline-block; }
.hph-sp-week__day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.hph-sp-week__day strong { display: block; color: var(--sp-ink); line-height: 1.3; }
.hph-sp-week__day span { display: block; color: var(--sp-muted); font-size: .8rem; line-height: 1.4; }
.hph-sp-week__day em { display: block; font-style: normal; font-size: .75rem; font-weight: 600; color: var(--hph-primary-dark, #1d6f8c); }
.hph-sp-week__day p { margin: 0; }
.hph-sp-week__day span { display: block; color: var(--sp-muted); font-size: .8rem; line-height: 1.4; }
.hph-sp-week__day span.hph-sp-week__today { 
    display: none; 
    margin-left: .25rem; 
    padding: 0 .35rem; 
    border-radius: 999px; 
    background: var(--sp-hot); 
    color: var(--sp-hot-ink); 
    font-size: .62rem; 
}
.hph-sp-week__day.is-today span.hph-sp-week__today { 
    display: inline-block; 
}
/* Hub page extras */
.hph-sp-editor {
    width: min(94vw, var(--hph-container-narrow)); max-height: 85vh; overflow-y: auto;
    padding: var(--hph-space-6); border: 1px solid var(--hph-gray-300); border-radius: var(--hph-radius-xl);
    background: var(--hph-white); color: var(--hph-primary-dark); font-family: var(--hph-font-body);
}
.hph-sp-editor::backdrop { background: rgba(0, 0, 0, .6); }
.hph-sp-editor header, .hph-sp-editor footer { display: flex; align-items: center; justify-content: space-between; gap: var(--hph-space-3); }
.hph-sp-editor h2 { font-size: var(--hph-text-xl); color: inherit; margin: 0; }
.hph-sp-editor fieldset { margin: var(--hph-space-4) 0; padding: var(--hph-space-4); border: 1px solid var(--hph-gray-300); }
.hph-sp-editor label { display: flex; flex-direction: column; gap: var(--hph-space-1); margin-bottom: var(--hph-space-3); font-size: var(--hph-text-sm); }
.hph-sp-editor input, .hph-sp-editor select, .hph-sp-editor button { font: inherit; color: var(--hph-primary-dark); }
.hph-sp-editor input:not([type="checkbox"]), .hph-sp-editor select { width: 100%; padding: var(--hph-space-2); background: var(--hph-white); border: 1px solid var(--hph-gray-600); border-radius: var(--hph-radius-sm); }
.hph-sp-editor input[type="checkbox"] { width: auto; align-self: flex-start; }
.hph-sp-editor .hph-sp-editor__days { display: flex; flex-wrap: wrap; gap: var(--hph-space-3); }
.hph-sp-editor button { padding: var(--hph-space-2) var(--hph-space-3); border: 1px solid var(--hph-primary-dark); border-radius: var(--hph-radius-sm); background: var(--hph-white); cursor: pointer; }
.hph-sp-editor button[type="submit"] { background: var(--hph-primary-dark); color: var(--hph-white); }
.hph-sp-editor button:disabled { opacity: .5; cursor: wait; }
.hph-sp-editor :focus-visible { outline: 3px solid var(--hph-primary); outline-offset: 2px; }
.hph-sp-editor [data-editor-status] { font-weight: var(--hph-font-semibold); }

.hph-sp-section { padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem; }
.hph-sp-section--tint { background: var(--sp-soft, #f9fafb); }
.hph-sp-section__inner { max-width: 1100px; margin: 0 auto; }
.hph-sp-section__head { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.hph-sp-section__head h2 { margin: 0 0 .6rem; font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.hph-sp-section__head p { margin: 0; color: var(--hph-gray-600, #4b5563); font-size: 1.05rem; line-height: 1.6; }

.hph-sp--with-download { padding-top: var(--hph-space-6); }
.hph-sp--with-download .hph-sp__header {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
    gap: var(--hph-space-6); align-items: center; max-width: none;
    margin-bottom: var(--hph-space-4); text-align: left;
}
.hph-sp--with-download .hph-sp__badge { margin-bottom: var(--hph-space-2); }
.hph-sp--with-download .hph-sp__title { font-size: var(--hph-text-2xl); margin-bottom: var(--hph-space-2); }
.hph-sp--with-download .hph-sp__intro { font-size: var(--hph-text-sm); line-height: var(--hph-leading-normal); }
.hph-sp--with-download .hph-sp__intro p { margin: 0; }
.hph-sp-download {
    padding: var(--hph-space-3) var(--hph-space-4);
    border-radius: var(--hph-radius-lg); background: var(--hph-primary-dark); color: var(--hph-white);
    font-family: var(--hph-font-body);
    scroll-margin-top: calc(var(--hph-header-height-main, 80px) + var(--hph-space-4));
}
.hph-sp-download__description {
    margin: var(--hph-space-2) 0 0; color: inherit; font-size: var(--hph-text-xs); line-height: var(--hph-leading-normal);
}
.hph-sp-download__button {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--hph-btn-gap);
    padding: var(--hph-btn-py-sm) var(--hph-btn-px-sm);
    border: 2px solid var(--hph-white); border-radius: var(--hph-radius-lg);
    background: var(--hph-white); color: var(--hph-primary-dark);
    font-size: var(--hph-btn-fs-sm); font-weight: var(--hph-font-bold); text-align: center; text-decoration: none;
}
.hph-sp-download__button:hover { background: transparent; color: var(--hph-white); }
.hph-sp-download__button:focus-visible { outline: 3px solid var(--hph-white); outline-offset: var(--hph-space-1); }
.hph-sp-download__cover { display: block; max-width: 220px; margin-bottom: var(--hph-space-3); border-radius: var(--hph-radius-md); overflow: hidden; }
.hph-sp-download__cover img { display: block; width: 100%; height: auto; }
.hph-sp-download__cover:focus-visible { outline: 3px solid var(--hph-white); outline-offset: var(--hph-space-1); }
.hph-sp-download__description a { color: inherit; text-decoration: underline; }

.hph-sp-feedback { margin: var(--hph-space-6) 0 0; font-size: var(--hph-text-sm); line-height: var(--hph-leading-relaxed); }
.hph-sp-feedback a { color: var(--hph-primary-dark); text-decoration: underline; text-underline-offset: var(--hph-space-1); }
.hph-sp-feedback a:hover { text-decoration-thickness: 2px; }
.hph-sp-feedback a:focus-visible { outline: 2px solid currentColor; outline-offset: var(--hph-space-1); }
.hph-sp-download .hph-sp-feedback a { color: inherit; }
.hph-sp-download .hph-sp-feedback { margin-top: var(--hph-space-2); font-size: var(--hph-text-xs); }
.hph-sp-feedback--standalone { margin: 0 auto; padding: var(--hph-space-4) var(--hph-space-5); text-align: center; }
html.hph-dark-mode .hph-sp-feedback a { color: var(--hph-primary-300); }
html.hph-dark-mode .hph-sp-download .hph-sp-feedback a { color: inherit; }

.hph-sp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.hph-sp-card {
    display: flex; flex-direction: column; padding: 1.25rem; border: 1px solid var(--hph-gray-200, #e5e7eb);
    border-radius: var(--hph-radius-xl, 16px); background: var(--hph-white, #fff);
}
.hph-sp-card h3 { margin: 0 0 .25rem; font-size: 1.15rem; font-weight: 700; }
.hph-sp-card__sub { margin: 0 0 .75rem; color: var(--hph-gray-500, #6b7280); font-size: .85rem; }
.hph-sp-card ul { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .4rem; font-size: .9rem; }
.hph-sp-card li { display: flex; justify-content: space-between; gap: .75rem; }
.hph-sp-card li span:last-child { flex-shrink: 0; color: var(--hph-primary-dark, #1d6f8c); font-weight: 600; font-size: .8rem; }
.hph-sp-card a { color: inherit; }
.hph-sp-card li a {
    color: var(--hph-primary-dark, #1d6f8c); font-weight: 600; text-decoration: underline;
    text-decoration-color: rgba(var(--sp-accent-rgb), .35); text-underline-offset: 3px;
}
.hph-sp-card li a:hover, .hph-sp-card li a:focus-visible { text-decoration-color: currentColor; }
.hph-sp-card .hph-sp-link { margin-top: auto; color: var(--hph-primary, #51bae0); }
html.hph-dark-mode .hph-sp-card { background: var(--hph-gray-800); border-color: var(--hph-gray-700); }
html.hph-dark-mode .hph-sp-card li a { color: var(--hph-primary-300, #8fd3ec); }
html.hph-dark-mode .hph-sp-card li span:last-child { color: var(--hph-gray-300); }

.hph-sp-towns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.hph-sp-towns a {
    display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: 1rem 1.15rem; color: inherit; text-decoration: none;
    border: 1px solid var(--hph-gray-200, #e5e7eb); border-radius: var(--hph-radius-lg, 12px); background: var(--hph-white, #fff);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.hph-sp-towns a:hover, .hph-sp-towns a:focus-visible { border-color: var(--hph-primary, #51bae0); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.hph-sp-towns strong { font-size: 1rem; font-weight: 700; }
.hph-sp-towns span { color: var(--hph-gray-500, #6b7280); font-size: .85rem; }
html.hph-dark-mode .hph-sp-towns a { background: var(--hph-gray-800); border-color: var(--hph-gray-700); }
html.hph-dark-mode .hph-sp-towns span { color: var(--hph-gray-400); }

@media (max-width: 860px) {
    .hph-sp--with-download .hph-sp__header { grid-template-columns: 1fr; gap: var(--hph-space-3); }
    .hph-sp__bar { position: static; }
    .hph-sp__filters { grid-template-columns: 1fr 1fr; }
    .hph-sp__search { grid-column: 1 / -1; }
    .hph-sp-row { grid-template-columns: minmax(0, 1fr) auto; }
    .hph-sp-row__deal { grid-column: 1 / -1; grid-row: 2; }
    .hph-sp-row__meta { grid-column: 2; grid-row: 1; }
    .hph-sp-week { grid-template-columns: 1fr; }
    .hph-sp-week__day.is-empty { display: none; }
}

@media (max-width: 440px) {
    .hph-sp-modal__body { padding-inline: 1rem; }
    .hph-sp-modal__place { font-size: 1.3rem; }
    .hph-sp-modal__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; height: 5.4rem; }
    .hph-sp-action { height: 2.5rem; }
    /* No room beside the die on phones: tuck the callout into the top corner instead. */
    .hph-sp-tip { top: .2rem; width: 6.8rem; font-size: .7rem; }
    .hph-sp-tip::before { display: none; }
}

@media (max-width: 520px) {
    .hph-sp-tab { min-width: 3rem; padding: .4rem .5rem; }
    .hph-sp-random { width: 100%; justify-content: center; }
    .hph-sp-row__meta { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .hph-sp-random:hover .hph-sp-random__icon,
    .hph-sp-pill--now::before,
    .hph-sp-modal[open],
    .hph-sp-modal *,
    .hph-sp-modal *::before { animation: none !important; }
}