/* Tafl — a carved board, slate attackers, ivory defenders. The board itself is drawn on the canvas. */
.tf-col { padding: 2px 4px 6px; gap: 4px; }
/* The board area is a square as wide as the stage; in a short stage it gives up height and the board shrinks with it. */
.tf-wrap { direction: ltr; flex: 0 1 auto; aspect-ratio: 1 / 1; max-width: 640px; }
.tf-wrap canvas { cursor: pointer; }

/* whose turn, and what they are trying to do */
.tf-status { gap: 8px; min-height: 32px; font-size: 0.97rem; line-height: 1.2; }
.tf-status b::before { content: "·"; margin-inline-end: 8px; font-weight: 400; color: var(--mist-dim); }
.tf-status.is-warn b { color: var(--w-vermilion); animation: tf-warn 1.5s ease-in-out infinite; }
.tf-dot,
.tf-pip { flex: none; display: inline-block; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.tf-dot { width: 13px; height: 13px; }
.tf-pip { width: 16px; height: 16px; }
.tf-dot--a,
.tf-pip--a { background: radial-gradient(circle at 35% 30%, #8797A2, #39454F 55%, #161C21); }
.tf-dot--d,
.tf-pip--d { background: radial-gradient(circle at 35% 30%, #FFFDF2, #EAD9A8 55%, #A98C52); }
@keyframes tf-warn { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* piece counts: a little piece and how many are left */
.tf-chip { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 54px; padding: 9px 10px; }
.tf-chip .fa-chip__value { margin-top: 0; }

/* the new-game panel */
.tf-opts { display: grid; gap: 12px; text-align: start; }
.tf-opt { transition: opacity 0.2s linear; }
.tf-opt.is-off { opacity: 0.35; pointer-events: none; }
.tf-opt__label { margin-bottom: 5px; font-size: 12px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); }
html[lang="ar"] .tf-opt__label { letter-spacing: 0; font-size: 13px; }
.tf-opts .fa-seg { display: flex; width: 100%; border-radius: 16px; }
.tf-opts .fa-seg button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 4px 6px; border-radius: 13px; line-height: 1.15; }

/* two small buttons side by side under "Play again" */
.kit-result .fa-panel__row .fa-btn--small { padding-left: 0.5em; padding-right: 0.5em; }

@media (max-width: 360px) {
  .kit-result .fa-panel__title { font-size: 1.7rem; }
  .tf-status { font-size: 0.9rem; gap: 6px; }
  .tf-status b::before { margin-inline-end: 6px; }
  .tf-chip { min-width: 48px; gap: 6px; padding: 8px; }
  .tf-pip { width: 14px; height: 14px; }
}
@media (max-height: 420px) {
  .tf-status { min-height: 24px; }
}
