/* JARGOLA Kelime tahtasi (tahta.js). Web ve mobil ortak; renkler sayfanin --bg/--ink/--acc degiskenlerinden. */
body.tht-open { overflow: hidden; }
.tht { position: fixed; inset: var(--bar-h, 0px) 0 0 0; z-index: 60; background: var(--bg, #0E1524); color: var(--ink, #F4F1E8); overflow-y: auto;
  background-image: radial-gradient(ellipse at 50% -10%, #23324F 0%, var(--bg, #0E1524) 60%); }
.tht-in { max-width: 560px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 10px) 10px calc(env(safe-area-inset-bottom, 0px) + 18px); }
.tht-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 8px; }
.tht-top b { font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: .03em; }
.tht-x { background: var(--bg-2, #16213A); border: 1px solid var(--line, #2B3A5C); color: inherit; border-radius: 999px; width: 36px; height: 36px; font-size: 16px; }
.tht-dim { color: var(--ink-dim, #A9B1BF); font-size: 13px; margin: 0; }
.tht-c { text-align: center; } .tht-pad { padding: 24px 0; text-align: center; }
.tht-bar { display: flex; justify-content: space-between; padding: 0 6px 8px; font-size: 13px; color: var(--ink-dim, #A9B1BF); font-weight: 600; }
.tht-bar b { color: var(--acc, #E2BC5C); font-size: 16px; }
.tht-time { font: 400 18px var(--display); color: var(--ink, #F4F1E8); background: var(--bg-2, #16213A); border-radius: 999px; padding: 2px 12px; }
.tht-time.low { color: #fff; background: #D8453F; }

.tht-clue { background: var(--bg-2, #16213A); border: 1px solid var(--line, #2B3A5C); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px;
  display: flex; flex-direction: column; gap: 3px; text-align: center; }
.tht-clue small { color: var(--ink-dim, #A9B1BF); font-weight: 600; font-size: 12px; }
.tht-clue b { font-size: 17px; }
.tht-pat { font-family: ui-monospace, Consolas, monospace; color: var(--acc, #E2BC5C); font-size: 16px; letter-spacing: .1em; white-space: pre; }

/* tahta: 15 sutun, kare hucreler */
.tht-board { display: grid; grid-template-columns: repeat(15, 1fr); gap: 2px; background: #C9CFD8; padding: 2px; border-radius: 6px; }
.tht-cell { aspect-ratio: 1; border: 0; padding: 0; border-radius: 3px; background: #E4E8EE; color: #fff; font: 800 clamp(7px, 2.1vw, 11px) var(--body);
  display: flex; align-items: center; justify-content: center; position: relative; min-width: 0; }
.tht-cell.b-H2 { background: #8DB4C9; } .tht-cell.b-H3 { background: #C2A3CF; }
.tht-cell.b-K2 { background: #8FBF94; } .tht-cell.b-K3 { background: #B9A58F; }
.tht-cell.b-STAR { background: #F2A33A; font-size: clamp(9px, 2.8vw, 15px); }
.tht-cell.aim { outline: 2px dashed var(--acc, #E2BC5C); outline-offset: -2px; }
.tht-cell.tht-on, .tht-tile { background: linear-gradient(#FBE9A6, #F2D06B); color: #3A2E12; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.tht-cell.tht-on b { font: 400 clamp(10px, 3.3vw, 18px) var(--display); line-height: 1; }
.tht-cell.tht-on sup, .tht-tile sup { position: absolute; top: 1px; right: 2px; font-size: clamp(5px, 1.5vw, 8px); font-weight: 800; }
.tht-cell.pend { background: linear-gradient(#FFD27A, #F5A524); }
.tht-cell.last { background: linear-gradient(#C8F0D4, #8FD6A6); }
.tht-board.still .tht-cell { cursor: default; }

.tht-rack { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0 4px; min-height: 52px; }
.tht-tile { width: 46px; height: 50px; border: 0; border-radius: 8px; position: relative; display: flex; align-items: center; justify-content: center; }
.tht-tile b { font: 400 26px var(--display); }
.tht-tile sup { top: 3px; right: 5px; font-size: 10px; }
.tht-tile.sel { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--acc, #E2BC5C), 0 6px 12px rgba(0,0,0,.35); }
.tht-msg { min-height: 18px; margin: 2px 0 6px; text-align: center; font-size: 13px; font-weight: 700; color: #FFB27A; }

.tht-acts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: center; }
.tht-acts button { border: 0; background: none; color: var(--ink, #F4F1E8); font: 700 12px var(--body); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tht-acts button i { font-style: normal; width: 42px; height: 42px; border-radius: 50%; background: #1E8FC8; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.tht-acts button.ok i { width: 56px; height: 56px; background: #3FB27F; color: #fff; font-size: 24px; }   /* Onayla: yesil, biraz buyuk */

.tht-gap { margin-top: 12px; text-align: center; border-radius: 14px; padding: 14px; font-weight: 700; background: var(--bg-2, #16213A); }
.tht-gap.ok b { color: #6EE7A8; } .tht-gap.no b { color: var(--ink-dim, #A9B1BF); }

.tht-end h2 { text-align: center; margin: 4px 0; font-family: var(--display); font-weight: 400; color: var(--acc, #E2BC5C); font-size: 30px; }
.tht-end .tht-board { margin: 10px 0; }
.tht-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tht-hist li { display: grid; grid-template-columns: 18px auto 1fr auto; gap: 8px; align-items: baseline; background: var(--bg-2, #16213A); border-radius: 10px; padding: 7px 10px; font-size: 14px; }
.tht-hist i { font-style: normal; } .tht-hist .ok i, .tht-hist em { color: #6EE7A8; font-style: normal; font-weight: 800; }
.tht-hist b { cursor: pointer; } .tht-hist span { color: var(--ink-dim, #A9B1BF); }
.tht-row { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.tht-cta { border: 0; border-radius: 999px; background: var(--acc, #E2BC5C); color: #14233F; font: 800 15px var(--body); padding: 12px 18px; }
.tht-ghost { border: 1px solid var(--line-2, #33415F); background: none; color: var(--ink, #F4F1E8); border-radius: 999px; font: 700 14px var(--body); padding: 10px 16px; }

/* iki kisilik (12.10.2026): bota karsi + online 1v1 */
.tht-start { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 420px; margin: 20px auto; text-align: center; }
.tht-start h2 { margin: 0; font-family: var(--display); font-weight: 400; color: var(--acc, #E2BC5C); }
.tht-start .tht-cta, .tht-start .tht-ghost { padding: 14px; font-size: 16px; }
.tht-bar2 { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 0 4px 8px; font-size: 14px; font-weight: 700; color: var(--ink-dim, #A9B1BF); }
.tht-bar2 > span:first-child { text-align: left; } .tht-bar2 > span:last-child { text-align: right; }
.tht-bar2 b { color: var(--ink, #F4F1E8); font-size: 18px; }
.tht-bar2 .on { color: var(--acc, #E2BC5C); } .tht-bar2 .on b { color: var(--acc, #E2BC5C); }
.tht-wait { text-align: center; margin: 14px 0; font-weight: 700; color: var(--ink-dim, #A9B1BF); }
.tht-score2 { text-align: center; font-size: 18px; margin: 0 0 4px; } .tht-score2 b { font-family: var(--display); font-weight: 400; }
