/* css/layout-6013.css
   ph444 login password - core base styles.
   All custom classes use the "w6013-" prefix. */

:root {
  --w6013-primary: #DEB887;
  --w6013-bg: #2D2D2D;
  --w6013-bg-soft: #383838;
  --w6013-bg-deep: #1f1f1f;
  --w6013-text: #F5E9D8;
  --w6013-text-muted: #B8A98C;
  --w6013-accent: #E8C892;
  --w6013-border: #4A4540;
  --w6013-danger: #C9533A;
  --w6013-success: #5FAA6A;
  --w6013-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

img { max-width: 100%; display: block; }
a { color: var(--w6013-primary); text-decoration: none; }

/* Layout */
.w6013-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.w6013-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--w6013-bg-deep);
}
.w6013-main { padding-top: 6rem; }

/* Header */
.w6013-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #34312C 0%, #2D2D2D 100%);
  border-bottom: 1px solid var(--w6013-border);
  transition: box-shadow .25s ease, background .25s ease;
}
.w6013-header-scrolled {
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
  background: linear-gradient(180deg, #2D2D2D 0%, #242424 100%);
}
.w6013-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 6rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.w6013-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
}
.w6013-logo img { width: 28px; height: 28px; border-radius: 6px; }
.w6013-logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--w6013-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w6013-header-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.w6013-menu-toggle {
  background: transparent;
  border: 1px solid var(--w6013-border);
  color: var(--w6013-primary);
  width: 3.6rem; height: 3.6rem;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Buttons */
.w6013-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 3.8rem;
  padding: 0 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  text-align: center;
  line-height: 1.2;
}
.w6013-btn:active { transform: translateY(1px); }
.w6013-btn-primary {
  background: linear-gradient(180deg, #E8C892 0%, #DEB887 100%);
  color: #2D2D2D;
  box-shadow: 0 4px 10px rgba(222,184,135,.25);
}
.w6013-btn-outline {
  background: transparent;
  color: var(--w6013-primary);
  border-color: var(--w6013-primary);
}
.w6013-btn-block { display: flex; width: 100%; }
.w6013-btn-lg { min-height: 4.6rem; font-size: 1.6rem; }

/* Mobile slide-down menu */
.w6013-mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: #242424;
  border-top: 1px solid transparent;
  transition: max-height .3s ease, border-color .3s ease;
}
.w6013-mobile-menu.w6013-menu-open {
  max-height: 480px;
  border-top-color: var(--w6013-border);
}
.w6013-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: .8rem 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.w6013-mobile-menu a {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem .6rem;
  color: var(--w6013-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.w6013-mobile-menu a:active { background: rgba(222,184,135,.08); }
.w6013-mobile-menu a i { color: var(--w6013-primary); width: 22px; text-align: center; }

/* Hero */
.w6013-hero {
  position: relative;
  padding: 2.4rem 1.2rem 2rem;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(222,184,135,.18), transparent 60%),
    linear-gradient(180deg, #34312C 0%, #2D2D2D 100%);
}
.w6013-hero h1 {
  font-size: 2.6rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--w6013-accent);
}
.w6013-hero p { color: var(--w6013-text-muted); margin: 0 0 1.6rem; }
.w6013-hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Section */
.w6013-section { padding: 2rem 1.2rem; }
.w6013-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.w6013-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w6013-primary);
}
.w6013-section-link { font-size: 1.3rem; color: var(--w6013-accent); font-weight: 600; }
.w6013-divider { height: 1px; background: var(--w6013-border); margin: 0; border: 0; }

/* Game grid */
.w6013-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.w6013-card {
  background: var(--w6013-bg-soft);
  border: 1px solid var(--w6013-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease;
  cursor: pointer;
}
.w6013-card:active { transform: translateY(2px); box-shadow: var(--w6013-shadow); }
.w6013-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #1a1a1a;
}
.w6013-card-media img { width: 100%; height: 100%; object-fit: cover; }
.w6013-card-body { padding: .5rem .6rem .7rem; text-align: center; }
.w6013-card-title {
  font-size: 1.15rem;
  color: var(--w6013-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w6013-card-tag {
  position: absolute;
  top: 4px; left: 4px;
  background: rgba(0,0,0,.65);
  color: var(--w6013-primary);
  font-size: .95rem;
  padding: .15rem .5rem;
  border-radius: 6px;
}

/* Category pills */
.w6013-pills { display: flex; gap: .6rem; flex-wrap: wrap; }
.w6013-pill {
  padding: .55rem 1rem;
  border-radius: 999px;
  font-size: 1.25rem;
  background: var(--w6013-bg-soft);
  border: 1px solid var(--w6013-border);
  color: var(--w6013-text-muted);
}
.w6013-pill.w6013-active {
  background: var(--w6013-primary);
  color: #2D2D2D;
  border-color: var(--w6013-primary);
  font-weight: 700;
}

/* Feature blocks */
.w6013-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem;
  background: var(--w6013-bg-soft);
  border: 1px solid var(--w6013-border);
  border-radius: 12px;
  margin-bottom: .8rem;
}
.w6013-feature-ico {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(222,184,135,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--w6013-primary);
  font-size: 2rem;
}
.w6013-feature h3 { margin: 0 0 .3rem; font-size: 1.5rem; color: var(--w6013-accent); }
.w6013-feature p { margin: 0; color: var(--w6013-text-muted); font-size: 1.3rem; line-height: 1.5; }

/* Steps */
.w6013-steps { counter-reset: step; }
.w6013-step {
  position: relative;
  padding: .6rem 0 1rem 3.2rem;
  border-left: 1px dashed var(--w6013-border);
  margin-left: 1rem;
}
.w6013-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1.4rem;
  top: 0;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--w6013-primary);
  color: #2D2D2D;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.w6013-step h3 { margin: 0 0 .3rem; font-size: 1.45rem; color: var(--w6013-accent); }
.w6013-step p { margin: 0; color: var(--w6013-text-muted); }

/* Content blocks */
.w6013-content h2 {
  font-size: 1.9rem;
  color: var(--w6013-accent);
  margin: 1.8rem 0 .6rem;
}
.w6013-content h3 {
  font-size: 1.5rem;
  color: var(--w6013-primary);
  margin: 1.2rem 0 .4rem;
}
.w6013-content p { margin: 0 0 1rem; color: var(--w6013-text); line-height: 1.6; }
.w6013-content ul { margin: 0 0 1rem; padding-left: 1.4rem; }
.w6013-content li { margin-bottom: .4rem; }
.w6013-text-link { color: var(--w6013-primary); font-weight: 700; border-bottom: 1px dotted var(--w6013-primary); }

/* Promo banner */
.w6013-banner {
  background: linear-gradient(135deg, #3a3530 0%, #2D2D2D 60%);
  border: 1px solid var(--w6013-border);
  border-radius: 14px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.w6013-banner-title { font-size: 1.8rem; color: var(--w6013-accent); font-weight: 700; }
.w6013-banner-text { color: var(--w6013-text-muted); font-size: 1.3rem; }

/* Footer */
.w6013-footer {
  background: #1c1c1c;
  border-top: 1px solid var(--w6013-border);
  padding: 2rem 1.2rem 9rem;
  margin-top: 2rem;
}
.w6013-footer-brand { color: var(--w6013-text-muted); font-size: 1.25rem; line-height: 1.6; margin-bottom: 1.2rem; }
.w6013-footer-links {
  display: flex; flex-wrap: wrap; gap: .5rem .9rem;
  margin-bottom: 1rem;
}
.w6013-footer-links a {
  font-size: 1.2rem;
  color: var(--w6013-text-muted);
  padding: .2rem 0;
}
.w6013-footer-promo { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.w6013-footer-copy { font-size: 1.1rem; color: #7d756a; }

/* Bottom navigation */
.w6013-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 6rem;
  background: #1c1c1c;
  border-top: 1px solid var(--w6013-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 16px rgba(0,0,0,.4);
}
.w6013-bottomnav-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: 0;
  color: var(--w6013-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  padding: .3rem;
  cursor: pointer;
  transition: color .2s ease, transform .15s ease;
}
.w6013-bottomnav-item i,
.w6013-bottomnav-item span.material-icons,
.w6013-bottomnav-item ion-icon { font-size: 22px; }
.w6013-bottomnav-item .label { font-size: 1.05rem; }
.w6013-bottomnav-item:active { transform: translateY(-1px); }
.w6013-bottomnav-active { color: var(--w6013-primary); }
.w6013-bottomnav-promo { color: var(--w6013-accent); }

/* Desktop hide + main bottom padding for mobile */
@media (max-width: 768px) {
  .w6013-main { padding-bottom: 80px; }
}
@media (min-width: 769px) {
  .w6013-bottomnav { display: none; }
  .w6013-main { padding-bottom: 0; }
}

/* Mobile tuning */
@media (max-width: 430px) {
  html { font-size: 58%; }
  .w6013-hero h1 { font-size: 2.3rem; }
  .w6013-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .w6013-section-title { font-size: 1.6rem; }
  .w6013-card-body { padding: .4rem .3rem .5rem; }
  .w6013-card-title { font-size: 1.05rem; }
  .w6013-btn { min-height: 3.6rem; padding: 0 1rem; font-size: 1.35rem; }
}
@media (max-width: 360px) {
  .w6013-grid { grid-template-columns: repeat(2, 1fr); }
}
