:root {
  --cf-bg: #061018;
  --cf-bg-2: #0b1822;
  --cf-panel: rgba(11, 25, 35, 0.86);
  --cf-panel-soft: rgba(255, 255, 255, 0.055);
  --cf-border: rgba(255, 255, 255, 0.14);
  --cf-text: #f7f5ef;
  --cf-muted: #9daab5;
  --cf-green: #36c56b;
  --cf-green-2: #1d9d52;
  --cf-gold: #d8a63b;
  --cf-ink: #101417;
  --cf-cream: #f6f4ef;
}

.cf-landing,
.cf-landing * {
  box-sizing: border-box;
}

.cf-landing {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--cf-bg);
  color: var(--cf-text);
  font-family: var(--cf-sans);
  font-size: 16px;
  line-height: 1.5;
}

.cf-landing a,
.cf-landing button {
  cursor: pointer;
}

.cf-landing [hidden] {
  display: none !important;
}

.cf-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.cf-dark-section {
  background:
    radial-gradient(circle at 15% 20%, rgba(54, 197, 107, 0.1), transparent 32rem),
    linear-gradient(135deg, #061018 0%, #0a1822 55%, #061018 100%);
}

.cf-light-section {
  position: relative;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(246, 244, 239, 0.98)),
    repeating-conic-gradient(from 45deg, rgba(6, 16, 24, 0.035) 0 25%, transparent 0 50%) 0 0 / 90px 90px;
  color: var(--cf-ink);
}

.cf-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 13, 20, 0.9);
  backdrop-filter: blur(16px);
  padding-top: env(safe-area-inset-top, 0px);
}

.cf-nav-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 36px;
  position: relative;
}

.cf-brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  text-decoration: none;
}

.cf-brand-mark {
  width: 7.2rem;
  height: 7.2rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(216, 166, 59, 0.92);
  border-radius: 17px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.32),
    0 0 0 5px rgba(216, 166, 59, 0.08),
    0 0 28px rgba(216, 166, 59, 0.18);
}

.cf-brand-mark img {
  width: 128%;
  height: 128%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.cf-brand-text {
  font-family: var(--cf-serif);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
}

.cf-brand-text span {
  color: var(--cf-gold);
}

.cf-nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cf-nav-links a {
  color: #f2f6f2;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.cf-nav-links a:hover {
  color: var(--cf-green);
  opacity: 1;
}

.cf-register {
  color: #fff;
  text-decoration: none;
  min-height: 4rem;
  min-width: 12rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.6rem;
  border: 1px solid rgba(101, 255, 152, 0.55);
  border-radius: 7px;
  background: linear-gradient(180deg, #36c56b, #168942);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 26px rgba(30, 180, 83, 0.25);
  font-weight: 800;
}

.cf-auth-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.cf-auth-btn {
  min-height: 4rem;
  min-width: 12rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.6rem;
  border-radius: 0.45rem;
  color: #f7f5ef;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  border: 1px solid rgba(216, 166, 59, 0.48);
  background: linear-gradient(180deg, rgba(216, 166, 59, 0.22), rgba(113, 78, 20, 0.3));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0.8rem 1.6rem rgba(216, 166, 59, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cf-auth-btn:hover {
  color: #ffffff;
  border-color: rgba(236, 190, 82, 0.72);
  background: linear-gradient(180deg, rgba(216, 166, 59, 0.32), rgba(113, 78, 20, 0.44));
  transform: translateY(-0.1rem);
}

.cf-auth-home {
  border-color: rgba(216, 166, 59, 0.52);
  background: rgba(216, 166, 59, 0.12);
}

.cf-auth-logged .cf-auth-home {
  min-height: 4rem;
  min-width: 12rem;
  padding: 0.78rem 1.6rem;
}

.cf-menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  padding: 8px;
}

.cf-menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px 0;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cf-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.cf-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.cf-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.cf-hero {
  position: relative;
  min-height: 640px;
  padding: 136px 0 34px;
  overflow: hidden;
}

.cf-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 16, 24, 0.96) 0%, rgba(6, 16, 24, 0.75) 36%, rgba(6, 16, 24, 0.96) 100%);
  opacity: 0.35;
}

.cf-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 42px;
  align-items: center;
}

.cf-hero-copy h1 {
  max-width: 560px;
  margin: 0 0 22px;
  font-family: var(--cf-serif);
  font-size: clamp(46px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.cf-hero-copy h1 span {
  color: var(--cf-green);
}

.cf-hero-copy p {
  max-width: 520px;
  margin: 0 0 26px;
  color: #d8dee4;
  font-size: 17px;
}

.cf-hero-actions,
.cf-stats,
.cf-controls,
.cf-tabs,
.cf-arena-meta,
.cf-panel-head,
.cf-events div,
.cf-dashboard,
.cf-metrics,
.cf-footer-inner {
  display: flex;
}

.cf-hero-actions {
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cf-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 25px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cf-btn:hover {
  transform: translateY(-2px);
}

.cf-btn-primary {
  color: #fff;
  border: 1px solid rgba(101, 255, 152, 0.56);
  background: linear-gradient(180deg, #43d878, #1b944b);
  box-shadow: 0 18px 34px rgba(30, 180, 83, 0.27);
}

.cf-btn-ghost {
  color: #f7e5bd;
  border: 1px solid rgba(216, 166, 59, 0.8);
  background: rgba(216, 166, 59, 0.08);
}

.cf-stats {
  gap: 24px;
  flex-wrap: wrap;
}

.cf-stats div {
  min-width: 86px;
  color: #fff;
}

.cf-stats i {
  color: var(--cf-green);
  margin-right: 7px;
}

.cf-stats strong {
  display: inline-block;
  font-size: 19px;
}

.cf-stats span {
  display: block;
  color: #c8d0d7;
  font-size: 11px;
}

.cf-game-card {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: 140px minmax(310px, 1fr) 205px;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(16, 31, 43, 0.94), rgba(8, 20, 30, 0.94));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

.cf-player {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: start;
  grid-column: 1;
  color: #fff;
}

.cf-player-bottom {
  align-self: end;
}

.cf-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--cf-green);
  background:
    radial-gradient(circle at 50% 30%, #f2b98f 0 18%, transparent 19%),
    radial-gradient(circle at 50% 100%, #243446 0 38%, transparent 39%),
    linear-gradient(135deg, #68422e, #d6a071);
}

.cf-avatar.female {
  background:
    radial-gradient(circle at 50% 30%, #efc4a4 0 18%, transparent 19%),
    radial-gradient(circle at 50% 100%, #26384f 0 38%, transparent 39%),
    linear-gradient(135deg, #1b2533, #e9b19c);
}

.cf-player strong {
  display: block;
  font-size: 12px;
}

.cf-player strong span {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  background: #ca1f36;
  font-size: 9px;
}

.cf-player small {
  color: #b8ffc9;
  font-size: 11px;
}

.cf-clock {
  grid-column: 1;
  width: 112px;
  align-self: center;
  padding: 12px 10px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #e7ecef;
  background: rgba(255, 255, 255, 0.04);
  font-size: 31px;
  font-weight: 850;
  text-align: center;
}

.cf-clock small {
  display: block;
  color: #57ee7d;
  font-size: 13px;
}

.cf-versus {
  grid-column: 1;
  align-self: center;
  justify-self: center;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--cf-gold);
  border: 1px solid rgba(216, 166, 59, 0.55);
  font-weight: 900;
}

.cf-board-wrap {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
  justify-self: center;
  width: min(100%, 380px);
}

.cf-board,
.cf-mini-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  overflow: hidden;
}

.cf-board {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cf-board span,
.cf-mini-board span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  font-family: var(--cf-serif);
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
  color: #1a1d1f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

.cf-board span:nth-child(16n+1),
.cf-board span:nth-child(16n+3),
.cf-board span:nth-child(16n+5),
.cf-board span:nth-child(16n+7),
.cf-board span:nth-child(16n+10),
.cf-board span:nth-child(16n+12),
.cf-board span:nth-child(16n+14),
.cf-board span:nth-child(16n+16),
.cf-mini-board span:nth-child(16n+1),
.cf-mini-board span:nth-child(16n+3),
.cf-mini-board span:nth-child(16n+5),
.cf-mini-board span:nth-child(16n+7),
.cf-mini-board span:nth-child(16n+10),
.cf-mini-board span:nth-child(16n+12),
.cf-mini-board span:nth-child(16n+14),
.cf-mini-board span:nth-child(16n+16) {
  background: #e3d8c8;
}

.cf-board span:nth-child(16n+2),
.cf-board span:nth-child(16n+4),
.cf-board span:nth-child(16n+6),
.cf-board span:nth-child(16n+8),
.cf-board span:nth-child(16n+9),
.cf-board span:nth-child(16n+11),
.cf-board span:nth-child(16n+13),
.cf-board span:nth-child(16n+15),
.cf-mini-board span:nth-child(16n+2),
.cf-mini-board span:nth-child(16n+4),
.cf-mini-board span:nth-child(16n+6),
.cf-mini-board span:nth-child(16n+8),
.cf-mini-board span:nth-child(16n+9),
.cf-mini-board span:nth-child(16n+11),
.cf-mini-board span:nth-child(16n+13),
.cf-mini-board span:nth-child(16n+15) {
  background: #7b8790;
}

.cf-board .cf-move {
  background: #65b46f !important;
}

.cf-files {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  color: #d6dde4;
  font-size: 13px;
  text-align: center;
  margin-top: 4px;
}

.cf-moves {
  grid-column: 3;
  grid-row: 1 / span 4;
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.cf-tabs {
  gap: 16px;
  color: #81909a;
  font-size: 12px;
  font-weight: 700;
}

.cf-tabs span:first-child {
  color: var(--cf-green);
}

.cf-moves p {
  color: #bfc8cf;
  font-size: 12px;
  margin: 15px 0 8px;
}

.cf-moves ol {
  margin: 0;
  padding: 0;
  list-style-position: inside;
  color: #cbd5dc;
  font-size: 13px;
}

.cf-moves li {
  display: grid;
  grid-template-columns: 28px 1fr 1fr;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 5px;
}

.cf-moves li::before {
  content: counter(list-item) ".";
  color: #8b9aa5;
}

.cf-moves li.active {
  background: rgba(54, 197, 107, 0.12);
}

.cf-controls {
  gap: 8px;
  margin-top: 16px;
}

.cf-controls span {
  flex: 1;
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #e5edf2;
  font-size: 11px;
}

.cf-real-board {
  border: 0.7rem solid #5c3b22;
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 1.4rem 3.5rem rgba(0, 0, 0, 0.34);
  background: #5c3b22;
}

.cf-real-board span {
  --cf-piece-img: none;
  background: var(--cf-piece-img) center / 82% 82% no-repeat, linear-gradient(135deg, #f0d9b5, #d9bd8f) !important;
}

.cf-real-board span:nth-child(16n+2),
.cf-real-board span:nth-child(16n+4),
.cf-real-board span:nth-child(16n+6),
.cf-real-board span:nth-child(16n+8),
.cf-real-board span:nth-child(16n+9),
.cf-real-board span:nth-child(16n+11),
.cf-real-board span:nth-child(16n+13),
.cf-real-board span:nth-child(16n+15) {
  background: var(--cf-piece-img) center / 82% 82% no-repeat, linear-gradient(135deg, #9b6a3d, #6e472b) !important;
}

.cf-real-board .cf-move {
  background: var(--cf-piece-img) center / 82% 82% no-repeat, linear-gradient(135deg, #78c86d, #3f9349) !important;
  box-shadow: inset 0 0 0 0.28rem rgba(232, 255, 210, 0.22);
}

.cf-white-king { --cf-piece-img: url("../ChessBoard/PieceThemes/Realistic/white/King/King.png"); }
.cf-white-queen { --cf-piece-img: url("../ChessBoard/PieceThemes/Realistic/white/Queen/Queen.png"); }
.cf-white-rook { --cf-piece-img: url("../ChessBoard/PieceThemes/Realistic/white/Rook/Rook.png"); }
.cf-white-bishop { --cf-piece-img: url("../ChessBoard/PieceThemes/Realistic/white/Bishop/Bishop.png"); }
.cf-white-knight { --cf-piece-img: url("../ChessBoard/PieceThemes/Realistic/white/Knight/Knight.png"); }
.cf-white-pawn { --cf-piece-img: url("../ChessBoard/PieceThemes/Realistic/white/Pawn/Pawn.png"); }
.cf-black-king { --cf-piece-img: url("../ChessBoard/PieceThemes/Realistic/black/King/King.png"); }
.cf-black-queen { --cf-piece-img: url("../ChessBoard/PieceThemes/Realistic/black/Queen/Queen.png"); }
.cf-black-rook { --cf-piece-img: url("../ChessBoard/PieceThemes/Realistic/black/Rook/Rook.png"); }
.cf-black-bishop { --cf-piece-img: url("../ChessBoard/PieceThemes/Realistic/black/Bishop/Bishop.png"); }
.cf-black-knight { --cf-piece-img: url("../ChessBoard/PieceThemes/Realistic/black/Knight/Knight.png"); }
.cf-black-pawn { --cf-piece-img: url("../ChessBoard/PieceThemes/Realistic/black/Pawn/Pawn.png"); }

.cf-moves ol {
  counter-reset: cfMove;
  list-style: none;
}

.cf-moves li {
  counter-increment: cfMove;
}

.cf-moves li::before {
  content: counter(cfMove) ".";
}

.cf-features {
  padding: 42px 0 36px;
}

.cf-section-heading {
  text-align: center;
  margin-bottom: 25px;
}

.cf-section-heading h2 {
  margin: 0;
  font-family: var(--cf-serif);
  font-size: clamp(26px, 3vw, 34px);
  color: #171b1d;
}

.cf-section-heading span {
  display: block;
  width: 64px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--cf-green);
}

.cf-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: min(820px, 100%);
  margin: 0 auto;
}

.cf-feature-grid article {
  padding: 24px 24px 22px;
  border: 1px solid rgba(12, 24, 32, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  box-shadow: 0 16px 40px rgba(16, 20, 23, 0.06);
}

.cf-feature-grid i {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: #6ff28b;
  background: #0c2730;
  font-size: 28px;
  box-shadow: 0 10px 22px rgba(17, 133, 75, 0.22);
}

.cf-feature-grid h3,
.cf-puzzle-card h3,
.cf-arena-card h3,
.cf-panel h3,
.cf-dashboard h3 {
  margin: 0;
  font-family: var(--cf-serif);
}

.cf-feature-grid h3 {
  color: #191b1d;
  font-size: 21px;
}

.cf-feature-grid p {
  min-height: 72px;
  margin: 10px 0 14px;
  color: #5b6268;
  font-size: 14px;
}

.cf-feature-grid a {
  color: #1a904c;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.cf-learning,
.cf-academy {
  padding: 58px 0;
}

.cf-learning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 560px);
  gap: 46px 78px;
  align-items: start;
}

.cf-learning-grid .cf-section-copy {
  grid-column: 1 / -1;
}

.cf-section-copy span {
  display: block;
  margin-bottom: 16px;
  color: #51e27c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.cf-section-copy h2 {
  margin: 0 0 16px;
  font-family: var(--cf-serif);
  font-size: clamp(33px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cf-section-copy p {
  margin: 0 0 24px;
  color: #b6c0c8;
  max-width: 1040px;
}

.cf-section-copy.dark h2 {
  color: #191b1d;
}

.cf-section-copy.dark p {
  color: #596169;
}

.cf-timeline {
  position: relative;
  display: grid;
  gap: 58px;
  max-width: 740px;
}

.cf-timeline::before {
  content: '';
  position: absolute;
  top: 58px;
  bottom: 58px;
  left: 35px;
  width: 2px;
  background: linear-gradient(var(--cf-green), rgba(54, 197, 107, 0.5), var(--cf-green));
}

.cf-timeline div {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 34px;
  align-items: start;
}

.cf-timeline strong {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid var(--cf-green);
  border-radius: 50%;
  background: #10202b;
  font-size: 29px;
}

.cf-timeline h3 {
  grid-column: 2;
  margin: 8px 0 8px;
  font-family: var(--cf-serif);
  font-size: 27px;
  line-height: 1.1;
}

.cf-timeline p {
  grid-column: 2;
  margin: 0;
  color: #adb8c0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.55;
}

.cf-learning-showcase {
  align-self: end;
  margin-bottom: 6px;
}

.cf-study-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 238px) minmax(0, 1fr);
  column-gap: 20px;
  align-items: center;
  overflow: hidden;
  padding: 24px 26px;
  border: 1px solid rgba(81, 226, 124, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 10%, rgba(81, 226, 124, 0.18), transparent 11rem),
    linear-gradient(145deg, rgba(12, 29, 39, 0.94), rgba(6, 16, 24, 0.9));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.cf-study-card::before {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  pointer-events: none;
}

.cf-study-head,
.cf-study-actions,
.cf-study-stats {
  display: flex;
  align-items: center;
}

.cf-study-head {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cf-study-head span {
  color: #51e27c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cf-study-head strong {
  padding: 6px 10px;
  border: 1px solid rgba(216, 166, 59, 0.35);
  border-radius: 999px;
  color: #ffd780;
  background: rgba(216, 166, 59, 0.12);
  font-size: 12px;
}

.cf-study-card h3 {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  margin: 0 0 8px;
  font-family: var(--cf-serif);
  font-size: 24px;
  line-height: 1.12;
}

.cf-study-card p {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  margin: 0 0 14px;
  color: #b8c4cc;
  font-size: 14px;
}

.cf-study-board {
  position: relative;
  z-index: 1;
  grid-row: span 2;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

.cf-study-board span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  color: #15191d;
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
}

.cf-study-board span:nth-child(16n+1),
.cf-study-board span:nth-child(16n+3),
.cf-study-board span:nth-child(16n+5),
.cf-study-board span:nth-child(16n+7),
.cf-study-board span:nth-child(16n+10),
.cf-study-board span:nth-child(16n+12),
.cf-study-board span:nth-child(16n+14),
.cf-study-board span:nth-child(16n+16) {
  background: #ead9c2;
}

.cf-study-board span:nth-child(16n+2),
.cf-study-board span:nth-child(16n+4),
.cf-study-board span:nth-child(16n+6),
.cf-study-board span:nth-child(16n+8),
.cf-study-board span:nth-child(16n+9),
.cf-study-board span:nth-child(16n+11),
.cf-study-board span:nth-child(16n+13),
.cf-study-board span:nth-child(16n+15) {
  background: #8b6a48;
}

.cf-study-board span:nth-child(46) {
  background: #51e27c !important;
}

.cf-study-board span:nth-child(29) {
  background: #d8a63b !important;
}

.cf-study-actions {
  position: relative;
  z-index: 1;
  grid-column: 2;
  align-self: start;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cf-study-actions button {
  border: 1px solid rgba(101, 255, 152, 0.48);
  border-radius: 10px;
  padding: 11px 16px;
  color: #fff;
  background: linear-gradient(180deg, #36c56b, #168942);
  box-shadow: 0 14px 26px rgba(30, 180, 83, 0.22);
  font-weight: 900;
}

.cf-study-actions span {
  color: #9fb0ba;
  font-size: 13px;
  font-weight: 800;
}

.cf-study-stats {
  position: relative;
  z-index: 1;
  grid-column: 2;
  align-self: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.cf-study-stats span {
  flex: 1 1 88px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: #9fb0ba;
  font-size: 12px;
  text-align: center;
}

.cf-study-stats b {
  display: block;
  color: #fff;
  font-size: 16px;
}

.cf-puzzle-card,
.cf-arena-card,
.cf-panel,
.cf-dashboard {
  border: 1px solid var(--cf-border);
  border-radius: 12px;
  background: var(--cf-panel);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
}

.cf-puzzle-card {
  padding: 18px;
  text-align: center;
}

.cf-puzzle-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.cf-mini-board {
  margin: 0 auto 8px;
  width: 270px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
}

.cf-mini-board span {
  font-size: 25px;
}

.cf-puzzle-card small {
  display: block;
  color: #aab4bc;
  margin-bottom: 10px;
}

.cf-puzzle-card button {
  width: 100%;
  padding: 11px;
  color: #6ff28b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 850;
}

.cf-tournaments {
  padding: 42px 0 34px;
}

.cf-tournament-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.05fr 1fr 1fr;
  gap: 22px;
  align-items: center;
}

.cf-outline-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 28px;
  color: #168942;
  border: 1px solid #168942;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 850;
}

.cf-outline-link.light {
  color: #6ff28b;
  border-color: #36c56b;
}

.cf-arena-card {
  overflow: hidden;
  padding: 26px 18px 18px;
  text-align: center;
  color: #fff;
}

.cf-trophy {
  font-size: 116px;
  line-height: 1;
  filter: drop-shadow(0 16px 24px rgba(216, 166, 59, 0.3));
}

.cf-arena-card h3 {
  font-size: 24px;
}

.cf-arena-card p {
  color: #56d878;
  margin: 5px 0 24px;
  font-size: 13px;
}

.cf-arena-card p i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #56d878;
}

.cf-arena-meta {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  color: #9eabb4;
  font-size: 12px;
}

.cf-arena-meta strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.cf-arena-card button {
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(180deg, #43d878, #1b944b);
  font-weight: 850;
}

.cf-panel {
  align-self: stretch;
  padding: 18px;
  color: #fff;
}

.cf-panel-head {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cf-panel-head h3 {
  font-size: 19px;
}

.cf-panel-head a {
  color: #57d878;
  font-size: 12px;
}

.cf-ranking {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.cf-ranking li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 6px;
}

.cf-ranking li:last-child {
  background: rgba(54, 197, 107, 0.16);
}

.cf-ranking b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 166, 59, 0.75);
  border-radius: 50%;
  color: var(--cf-gold);
  font-size: 12px;
}

.cf-ranking span,
.cf-ranking em {
  font-size: 13px;
  font-style: normal;
}

.cf-events {
  display: grid;
  gap: 12px;
}

.cf-events div {
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.cf-events i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #ffd36a;
  background: rgba(216, 166, 59, 0.12);
}

.cf-events span {
  flex: 1;
  font-weight: 800;
}

.cf-events small {
  display: block;
  color: #8997a1;
  font-weight: 500;
}

.cf-events b {
  color: #ffd36a;
  font-size: 12px;
}

.cf-academy-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.9fr;
  gap: 54px;
  align-items: center;
}

.cf-dashboard {
  min-height: 365px;
  overflow: hidden;
  color: #fff;
}

.cf-dashboard aside {
  width: 150px;
  padding: 16px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.cf-brand-mini {
  color: #f8dda4;
  font-family: var(--cf-serif);
  font-size: 13px;
  line-height: 1;
  margin-bottom: 18px;
}

.cf-brand-mini img {
  width: 26px;
  height: 26px;
  object-fit: cover;
  object-position: center 28%;
  display: inline-block;
  margin-right: 7px;
  vertical-align: middle;
  background: #fff;
  border: 1px solid rgba(216, 166, 59, 0.8);
  border-radius: 7px;
}

.cf-brand-mini small {
  display: block;
  color: #8897a1;
  font-family: var(--cf-sans);
  font-size: 10px;
}

.cf-dashboard aside a {
  display: block;
  padding: 10px 9px;
  border-radius: 6px;
  color: #dbe3e8;
  font-size: 12px;
}

.cf-dashboard aside a.active {
  background: rgba(54, 197, 107, 0.24);
}

.cf-dashboard-main {
  flex: 1;
  padding: 24px;
}

.cf-dashboard-main h3 {
  font-size: 19px;
  margin-bottom: 18px;
}

.cf-metrics {
  gap: 14px;
  margin-bottom: 22px;
}

.cf-metrics div {
  flex: 1;
  min-width: 92px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #9fadb6;
  font-size: 11px;
  text-align: center;
}

.cf-metrics strong {
  display: block;
  color: #fff;
  font-size: 28px;
}

.cf-students {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
}

.cf-students h4,
.cf-dashboard-side h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #cfd8df;
}

.cf-students p {
  display: grid;
  grid-template-columns: 1fr 48px 86px;
  gap: 10px;
  margin: 8px 0;
  color: #dce4e9;
  font-size: 12px;
}

.cf-students em {
  color: #6ff28b;
  font-style: normal;
}

.cf-dashboard-side {
  width: 210px;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.035);
}

.cf-thumb-board {
  width: 76px;
  height: 76px;
  border-radius: 4px;
  background:
    repeating-conic-gradient(#e3d8c8 0 25%, #8b745e 0 50%) 0 0 / 24px 24px;
}

.cf-dashboard-side p {
  margin: 9px 0 5px;
  color: #c6d0d7;
  font-size: 12px;
}

.cf-dashboard-side a {
  color: #6ff28b;
  font-size: 12px;
}

.cf-progress {
  height: 8px;
  margin: 10px 0 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.cf-progress span {
  display: block;
  width: 78%;
  height: 100%;
  background: var(--cf-green);
}

.cf-final-cta {
  position: relative;
  overflow: hidden;
  padding: 72px 0 66px;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(4, 9, 13, 0.92), rgba(8, 10, 8, 0.78), rgba(4, 9, 13, 0.92));
}

.cf-final-cta h2 {
  margin: 0 0 16px;
  color: #ffe0a2;
  font-family: var(--cf-serif);
  font-size: clamp(31px, 4vw, 44px);
}

.cf-final-cta p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: #edf2f4;
  font-size: 18px;
}

.cf-final-cta small {
  display: block;
  margin-top: 19px;
  color: #d0d4d7;
}

.cf-piece-left,
.cf-piece-right {
  position: absolute;
  bottom: -55px;
  color: rgba(216, 166, 59, 0.7);
  font-family: var(--cf-serif);
  font-size: 260px;
  line-height: 1;
  text-shadow: 0 18px 35px rgba(0, 0, 0, 0.65);
}

.cf-piece-left {
  left: 8%;
}

.cf-piece-right {
  right: 8%;
  color: rgba(230, 231, 223, 0.58);
}

.cf-footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #07121b;
}

.cf-footer-inner {
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.cf-footer .cf-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 13px;
}

.cf-footer .cf-brand-text {
  font-size: 28px;
}

.cf-footer p {
  margin: 0;
  color: #9aa8b3;
}

.cf-footer-copy {
  display: grid;
  gap: 5px;
  justify-items: center;
  color: #9aa8b3;
  font-size: 13px;
}

.cf-legal-link {
  color: #36c56b;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.cf-legal-link:hover {
  color: #fff;
  text-decoration: underline;
}

.cf-footer-copy small {
  color: rgba(154, 168, 179, 0.78);
  font-size: 12px;
}

.cf-social {
  display: flex;
  gap: 20px;
  color: #9aa8b3;
  font-size: 13px;
}

.xt-ef-bot-top {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.xt-ef-bot-top.xt-ef-visible {
  opacity: 1;
  transform: translateY(0);
}

section {
  scroll-margin-top: 92px;
}

@media (max-width: 1120px) {
  .cf-nav-inner {
    gap: 20px;
  }

  .cf-nav-links {
    gap: 22px;
  }

  .cf-auth-actions {
    gap: 0.45rem;
  }

  .cf-auth-btn,
  .cf-register {
    min-width: 8.8rem;
    padding-inline: 1rem;
    font-size: 0.86rem;
  }

  .cf-hero-grid,
  .cf-learning-grid,
  .cf-tournament-grid,
  .cf-academy-grid {
    grid-template-columns: 1fr;
  }

  .cf-learning-showcase {
    width: min(100%, 480px);
    justify-self: center;
  }

  .cf-game-card {
    max-width: 820px;
    margin: 0 auto;
  }

  .cf-tournament-grid {
    align-items: stretch;
  }
}

@media (max-width: 820px) {
  .cf-shell {
    width: min(100% - 30px, 1240px);
  }

  .cf-nav-inner {
    min-height: 78px;
  }

  .cf-brand-text {
    font-size: 27px;
  }

  .cf-brand-mark {
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 1.3rem;
  }

  .cf-menu-toggle {
    display: block;
    margin-left: 0;
  }

  .cf-auth-actions {
    margin-left: auto;
    margin-right: 0.45rem;
  }

  .cf-nav-links {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    background: rgba(4, 13, 20, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .cf-nav-links.active {
    display: flex;
  }

  .cf-nav-links li,
  .cf-nav-links a {
    width: 100%;
  }

  .cf-nav-links a {
    display: block;
    padding: 13px 8px;
    text-align: center;
  }

  .cf-register {
    padding: 0.65rem 0.9rem;
  }

  .cf-hero {
    padding-top: 116px;
  }

  .cf-game-card {
    grid-template-columns: 1fr;
  }

  .cf-player,
  .cf-player-bottom,
  .cf-clock,
  .cf-versus,
  .cf-board-wrap,
  .cf-moves {
    grid-column: auto;
    grid-row: auto;
  }

  .cf-player,
  .cf-player-bottom {
    justify-self: center;
  }

  .cf-clock {
    justify-self: center;
  }

  .cf-feature-grid {
    grid-template-columns: 1fr;
  }

  .cf-dashboard {
    flex-direction: column;
  }

  .cf-dashboard aside,
  .cf-dashboard-side {
    width: 100%;
  }

  .cf-metrics {
    flex-wrap: wrap;
  }

  .cf-piece-left,
  .cf-piece-right {
    display: none;
  }

  .cf-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 520px) {
  /* ── Base ── */
  .cf-landing {
    font-size: 15px;
  }

  .cf-shell {
    width: min(100% - 2.5rem, 1240px);
  }

  /* ── Nav ── */
  .cf-nav-inner {
    min-height: 4.4rem;
    gap: 0.5rem;
  }

  .cf-brand {
    gap: 0.5rem;
  }

  .cf-brand-mark {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 0.75rem;
  }

  .cf-brand-text {
    font-size: 1.45rem;
  }

  .cf-menu-toggle {
    padding: 0.35rem;
  }

  .cf-menu-toggle span {
    width: 1.4rem;
    margin: 0.3rem 0;
  }

  .cf-auth-actions {
    gap: 0.3rem;
  }

  .cf-auth-btn,
  .cf-register {
    min-height: 2.6rem;
    min-width: 6rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.74rem;
  }

  .cf-auth-logged .cf-auth-home {
    min-height: 2.6rem;
    min-width: 6rem;
    padding: 0.5rem 0.65rem;
  }

  .cf-nav-links {
    top: 4.4rem;
    padding: 0.4rem 0.75rem;
  }

  .cf-nav-links a {
    padding: 0.65rem 0.5rem;
  }

  /* ── Hero ── */
  .cf-hero {
    min-height: auto;
    padding: 7.2rem 0 1.2rem;
  }

  .cf-hero-bg {
    background: radial-gradient(circle at 50% 50%, rgba(30, 180, 83, 0.08), transparent 70%), linear-gradient(135deg, #061018 0%, #0a1822 100%) !important;
  }

  .cf-hero-grid {
    gap: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cf-hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cf-hero-copy h1 {
    max-width: 100%;
    margin-bottom: 0.6rem;
    font-size: 2rem;
    line-height: 1.1;
  }

  .cf-hero-copy p {
    margin-bottom: 1rem;
    font-size: 0.92rem;
    line-height: 1.4;
    max-width: 24rem;
    color: #a0aab3;
  }

  .cf-hero-actions {
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 20rem;
  }

  .cf-hero-actions .cf-btn {
    width: 100%;
  }

  .cf-btn {
    min-height: 2.85rem;
    padding: 0.7rem 1.1rem;
    font-size: 0.92rem;
  }

  /* ── Stats: 2-column grid ── */
  .cf-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    width: 100%;
    max-width: 22rem;
  }

  .cf-stats div {
    padding: 0.6rem 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
    text-align: center;
  }

  .cf-hero-image-card {
    display: none !important;
  }

  /* ── Game card ── */
  .cf-game-card {
    display: none !important;
  }

  .cf-player,
  .cf-player-bottom,
  .cf-clock,
  .cf-versus,
  .cf-moves {
    display: none;
  }

  .cf-board-wrap {
    display: none !important;
  }

  .cf-board {
    display: none !important;
  }

  .cf-board span {
    display: none !important;
  }

  .cf-files {
    display: none !important;
  }

  /* ── Sections ── */
  .cf-features,
  .cf-tournaments,
  .cf-learning,
  .cf-academy,
  .cf-final-cta {
    padding: 2.2rem 0;
  }

  .cf-section-heading {
    margin-bottom: 1.2rem;
  }

  .cf-section-heading h2,
  .cf-section-copy h2,
  .cf-final-cta h2 {
    font-size: 1.8rem;
    line-height: 1.15;
  }

  .cf-section-copy p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  /* ── Features grid ── */
  .cf-feature-grid {
    gap: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: 34rem;
    margin: 0 auto;
  }

  .cf-feature-grid article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.6rem;
    padding: 1.2rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 28px rgba(16, 20, 23, 0.04);
  }

  .cf-feature-grid article:last-child {
    grid-column: 1 / span 2;
    justify-self: center;
    width: 100%;
    max-width: calc(50% - 0.5rem);
  }

  .cf-feature-grid i {
    margin: 0 0 0.2rem 0;
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 22px;
  }

  .cf-feature-grid p {
    min-height: auto;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #5b6268;
  }

  .cf-feature-grid h3 {
    font-size: 1.2rem;
    font-weight: 750;
    color: #171b1d;
  }

  /* ── Showcase & Academy ── */
  .cf-learning-showcase,
  .cf-dashboard,
  .cf-panel:not(:first-of-type) {
    display: none;
  }

  /* ── Tournaments ── */
  .cf-tournament-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 24rem;
    margin: 0 auto;
  }

  .cf-section-copy.dark {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cf-arena-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1.4rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
  }

  .cf-outline-link {
    min-height: 2.85rem;
    justify-content: center;
    padding: 0.75rem 1.2rem;
    width: 100%;
    max-width: 20rem;
  }

  /* ── Learning timeline ── */
  .cf-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
  }

  .cf-timeline div {
    display: grid;
    grid-template-columns: 2.4rem 1fr;
    gap: 0.6rem 0.8rem;
    padding: 1.4rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 72%;
    max-width: 18.5rem;
  }

  .cf-timeline div:nth-child(1) {
    align-self: flex-start;
  }

  .cf-timeline div:nth-child(2) {
    align-self: center;
  }

  .cf-timeline div:nth-child(3) {
    align-self: flex-end;
  }

  .cf-timeline strong {
    grid-column: 1;
    grid-row: 1;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--cf-green);
    color: #fff;
  }

  .cf-timeline h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 750;
    color: #fff;
  }

  .cf-timeline p {
    grid-column: 2;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #a0aab3;
  }

  .cf-timeline::before {
    display: none;
  }

  /* ── Academy grid ── */
  .cf-academy-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* ── Final CTA ── */
  .cf-final-cta p,
  .cf-final-cta small {
    max-width: 22rem;
    margin-inline: auto;
  }

  /* ── Footer ── */
  .cf-footer-inner {
    gap: 1.2rem;
    padding: 1.5rem 0;
    text-align: center;
  }
}

.cf-auth-actions .cf-auth-btn,
.cf-auth-actions .cf-register,
.cf-auth-actions.cf-auth-logged .cf-auth-home {
  width: 12rem;
  min-width: 12rem;
  height: 4rem;
  min-height: 4rem;
  padding: 0 1.6rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 12rem;
  font-size: 1.1rem;
  line-height: 1.1;
  white-space: nowrap;
  border-radius: 0.65rem;
}

@media (min-width: 1440px) {
  .cf-auth-actions .cf-auth-btn,
  .cf-auth-actions .cf-register,
  .cf-auth-actions.cf-auth-logged .cf-auth-home {
    font-size: 1.3rem;
  }
}

@media (max-width: 70rem) {
  .cf-auth-actions .cf-auth-btn,
  .cf-auth-actions .cf-register,
  .cf-auth-actions.cf-auth-logged .cf-auth-home {
    width: 8.8rem;
    min-width: 8.8rem;
    flex-basis: 8.8rem;
    height: 3.1rem;
    min-height: 3.1rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 32.5rem) {
  .cf-auth-actions .cf-auth-btn,
  .cf-auth-actions .cf-register,
  .cf-auth-actions.cf-auth-logged .cf-auth-home {
    width: 7.1rem;
    min-width: 7.1rem;
    flex-basis: 7.1rem;
    height: 2.85rem;
    min-height: 2.85rem;
    padding: 0 0.72rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 23.5rem) {
  .cf-auth-actions .cf-auth-btn,
  .cf-auth-actions .cf-register,
  .cf-auth-actions.cf-auth-logged .cf-auth-home {
    width: 6.15rem;
    min-width: 6.15rem;
    flex-basis: 6.15rem;
    height: 2.55rem;
    min-height: 2.55rem;
    padding: 0 0.45rem;
    font-size: 0.66rem;
  }
}

/* ChessLandingPlay header balance */
.cf-nav-inner {
  min-height: 7.2rem;
  gap: 3rem;
}

.cf-nav .cf-system-brand {
  gap: 1.2rem;
  flex: 0 0 auto;
  min-width: max-content;
}

.cf-nav .cf-system-brand-mark {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(216, 166, 59, 0.9);
  border-radius: 12px;
}

.cf-nav .cf-system-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cf-nav .cf-system-brand-text {
  font-family: 'Bebas Neue ChessFace', var(--cf-serif);
  font-size: 3.1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.cf-nav .xt-menu-center {
  gap: 3rem;
}

.cf-nav .dropdown-toggle {
  padding: 10px 5px;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  background: transparent !important;
  color: var(--cf-text) !important;
  font-size: 1.3rem;
  font-weight: 750;
}

.cf-auth-actions .cf-auth-btn,
.cf-auth-actions .cf-register,
.cf-auth-actions.cf-auth-logged .cf-auth-home {
  width: 12rem;
  min-width: 12rem;
  flex-basis: 12rem;
  height: 4rem;
  min-height: 4rem;
  padding: 0 1.6rem;
  font-size: 1.1rem;
  border-radius: 0.65rem;
}

@media (min-width: 1440px) {
  .cf-auth-actions .cf-auth-btn,
  .cf-auth-actions .cf-register,
  .cf-auth-actions.cf-auth-logged .cf-auth-home {
    font-size: 1.3rem;
  }
}

@media (max-width: 70rem) {
  .cf-nav-inner {
    gap: 1.6rem;
  }

  .cf-nav .cf-system-brand-mark {
    width: 5rem;
    height: 4rem;
    border-radius: 1rem;
  }

  .cf-nav .cf-system-brand-text {
    font-size: 2.6rem;
  }

  .cf-nav .xt-menu-center {
    gap: 2.2rem;
  }

  .cf-nav .dropdown-toggle {
    font-size: 1.35rem;
  }

  .cf-auth-actions .cf-auth-btn,
  .cf-auth-actions .cf-register,
  .cf-auth-actions.cf-auth-logged .cf-auth-home {
    width: 10.2rem;
    min-width: 10.2rem;
    flex-basis: 10.2rem;
    height: 3.35rem;
    min-height: 3.35rem;
    font-size: 0.94rem;
  }
}

@media (max-width: 51.25rem) {
  .cf-nav-inner {
    min-height: 6.8rem;
  }

  .cf-nav .cf-system-brand-mark {
    width: 4rem;
    height: 4rem;
    border-radius: 0.85rem;
  }

  .cf-nav .cf-system-brand-text {
    max-width: 10.8rem;
    overflow: hidden;
    font-size: clamp(1.45rem, 4.8vw, 1.85rem);
    text-overflow: clip;
    white-space: nowrap;
  }

  .cf-nav-links {
    top: 6.8rem;
  }
}

@media (max-width: 32.5rem) {
  .cf-nav-inner {
    min-height: 6.8rem;
    gap: 0.45rem;
  }

  .cf-nav .cf-system-brand {
    gap: 0.45rem;
    min-width: 0;
  }

  .cf-nav .cf-system-brand-mark {
    width: 4rem;
    height: 4rem;
    border-radius: 0.85rem;
  }

  .cf-nav .cf-system-brand-text {
    max-width: 8rem;
    font-size: clamp(1.25rem, 4.6vw, 1.55rem);
  }

  .cf-auth-actions .cf-auth-btn,
  .cf-auth-actions .cf-register,
  .cf-auth-actions.cf-auth-logged .cf-auth-home {
    width: 7.45rem;
    min-width: 7.45rem;
    flex-basis: 7.45rem;
    height: 2.95rem;
    min-height: 2.95rem;
    padding: 0 0.65rem;
    font-size: 0.78rem;
  }

  .cf-nav-links {
    top: 6.8rem;
  }
}

@media (max-width: 23.5rem) {
  .cf-nav .cf-system-brand-text {
    display: none;
  }

  .cf-auth-actions .cf-auth-btn,
  .cf-auth-actions .cf-register,
  .cf-auth-actions.cf-auth-logged .cf-auth-home {
    width: 6.35rem;
    min-width: 6.35rem;
    flex-basis: 6.35rem;
    height: 2.65rem;
    min-height: 2.65rem;
    font-size: 0.66rem;
  }
}

.cf-hero-image-card {
  min-height: 0;
  display: block;
  overflow: hidden;
  padding: 0;
  aspect-ratio: 16 / 9;
  border-color: rgba(216, 166, 59, 0.26);
  background: #07121b;
}

.cf-hero-image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 32.5rem) {
  .cf-hero-image-card {
    aspect-ratio: 4 / 3;
  }
}

/* Safe Area & Mobile Bottom Gestures Integration */
@media (max-width: 768px) {
  .cf-nav {
    padding-top: env(safe-area-inset-top, 0px);
  }
  .cf-footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
  .cf-final-cta {
    padding-bottom: calc(2.2rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

.xt-imagen {
  max-width: 260px;
  width: 100%;
  height: auto;
}
