/* ============================================
   Potato Game — Official Website
   Dark Theme | Action RPG / Roguelite
   ============================================ */

/* ----- Reset & Base ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0a0a0f;
  --color-bg-alt: #12121a;
  --color-bg-card: #1a1a26;
  --color-bg-hover: #24243a;
  --color-accent: #e0523e;
  --color-accent-hover: #c94432;
  --color-accent-dim: rgba(224, 82, 62, 0.15);
  --color-text: #e8e8ee;
  --color-text-muted: #8a8a9a;
  --color-text-dim: #5a5a6a;
  --color-border: #2a2a3a;
  --color-border-light: #3a3a4a;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --header-h: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--color-accent-hover);
}

/* ----- Utility ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 620px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(224, 82, 62, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-light);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* ----- Navigation ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 1px;
}
.header-logo span {
  color: var(--color-accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.header-nav a:hover {
  color: var(--color-text);
}

.header-nav .btn {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 32px;
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.lang-switch:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
  background: var(--color-accent-dim);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    url("../images/hero-bg.webp") center center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(224, 82, 62, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(224, 82, 62, 0.06) 0%, transparent 50%),
    rgba(10, 10, 15, 0.55);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent-dim);
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #d0d0dc;
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 400;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dim);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-text-dim), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ----- About ----- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual-placeholder {
  color: var(--color-text-dim);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

.about-text h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-text ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.about-text ul li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-text ul li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* ----- Features ----- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--color-border-light);
  background: var(--color-bg-hover);
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ----- Screenshots / Gallery Carousel ----- */
.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.gallery-thumbnails {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-light) transparent;
  padding-bottom: 4px;
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: var(--color-border-light);
  border-radius: 3px;
}

.thumb-list {
  display: flex;
  gap: 10px;
  min-width: min-content;
}

.thumb-item {
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.thumb-item:hover {
  opacity: 0.85;
  border-color: var(--color-border-light);
}

.thumb-item.active {
  opacity: 1;
  border-color: var(--color-accent);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .thumb-item {
    width: 120px;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
}

/* ----- Roadmap ----- *//* ----- Roadmap ----- */
.roadmap-timeline {
  position: relative;
  padding-left: 32px;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.roadmap-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 32px;
}

.roadmap-item:last-child {
  margin-bottom: 0;
}

.roadmap-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 2px solid var(--color-accent);
}

.roadmap-item.done::before {
  background: var(--color-accent);
}

.roadmap-item.current::before {
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-dim);
}

.roadmap-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 10px;
  margin-bottom: 8px;
}

.roadmap-tag.done {
  background: rgba(76, 175, 80, 0.15);
  color: #66bb6a;
}

.roadmap-tag.current {
  background: var(--color-accent-dim);
  color: var(--color-accent);
}

.roadmap-tag.upcoming {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-dim);
}

.roadmap-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.roadmap-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ----- Team ----- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-text-dim);
  overflow: hidden;
  flex-shrink: 0;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.team-card p {
  font-size: 0.82rem;
  color: var(--color-text-dim);
  line-height: 1.5;
}

/* ----- News / Devlog ----- */
.news-list {
  display: grid;
  gap: 20px;
}

.news-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
}

.news-card:hover {
  border-color: var(--color-border-light);
  background: var(--color-bg-hover);
}

.news-date {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.news-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.news-card .news-tags {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.news-card .news-tags span {
  padding: 2px 10px;
  font-size: 0.72rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-dim);
}

/* ----- Footer / CTA ----- */
.cta-section {
  text-align: center;
  padding: 100px 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(224, 82, 62, 0.06), transparent);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  font-size: 1.05rem;
  padding: 16px 40px;
}

.footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--color-text-dim);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  font-size: 0.82rem;
  color: var(--color-text-dim);
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--color-text);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--color-text-dim);
}

.footer-links a:hover {
  color: var(--color-text-muted);
}

/* ----- Animations ----- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }



}

@media (max-width: 640px) {
  body {
    padding-bottom: 72px;
    padding-bottom: max(72px, env(safe-area-inset-bottom, 0px));
  }

  .header-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.97);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .header-nav.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .header-actions {
    gap: 12px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }



  .section {
    padding: 64px 0;
  }

  .about-text ul {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
/* ----- Press Kit ----- */
.press-header {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 40px;
}

.press-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.press-header p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.press-section {
  margin-bottom: 48px;
}

.press-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.press-section p,
.press-section li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.press-section ul {
  list-style: none;
  padding: 0;
}

.press-section ul li {
  padding: 6px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.press-section ul li::before {
  content: '\2014';
  color: var(--color-accent);
  flex-shrink: 0;
}

.press-factsheet {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 20px;
  font-size: 0.9rem;
}

.press-factsheet dt {
  font-weight: 600;
  color: var(--color-text);
}

.press-factsheet dd {
  color: var(--color-text-muted);
  margin: 0;
}

.press-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.press-gallery-thumbs a {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  font-size: 0.8rem;
  text-align: center;
  padding: 16px;
  transition: border-color var(--transition);
}

.press-gallery-thumbs a:hover {
  border-color: var(--color-accent);
  color: var(--color-text-muted);
}

.press-contact {
  display: grid;
  gap: 12px;
}

.press-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 640px) {
  .press-factsheet {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .press-factsheet dt {
    margin-top: 12px;
  }
  .press-gallery-thumbs {
    grid-template-columns: 1fr 1fr;
  }
}
