/* One compact dance-night card; surrounding chrome stays in the site's palette. */
#milongaBingo { margin: 12px 0 18px; }
.milonga-bingo { max-width: 660px; border: 1px solid var(--ui-line, #dfdad4); border-radius: 16px; background: var(--ui-surface, #fff); color: var(--ui-text, #302b2e); overflow: hidden; }
.milonga-bingo .bingo-toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 14px 18px; border: 0; border-radius: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.bingo-title { font-weight: 600; }
.bingo-tally { margin-left: auto; color: var(--ui-accent, #79551e); white-space: nowrap; font-size: 13px; }
.bingo-chevron { font-size: 22px; }
.bingo-body { padding: 0 18px 16px; }
.bingo-body[hidden] { display: none; }
.bingo-night-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--ui-muted, #706963); }
.milonga-bingo .bingo-night { flex: 1; min-width: 0; max-width: 100%; min-height: 44px; color: var(--ui-text, #302b2e); background: var(--ui-soft, #f1efec); border: 1px solid var(--ui-line, #dfdad4); border-radius: 8px; padding: 8px; font: inherit; font-size: 14px; }
.bingo-intro { margin: 12px 0 16px; font-size: 14px; line-height: 1.7; }
.bingo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.milonga-bingo .bingo-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 110px; padding: 12px 7px; border: 1px solid var(--ui-line, #dfdad4); border-radius: 9px; background: var(--ui-soft, #f1efec); color: var(--ui-text, #302b2e); font: inherit; text-align: center; cursor: pointer; }
.bingo-cell-label { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.bingo-mark { color: var(--ui-muted, #706963); font-size: 24px; line-height: 1; }
.milonga-bingo .bingo-cell.is-lit { background: light-dark(#e5eee7, #293e32); border-color: light-dark(#9eb7a5, #63856d); color: light-dark(#254d34, #e1f2e5); }
.bingo-cell.is-lit .bingo-mark { color: light-dark(#346446, #a6d7b4); }
.milonga-bingo .bingo-cell.in-line { box-shadow: inset 0 0 0 2px light-dark(#477457, #97c6a4); }
.milonga-bingo .bingo-cell[aria-pressed="true"] { outline: 2px solid var(--ui-accent, #79551e); outline-offset: 1px; }
.milonga-bingo :is(button, select):focus-visible { outline: 3px solid light-dark(#315e84, #9ec9ed); outline-offset: -3px; }
.bingo-status { margin: 14px 0 8px; font-size: 14px; font-weight: 600; color: var(--ui-accent, #79551e); }
.bingo-detail { border-left: 3px solid var(--ui-accent, #79551e); padding: 8px 12px; margin: 14px 0; background: var(--ui-soft, #f1efec); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.bingo-detail p { margin: 6px 0 0; }
.bingo-footnote { margin: 14px 0 0; color: var(--ui-muted, #706963); font-size: 12px; line-height: 1.6; }
.bingo-celebrate { animation: bingo-stamp 650ms ease-out; }
@keyframes bingo-stamp { 0% { transform: scale(.97); opacity: .4; } 55% { transform: scale(1.025); } 100% { transform: scale(1); opacity: 1; } }
@media (max-width: 420px) { .bingo-body { padding-inline: 10px; } .milonga-bingo .bingo-toggle { padding-inline: 12px; } .bingo-cell-label { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .bingo-celebrate { animation: none; } }
.bingo-create { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.milonga-bingo .bingo-create input, .milonga-bingo .bingo-create button, .milonga-bingo .bingo-more { min-height: 44px; border: 1px solid var(--ui-line, #dfdad4); border-radius: 8px; padding: 8px 12px; background: var(--ui-soft, #f1efec); color: inherit; font: inherit; max-width: 100%; }
.bingo-night-label + .bingo-night-label { margin-top: 12px; }
/* The record-label gold is reserved for a completed line; Hub art stays on paper. */
.bingo-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.bingo-settings .bingo-night-label { display: grid; margin: 0; }
.milonga-bingo :is(.bingo-shuffle,.bingo-preview-reward,.bingo-reward-actions button) { min-height: 44px; padding: 9px 13px; border: 1px solid var(--ui-line,#dfdad4); border-radius: 8px; background: var(--ui-soft,#f1efec); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.milonga-bingo button:disabled { opacity: .55; cursor: default; }
.milonga-bingo .bingo-shuffle { margin-top: 12px; }
.bingo-deal-note { margin: 7px 0 14px; font-size: 12px; line-height: 1.5; color: var(--ui-muted,#706963); }
.bingo-cell-source { font-size: 10px; color: var(--ui-muted,#706963); }
.bingo-grid { position: relative; grid-auto-rows: 1fr; isolation: isolate; }
.bingo-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.bingo-lines line { stroke: #d5a342; stroke-width: 2; stroke-linecap: round; opacity: .34; }
.bingo-line-flash .bingo-lines line { stroke-dasharray: 300; stroke-dashoffset: 0; animation: bingo-line-draw 1.1s ease-out both; }
.bingo-line-flash .in-line { animation: bingo-gold 1.4s ease-out both; }
.bingo-secret { grid-template-columns: 1fr; }
.milonga-bingo .bingo-secret .bingo-cell { min-height: 90px; display: grid; grid-template-columns: 32px 1fr; text-align: left; padding: 14px; }
.bingo-secret .bingo-cell-source { grid-column: 2; }
.bingo-reward { position: relative; display: grid; grid-template-columns: 48% 1fr; align-items: center; margin: 18px 0 8px; padding: 12px; overflow: hidden; background: #fffefa; color: #143d52; border: 1px solid #b6c6cb; border-radius: 12px; isolation: isolate; }
.bingo-reward-cat { display: block; width: 100%; height: auto; mix-blend-mode: multiply; transform-origin: 50% 85%; }
.bingo-reward-heading { display: block; font: italic bold clamp(34px,7vw,64px)/1 Georgia, 'Times New Roman', serif; letter-spacing: -2px; color: #143d52; }
.bingo-reward-caption { font-size: 13px; line-height: 1.6; margin: 12px 0; }
.bingo-reward-actions { position: relative; z-index: 2; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.milonga-bingo .bingo-reward-actions button { color: #143d52; background: #fffefa; border-color: #a9bec6; }
.milonga-bingo .bingo-reward-actions .bingo-save-poster { background: #143d52; color: #fffefa; border-color: #143d52; }
.bingo-export-status { grid-column: 1/-1; font-size: 12px; line-height: 1.5; margin: 0; }
.bingo-sparks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.bingo-sparks i { position: absolute; left: 48%; top: 40%; width: 6px; height: 16px; background: #d5a342; opacity: 0; transform: rotate(calc(var(--i) * 22.5deg)); }
.bingo-sparks i:nth-child(3n) { background: #286482; width: 7px; height: 7px; border-radius: 50%; }
.is-celebrating .bingo-sparks i { animation: bingo-spark 1.6s ease-out .15s both; }
.is-celebrating .bingo-reward-cat { animation: bingo-cat-entrance 1.15s cubic-bezier(.2,.7,.3,1) both; }
.is-celebrating .bingo-reward-heading { animation: bingo-title-entrance .8s ease-out .3s both; }
@keyframes bingo-line-draw { from { stroke-dashoffset: 300; opacity: 1; } 80% { opacity: 1; } to { stroke-dashoffset: 0; opacity: .34; } }
@keyframes bingo-gold { 0%,100% { filter: none; } 40% { box-shadow: inset 0 0 0 2px #d5a342, 0 0 18px #d5a34288; } }
@keyframes bingo-cat-entrance { 0% { transform: translateY(30px) rotate(-8deg) scale(.78); opacity: 0; } 65% { transform: translateY(-6px) rotate(3deg) scale(1.04); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes bingo-title-entrance { from { transform: scale(.7) rotate(-7deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bingo-spark { 0% { opacity: 0; transform: rotate(calc(var(--i)*22.5deg)) translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: rotate(calc(var(--i)*22.5deg)) translateY(-220px) rotate(110deg); } }
@media (prefers-reduced-motion: reduce) { .milonga-bingo *, .milonga-bingo *::before, .milonga-bingo *::after { animation: none !important; transition: none !important; } .bingo-sparks { display: none; } }
@media (max-width: 360px) { .bingo-settings { grid-template-columns: 1fr; } .bingo-reward { padding: 8px; } .bingo-reward-heading { font-size: 32px; } }
.bingo-reward-quip { font-size: 13px; line-height: 1.7; margin: 8px 0 12px; color: #143d52; overflow-wrap: anywhere; }
.bingo-reward-caption { color: #53636a; }
@media(max-width:420px) { .bingo-reward-quip { grid-column: 1/-1; } .bingo-reward-words { min-width: 0; } }
.bingo-dialog { width: min(700px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-sizing: border-box; padding: 12px; border: 1px solid var(--ui-line,#dfdad4); border-radius: 16px; background: var(--ui-surface,#fff); color: var(--ui-text,#302b2e); }
.bingo-dialog::backdrop { background: #10212bb8; }
.bingo-dialog-close { display: block; margin-left: auto; min-height: 44px; padding: 8px 16px; color: inherit; background: var(--ui-soft,#f1efec); border: 1px solid var(--ui-line,#dfdad4); border-radius: 8px; cursor: pointer; }
.bingo-dialog #milongaBingo { margin: 8px 0 0; }
.bingo-folder-entry { margin: 8px; min-height: 44px; }
.home-bingo-preview { display: flex; justify-content: center; align-items: center; gap: 24px; }
.home-bingo-preview img { width: 45%; max-width: 180px; height: auto; mix-blend-mode: multiply; }
.home-bingo-mini { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; width: 42%; max-width: 150px; }
.home-bingo-mini i { display: grid; place-items: center; aspect-ratio: 1; background: #e3eced; color: #143d52; border: 1px solid #a9bec6; border-radius: 5px; font: normal 22px Georgia,serif; }
.home-bingo-mini i:nth-child(-n+3) { background: #e9d396; }
#homeBingoLink .home-journey-title, #homeBingoLink .home-journey-copy { display: block; color: var(--ui-text,#302b2e); }
#homeBingoLink .home-journey-copy { color: var(--ui-muted,#706963); }
#homeBingoLink .home-bingo-preview { background: #fffefa; padding: 12px; border-radius: 10px; }
#homeBingoLink .home-bingo-preview img { mix-blend-mode: normal; }
.bingo-dialog-close { position: sticky; top: 0; z-index: 3; }
