/* =========================================
   NOVACHESS HOME
   Page-scoped styles only (.nc-home)
   ========================================= */

.nc-home {
  --nc-navy: #111020;
  --nc-plum: #24182e;
  --nc-gold: #d9a441;
  --nc-ivory: #f5f0e9;
  --nc-white: #f8f4ef;
  --nc-lavender: #beb3c4;
  --nc-border: rgba(245, 240, 233, 0.12);

  background: var(--nc-navy);
  color: var(--nc-white);
  font-family: "Manrope", "DM Sans", sans-serif;
  overflow: hidden;
  border-radius: 16px;
}

.nc-home *,
.nc-home *::before,
.nc-home *::after {
  box-sizing: border-box;
}

.nc-home a {
  color: inherit;
  text-decoration: none;
}

.nc-home img {
  display: block;
  max-width: 100%;
}

.nc-home h1,
.nc-home h2,
.nc-home h3,
.nc-home p {
  margin: 0;
}

.nc-home h1,
.nc-home h2,
.nc-home h3 {
  letter-spacing: -0.04em;
}

.nc-home .nc-eyebrow,
.nc-home .nc-section-label {
  display: inline-block;
  color: var(--nc-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nc-home .nc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.nc-home .nc-btn:hover {
  transform: translateY(-2px);
}

.nc-home .nc-btn-gold {
  background: var(--nc-gold);
  color: var(--nc-navy);
}

.nc-home .nc-btn-gold:hover {
  background: #e8b957;
}

.nc-home .nc-btn-outline {
  border-color: rgba(245, 240, 233, 0.3);
  background: transparent;
  color: var(--nc-white);
}

.nc-home .nc-btn-outline:hover {
  border-color: var(--nc-gold);
}

.nc-home .nc-btn-light {
  background: var(--nc-white);
  color: var(--nc-navy);
}

.nc-home .nc-text-link {
  color: var(--nc-lavender);
  font-size: 12px;
  font-weight: 700;
  transition: color 180ms ease;
}

.nc-home .nc-text-link:hover {
  color: var(--nc-gold);
}

/* TOP BAR INSIDE HOME */
.nc-home .nc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(16px, 7vw, 100px);
  border-bottom: 1px solid var(--nc-border);
  background: rgba(17, 16, 32, 0.85);
}

.nc-home .nc-topbar .nc-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.nc-home .nc-topbar-brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nc-home .nc-topbar-brand b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--nc-gold);
  color: var(--nc-navy);
  font-size: 14px;
}

.nc-home .nc-topbar-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nc-home .nc-topbar-nav button {
  background: transparent;
  border: none;
  color: var(--nc-lavender);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 2px;
}

.nc-home .nc-topbar-nav button:hover {
  color: var(--nc-gold);
}

/* HERO */

.nc-home .nc-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  min-height: 540px;
  padding: 72px clamp(24px, 7vw, 100px);
  background:
    radial-gradient(
      circle at 80% 40%,
      rgba(70, 44, 78, 0.34),
      transparent 42%
    ),
    linear-gradient(120deg, #111020 0%, #191326 100%);
}

.nc-home .nc-hero-content {
  position: relative;
  z-index: 2;
  max-width: 570px;
}

.nc-home .nc-hero h1 {
  margin-top: 24px;
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 800;
  line-height: 1.02;
}

.nc-home .nc-hero h1 span {
  color: inherit;
}

.nc-home .nc-hero h1 span:last-of-type {
  color: var(--nc-gold);
}

.nc-home .nc-hero-description {
  max-width: 440px;
  margin-top: 24px;
  color: var(--nc-lavender);
  font-size: 15px;
  line-height: 1.9;
}

.nc-home .nc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.nc-home .nc-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--nc-lavender);
  font-size: 11px;
}

.nc-home .nc-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #7ec8a0;
  box-shadow: 0 0 12px rgba(126, 200, 160, 0.5);
}

.nc-home .nc-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.nc-home .nc-hero-glow {
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(217, 164, 65, 0.1);
  filter: blur(60px);
}

.nc-home .nc-hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 470px;
  max-height: 440px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--nc-border);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35));
}

.nc-home .nc-hero-caption {
  position: absolute;
  right: 0;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  border: 1px solid var(--nc-border);
  border-radius: 10px;
  background: rgba(17, 16, 32, 0.85);
  backdrop-filter: blur(12px);
}

.nc-home .nc-caption-label {
  color: var(--nc-gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.nc-home .nc-caption-title {
  font-size: 14px;
  font-weight: 700;
}

/* RESUME & SESSION BAR */

.nc-home .nc-resume {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 clamp(24px, 7vw, 100px) 18px;
  padding: 22px 28px;
  border: 1px solid rgba(217, 164, 65, 0.28);
  border-radius: 12px;
  background: linear-gradient(
    100deg,
    rgba(217, 164, 65, 0.1),
    rgba(36, 24, 46, 0.7)
  );
}

.nc-home .nc-session-strip {
  margin: 0 clamp(24px, 7vw, 100px) 16px;
  padding: 14px 20px;
  border: 1px solid var(--nc-border);
  border-radius: 12px;
  background: rgba(25, 21, 38, 0.88);
}

.nc-home .nc-resume-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 10px;
  background: rgba(217, 164, 65, 0.14);
  color: var(--nc-gold);
  font-size: 26px;
}

.nc-home .nc-resume-info {
  flex: 1;
}

.nc-home .nc-resume-info h2 {
  margin-top: 5px;
  font-size: 19px;
}

.nc-home .nc-resume-info p {
  margin-top: 5px;
  color: var(--nc-lavender);
  font-size: 12px;
}

/* SECTIONS */

.nc-home .nc-section {
  padding: 78px clamp(24px, 7vw, 100px);
}

.nc-home .nc-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.nc-home .nc-section-heading h2 {
  margin-top: 10px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
}

/* PLAY MODES */

.nc-home .nc-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.nc-home .nc-mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--nc-border);
  border-radius: 14px;
  background: #191526;
  transition:
    transform 220ms ease,
    border-color 220ms ease;
}

.nc-home .nc-mode-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 164, 65, 0.5);
}

.nc-home .nc-mode-online {
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(217, 164, 65, 0.13),
      transparent 45%
    ),
    #191526;
}

.nc-home .nc-mode-ai {
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(119, 87, 147, 0.2),
      transparent 45%
    ),
    #191526;
}

.nc-home .nc-mode-arena {
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(92, 65, 111, 0.3),
      transparent 45%
    ),
    #191526;
}

.nc-home .nc-mode-number {
  color: rgba(245, 240, 233, 0.38);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.nc-home .nc-mode-symbol {
  margin: 18px 0;
  color: var(--nc-gold);
  font-size: 42px;
  line-height: 1;
}

.nc-home .nc-mode-content {
  margin-top: auto;
}

.nc-home .nc-mode-content h3 {
  font-size: 22px;
  font-weight: 800;
}

.nc-home .nc-mode-content p {
  margin-top: 10px;
  color: var(--nc-lavender);
  font-size: 12px;
  line-height: 1.8;
}

.nc-home .nc-card-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--nc-gold);
  font-size: 11px;
  font-weight: 800;
}

/* PLAYER PROGRESS */

.nc-home .nc-progress-section {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 60px;
  padding: 70px clamp(24px, 7vw, 100px);
  background: var(--nc-plum);
}

.nc-home .nc-progress-copy h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
}

.nc-home .nc-progress-copy p {
  max-width: 420px;
  margin-top: 18px;
  color: var(--nc-lavender);
  font-size: 13px;
  line-height: 1.9;
}

.nc-home .nc-progress-copy .nc-btn {
  margin-top: 26px;
}

.nc-home .nc-rating-panel {
  padding: 26px;
  border: 1px solid var(--nc-border);
  border-radius: 14px;
  background: rgba(17, 16, 32, 0.6);
}

.nc-home .nc-rating-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--nc-border);
  color: var(--nc-lavender);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.nc-home .nc-rating-badge {
  padding: 6px 9px;
  border-radius: 5px;
  background: rgba(217, 164, 65, 0.12);
  color: var(--nc-gold);
  font-size: 9px;
  letter-spacing: 0;
}

.nc-home .nc-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--nc-border);
  color: var(--nc-lavender);
  font-size: 13px;
}

.nc-home .nc-rating-row strong {
  color: var(--nc-white);
  font-size: 16px;
}

.nc-home .nc-rating-note {
  margin-top: 18px;
  color: var(--nc-lavender);
  font-size: 10px;
}

/* RECENT GAMES COMPACT DRAWER INSIDE HOME */
.nc-home .nc-recent-drawer {
  margin: 0 clamp(24px, 7vw, 100px);
  padding: 20px 26px;
  border: 1px solid var(--nc-border);
  border-radius: 14px;
  background: rgba(25, 21, 38, 0.72);
}

/* DAILY PUZZLE */

.nc-home .nc-puzzle-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 70px clamp(24px, 7vw, 100px) 0;
  padding: 48px;
  overflow: hidden;
  border: 1px solid rgba(217, 164, 65, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(
      circle at 80% 50%,
      rgba(217, 164, 65, 0.12),
      transparent 38%
    ),
    #191526;
}

.nc-home .nc-puzzle-content {
  position: relative;
  z-index: 2;
}

.nc-home .nc-puzzle-content h2 {
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.nc-home .nc-puzzle-content p {
  max-width: 420px;
  margin-top: 16px;
  color: var(--nc-lavender);
  font-size: 13px;
  line-height: 1.8;
}

.nc-home .nc-puzzle-content .nc-btn {
  margin-top: 24px;
}

.nc-home .nc-puzzle-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  flex: 0 0 220px;
}

.nc-home .nc-puzzle-art span {
  position: relative;
  z-index: 2;
  color: var(--nc-gold);
  font-size: 100px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
}

.nc-home .nc-puzzle-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: 50%;
  box-shadow:
    0 0 0 25px rgba(217, 164, 65, 0.04),
    0 0 0 50px rgba(217, 164, 65, 0.025);
}

/* LIVE ARENA */

.nc-home .nc-live-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  border: 1px solid var(--nc-border);
  border-radius: 14px;
  background: #191526;
}

.nc-home .nc-live-image {
  position: relative;
  min-height: 280px;
  background: #24182e;
}

.nc-home .nc-live-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.nc-home .nc-live-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--nc-border);
  border-radius: 7px;
  background: rgba(17, 16, 32, 0.85);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.nc-home .nc-live-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 36px;
}

.nc-home .nc-live-info h3 {
  margin-top: 12px;
  font-size: 28px;
}

.nc-home .nc-live-info p {
  margin-top: 14px;
  color: var(--nc-lavender);
  font-size: 12px;
  line-height: 1.9;
}

.nc-home .nc-live-info .nc-btn {
  margin-top: 24px;
}

/* BOTTOM CTA */

.nc-home .nc-bottom-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px;
  text-align: center;
  background:
    radial-gradient(
      circle at 50% 100%,
      rgba(217, 164, 65, 0.1),
      transparent 50%
    ),
    #111020;
}

.nc-home .nc-bottom-cta h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 48px);
}

.nc-home .nc-bottom-cta .nc-btn {
  margin-top: 26px;
}

.nc-home .nc-home-seo-strip {
  padding: 18px clamp(24px, 7vw, 100px) 28px;
  border-top: 1px solid var(--nc-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--nc-lavender);
  font-size: 11px;
}

.nc-home .nc-home-seo-strip nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nc-home .nc-home-seo-strip a:hover {
  color: var(--nc-gold);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .nc-home .nc-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 60px;
  }

  .nc-home .nc-hero-content {
    max-width: 700px;
  }

  .nc-home .nc-hero-visual {
    min-height: 300px;
  }

  .nc-home .nc-hero-image {
    max-height: 340px;
  }

  .nc-home .nc-mode-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nc-home .nc-mode-card:last-child {
    grid-column: 1 / -1;
  }

  .nc-home .nc-progress-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nc-home .nc-live-card {
    grid-template-columns: 1fr;
  }

  .nc-home .nc-live-info {
    padding: 28px;
  }
}

@media (max-width: 600px) {
  .nc-home .nc-topbar-nav {
    display: none;
  }

  .nc-home .nc-hero {
    min-height: auto;
    padding: 48px 20px 28px;
  }

  .nc-home .nc-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .nc-home .nc-hero-description {
    font-size: 13px;
  }

  .nc-home .nc-hero-visual {
    min-height: 240px;
  }

  .nc-home .nc-hero-image {
    max-height: 260px;
  }

  .nc-home .nc-hero-caption {
    right: 0;
    bottom: 0;
    padding: 12px 14px;
  }

  .nc-home .nc-resume,
  .nc-home .nc-session-strip,
  .nc-home .nc-recent-drawer {
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 0 20px 14px;
    padding: 18px;
  }

  .nc-home .nc-resume-info {
    min-width: 150px;
  }

  .nc-home .nc-resume .nc-btn {
    width: 100%;
  }

  .nc-home .nc-section {
    padding: 54px 20px;
  }

  .nc-home .nc-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nc-home .nc-mode-grid {
    grid-template-columns: 1fr;
  }

  .nc-home .nc-mode-card:last-child {
    grid-column: auto;
  }

  .nc-home .nc-mode-card {
    min-height: 245px;
  }

  .nc-home .nc-progress-section {
    padding: 54px 20px;
  }

  .nc-home .nc-rating-panel {
    padding: 20px;
  }

  .nc-home .nc-puzzle-banner {
    flex-direction: column;
    align-items: flex-start;
    margin: 28px 20px 0;
    padding: 28px;
  }

  .nc-home .nc-puzzle-art {
    align-self: center;
    width: 150px;
    height: 150px;
    flex-basis: 150px;
  }

  .nc-home .nc-puzzle-art span {
    font-size: 75px;
  }

  .nc-home .nc-puzzle-ring {
    width: 120px;
    height: 120px;
  }

  .nc-home .nc-live-image,
  .nc-home .nc-live-image img {
    min-height: 210px;
  }

  .nc-home .nc-live-info {
    padding: 24px;
  }

  .nc-home .nc-bottom-cta {
    padding: 60px 20px;
  }
}

/* RTL SUPPORT */

[dir="rtl"] .nc-home {
  text-align: right;
}

[dir="rtl"] .nc-home .nc-hero-caption {
  right: auto;
  left: 0;
}

[dir="rtl"] .nc-home .nc-live-tag {
  left: auto;
  right: 20px;
}

[dir="rtl"] .nc-home .nc-resume {
  direction: rtl;
}

[dir="rtl"] .nc-home .nc-section-heading,
[dir="rtl"] .nc-home .nc-rating-header,
[dir="rtl"] .nc-home .nc-rating-row {
  direction: rtl;
}
