/* Kółko i krzyżyk — /kik */

.kik-card {
  gap: 14px;
}

.kik-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(320px, 100%);
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.kik-lobby-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: min(320px, 100%);
}

.kik-or {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
}

.kik-join-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.kik-code-input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(26, 92, 46, 0.28);
  background: var(--card, #fff);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 8px 10px;
}

.kik-code-big {
  margin: 0;
  font-size: clamp(2.8rem, 14vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.35em;
  text-align: center;
  color: var(--ink);
}

.kik-wait-label {
  margin: 0;
  text-align: center;
}

.kik-room {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
}

.kik-play-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(280px, 100%);
}

.kik-select {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(26, 92, 46, 0.28);
  background: var(--card, #fff);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 10px;
}

html[data-theme="dark"] .kik-select,
html[data-theme="dark"] .kik-code-input {
  border-color: rgba(201, 162, 39, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.kik-score {
  margin: 0;
  font-size: 0.9rem;
}

.kik-status {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  min-height: 1.4em;
  text-align: center;
}

.kik-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: min(300px, 86vw);
  margin: 4px auto;
}

.kik-cell {
  aspect-ratio: 1;
  border: 2px solid rgba(26, 92, 46, 0.35);
  border-radius: 14px;
  background: var(--card, #fff);
  color: var(--ink);
  font-size: clamp(2.2rem, 10vw, 3rem);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.12s ease, transform 0.1s ease, border-color 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.kik-cell:hover:not(:disabled) {
  border-color: #1a5c2e;
  background: rgba(26, 92, 46, 0.06);
}

.kik-cell:active:not(:disabled) {
  transform: scale(0.96);
}

.kik-cell:disabled {
  cursor: default;
}

.kik-cell.is-o {
  color: #1a5c2e;
}

.kik-cell.is-x {
  color: #b91c1c;
}

.kik-cell.is-win {
  background: rgba(201, 162, 39, 0.28);
  border-color: #c9a227;
}

html[data-theme="dark"] .kik-cell {
  border-color: rgba(201, 162, 39, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .kik-cell:hover:not(:disabled) {
  background: rgba(201, 162, 39, 0.1);
}

html[data-theme="dark"] .kik-cell.is-o {
  color: #4ade80;
}

html[data-theme="dark"] .kik-cell.is-x {
  color: #f87171;
}

/* Drugi FAB — nad ruletką */
.gra-fab.kik-fab {
  bottom: max(140px, calc(124px + env(safe-area-inset-bottom)));
}

.gra-fab.kik-fab svg {
  width: 52px;
  height: 52px;
}
