/* Comfort bar and text size. Used by the hub and both games. First-party, no images or fonts. */
html[data-text-size="large"] { font-size: 112.5%; }
html[data-text-size="larger"] { font-size: 125%; }

/* Calm look: a plain card; choices are outlined in green and turn solid green when on. */
.comfort-root { margin: 0 0 1.5rem; --cf-ink: #1f2a24; --cf-bg: #ffffff; --cf-line: #1f4d36; --cf-card: #ddd8ce; --cf-shadow: rgba(0, 0, 0, .08); --cf-on: #1f4d36; --cf-on-ink: #ffffff; --cf-focus: #0b0b0b; --cf-halo: #ffd500; }
[data-calm-theme="dusk"] .comfort-root, html[data-theme="moonlight"] .comfort-root { --cf-ink: #eef0fb; --cf-bg: #1f2640; --cf-line: #b9c4ff; --cf-card: #8d97c4; --cf-shadow: rgba(0, 0, 0, .4); --cf-on: #b9c4ff; --cf-on-ink: #161b30; --cf-focus: #ffd479; --cf-halo: #000000; }
.comfort-bar { display: grid; gap: .75rem; padding: 1rem; color: var(--cf-ink); background: var(--cf-bg); border: 1px solid var(--cf-card); border-radius: 12px; box-shadow: 0 1px 3px var(--cf-shadow); font-family: inherit; font-size: 1.1875rem; line-height: 1.5; text-align: left; }
.comfort-group { display: grid; gap: .4rem; }
.comfort-label { font-weight: 700; }
.comfort-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.comfort-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.comfort-btn { font: inherit; font-weight: 600; color: var(--cf-ink); background: var(--cf-bg); border: 1px solid var(--cf-line); border-radius: 10px; min-height: 48px; min-width: 48px; padding: .5rem .25rem; cursor: pointer; box-shadow: none; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.comfort-btn[aria-pressed="true"] { color: var(--cf-on-ink); background: var(--cf-on); }
.comfort-btn:focus-visible { outline: 5px solid var(--cf-focus); outline-offset: 3px; box-shadow: 0 0 0 9px var(--cf-halo); }
.comfort-bar .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Quiet Mode: fewer words on screen and no movement. Nothing is removed that you need to play. */
html[data-quiet="on"] .hint, html[data-quiet="on"] .games-notes, html[data-quiet="on"] .quiet-hide { display: none; }
@media (prefers-reduced-motion: reduce) { .comfort-btn { transition: none; } }
@media (forced-colors: active) { .comfort-btn, .comfort-bar { border-color: CanvasText; } .comfort-btn[aria-pressed="true"] { border-width: 4px; } }

.comfort-seg .comfort-btn { white-space: nowrap; }
