/*!
 * ph365 apk - shell adaptive stylesheet
 * Site: ph365-apk.sbs
 * Canvas: 320-430px mobile-first, centered on wider screens.
 * Palette: #FFDFBA peach text | #F08080 coral accent | #0A0A0A base
 *          | #228B22 forest green | #98FB98 pale mint highlight.
 * All custom classes and CSS variables use the view49e27 prefix.
 * Comments in English only.
 */

/* ----------------------------------------------------------------- *
 * Tokens
 * ----------------------------------------------------------------- */
:root {
  --view49e27-bg: #0A0A0A;
  --view49e27-bg-soft: #100f0c;
  --view49e27-surface: #181510;
  --view49e27-surface-2: #211c14;
  --view49e27-text: #FFDFBA;
  --view49e27-text-muted: #b9a987;
  --view49e27-text-dim: #897d60;
  --view49e27-coral: #F08080;
  --view49e27-coral-deep: #d96a6a;
  --view49e27-green: #228B22;
  --view49e27-green-bright: #2faa2f;
  --view49e27-mint: #98FB98;
  --view49e27-gold: #f0c987;
  --view49e27-sky: #8ecdf5;
  --view49e27-violet: #d9a6e6;
  --view49e27-border: rgba(255, 223, 186, 0.14);
  --view49e27-border-strong: rgba(255, 223, 186, 0.28);
  --view49e27-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  --view49e27-radius: 14px;
  --view49e27-radius-sm: 10px;
  --view49e27-header-h: 58px;
  --view49e27-bottom-h: 66px;
}

/* ----------------------------------------------------------------- *
 * Base reset
 * ----------------------------------------------------------------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #050505;
  color: var(--view49e27-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;
}

body { overflow-x: hidden; }

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

a { color: var(--view49e27-mint); text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--view49e27-mint);
  outline-offset: 2px;
}

button { font-family: inherit; }

/* Centered mobile canvas kept on wider screens */
.view49e27-canvas {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(125% 55% at 50% -8%, rgba(240, 128, 128, 0.12), transparent 60%),
    radial-gradient(125% 45% at 50% 112%, rgba(34, 139, 34, 0.12), transparent 60%),
    var(--view49e27-bg);
  box-shadow: var(--view49e27-shadow);
  overflow-x: hidden;
}

/* Skip link for keyboard users */
.view49e27-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--view49e27-green-bright);
  color: #fff;
  padding: 9px 14px;
  z-index: 200;
  border-radius: 0 0 8px 0;
  font-size: 13px;
  font-weight: 700;
}
.view49e27-skip:focus { left: 0; }

/* ----------------------------------------------------------------- *
 * Header (minimal title action band)
 * ----------------------------------------------------------------- */
.view49e27-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--view49e27-header-h);
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(24, 21, 16, 0.98), rgba(10, 10, 10, 0.92));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--view49e27-border);
}

.view49e27-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: var(--view49e27-text);
}
.view49e27-brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--view49e27-border-strong);
  background: radial-gradient(circle at 30% 30%, rgba(240, 201, 135, 0.25), rgba(34, 139, 34, 0.15));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.view49e27-brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.view49e27-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.view49e27-brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--view49e27-text);
}
.view49e27-brand-tag {
  font-size: 10px;
  color: var(--view49e27-mint);
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.view49e27-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.view49e27-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease, filter 0.25s ease;
  white-space: nowrap;
}
.view49e27-btn:active { transform: scale(0.96); }
.view49e27-btn--login {
  background: transparent;
  color: var(--view49e27-coral);
  border-color: var(--view49e27-coral);
}
.view49e27-btn--login:hover, .view49e27-btn--login:focus-visible {
  background: rgba(240, 128, 128, 0.12);
}
.view49e27-btn--register {
  background: linear-gradient(135deg, var(--view49e27-green-bright), var(--view49e27-green));
  color: #fff;
  box-shadow: 0 4px 14px rgba(34, 139, 34, 0.35);
}
.view49e27-btn--register:hover, .view49e27-btn--register:focus-visible {
  filter: brightness(1.08);
}
.view49e27-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--view49e27-border);
  background: var(--view49e27-surface);
  color: var(--view49e27-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.22s ease, color 0.22s ease;
}
.view49e27-menu-btn:hover, .view49e27-menu-btn:focus-visible {
  border-color: var(--view49e27-coral);
  color: var(--view49e27-coral);
}

/* ----------------------------------------------------------------- *
 * Expandable navigation panel
 * ----------------------------------------------------------------- */
.view49e27-menu {
  position: absolute;
  top: var(--view49e27-header-h);
  left: 0;
  right: 0;
  z-index: 70;
  background: linear-gradient(180deg, rgba(24, 21, 16, 0.99), rgba(14, 13, 9, 0.99));
  border-bottom: 1px solid var(--view49e27-border);
  padding: 14px 14px 18px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.32s ease, opacity 0.26s ease, transform 0.26s ease;
}
.view49e27-menu--open {
  max-height: 620px;
  opacity: 1;
  transform: translateY(0);
  overflow-y: auto;
}
.view49e27-menu-group { margin-bottom: 12px; }
.view49e27-menu-group:last-child { margin-bottom: 0; }
.view49e27-menu-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--view49e27-coral);
  margin: 4px 0 8px;
}
.view49e27-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.view49e27-menu-link {
  display: block;
  padding: 9px 11px;
  background: var(--view49e27-surface-2);
  border: 1px solid var(--view49e27-border);
  border-radius: 8px;
  color: var(--view49e27-text);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.view49e27-menu-link:hover, .view49e27-menu-link:focus-visible {
  background: rgba(34, 139, 34, 0.18);
  border-color: var(--view49e27-green-bright);
  color: var(--view49e27-mint);
}

/* ----------------------------------------------------------------- *
 * Layout containers
 * ----------------------------------------------------------------- */
.view49e27-main {
  padding: 0 0 calc(var(--view49e27-bottom-h) + 24px);
}
.view49e27-section { padding: 16px 14px 4px; }
.view49e27-section + .view49e27-section { padding-top: 8px; }

/* ----------------------------------------------------------------- *
 * Page heading
 * ----------------------------------------------------------------- */
.view49e27-pagehead { padding: 14px 14px 2px; }
.view49e27-h1 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--view49e27-text);
}
.view49e27-lead {
  font-size: 13.5px;
  color: var(--view49e27-text-muted);
  margin: 0;
}

/* ----------------------------------------------------------------- *
 * Section heading
 * ----------------------------------------------------------------- */
.view49e27-sec-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
}
.view49e27-sec-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(240, 128, 128, 0.25), rgba(34, 139, 34, 0.2));
  border: 1px solid var(--view49e27-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--view49e27-coral);
  flex-shrink: 0;
}
.view49e27-sec-icon svg { width: 18px; height: 18px; }
.view49e27-sec-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  color: var(--view49e27-text);
  line-height: 1.25;
}
.view49e27-sec-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--view49e27-mint);
  font-weight: 700;
  background: rgba(152, 251, 152, 0.08);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(152, 251, 152, 0.22);
  white-space: nowrap;
}

/* ----------------------------------------------------------------- *
 * Promo image carousel
 * ----------------------------------------------------------------- */
.view49e27-hero { padding: 12px 14px 4px; }
.view49e27-carousel {
  position: relative;
  border-radius: var(--view49e27-radius);
  overflow: hidden;
  border: 1px solid var(--view49e27-border);
  background: #0c0c0c;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.view49e27-carousel-viewport { overflow: hidden; }
.view49e27-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}
.view49e27-carousel-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0;
  background: #0c0c0c;
  display: block;
}
.view49e27-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.view49e27-carousel-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 14px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 8%, rgba(0, 0, 0, 0) 82%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.view49e27-carousel-sub {
  font-size: 11px;
  color: var(--view49e27-mint);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.view49e27-carousel-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  margin: 0;
  line-height: 1.2;
}
.view49e27-carousel-line {
  font-size: 12px;
  color: var(--view49e27-text);
  margin: 0;
}
.view49e27-carousel-dots {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.view49e27-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.view49e27-carousel-dot--active {
  background: var(--view49e27-mint);
  width: 18px;
  border-radius: 4px;
}

/* ----------------------------------------------------------------- *
 * Game grid
 * ----------------------------------------------------------------- */
.view49e27-game-block { margin-bottom: 6px; }
.view49e27-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.view49e27-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--view49e27-surface);
  border: 1px solid var(--view49e27-border);
  border-radius: 10px;
  padding: 6px 4px 7px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
  text-align: center;
  overflow: hidden;
  min-height: 44px;
}
.view49e27-game:hover, .view49e27-game:focus-visible {
  transform: translateY(-2px);
  border-color: var(--view49e27-coral);
  background: var(--view49e27-surface-2);
}
.view49e27-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: #0c0c0c;
  border-radius: 7px;
  margin-bottom: 5px;
}
.view49e27-game-name {
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--view49e27-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 25px;
  word-break: break-word;
}

/* Category tag chips */
.view49e27-cat-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.view49e27-cat-tag--hot { background: rgba(240, 128, 128, 0.15); color: var(--view49e27-coral); border: 1px solid rgba(240, 128, 128, 0.3); }
.view49e27-cat-tag--live { background: rgba(34, 139, 34, 0.15); color: var(--view49e27-mint); border: 1px solid rgba(34, 139, 34, 0.3); }
.view49e27-cat-tag--slot { background: rgba(240, 201, 135, 0.15); color: var(--view49e27-gold); border: 1px solid rgba(240, 201, 135, 0.3); }
.view49e27-cat-tag--fishing { background: rgba(142, 205, 245, 0.12); color: var(--view49e27-sky); border: 1px solid rgba(142, 205, 245, 0.25); }
.view49e27-cat-tag--cards { background: rgba(217, 166, 230, 0.12); color: var(--view49e27-violet); border: 1px solid rgba(217, 166, 230, 0.25); }

.view49e27-cat-note {
  font-size: 12px;
  color: var(--view49e27-text-muted);
  margin: 0 0 10px;
  line-height: 1.5;
}

/* ----------------------------------------------------------------- *
 * Content modules
 * ----------------------------------------------------------------- */
.view49e27-module {
  background: linear-gradient(180deg, var(--view49e27-surface), var(--view49e27-bg-soft));
  border: 1px solid var(--view49e27-border);
  border-radius: var(--view49e27-radius);
  padding: 14px;
  margin-bottom: 12px;
}
.view49e27-module p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--view49e27-text-muted);
}
.view49e27-module p:last-child { margin-bottom: 0; }
.view49e27-module h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--view49e27-text);
  margin: 14px 0 6px;
}
.view49e27-module h3:first-child { margin-top: 0; }
.view49e27-module ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.view49e27-module ul li {
  font-size: 12.5px;
  color: var(--view49e27-text-muted);
  margin-bottom: 5px;
  line-height: 1.5;
}
.view49e27-module ul li:last-child { margin-bottom: 0; }

/* Two-column compact modules */
.view49e27-module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.view49e27-mini {
  background: var(--view49e27-surface-2);
  border: 1px solid var(--view49e27-border);
  border-radius: 10px;
  padding: 10px;
}
.view49e27-mini-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--view49e27-mint);
  display: block;
  line-height: 1.1;
}
.view49e27-mini-label {
  font-size: 11px;
  color: var(--view49e27-text-muted);
  margin-top: 3px;
  display: block;
}

/* Latest winners list */
.view49e27-winners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.view49e27-winner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--view49e27-surface-2);
  border: 1px solid var(--view49e27-border);
  border-radius: 10px;
  padding: 8px 10px;
}
.view49e27-winner-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--view49e27-coral), var(--view49e27-green));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.view49e27-winner-meta { flex: 1; min-width: 0; }
.view49e27-winner-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--view49e27-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.view49e27-winner-game { font-size: 11px; color: var(--view49e27-text-dim); }
.view49e27-winner-amount {
  font-size: 13px;
  font-weight: 800;
  color: var(--view49e27-mint);
  white-space: nowrap;
}

/* Features comparison list */
.view49e27-feat-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.view49e27-feat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--view49e27-surface-2);
  border: 1px solid var(--view49e27-border);
  border-radius: 10px;
  padding: 9px 11px;
}
.view49e27-feat-key {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(240, 128, 128, 0.15);
  color: var(--view49e27-coral);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.view49e27-feat-body { min-width: 0; }
.view49e27-feat-body h4 {
  margin: 0 0 2px;
  font-size: 13px;
  color: var(--view49e27-text);
}
.view49e27-feat-body p {
  margin: 0;
  font-size: 11.5px;
  color: var(--view49e27-text-muted);
}

/* Steps list */
.view49e27-steps {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.view49e27-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--view49e27-surface-2);
  border: 1px solid var(--view49e27-border);
  border-radius: 10px;
  padding: 9px 11px;
}
.view49e27-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--view49e27-green-bright);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.view49e27-step-body { font-size: 12.5px; color: var(--view49e27-text-muted); }
.view49e27-step-body strong { color: var(--view49e27-text); }

/* Promo CTA strip inside modules */
.view49e27-cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.view49e27-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.15s ease;
}
.view49e27-cta:active { transform: scale(0.96); }
.view49e27-cta--green {
  background: linear-gradient(135deg, var(--view49e27-green-bright), var(--view49e27-green));
  color: #fff;
}
.view49e27-cta--coral {
  background: linear-gradient(135deg, var(--view49e27-coral), var(--view49e27-coral-deep));
  color: #fff;
}
.view49e27-cta--ghost {
  background: transparent;
  color: var(--view49e27-mint);
  border-color: rgba(152, 251, 152, 0.4);
}
.view49e27-cta--ghost:hover { background: rgba(152, 251, 152, 0.1); }

/* Inline promo text link */
.view49e27-promo-link {
  color: var(--view49e27-coral);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed rgba(240, 128, 128, 0.5);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}
.view49e27-promo-link:hover, .view49e27-promo-link:focus-visible {
  color: var(--view49e27-mint);
  border-color: var(--view49e27-mint);
}

.view49e27-kw { color: var(--view49e27-mint); font-weight: 700; }

/* ----------------------------------------------------------------- *
 * Extended footer (homepage only)
 * ----------------------------------------------------------------- */
.view49e27-extfoot {
  margin: 16px 14px 14px;
  background: linear-gradient(180deg, var(--view49e27-surface), var(--view49e27-bg-soft));
  border: 1px solid var(--view49e27-border);
  border-radius: var(--view49e27-radius);
  padding: 14px;
}
.view49e27-extfoot h3 {
  font-size: 12px;
  font-weight: 800;
  color: var(--view49e27-coral);
  margin: 16px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.view49e27-extfoot h3:first-child { margin-top: 0; }
.view49e27-extfoot p {
  font-size: 12px;
  color: var(--view49e27-text-muted);
  margin: 0 0 8px;
  line-height: 1.55;
}

/* Horizontal promo shortcuts */
.view49e27-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 7px;
}
.view49e27-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 4px;
  background: var(--view49e27-surface-2);
  border: 1px solid var(--view49e27-border);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.15s ease;
  min-height: 44px;
}
.view49e27-shortcut:hover, .view49e27-shortcut:focus-visible {
  border-color: var(--view49e27-green-bright);
  background: rgba(34, 139, 34, 0.12);
  transform: translateY(-1px);
}
.view49e27-shortcut:active { transform: scale(0.96); }
.view49e27-shortcut svg {
  width: 20px;
  height: 20px;
  color: var(--view49e27-mint);
}
.view49e27-shortcut-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--view49e27-text);
  line-height: 1.15;
}

/* Page directory grid */
.view49e27-directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.view49e27-directory a {
  font-size: 11.5px;
  color: var(--view49e27-text-muted);
  padding: 7px 9px;
  background: var(--view49e27-surface-2);
  border: 1px solid var(--view49e27-border);
  border-radius: 8px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  line-height: 1.3;
}
.view49e27-directory a:hover, .view49e27-directory a:focus-visible {
  color: var(--view49e27-mint);
  border-color: var(--view49e27-green-bright);
  background: rgba(34, 139, 34, 0.1);
}

.view49e27-disclaimer {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(240, 128, 128, 0.06);
  border: 1px solid rgba(240, 128, 128, 0.18);
  border-radius: 8px;
  font-size: 10.5px;
  color: var(--view49e27-text-dim);
  line-height: 1.5;
}

/* ----------------------------------------------------------------- *
 * Common footer
 * ----------------------------------------------------------------- */
.view49e27-footer {
  padding: 14px 14px calc(var(--view49e27-bottom-h) + 14px);
  text-align: center;
  border-top: 1px solid var(--view49e27-border);
  background: var(--view49e27-bg-soft);
}
.view49e27-footer p {
  font-size: 11px;
  color: var(--view49e27-text-dim);
  margin: 0;
  line-height: 1.6;
}
.view49e27-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin-bottom: 8px;
}
.view49e27-footer-nav a {
  font-size: 11px;
  color: var(--view49e27-text-muted);
}
.view49e27-footer-nav a:hover { color: var(--view49e27-mint); }

/* ----------------------------------------------------------------- *
 * Bottom navigation (compact icon rack)
 * ----------------------------------------------------------------- */
.view49e27-bottom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, rgba(16, 15, 12, 0.97), rgba(7, 7, 7, 0.99));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--view49e27-border);
  padding: 6px 4px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}
.view49e27-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  color: var(--view49e27-text-dim);
  background: transparent;
  border: none;
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.22s ease;
  min-height: 52px;
  text-decoration: none;
}
.view49e27-nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease, color 0.2s ease;
  position: relative;
  z-index: 1;
}
.view49e27-nav-label { position: relative; z-index: 1; }
.view49e27-nav-item:hover { color: var(--view49e27-text); }
.view49e27-nav-item:hover svg { transform: translateY(-1px); }

/* Active state: filled pill behind icon + emphasized label */
.view49e27-nav-item--active::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 28px;
  border-radius: 14px;
  background: rgba(34, 139, 34, 0.22);
  border: 1px solid rgba(152, 251, 152, 0.3);
}
.view49e27-nav-item--active { color: var(--view49e27-mint); }
.view49e27-nav-item--active svg { color: var(--view49e27-green-bright); }
.view49e27-nav-item--active .view49e27-nav-label { font-weight: 800; }

/* Promo nav items use coral accent */
.view49e27-nav-item--promo { color: var(--view49e27-coral); }
.view49e27-nav-item--promo:hover { color: var(--view49e27-coral); }
.view49e27-nav-item--promo svg { color: var(--view49e27-coral); }

/* ----------------------------------------------------------------- *
 * Responsive tweaks inside the mobile canvas
 * ----------------------------------------------------------------- */
@media (min-width: 360px) {
  .view49e27-game-name { font-size: 11px; }
  .view49e27-grid { gap: 9px; }
}
@media (min-width: 410px) {
  .view49e27-grid { grid-template-columns: repeat(5, 1fr); }
  .view49e27-directory { grid-template-columns: 1fr 1fr 1fr; }
}

/* Help-page reading patterns: compact, outlined and mobile-first. */
.view49e27-help-main { padding: 0 14px calc(var(--view49e27-bottom-h) + 26px); }
.view49e27-help-intro { padding: 16px 0 12px; }
.view49e27-help-intro h1 { margin: 0 0 7px; font-size: 23px; line-height: 1.2; letter-spacing: -0.3px; }
.view49e27-help-intro p { margin: 0; color: var(--view49e27-text-muted); font-size: 13px; }
.view49e27-answer { border-left: 3px solid var(--view49e27-coral); padding: 10px 12px; margin: 0 0 14px; background: rgba(240,128,128,.08); color: var(--view49e27-text); font-size: 13px; }
.view49e27-help-section { margin: 0 0 14px; padding: 14px 0; border-top: 1px solid var(--view49e27-border); }
.view49e27-help-section h2 { margin: 0 0 7px; color: var(--view49e27-text); font-size: 17px; line-height: 1.25; }
.view49e27-help-section h3 { margin: 14px 0 6px; color: var(--view49e27-mint); font-size: 13px; }
.view49e27-help-section p { margin: 0 0 9px; color: var(--view49e27-text-muted); font-size: 13px; }
.view49e27-help-section p:last-child { margin-bottom: 0; }
.view49e27-help-section ul, .view49e27-help-section ol { margin: 7px 0 0; padding-left: 20px; color: var(--view49e27-text-muted); font-size: 12.5px; }
.view49e27-help-section li { margin: 0 0 7px; }
.view49e27-help-section li:last-child { margin-bottom: 0; }
.view49e27-callout { margin: 10px 0; padding: 11px 12px; border: 1px solid var(--view49e27-border-strong); background: var(--view49e27-surface); color: var(--view49e27-text-muted); font-size: 12px; }
.view49e27-help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.view49e27-square-cta { min-height: 44px; padding: 9px 13px; border: 1px solid var(--view49e27-coral); border-radius: 4px; background: var(--view49e27-coral); color: #160b0b; font-size: 12px; font-weight: 800; cursor: pointer; }
.view49e27-square-cta--dark { background: transparent; color: var(--view49e27-mint); border-color: var(--view49e27-mint); }
.view49e27-help-link { color: var(--view49e27-mint); font-weight: 700; border-bottom: 1px solid rgba(152,251,152,.45); }
.view49e27-checklist { display: grid; gap: 7px; margin-top: 9px; }
.view49e27-check { display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px; border: 1px solid var(--view49e27-border); background: var(--view49e27-surface-2); color: var(--view49e27-text-muted); font-size: 12.5px; }
.view49e27-check-mark { flex: 0 0 20px; height: 20px; border: 1px solid var(--view49e27-green-bright); color: var(--view49e27-mint); text-align: center; line-height: 18px; font-weight: 800; }
.view49e27-faq-list { display: grid; gap: 8px; }
.view49e27-faq-item { border-bottom: 1px solid var(--view49e27-border); padding: 0 0 9px; }
.view49e27-faq-item summary { min-height: 44px; padding: 11px 0 5px; color: var(--view49e27-text); font-size: 13px; font-weight: 800; cursor: pointer; }
.view49e27-faq-item p { padding: 0 4px 4px 0; margin: 0; }
.view49e27-safety-band { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 10px 0; }
.view49e27-safety-cell { padding: 9px; border: 1px solid var(--view49e27-border); background: var(--view49e27-surface-2); }
.view49e27-safety-cell strong { display: block; color: var(--view49e27-coral); font-size: 12px; margin-bottom: 3px; }
.view49e27-safety-cell span { color: var(--view49e27-text-muted); font-size: 11px; }
.view49e27-relation { display: grid; gap: 7px; margin-top: 9px; }
.view49e27-relation-row { display: grid; grid-template-columns: 92px 1fr; gap: 9px; padding: 8px; border-left: 2px solid var(--view49e27-green); background: var(--view49e27-surface); }
.view49e27-relation-row strong { color: var(--view49e27-text); font-size: 11.5px; }
.view49e27-relation-row span { color: var(--view49e27-text-muted); font-size: 11.5px; }
.view49e27-promo-note { margin-top: 10px; padding: 10px; color: var(--view49e27-text); background: linear-gradient(90deg, rgba(34,139,34,.2), rgba(240,128,128,.1)); border: 1px solid var(--view49e27-border-strong); font-size: 12px; }
