/* ==========================================================================
   platime.cfd - palette-2281b9.css
   All custom classes and CSS variables use the "g81b-" prefix.
   Mobile-first canvas (320-430px). Center-raised bottom nav, containerized
   icon tiles, edge-aligned functional header. Dark sea-green palette.
   Palette: #333333 bg | #8FBC8F light | #2E8B57 mid | #26A69A teal | #20B2AA
   ========================================================================== */

:root {
  --g81b-bg: #333333;
  --g81b-bg-2: #2b2b2b;
  --g81b-bg-3: #3f4040;
  --g81b-panel: #3a3a3a;
  --g81b-text: #8FBC8F;
  --g81b-text-strong: #f3fff1;
  --g81b-mid: #2E8B57;
  --g81b-teal: #26A69A;
  --g81b-sea: #20B2AA;
  --g81b-gold: #f0c674;
  --g81b-amber: #ffb830;
  --g81b-muted: #9db6a0;
  --g81b-border: rgba(143, 188, 143, 0.18);
  --g81b-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  --g81b-radius: 14px;
  --g81b-header-h: 60px;
  --g81b-nav-h: 72px;
}

* { box-sizing: border-box; }

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

body.g81b-no-scroll { overflow: hidden; }

a { color: var(--g81b-sea); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--g81b-amber); outline-offset: 2px; }

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

h1, h2, h3, h4 { color: var(--g81b-text-strong); margin: 0 0 10px; line-height: 1.3; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }

/* Mobile canvas wrapper keeps the 320-430px composition on wider screens. */
.g81b-canvas {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--g81b-bg);
  min-height: 100vh;
  position: relative;
}

/* ============================== Header ================================= */
.g81b-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--g81b-header-h);
  background: linear-gradient(180deg, #383838 0%, #2f2f2f 100%);
  border-bottom: 1px solid var(--g81b-border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
}

.g81b-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}
.g81b-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--g81b-bg-3);
  border: 1px solid var(--g81b-border);
}
.g81b-brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.4px;
  color: var(--g81b-text-strong);
  white-space: nowrap;
}
.g81b-brand-name span { color: var(--g81b-sea); }

.g81b-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.g81b-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, filter .12s ease;
  color: #fff;
}
.g81b-btn:active { transform: scale(0.95); }
.g81b-btn-login {
  background: transparent;
  border: 1px solid var(--g81b-teal);
  color: var(--g81b-text);
}
.g81b-btn-register {
  background: linear-gradient(135deg, var(--g81b-mid) 0%, var(--g81b-sea) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(32, 178, 170, 0.3);
}

.g81b-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--g81b-border);
  background: var(--g81b-bg-3);
  color: var(--g81b-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.g81b-icon-btn svg { width: 20px; height: 20px; }

/* ============================ Side Menu =============================== */
.g81b-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 70;
}
.g81b-menu-backdrop.g81b-backdrop-on { opacity: 1; pointer-events: auto; }

.g81b-side-menu {
  position: fixed;
  top: 0;
  right: -86%;
  width: 84%;
  max-width: 360px;
  height: 100%;
  background: linear-gradient(180deg, #363636 0%, #2c2c2c 100%);
  z-index: 80;
  transition: right .28s cubic-bezier(.22,.61,.36,1);
  overflow-y: auto;
  padding: 16px 14px calc(var(--g81b-nav-h) + 24px);
}
.g81b-side-menu.g81b-menu-open { right: 0; }

.g81b-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.g81b-menu-head img { width: 36px; height: 36px; border-radius: 9px; }
.g81b-menu-close {
  background: none; border: none; color: var(--g81b-text);
  font-size: 24px; cursor: pointer; padding: 4px 8px;
}
.g81b-menu-cta {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.g81b-menu-cta .g81b-btn { flex: 1; }

.g81b-menu-section { margin-bottom: 16px; }
.g81b-menu-title {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--g81b-muted);
  margin: 0 0 6px;
  padding: 0 4px;
}
.g81b-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 10px;
  color: var(--g81b-text);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}
.g81b-menu-link:active { background: var(--g81b-bg-3); }
.g81b-menu-link .g81b-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--g81b-sea);
}
.g81b-menu-link.g81b-menu-promo {
  background: linear-gradient(135deg, rgba(46,139,87,.35), rgba(32,178,170,.18));
  border-color: var(--g81b-border);
}

/* ============================== Hero ================================== */
.g81b-hero {
  position: relative;
  margin: 10px 10px 0;
  border-radius: var(--g81b-radius);
  overflow: hidden;
  background: var(--g81b-bg-2);
  box-shadow: var(--g81b-shadow);
}
.g81b-hero-track { position: relative; height: 200px; }
.g81b-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: pointer;
}
.g81b-hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.g81b-hero-slide.g81b-slide-active { opacity: 1; }
.g81b-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(51,51,51,.15) 0%, rgba(51,51,51,.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  pointer-events: none;
}
.g81b-hero-eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--g81b-amber);
  margin-bottom: 4px;
}
.g81b-hero-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--g81b-text-strong);
  margin: 0 0 4px;
}
.g81b-hero-sub {
  font-size: 12px;
  color: var(--g81b-text);
  margin: 0 0 8px;
}
.g81b-hero-cta {
  pointer-events: auto;
  align-self: flex-start;
  background: linear-gradient(135deg, var(--g81b-amber), var(--g81b-gold));
  color: #2b2b2b;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.g81b-hero-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.g81b-hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(143,188,143,.4);
  border: none; cursor: pointer; padding: 0;
}
.g81b-hero-dot.g81b-dot-active { background: var(--g81b-amber); }

.g81b-hero-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
  transform: translateY(-50%);
  pointer-events: none;
}
.g81b-hero-arrow {
  pointer-events: auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}

/* =========================== Quick Actions =========================== */
.g81b-quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 10px 4px;
}
.g81b-quick {
  background: linear-gradient(160deg, var(--g81b-panel), var(--g81b-bg-2));
  border: 1px solid var(--g81b-border);
  border-radius: 12px;
  padding: 10px 4px 8px;
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease;
}
.g81b-quick:active { transform: scale(0.95); }
.g81b-quick-ico {
  width: 30px; height: 30px;
  margin: 0 auto 4px;
  border-radius: 9px;
  background: rgba(32,178,170,.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--g81b-sea);
}
.g81b-quick-ico svg { width: 18px; height: 18px; }
.g81b-quick-label {
  font-size: 11px;
  color: var(--g81b-text);
  font-weight: 600;
}

/* ========================= Category Chips =========================== */
.g81b-chips {
  display: flex;
  gap: 8px;
  padding: 8px 10px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.g81b-chips::-webkit-scrollbar { display: none; }
.g81b-chip {
  flex: 0 0 auto;
  background: var(--g81b-panel);
  border: 1px solid var(--g81b-border);
  color: var(--g81b-text);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.g81b-chip:active { background: var(--g81b-mid); color: #fff; }

/* ========================= Section Title =========================== */
.g81b-section {
  padding: 14px 10px 4px;
}
.g81b-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.g81b-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--g81b-text-strong);
  display: flex; align-items: center; gap: 8px;
}
.g81b-section-title::before {
  content: "";
  width: 4px; height: 18px;
  background: linear-gradient(180deg, var(--g81b-amber), var(--g81b-mid));
  border-radius: 2px;
}
.g81b-section-link {
  font-size: 12px;
  color: var(--g81b-sea);
  font-weight: 700;
}

/* =========================== Game Grid ============================= */
.g81b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.g81b-game {
  cursor: pointer;
  background: var(--g81b-panel);
  border: 1px solid var(--g81b-border);
  border-radius: 12px;
  padding: 5px;
  transition: transform .12s ease, border-color .12s ease;
  overflow: hidden;
}
.g81b-game:active {
  transform: scale(0.94);
  border-color: var(--g81b-amber);
}
.g81b-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  background: var(--g81b-bg-3);
}
.g81b-game-name {
  font-size: 11px;
  color: var(--g81b-text);
  margin-top: 5px;
  text-align: center;
  line-height: 1.25;
  height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 600;
}
.g81b-game-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 6px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.g81b-badge-hot { background: rgba(255, 88, 88, .18); color: #ff7a7a; }
.g81b-badge-new { background: rgba(32,178,170,.2); color: var(--g81b-sea); }
.g81b-badge-top { background: rgba(240,198,116,.18); color: var(--g81b-amber); }

/* ============================ CTA Banner =========================== */
.g81b-cta {
  margin: 16px 10px 0;
  padding: 16px;
  border-radius: var(--g81b-radius);
  background: linear-gradient(135deg, var(--g81b-mid) 0%, var(--g81b-teal) 60%, var(--g81b-sea) 100%);
  color: #fff;
  text-align: center;
  box-shadow: var(--g81b-shadow);
}
.g81b-cta h2 { color: #fff; font-size: 19px; margin-bottom: 4px; }
.g81b-cta p { color: rgba(255,255,255,.92); font-size: 13px; margin-bottom: 12px; }
.g81b-cta-primary {
  background: var(--g81b-amber);
  color: #2b2b2b;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.g81b-cta-pulse { animation: g81b-pulse 1.2s ease; }
@keyframes g81b-pulse {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.07); box-shadow: 0 0 0 12px rgba(255,184,48,0); }
}

/* ====================== Info / SEO Content ========================= */
.g81b-content {
  padding: 16px 12px 4px;
}
.g81b-content h2 { font-size: 18px; margin-top: 14px; }
.g81b-content h3 { font-size: 15px; margin-top: 12px; color: var(--g81b-sea); }
.g81b-content p { font-size: 14px; color: var(--g81b-text); }
.g81b-content ul { padding-left: 18px; margin: 0 0 12px; }
.g81b-content li { margin-bottom: 6px; font-size: 14px; color: var(--g81b-text); }
.g81b-content a { color: var(--g81b-amber); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.g81b-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 10px 0;
}
.g81b-info-card {
  background: var(--g81b-panel);
  border: 1px solid var(--g81b-border);
  border-radius: 12px;
  padding: 12px;
}
.g81b-info-card h3 { margin: 0 0 6px; font-size: 14px; color: var(--g81b-text-strong); }
.g81b-info-card p { margin: 0; font-size: 12.5px; color: var(--g81b-muted); }

/* ===================== Steps / Quick List ========================= */
.g81b-steps {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  counter-reset: g81b-step;
}
.g81b-steps li {
  counter-increment: g81b-step;
  position: relative;
  padding: 9px 10px 9px 38px;
  margin-bottom: 6px;
  background: var(--g81b-panel);
  border: 1px solid var(--g81b-border);
  border-radius: 10px;
  font-size: 13px;
}
.g81b-steps li::before {
  content: counter(g81b-step);
  position: absolute;
  left: 9px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--g81b-mid);
  color: #fff;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ===================== Extended Footer ============================= */
.g81b-ext-footer {
  margin: 18px 10px 8px;
  padding: 16px 14px;
  background: linear-gradient(180deg, #383838 0%, #2c2c2c 100%);
  border: 1px solid var(--g81b-border);
  border-radius: 16px;
}
.g81b-ext-footer h2 {
  font-size: 16px;
  color: var(--g81b-text-strong);
  margin-bottom: 6px;
}
.g81b-ext-footer p {
  font-size: 12.5px;
  color: var(--g81b-muted);
  margin-bottom: 12px;
}
.g81b-promo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.g81b-promo-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(46,139,87,.3), rgba(32,178,170,.12));
  border: 1px solid var(--g81b-border);
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
}
.g81b-promo-tile:active { transform: scale(.97); }
.g81b-promo-tile svg { width: 18px; height: 18px; color: var(--g81b-amber); flex: 0 0 auto; }
.g81b-promo-tile b { font-size: 12.5px; color: var(--g81b-text-strong); display: block; }
.g81b-promo-tile small { font-size: 11px; color: var(--g81b-muted); }

.g81b-directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.g81b-directory a {
  font-size: 12px;
  padding: 7px 8px;
  background: var(--g81b-panel);
  border: 1px solid var(--g81b-border);
  border-radius: 8px;
  color: var(--g81b-text);
  text-align: center;
}
.g81b-disclaimer {
  font-size: 11px;
  color: var(--g81b-muted);
  padding: 10px;
  background: rgba(0,0,0,.18);
  border-radius: 8px;
  line-height: 1.5;
}

/* ============================== Footer ============================= */
.g81b-footer {
  padding: 14px 14px calc(var(--g81b-nav-h) + 18px);
  text-align: center;
  font-size: 11.5px;
  color: var(--g81b-muted);
  border-top: 1px solid var(--g81b-border);
  margin-top: 10px;
}
.g81b-footer b { color: var(--g81b-text); }

/* ====================== Bottom Navigation ========================= */
.g81b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--g81b-nav-h);
  background: linear-gradient(180deg, #353535 0%, #292929 100%);
  border-top: 1px solid var(--g81b-border);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 6px 10px;
  z-index: 50;
  box-shadow: 0 -4px 18px rgba(0,0,0,.35);
}
.g81b-nav-tile {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 2px 2px;
  color: var(--g81b-muted);
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}
.g81b-nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--g81b-bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  transition: transform .15s ease, background .15s ease;
  border: 1px solid transparent;
}
.g81b-nav-icon svg { width: 19px; height: 19px; color: var(--g81b-muted); }
.g81b-nav-label {
  font-size: 10px;
  color: transparent;
  height: 0;
  overflow: hidden;
  transition: color .15s ease, height .15s ease;
  font-weight: 700;
}
.g81b-nav-tile.g81b-tile-hover .g81b-nav-label,
.g81b-nav-tile.g81b-active .g81b-nav-label {
  color: var(--g81b-text-strong);
  height: 13px;
}
.g81b-nav-tile.g81b-active .g81b-nav-icon {
  background: linear-gradient(135deg, var(--g81b-mid), var(--g81b-sea));
  transform: translateY(-6px);
  border-color: var(--g81b-amber);
  box-shadow: 0 6px 12px rgba(32,178,170,.4);
}
.g81b-nav-tile.g81b-active .g81b-nav-icon svg { color: #fff; }
.g81b-nav-tile.g81b-nav-promo .g81b-nav-icon {
  background: linear-gradient(135deg, var(--g81b-amber), var(--g81b-gold));
}
.g81b-nav-tile.g81b-nav-promo .g81b-nav-icon svg { color: #2b2b2b; }
.g81b-nav-tile.g81b-nav-promo.g81b-active .g81b-nav-icon {
  background: linear-gradient(135deg, var(--g81b-amber), var(--g81b-gold));
}

/* Desktop: keep mobile canvas, hide nothing; layout stays narrow */
@media (min-width: 431px) {
  body { background: #1f1f1f; }
}

/* High-DPI tweaks */
@media (max-width: 360px) {
  .g81b-game-grid { gap: 6px; }
  .g81b-game-name { font-size: 10.5px; }
  .g81b-brand-name { font-size: 15px; }
}
