/*!
 * Color Game Perya - design.css
 * Mobile-first stylesheet. All custom classes use the pg63- prefix.
 * Palette: #6F4E37 (coffee) | #DCDCDC | #E5E5E5 | #DEB887 (burlywood) | #2C2C2C (dark base)
 */

:root {
  --pg63-primary: #6F4E37;
  --pg63-accent: #DEB887;
  --pg63-bg: #2C2C2C;
  --pg63-bg-alt: #1f1d1b;
  --pg63-surface: #3a342e;
  --pg63-text: #E5E5E5;
  --pg63-muted: #DCDCDC;
  --pg63-line: rgba(222, 184, 135, 0.18);
  --pg63-success: #4caf7d;
  --pg63-warning: #e0a458;
  --pg63-radius: 12px;
  --pg63-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --pg63-header-h: 60px;
  --pg63-bottomnav-h: 62px;
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: var(--pg63-bg);
  color: var(--pg63-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pg63-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: #fff; margin: 0 0 .8rem; line-height: 1.3; }
h1 { font-size: 2.3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }

p { margin: 0 0 1rem; }

/* ===== Layout container ===== */
.pg63-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.pg63-wrapper {
  padding-top: calc(var(--pg63-header-h) + 1rem);
  padding-bottom: calc(var(--pg63-bottomnav-h) + 2rem);
}

/* ===== Header ===== */
.pg63-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pg63-bg-alt), var(--pg63-surface));
  border-bottom: 1px solid var(--pg63-line);
  box-shadow: var(--pg63-shadow);
}
.pg63-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  height: var(--pg63-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.pg63-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
}
.pg63-brand img { width: 28px; height: 28px; border-radius: 6px; }
.pg63-brand-name {
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pg63-brand-name span { color: var(--pg63-accent); }

.pg63-header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ===== Buttons ===== */
.pg63-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 36px;
  padding: 0 1.2rem;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  font-family: inherit;
  text-decoration: none;
}
.pg63-btn:hover { transform: translateY(-1px); text-decoration: none; }
.pg63-btn:active { transform: scale(.97); }
.pg63-btn-primary { background: linear-gradient(135deg, var(--pg63-accent), #b88a55); color: #1f1d1b; }
.pg63-btn-ghost { background: transparent; border: 1px solid var(--pg63-accent); color: var(--pg63-accent); }
.pg63-btn-block { width: 100%; padding: 1rem; font-size: 1.5rem; border-radius: var(--pg63-radius); }

/* Hamburger toggle */
.pg63-nav-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--pg63-line);
  color: var(--pg63-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}

/* Expandable nav menu */
#pg63NavMenu {
  position: absolute;
  top: var(--pg63-header-h);
  right: 0;
  left: 0;
  background: var(--pg63-bg-alt);
  border-bottom: 1px solid var(--pg63-line);
  box-shadow: var(--pg63-shadow);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
}
#pg63NavMenu.pg63-nav-open { max-height: 480px; }
.pg63-nav-list {
  list-style: none;
  margin: 0;
  padding: .8rem 1.2rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.pg63-nav-list a {
  display: block;
  padding: .9rem 1rem;
  background: var(--pg63-surface);
  border: 1px solid var(--pg63-line);
  border-radius: 10px;
  color: var(--pg63-text);
  font-size: 1.3rem;
  font-weight: 600;
}
.pg63-nav-list a:hover { background: var(--pg63-primary); color: #fff; text-decoration: none; }

/* ===== Hero carousel ===== */
.pg63-carousel {
  position: relative;
  border-radius: var(--pg63-radius);
  overflow: hidden;
  box-shadow: var(--pg63-shadow);
  margin: 1rem 0;
}
.pg63-carousel-viewport { overflow: hidden; }
.pg63-carousel-track {
  display: flex;
  transition: transform .5s ease;
}
.pg63-carousel-slide {
  min-width: 100%;
  position: relative;
}
.pg63-carousel-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.pg63-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff;
}
.pg63-carousel-caption strong { color: var(--pg63-accent); display: block; font-size: 1.6rem; }
.pg63-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.pg63-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  padding: 0;
}
.pg63-carousel-dot.pg63-dot-active { background: var(--pg63-accent); }

/* ===== Section / headings ===== */
.pg63-section {
  margin: 2rem 0;
}
.pg63-section-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  font-size: 1.9rem;
  color: #fff;
}
.pg63-section-title .pg63-bar {
  width: 4px; height: 1.6rem;
  background: var(--pg63-accent);
  border-radius: 2px;
  display: inline-block;
}
.pg63-lead { color: var(--pg63-muted); font-size: 1.45rem; }

/* ===== Game grid ===== */
.pg63-game-section h3 {
  color: var(--pg63-accent);
  font-size: 1.6rem;
  margin: 1.4rem 0 .8rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.pg63-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.pg63-game-tile {
  background: var(--pg63-surface);
  border: 1px solid var(--pg63-line);
  border-radius: 10px;
  padding: .6rem;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  display: block;
}
.pg63-game-tile:hover { transform: translateY(-2px); border-color: var(--pg63-accent); text-decoration: none; }
.pg63-game-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: .5rem;
}
.pg63-game-name {
  font-size: 1.15rem;
  color: var(--pg63-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Filter chips */
.pg63-filters {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  margin-bottom: 1rem;
}
.pg63-filter-chip {
  flex: 0 0 auto;
  padding: .5rem 1rem;
  border-radius: 16px;
  background: var(--pg63-surface);
  color: var(--pg63-muted);
  font-size: 1.25rem;
  border: 1px solid var(--pg63-line);
  cursor: pointer;
  font-family: inherit;
}
.pg63-filter-chip:hover { background: var(--pg63-primary); color: #fff; }

/* ===== Feature / promo cards ===== */
.pg63-card {
  background: var(--pg63-surface);
  border: 1px solid var(--pg63-line);
  border-radius: var(--pg63-radius);
  padding: 1.2rem;
  box-shadow: var(--pg63-shadow);
  margin-bottom: 1rem;
}
.pg63-card h3 { margin-top: 0; color: var(--pg63-accent); }

.pg63-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}

.pg63-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  text-align: center;
}
.pg63-stat {
  background: var(--pg63-bg-alt);
  border-radius: 10px;
  padding: .8rem .4rem;
  border: 1px solid var(--pg63-line);
}
.pg63-stat .pg63-stat-num { display: block; color: var(--pg63-accent); font-size: 1.8rem; font-weight: 700; }
.pg63-stat .pg63-stat-label { font-size: 1.1rem; color: var(--pg63-muted); }

/* Testimonial */
.pg63-quote {
  border-left: 3px solid var(--pg63-accent);
  padding: .4rem 0 .4rem 1rem;
  margin-bottom: 1rem;
  font-style: italic;
  color: var(--pg63-muted);
}
.pg63-quote footer { font-style: normal; font-size: 1.2rem; color: var(--pg63-accent); margin-top: .4rem; }

/* Payment methods */
.pg63-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.pg63-pay-chip {
  background: var(--pg63-bg-alt);
  border: 1px solid var(--pg63-line);
  border-radius: 8px;
  padding: .5rem .9rem;
  font-size: 1.2rem;
  color: var(--pg63-muted);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* Steps list */
.pg63-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.pg63-steps li {
  position: relative;
  padding: .6rem 0 .6rem 3.2rem;
  border-bottom: 1px dashed var(--pg63-line);
}
.pg63-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: .5rem;
  width: 2.4rem; height: 2.4rem;
  background: var(--pg63-accent);
  color: #1f1d1b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
}

/* CTA banner */
.pg63-cta {
  background: linear-gradient(135deg, var(--pg63-primary), #4a3220);
  border: 1px solid var(--pg63-line);
  border-radius: var(--pg63-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.5rem 0;
}
.pg63-cta h3 { color: var(--pg63-accent); margin-top: 0; }
.pg63-cta p { color: var(--pg63-muted); }

/* Reveal animation */
.pg63-reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.pg63-reveal.pg63-inview { opacity: 1; transform: none; }

/* ===== Footer ===== */
.pg63-footer {
  background: var(--pg63-bg-alt);
  border-top: 1px solid var(--pg63-line);
  padding: 2rem 0;
  margin-top: 2rem;
  color: var(--pg63-muted);
  font-size: 1.25rem;
}
.pg63-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin: 1rem 0;
}
.pg63-footer-links a {
  color: var(--pg63-muted);
  font-size: 1.2rem;
}
.pg63-footer-links a:hover { color: var(--pg63-accent); }
.pg63-footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0;
}
.pg63-copyright {
  border-top: 1px solid var(--pg63-line);
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #999;
  text-align: center;
}

/* ===== Mobile bottom nav ===== */
.pg63-bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--pg63-bottomnav-h);
  background: linear-gradient(180deg, var(--pg63-surface), var(--pg63-bg-alt));
  border-top: 1px solid var(--pg63-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,.4);
}
.pg63-bottomnav button,
.pg63-bottomnav a {
  flex: 1 1 0;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg63-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  transition: color .15s ease, transform .15s ease;
}
.pg63-bottomnav button:hover,
.pg63-bottomnav a:hover { color: var(--pg63-accent); text-decoration: none; transform: translateY(-1px); }
.pg63-bottomnav .material-icons,
.pg63-bottomnav ion-icon,
.pg63-bottomnav i { font-size: 22px; }
.pg63-bottomnav .pg63-active { color: var(--pg63-accent); }
.pg63-bottomnav .pg63-active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  background: var(--pg63-accent);
  border-radius: 0 0 3px 3px;
}

/* ===== Desktop ===== */
@media (min-width: 769px) {
  body { background: #1a1816; }
  .pg63-container { max-width: 720px; }
  .pg63-header-inner { max-width: 720px; }
  .pg63-bottomnav { display: none; }
  .pg63-wrapper { padding-bottom: 2rem; }
}

/* ===== Mobile tweaks ===== */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .pg63-game-grid { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 2.1rem; }
}
@media (max-width: 360px) {
  .pg63-game-grid { grid-template-columns: repeat(2, 1fr); }
  .pg63-brand-name { max-width: 110px; }
  .pg63-pros-cons { grid-template-columns: 1fr; }
}

/* ===== Help page extras (review / safety) ===== */
.pg63-page-head { padding: 1.4rem 0 .2rem; }
.pg63-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pg63-accent);
  font-weight: 700;
  margin-bottom: .6rem;
}
.pg63-score-card { padding: 1.2rem; }
.pg63-overall { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .6rem; }
.pg63-overall-num { font-size: 3.6rem; font-weight: 800; color: var(--pg63-accent); line-height: 1; }
.pg63-overall-max { color: var(--pg63-muted); font-size: 1.3rem; }
.pg63-score-row {
  display: grid;
  grid-template-columns: 10rem 1fr 3.4rem;
  align-items: center;
  gap: .6rem;
  padding: .5rem 0;
  border-bottom: 1px dashed var(--pg63-line);
  font-size: 1.25rem;
  color: var(--pg63-muted);
}
.pg63-score-row:last-child { border-bottom: none; }
.pg63-score-track { height: .7rem; background: var(--pg63-bg-alt); border-radius: 4px; overflow: hidden; }
.pg63-score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pg63-primary), var(--pg63-accent));
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s ease .25s;
}
.pg63-inview .pg63-score-fill { transform: scaleX(1); }
.pg63-score-num { text-align: right; color: var(--pg63-accent); font-weight: 700; }

.pg63-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.pg63-pros-cons .pg63-card { margin-bottom: 0; }
.pg63-mini-list { list-style: none; padding: 0; margin: 0; font-size: 1.3rem; color: var(--pg63-muted); }
.pg63-mini-list li { position: relative; padding: .4rem 0 .4rem 1.9rem; border-bottom: 1px dashed var(--pg63-line); }
.pg63-mini-list li:last-child { border-bottom: none; }
.pg63-mini-list li::before { position: absolute; left: .2rem; font-weight: 700; }
.pg63-pros .pg63-mini-list li::before { content: '\2713'; color: var(--pg63-success); }
.pg63-cons .pg63-mini-list li::before { content: '\2715'; color: var(--pg63-warning); }

.pg63-alert {
  background: rgba(224, 164, 88, 0.08);
  border: 1px solid rgba(224, 164, 88, 0.35);
  border-left: 4px solid var(--pg63-warning);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  font-size: 1.35rem;
}
.pg63-alert strong { color: var(--pg63-warning); }

.pg63-faq-item { margin-bottom: .8rem; }
.pg63-faq-item h3 { font-size: 1.5rem; }
.pg63-faq-item p { margin-bottom: 0; color: var(--pg63-muted); }
