/* ============================================================
 * playtime app - mobile stylesheet
 * All custom classes / variables use the g0ad- prefix.
 * Palette: #2E4057 | #E6E6FA | #FF5722 | #DDA0DD
 * Canvas is tuned for 320-430px phones; wider screens keep
 * the mobile canvas centred. Desktop is intentionally limited.
 * ========================================================== */

:root {
  --g0ad-bg: #2E4057;
  --g0ad-bg-deep: #24344a;
  --g0ad-bg-soft: #35506e;
  --g0ad-card: #2c4159;
  --g0ad-card-2: #33506e;
  --g0ad-text: #E6E6FA;
  --g0ad-text-dim: #b8b9d6;
  --g0ad-accent: #FF5722;
  --g0ad-accent-2: #ff7a4d;
  --g0ad-plum: #DDA0DD;
  --g0ad-plum-2: #ecb6ec;
  --g0ad-line: rgba(230, 230, 250, 0.14);
  --g0ad-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  --g0ad-radius: 14px;
  --g0ad-radius-sm: 10px;
  --g0ad-header-h: 58px;
  --g0ad-nav-h: 66px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--g0ad-bg);
  color: var(--g0ad-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

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

a { color: var(--g0ad-plum-2); text-decoration: none; }
a:hover, a:focus { color: #ffffff; }

.g0ad-noscroll { overflow: hidden; }

/* Phone canvas frame --------------------------------------- */
.g0ad-canvas {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(1200px 400px at 50% -120px, rgba(221, 160, 221, 0.18), transparent 60%),
    linear-gradient(180deg, var(--g0ad-bg-deep) 0%, var(--g0ad-bg) 38%, var(--g0ad-bg) 100%);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
  padding-bottom: calc(var(--g0ad-nav-h) + 14px);
}

/* Header --------------------------------------------------- */
.g0ad-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--g0ad-header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(20, 30, 45, 0.96), rgba(46, 64, 87, 0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--g0ad-line);
}

.g0ad-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.g0ad-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--g0ad-bg-soft);
  border: 1px solid var(--g0ad-line);
  box-shadow: 0 0 0 2px rgba(221, 160, 221, 0.25);
}

.g0ad-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.g0ad-brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fff;
  text-transform: lowercase;
}

.g0ad-brand-tag {
  font-size: 10px;
  color: var(--g0ad-plum-2);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.g0ad-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.g0ad-btn {
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.g0ad-btn:active { transform: translateY(1px) scale(0.98); }

.g0ad-btn-ghost {
  background: rgba(230, 230, 250, 0.12);
  color: var(--g0ad-text);
  border: 1px solid var(--g0ad-line);
}

.g0ad-btn-accent {
  background: linear-gradient(135deg, var(--g0ad-accent), var(--g0ad-accent-2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
}

.g0ad-btn-plum {
  background: linear-gradient(135deg, var(--g0ad-plum), var(--g0ad-plum-2));
  color: #2a1c33;
  box-shadow: 0 4px 14px rgba(221, 160, 221, 0.35);
}

.g0ad-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(230, 230, 250, 0.10);
  border: 1px solid var(--g0ad-line);
  color: var(--g0ad-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* Section menu drawer ------------------------------------- */
.g0ad-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease;
  z-index: 70;
}
.g0ad-menu-backdrop.g0ad-menu-visible {
  opacity: 1;
  visibility: visible;
}

.g0ad-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 84%;
  max-width: 340px;
  background: linear-gradient(180deg, var(--g0ad-bg-deep), var(--g0ad-bg));
  z-index: 80;
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(.22,.61,.36,1);
  padding: 18px 16px calc(var(--g0ad-nav-h) + 24px);
  overflow-y: auto;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
}
.g0ad-menu-panel.g0ad-menu-open { transform: translateX(0); }

.g0ad-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.g0ad-menu-head h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--g0ad-plum-2);
}

.g0ad-menu-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(230, 230, 250, 0.10);
  color: var(--g0ad-text);
  border: 1px solid var(--g0ad-line);
  font-size: 18px;
  cursor: pointer;
}

.g0ad-menu-section {
  margin-bottom: 18px;
}

.g0ad-menu-section h4 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--g0ad-text-dim);
}

.g0ad-menu-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.g0ad-menu-section a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(230, 230, 250, 0.07);
  border: 1px solid var(--g0ad-line);
  color: var(--g0ad-text);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.g0ad-menu-section a:active { background: rgba(221, 160, 221, 0.18); }

.g0ad-menu-cta {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Hero carousel ------------------------------------------- */
.g0ad-hero {
  position: relative;
  margin: 12px;
  border-radius: var(--g0ad-radius);
  overflow: hidden;
  box-shadow: var(--g0ad-shadow);
}

.g0ad-slide-track {
  position: relative;
}

.g0ad-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.g0ad-slide.g0ad-slide-active { display: block; }

.g0ad-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.g0ad-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,30,45,0.10) 30%, rgba(20,30,45,0.78) 100%);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.g0ad-slide-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.g0ad-slide-sub {
  font-size: 12px;
  color: var(--g0ad-plum-2);
  margin: 0 0 8px;
}

.g0ad-slide-cta {
  align-self: flex-start;
  background: var(--g0ad-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
}

.g0ad-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}

.g0ad-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(230, 230, 250, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
}
.g0ad-dot.g0ad-dot-active {
  background: var(--g0ad-accent);
  width: 20px;
  border-radius: 6px;
}

/* Search strip ------------------------------------------- */
.g0ad-search-strip {
  margin: 4px 12px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.g0ad-search-input {
  flex: 1;
  background: rgba(230, 230, 250, 0.10);
  border: 1px solid var(--g0ad-line);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--g0ad-text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.g0ad-search-input::placeholder { color: var(--g0ad-text-dim); }
.g0ad-search-input:focus { border-color: var(--g0ad-plum); }

/* Quick category chips ----------------------------------- */
.g0ad-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 12px 12px;
  scrollbar-width: none;
}
.g0ad-chip-row::-webkit-scrollbar { display: none; }

.g0ad-chip {
  flex-shrink: 0;
  background: rgba(230, 230, 250, 0.10);
  border: 1px solid var(--g0ad-line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--g0ad-text);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.g0ad-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--g0ad-accent);
}

/* Section heading ---------------------------------------- */
.g0ad-section {
  margin: 18px 12px 8px;
}

.g0ad-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--g0ad-line);
}

.g0ad-section-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.g0ad-section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--g0ad-accent), var(--g0ad-plum));
}

.g0ad-section-sub {
  font-size: 11px;
  color: var(--g0ad-text-dim);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Game grid ---------------------------------------------- */
.g0ad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

@media (min-width: 360px) {
  .g0ad-grid { gap: 10px; }
}

@media (min-width: 395px) {
  .g0ad-grid { grid-template-columns: repeat(5, 1fr); }
}

.g0ad-game-tile {
  background: var(--g0ad-card);
  border: 1px solid var(--g0ad-line);
  border-radius: var(--g0ad-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.g0ad-game-tile:active {
  transform: translateY(2px);
  border-color: var(--g0ad-plum);
  box-shadow: 0 0 16px rgba(221, 160, 221, 0.35);
}

.g0ad-game-tile-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--g0ad-bg-deep);
}

.g0ad-game-tile-name {
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--g0ad-text);
  text-align: center;
  padding: 5px 4px 6px;
  font-weight: 600;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Editorial / content blocks ----------------------------- */
.g0ad-content {
  margin: 22px 12px 4px;
}

.g0ad-h1 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: 0.2px;
}

.g0ad-h1 span { color: var(--g0ad-accent); }

.g0ad-intro {
  font-size: 14px;
  color: var(--g0ad-text-dim);
  margin: 0 0 14px;
}

.g0ad-h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 22px 0 8px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.g0ad-h2::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 3px;
  background: var(--g0ad-plum);
}

.g0ad-p {
  font-size: 13.5px;
  color: var(--g0ad-text-dim);
  margin: 0 0 10px;
}

.g0ad-p a { color: var(--g0ad-accent-2); font-weight: 700; }

/* Card cluster ------------------------------------------- */
.g0ad-card-cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 6px;
}

.g0ad-info-card {
  background: linear-gradient(180deg, var(--g0ad-card), var(--g0ad-card-2));
  border: 1px solid var(--g0ad-line);
  border-radius: var(--g0ad-radius-sm);
  padding: 12px;
}

.g0ad-info-card h3 {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--g0ad-plum-2);
}

.g0ad-info-card p {
  margin: 0;
  font-size: 12px;
  color: var(--g0ad-text-dim);
  line-height: 1.5;
}

.g0ad-info-card .g0ad-num {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

/* Testimonials ------------------------------------------- */
.g0ad-testi {
  background: var(--g0ad-card);
  border: 1px solid var(--g0ad-line);
  border-left: 3px solid var(--g0ad-accent);
  border-radius: var(--g0ad-radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}

.g0ad-testi-quote {
  font-size: 13px;
  color: var(--g0ad-text);
  margin: 0 0 8px;
  font-style: italic;
}

.g0ad-testi-author {
  font-size: 11px;
  color: var(--g0ad-plum-2);
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* Winners row -------------------------------------------- */
.g0ad-winners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.g0ad-winner {
  background: rgba(221, 160, 221, 0.10);
  border: 1px solid var(--g0ad-line);
  border-radius: var(--g0ad-radius-sm);
  padding: 9px 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.g0ad-winner-name {
  font-size: 12px;
  color: var(--g0ad-text);
  font-weight: 700;
}

.g0ad-winner-game {
  font-size: 10.5px;
  color: var(--g0ad-text-dim);
}

.g0ad-winner-amount {
  font-size: 13px;
  font-weight: 800;
  color: var(--g0ad-accent-2);
  white-space: nowrap;
}

/* Steps list --------------------------------------------- */
.g0ad-steps {
  margin: 8px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.g0ad-steps li {
  counter-increment: step;
  position: relative;
  padding: 10px 10px 10px 42px;
  margin-bottom: 8px;
  background: var(--g0ad-card);
  border: 1px solid var(--g0ad-line);
  border-radius: var(--g0ad-radius-sm);
  font-size: 13px;
  color: var(--g0ad-text-dim);
}

.g0ad-steps li::before {
  content: counter(step);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--g0ad-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inline promo banner ------------------------------------ */
.g0ad-promo-banner {
  margin: 18px 12px;
  padding: 14px;
  border-radius: var(--g0ad-radius);
  background:
    linear-gradient(135deg, rgba(255, 87, 34, 0.18), rgba(221, 160, 221, 0.18)),
    var(--g0ad-card);
  border: 1px solid var(--g0ad-line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.g0ad-promo-banner-text {
  flex: 1;
  min-width: 0;
}

.g0ad-promo-banner-text h3 {
  margin: 0 0 3px;
  font-size: 15px;
  color: #fff;
}

.g0ad-promo-banner-text p {
  margin: 0;
  font-size: 12px;
  color: var(--g0ad-text-dim);
}

/* Expanded footer ---------------------------------------- */
.g0ad-extended {
  margin: 22px 12px 6px;
  padding: 16px;
  border-radius: var(--g0ad-radius);
  background: var(--g0ad-bg-deep);
  border: 1px solid var(--g0ad-line);
}

.g0ad-extended h2 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #fff;
}

.g0ad-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.g0ad-promo-tile {
  display: block;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(255, 87, 34, 0.14);
  border: 1px solid rgba(255, 87, 34, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.g0ad-promo-tile.plum {
  background: rgba(221, 160, 221, 0.14);
  border-color: rgba(221, 160, 221, 0.35);
}

.g0ad-promo-tile small {
  display: block;
  font-weight: 500;
  font-size: 10px;
  color: var(--g0ad-text-dim);
  margin-top: 2px;
}

.g0ad-brand-block {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--g0ad-line);
}

.g0ad-brand-block h3 {
  margin: 0 0 5px;
  font-size: 13px;
  color: var(--g0ad-plum-2);
}

.g0ad-brand-block p {
  margin: 0;
  font-size: 12px;
  color: var(--g0ad-text-dim);
  line-height: 1.55;
}

.g0ad-dir-title {
  font-size: 12px;
  color: var(--g0ad-text-dim);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.g0ad-directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-bottom: 14px;
}

.g0ad-directory a {
  font-size: 12px;
  color: var(--g0ad-text);
  padding: 4px 0;
  border-bottom: 1px dashed var(--g0ad-line);
}

.g0ad-directory a:hover { color: var(--g0ad-accent-2); }

.g0ad-disclaimer {
  font-size: 11px;
  color: var(--g0ad-text-dim);
  line-height: 1.55;
  padding-top: 10px;
  border-top: 1px solid var(--g0ad-line);
}

/* Copyright footer --------------------------------------- */
.g0ad-footer {
  text-align: center;
  padding: 18px 16px 8px;
  font-size: 11px;
  color: var(--g0ad-text-dim);
}

.g0ad-footer p { margin: 0 0 4px; }

/* Bottom segmented action bar ---------------------------- */
.g0ad-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  width: calc(100% - 20px);
  max-width: 410px;
  height: var(--g0ad-nav-h);
  background: linear-gradient(180deg, rgba(20, 30, 45, 0.96), rgba(36, 52, 74, 0.96));
  backdrop-filter: blur(10px);
  border: 1px solid var(--g0ad-line);
  border-radius: 18px;
  box-shadow: 0 -2px 28px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 65;
  padding: 6px 4px;
}

.g0ad-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--g0ad-text-dim);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.18s ease, background 0.18s ease;
}

.g0ad-nav-item:active { background: rgba(230, 230, 250, 0.08); }

.g0ad-nav-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.g0ad-nav-current {
  color: #fff;
}

.g0ad-nav-current::before {
  background: linear-gradient(90deg, var(--g0ad-accent), var(--g0ad-plum));
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.55);
}

.g0ad-nav-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.g0ad-nav-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.g0ad-nav-label { font-size: 9.5px; letter-spacing: 0.2px; }

/* Utility ------------------------------------------------- */
.g0ad-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.g0ad-empty-hint {
  display: none;
  text-align: center;
  padding: 14px;
  color: var(--g0ad-text-dim);
  font-size: 13px;
}
