/*!
 * wnr.homes mobile-first base stylesheet.
 * Site palette: #1A1A1A / #36454F / #800080 / #BBBBBB / #F5F5F5 / #BDC3C7.
 * Navigation direction: tab-style top bar, layered dropdown menu,
 * compact icon shelf bottom nav, label-emphasised active state,
 * quick scale feedback micro-interaction.
 * All custom classes and CSS variables use the shelld05c2- prefix.
 */

:root {
  --shelld05c2-bg: #1A1A1A;
  --shelld05c2-bg-2: #36454F;
  --shelld05c2-bg-3: #242c33;
  --shelld05c2-card: #2a333b;
  --shelld05c2-card-2: #222a31;
  --shelld05c2-accent: #800080;
  --shelld05c2-accent-2: #9a3aa0;
  --shelld05c2-accent-soft: rgba(128, 0, 128, 0.18);
  --shelld05c2-text: #BBBBBB;
  --shelld05c2-text-bright: #F5F5F5;
  --shelld05c2-text-mute: #BDC3C7;
  --shelld05c2-border: rgba(189, 195, 199, 0.18);
  --shelld05c2-border-strong: rgba(189, 195, 199, 0.32);
  --shelld05c2-radius: 14px;
  --shelld05c2-radius-sm: 10px;
  --shelld05c2-header-h: 60px;
  --shelld05c2-nav-h: 66px;
  --shelld05c2-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shelld05c2-tap: 44px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: var(--shelld05c2-bg);
  color: var(--shelld05c2-text);
  line-height: 1.55;
  font-size: 15px;
  overflow-x: hidden;
}

/* Centered mobile canvas stays coherent on wider screens. */
.shelld05c2-canvas {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(1200px 320px at 50% -80px, rgba(128, 0, 128, 0.22), transparent 70%),
    linear-gradient(180deg, #1f1f1f 0%, #161616 100%);
  position: relative;
  box-shadow: var(--shelld05c2-shadow);
}

a {
  color: var(--shelld05c2-text-bright);
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3, h4 {
  color: var(--shelld05c2-text-bright);
  margin: 0 0 10px;
  line-height: 1.3;
  font-weight: 700;
}

p {
  margin: 0 0 12px;
}

ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

:focus-visible {
  outline: 2px solid var(--shelld05c2-accent-2);
  outline-offset: 2px;
}

/* ===== Top tab-style header ===== */
.shelld05c2-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--shelld05c2-header-h);
  background: linear-gradient(180deg, #2b3640 0%, #1f272d 100%);
  border-bottom: 1px solid var(--shelld05c2-border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

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

.shelld05c2-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--shelld05c2-border-strong);
  background: #000;
  flex-shrink: 0;
}

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

.shelld05c2-brand-name {
  color: var(--shelld05c2-text-bright);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.5px;
}

.shelld05c2-brand-tag {
  color: var(--shelld05c2-text-mute);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Tab-style action buttons */
.shelld05c2-tabs {
  display: flex;
  gap: 4px;
  align-items: stretch;
}

.shelld05c2-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--shelld05c2-text-bright);
  background: rgba(189, 195, 199, 0.08);
  border: 1px solid var(--shelld05c2-border);
  transition: transform 0.12s ease, background 0.18s ease, color 0.18s ease;
}

.shelld05c2-tab:hover {
  background: rgba(189, 195, 199, 0.16);
}

.shelld05c2-tab:active {
  transform: scale(0.94);
}

.shelld05c2-tab--primary {
  background: linear-gradient(135deg, var(--shelld05c2-accent) 0%, var(--shelld05c2-accent-2) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(128, 0, 128, 0.35);
}

.shelld05c2-tab--ghost {
  background: transparent;
}

.shelld05c2-menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(189, 195, 199, 0.08);
  border: 1px solid var(--shelld05c2-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, background 0.18s ease;
}

.shelld05c2-menu-btn:hover {
  background: rgba(189, 195, 199, 0.18);
}

.shelld05c2-menu-btn:active {
  transform: scale(0.92);
}

.shelld05c2-menu-btn svg {
  width: 20px;
  height: 20px;
  color: var(--shelld05c2-text-bright);
}

/* ===== Layered dropdown menu ===== */
.shelld05c2-menu {
  position: absolute;
  top: calc(var(--shelld05c2-header-h) - 6px);
  right: 10px;
  width: 260px;
  max-width: calc(100vw - 20px);
  background: #20282f;
  border: 1px solid var(--shelld05c2-border-strong);
  border-radius: var(--shelld05c2-radius);
  box-shadow: var(--shelld05c2-shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 49;
}

.shelld05c2-menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.shelld05c2-menu-layer {
  margin-bottom: 6px;
}

.shelld05c2-menu-layer:last-child {
  margin-bottom: 0;
}

.shelld05c2-menu-layer-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--shelld05c2-text-mute);
  padding: 8px 10px 4px;
  border-bottom: 1px solid var(--shelld05c2-border);
  margin-bottom: 4px;
}

.shelld05c2-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--shelld05c2-text-bright);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.14s ease, transform 0.12s ease;
}

.shelld05c2-menu-link:hover {
  background: rgba(128, 0, 128, 0.18);
}

.shelld05c2-menu-link:active {
  transform: scale(0.97);
}

.shelld05c2-menu-link-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--shelld05c2-accent-2);
  flex-shrink: 0;
}

/* ===== Page wrapper ===== */
.shelld05c2-main {
  padding: 14px 14px calc(var(--shelld05c2-nav-h) + 30px);
}

/* ===== Carousel ===== */
.shelld05c2-carousel {
  position: relative;
  border-radius: var(--shelld05c2-radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shelld05c2-shadow);
  margin-bottom: 18px;
}

.shelld05c2-carousel-viewport {
  overflow: hidden;
}

.shelld05c2-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.shelld05c2-carousel-slide {
  flex: 0 0 100%;
  position: relative;
}

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

.shelld05c2-carousel-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.78) 100%);
  padding: 24px 12px 10px;
  border-radius: 0 0 var(--shelld05c2-radius) var(--shelld05c2-radius);
}

.shelld05c2-carousel-title {
  color: var(--shelld05c2-text-bright);
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
}

.shelld05c2-carousel-sub {
  color: var(--shelld05c2-text-mute);
  font-size: 12px;
  margin: 0;
}

.shelld05c2-carousel-cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--shelld05c2-accent) 0%, var(--shelld05c2-accent-2) 100%);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(128, 0, 128, 0.4);
  transition: transform 0.12s ease;
}

.shelld05c2-carousel-cta:active {
  transform: scale(0.92);
}

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

.shelld05c2-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(245, 245, 245, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
  padding: 0;
}

.shelld05c2-carousel-dot--active {
  width: 20px;
  border-radius: 999px;
  background: var(--shelld05c2-accent-2);
}

/* ===== Hero / H1 ===== */
.shelld05c2-hero {
  background: linear-gradient(135deg, rgba(128, 0, 128, 0.22) 0%, rgba(54, 69, 79, 0.55) 100%);
  border: 1px solid var(--shelld05c2-border);
  border-radius: var(--shelld05c2-radius);
  padding: 18px 16px;
  margin-bottom: 18px;
}

.shelld05c2-hero h1 {
  font-size: 22px;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.shelld05c2-hero p {
  color: var(--shelld05c2-text);
  font-size: 14px;
  margin: 0;
}

.shelld05c2-hero-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.shelld05c2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--shelld05c2-tap);
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  flex: 1;
  transition: transform 0.12s ease, box-shadow 0.18s ease;
}

.shelld05c2-btn:active {
  transform: scale(0.95);
}

.shelld05c2-btn--primary {
  background: linear-gradient(135deg, var(--shelld05c2-accent) 0%, var(--shelld05c2-accent-2) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(128, 0, 128, 0.4);
}

.shelld05c2-btn--ghost {
  background: rgba(189, 195, 199, 0.1);
  color: var(--shelld05c2-text-bright);
  border: 1px solid var(--shelld05c2-border-strong);
}

/* ===== Section headings ===== */
.shelld05c2-section {
  margin-bottom: 22px;
}

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

.shelld05c2-section-title {
  font-size: 17px;
  color: var(--shelld05c2-text-bright);
  margin: 0;
  position: relative;
  padding-left: 12px;
}

.shelld05c2-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--shelld05c2-accent) 0%, var(--shelld05c2-accent-2) 100%);
}

.shelld05c2-section-link {
  font-size: 12px;
  color: var(--shelld05c2-text-mute);
  font-weight: 600;
}

.shelld05c2-section-intro {
  color: var(--shelld05c2-text);
  font-size: 13px;
  margin: 0 0 12px;
}

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

.shelld05c2-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--shelld05c2-card);
  border: 1px solid var(--shelld05c2-border);
  border-radius: var(--shelld05c2-radius-sm);
  padding: 6px;
  text-align: center;
  transition: transform 0.14s ease, border-color 0.18s ease, background 0.18s ease;
  cursor: pointer;
  min-width: 0;
}

.shelld05c2-game-card:hover {
  border-color: var(--shelld05c2-accent-2);
  background: var(--shelld05c2-card-2);
}

.shelld05c2-game-card:active {
  transform: scale(0.94);
}

.shelld05c2-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
  margin-bottom: 6px;
}

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

/* ===== Content modules ===== */
.shelld05c2-card {
  background: var(--shelld05c2-card);
  border: 1px solid var(--shelld05c2-border);
  border-radius: var(--shelld05c2-radius);
  padding: 16px;
  margin-bottom: 14px;
}

.shelld05c2-card h2 {
  font-size: 17px;
}

.shelld05c2-card h3 {
  font-size: 14px;
  color: var(--shelld05c2-text-bright);
  margin-top: 12px;
}

.shelld05c2-card p,
.shelld05c2-card li {
  font-size: 13.5px;
  color: var(--shelld05c2-text);
}

.shelld05c2-card a {
  color: var(--shelld05c2-accent-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.shelld05c2-card a:hover {
  color: var(--shelld05c2-text-bright);
}

/* Inline chip row for achievements / categories */
.shelld05c2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.shelld05c2-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--shelld05c2-text-bright);
  background: rgba(128, 0, 128, 0.16);
  border: 1px solid rgba(128, 0, 128, 0.35);
}

.shelld05c2-chip--alt {
  background: rgba(54, 69, 79, 0.55);
  border-color: var(--shelld05c2-border-strong);
}

/* Compact stats row */
.shelld05c2-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 0;
}

.shelld05c2-stat {
  background: var(--shelld05c2-card-2);
  border: 1px solid var(--shelld05c2-border);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}

.shelld05c2-stat-num {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--shelld05c2-text-bright);
}

.shelld05c2-stat-label {
  display: block;
  font-size: 10.5px;
  color: var(--shelld05c2-text-mute);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 2px;
}

/* Payment method grid */
.shelld05c2-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.shelld05c2-pay-item {
  background: var(--shelld05c2-card-2);
  border: 1px solid var(--shelld05c2-border);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--shelld05c2-text-bright);
}

.shelld05c2-pay-item small {
  display: block;
  color: var(--shelld05c2-text-mute);
  font-weight: 500;
  font-size: 10px;
  margin-top: 2px;
}

/* ===== Extended footer (two-column directory) ===== */
.shelld05c2-extended {
  background: #161c22;
  border-top: 1px solid var(--shelld05c2-border);
  border-radius: var(--shelld05c2-radius) var(--shelld05c2-radius) 0 0;
  padding: 18px 14px 8px;
  margin: 22px -14px 0;
}

.shelld05c2-extended-brand {
  margin-bottom: 14px;
}

.shelld05c2-extended-brand p {
  font-size: 12.5px;
  color: var(--shelld05c2-text-mute);
  margin: 6px 0 0;
}

.shelld05c2-promo-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0 16px;
}

.shelld05c2-promo-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(128, 0, 128, 0.14);
  border: 1px solid rgba(128, 0, 128, 0.32);
  color: var(--shelld05c2-text-bright);
  font-size: 12.5px;
  font-weight: 600;
  transition: transform 0.12s ease, background 0.18s ease;
  min-height: 40px;
}

.shelld05c2-promo-btn:hover {
  background: rgba(128, 0, 128, 0.26);
}

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

.shelld05c2-promo-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--shelld05c2-accent-2);
}

.shelld05c2-directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 12px;
  margin-bottom: 14px;
}

.shelld05c2-directory-group h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--shelld05c2-text-mute);
  margin: 0 0 6px;
}

.shelld05c2-directory-group a {
  display: block;
  font-size: 12.5px;
  color: var(--shelld05c2-text);
  padding: 3px 0;
}

.shelld05c2-directory-group a:hover {
  color: var(--shelld05c2-text-bright);
}

.shelld05c2-disclaimer {
  font-size: 11.5px;
  color: var(--shelld05c2-text-mute);
  border-top: 1px solid var(--shelld05c2-border);
  padding-top: 10px;
  margin-top: 6px;
  line-height: 1.5;
}

.shelld05c2-copyright {
  text-align: center;
  font-size: 11.5px;
  color: var(--shelld05c2-text-mute);
  padding: 10px 14px 14px;
  background: #11161b;
  border-top: 1px solid var(--shelld05c2-border);
  margin: 0 -14px;
}

/* ===== Bottom navigation (compact icon shelf) ===== */
.shelld05c2-bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  height: var(--shelld05c2-nav-h);
  background: linear-gradient(180deg, #2b3640 0%, #1c242a 100%);
  border-top: 1px solid var(--shelld05c2-border-strong);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 60;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}

.shelld05c2-bottomnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px 8px;
  color: var(--shelld05c2-text-mute);
  font-size: 10.5px;
  font-weight: 600;
  border-top: 3px solid transparent;
  transition: color 0.16s ease, transform 0.12s ease, border-color 0.16s ease;
  min-height: var(--shelld05c2-tap);
}

.shelld05c2-bottomnav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.14s ease;
}

.shelld05c2-bottomnav-item:active {
  transform: scale(0.9);
}

.shelld05c2-bottomnav-item.is-active {
  color: var(--shelld05c2-text-bright);
  border-top-color: var(--shelld05c2-accent-2);
}

.shelld05c2-bottomnav-item.is-active svg {
  transform: scale(1.08);
  color: var(--shelld05c2-accent-2);
}

.shelld05c2-bottomnav-item.is-active .shelld05c2-bottomnav-label {
  font-weight: 800;
}

.shelld05c2-bottomnav-item:hover {
  color: var(--shelld05c2-text-bright);
}

/* Highlighted promo center button variant */
.shelld05c2-bottomnav-item--promo {
  color: var(--shelld05c2-text-bright);
}

.shelld05c2-bottomnav-item--promo svg {
  color: var(--shelld05c2-accent-2);
}

/* ===== Helpers ===== */
.shelld05c2-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shelld05c2-note {
  background: rgba(128, 0, 128, 0.1);
  border-left: 3px solid var(--shelld05c2-accent-2);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--shelld05c2-text);
  margin: 10px 0;
}

/* ===== Responsive tweaks inside mobile canvas ===== */
@media (min-width: 360px) {
  .shelld05c2-hero h1 { font-size: 24px; }
  .shelld05c2-section-title { font-size: 18px; }
}

@media (min-width: 414px) {
  .shelld05c2-game-grid { gap: 10px; }
  .shelld05c2-game-name { font-size: 12px; }
}

/* Keep 4-5 column density; switch to 5 only when room is real */
@media (min-width: 420px) {
  .shelld05c2-game-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Tightest mobile canvas: keep content legible on 320-430px handsets.
   The mobile-first design caps the canvas well below the 430px upper
   bound of the target viewport band, so narrow devices never stretch. */
@media (max-width: 430px) {
  .shelld05c2-canvas { max-width: 430px; }
  .shelld05c2-bottomnav { max-width: 430px; }
  .shelld05c2-hero h1 { font-size: 21px; }
  .shelld05c2-section-title { font-size: 16px; }
  .shelld05c2-game-grid { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .shelld05c2-game-name { font-size: 10.5px; }
  .shelld05c2-carousel-slide img { height: 172px; }
  .shelld05c2-promo-actions { grid-template-columns: 1fr; }
  .shelld05c2-directory { grid-template-columns: repeat(2, 1fr); }
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  .shelld05c2-carousel-track {
    transition: none;
  }
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
