.cosy-bingo-style-settings {
  --bingo-card:#fffaf1; --bingo-text:#3b2b21; --bingo-muted:#78685c;
  --bingo-line:#d8b994; --bingo-accent:#8b5e3c;
  box-sizing:border-box; width:100%; max-width:720px; min-width:0; padding:16px; justify-self:start;
  border:1px solid var(--bingo-line); border-radius:18px;
  background:var(--bingo-card); color:var(--bingo-text);
}
.app-shell[data-theme="dark"] .cosy-bingo-style-settings {
  --bingo-card:#2b201a; --bingo-text:#f5e8d2; --bingo-muted:#c6b39c;
  --bingo-line:#7c5e3b; --bingo-accent:#efc98f;
}
.cosy-bingo-style-settings h3 {margin:0 0 8px;font:700 23px/1.2 Georgia,serif;color:var(--bingo-text)}
.cosy-bingo-style-settings p {margin:8px 0 16px;font-size:14px;line-height:1.5;color:var(--bingo-muted)}
.bingo-style-layout {display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:18px;align-items:center}
.bingo-style-options {display:grid;gap:12px;min-width:0}
.cosy-bingo-style-settings fieldset {border:0;min-width:0;margin:0;padding:0}
.cosy-bingo-style-settings legend {font-weight:700;font-size:14px;margin-bottom:10px;color:var(--bingo-text)}
.bingo-style-symbols,.bingo-style-colours {display:flex;flex-wrap:wrap;gap:8px}
.bingo-style-symbols button {display:grid;justify-items:center;gap:4px;width:56px;min-height:56px;padding:6px;border:1px solid var(--bingo-line);border-radius:10px;background:var(--bingo-card);color:var(--bingo-text);font-family:inherit;font-size:11px;font-weight:600;line-height:1.2;cursor:pointer}
.bingo-style-symbols svg {width:25px;height:25px}
.bingo-style-symbols button[aria-pressed="true"] {box-shadow:inset 0 0 0 2px var(--bingo-accent);background:color-mix(in srgb,var(--bingo-accent) 12%,var(--bingo-card))}
.bingo-style-colours button {display:grid;place-items:center;width:44px;height:44px;min-height:44px;border:2px solid transparent;border-radius:50%;background:var(--bingo-card);padding:5px;cursor:pointer}
.cosy-bingo-style-settings .bingo-style-colours button>span {display:block;width:28px;height:28px;border-radius:50%;background:var(--swatch)!important;box-shadow:inset 0 0 0 1px #0002}
.bingo-style-colours button[aria-pressed="true"] {border-color:var(--bingo-accent)}
.cosy-bingo-style-settings .bingo-style-colours button {box-shadow:none!important}
.cosy-bingo-style-settings button:focus-visible,.cosy-bingo-style-settings input:focus-visible {outline:3px solid var(--bingo-accent);outline-offset:3px}
.bingo-style-custom {display:flex;align-items:center;gap:12px;margin-top:12px;font-size:14px;color:var(--bingo-text)}
.cosy-bingo-style-settings .bingo-style-custom input[type="color"] {box-sizing:border-box;width:48px;max-width:48px;min-height:36px;height:36px;padding:4px;border:1px solid var(--bingo-line);border-radius:9px;background:var(--bingo-card);cursor:pointer}
.bingo-style-preview {text-align:center;color:var(--bingo-muted);font-size:13px}
.bingo-style-preview>div {position:relative;display:grid;place-items:center;width:96px;height:96px;box-sizing:border-box;margin:8px auto 0;padding:12px;border:1px solid var(--bingo-line);border-radius:14px;background:var(--bingo-card)}
.bingo-style-example {position:relative;z-index:2;color:var(--bingo-text);font:700 15px/1.3 Georgia,serif}
.bingo-style-preview-mark {position:absolute;inset:18%;opacity:1;pointer-events:none}
.bingo-style-preview-mark svg,.bingo-x[data-cosy-bingo-mark] svg {display:block;width:100%;height:100%}
.bingo-x[data-cosy-bingo-mark] {width:75%;max-width:104px;height:auto;aspect-ratio:1;font-size:0;opacity:.65;pointer-events:none}
.bingo-legend .legend-x[data-cosy-bingo-mark] svg {width:17px;height:17px;display:block}
.bingo-style-action-icon {display:inline-flex;vertical-align:middle;margin-right:7px}
.bingo-style-action-icon svg {width:19px;height:19px}
/* Keep the actual Bingo card manageable on desktop; phone sizing stays responsive. */
.challenge-panel.bingo-panel {box-sizing:border-box;width:100%;max-width:700px;margin-inline:auto}
.bingo-board {max-width:620px}
.cosy-bingo-style-settings .bingo-style-help {margin-top:18px;font-size:12px}
.cosy-bingo-style-settings .bingo-style-status {min-height:18px;margin:8px 0 0;font-size:12px;color:var(--bingo-accent)}
@media(max-width:600px) {
  .cosy-bingo-style-settings {padding:12px}
  .bingo-style-layout {grid-template-columns:minmax(0,1fr) 70px;gap:10px}
  .bingo-style-symbols {display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .bingo-style-symbols button {min-width:0;width:100%}
  .bingo-style-symbols,.bingo-style-colours {gap:4px}
  .bingo-style-preview>div {width:68px;height:68px}
}
