/* Kings Chess Club: the parts shared by every page of the website and the KCC
   Arena Portal: header, language switcher, footer, KCC Arena title badge and
   its ⓘ tooltip. KCC palette: deep black, vivid gold and pure white.
   Everything is scoped to its own classes so the Arena's stylesheet is not
   affected. */

:root {
  --kcc-ink: #090909;
  --kcc-ink-2: #141414;
  --kcc-ink-3: #1f1f1f;
  --kcc-white: #ffffff;
  --kcc-muted-on-ink: #c7c7c7;
  --kcc-gold: #ffd000;
  --kcc-gold-hover: #ffdc3d;
  --kcc-live: #22b16a;
  --kcc-red: #e0271b; /* white text on it: 4.7:1 */
  --kcc-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
  --kcc-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --kcc-arabic: "Segoe UI", "Noto Naskh Arabic", "Noto Sans Arabic", "Geeza Pro", "Arabic Typesetting", Tahoma, sans-serif;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--kcc-ink);
  color: var(--kcc-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--kcc-sans);
  font-size: 16px;
  line-height: 1.4;
}

/* A little wider than the page, so the seven menu items fit on one line. */
.site-header .wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header a {
  text-decoration: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 0 1 auto; /* on phones the name wraps before the buttons are pushed off-screen */
}

.logo-mark {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.logo-text {
  display: grid;
  line-height: 1.12;
  min-width: 0;
}

.logo-name {
  font-family: var(--kcc-serif);
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kcc-white);
  white-space: nowrap;
}

.logo-sub {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--kcc-gold);
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: auto;
}

.main-nav a {
  color: var(--kcc-muted-on-ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.93rem;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--kcc-white);
  background: rgba(255, 255, 255, 0.08);
}

.main-nav a.active {
  box-shadow: inset 0 -2px 0 var(--kcc-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.86rem;
  color: var(--kcc-muted-on-ink);
  padding: 0 6px;
}

.lang-switch a {
  color: var(--kcc-muted-on-ink);
  padding: 4px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.lang-switch a:hover {
  color: var(--kcc-white);
}

.lang-switch a.active {
  color: var(--kcc-gold);
}

.lang-switch a[lang="ar"] {
  font-family: var(--kcc-arabic);
  font-size: 1.02em;
}

.lang-sep {
  opacity: 0.4;
}

.icon-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--kcc-muted-on-ink);
  transition: background 0.15s, color 0.15s;
}

.icon-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--kcc-white);
}

.site-header .icon,
.site-footer .icon {
  width: 1.3em;
  height: 1.3em;
  flex: none;
}

.site-header .icon-sm,
.site-footer .icon-sm {
  width: 1em;
  height: 1em;
}

.count-badge {
  position: absolute;
  top: 3px;
  inset-inline-end: 1px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--kcc-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--kcc-ink);
}

.account-panel .count-badge {
  position: static;
  margin-inline-start: auto;
  box-shadow: none;
}

.login-link {
  color: #000000 !important;
  background: var(--kcc-gold);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  margin-inline-start: 4px;
}

.login-link:hover {
  background: var(--kcc-gold-hover);
}

.account-menu {
  position: relative;
}

.account-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kcc-white);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  cursor: pointer;
}

[dir="rtl"] .account-menu summary {
  padding: 5px 5px 5px 10px;
}

.account-name {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu summary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.avatar-dot {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--kcc-gold);
  color: #000000;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.account-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 250px;
  display: grid;
  padding: 6px;
  background: var(--kcc-ink-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.account-panel a,
.account-panel button,
.mobile-account a,
.mobile-account button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: start;
  color: var(--kcc-white);
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.94rem;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.account-panel a:hover,
.account-panel button:hover,
.mobile-account a:hover,
.mobile-account button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.mobile-menu {
  display: none;
}

.mobile-menu summary {
  list-style: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  cursor: pointer;
  color: var(--kcc-white);
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s, background 0.2s;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.bars::before {
  top: -6px;
}

.bars::after {
  top: 6px;
}

.mobile-menu[open] .bars {
  background: transparent;
}

.mobile-menu[open] .bars::before {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu[open] .bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--kcc-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  padding: 8px 16px 20px;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.mobile-panel nav {
  display: grid;
}

.mobile-panel nav a {
  color: var(--kcc-white);
  font-size: 1.06rem;
  font-weight: 600;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-panel nav a.active {
  color: var(--kcc-gold);
}

.mobile-lang {
  display: flex;
  padding: 14px 0 4px;
}

.mobile-account {
  display: grid;
  margin-top: 8px;
}

/* Small laptops: a tighter header keeps all seven menu items on one line. */
@media (max-width: 1480px) {
  .header-inner {
    gap: 10px;
  }
  .logo-name {
    font-size: 1.02rem;
    letter-spacing: 0.04em;
  }
  .main-nav a {
    padding: 8px 9px;
    font-size: 0.9rem;
  }
  .account-name {
    display: none;
  }
  .account-menu summary {
    padding: 4px;
  }
}

@media (max-width: 1260px) {
  .main-nav,
  .hide-md {
    display: none;
  }
  .header-actions {
    margin-inline-start: auto;
  }
  .mobile-menu {
    display: block;
  }
}

@media (max-width: 480px) {
  .header-inner {
    gap: 6px;
    min-height: 62px;
  }
  .logo {
    gap: 8px;
  }
  .logo-name {
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    white-space: normal;
  }
  .logo-sub {
    display: none;
  }
  .logo-mark {
    width: 40px;
    height: 40px;
  }
  .icon-link {
    width: 38px;
    height: 38px;
  }
  .header-actions .login-link {
    padding: 7px 12px;
  }
  .header-actions .account-menu {
    display: none;
  }
}

@media (max-width: 360px) {
  .logo-text {
    display: none;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--kcc-ink);
  color: var(--kcc-muted-on-ink);
  padding: clamp(40px, 7vw, 64px) 0 0;
  font-family: var(--kcc-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer .wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding-bottom: 36px;
}

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.6fr repeat(auto-fit, minmax(170px, 1fr));
  }
}

/* Columns never spill into each other, whatever the club name's length. */
.footer-grid > * {
  min-width: 0;
}

.footer-brand .logo {
  align-items: flex-start;
}

.footer-brand .logo-mark {
  margin-top: 2px;
}

.footer-brand .logo-name {
  white-space: normal;
  line-height: 1.2;
}

.footer-brand p {
  margin: 14px 0 16px;
  max-width: 380px;
}

.site-footer h2 {
  font-family: var(--kcc-sans);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kcc-gold);
  margin: 0 0 14px;
}

.site-footer p {
  margin: 0 0 10px;
}

.site-footer a {
  color: var(--kcc-white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: grid;
  gap: 8px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer .social-icons {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.site-footer .social-icons a {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--kcc-white);
}

/* ♂ / ♀ on the men's and ladies' WhatsApp group icons. */
.social-badge {
  position: absolute;
  inset-block-end: -3px;
  inset-inline-end: -3px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 2px solid var(--kcc-ink);
  border-radius: 50%;
  background: var(--kcc-gold);
  color: #000000;
}

.social-badge .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.6;
}

.site-footer .social-icons a:hover {
  background: var(--kcc-gold);
  border-color: var(--kcc-gold);
  color: #000000;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.86rem;
}

/* ---------- KCC Arena title badge and its ⓘ tooltip ---------- */

.kt {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-inline-end: 6px;
  vertical-align: baseline;
  white-space: nowrap;
}

.kt-code {
  display: inline-block;
  background: #000000;
  color: var(--kcc-gold);
  font-family: var(--kcc-sans);
  font-weight: 800;
  font-size: 0.72em;
  line-height: 1.45;
  letter-spacing: 0.03em;
  padding: 0.05em 0.42em;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid var(--kcc-gold);
  cursor: default;
}

abbr.kt-code[title] {
  text-decoration: none;
}

.kt-info {
  display: inline-grid;
  place-items: center;
  width: 1.35em;
  height: 1.35em;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: #bdbdbd;
  font: inherit;
  font-size: 0.82em;
  line-height: 1;
  cursor: help;
  border-radius: 50%;
}

.kt-info:hover,
.kt-info:focus-visible,
.kt-info[aria-expanded="true"] {
  color: #000000;
  background: var(--kcc-gold);
  outline: none;
}

#kt-tip {
  position: fixed;
  z-index: 1000;
  max-width: min(320px, calc(100vw - 16px));
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--kcc-ink);
  color: var(--kcc-white);
  border: 1px solid var(--kcc-gold);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
  font-family: var(--kcc-sans);
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: start;
  pointer-events: auto;
}

#kt-tip[hidden] {
  display: none;
}

#kt-tip .kt-tip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--kcc-gold);
  margin-bottom: 4px;
}

#kt-tip .kt-tip-name {
  display: block;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

#kt-tip p {
  margin: 0;
}

/* ---------- KCC Arena title progress card ----------
   On the website profile and in the Arena Portal (dashboard and profile): a
   ring with the progress toward the next title, and the whole title ladder as
   a track (Start → NM → … → GM) with a marker at the player's KCC Elo. */

.tp-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 20px;
  margin: 0 0 22px;
  padding: 22px 22px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 208, 0, 0.32);
  border-radius: 20px;
  background:
    radial-gradient(90% 130% at 0% 0%, rgba(255, 208, 0, 0.17), rgba(255, 208, 0, 0) 60%),
    linear-gradient(160deg, #191919 0%, #0d0d0d 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--kcc-white);
  font-family: var(--kcc-sans);
}

[dir="rtl"] .tp-card {
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(255, 208, 0, 0.17), rgba(255, 208, 0, 0) 60%),
    linear-gradient(200deg, #191919 0%, #0d0d0d 100%);
}

/* A faint chessboard in the far corner. */
.tp-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: 280px;
  height: 190px;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.06) 0 25%, transparent 0 50%) 0 0 / 26px 26px;
  -webkit-mask-image: radial-gradient(farthest-side at 100% 0%, #000000, transparent);
  mask-image: radial-gradient(farthest-side at 100% 0%, #000000, transparent);
  pointer-events: none;
}

[dir="rtl"] .tp-card::before {
  -webkit-mask-image: radial-gradient(farthest-side at 0% 0%, #000000, transparent);
  mask-image: radial-gradient(farthest-side at 0% 0%, #000000, transparent);
}

.tp-card.is-top {
  border-color: var(--kcc-gold);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 44px rgba(255, 208, 0, 0.14);
}

.tp-card p {
  margin: 0;
}

.tp-head {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Progress ring */
.tp-ring {
  position: relative;
  flex: none;
  width: 112px;
  height: 112px;
}

.tp-ring-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 10px rgba(255, 208, 0, 0.35));
}

[dir="rtl"] .tp-ring-svg {
  transform: rotate(-90deg) scaleY(-1);
}

.tp-ring-bg {
  fill: rgba(255, 255, 255, 0.025);
  stroke: #272727;
  stroke-width: 8;
}

.tp-ring-fg {
  fill: none;
  stroke: var(--kcc-gold);
  stroke-width: 8;
  stroke-linecap: round;
  animation: tp-ring 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tp-ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 3px;
  text-align: center;
}

.tp-ring-label b {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tp-ring-label small {
  color: var(--kcc-gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tp-ring-label .tp-crown {
  width: 28px;
  height: 28px;
  color: var(--kcc-gold);
}

/* Next title, points to go and the key numbers */
.tp-summary {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.tp-eyebrow {
  color: var(--kcc-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tp-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
  margin: 0;
  color: var(--kcc-white);
  font-family: var(--kcc-serif);
  font-size: clamp(1.3rem, 3.4vw, 1.65rem);
  font-weight: 700;
  line-height: 1.15;
}

.tp-name .kt {
  font-family: var(--kcc-sans);
  font-size: 1.15rem;
}

.tp-lead {
  color: #d9d9d9;
  font-size: 1rem;
}

.tp-lead strong {
  color: var(--kcc-gold);
  font-size: 1.2em;
  font-weight: 800;
}

.tp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}

.tp-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #bdbdbd;
  font-size: 0.78rem;
}

.tp-chip b {
  color: var(--kcc-white);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* The title ladder */
.tp-track {
  padding: 42px 26px 46px;
}

.tp-rail {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #202020;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.tp-fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 208, 0, 0.35), var(--kcc-gold) 75%, #ffe45c);
  box-shadow: 0 0 16px rgba(255, 208, 0, 0.45);
  animation: tp-grow 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

[dir="rtl"] .tp-fill {
  background: linear-gradient(270deg, rgba(255, 208, 0, 0.35), var(--kcc-gold) 75%, #ffe45c);
}

/* A soft light passing along the filled part now and then. */
.tp-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-100%);
  animation: tp-shine 3.4s ease-in-out 1.4s infinite;
}

.tp-steps {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-step {
  position: absolute;
  top: calc(50% - 8px);
  width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tp-dot {
  box-sizing: border-box;
  flex: none;
  width: 16px;
  height: 16px;
  margin-bottom: 6px;
  border: 2px solid #4a4a4a;
  border-radius: 50%;
  background: #1a1a1a;
}

.tp-code {
  color: #8c8c8c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tp-min {
  color: #8c8c8c;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tp-step.is-done .tp-dot {
  border-color: #0d0d0d;
  background: var(--kcc-gold);
  box-shadow: 0 0 0 2px var(--kcc-gold);
}

.tp-step.is-done .tp-code {
  color: var(--kcc-gold);
}

.tp-step.is-done .tp-min {
  color: #bdbdbd;
}

.tp-step.is-next .tp-dot {
  border-color: var(--kcc-gold);
  background: #0d0d0d;
  animation: tp-pulse 2s ease-out infinite;
}

.tp-step.is-next .tp-code {
  color: var(--kcc-white);
}

.tp-step.is-next .tp-min {
  color: var(--kcc-gold);
  font-weight: 700;
}

/* Rating reached, the title waits for the minimum number of games. */
.tp-step.is-pending .tp-dot {
  border: 2px dashed var(--kcc-gold);
  background: rgba(255, 208, 0, 0.22);
}

.tp-step.is-pending .tp-code {
  color: var(--kcc-gold);
}

/* The player's KCC Elo on the track */
.tp-marker {
  position: absolute;
  z-index: 2;
  bottom: calc(50% - 11px);
  width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  animation: tp-slide 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tp-bubble {
  position: relative;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--kcc-white);
  color: #000000;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.tp-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--kcc-white);
}

.tp-knob {
  box-sizing: border-box;
  flex: none;
  width: 22px;
  height: 22px;
  border: 4px solid var(--kcc-gold);
  border-radius: 50%;
  background: var(--kcc-white);
  box-shadow: 0 0 0 3px rgba(9, 9, 9, 0.9), 0 0 18px rgba(255, 208, 0, 0.8);
}

/* The minimum-games note */
.tp-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 208, 0, 0.22);
  border-radius: 12px;
  background: rgba(255, 208, 0, 0.08);
  color: #d9d9d9;
  font-size: 0.88rem;
  line-height: 1.45;
}

.tp-note .tp-note-icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--kcc-gold);
}

@keyframes tp-ring {
  from {
    stroke-dasharray: 0 100;
  }
}

@keyframes tp-grow {
  from {
    width: 0;
  }
}

@keyframes tp-slide {
  from {
    inset-inline-start: 0;
  }
}

@keyframes tp-shine {
  60%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes tp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 208, 0, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(255, 208, 0, 0);
  }
}

@media (max-width: 560px) {
  .tp-card {
    gap: 16px;
    padding: 18px 16px 14px;
  }
  .tp-head {
    gap: 14px;
  }
  .tp-ring {
    width: 88px;
    height: 88px;
  }
  .tp-ring-label b {
    font-size: 1.35rem;
  }
  .tp-ring-label small {
    font-size: 0.62rem;
  }
  .tp-track {
    padding-inline: 20px;
  }
  .tp-code {
    font-size: 0.66rem;
  }
  .tp-min {
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tp-ring-fg,
  .tp-fill,
  .tp-fill::after,
  .tp-marker,
  .tp-step.is-next .tp-dot {
    animation: none;
  }
}

@media print {
  .tp-card {
    border-color: #000000;
    background: #ffffff;
    color: #000000;
    box-shadow: none;
  }
  .tp-card::before,
  .tp-fill::after,
  .tp-marker {
    display: none;
  }
  .tp-name,
  .tp-lead,
  .tp-chip b {
    color: #000000;
  }
}

/* ---------- Arabic typography ---------- */

:lang(ar) .site-header,
:lang(ar) .site-footer,
:lang(ar) #kt-tip,
:lang(ar) .tp-card {
  font-family: var(--kcc-arabic);
}

:lang(ar) .tp-eyebrow,
:lang(ar) .tp-ring-label small {
  letter-spacing: 0;
  text-transform: none;
}

/* Arabic script needs a little more size than the small capitals it replaces. */
:lang(ar) .tp-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
}

:lang(ar) .tp-ring-label small,
:lang(ar) .tp-code {
  font-size: 0.78rem;
}

:lang(ar) .tp-name {
  font-family: var(--kcc-arabic);
}

:lang(ar) .logo-name,
:lang(ar) .logo-sub,
:lang(ar) .site-footer h2 {
  letter-spacing: 0;
  text-transform: none;
}

:lang(ar) .logo-name {
  font-family: var(--kcc-arabic);
  font-size: 1.12rem;
}

:lang(ar) .main-nav a {
  font-size: 0.98rem;
}

/* Icons that point in the reading direction. */
[dir="rtl"] .flip-rtl {
  transform: scaleX(-1);
}
