@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');
/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --pastel-pink: #FFC0CB;
  --pastel-blue: #B0E0E6;
  --horror-red: #FF0000;
  --soft-bg: #F8F8F8;
  --text-dark: #333333;
  --white: #ffffff;
  --gray-100: #f7fafc;
  --gray-300: #e2e8f0;
  --gray-600: #718096;
  --gray-700: #4a5568;
  --green-100: #f0fff4;
  --green-500: #38a169;
  --green-600: #2f855a;
  --green-800: #22543d;
  --orange-100: #fffaf0;
  --orange-500: #ed8936;
  --orange-600: #dd6b20;
  --orange-800: #9c4221;
  --red-100: #fff5f5;
  --red-500: #e53e3e;
  --red-600: #c53030;
  --red-800: #822727;
  --yellow-400: #f6e05e;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--soft-bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
.font-game {
  font-family: 'VT323', monospace;
}

.section-title {
  font-family: 'VT323', monospace;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  letter-spacing: 2px;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  height: 4rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 24rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pastel-pink), var(--pastel-blue));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 64rem;
  height: auto;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
}

.hero-title {
  font-family: 'VT323', monospace;
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 4px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.75;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Game Info Section */
.game-info {
  padding: 4rem 0;
  background: var(--white);
}

.game-info-card {
  background: var(--soft-bg);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.game-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.game-details h3,
.game-warnings h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--horror-red);
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
}

.detail-label {
  font-weight: 500;
}

.warnings-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.warning-item {
  display: flex;
  align-items: center;
}

.warning-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--horror-red);
  border-radius: 50%;
  margin-right: 0.75rem;
}

.genre-section {
  margin-top: 1.5rem;
}

.genre-section h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.genre-tag {
  padding: 0.25rem 0.75rem;
  background: var(--pastel-pink);
  border-radius: 9999px;
  font-size: 0.875rem;
}

/* Endings Section */
.endings-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(176, 224, 230, 0.2), rgba(255, 192, 203, 0.2));
}

.endings-card {
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  overflow: hidden;
}

.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--gray-300);
}

.tab-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: var(--gray-100);
}

.tab-btn.active {
  color: var(--green-800);
  background: var(--green-100);
  border-bottom: 2px solid var(--green-500);
}

.tab-btn.active.normal {
  color: var(--orange-800);
  background: var(--orange-100);
  border-bottom-color: var(--orange-500);
}

.tab-btn.active.bad {
  color: var(--red-800);
  background: var(--red-100);
  border-bottom-color: var(--red-500);
}

.tab-content-area {
  padding: 2rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.ending-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.ending-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.ending-title.good {
  color: var(--green-600);
}

.ending-title.normal {
  color: var(--orange-600);
}

.ending-title.bad {
  color: var(--red-600);
}

.ending-description {
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.ending-quote {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-style: italic;
}

.ending-image {
  display: flex;
  justify-content: center;
}

.ending-image img {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Choice Section */
.choice-section {
  padding: 5rem 0;
  background: linear-gradient(90deg, rgba(255, 192, 203, 0.3), rgba(176, 224, 230, 0.3));
  text-align: center;
}

.choice-title {
  font-family: 'VT323', monospace;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.choice-description {
  font-size: 1.25rem;
  color: rgba(51, 51, 51, 0.8);
  line-height: 1.75;
  max-width: 48rem;
  margin: 0 auto 3rem;
}

/* Shop Section Styles */
.shop-section {
  margin-bottom: 3rem;
  background: var(--white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.shop-title {
  font-family: 'VT323', monospace;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--horror-red);
  letter-spacing: 1px;
}

.tools-table-container {
  overflow-x: auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tools-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.9rem;
}

.tools-table thead {
  background: var(--gray-700);
  color: var(--white);
}

.tools-table th,
.tools-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-300);
}

.tools-table th {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tool-row {
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.tool-row:hover {
  background: rgba(255, 192, 203, 0.1);
}

.tool-row[data-stage="1"] { border-left: 4px solid var(--green-500); }
.tool-row[data-stage="2"] { border-left: 4px solid #a7f3d0; }
.tool-row[data-stage="3"] { border-left: 4px solid var(--yellow-400); }
.tool-row[data-stage="4"] { border-left: 4px solid var(--orange-500); }
.tool-row[data-stage="5"] { border-left: 4px solid #fb923c; }
.tool-row[data-stage="6"] { border-left: 4px solid var(--red-500); }

.tool-name {
  font-weight: 600;
  font-size: 1rem;
}

.tool-speed {
  font-weight: 600;
  color: var(--green-600);
}

.tool-cost {
  font-weight: 600;
  color: var(--horror-red);
}

.tool-feeling {
  font-style: italic;
  color: var(--gray-700);
}

.tool-time {
  font-weight: 500;
  color: var(--orange-600);
}

/* Timeline Styles */
.condition-section {
  background: var(--white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.condition-title {
  font-family: 'VT323', monospace;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--horror-red);
  letter-spacing: 1px;
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    var(--green-500) 0%,
    var(--green-500) 16.66%,
    #a7f3d0 16.66%,
    var(--yellow-400) 33.33%,
    var(--orange-500) 50%,
    #fb923c 66.66%,
    var(--red-500) 83.33%,
    var(--red-500) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0.7;
  transition: all 0.3s ease;
  cursor: pointer;
}

.timeline-item:hover,
.timeline-item.active {
  opacity: 1;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  z-index: 2;
}

.timeline-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.timeline-dot.stage-1 { background: var(--green-500); }
.timeline-dot.stage-2 { background: #a7f3d0; }
.timeline-dot.stage-3 { background: var(--yellow-400); }
.timeline-dot.stage-4 { background: var(--orange-500); }
.timeline-dot.stage-5 { background: #fb923c; }
.timeline-dot.stage-6 { background: var(--red-500); }

.timeline-content {
  display: flex;
  gap: 1.5rem;
  background: var(--gray-100);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.timeline-image {
  flex-shrink: 0;
}

.harvey-image {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.timeline-info {
  flex-grow: 1;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.timeline-description {
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.timeline-tool,
.timeline-earning {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.timeline-tool {
  background: var(--pastel-pink);
  color: var(--text-dark);
}

.timeline-earning {
  background: var(--green-100);
  color: var(--green-800);
}

/* Download Section */
.download-section {
  padding: 4rem 0;
  background: var(--text-dark);
  text-align: center;
}

.download-title {
  font-family: 'VT323', monospace;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--white);
}

.download-description {
  font-size: 1.25rem;
  color: var(--gray-300);
  margin-bottom: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 3rem;
  background: var(--horror-red);
  color: var(--white);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.download-btn:hover {
  background: var(--red-600);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.download-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.75rem;
}

.download-info {
  color: var(--gray-600);
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

/* Recommendations Section */
.recommendations {
  padding: 4rem 0;
  background: var(--soft-bg);
}

.recommendation-section {
  margin-bottom: 4rem;
}

.recommendation-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.recommendation-subtitle {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.communities-grid {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Card Styles */
.card {
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-content {
  padding: 1.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  margin-right: 1rem;
}

.card-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.card-subtitle {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.card-description {
  color: var(--gray-700);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  padding: 0.25rem 0.5rem;
  background: var(--pastel-blue);
  font-size: 0.75rem;
  border-radius: 9999px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-platform {
  font-size: 0.75rem;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.card-btn {
  background: var(--horror-red);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.3s ease;
}

.card-btn:hover {
  background: var(--red-600);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 12rem;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-thumbnail:hover .video-overlay {
  opacity: 1;
}

.rating {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.stars {
  color: var(--yellow-400);
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.rating-number {
  color: var(--gray-600);
  font-size: 0.75rem;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 0;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 3rem;
  opacity: 0.8;
}

.footer-text {
  color: var(--gray-600);
}

.footer-text p {
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.footer-text a {
  color: var(--pastel-pink);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-text a:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

/* Loading */
.loading {
  text-align: center;
  color: var(--gray-600);
  padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .game-details-grid {
    grid-template-columns: 1fr;
  }

  .ending-content {
    grid-template-columns: 1fr;
  }

  .tab-nav {
    flex-direction: column;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .communities-grid {
    grid-template-columns: 1fr;
  }

  .choice-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .tools-table {
    font-size: 0.8rem;
  }

  .tools-table th,
  .tools-table td {
    padding: 0.5rem 0.75rem;
  }

  .timeline-content {
    flex-direction: column;
    gap: 1rem;
  }

  .harvey-image {
    width: 100%;
    max-width: 300px;
    height: 200px;
    margin: 0 auto;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-marker {
    left: -1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .container {
    padding: 0 0.5rem;
  }

  .download-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }

  .shop-section,
  .condition-section {
    padding: 1rem;
  }

  .tools-table th,
  .tools-table td {
    padding: 0.4rem 0.5rem;
  }

  .timeline-stats {
    flex-direction: column;
    gap: 0.5rem;
  }

  .harvey-image {
    height: 150px;
  }
}

/* Policy Pages Styles */
.logo-link {
  text-decoration: none;
}

.policy-hero {
  background: linear-gradient(135deg, var(--pastel-pink), var(--pastel-blue));
  padding: 3rem 0 2rem;
}

.policy-header {
  text-align: center;
  color: var(--white);
}

.breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--pastel-pink);
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
}

.breadcrumb-current {
  color: rgba(255, 255, 255, 0.6);
}

.policy-title {
  font-family: 'VT323', monospace;
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.policy-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.policy-content {
  padding: 4rem 0;
  background: var(--white);
}

.policy-article {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.policy-intro {
  background: var(--gray-100);
  padding: 2rem;
  border-radius: 0.5rem;
  margin-bottom: 3rem;
  border-left: 4px solid var(--horror-red);
}

.policy-intro p {
  font-size: 1.125rem;
  color: var(--gray-700);
  margin: 0;
}

.policy-section {
  margin-bottom: 3rem;
}

.policy-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-300);
}

.policy-section p {
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.policy-section a {
  color: var(--horror-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

.policy-section a:hover {
  color: var(--red-600);
  text-decoration: underline;
}

.policy-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-300);
  gap: 1rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-btn-primary {
  background: var(--horror-red);
  color: var(--white);
}

.nav-btn-primary:hover {
  background: var(--red-600);
  transform: translateY(-2px);
}

.nav-btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.nav-btn-secondary:hover {
  background: var(--gray-300);
  transform: translateY(-2px);
}

/* Policy Pages Responsive Design */
@media (max-width: 768px) {
  .policy-title {
    font-size: 2rem;
  }

  .policy-navigation {
    flex-direction: column;
    text-align: center;
  }

  .nav-btn {
    width: 100%;
    justify-content: center;
  }

  .policy-intro {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .policy-hero {
    padding: 2rem 0 1.5rem;
  }

  .policy-title {
    font-size: 1.75rem;
  }

  .breadcrumb {
    font-size: 0.8rem;
  }

  .policy-content {
    padding: 2rem 0;
  }

  .policy-intro {
    padding: 1rem;
  }
}