/* ============================================================
   takabat.cyou - mobile canvas stylesheet
   Prefix: w1ed7-
   Palette: #00FF7F | #ADD8E6 | #FFFFFF | #66CDAA | #141414 | #008000
   Canvas: 320-430px. Desktop shows the phone canvas centered.
   ============================================================ */

:root {
  --w1ed7-bg: #141414;
  --w1ed7-bg-2: #0e1a14;
  --w1ed7-surface: #1c2a22;
  --w1ed7-surface-2: #233329;
  --w1ed7-text: #FFFFFF;
  --w1ed7-muted: #ADD8E6;
  --w1ed7-accent: #00FF7F;
  --w1ed7-accent-2: #66CDAA;
  --w1ed7-deep: #008000;
  --w1ed7-border: rgba(0, 255, 127, 0.18);
  --w1ed7-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  --w1ed7-radius: 14px;
  --w1ed7-radius-sm: 9px;
  --w1ed7-header-h: 60px;
  --w1ed7-bottom-h: 64px;
  --w1ed7-max: 430px;
  --w1ed7-font: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #050a07;
  color: var(--w1ed7-text);
  font-family: var(--w1ed7-font);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: var(--w1ed7-accent);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--w1ed7-accent);
  outline-offset: 2px;
}

/* Phone canvas: locked to a mobile width even on wide screens. */
.w1ed7-canvas {
  position: relative;
  width: 100%;
  max-width: var(--w1ed7-max);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(0, 255, 127, 0.10), transparent 60%),
    linear-gradient(180deg, var(--w1ed7-bg-2) 0%, var(--w1ed7-bg) 35%, #0b110d 100%);
  box-shadow: var(--w1ed7-shadow);
  overflow: hidden;
}

/* ---------------- Header ---------------- */
.w1ed7-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--w1ed7-header-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.96), rgba(20, 20, 20, 0.86));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--w1ed7-border);
}

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

.w1ed7-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--w1ed7-surface);
  border: 1px solid var(--w1ed7-border);
  flex: 0 0 auto;
}

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

.w1ed7-brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.3px;
  color: var(--w1ed7-text);
  white-space: nowrap;
}

.w1ed7-brand-tag {
  font-size: 10.5px;
  color: var(--w1ed7-accent-2);
  white-space: nowrap;
}

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

.w1ed7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.w1ed7-btn:active {
  transform: scale(0.96);
}

.w1ed7-btn-login {
  background: transparent;
  color: var(--w1ed7-text);
  border-color: var(--w1ed7-border);
}

.w1ed7-btn-register {
  background: linear-gradient(135deg, var(--w1ed7-accent), var(--w1ed7-deep));
  color: #04140a;
  box-shadow: 0 4px 14px rgba(0, 255, 127, 0.35);
}

.w1ed7-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--w1ed7-surface);
  border: 1px solid var(--w1ed7-border);
  color: var(--w1ed7-text);
  cursor: pointer;
  flex: 0 0 auto;
}

.w1ed7-icon-btn svg {
  width: 18px;
  height: 18px;
}

.w1ed7-icon-btn.w1ed7-active {
  background: var(--w1ed7-accent);
  color: #04140a;
}

/* ---------------- Drop-down layered menu ---------------- */
.w1ed7-nav-menu {
  position: absolute;
  top: var(--w1ed7-header-h);
  left: 8px;
  right: 8px;
  background: rgba(20, 30, 24, 0.98);
  border: 1px solid var(--w1ed7-border);
  border-radius: 14px;
  padding: 10px;
  display: none;
  z-index: 49;
  box-shadow: var(--w1ed7-shadow);
}

.w1ed7-nav-menu.w1ed7-open {
  display: block;
  animation: w1ed7Fade 0.18s ease;
}

@keyframes w1ed7Fade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.w1ed7-nav-group {
  margin-bottom: 8px;
}

.w1ed7-nav-group-title {
  font-size: 10.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--w1ed7-accent-2);
  padding: 6px 8px 4px;
}

.w1ed7-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.w1ed7-nav-link {
  display: block;
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--w1ed7-surface);
  border: 1px solid transparent;
  color: var(--w1ed7-text);
  font-size: 13px;
  min-height: 40px;
}

.w1ed7-nav-link:active {
  background: var(--w1ed7-surface-2);
  border-color: var(--w1ed7-border);
}

/* ---------------- Hero carousel ---------------- */
.w1ed7-hero {
  position: relative;
  margin: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--w1ed7-border);
  background: #06100b;
}

.w1ed7-hero-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.w1ed7-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.w1ed7-hero-slide.w1ed7-active {
  opacity: 1;
}

.w1ed7-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w1ed7-hero-caption {
  position: absolute;
  left: 12px;
  right: 90px;
  bottom: 12px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.w1ed7-hero-caption strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--w1ed7-accent);
}

.w1ed7-hero-caption span {
  font-size: 12px;
  color: var(--w1ed7-muted);
}

.w1ed7-hero-cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: linear-gradient(135deg, var(--w1ed7-accent), var(--w1ed7-deep));
  color: #04140a;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12.5px;
  box-shadow: 0 4px 12px rgba(0, 255, 127, 0.4);
}

.w1ed7-hero-dots {
  position: absolute;
  top: 8px;
  right: 10px;
  display: flex;
  gap: 5px;
}

.w1ed7-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.w1ed7-hero-dot.w1ed7-active {
  background: var(--w1ed7-accent);
  box-shadow: 0 0 6px var(--w1ed7-accent);
}

/* ---------------- Quick chips ---------------- */
.w1ed7-chips {
  display: flex;
  gap: 7px;
  padding: 4px 12px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.w1ed7-chips::-webkit-scrollbar { display: none; }

.w1ed7-chip {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--w1ed7-surface);
  border: 1px solid var(--w1ed7-border);
  color: var(--w1ed7-text);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.w1ed7-chip strong {
  color: var(--w1ed7-accent);
  margin-right: 4px;
}

/* ---------------- Search ---------------- */
.w1ed7-search-wrap {
  padding: 0 12px 10px;
}

.w1ed7-search {
  width: 100%;
  background: var(--w1ed7-surface);
  border: 1px solid var(--w1ed7-border);
  color: var(--w1ed7-text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
}

.w1ed7-search::placeholder {
  color: var(--w1ed7-muted);
}

/* ---------------- Section heading ---------------- */
.w1ed7-section {
  margin: 14px 0 18px;
  padding: 0 12px;
}

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

.w1ed7-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--w1ed7-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.w1ed7-section-link {
  font-size: 12px;
  color: var(--w1ed7-accent);
  font-weight: 700;
}

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

@media (min-width: 360px) {
  .w1ed7-game-grid { gap: 9px; }
}

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

.w1ed7-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--w1ed7-surface);
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 6px 4px 7px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.15s ease;
  min-height: 44px;
}

.w1ed7-game-item:active {
  transform: scale(0.95);
  border-color: var(--w1ed7-accent);
}

.w1ed7-game-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #0c1510;
  border: 1px solid var(--w1ed7-border);
}

.w1ed7-game-name {
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--w1ed7-text);
  line-height: 1.25;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 26px;
}

.w1ed7-hidden {
  display: none !important;
}

/* ---------------- Category strip ---------------- */
.w1ed7-cat-strip {
  display: flex;
  gap: 7px;
  padding: 6px 12px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.w1ed7-cat-strip::-webkit-scrollbar { display: none; }

.w1ed7-cat-pill {
  flex: 0 0 auto;
  background: var(--w1ed7-surface);
  border: 1px solid var(--w1ed7-border);
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--w1ed7-text);
}

.w1ed7-cat-pill .w1ed7-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--w1ed7-accent);
  margin-right: 6px;
  vertical-align: middle;
}

/* ---------------- Info cards (testimonials, guides) ---------------- */
.w1ed7-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.w1ed7-card {
  background: var(--w1ed7-surface);
  border: 1px solid var(--w1ed7-border);
  border-radius: var(--w1ed7-radius);
  padding: 13px 14px;
}

.w1ed7-card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--w1ed7-accent);
  margin: 0 0 6px;
}

.w1ed7-card-text {
  font-size: 13px;
  color: var(--w1ed7-muted);
  margin: 0;
}

.w1ed7-card-text strong { color: var(--w1ed7-text); }

.w1ed7-card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.w1ed7-stat {
  background: var(--w1ed7-surface);
  border: 1px solid var(--w1ed7-border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.w1ed7-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--w1ed7-accent);
}

.w1ed7-stat-label {
  font-size: 11.5px;
  color: var(--w1ed7-muted);
}

.w1ed7-list {
  margin: 6px 0 0;
  padding-left: 18px;
}

.w1ed7-list li {
  font-size: 13px;
  color: var(--w1ed7-muted);
  margin-bottom: 5px;
}

.w1ed7-list li strong { color: var(--w1ed7-text); }

/* ---------------- SEO prose ---------------- */
.w1ed7-prose {
  background: linear-gradient(180deg, var(--w1ed7-surface), var(--w1ed7-bg));
  border: 1px solid var(--w1ed7-border);
  border-radius: var(--w1ed7-radius);
  padding: 16px;
  margin: 14px 12px;
}

.w1ed7-prose h2 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--w1ed7-accent);
  margin: 16px 0 8px;
}

.w1ed7-prose h2:first-child { margin-top: 0; }

.w1ed7-prose h3 {
  font-size: 14px;
  color: var(--w1ed7-accent-2);
  margin: 12px 0 6px;
}

.w1ed7-prose p {
  font-size: 13.5px;
  color: var(--w1ed7-text);
  margin: 0 0 10px;
  line-height: 1.7;
}

.w1ed7-prose a {
  color: var(--w1ed7-accent);
  border-bottom: 1px dashed rgba(0, 255, 127, 0.4);
  font-weight: 700;
}

/* ---------------- Promotional inline line ---------------- */
.w1ed7-promo-line {
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.12), rgba(0, 128, 0, 0.12));
  border: 1px solid var(--w1ed7-border);
  border-radius: 12px;
  padding: 11px 13px;
  margin: 12px 12px;
  font-size: 13px;
  color: var(--w1ed7-text);
}

.w1ed7-promo-line a {
  font-weight: 800;
  color: var(--w1ed7-accent);
  border-bottom: 1px dashed rgba(0, 255, 127, 0.4);
}

/* ---------------- Extended footer (homepage only) ---------------- */
.w1ed7-ext-footer {
  margin: 18px 12px 6px;
  display: grid;
  gap: 12px;
}

.w1ed7-ef-block {
  background: var(--w1ed7-surface);
  border: 1px solid var(--w1ed7-border);
  border-radius: var(--w1ed7-radius);
  padding: 13px 14px;
}

.w1ed7-ef-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--w1ed7-accent);
  letter-spacing: 0.4px;
  margin: 0 0 8px;
}

.w1ed7-ef-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.w1ed7-ef-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--w1ed7-bg-2);
  border: 1px solid var(--w1ed7-border);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  font-size: 11.5px;
  color: var(--w1ed7-text);
  min-height: 56px;
}

.w1ed7-ef-item svg {
  width: 18px;
  height: 18px;
  color: var(--w1ed7-accent);
  margin-bottom: 4px;
}

.w1ed7-ef-item.promo {
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.18), rgba(0, 128, 0, 0.14));
  cursor: pointer;
}

.w1ed7-ef-item.promo svg { color: #04140a; }

.w1ed7-ef-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.w1ed7-ef-link {
  display: block;
  padding: 9px 10px;
  background: var(--w1ed7-bg-2);
  border: 1px solid var(--w1ed7-border);
  border-radius: 9px;
  font-size: 12px;
  color: var(--w1ed7-text);
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w1ed7-disclaimer {
  font-size: 11.5px;
  color: var(--w1ed7-muted);
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--w1ed7-accent-2);
  padding: 9px 11px;
  border-radius: 6px;
  line-height: 1.55;
}

/* ---------------- Copyright bar ---------------- */
.w1ed7-copyright {
  text-align: center;
  font-size: 11.5px;
  color: var(--w1ed7-muted);
  padding: 14px 16px calc(var(--w1ed7-bottom-h) + 18px);
  margin: 0;
}

/* ---------------- Bottom navigation ---------------- */
.w1ed7-bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--w1ed7-max);
  height: var(--w1ed7-bottom-h);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  background: linear-gradient(180deg, rgba(20, 30, 24, 0.96), rgba(8, 14, 11, 0.98));
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--w1ed7-border);
  z-index: 60;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.w1ed7-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--w1ed7-muted);
  font-size: 10px;
  font-weight: 600;
  position: relative;
  padding: 6px 2px 4px;
  min-height: 44px;
  border-radius: 14px 14px 0 0;
  transition: color 0.18s ease, background 0.18s ease;
}

.w1ed7-bottom-nav a svg {
  width: 21px;
  height: 21px;
}

.w1ed7-bottom-nav a.w1ed7-current {
  color: #04140a;
  background: linear-gradient(180deg, var(--w1ed7-accent), rgba(0, 255, 127, 0.55));
  box-shadow: 0 -3px 12px rgba(0, 255, 127, 0.35);
}

.w1ed7-bottom-nav a.w1ed7-current::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 0 0 4px 4px;
}

.w1ed7-bottom-nav a.promo {
  color: var(--w1ed7-accent);
}

/* ---------------- Ripple micro-interaction ---------------- */
.w1ed7-ripple {
  animation: w1ed7Glow 0.45s ease;
}

@keyframes w1ed7Glow {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 127, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(0, 255, 127, 0); }
}

/* ---------------- Responsive tweaks ---------------- */
@media (max-width: 359px) {
  .w1ed7-brand-tag { display: none; }
  .w1ed7-btn { padding: 0 10px; font-size: 12.5px; }
  .w1ed7-ef-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop frame: keep phone canvas, mask the rest. */
@media (min-width: 480px) {
  body {
    background: #050a07;
  }
  .w1ed7-canvas {
    margin-top: 16px;
    margin-bottom: 16px;
    border-radius: 22px;
    overflow: hidden;
    min-height: calc(100vh - 32px);
  }
  .w1ed7-bottom-nav {
    border-radius: 0 0 22px 22px;
  }
}
