/* Playtime Gameplay - native surface stylesheet (mobile-first coastal reef theme) */
/* Class namespace: shell65519- */

:root {
  --shell65519-abyss: #0A0A0A;
  --shell65519-reef: #0e1a1c;
  --shell65519-teal: #80CBC4;
  --shell65519-surge: #00CED1;
  --shell65519-mist: #E9ECEF;
  --shell65519-foam: #F0FDFF;
  --shell65519-coral: #FFB347;
  --shell65519-line: rgba(128, 203, 196, 0.18);
  --shell65519-line-strong: rgba(0, 206, 209, 0.55);
  --shell65519-card: rgba(240, 253, 255, 0.04);
  --shell65519-card-hover: rgba(0, 206, 209, 0.12);
  --shell65519-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  --shell65519-radius-sm: 8px;
  --shell65519-radius-md: 14px;
  --shell65519-radius-lg: 22px;
  --shell65519-radius-pill: 999px;
  --shell65519-canvas: 460px;
  --shell65519-gap: 12px;
  --shell65519-touch: 44px;
  --shell65519-font: "Trebuchet MS", "Segoe UI", Verdana, Roboto, system-ui, sans-serif;
  --shell65519-font-display: Georgia, "Times New Roman", "Palatino Linotype", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--shell65519-font);
  color: var(--shell65519-foam);
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(0, 206, 209, 0.18), transparent 60%),
    radial-gradient(80% 50% at 90% 5%, rgba(255, 179, 71, 0.10), transparent 65%),
    linear-gradient(180deg, #071012 0%, #0A0A0A 35%, #050a0b 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  font-size: 15px;
  overflow-x: hidden;
}

/* Centered mobile canvas on wide screens */
.shell65519-canvas {
  width: 100%;
  max-width: var(--shell65519-canvas);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, rgba(0, 206, 209, 0.05), rgba(0, 0, 0, 0) 18%), rgba(8, 14, 16, 0.6);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  padding-bottom: 92px; /* room for fixed bottom nav */
}

@media (min-width: 480px) {
  body { background-color: #04090a; }
  .shell65519-canvas {
    border-left: 1px solid var(--shell65519-line);
    border-right: 1px solid var(--shell65519-line);
  }
}

/* Handheld canvas frame: cap phone-grade viewports within a 430px mobile max width */
@media (max-width: 430px) {
  .shell65519-canvas,
  .shell65519-bottom-nav {
    max-width: 430px;
  }
}

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

a { color: var(--shell65519-teal); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--shell65519-surge); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--shell65519-font-display); letter-spacing: 0.2px; margin: 0 0 0.5em; }

/* ============ Top header / centered identity block ============ */
.shell65519-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(5, 14, 16, 0.97), rgba(8, 18, 20, 0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--shell65519-line);
}

.shell65519-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px 6px;
  gap: 4px;
}

.shell65519-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.shell65519-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--shell65519-line-strong);
  box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.08);
}

.shell65519-site-name {
  font-family: var(--shell65519-font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--shell65519-foam);
  letter-spacing: 0.4px;
  line-height: 1;
}

.shell65519-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 14px 10px;
}

.shell65519-btn {
  font-family: var(--shell65519-font);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--shell65519-touch);
  border-radius: var(--shell65519-radius-pill);
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
  padding: 0 16px;
  font-size: 13.5px;
}

.shell65519-btn:focus-visible { outline-offset: 3px; }

.shell65519-btn-primary {
  background: linear-gradient(135deg, var(--shell65519-coral), #ff9420);
  color: #1a0f00;
  box-shadow: 0 6px 16px rgba(255, 179, 71, 0.32);
}
.shell65519-btn-primary:hover { transform: translateY(-1px); }

.shell65519-btn-ghost {
  background: transparent;
  color: var(--shell65519-foam);
  border: 1px solid var(--shell65519-line-strong);
}
.shell65519-btn-ghost:hover { background: var(--shell65519-card-hover); }

.shell65519-menu-trigger {
  background: transparent;
  color: var(--shell65519-teal);
  border: 1px solid var(--shell65519-line);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.shell65519-menu-trigger:hover { background: var(--shell65519-card-hover); }

.shell65519-menu-trigger svg { width: 20px; height: 20px; }

/* ============ Slide-down routing panel ============ */
.shell65519-route-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(7, 16, 18, 0.99), rgba(10, 22, 24, 0.97));
  border-bottom: 1px solid var(--shell65519-line-strong);
  padding: 14px 16px 18px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.26s ease, opacity 0.26s ease, visibility 0.26s;
  z-index: 39;
  box-shadow: var(--shell65519-shadow);
}
.shell65519-route-panel[data-open="true"] {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.shell65519-route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shell65519-route-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--shell65519-radius-sm);
  background: var(--shell65519-card);
  border: 1px solid var(--shell65519-line);
  color: var(--shell65519-foam);
  font-size: 13px;
  font-weight: 600;
}
.shell65519-route-link:hover { background: var(--shell65519-card-hover); border-color: var(--shell65519-line-strong); }
.shell65519-route-link .shell65519-route-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--shell65519-surge);
  flex: none;
  box-shadow: 0 0 6px var(--shell65519-surge);
}

/* ============ Page intro / hero ============ */
.shell65519-main { padding: 14px 14px 8px; }

.shell65519-hero {
  position: relative;
  border-radius: var(--shell65519-radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shell65519-shadow);
  border: 1px solid var(--shell65519-line);
}

.shell65519-carousel {
  position: relative;
  display: flex;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shell65519-carousel::-webkit-scrollbar { display: none; }

.shell65519-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
}
.shell65519-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.shell65519-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 35%, rgba(5, 12, 14, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  color: var(--shell65519-foam);
}
.shell65519-slide-title {
  font-family: var(--shell65519-font-display);
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--shell65519-foam);
}
.shell65519-slide-tag {
  font-size: 11.5px;
  color: var(--shell65519-teal);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 8px;
}
.shell65519-slide-cta {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--shell65519-coral), #ff9420);
  color: #1a0f00;
  padding: 7px 14px;
  border-radius: var(--shell65519-radius-pill);
  font-weight: 700;
  font-size: 12.5px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
}

.shell65519-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}
.shell65519-carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(240, 253, 255, 0.4);
  border: none; padding: 0; cursor: pointer;
}
.shell65519-carousel-dot[data-active="true"] {
  background: var(--shell65519-coral);
  width: 16px;
  border-radius: 3px;
}

/* ============ Section heading ============ */
.shell65519-section { margin: 22px 0; }

.shell65519-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}
.shell65519-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--shell65519-foam);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}
.shell65519-section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--shell65519-surge), var(--shell65519-coral));
  display: inline-block;
}
.shell65519-section-aside {
  font-size: 11px;
  color: var(--shell65519-teal);
  background: var(--shell65519-card);
  border: 1px solid var(--shell65519-line);
  padding: 4px 9px;
  border-radius: var(--shell65519-radius-pill);
  white-space: nowrap;
}

/* ============ Game grid (dense, mixed card sizes) ============ */
.shell65519-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 360px) {
  .shell65519-game-grid { gap: 10px; }
}

.shell65519-game-card {
  background: linear-gradient(180deg, rgba(0, 206, 209, 0.06), rgba(0, 0, 0, 0.25));
  border: 1px solid var(--shell65519-line);
  border-radius: var(--shell65519-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 4px 8px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.shell65519-game-card:hover, .shell65519-game-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--shell65519-line-strong);
  box-shadow: 0 10px 22px rgba(0, 206, 209, 0.18);
}
.shell65519-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(128, 203, 196, 0.22);
  background: rgba(0,0,0,0.35);
}
.shell65519-game-name {
  font-size: 11px;
  color: var(--shell65519-mist);
  margin-top: 6px;
  line-height: 1.25;
  min-height: 28px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured wide card (large/small card mix) */
.shell65519-game-card-wide {
  grid-column: span 4;
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 8px;
  gap: 10px;
}
.shell65519-game-card-wide .shell65519-game-thumb {
  width: 72px;
  height: 72px;
  aspect-ratio: auto;
  flex: none;
}
.shell65519-game-card-wide .shell65519-game-name {
  margin-top: 0;
  font-size: 13.5px;
  min-height: 0;
  -webkit-line-clamp: 1;
}
.shell65519-game-card-wide .shell65519-game-meta {
  font-size: 11px;
  color: var(--shell65519-teal);
  margin-top: 2px;
}

@media (min-width: 400px) {
  .shell65519-game-grid { grid-template-columns: repeat(5, 1fr); }
  .shell65519-game-card-wide { grid-column: span 5; }
}

/* ============ Info modules (scenario branch rhythm) ============ */
.shell65519-prose {
  background: linear-gradient(180deg, rgba(0, 206, 209, 0.04), rgba(0,0,0,0.15));
  border: 1px solid var(--shell65519-line);
  border-radius: var(--shell65519-radius-md);
  padding: 16px;
  margin: 12px 0;
}
.shell65519-prose h2 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--shell65519-foam);
  line-height: 1.3;
}
.shell65519-prose h3 {
  font-size: 14px;
  margin: 14px 0 4px;
  color: var(--shell65519-teal);
  font-family: var(--shell65519-font);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.shell65519-prose p {
  margin: 0 0 10px;
  color: var(--shell65519-mist);
  font-size: 14px;
}
.shell65519-prose ul, .shell65519-prose ol {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--shell65519-mist);
}
.shell65519-prose li { margin-bottom: 4px; font-size: 14px; }
.shell65519-prose a { color: var(--shell65519-surge); border-bottom: 1px dashed rgba(0, 206, 209, 0.45); }
.shell65519-prose a:hover { color: var(--shell65519-coral); border-bottom-color: var(--shell65519-coral); }
.shell65519-prose strong { color: var(--shell65519-foam); }

/* Branch list (Popular Play Styles / scenario blocks) */
.shell65519-branch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 6px;
}
.shell65519-branch-item {
  background: var(--shell65519-card);
  border: 1px solid var(--shell65519-line);
  border-left: 3px solid var(--shell65519-surge);
  border-radius: 0 var(--shell65519-radius-sm) var(--shell65519-radius-sm) 0;
  padding: 10px 12px;
}
.shell65519-branch-item h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  color: var(--shell65519-foam);
  font-family: var(--shell65519-font);
  font-weight: 700;
}
.shell65519-branch-item p { margin: 0; font-size: 13px; color: var(--shell65519-mist); }

/* Steps list */
.shell65519-steps {
  list-style: none;
  counter-reset: step;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.shell65519-steps li {
  counter-increment: step;
  position: relative;
  padding: 8px 10px 8px 40px;
  background: var(--shell65519-card);
  border: 1px solid var(--shell65519-line);
  border-radius: var(--shell65519-radius-sm);
  font-size: 13px;
  color: var(--shell65519-mist);
}
.shell65519-steps li::before {
  content: counter(step);
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  background: linear-gradient(135deg, var(--shell65519-surge), #009496);
  color: #021213;
  font-weight: 800;
  font-size: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--shell65519-font);
}

/* Inline promo chip */
.shell65519-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--shell65519-radius-pill);
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.18), rgba(0, 206, 209, 0.14));
  border: 1px solid var(--shell65519-line-strong);
  color: var(--shell65519-foam);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ============ Extended footer (homepage) ============ */
.shell65519-extended {
  margin: 24px 0 12px;
  padding: 18px 14px;
  border-top: 1px solid var(--shell65519-line);
  border-bottom: 1px solid var(--shell65519-line);
  background: linear-gradient(180deg, rgba(0, 206, 209, 0.03), rgba(0,0,0,0.2));
}
.shell65519-extended-brand p {
  font-size: 12.5px;
  color: var(--shell65519-mist);
  margin: 6px 0 12px;
}
.shell65519-extended-label {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--shell65519-teal);
  margin: 14px 0 6px;
  font-weight: 700;
}
.shell65519-promo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.shell65519-promo-row .shell65519-chip {
  justify-content: center;
  font-size: 11.5px;
  padding: 9px 4px;
  text-align: center;
  min-height: 40px;
}

.shell65519-directory {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.shell65519-directory a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--shell65519-card);
  border: 1px solid var(--shell65519-line);
  border-radius: var(--shell65519-radius-sm);
  font-size: 12.5px;
  color: var(--shell65519-foam);
}
.shell65519-directory a::after {
  content: "›";
  color: var(--shell65519-teal);
  font-size: 16px;
  line-height: 1;
}
.shell65519-directory a:hover { background: var(--shell65519-card-hover); }

.shell65519-disclaimer {
  font-size: 11px;
  color: rgba(233, 236, 239, 0.55);
  line-height: 1.5;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--shell65519-line);
}

/* ============ Common footer (copyright only) ============ */
.shell65519-footer-copy {
  padding: 14px 16px 6px;
  text-align: center;
  font-size: 11px;
  color: rgba(233, 236, 239, 0.5);
}

/* ============ Fixed bottom nav (suspended mooring anchor) ============ */
.shell65519-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--shell65519-canvas);
  z-index: 50;
  background: linear-gradient(180deg, rgba(6, 16, 18, 0.94), rgba(4, 10, 12, 0.98));
  border-top: 1px solid var(--shell65519-line-strong);
  backdrop-filter: blur(10px);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}
.shell65519-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 54px;
  padding: 4px 2px;
  border-radius: 12px;
  color: var(--shell65519-mist);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: none;
  text-decoration: none;
  position: relative;
  transition: transform 0.18s ease, color 0.18s ease;
}
.shell65519-nav-item:hover { transform: translateY(-1px); }
.shell65519-nav-item svg { width: 22px; height: 22px; }
.shell65519-nav-label { line-height: 1; }

.shell65519-nav-item[data-active="true"] {
  color: var(--shell65519-surge);
}
.shell65519-nav-item[data-active="true"] svg {
  fill: rgba(0, 206, 209, 0.18);
  stroke: var(--shell65519-surge);
  transform: translateY(-2px);
}
.shell65519-nav-item[data-active="true"]::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--shell65519-coral);
}
.shell65519-nav-promo {
  color: var(--shell65519-coral);
}
.shell65519-nav-promo svg { stroke: var(--shell65519-coral); }

/* Compact utility */
.shell65519-hidden { display: none !important; }

/* Backdrop for menu panel */
.shell65519-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 38;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s;
}
.shell65519-backdrop[data-open="true"] { opacity: 1; visibility: visible; }

/* Floating promo ribbon above bottom nav */
.shell65519-ribbon {
  position: fixed;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: calc(var(--shell65519-canvas) - 24px);
  z-index: 49;
  background: linear-gradient(135deg, var(--shell65519-coral), #ff8a33);
  color: #1a0f00;
  border-radius: var(--shell65519-radius-pill);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(255, 179, 71, 0.35);
  border: none;
  cursor: pointer;
  animation: shell65519-pulse 2.6s ease-in-out infinite;
}
@keyframes shell65519-pulse {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}

/* Visually hidden but accessible */
.shell65519-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
