/* Speed Labels, arcade: the name to type, big, under her board. Games 20261117. */
#title .cards { margin-top: 28px; text-align: left; }
.card.sel { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.tword { position: relative; margin: 14px auto 6px; text-align: center; font: 900 clamp(30px, 6.6vw, 58px)/1.15 Nunito, system-ui, sans-serif; letter-spacing: .02em; min-height: 1.3em; cursor: text; user-select: none; overflow-wrap: anywhere; }
.tword .c { position: relative; display: inline-block; color: #5a5a62; transition: color .08s; }
.tword .c.sp { width: .32em; }
.tword .c.done { color: var(--text); }
.tword .c.helped { color: var(--yellow); }
.tword .c.auto { color: #5a5a62; }
.tword .c.auto.done { color: var(--text); }
.tword .c.hide { color: transparent; }
.tword .c.hide::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: .12em; height: .09em; border-radius: 2px; background: #5a5a62; }
.tword .c.hide.done, .tword .c.hide.helped { color: var(--text); }
.tword .c.hide.helped { color: var(--yellow); }
.tword .c.hide.done::after, .tword .c.hide.helped::after { display: none; }
.tword .c.next::before { content: ''; position: absolute; left: -2px; top: .12em; bottom: .1em; width: 3px; border-radius: 2px; background: var(--red); animation: caret 1s steps(2, start) infinite; }
.tword .c.err { color: var(--red) !important; animation: a-shake .25s; }
.tword.win .c { color: var(--green); }
@keyframes caret { to { visibility: hidden; } }
.tin { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; opacity: 0; font-size: 16px; border: 0; padding: 0; background: transparent; color: transparent; caret-color: transparent; }
.tkeys { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 6px 0 0; }
.tkeys button { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; color: var(--soft); font-size: 14px; cursor: pointer; }
.tkeys span { color: var(--muted); font-size: 13px; display: none; }
body.kb-lost .tkeys span { display: inline; }
.round-flash { position: absolute; left: 50%; top: 40%; translate: -50% -50%; z-index: 5; padding: 10px 22px; border-radius: 16px; background: #000c; border: 1px solid var(--line-2); font: 900 clamp(22px, 5vw, 34px) Nunito, system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; animation: a-countin .4s both; pointer-events: none; }
.round-flash small { display: block; font-size: 14px; color: var(--soft); letter-spacing: .08em; text-align: center; }
#end .missed, #end .pitch { text-align: left; }
#end .pitch { text-align: center; }
@media (max-width: 700px) {
  .tword { margin-top: 10px; }
  #title .cards { margin-top: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #title .card .body { padding: 8px 10px 10px; }
  #title .card b { font-size: 15px; }
  #title .card .tag { font-size: 12px; }
  .a-how .k { display: none; }
}

/* ---------- the sleek look (Matt, Nov 17: "the guy's website i sent u still looks better ... a better vibe"): the phone's own system font,
   a live demo as the hero, a huge clean two-tone title, flat pill buttons, no frames ---------- */
body.sleek { --sys: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-family: var(--sys); }
body.sleek .logo { font-family: var(--sys); font-weight: 800; letter-spacing: -.03em; }
body.sleek #title .cards { margin-top: 22px; width: 100%; text-align: left; }
body.sleek .card { background: #0f0f11; border-color: #1f1f23; border-radius: 16px; }
body.sleek .card b { font-family: var(--sys); font-weight: 750; letter-spacing: -.01em; }
/* the game in the sleek look: no frame round her board, typed letters red (like the hero), flat buttons */
body.sleek .boardbox { border: 0; background: transparent; }
body.sleek .tword { font-family: var(--sys); font-weight: 800; letter-spacing: -.02em; font-size: clamp(40px, 10vw, 66px); }
body.sleek .tword .c, body.sleek .tword .c.auto { color: #3a3a40; }
body.sleek .tword .c.done, body.sleek .tword .c.auto.done, body.sleek .tword .c.hide.done { color: var(--red); }
body.sleek .tword .c.helped, body.sleek .tword .c.hide.helped { color: var(--yellow); }
body.sleek .tword.win .c { color: var(--text); }
body.sleek .a-hud, body.sleek .a-results, body.sleek .tkeys button, body.sleek .round-flash, body.sleek .a-count b { font-family: var(--sys); }
body.sleek .a-results .big { font-family: var(--sys); letter-spacing: -.05em; }
body.sleek .go { box-shadow: none; border-radius: 16px; font: 650 17px var(--sys); text-transform: none; letter-spacing: -.01em; }
body.sleek .go:active { translate: 0 0; transform: scale(.98); }
body.sleek .go.light, body.sleek .go.ghost { box-shadow: none; }
body.sleek .go.ghost { border: 1px solid #2c2c31; background: #111113; }
body.sleek .missed, body.sleek .pitch { border-color: #1f1f23; background: #0f0f11; }
@media (max-width: 700px) {
  .hero-board { width: 100%; }
  .cta { flex-direction: column; width: 100%; }
  .btn-pri, .btn-sec { width: 100%; flex: none; }
  .hero-word { white-space: normal; }
}

/* Gaps really blank (Matt, Nov 18: "the gaps arent blank ... it still shows the answer"): the sleek grey above outranked .c.hide, so hidden
   letters showed grey. Hidden stays invisible until typed or given; a wrong key on a gap turns its line red, never shows the letter. */
.tword .c.hide:not(.done):not(.helped), body.sleek .tword .c.hide:not(.done):not(.helped) { color: transparent !important; }
body.sleek .tword .c.hide::after { background: #4a4a52; }
.tword .c.hide.err::after { background: var(--red); }
/* The part to name stands out (Matt, Nov 18: "make the arrow or highlighted area more obvious ... the words are getting more in my head
   rather than the location"): the rest of her drawing fades back while a part is asked, the part pulses, and the name is a bit smaller. */
#board g.dim { opacity: .22; transition: opacity .2s; }
#board g.hl, #board g.qmark { animation: hl-pulse 1.1s ease-in-out infinite; }
@keyframes hl-pulse { 50% { opacity: .55; } }
body.sleek .tword { font-size: clamp(30px, 7vw, 46px); }
