* { box-sizing: border-box; }
body { margin: 0; font-family: "Trebuchet MS", system-ui, sans-serif; background: #1d2b3a; color: #fff; -webkit-tap-highlight-color: transparent; }
.bar { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 1rem; background: #14202c; }
.bar h1 { font-size: 1.3rem; margin: 0; }
.home { color: #ffd76a; text-decoration: none; font-weight: bold; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; padding: .7rem; background: #26394d; position: sticky; top: 0; z-index: 5; }
button, .btn { font: inherit; border: 2px solid #ffd76a; background: #14202c; color: #fff; border-radius: 999px; padding: .45rem 1rem; cursor: pointer; }
button.active, button:hover { background: #ffd76a; color: #14202c; }
main { max-width: 900px; margin: 0 auto; padding: 1rem; }
.panel { display: none; }
.panel.show { display: block; }
.help { opacity: .9; text-align: center; }
.count { text-align: center; font-size: 1.2rem; margin: .5rem 0 1rem; }
.grid { display: grid; gap: .5rem; }
.states { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.chip { background: #2f4760; border: 2px solid #46647f; border-radius: 12px; padding: .5rem .3rem; text-align: center; cursor: pointer; font-size: .85rem; user-select: none; }
.chip b { display: block; font-size: 1.3rem; }
.chip.done { background: #3aa655; border-color: #ffd76a; }
.bingo { grid-template-columns: repeat(3, 1fr); max-width: 520px; margin: 0 auto; }
.cell { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 2.4rem; background: #2f4760; border: 3px solid #46647f; border-radius: 14px; cursor: pointer; user-select: none; text-align: center; }
.cell small { font-size: .85rem; margin-top: .2rem; }
.cell.done { background: #3aa655; border-color: #ffd76a; }
.alpha { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
.letter { aspect-ratio: 1; font-size: 1.8rem; font-weight: bold; padding: 0; border-radius: 12px; }
.letter.done { background: #3aa655; color: #fff; border-color: #ffd76a; }
.tally { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tcard { background: #2f4760; border-radius: 16px; padding: .8rem; text-align: center; }
.tcard .big { font-size: 2.6rem; }
.tcard .n { font-size: 2rem; font-weight: bold; color: #ffd76a; }
.tcard .row { display: flex; gap: .4rem; justify-content: center; margin-top: .3rem; }
.tcard button { width: 56px; height: 44px; font-size: 1.4rem; padding: 0; }
.tools { text-align: center; margin: 1rem 0; }
.win { text-align: center; font-size: 1.5rem; color: #ffd76a; min-height: 2rem; }
.colorbox{text-align:center;margin:10px auto}.swatch{width:min(70vw,260px);height:150px;margin:0 auto;border-radius:24px;border:5px solid #fff;box-shadow:0 4px 14px rgba(0,0,0,.4)}.cname{font-size:2rem;font-weight:800;margin-top:10px}
