/* =========================================================
 * playtime login - core stylesheet
 * Class prefix: w3a73-
 * Canvas: 320-430px mobile-first. Wider screens keep the
 *         centered mobile canvas, no desktop layout.
 * Palette: #FF7F50 / #4B0082 / #0C0C0C / #BA55D3 / #6A5ACD
 * ========================================================= */

:root {
  --w3a73-coral: #FF7F50;
  --w3a73-indigo: #4B0082;
  --w3a73-dark: #0C0C0C;
  --w3a73-orchid: #BA55D3;
  --w3a73-slate: #6A5ACD;
  --w3a73-ink: #0C0C0C;
  --w3a73-ink-2: #15101f;
  --w3a73-ink-3: #1f1530;
  --w3a73-line: rgba(186, 85, 211, 0.22);
  --w3a73-text: #f6f1ff;
  --w3a73-muted: #b9a9d6;
  --w3a73-gold: #ffd9a8;
  --w3a73-radius: 14px;
  --w3a73-radius-sm: 10px;
  --w3a73-bar-h: 62px;
  --w3a73-header-h: 60px;
  --w3a73-shadow: 0 10px 30px rgba(0,0,0,0.45);
  --w3a73-font: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--w3a73-ink);
  color: var(--w3a73-text);
  font-family: var(--w3a73-font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(186,85,211,0.20), transparent 60%),
    radial-gradient(600px 320px at 100% 12%, rgba(106,90,205,0.18), transparent 60%),
    linear-gradient(180deg, #0c0712 0%, #0C0C0C 60%, #0a0710 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

a { color: var(--w3a73-gold); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }

.w3a73-lock-scroll { overflow: hidden; }

/* ---------- Mobile canvas wrapper ---------- */
.w3a73-canvas {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, rgba(31,21,48,0.55), rgba(12,12,12,0.2));
  box-shadow: 0 0 50px rgba(0,0,0,0.55);
}

@media (min-width: 431px) {
  body { padding: 0; }
  .w3a73-canvas { border-left: 1px solid rgba(186,85,211,0.12); border-right: 1px solid rgba(186,85,211,0.12); }
}

/* ---------- Top identity bar ---------- */
.w3a73-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--w3a73-header-h);
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(15,8,24,0.97), rgba(20,10,32,0.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--w3a73-line);
}

.w3a73-header-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--w3a73-text);
  border-radius: 12px;
  cursor: pointer;
}
.w3a73-header-btn:active { transform: translateY(1px); }
.w3a73-header-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.w3a73-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.w3a73-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,217,168,0.45), 0 4px 10px rgba(255,127,80,0.25);
  flex: 0 0 auto;
}
.w3a73-brand {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w3a73-brand span { color: var(--w3a73-coral); }

/* ---------- Action cluster under bar ---------- */
.w3a73-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 12px 10px;
  background: linear-gradient(180deg, rgba(15,8,24,0.96), rgba(15,8,24,0));
  border-bottom: 1px solid rgba(186,85,211,0.10);
}
.w3a73-btn {
  height: 42px;
  border-radius: 11px;
  border: none;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
  letter-spacing: 0.3px;
}
.w3a73-btn:active { transform: translateY(2px); }
.w3a73-btn--login {
  background: linear-gradient(135deg, var(--w3a73-slate), var(--w3a73-indigo));
  box-shadow: 0 6px 16px rgba(75,0,130,0.45);
}
.w3a73-btn--register {
  background: linear-gradient(135deg, var(--w3a73-coral), #ff5fa0);
  box-shadow: 0 6px 18px rgba(255,127,80,0.45);
}
.w3a73-btn--ghost {
  background: transparent;
  border: 1px solid var(--w3a73-line);
  color: var(--w3a73-text);
}
.w3a73-btn--block { width: 100%; }

/* ---------- Stacked overlay menu ---------- */
.w3a73-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,2,10,0.72);
  backdrop-filter: blur(4px);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.w3a73-menu-overlay.w3a73-menu--open {
  opacity: 1;
  pointer-events: auto;
}
.w3a73-menu-panel {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1a0f2a, #0c0712);
  border-bottom: 1px solid var(--w3a73-line);
  padding: 14px 16px 22px;
  transform: translateY(-12px);
  transition: transform 0.26s ease;
  box-shadow: var(--w3a73-shadow);
}
.w3a73-menu--open .w3a73-menu-panel { transform: translateY(0); }
.w3a73-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px; margin-bottom: 8px;
  border-bottom: 1px dashed rgba(186,85,211,0.22);
}
.w3a73-menu-head strong { color: #fff; font-size: 16px; }
.w3a73-menu-list { list-style: none; margin: 0; padding: 0; }
.w3a73-menu-list li { border-bottom: 1px solid rgba(186,85,211,0.10); }
.w3a73-menu-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 6px;
  color: var(--w3a73-text);
  font-weight: 600; font-size: 14.5px;
}
.w3a73-menu-list a:active { color: var(--w3a73-coral); }
.w3a73-menu-list .w3a73-arrow { color: var(--w3a73-orchid); font-size: 14px; }
.w3a73-menu-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* ---------- Hero carousel ---------- */
.w3a73-hero {
  position: relative;
  margin: 12px 12px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--w3a73-shadow);
  border: 1px solid rgba(186,85,211,0.22);
}
.w3a73-hero-track { position: relative; }
.w3a73-hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.6s ease;
  cursor: pointer;
}
.w3a73-hero-slide--active { opacity: 1; transform: scale(1); }
.w3a73-hero-slide img { width: 100%; height: 168px; object-fit: cover; }
.w3a73-hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(5,2,10,0.85));
  color: #fff;
}
.w3a73-hero-caption b { color: var(--w3a73-gold); display: block; font-size: 14px; }
.w3a73-hero-caption span { font-size: 12px; color: var(--w3a73-muted); }
.w3a73-hero-dots {
  position: absolute; bottom: 8px; right: 10px;
  display: flex; gap: 5px; z-index: 4;
}
.w3a73-hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: width 0.2s, background 0.2s;
}
.w3a73-hero-dot--active { background: var(--w3a73-coral); width: 16px; border-radius: 4px; }
.w3a73-hero-wrap { position: relative; padding-top: 168px; }

/* ---------- Section shell ---------- */
.w3a73-section {
  margin: 18px 12px 0;
}
.w3a73-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.w3a73-section-title {
  font-size: 16px; font-weight: 800; color: #fff;
  position: relative; padding-left: 12px; margin: 0;
}
.w3a73-section-title::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px;
  border-radius: 4px; background: linear-gradient(180deg, var(--w3a73-coral), var(--w3a73-orchid));
}
.w3a73-section-more { color: var(--w3a73-gold); font-size: 12px; font-weight: 700; }

/* ---------- Category chips ---------- */
.w3a73-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 12px 2px;
  scrollbar-width: none;
}
.w3a73-chips::-webkit-scrollbar { display: none; }
.w3a73-chip {
  flex: 0 0 auto;
  height: 32px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px;
  background: rgba(186,85,211,0.10);
  border: 1px solid var(--w3a73-line);
  color: var(--w3a73-text);
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.w3a73-chip:active { background: rgba(255,127,80,0.18); }

.w3a73-section-answer { margin: -2px 0 10px; font-size: 12.8px; line-height: 1.45; color: var(--w3a73-muted); }
.w3a73-help-layout { display: grid; gap: 12px; }
.w3a73-help-note { padding: 11px 12px; border-left: 3px solid var(--w3a73-coral); background: rgba(75,0,130,0.18); border-radius: 8px; color: #ded3ee; font-size: 13px; }
.w3a73-help-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.w3a73-help-list li { padding: 10px 11px; border: 1px solid var(--w3a73-line); border-radius: 10px; background: rgba(31,21,48,0.58); color: #d9cdF0; font-size: 13px; }
.w3a73-help-list li strong { color: var(--w3a73-gold); display: block; margin-bottom: 3px; }
.w3a73-faq { border-top: 1px solid var(--w3a73-line); }
.w3a73-faq details { border-bottom: 1px solid rgba(186,85,211,0.16); padding: 10px 0; }
.w3a73-faq summary { cursor: pointer; color: #fff; font-weight: 700; font-size: 13.5px; }
.w3a73-faq p { margin: 7px 0 0; }
.w3a73-mini-game { display: flex; gap: 9px; align-items: center; padding: 8px; border: 1px solid var(--w3a73-line); border-radius: 10px; background: rgba(31,21,48,0.55); }
.w3a73-mini-game img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; }
.w3a73-mini-game span { font-weight: 700; color: #fff; font-size: 13px; }

/* ---------- Game grid ---------- */
.w3a73-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 375px) {
  .w3a73-game-grid { grid-template-columns: repeat(5, 1fr); gap: 9px; }
}
.w3a73-game-card {
  background: linear-gradient(180deg, rgba(31,21,48,0.7), rgba(15,8,24,0.6));
  border: 1px solid var(--w3a73-line);
  border-radius: var(--w3a73-radius-sm);
  padding: 5px;
  cursor: pointer;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.3s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.w3a73-game-card.w3a73-inview { opacity: 1; transform: translateY(0); }
.w3a73-game-card:active {
  transform: translateY(-2px);
  border-color: var(--w3a73-coral);
  box-shadow: 0 8px 18px rgba(255,127,80,0.28);
}
.w3a73-game-thumb {
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: 8px; overflow: hidden;
  background: #0a0710;
}
.w3a73-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.w3a73-game-name {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.2;
  color: #f1e8ff;
  font-weight: 600;
  height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- Feature / promo blocks ---------- */
.w3a73-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.w3a73-feature-card {
  background: linear-gradient(160deg, rgba(75,0,130,0.45), rgba(12,12,12,0.4));
  border: 1px solid var(--w3a73-line);
  border-radius: var(--w3a73-radius);
  padding: 12px 12px 14px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s, transform 0.3s;
}
.w3a73-feature-card.w3a73-inview { opacity: 1; transform: translateY(0); }
.w3a73-feature-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--w3a73-coral), var(--w3a73-orchid));
  color: #fff; margin-bottom: 8px;
}
.w3a73-feature-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.w3a73-feature-card h3 { margin: 0 0 4px; font-size: 14px; color: #fff; }
.w3a73-feature-card p { margin: 0; font-size: 12.5px; color: var(--w3a73-muted); }

/* ---------- Promo tiles row ---------- */
.w3a73-promo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.w3a73-promo-tile {
  position: relative;
  border-radius: var(--w3a73-radius);
  overflow: hidden;
  border: 1px solid var(--w3a73-line);
  min-height: 92px;
  cursor: pointer;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s, transform 0.3s;
}
.w3a73-promo-tile.w3a73-inview { opacity: 1; transform: translateY(0); }
.w3a73-promo-tile img { width: 100%; height: 92px; object-fit: cover; }
.w3a73-promo-tile b {
  position: absolute; left: 10px; bottom: 8px; right: 10px;
  color: #fff; font-size: 13px; text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

/* ---------- SEO content / long form ---------- */
.w3a73-article {
  background: rgba(15,8,24,0.55);
  border: 1px solid var(--w3a73-line);
  border-radius: var(--w3a73-radius);
  padding: 14px 14px 16px;
  color: #e7dcf7;
}
.w3a73-article h2 {
  font-size: 15.5px; color: #fff; margin: 14px 0 6px;
  font-weight: 800;
}
.w3a73-article h2:first-child { margin-top: 0; }
.w3a73-article h3 { font-size: 13.5px; color: var(--w3a73-gold); margin: 10px 0 4px; }
.w3a73-article p { margin: 0 0 10px; font-size: 13.5px; color: #cfc1e6; }
.w3a73-article ol, .w3a73-article ul { margin: 0 0 10px; padding-left: 18px; }
.w3a73-article li { font-size: 13.5px; margin-bottom: 5px; color: #cfc1e6; }
.w3a73-article strong { color: #fff; }

/* ---------- Step list ---------- */
.w3a73-steps {
  display: flex; flex-direction: column; gap: 8px;
  list-style: none; padding: 0; margin: 0;
}
.w3a73-steps li {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px;
  background: rgba(75,0,130,0.20);
  border: 1px solid var(--w3a73-line);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px; color: #d9cdF0;
}
.w3a73-steps li b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--w3a73-coral), var(--w3a73-orchid));
  color: #fff; font-size: 13px;
}

/* ---------- Extended footer directory ---------- */
.w3a73-ext-footer {
  margin: 18px 12px 0;
  display: flex; flex-direction: column; gap: 14px;
}
.w3a73-ext-block {
  background: rgba(15,8,24,0.6);
  border: 1px solid var(--w3a73-line);
  border-radius: var(--w3a73-radius);
  padding: 12px 13px 14px;
}
.w3a73-ext-block h4 {
  margin: 0 0 8px; font-size: 13.5px; color: var(--w3a73-gold);
  letter-spacing: 0.4px; text-transform: uppercase;
}
.w3a73-ext-block p { margin: 0 0 8px; font-size: 12.8px; color: var(--w3a73-muted); }
.w3a73-link-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px;
  list-style: none; padding: 0; margin: 0;
}
.w3a73-link-list a {
  font-size: 12.5px; color: #ddcfff;
  padding: 4px 0; display: inline-block;
}
.w3a73-link-list a:active { color: var(--w3a73-coral); }

.w3a73-promo-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.w3a73-promo-actions .w3a73-btn { height: 38px; font-size: 12.5px; }

.w3a73-disclaimer {
  font-size: 11.5px; color: #8678a3; line-height: 1.55;
  padding: 10px 13px;
  border: 1px dashed rgba(186,85,211,0.22);
  border-radius: 10px;
  background: rgba(15,8,24,0.45);
}

/* ---------- Footer (compact, brand) ---------- */
.w3a73-footer {
  margin: 16px 12px 0;
  padding: 14px 12px;
  text-align: center;
  border-top: 1px solid var(--w3a73-line);
  color: var(--w3a73-muted);
  font-size: 12px;
}
.w3a73-footer .w3a73-footer-logo {
  width: 26px; height: 26px; border-radius: 6px; margin: 0 auto 6px;
  box-shadow: 0 0 0 1px rgba(255,217,168,0.4);
}
.w3a73-footer p { margin: 0 0 4px; }
.w3a73-footer small { color: #7d6e9c; }

/* ---------- Bottom action bar ---------- */
.w3a73-bottom-spacer { height: calc(var(--w3a73-bar-h) + 12px); }

.w3a73-bar {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: var(--w3a73-bar-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, rgba(15,8,24,0.97), rgba(8,4,14,0.98));
  border-top: 1px solid var(--w3a73-line);
  z-index: 70;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.w3a73-bar-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: #b3a3cf;
  font-size: 10.5px; font-weight: 700;
  text-decoration: none;
  background: transparent; border: 0;
  padding: 6px 2px;
  position: relative;
  transition: transform 0.18s ease, color 0.2s ease;
}
.w3a73-bar-item:active { transform: translateY(-2px); }
.w3a73-bar-item svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none; stroke-width: 1.8;
}
.w3a73-bar-item--active { color: var(--w3a73-coral); }
.w3a73-bar-item--active svg { fill: rgba(255,127,80,0.18); stroke: var(--w3a73-coral); }
.w3a73-bar-item--active::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--w3a73-coral), var(--w3a73-orchid));
}
.w3a73-bar-item--promo {
  color: var(--w3a73-gold);
}
.w3a73-bar-item--promo svg { stroke: var(--w3a73-gold); }

/* ---------- Utility ---------- */
.w3a73-container { padding: 0 12px; }
.w3a73-text-center { text-align: center; }
.w3a73-hidden { display: none !important; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .w3a73-hero-slide { transition: opacity 0.3s ease !important; }
}
