bongard-mini / style.css
0xDing's picture
Remove the unusable manual Tetris mode
453d425 verified
Raw History Blame Contribute Delete
6.94 kB
.gradio-container {
max-width: 1140px !important;
margin: 0 auto;
overflow: visible !important;
--b-ink: #24241f;
--b-muted: #67695f;
--b-surface: #fff;
--b-rule: #e4e3dc;
--b-track: #edece6;
--b-accent: #c82f6e;
--b-bg: #f9f8f4;
color: var(--b-ink);
background: var(--b-bg);
}
.dark .gradio-container {
--b-ink: #eeeae3;
--b-muted: #b5b5aa;
--b-surface: #242521;
--b-rule: #45463e;
--b-track: #383a33;
--b-accent: #ec71a2;
--b-bg: #191b17;
}
body { background: var(--body-background-fill); }
.masthead { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--b-rule); padding:14px 0; }
.wordmark { color:var(--b-ink) !important; font-weight:800; font-size:18px; letter-spacing:-.6px; text-decoration:none !important; }
.wordmark span { font-size:10px; letter-spacing:1.2px; border:1px solid var(--b-rule); border-radius:5px; padding:4px 6px; margin-left:10px; vertical-align:middle; font-weight:600; }
.masthead nav { display:flex; gap:20px; }
.masthead nav a { color:var(--b-muted); font-size:12px; text-decoration:none; }
.masthead nav a:hover { color:var(--b-accent); }
.hero { padding:12px 0; }
.hero p { color:var(--b-muted); font-size:14px; line-height:1.65; margin:0; }
#scenario-note { color:var(--b-muted); font-size:13px; line-height:1.6; margin:2px 0; }
#decide-button { min-height:44px; font-size:14px; font-weight:600; border-radius:8px; }
.step-label h3 { color:var(--b-ink); font-size:14px !important; font-weight:600 !important; margin:10px 0 6px !important; }
#request-status { font-size:13px; line-height:1.6; color:var(--b-muted); }
#result-stats { color:var(--b-muted); font-size:11px; margin:8px 0; }
.question-list { border:1px solid var(--b-rule); border-radius:9px; background:var(--b-surface); padding:14px 16px; }
.questions-count { font-size:11px; color:var(--b-muted); margin-bottom:2px; }
.question-summary { border-bottom:1px solid var(--b-rule); padding:12px 0; }
.question-summary:last-child { border-bottom:0; padding-bottom:0; }
.question-summary span { font-size:10px; font-weight:600; color:var(--b-accent); }
.question-summary p { margin:4px 0 0; color:var(--b-ink); font-size:12px; line-height:1.6; }
.question-empty, .inline-error { padding:16px; font-size:13px; color:var(--b-muted); }
.stale-note { padding:9px 12px; border:1px solid var(--b-rule); border-left:3px solid var(--b-accent); border-radius:5px; color:var(--b-muted); font-size:12px; margin-bottom:12px; background:var(--b-surface); }
.empty-results { border:1px dashed var(--b-rule); border-radius:10px; padding:30px 24px; color:var(--b-muted); background:var(--b-surface); }
.empty-results h3 { font-size:18px; line-height:1.4; color:var(--b-ink); font-weight:550; margin:0 0 12px; }
.empty-results p { font-size:13px; line-height:1.7; margin:8px 0 0; }
.answer-grid { display:grid; gap:12px; }
.answer-card { border:1px solid var(--b-rule); border-radius:10px; background:var(--b-surface); padding:17px 19px; }
.card-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.card-top h3 { color:var(--b-muted); font-size:11px; font-weight:550; margin:0; overflow-wrap:anywhere; }
.type-pill { color:var(--b-muted); white-space:nowrap; font-size:10px; border:1px solid var(--b-rule); border-radius:4px; padding:3px 6px; }
.question-caption { font-size:12px; line-height:1.6; color:var(--b-ink); margin:10px 0 12px; overflow-wrap:anywhere; }
.answer-headline { color:var(--b-ink); font-size:20px; font-weight:600; line-height:1.4; margin:0 0 10px; overflow-wrap:anywhere; }
.answer-headline span { display:block; margin-top:4px; font-size:12px; color:var(--b-muted); font-weight:400; }
.probability-note { font-size:12px; color:var(--b-muted); line-height:1.6; margin:8px 0; }
.result-change { font-size:11px; color:var(--b-accent); line-height:1.6; margin:8px 0; }
.probability-details summary { color:var(--b-muted); font-size:12px; cursor:pointer; padding:5px 0; }
.probability-details summary:hover { color:var(--b-accent); }
.probability-details summary:focus-visible { outline:2px solid var(--b-accent); outline-offset:3px; }
.distribution { max-height:440px; overflow:auto; }
.probability { margin:10px 0 2px; }
.bar-label { display:flex; justify-content:space-between; align-items:baseline; gap:12px; font-size:12px; color:var(--b-muted); margin-bottom:5px; }
.bar-label span { overflow-wrap:anywhere; line-height:1.5; }
.bar-label b { font-variant-numeric:tabular-nums; white-space:nowrap; font-weight:500; }
.bar-track { background:var(--b-track); height:6px; border-radius:6px; overflow:hidden; }
.bar-fill { background:#9b9b92; height:100%; border-radius:6px; }
.leading .bar-fill { background:var(--b-accent); }
.leading .bar-label { color:var(--b-ink); }
#game-intro { padding:12px 0 4px; }
#game-intro p { font-size:13px; color:var(--b-muted); line-height:1.6; max-width:720px; }
#game-controls { position:sticky; top:0; z-index:20; background:var(--b-bg); margin-bottom:8px; }
#game-status { min-height:38px; font-size:12px; color:var(--b-muted); }
.tetris-panel { max-width:300px; margin:0 auto 4px; padding:16px; border:1px solid var(--b-rule); border-radius:10px; background:var(--b-surface); }
.game-counters { display:flex; justify-content:space-around; gap:14px; margin-bottom:10px; text-align:center; }
.game-counters b { display:block; font-size:24px; line-height:1.2; color:var(--b-ink); font-variant-numeric:tabular-nums; }
.game-counters span, .piece-rack span { font-size:11px; color:var(--b-muted); }
.piece-rack { display:flex; justify-content:space-around; margin:8px 0 12px; }
.piece-preview { display:grid; grid-template-columns:repeat(4, 11px); grid-template-rows:repeat(4, 11px); gap:2px; margin-top:6px; }
.mini-cell { display:block; border-radius:2px; }
.mini-cell.filled { background:var(--b-accent); }
.tetris-board { display:grid; grid-template-columns:repeat(10, 1fr); gap:2px; padding:5px; background:var(--b-track); border:1px solid var(--b-rule); border-radius:5px; }
.tetris-cell { display:block; aspect-ratio:1; background:var(--b-surface); border-radius:2px; }
.tetris-cell.occupied { background:var(--b-accent); box-shadow:inset 0 0 0 1px rgba(255,255,255,.22); }
.game-caption { font-size:11px; line-height:1.5; color:var(--b-muted); text-align:center; margin:10px 0 0; }
.game-move-facts { border-left:2px solid var(--b-accent); padding:2px 0 2px 14px; font-size:12px; line-height:1.7; color:var(--b-ink); margin:16px 4px; }
.game-move-facts p { margin:5px 0; }
.game-move-facts span { color:var(--b-muted); font-size:11px; }
#footer-note { color:var(--b-muted); font-size:11px; border-top:1px solid var(--b-rule); margin-top:28px; padding-top:16px; }
@media (max-width:640px) {
.masthead { padding:10px 0; }
.masthead nav { gap:14px; }
.hero { padding:10px 0; }
.hero p { font-size:13px; }
.answer-card { padding:16px; }
.tetris-panel { max-width:240px; padding:12px; }
}