/* 1555.homes - core stylesheet
   Prefix: g74f-  (every custom class and CSS variable)
   Palette: #A0522D | #6C757D | #FFB6C1 | #FF69B4 | #1A1A2E
   Layout : mobile-first 320-430px canvas, centered on wider screens.
*/

:root {
  --g74f-bg: #1A1A2E;
  --g74f-bg-soft: #20203a;
  --g74f-bg-card: #26263f;
  --g74f-wood: #A0522D;
  --g74f-muted: #6C757D;
  --g74f-pink-soft: #FFB6C1;
  --g74f-pink: #FF69B4;
  --g74f-text: #f6e9ee;
  --g74f-text-dim: #c9bcc6;
  --g74f-line: rgba(255, 182, 193, 0.18);
  --g74f-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
  --g74f-radius: 14px;
  --g74f-header-h: 56px;
  --g74f-dock-h: 64px;
  --g74f-max-w: 440px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--g74f-bg);
  color: var(--g74f-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(160, 82, 45, 0.18), transparent 45%),
    radial-gradient(circle at 100% 12%, rgba(255, 105, 180, 0.16), transparent 50%),
    var(--g74f-bg);
}

a {
  color: var(--g74f-pink-soft);
  text-decoration: none;
}

a:hover, a:focus {
  color: var(--g74f-pink);
}

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

.g74f-canvas {
  width: 100%;
  max-width: var(--g74f-max-w);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background:
    linear-gradient(180deg, rgba(160, 82, 45, 0.08) 0%, rgba(26, 26, 46, 0) 220px),
    var(--g74f-bg);
  padding-bottom: calc(var(--g74f-dock-h) + 24px);
}

/* ---------- Header (edge-aligned functional head) ---------- */
.g74f-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--g74f-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.98), rgba(26, 26, 46, 0.92));
  border-bottom: 1px solid var(--g74f-line);
  backdrop-filter: blur(6px);
}

.g74f-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.g74f-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--g74f-wood), var(--g74f-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(160, 82, 45, 0.45);
}

.g74f-brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.g74f-brand-name span {
  color: var(--g74f-pink-soft);
}

.g74f-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g74f-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0 14px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.g74f-btn-login {
  background: transparent;
  color: var(--g74f-text);
  border: 1px solid var(--g74f-line);
}

.g74f-btn-register {
  background: linear-gradient(135deg, var(--g74f-pink), var(--g74f-wood));
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.35);
}

.g74f-btn:hover, .g74f-btn:focus {
  transform: translateY(-1px);
}

.g74f-btn-register:hover, .g74f-btn-register:focus {
  box-shadow: 0 6px 18px rgba(255, 105, 180, 0.55);
}

.g74f-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 182, 193, 0.08);
  border: 1px solid var(--g74f-line);
  color: var(--g74f-pink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.g74f-icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ---------- Slide-up route panel ---------- */
.g74f-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 70;
}

.g74f-backdrop-on {
  opacity: 1;
  pointer-events: auto;
}

.g74f-route-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  max-width: var(--g74f-max-w);
  margin: 0 auto;
  background: linear-gradient(180deg, #232343, #1a1a2e);
  border-top: 1px solid var(--g74f-line);
  border-radius: 20px 20px 0 0;
  padding: 18px 14px calc(env(safe-area-inset-bottom, 0px) + 18px);
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.g74f-route-open {
  transform: translateY(0);
}

.g74f-route-handle {
  width: 46px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 182, 193, 0.45);
  margin: 0 auto 12px;
}

.g74f-route-title {
  font-size: 13px;
  color: var(--g74f-text-dim);
  margin: 0 0 10px 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.g74f-route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.g74f-route-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 182, 193, 0.06);
  border: 1px solid var(--g74f-line);
  border-radius: 14px;
  padding: 12px 6px;
  color: var(--g74f-text);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  min-height: 64px;
  transition: background 0.2s ease, transform 0.18s ease;
}

.g74f-route-item svg {
  width: 22px;
  height: 22px;
  color: var(--g74f-pink-soft);
}

.g74f-route-item:hover, .g74f-route-item:focus {
  background: rgba(255, 105, 180, 0.16);
  transform: translateY(-1px);
  color: #fff;
}

.g74f-route-promo {
  background: linear-gradient(135deg, rgba(160, 82, 45, 0.25), rgba(255, 105, 180, 0.25));
}

/* ---------- Main wrapper ---------- */
.g74f-main {
  padding: 14px 12px 0;
}

.g74f-h1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 8px 0 4px;
  font-weight: 800;
  color: #fff;
}

.g74f-h1 em {
  font-style: normal;
  color: var(--g74f-pink-soft);
}

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

.g74f-section {
  margin: 22px 0 6px;
  padding: 0 2px;
}

.g74f-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}

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

.g74f-section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--g74f-pink), var(--g74f-wood));
  display: inline-block;
}

.g74f-section-link {
  font-size: 12px;
  color: var(--g74f-pink-soft);
  font-weight: 600;
}

/* ---------- Carousel ---------- */
.g74f-carousel {
  position: relative;
  border-radius: var(--g74f-radius);
  overflow: hidden;
  box-shadow: var(--g74f-shadow);
  margin: 4px 0 4px;
}

.g74f-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.g74f-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.g74f-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g74f-slide-active {
  opacity: 1;
}

.g74f-carousel-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  font-size: 14px;
}

.g74f-carousel-caption small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: var(--g74f-pink-soft);
}

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

.g74f-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
}

.g74f-dot-active {
  background: var(--g74f-pink);
  width: 18px;
  border-radius: 6px;
}

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

.g74f-game-card {
  background: var(--g74f-bg-card);
  border: 1px solid var(--g74f-line);
  border-radius: 12px;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.18s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.g74f-game-card:hover, .g74f-game-card:focus {
  transform: translateY(-2px);
  border-color: var(--g74f-pink);
  box-shadow: 0 6px 14px rgba(255, 105, 180, 0.22);
}

.g74f-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #0d0d1c;
}

.g74f-game-name {
  font-size: 11px;
  line-height: 1.25;
  color: var(--g74f-text);
  font-weight: 600;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}

/* ---------- Info / promo tiles ---------- */
.g74f-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.g74f-tile {
  background: linear-gradient(135deg, rgba(160, 82, 45, 0.18), rgba(255, 105, 180, 0.12));
  border: 1px solid var(--g74f-line);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.g74f-tile:hover, .g74f-tile:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.g74f-tile-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}

.g74f-tile-text {
  font-size: 12px;
  color: var(--g74f-text-dim);
  margin: 0;
}

/* ---------- Long content cards ---------- */
.g74f-card {
  background: var(--g74f-bg-card);
  border: 1px solid var(--g74f-line);
  border-radius: 14px;
  padding: 14px;
  margin: 10px 0;
}

.g74f-card h2 {
  font-size: 16px;
  margin: 0 0 6px;
  color: #fff;
}

.g74f-card p {
  margin: 0 0 8px;
  color: var(--g74f-text-dim);
  font-size: 13.5px;
}

.g74f-card p:last-child {
  margin-bottom: 0;
}

/* ---------- Extended footer ---------- */
.g74f-ext-foot {
  margin: 26px 0 4px;
  padding: 16px 12px;
  border-top: 1px solid var(--g74f-line);
  background: rgba(160, 82, 45, 0.06);
}

.g74f-ext-group {
  margin-bottom: 14px;
}

.g74f-ext-group h3 {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g74f-pink-soft);
  margin: 0 0 8px;
}

.g74f-ext-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  font-size: 13px;
}

.g74f-ext-links a {
  color: var(--g74f-text);
}

.g74f-brand-intro {
  font-size: 13px;
  color: var(--g74f-text-dim);
  margin: 0 0 12px;
}

.g74f-promo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.g74f-promo-pill {
  background: linear-gradient(135deg, var(--g74f-wood), var(--g74f-pink));
  color: #fff;
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.g74f-promo-pill:hover, .g74f-promo-pill:focus {
  transform: translateY(-2px);
}

.g74f-disclaimer {
  font-size: 11.5px;
  color: var(--g74f-muted);
  border-top: 1px dashed var(--g74f-line);
  padding-top: 10px;
  margin-top: 12px;
}

/* ---------- Footer ---------- */
.g74f-foot {
  text-align: center;
  padding: 16px 12px 6px;
  color: var(--g74f-muted);
  font-size: 12px;
}

/* ---------- Floating dock (bottom nav) ---------- */
.g74f-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  max-width: var(--g74f-max-w);
  margin: 0 auto;
  height: var(--g74f-dock-h);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 6px 6px calc(env(safe-area-inset-bottom, 0px) + 6px);
  background: linear-gradient(180deg, rgba(36, 36, 60, 0.96), rgba(20, 20, 36, 0.98));
  border-top: 1px solid var(--g74f-line);
  backdrop-filter: blur(8px);
}

.g74f-dock-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--g74f-text-dim);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
  border-radius: 12px;
  transition: color 0.22s ease, background 0.22s ease;
}

.g74f-dock-btn svg {
  width: 22px;
  height: 22px;
}

.g74f-dock-btn:hover, .g74f-dock-btn:focus {
  color: #fff;
}

.g74f-dock-btn.is-active {
  color: var(--g74f-pink-soft);
}

.g74f-dock-btn.is-active .g74f-dock-label {
  position: relative;
}

.g74f-dock-btn.is-active .g74f-dock-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--g74f-pink);
}

.g74f-dock-btn.g74f-dock-cta {
  color: #fff;
}

.g74f-dock-btn.g74f-dock-cta .g74f-dock-ico {
  background: linear-gradient(135deg, var(--g74f-wood), var(--g74f-pink));
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 105, 180, 0.4);
}

.g74f-dock-btn.g74f-dock-cta .g74f-dock-ico svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

/* Restrained glow feedback */
.g74f-glow {
  box-shadow: 0 0 0 9999px rgba(255, 105, 180, 0) inset;
  animation: g74fglow 0.45s ease;
}

@keyframes g74fglow {
  0% { box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.0) inset; }
  40% { box-shadow: 0 0 12px 2px rgba(255, 105, 180, 0.55) inset; }
  100% { box-shadow: 0 0 0 0 rgba(255, 105, 180, 0) inset; }
}

/* ---------- Utility ---------- */
.g74f-hide { display: none !important; }

.g74f-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 105, 180, 0.16);
  color: var(--g74f-pink-soft);
  border: 1px solid var(--g74f-line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
}

.g74f-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (min-width: 380px) {
  .g74f-game-grid { gap: 10px; }
  .g74f-h1 { font-size: 24px; }
}

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