/* The try board, on /<app>/try pages only. The surface keeps the app's own light look in dark mode too. */
.try-title { font-size: clamp(28px, 5vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin: 16px 0 6px; }
.try-lead { margin: 0 0 4px; color: var(--soft); max-width: 34em; }
#board { margin: 16px 0 0; }
.tb-stage { background: var(--ice); border-radius: 16px; padding: 10px; }
.tb-canvas { display: block; margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; cursor: crosshair; }
/* The keys, laid out as in the apps: white trays of square keys, each a small drawing above its word. */
.tb-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 12px 0 2px; }
.tb-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding: 5px; border-radius: 15px; background: var(--paper); box-shadow: 0 1px 2px rgba(19,32,43,.1); max-width: calc(5 * 48px + 4 * 5px + 10px); }
.tb-key { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 48px; height: 46px; padding: 0 4px; border-radius: 10px; border: 0; background: var(--ice); color: var(--ink); font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-stretch: 90%; cursor: pointer; touch-action: manipulation; }
.tb-key:hover { box-shadow: inset 0 0 0 1px var(--soft); }
.tb-key:focus-visible { outline: 3px solid var(--ct); outline-offset: 2px; }
.tb-key[aria-pressed="true"] { color: var(--ct); box-shadow: inset 0 0 0 1.5px var(--ct); background: color-mix(in srgb, var(--c) 14%, var(--paper)); }
.tb-key:disabled { opacity: .4; cursor: default; box-shadow: none; }
.tb-ico { display: block; flex: none; }
.tb-off { display: none; }
/* Two dots say a key has two modes. The lit one is the mode that is on. As in the apps, top left. */
.tb-line { position: relative; }
.tb-dots { position: absolute; left: 6px; top: 4px; display: flex; gap: 3px; color: var(--ct); }
.tb-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tb-dots i + i, .tb-back .tb-dots i { opacity: .3; }
.tb-back .tb-dots i + i { opacity: 1; }
.tb-word { display: block; white-space: nowrap; letter-spacing: -.01em; }
/* Letter keys show the letter as it lands on the board: its team's color on a light key, in dark mode too. */
.tb-piece { background: color-mix(in srgb, #fff 93%, var(--ink)); font-weight: 800; font-size: 19px; }
.tb-piece[aria-pressed="true"] { background: #fff; box-shadow: inset 0 0 0 2.5px var(--ct); }
.tb-ball { color: #13202b; }
.tb-ball[aria-pressed="true"] { color: #13202b; }
.tb-ball .tb-word { font-size: 11px; font-weight: 600; }
.tb-ball canvas { width: 20px; height: 20px; display: block; }
.tb-wipe { color: #c9271b; }
@media (prefers-color-scheme: dark) { .tb-wipe { color: #ff7a70; } }
.tb-say { min-height: 1.4em; margin: 6px 0 0; text-align: center; font-size: 14px; color: var(--soft); }
.try-get { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin: 20px 0 0; padding: 16px 18px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--rule); }
.try-get p { margin: 0; max-width: 32em; flex: 1 1 260px; }
.try-get .badge { margin: 4px 0; }
.try-still { display: block; width: min(260px, 70%); height: auto; margin: 12px auto 0; border-radius: 14px; }
