/* ===== HOME PAGE STYLES ===== */
.home-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  padding-block-end: var(--space-7);
}

/* Section base */
.home-review-section,
.home-carousel-section,
.home-cta-section {
  width: 100%;
}

.home-review-section__inner,
.home-carousel-section__inner,
.home-cta-section__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.home-section-title {
  font-size: clamp(24px, 3.5vw, 32px);
  line-height: 1.3;
  margin-block-end: var(--space-4);
  text-align: left;
}

.home-section-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-block-end: var(--space-4);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

/* Hero */
.home-hero {
  width: 100%;
  background-color: var(--bg-surface);
  border-block-end: 2px solid var(--border);
  padding-block: var(--space-7);
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(39, 215, 232, 0.12) 2px, transparent 2px),
    radial-gradient(circle, rgba(232, 61, 155, 0.12) 2px, transparent 2px),
    radial-gradient(circle, rgba(255, 212, 71, 0.12) 2px, transparent 2px);
  background-size: 32px 32px, 48px 48px, 64px 64px;
  background-position: 0 0, 16px 16px, 32px 32px;
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.home-hero__title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-block-end: 0;
  max-width: 900px;
}

.home-hero__rating {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  min-width: 0;
}

.home-hero__stars {
  font-size: 28px;
  color: var(--accent-yellow);
  letter-spacing: 4px;
  line-height: 1;
}

.home-hero__half-star {
  position: relative;
  display: inline-block;
  color: var(--text-secondary);
  overflow: hidden;
  width: 0.55em;
  white-space: nowrap;
}

.home-hero__half-star::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-yellow);
  width: 50%;
  overflow: hidden;
}

.home-hero__rating-value {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-primary);
}

.home-hero__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 720px;
  margin-inline: auto;
  margin-block-end: 0;
}

.home-hero__cta {
  min-width: 240px;
}

/* Carousel */
.home-carousel-section {
  padding-block: var(--space-7);
}

.home-carousel {
  position: relative;
  width: 80%;
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.home-carousel__viewport {
  width: 100%;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--radius-2);
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-card);
}

.home-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 300ms ease-in-out;
  width: 100%;
}

.home-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
}

.home-carousel__figure {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.home-carousel__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.home-carousel__figure figcaption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
  padding-inline: var(--space-3);
  padding-block-end: var(--space-3);
}

.home-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  min-height: 44px;
  min-width: 44px;
  background-color: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-1);
  color: var(--text-primary);
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.home-carousel__arrow:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
  background-color: var(--bg-primary);
}

.home-carousel__arrow--prev {
  left: -22px;
}

.home-carousel__arrow--next {
  right: -22px;
}

.home-carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  min-width: 0;
}

.home-carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  min-height: 12px;
  min-width: 12px;
}

.home-carousel__dot:hover {
  background-color: var(--text-secondary);
}

.home-carousel__dot--active {
  background-color: var(--accent-cyan);
  transform: scale(1.2);
}

/* Mechanics */
.home-mechanics-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: var(--space-5);
  align-items: start;
}

.home-mechanics-copy {
  min-width: 0;
}

.home-mechanics-copy h3 {
  margin-block-end: var(--space-3);
}

.home-mechanics-copy p {
  margin-block-end: var(--space-4);
  max-width: 70ch;
}

.home-mechanics-copy p:last-child {
  margin-block-end: 0;
}

.home-mechanics-visual {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-pixel-icon {
  width: 120px;
  height: 120px;
  background-image: linear-gradient(45deg, var(--accent-cyan) 25%, transparent 25%, transparent 75%, var(--accent-cyan) 75%),
    linear-gradient(45deg, var(--accent-magenta) 25%, transparent 25%, transparent 75%, var(--accent-magenta) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-1);
  box-shadow: var(--shadow-card);
}

/* Levels */
.home-levels-content {
  width: 100%;
  max-width: 70ch;
}

.home-levels-content h3 {
  margin-block-end: var(--space-3);
}

.home-levels-content p {
  margin-block-end: var(--space-4);
}

.home-levels-content ul {
  margin-block-end: 0;
}

/* Boosters */
.home-boosters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: start;
}

.home-boosters-list,
.home-boosters-acquisition {
  min-width: 0;
}

.home-boosters-list h3,
.home-boosters-acquisition h3 {
  margin-block-end: var(--space-3);
}

.home-boosters-list ul {
  margin-block-end: 0;
}

.home-boosters-acquisition p {
  margin-block-end: 0;
  max-width: 70ch;
}

/* Visuals */
.home-visuals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.home-visuals-copy {
  min-width: 0;
  max-width: 70ch;
}

.home-visuals-copy h3 {
  margin-block-end: var(--space-3);
}

.home-visuals-copy p {
  margin-block-end: var(--space-4);
}

.home-visuals-copy p:last-child {
  margin-block-end: 0;
}

/* Difficulty */
.home-difficulty-content {
  width: 100%;
  max-width: 70ch;
}

.home-difficulty-content h3 {
  margin-block-end: var(--space-3);
}

.home-difficulty-content p {
  margin-block-end: var(--space-4);
}

.home-difficulty-content p:last-child {
  margin-block-end: 0;
}

/* Pros and Cons */
.home-proscons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: start;
}

.home-proscons-panel {
  min-width: 0;
  background-color: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-2);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
}

.home-proscons-panel--pros {
  border-color: var(--accent-cyan);
}

.home-proscons-panel--cons {
  border-color: var(--accent-magenta);
}

.home-proscons-panel h3 {
  margin-block-end: var(--space-3);
}

.home-proscons-panel ul {
  margin-block-end: 0;
}

/* Verdict */
.home-verdict-panel {
  width: 80%;
  max-width: 720px;
  margin-inline: auto;
  background-color: var(--bg-surface);
  border: 2px solid var(--accent-yellow);
  border-radius: var(--radius-2);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.home-verdict-rating {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  min-width: 0;
}

.home-verdict-stars {
  font-size: 32px;
  color: var(--accent-yellow);
  letter-spacing: 4px;
  line-height: 1;
}

.home-verdict-half-star {
  position: relative;
  display: inline-block;
  color: var(--text-secondary);
  overflow: hidden;
  width: 0.55em;
  white-space: nowrap;
}

.home-verdict-half-star::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-yellow);
  width: 50%;
  overflow: hidden;
}

.home-verdict-value {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--text-primary);
}

.home-verdict-panel p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 60ch;
  margin-block-end: 0;
}

.home-verdict-cta {
  min-width: 240px;
}

/* CTA Section */
.home-cta-section {
  padding-block: var(--space-7);
  background-color: var(--bg-surface);
  border-block-start: 2px solid var(--border);
}

.home-cta-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.home-cta-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
  margin-inline: auto;
  margin-block-end: 0;
}

.home-cta-button {
  min-width: 250px;
}

/* Responsive */
@media (max-width: 1024px) {
  .home-carousel {
    width: 90%;
  }

  .home-mechanics-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .home-mechanics-visual {
    display: none;
  }

  .home-boosters-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .home-proscons-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .home-verdict-panel {
    width: 90%;
  }
}

@media (max-width: 767px) {
  .home-main {
    gap: var(--space-6);
  }

  .home-hero {
    padding-block: var(--space-6);
  }

  .home-hero__title {
    font-size: 32px;
  }

  .home-hero__stars {
    font-size: 24px;
  }

  .home-hero__lead {
    font-size: 16px;
  }

  .home-carousel-section {
    padding-block: var(--space-6);
  }

  .home-carousel {
    width: 100%;
  }

  .home-carousel__arrow {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 24px;
  }

  .home-carousel__arrow--prev {
    left: 8px;
  }

  .home-carousel__arrow--next {
    right: 8px;
  }

  .home-verdict-panel {
    width: 100%;
    padding: var(--space-4);
  }

  .home-verdict-stars {
    font-size: 28px;
  }

  .home-cta-section {
    padding-block: var(--space-6);
  }
}

@media (max-width: 479px) {
  .home-hero__title {
    font-size: 28px;
  }

  .home-hero__cta,
  .home-verdict-cta,
  .home-cta-button {
    width: 100%;
    min-width: 0;
  }

  .home-carousel__arrow {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 20px;
  }

  .home-carousel__arrow--prev {
    left: 4px;
  }

  .home-carousel__arrow--next {
    right: 4px;
  }

  .home-verdict-panel {
    padding: var(--space-3);
  }

  .home-verdict-stars {
    font-size: 24px;
  }

  .home-verdict-value {
    font-size: 20px;
  }
}
