: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-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%;
  margin-top: -15%;
  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-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-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: 36px 38px;
  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 14px;
  border: 1px solid rgba(216, 166, 59, 0.65);
  border-radius: 999px;
  color: #ffd780;
  background: transparent;
  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: clamp(20px, 4vw, 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: clamp(13px, 2vw, 14px);
}

.cf-study-board-wrapper {
  grid-row: span 2;
  display: grid;
  grid-template-columns: 20px 1fr 20px;
  grid-template-rows: 20px 1fr 20px;
  background: #1f2120;
  border-radius: 12px;
  margin: 6px 0 0 0;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

.cf-board-coord {
  color: #c9a365;
  font-size: clamp(9px, 1.5vw, 11px);
  font-weight: 800;
  user-select: none;
  display: grid;
  place-items: center;
}

.cf-board-coord.top, .cf-board-coord.bottom {
  grid-template-columns: repeat(8, 1fr);
}

.cf-board-coord.left, .cf-board-coord.right {
  grid-template-rows: repeat(8, 1fr);
}

.cf-board-coord.top { grid-column: 2; grid-row: 1; }
.cf-board-coord.bottom { grid-column: 2; grid-row: 3; }
.cf-board-coord.left { grid-column: 1; grid-row: 2; }
.cf-board-coord.right { grid-column: 3; grid-row: 2; }

.cf-study-board {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.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: 12px 20px;
  color: #fff;
  background: linear-gradient(180deg, #36c56b, #168942);
  box-shadow: 0 0 35px rgba(54, 197, 107, 0.4);
  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: 16px;
}

.cf-study-stats span {
  flex: 1 1 40%;
  padding: 20px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: #9fb0ba;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cf-study-stats span i {
  font-size: 22px;
  color: #36c56b;
  margin-bottom: 2px;
}

.cf-study-stats span:last-child {
  flex: 1 1 100%;
  flex-direction: row;
  justify-content: center;
  padding: 24px 16px;
}

.cf-study-stats span:last-child i {
  margin-bottom: 0;
}

.cf-study-stats b {
  display: block;
  color: #fff;
  font-size: clamp(16px, 3vw, 20px);
}

.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;
}

.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-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-brand-text {
    font-size: 27px;
  }

  .cf-brand-mark {
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 1.3rem;
  }

  .cf-auth-actions {
    margin-left: auto;
    margin-right: 0.45rem;
  }

  .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-study-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 20px;
  }
  .cf-study-board-wrapper,
  .cf-study-actions,
  .cf-study-stats {
    grid-column: 1 / -1;
  }
  .cf-study-actions {
    justify-content: center;
  }

  .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);
  }

  .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-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;
  }

  /* ── Hero ── */
  .cf-hero {
    min-height: auto;
    padding: 9.6rem 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;
  }
}

.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-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) {
}

@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.45rem;
    min-width: 7.45rem;
    flex-basis: 7.45rem;
    height: 2.95rem;
    min-height: 2.95rem;
    padding: 0 0.65rem;
    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.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-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;
}

/* Responsive refinement for ChessLandingPlay */
.cf-landing img {
  max-width: 100%;
  height: auto;
}

.cf-landing {
  --cf-page-gutter: clamp(1rem, 4vw, 3rem);
  --cf-section-y: clamp(2.25rem, 5vw, 4.5rem);
  --cf-card-gap: clamp(1rem, 2vw, 1.875rem);
}

.cf-shell {
  width: min(100% - (var(--cf-page-gutter) * 2), 1240px);
}

.cf-hero-copy h1 {
  font-size: clamp(2.55rem, 5vw, 4.75rem);
}

.cf-hero-copy p,
.cf-section-copy p {
  font-size: clamp(0.98rem, 1.35vw, 1.125rem);
}

.cf-section-heading h2,
.cf-section-copy h2,
.cf-final-cta h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.cf-btn,
.cf-outline-link,
.cf-arena-card button,
.cf-study-actions button {
  min-height: 2.9rem;
  font-size: var(--cf-button-font-size);
  line-height: 1.12;
}

.cf-feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--cf-card-gap);
}

.cf-tournament-grid {
  grid-template-columns: minmax(16rem, 0.9fr) minmax(15rem, 1.05fr) minmax(15rem, 1fr) minmax(15rem, 1fr);
  gap: var(--cf-card-gap);
}

.cf-hero-image-card {
  width: 100%;
}

.cf-dashboard,
.cf-study-card,
.cf-panel,
.cf-arena-card,
.cf-feature-grid article {
  min-width: 0;
}

@media (min-width: 120rem) {
  .cf-shell {
    max-width: 1380px;
  }

  .cf-hero {
    min-height: min(760px, calc(100dvh - 2rem));
  }

  .cf-hero-copy h1 {
    max-width: 640px;
  }
}

@media (min-width: 160rem) {
  .cf-landing {
    --cf-page-gutter: 4rem;
    --cf-section-y: 5.5rem;
    font-size: 18px;
  }

  .cf-shell {
    max-width: 1680px;
  }

  .cf-hero {
    min-height: min(900px, calc(100dvh - 1rem));
    padding-block: 10rem 4rem;
  }

  .cf-hero-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 4rem;
  }

  .cf-hero-copy h1 {
    max-width: 820px;
    font-size: clamp(5rem, 4.2vw, 7rem);
  }

  .cf-hero-copy p {
    max-width: 720px;
    font-size: 1.35rem;
  }

  .cf-btn,
  .cf-outline-link,
  .cf-arena-card button,
  .cf-study-actions button {
    min-height: 3.65rem;
    padding-inline: 2rem;
    font-size: var(--cf-button-font-size);
  }

  .cf-stats {
    gap: 2.4rem;
  }

  .cf-stats i {
    font-size: 1.35rem;
  }

  .cf-stats strong {
    font-size: 1.55rem;
  }

  .cf-stats span {
    font-size: 0.9rem;
  }

  .cf-feature-grid {
    width: min(1120px, 100%);
    gap: 2.2rem;
  }

  .cf-feature-grid article {
    padding: 2rem;
  }

  .cf-feature-grid i {
    width: 5.2rem;
    height: 5.2rem;
    font-size: 2.15rem;
  }

  .cf-feature-grid h3 {
    font-size: 1.55rem;
  }

  .cf-feature-grid p {
    font-size: 1rem;
  }

  .cf-feature-grid a {
    font-size: 0.98rem;
  }

  .cf-section-copy span {
    font-size: 0.95rem;
  }

  .cf-section-copy h2,
  .cf-section-heading h2,
  .cf-final-cta h2 {
    font-size: clamp(3.2rem, 3vw, 4rem);
  }

  .cf-section-copy p {
    font-size: 1.25rem;
  }

  .cf-learning,
  .cf-academy,
  .cf-features,
  .cf-tournaments,
  .cf-final-cta {
    padding-block: var(--cf-section-y);
  }

  .cf-timeline h3 {
    font-size: 2.2rem;
  }

  .cf-timeline p {
    font-size: 1.15rem;
  }

  .cf-timeline strong {
    width: 4.3rem;
    height: 4.3rem;
    font-size: 2rem;
  }

  .cf-study-card,
  .cf-arena-card,
  .cf-panel,
  .cf-dashboard {
    border-radius: 1rem;
  }

  .cf-arena-card h3,
  .cf-panel-head h3,
  .cf-dashboard-main h3 {
    font-size: 1.55rem;
  }

  .cf-trophy {
    font-size: 8.8rem;
  }

  .cf-ranking span,
  .cf-ranking em,
  .cf-events span,
  .cf-events small,
  .cf-events b {
    font-size: 0.98rem;
  }

  .cf-dashboard aside a,
  .cf-students p,
  .cf-dashboard-side p,
  .cf-dashboard-side a {
    font-size: 0.95rem;
  }

  .cf-metrics strong {
    font-size: 2.25rem;
  }

  .cf-footer {
    padding-block: 2.5rem;
  }

  .cf-footer .cf-brand-mark {
    width: 4.3rem;
    height: 4.3rem;
  }

  .cf-footer .cf-brand-text {
    font-size: 2.4rem;
  }

  .cf-footer-copy {
    font-size: 1rem;
  }
}

@media (min-width: 64rem) and (max-width: 79.9375rem) {
  .cf-shell {
    width: min(100% - 3rem, 1180px);
  }

  .cf-hero {
    min-height: 560px;
    padding-block: 7.6rem 2.25rem;
  }

  .cf-hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2rem;
  }

  .cf-hero-copy h1 {
    max-width: 34rem;
    font-size: clamp(3rem, 5vw, 4.25rem);
  }

  .cf-game-card {
    min-height: 0;
  }

  .cf-feature-grid {
    width: min(100%, 960px);
  }

  .cf-learning-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 1.08fr);
    gap: 2rem;
  }

  .cf-tournament-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .cf-academy-grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 2rem;
  }
}

@media (min-width: 65.0625rem) and (max-width: 70rem) {
  .cf-hero {
    min-height: clamp(34rem, 58vw, 40rem);
    padding-block: clamp(8.8rem, 13vw, 10rem) 2.6rem;
  }

  .cf-hero-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(1.5rem, 3vw, 2.4rem);
    align-items: center;
  }

  .cf-hero-copy h1 {
    max-width: 35rem;
    font-size: clamp(3.25rem, 5.6vw, 4.35rem);
    line-height: 1.04;
  }

  .cf-hero-copy p {
    max-width: 33rem;
    font-size: clamp(0.92rem, 1.35vw, 1.02rem);
  }

  .cf-hero-image-card {
    align-self: center;
  }

  .cf-stats {
    gap: clamp(0.8rem, 2vw, 1.35rem);
  }
}

@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .cf-landing {
    --cf-page-gutter: 1.4rem;
    --cf-section-y: 3rem;
  }

  .cf-hero {
    min-height: 520px;
    padding-block: 8.6rem 2rem;
  }

  .cf-hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 1.25rem;
    align-items: center;
  }

  .cf-hero-copy {
    min-width: 0;
  }

  .cf-hero-copy h1 {
    max-width: 100%;
    margin-bottom: 0.9rem;
    font-size: clamp(2.2rem, 4.7vw, 3rem);
    line-height: 1.04;
  }

  .cf-hero-copy p {
    max-width: 100%;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .cf-hero-actions {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .cf-btn {
    padding-inline: 1rem;
  }

  .cf-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .cf-stats div {
    min-width: 0;
  }

  .cf-stats strong {
    font-size: 1rem;
  }

  .cf-stats span {
    font-size: 0.68rem;
  }

  .cf-game-card {
    min-height: 0;
  }

  .cf-hero-image-card {
    display: block !important;
    aspect-ratio: 16 / 10;
  }

  .cf-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .cf-feature-grid article {
    padding: 1.15rem;
  }

  .cf-feature-grid i {
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.35rem;
  }

  .cf-feature-grid h3 {
    font-size: 1.12rem;
  }

  .cf-feature-grid p {
    min-height: 0;
    font-size: 0.88rem;
  }

  .cf-learning,
  .cf-academy,
  .cf-features,
  .cf-tournaments,
  .cf-final-cta {
    padding-block: var(--cf-section-y);
  }

  .cf-learning-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(19rem, 1.1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .cf-learning-grid .cf-section-copy {
    grid-column: 1 / -1;
  }

  .cf-learning-showcase {
    display: block;
    width: 100%;
    justify-self: stretch;
  }

  .cf-timeline {
    gap: 2rem;
  }

  .cf-timeline div {
    column-gap: 1rem;
    grid-template-columns: 3.8rem minmax(0, 1fr);
  }

  .cf-timeline strong {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.55rem;
  }

  .cf-study-card {
    grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr);
    padding: 1.4rem;
    gap: 1rem;
  }

  .cf-study-board-wrapper {
    grid-column: 1;
    grid-row: span 2;
  }

  .cf-study-actions,
  .cf-study-stats {
    grid-column: 2;
  }

  .cf-study-stats span {
    padding: 0.85rem;
  }

  .cf-tournament-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
    align-items: stretch;
    gap: 0.85rem;
  }

  .cf-tournament-grid .cf-section-copy h2 {
    font-size: clamp(1.75rem, 3.6vw, 2.35rem);
  }

  .cf-tournament-grid .cf-section-copy p,
  .cf-panel,
  .cf-arena-card {
    font-size: 0.86rem;
  }

  .cf-outline-link {
    padding-inline: 0.9rem;
  }

  .cf-academy-grid {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 1.4rem;
    align-items: center;
  }

  .cf-dashboard {
    flex-direction: row;
    min-height: 0;
  }

  .cf-dashboard aside {
    width: 7.2rem;
  }

  .cf-dashboard-side {
    display: block;
    width: 8.8rem;
    padding: 1rem 0.75rem;
  }

  .cf-dashboard-main {
    padding: 1rem;
  }

  .cf-metrics {
    gap: 0.6rem;
    flex-wrap: nowrap;
  }

  .cf-metrics div {
    min-width: 0;
    padding: 0.65rem;
  }

  .cf-metrics strong {
    font-size: 1.4rem;
  }

  .cf-students p {
    grid-template-columns: minmax(0, 1fr) 2.4rem 4.4rem;
    gap: 0.45rem;
  }
}

@media (max-width: 47.9375rem) {
  .cf-landing {
    --cf-page-gutter: clamp(0.85rem, 4vw, 1.25rem);
    --cf-section-y: clamp(1.8rem, 6vw, 2.6rem);
    font-size: 15px;
  }

  .cf-shell {
    width: min(100% - (var(--cf-page-gutter) * 2), 44rem);
  }

  .cf-header-landing + main,
  #header-container + main {
    padding-top: 0;
  }

  .cf-hero {
    min-height: auto;
    padding: clamp(6.8rem, 19vw, 8.8rem) 0 var(--cf-section-y);
  }

  .cf-hero-bg {
    opacity: 0.28;
  }

  .cf-hero-grid {
    display: block;
  }

  .cf-hero-copy {
    text-align: center;
  }

  .cf-hero-copy h1,
  .cf-hero-copy p {
    margin-inline: auto;
  }

  .cf-hero-copy h1 {
    max-width: 22rem;
    margin-bottom: 0.75rem;
    font-size: clamp(2.15rem, 10.5vw, 3.25rem);
    line-height: 1.04;
  }

  .cf-hero-copy p {
    max-width: 30rem;
    margin-bottom: 1rem;
    font-size: clamp(0.92rem, 3.6vw, 1rem);
    line-height: 1.45;
  }

  .cf-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    width: min(100%, 21rem);
    margin: 0 auto 1rem;
  }

  .cf-btn,
  .cf-outline-link,
  .cf-arena-card button {
    width: 100%;
    min-height: 2.9rem;
    padding: 0.75rem 1rem;
  }

  .cf-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    width: min(100%, 22rem);
    margin: 0 auto;
  }

  .cf-stats div {
    min-width: 0;
    padding: 0.55rem 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.035);
    text-align: center;
  }

  .cf-stats strong {
    font-size: 1rem;
  }

  .cf-stats span {
    font-size: 0.72rem;
  }

  .cf-hero-image-card,
  .cf-game-card {
    display: none !important;
  }

  .cf-features,
  .cf-learning,
  .cf-tournaments,
  .cf-academy,
  .cf-final-cta {
    padding-block: var(--cf-section-y);
  }

  .cf-section-heading {
    margin-bottom: 1rem;
  }

  .cf-section-copy,
  .cf-section-copy.dark {
    text-align: center;
  }

  .cf-section-copy span {
    margin-bottom: 0.65rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .cf-section-copy h2,
  .cf-section-heading h2,
  .cf-final-cta h2 {
    font-size: clamp(1.65rem, 7.2vw, 2.2rem);
    line-height: 1.08;
  }

  .cf-section-copy p {
    max-width: 31rem;
    margin-inline: auto;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.48;
  }

  .cf-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: min(100%, 34rem);
  }

  .cf-feature-grid article {
    display: grid;
    align-content: start;
    gap: 0.45rem;
    padding: 0.95rem;
    text-align: left;
  }

  .cf-feature-grid article:last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
    max-width: none;
  }

  .cf-feature-grid i {
    width: 2.7rem;
    height: 2.7rem;
    margin: 0 0 0.15rem;
    font-size: 1.15rem;
  }

  .cf-feature-grid h3 {
    font-size: clamp(1rem, 4vw, 1.18rem);
    line-height: 1.15;
  }

  .cf-feature-grid p {
    min-height: 0;
    margin: 0;
    font-size: clamp(0.82rem, 3.1vw, 0.92rem);
    line-height: 1.38;
  }

  .cf-feature-grid a {
    font-size: 0.82rem;
  }

  .cf-learning-grid,
  .cf-tournament-grid,
  .cf-academy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .cf-learning-showcase {
    display: none;
  }

  .cf-timeline {
    gap: 0.75rem;
    max-width: 34rem;
  }

  .cf-timeline::before {
    display: none;
  }

  .cf-timeline div {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.35rem 0.75rem;
    padding: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.035);
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .cf-timeline strong {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1rem;
  }

  .cf-timeline h3 {
    margin: 0;
    font-size: 1.1rem;
  }

  .cf-timeline p {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .cf-tournaments .cf-panel:nth-of-type(n + 3) {
    display: none;
  }

  .cf-arena-card {
    padding: 1.15rem;
  }

  .cf-trophy {
    font-size: clamp(4.2rem, 19vw, 6rem);
  }

  .cf-arena-card p {
    margin-bottom: 1rem;
  }

  .cf-arena-meta {
    gap: 0.5rem;
  }

  .cf-panel {
    padding: 1rem;
  }

  .cf-dashboard {
    display: none;
  }

  .cf-final-cta {
    padding-inline: var(--cf-page-gutter);
  }

  .cf-final-cta p,
  .cf-final-cta small {
    max-width: 32rem;
    margin-inline: auto;
  }

  .cf-piece-left,
  .cf-piece-right {
    display: none;
  }

  .cf-footer {
    padding-block: 1.4rem;
  }

  .cf-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 25rem) {
  .cf-feature-grid {
    gap: 0.6rem;
  }

  .cf-feature-grid article {
    padding: 0.8rem;
  }

  .cf-feature-grid p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .cf-arena-meta {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 22.5rem) {
  .cf-feature-grid {
    grid-template-columns: 1fr;
  }

  .cf-hero-actions,
  .cf-stats {
    width: 100%;
  }
}

@media (min-width: 20rem) and (max-width: 26.5625rem) {
  .cf-shell {
    width: min(100% - 1.4rem, 24.5rem);
  }

  .cf-features {
    padding-block: 1.8rem 2rem;
  }

  .cf-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: min(100%, 23.5rem);
  }

  .cf-feature-grid article,
  .cf-feature-grid article:last-child {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    min-height: 12.4rem;
    padding: 1rem 0.65rem 0.85rem;
    border: 1px solid rgba(12, 24, 32, 0.1);
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #ffffff, #f8faf8);
    box-shadow: 0 0.75rem 1.7rem rgba(16, 20, 23, 0.08);
    text-align: center;
  }

  .cf-feature-grid i {
    position: static;
    width: 3.65rem;
    height: 3.65rem;
    margin: 0 auto 0.7rem;
    font-size: 1.55rem;
    box-shadow: 0 0.85rem 1.4rem rgba(17, 133, 75, 0.2);
  }

  .cf-feature-grid h3 {
    margin: 0;
    font-size: clamp(0.98rem, 4.3vw, 1.18rem);
    line-height: 1.08;
    min-height: 2.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cf-feature-grid p {
    display: block;
    min-height: 0;
    margin: 0.42rem 0 0.6rem;
    color: #606a72;
    font-size: clamp(0.7rem, 2.8vw, 0.78rem);
    line-height: 1.38;
  }

  .cf-feature-grid a {
    display: inline-flex;
    margin-top: auto;
    font-size: 0.76rem;
  }

  .cf-feature-grid article:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(50%, 11.4rem);
  }

  .cf-learning,
  .cf-tournaments,
  .cf-academy {
    padding-block: 2rem;
  }

  .cf-tournament-grid {
    max-width: 22rem;
  }

  .cf-arena-card {
    padding: 1rem;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, #ffffff, #f9fbf9);
    box-shadow: 0 0.9rem 2.2rem rgba(16, 20, 23, 0.1);
  }

  .cf-trophy {
    margin-bottom: 0.15rem;
    font-size: clamp(4.2rem, 20vw, 5.4rem);
  }

  .cf-arena-card h3 {
    font-size: 1.45rem;
    line-height: 1.05;
  }

  .cf-arena-card p {
    margin: 0.5rem 0 0.85rem;
    font-size: 0.85rem;
  }

  .cf-arena-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
  }

  .cf-arena-meta span {
    padding: 0.55rem 0.25rem;
    border: 1px solid rgba(12, 24, 32, 0.08);
    border-radius: 0.55rem;
    background: rgba(6, 16, 24, 0.035);
    color: #6c7881;
    font-size: 0.72rem;
    line-height: 1.1;
    text-align: center;
  }

  .cf-arena-meta strong {
    margin-top: 0.22rem;
    color: #152025;
    font-size: 0.88rem;
  }

  .cf-final-cta small {
    line-height: 1.55;
  }
}

@media (min-width: 48rem) and (max-width: 65rem) {
  .cf-landing {
    --cf-page-gutter: clamp(1.25rem, 3vw, 2rem);
    --cf-section-y: clamp(2.8rem, 5vw, 4rem);
  }

  .cf-shell {
    width: min(100% - (var(--cf-page-gutter) * 2), 60rem);
  }

  .cf-hero {
    min-height: auto;
    padding-block: clamp(7.2rem, 12vw, 8.6rem) var(--cf-section-y);
  }

  .cf-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
    align-items: center;
  }

  .cf-hero-copy {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .cf-hero-copy h1 {
    max-width: 45rem;
    margin-bottom: 0.9rem;
    font-size: clamp(3rem, 7vw, 4.25rem);
    line-height: 1.02;
  }

  .cf-hero-copy p {
    max-width: 42rem;
    margin-bottom: 1.2rem;
    font-size: clamp(0.98rem, 2vw, 1.08rem);
  }

  .cf-hero-actions {
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
  }

  .cf-btn {
    min-height: 3.05rem;
    padding-inline: 1.25rem;
  }

  .cf-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    width: min(100%, 42rem);
  }

  .cf-stats div {
    min-width: 0;
    padding: 0.65rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
  }

  .cf-hero-image-card {
    display: block !important;
    width: min(100%, 44rem);
    justify-self: center;
    aspect-ratio: 16 / 8.5;
  }

  .cf-features,
  .cf-learning,
  .cf-tournaments,
  .cf-academy,
  .cf-final-cta {
    padding-block: var(--cf-section-y);
  }

  .cf-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
  }

  .cf-feature-grid article {
    padding: 1.15rem;
  }

  .cf-feature-grid p {
    min-height: 0;
  }

  .cf-learning-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
    gap: 1.4rem;
  }

  .cf-learning-grid .cf-section-copy {
    grid-column: 1 / -1;
    text-align: center;
  }

  .cf-section-copy p {
    margin-inline: auto;
  }

  .cf-timeline {
    gap: 1.45rem;
  }

  .cf-timeline div {
    grid-template-columns: 3.3rem minmax(0, 1fr);
    column-gap: 0.9rem;
  }

  .cf-timeline strong {
    width: 2.85rem;
    height: 2.85rem;
    font-size: 1.35rem;
  }

  .cf-timeline h3 {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
  }

  .cf-timeline p {
    font-size: 0.92rem;
  }

  .cf-learning-showcase {
    display: block;
    width: 100%;
  }

  .cf-study-card {
    grid-template-columns: 1fr;
    padding: 1.35rem;
  }

  .cf-study-board-wrapper,
  .cf-study-actions,
  .cf-study-stats {
    grid-column: 1 / -1;
  }

  .cf-study-board-wrapper {
    width: min(100%, 18rem);
    justify-self: center;
  }

  .cf-study-actions {
    justify-content: center;
  }

  .cf-tournament-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
  }

  .cf-tournament-grid .cf-section-copy {
    align-self: center;
  }

  .cf-arena-card,
  .cf-panel {
    min-height: 100%;
  }

  .cf-academy-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .cf-academy-grid .cf-section-copy {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
  }

  .cf-dashboard {
    flex-direction: row;
    width: min(100%, 48rem);
    justify-self: center;
    min-height: 0;
  }

  .cf-dashboard aside {
    width: 8rem;
  }

  .cf-dashboard-main {
    padding: 1.2rem;
  }

  .cf-dashboard-side {
    display: block;
    width: 10rem;
    padding: 1rem 0.8rem;
  }

  .cf-metrics {
    flex-wrap: nowrap;
    gap: 0.65rem;
  }

  .cf-metrics div {
    min-width: 0;
  }

  .cf-students p {
    grid-template-columns: minmax(0, 1fr) 2.7rem 4.8rem;
  }
}

@media (min-width: 48rem) and (max-width: 65rem) {
  .cf-learning-showcase,
  .cf-dashboard {
    display: none !important;
  }

  .cf-learning-grid,
  .cf-academy-grid {
    grid-template-columns: 1fr;
  }

  .cf-learning-grid .cf-section-copy,
  .cf-academy-grid .cf-section-copy {
    max-width: 44rem;
    margin-inline: auto;
    text-align: center;
  }

  .cf-timeline {
    width: min(100%, 40rem);
    margin-inline: auto;
  }

  .cf-timeline div {
    width: 100%;
  }
}
