@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Fredoka:wght@500;600;700&display=swap');

:root {
  --pink: #d63391;
  --pink-dark: #b82b7c;
  --pink-soft: #51213f;
  --ink: #f2f3f5;
  --muted: #b5bac1;
  --paper: #2b2d31;
  --panel: #2b2d31;
  --line: #3f4147;
  --cream: #1e1f22;
  --shadow: 0 12px 36px rgba(0, 0, 0, .22);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: "DM Sans", sans-serif; line-height: 1.45;
}
.site-header {
  max-width: 1060px; margin: 0 auto; padding: 30px 24px 20px;
  display: flex; align-items: center; gap: 13px;
}
.brand-mark {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: var(--pink); color: white; font-size: 31px; transform: rotate(-8deg);
}
.eyebrow { margin: 0 0 4px; color: var(--pink); font-size: 10px; font-weight: 800; letter-spacing: .17em; }
h1,h2,h3,p { margin-top: 0; }
h1 { font: 700 29px/1 "Fredoka", sans-serif; margin: 0; letter-spacing: -.03em; color: var(--pink); }
.header-copy { min-width: 0; }
.header-subtitle { color: var(--muted); font-size: 11px; margin: 7px 0 0; }
.header-subtitle a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.header-subtitle a:hover { color: var(--pink); }
main { max-width: 1060px; margin: 0 auto; padding: 0 24px 48px; }
.game-panel, .library-section {
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  padding: 25px; box-shadow: var(--shadow);
}
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
h2 { font: 600 25px/1.15 "Fredoka", sans-serif; margin: 0 0 7px; }
.helper { color: var(--muted); font-size: 13px; margin: 0 0 17px; }
.button {
  border: 0; border-radius: 999px; padding: 12px 19px; font: 700 13px "DM Sans", sans-serif;
  cursor: pointer; transition: transform .12s, background .12s;
}
.button:active { transform: scale(.97); }
.button-primary { background: var(--pink); color: white; }
.button-primary:hover { background: var(--pink-dark); }
.button-secondary { background: #404249; color: #f2f3f5; }
.button-small { padding: 9px 14px; background: var(--pink); color: white; }
.bingo-board {
  width: 100%; max-width: 760px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
}
.bingo-cell {
  min-width: 0; aspect-ratio: 1 / 1; border: 1px solid #41434a; border-radius: 11px;
  background: #232428; color: var(--ink); padding: 9px 7px; display: flex;
  align-items: center; justify-content: center; text-align: center;
  font: 700 clamp(10px, 1.35vw, 14px)/1.25 "DM Sans", sans-serif;
  cursor: pointer; overflow-wrap: anywhere; transition: background .13s, color .13s, border-color .13s;
}
.bingo-cell:hover { border-color: var(--pink); }
.bingo-cell.checked { background: var(--pink); color: white; border-color: var(--pink); }
.bingo-cell.free-space { background: var(--pink); border: 1px solid var(--pink); color: white; cursor: default; }
.bingo-cell:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #ed9bc6; outline-offset: 3px; }
.board-footer { max-width: 760px; margin: 14px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.free-note { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 7px; }
.free-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink-soft); border: 1px solid #d99abb; }
.text-button { color: var(--pink-dark); background: none; border: 0; font: 700 11px "DM Sans", sans-serif; text-decoration: underline; cursor: pointer; }
.location-status { max-width: 760px; margin: 9px auto 0; color: var(--muted); font-size: 11px; }
.time-settings { max-width: 760px; margin: 12px auto 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.time-settings-heading, .time-settings-values { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
.time-settings-heading { font-size: 12px; }
.time-settings-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; background: #404249; color: #d8dbe0; font-size: 10px; font-weight: 700; }
.time-settings-status:empty { display: none; }
.time-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #41434a; border-radius: 999px; padding: 6px 11px; background: #232428; color: var(--muted); font-size: 11px; font-weight: 600; }
.time-value-button { border: 0; padding: 0; background: transparent; color: var(--ink); font: 700 11px "DM Sans", sans-serif; cursor: pointer; }
.time-value-button:hover { color: #ed9bc6; }
.time-value-button:focus-visible { outline: 2px solid #ed9bc6; outline-offset: 3px; border-radius: 3px; }
.small-label { width: 100%; margin: 0; color: var(--muted); font-size: 11px; }
.library-section { margin-top: 22px; }
.library-title { align-items: flex-start; }
.library-title .helper { max-width: 590px; margin: 0; }
.library-tools { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 22px 0 13px; }
.search-label { flex: 1; }
.search-label input { width: 100%; max-width: 430px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #232428; font: 13px "DM Sans", sans-serif; }
.search-label input { background: #1e1f22; color: #f2f3f5; border-color: #41434a; }
.library-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.library-selection-actions { display: flex; align-items: center; gap: 7px; }
.library-selection-actions .button-small { padding: 8px 12px; }
.prompt-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.prompt-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; display: flex; gap: 10px; align-items: flex-start; }
.prompt-card.disabled { opacity: .48; background: #25262a; }
.prompt-card input { accent-color: var(--pink); width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 auto; }
.prompt-copy { min-width: 0; flex: 1; }
.prompt-name { font-size: 12px; font-weight: 800; margin: 0 0 3px; }
.prompt-description { color: var(--muted); font-size: 11px; margin: 0; }
.prompt-time { color: var(--pink-dark); font-size: 10px; font-weight: 700; margin-top: 6px; }
.pair-note { color: #c08baa; font-size: 10px; margin-top: 3px; }
footer { max-width: 1060px; margin: 0 auto; padding: 0 24px 28px; display: flex; justify-content: space-between; gap: 12px; color: #949ba4; font-size: 10px; }
.confirm-dialog { border: 0; border-radius: 18px; padding: 25px; width: min(420px, calc(100% - 30px)); box-shadow: 0 24px 80px #27132340; }
.confirm-dialog::backdrop { background: #21151f88; backdrop-filter: blur(3px); }
.confirm-dialog h2 { margin-bottom: 9px; }
.confirm-dialog p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 620px) {
  .site-header { padding: 22px 14px 16px; }
  main { padding: 0 10px 30px; }
  .game-panel, .library-section { padding: 15px 12px; border-radius: 17px; }
  .section-heading { align-items: flex-start; }
  h2 { font-size: 22px; }
  .button { padding: 10px 14px; font-size: 12px; }
  .bingo-board { gap: 4px; }
  .bingo-cell { border-radius: 7px; padding: 4px 2px; font-size: clamp(9px, 2.5vw, 12px); }
  .prompt-list { grid-template-columns: 1fr; }
  .library-tools { align-items: flex-start; flex-direction: column; }
.library-selection-actions { flex-wrap: wrap; }
  .library-count { white-space: normal; }
  footer { padding: 0 14px 20px; flex-direction: column; }
}

/* Dark Discord-inspired appearance */
body { background: #1e1f22; color: #f2f3f5; }
.game-panel, .library-section { background: #2b2d31; border-color: #3f4147; }
.bingo-cell { background: #232428; border-color: #41434a; color: #f2f3f5; }
.bingo-cell.checked { background: #d63391; border-color: #d63391; color: #fff; }
.bingo-cell.free-space { background: #d63391; border-color: #d63391; color: #fff; }
.prompt-card { background: #2b2d31; border-color: #41434a; }
.prompt-card.disabled { background: #25262a; }
.button-secondary { background: #404249; color: #f2f3f5; }
.confirm-dialog { background: #2b2d31; color: #f2f3f5; }
.confirm-dialog p:not(.eyebrow) { color: #b5bac1; }
.confirm-dialog .button-secondary { background: #404249; color: #f2f3f5; }
::placeholder { color: #858b94; opacity: 1; }
