/* ==========================================================================
   takavip.click - layers-compact-0efd18.css
   Mobile-first base stylesheet. Canvas: 320-430px, centered on wide screens.
   Palette: #4A4A4A / #808080 / #333333 / #EEE8AA / #FAFAFA (dark base, light text)
   Design tone: bold compact headings + light body, pill buttons + square cards,
   mixed big/small game tiles, short-list rhythm, restrained fades, segmented CTAs.
   All class names and custom properties use the shellefd18- prefix.
   ========================================================================== */

:root {
  --shellefd18-ink: #333333;
  --shellefd18-graphite: #4a4a4a;
  --shellefd18-slate: #808080;
  --shellefd18-sand: #eee8aa;
  --shellefd18-paper: #fafafa;
  --shellefd18-mute: #d6d6d6;
  --shellefd18-faint: #bdbdbd;
  --shellefd18-line: rgba(128, 128, 128, 0.38);
  --shellefd18-hair: rgba(250, 250, 250, 0.08);
  --shellefd18-veil: rgba(238, 232, 170, 0.12);
  --shellefd18-glow: rgba(238, 232, 170, 0.4);
  --shellefd18-pill: 999px;
  --shellefd18-card: 6px;
  --shellefd18-topbar: 102px;
  --shellefd18-dock: 64px;
}

/* ---------- reset / base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #2a2a2a;
  color: var(--shellefd18-paper);
  font-family: "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi", "Kalpurush", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

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

h1, h2, h3, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  margin: 0;
}

a {
  color: var(--shellefd18-sand);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--shellefd18-sand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- phone canvas ---------- */

.shellefd18-canvas {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  background: var(--shellefd18-ink);
  min-height: 100vh;
  overflow-x: clip;
  box-shadow: 0 0 42px rgba(0, 0, 0, 0.55);
}

@media (min-width: 480px) {
  .shellefd18-canvas {
    border-left: 1px solid var(--shellefd18-hair);
    border-right: 1px solid var(--shellefd18-hair);
  }
}

/* ---------- skip link ---------- */

.shellefd18-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 220;
  background: var(--shellefd18-sand);
  color: var(--shellefd18-ink);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: var(--shellefd18-card);
}

.shellefd18-skip:focus {
  left: 10px;
}

/* ---------- top bar (tab-style header) ---------- */

.shellefd18-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, #3d3d3d 0%, #343434 100%);
  border-bottom: 1px solid var(--shellefd18-line);
}

.shellefd18-topbar__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 5px 12px;
}

/* brand area: real logo image + site name only */
.shellefd18-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--shellefd18-paper);
  white-space: nowrap;
}

.shellefd18-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--shellefd18-slate);
  object-fit: cover;
  background: #3c3c3c;
}

.shellefd18-brand span {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.shellefd18-topbar__acts {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* segmented action buttons */
.shellefd18-duo {
  display: inline-flex;
  border-radius: var(--shellefd18-pill);
  overflow: hidden;
  border: 1px solid var(--shellefd18-slate);
  background: #3a3a3a;
}

.shellefd18-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--shellefd18-pill);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.shellefd18-btn--accent {
  background: var(--shellefd18-sand);
  color: var(--shellefd18-ink);
}

.shellefd18-btn--ghost {
  background: transparent;
  color: var(--shellefd18-paper);
}

.shellefd18-duo .shellefd18-btn {
  border-radius: 0;
}

.shellefd18-duo .shellefd18-btn--ghost {
  border-left: 1px solid var(--shellefd18-slate);
}

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

.shellefd18-duo .shellefd18-btn--accent:active {
  box-shadow: inset 0 0 14px var(--shellefd18-glow);
}

/* compact duo inside the header */
.shellefd18-duo--tight .shellefd18-btn {
  min-height: 44px;
  padding: 0 11px;
  font-size: 12px;
}

/* section tab strip */
.shellefd18-tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  padding: 0 10px 0;
  border-top: 1px solid var(--shellefd18-hair);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shellefd18-tabs::-webkit-scrollbar {
  display: none;
}

.shellefd18-tabs a,
.shellefd18-tabs button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 13px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--shellefd18-mute);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.shellefd18-tabs a:active,
.shellefd18-tabs button:active {
  color: var(--shellefd18-sand);
}

.shellefd18-tabs a[aria-current="true"] {
  color: var(--shellefd18-sand);
  border-bottom-color: var(--shellefd18-sand);
}

.shellefd18-tabs .shellefd18-tabs__menu {
  color: var(--shellefd18-paper);
}

/* ---------- main column ---------- */

.shellefd18-main {
  padding: calc(var(--shellefd18-topbar) + 14px) 14px calc(var(--shellefd18-dock) + 34px + env(safe-area-inset-bottom));
}

.shellefd18-main section[id] {
  scroll-margin-top: calc(var(--shellefd18-topbar) + 10px);
}

/* ---------- hero ---------- */

.shellefd18-hero {
  padding: 6px 0 4px;
}

.shellefd18-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 3px 11px;
  border: 1px solid var(--shellefd18-sand);
  border-radius: var(--shellefd18-pill);
  color: var(--shellefd18-sand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.shellefd18-hero h1 {
  font-size: 23px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
}

.shellefd18-hero p {
  font-size: 13.5px;
  color: var(--shellefd18-mute);
  margin-bottom: 14px;
}

/* data strip */
.shellefd18-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 4px 0 6px;
}

.shellefd18-stat {
  background: var(--shellefd18-graphite);
  border: 1px solid var(--shellefd18-line);
  border-radius: var(--shellefd18-card);
  padding: 10px 6px 8px;
  text-align: center;
}

.shellefd18-stat b {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--shellefd18-sand);
  line-height: 1.2;
}

.shellefd18-stat span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--shellefd18-faint);
}

/* ---------- promo carousel ---------- */

.shellefd18-carousel {
  position: relative;
  margin: 16px -14px 4px;
  background: #262626;
}

.shellefd18-track {
  display: flex;
  transition: transform 0.45s ease;
}

.shellefd18-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.shellefd18-slide img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.shellefd18-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(20, 20, 20, 0.92) 78%);
}

.shellefd18-cap strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--shellefd18-paper);
  line-height: 1.35;
}

.shellefd18-cap em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--shellefd18-sand);
}

.shellefd18-dots {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}

.shellefd18-dot {
  width: 20px;
  height: 20px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
}

.shellefd18-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(250, 250, 250, 0.55);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.shellefd18-dot.is-on::before {
  background: var(--shellefd18-sand);
  box-shadow: 0 0 8px var(--shellefd18-glow);
}

/* ---------- game sections ---------- */

.shellefd18-sec {
  margin-top: 24px;
}

.shellefd18-sec__head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  border-left: 3px solid var(--shellefd18-sand);
  padding-left: 10px;
}

.shellefd18-sec__head h2 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--shellefd18-paper);
}

.shellefd18-count {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--shellefd18-ink);
  background: var(--shellefd18-sand);
  border-radius: var(--shellefd18-card);
  padding: 2px 7px;
  white-space: nowrap;
}

.shellefd18-note {
  margin: 7px 0 11px;
  font-size: 12.5px;
  color: var(--shellefd18-mute);
}

/* game grid: 4 columns at 320px, 5 columns from 400px up (canvas stays 430px) */
.shellefd18-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
  grid-auto-flow: dense;
}

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

.shellefd18-tile {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 5px;
  background: var(--shellefd18-graphite);
  border: 1px solid var(--shellefd18-line);
  border-radius: var(--shellefd18-card);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.shellefd18-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 5px;
  background: #3c3c3c;
}

.shellefd18-tile span {
  font-size: 11px;
  line-height: 1.3;
  color: var(--shellefd18-paper);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.shellefd18-tile:active {
  transform: scale(0.95);
  border-color: var(--shellefd18-sand);
  box-shadow: 0 0 12px var(--shellefd18-glow);
}

/* wide lead tile (mixed big/small card rhythm) */
.shellefd18-tile--lead {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  padding: 9px;
}

.shellefd18-tile--lead img {
  flex: 0 0 62px;
  width: 62px;
  aspect-ratio: 1 / 1;
}

.shellefd18-tile--lead span {
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  min-height: 0;
}

/* ---------- prose modules ---------- */

.shellefd18-prose {
  margin-top: 28px;
}

.shellefd18-prose__head {
  border-left: 3px solid var(--shellefd18-sand);
  padding-left: 10px;
  margin-bottom: 9px;
}

.shellefd18-prose h2 {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--shellefd18-paper);
}

.shellefd18-prose p {
  font-size: 13.5px;
  color: var(--shellefd18-mute);
  margin-bottom: 10px;
}

.shellefd18-prose p.shellefd18-lead {
  color: var(--shellefd18-paper);
  font-weight: 500;
}

.shellefd18-list li {
  position: relative;
  padding-left: 19px;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: var(--shellefd18-mute);
}

.shellefd18-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--shellefd18-sand);
  border-radius: 2px;
}

.shellefd18-steps {
  counter-reset: shellefd18step;
}

.shellefd18-steps li {
  counter-increment: shellefd18step;
  position: relative;
  padding-left: 36px;
  margin-bottom: 11px;
  font-size: 13.5px;
  color: var(--shellefd18-mute);
}

.shellefd18-steps li::before {
  content: counter(shellefd18step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--shellefd18-sand);
  color: var(--shellefd18-ink);
  font-size: 12.5px;
  font-weight: 800;
  border-radius: var(--shellefd18-pill);
}

.shellefd18-prose strong {
  color: var(--shellefd18-paper);
  font-weight: 700;
}

.shellefd18-prose a,
.shellefd18-dir a {
  color: var(--shellefd18-sand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.shellefd18-prose a:active {
  text-shadow: 0 0 10px var(--shellefd18-glow);
}

/* ---------- extended footer (home only) ---------- */

.shellefd18-xfooter {
  margin-top: 34px;
  border-top: 1px solid var(--shellefd18-line);
  padding-top: 18px;
}

.shellefd18-xfooter > h3,
.shellefd18-xfooter h3 {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--shellefd18-sand);
  margin: 18px 0 9px;
}

.shellefd18-xfooter h3:first-child {
  margin-top: 0;
}

.shellefd18-brandnote {
  font-size: 12.5px;
  color: var(--shellefd18-mute);
}

/* page directory: 2 columns */
.shellefd18-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
}

.shellefd18-dir a {
  display: flex;
  align-items: center;
  min-height: 34px;
  font-size: 12.5px;
  color: var(--shellefd18-mute);
  border-bottom: 1px dashed rgba(128, 128, 128, 0.28);
}

.shellefd18-dir a:active {
  color: var(--shellefd18-sand);
}

/* promotion shortcuts: horizontal chip rail */
.shellefd18-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.shellefd18-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--shellefd18-sand);
  border-radius: var(--shellefd18-pill);
  background: var(--shellefd18-veil);
  color: var(--shellefd18-paper);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.shellefd18-chip svg {
  flex: 0 0 auto;
  opacity: 0.9;
}

.shellefd18-chip:active {
  background: var(--shellefd18-sand);
  color: var(--shellefd18-ink);
  box-shadow: 0 0 14px var(--shellefd18-glow);
}

.shellefd18-disclaimer {
  font-size: 12px;
  line-height: 1.7;
  color: var(--shellefd18-faint);
  border-left: 3px solid var(--shellefd18-graphite);
  padding-left: 10px;
}

/* common legal line */
.shellefd18-legal {
  margin-top: 22px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--shellefd18-hair);
  text-align: center;
  font-size: 11.5px;
  color: var(--shellefd18-slate);
}

/* ---------- slide-up route panel ---------- */

.shellefd18-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 12, 12, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.shellefd18-scrim.is-on {
  opacity: 1;
  pointer-events: auto;
}

.shellefd18-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 90;
  width: 100%;
  max-width: 430px;
  max-height: 74vh;
  overflow-y: auto;
  background: #3b3b3b;
  border: 1px solid var(--shellefd18-line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translate(-50%, 105%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shellefd18-panel.is-open {
  transform: translate(-50%, 0);
}

.shellefd18-panel__grip {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: var(--shellefd18-slate);
  margin: 4px auto 12px;
}

.shellefd18-panel h3 {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--shellefd18-sand);
  margin: 14px 0 2px;
}

.shellefd18-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 6px 2px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.24);
  color: var(--shellefd18-paper);
  font-size: 14px;
  font-weight: 500;
}

.shellefd18-panel a:active {
  color: var(--shellefd18-sand);
}

.shellefd18-panel a span {
  flex: 1 1 auto;
}

.shellefd18-panel a em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11px;
  color: var(--shellefd18-slate);
}

.shellefd18-panel a[aria-current="page"] {
  color: var(--shellefd18-sand);
  font-weight: 800;
  box-shadow: inset 0 -2px 0 var(--shellefd18-sand);
}

.shellefd18-panel__cta {
  width: 100%;
  margin-top: 16px;
}

/* ---------- layered bottom dock (5 roles) ---------- */

.shellefd18-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, #404040 0%, #333333 100%);
  border-top: 1px solid var(--shellefd18-line);
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom);
}

.shellefd18-dockbtn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 60px;
  padding: 4px 2px;
  background: none;
  border: 0;
  color: var(--shellefd18-faint);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.shellefd18-dockbtn::before {
  /* underline marker for the active role */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--shellefd18-sand);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.shellefd18-dockbtn[aria-current="page"] {
  color: var(--shellefd18-sand);
}

.shellefd18-dockbtn[aria-current="page"]::before {
  opacity: 1;
  box-shadow: 0 2px 10px var(--shellefd18-glow);
}

.shellefd18-dockbtn:active {
  color: var(--shellefd18-sand);
  text-shadow: 0 0 10px var(--shellefd18-glow);
}

/* ---------- restrained entrance motion ---------- */

@keyframes shellefd18rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.shellefd18-rise {
  animation: shellefd18rise 0.45s ease both;
}

.shellefd18-rise--2 {
  animation-delay: 0.08s;
}

.shellefd18-rise--3 {
  animation-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
