* { box-sizing: border-box; }

:root {
  --bg: #eef1f4;
  --panel: #f7f8fa;
  --card: #ffffff;
  --line: #d9dde3;
  --line-soft: #e8ebef;
  --text: #1f2937;
  --muted: #667085;
  --accent: #2f6fed;
  --accent-soft: #eaf1ff;
  --dark: #16181d;
  --dark-2: #22252b;
  --shadow: 0 10px 26px rgba(16, 24, 40, 0.08);
  --shadow-soft: 0 6px 18px rgba(16, 24, 40, 0.06);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}

body { min-height: 100vh; }

a {
  color: inherit;
  text-decoration: none;
}

/* TOP BAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 24, 29, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8ba8ff, #d6e0ff);
  box-shadow: 0 0 0 6px rgba(138,168,255,0.12);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.55rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.08);
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.menu > li,
.has-submenu {
  position: relative;
}

.menu > li > a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.menu > li > a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.has-submenu::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 12px;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 8px;
  padding-top: 10px;
  min-width: 190px;
  list-style: none;
  border-radius: 14px;
  background: #1d2026;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 36px rgba(0,0,0,0.28);
}

.submenu li a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.86);
  font-size: 0.92rem;
}

.submenu li a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.submenu:hover {
  display: block;
}

.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.menu-right {
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
  white-space: nowrap;
}

/* HERO */
.hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 18px 12px;
}

.hero-card {
  background: linear-gradient(180deg, #f8f9fb, #f3f5f8);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 28px 28px 22px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 2.15rem;
  font-weight: 700;
  color: #141821;
}

.hero p {
  margin: 0 auto;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

/* MAIN */
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 18px 40px;
}

.tri-layout {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.panel-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fbfcfd, #f6f8fa);
}

.panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.panel-sub {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* GAME SHOWCASE */
.games-panel {
  min-height: 880px;
  display: flex;
  flex-direction: column;
}

.games-scroll {
  padding: 16px;
  max-height: 810px;
  overflow-y: auto;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.games-scroll.is-paused {
  scroll-behavior: auto;
}

.games-scroll::-webkit-scrollbar {
  width: 8px;
}

.games-scroll::-webkit-scrollbar-thumb {
  background: #cfd6df;
  border-radius: 999px;
}

.games-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.showcase-card {
  scroll-margin-top: 8px;
}

.showcase-card:first-child {
  scroll-margin-top: 0;
}

.game-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f7f9fb);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #cfd7e3;
}

.game-thumb {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  flex: 0 0 76px;
  object-fit: cover;
  background: #e8ebef;
  border: 1px solid var(--line-soft);
}

.game-info h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #111827;
}

.game-info p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f4f8;
  color: #465467;
  font-size: 0.78rem;
  border: 1px solid #e1e6ec;
}

/* CENTER */
.center-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.frame-panel {
  background: linear-gradient(180deg, #edf1f5, #e8edf2);
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.frame-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-controls {
  width: 100%;
  max-width: 430px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}
.viewer-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}

.viewer-controls {
  width: 150px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: center;
}

.viewer-controls .btn,
.viewer-controls .status-pill {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.phone-shell-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.phone-frame {
  width: min(96vw, 430px);
  height: calc(100vh - 95px); /* fits below top bar */
  min-height: 786px;
  max-height: 920px;

  background: #0e1014;
  border-radius: 28px;
  padding: 8px 5px 6px;
  box-shadow: 0 24px 44px rgba(0,0,0,0.22);

  position: relative;
  overflow: hidden;
}

.game-window {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 22px;
  background: #fff;
  display: block;
}

.phone-notch {
  width: 132px;
  height: 22px;
  background: #181b20;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.frame-note {
  text-align: center;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* BUTTONS */
.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 8px 20px rgba(47,111,237,0.14);
}

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

.btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #1e4fd1;
}

.btn-secondary {
  background: #d1d5db;
  color: #1f2937;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  border: 1px solid #c7ccd1;
  font-weight: 600;
}

.btn-secondary:hover {
  background: #c4c9cf;
}

.btn-secondary:active {
  background: #b8bdc3;
  transform: scale(0.97);
}

.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #f6f8fb;
  color: #5a6778;
  border: 1px solid #e2e8f0;
}

/* ADS */
.ads-panel {
  min-height: 880px;
  display: flex;
  flex-direction: column;
}

.ads-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ad-slot {
  min-height: 250px;
  border-radius: 18px;
  border: 1px dashed #cdd5df;
  background: linear-gradient(180deg, #fbfcfd, #f4f6f8);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #697586;
  padding: 16px;
}

.ad-slot.slim {
  min-height: 120px;
}

/* INFO GRID */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #101828;
}

.info-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.93rem;
}

/* FOOTER */
.site-footer {
  max-width: 1440px;
  margin: 24px auto 0;
  padding: 14px 18px 28px;
  text-align: center;
  background: #181b20;
  color: #e7ebf1;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-copy p {
  margin: 0.1rem 0;
  font-size: 0.7rem;
  line-height: 1.7;
}

.footer-copy a {
  color: #8faeff;
}

.rounded-social-buttons {
  text-align: center;
  margin-top: 8px;
}

.rounded-social-buttons .social-button {
  display: inline-block;
  position: relative;
  cursor: pointer;
  width: 1.45rem;
  height: 1.45rem;
  border: 0.125rem solid transparent;
  padding: 0;
  text-decoration: none;
  text-align: center;
  color: #fefefe;
  font-size: 0.62rem;
  line-height: 2.2em;
  border-radius: 999px;
  transition: all 0.35s ease;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}

.rounded-social-buttons .social-button:hover {
  transform: rotate(360deg);
}

.rounded-social-buttons .fa-twitter,
.rounded-social-buttons .fa-facebook-f,
.rounded-social-buttons .fa-linkedin,
.rounded-social-buttons .fa-tiktok,
.rounded-social-buttons .fa-youtube,
.rounded-social-buttons .fa-instagram {
  font-size: 10px;
}

.rounded-social-buttons .social-button.facebook { background: #3b5998; }
.rounded-social-buttons .social-button.twitter { background: #55acee; }
.rounded-social-buttons .social-button.linkedin { background: #007bb5; }
.rounded-social-buttons .social-button.tiktok { background: #000000; }
.rounded-social-buttons .social-button.youtube { background: #bb0000; }
.rounded-social-buttons .social-button.instagram { background: #125688; }

/* TABLET */
@media (max-width: 1180px) {
  .tri-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    margin-right: 0;
  }
  .center-stack {
    order: 1;
  }

  .games-panel {
    order: 2;
  }

  .ads-panel {
    order: 3;
  }
  .games-panel,
  .center-stack,
  .ads-panel {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .games-panel,
  .ads-panel {
    min-height: auto;
  }

  .games-scroll {
    max-height: none;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

.game-notes-mini {
  width: 100%;
  max-width: 430px;
  height: 120px;
  min-height: 120px;
  max-height: 120px;
  margin: 0 auto 18px;

  padding: 14px 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);

  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

#gameNotesTitle {
  margin: 0 0 8px;
  min-height: 28px;
  max-height: 32px;
  overflow: hidden;

  font-size: 1rem;
  line-height: 1.25;
  color: #111827;
  text-align: center;

  opacity: 1;
  transition: opacity 0.35s ease;
}

#gameNotesText {
  margin: 0 auto;
  max-width: 95%;
  height: 44px;
  overflow-y: auto;

  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--muted);
  text-align: center;

  opacity: 1;
  transition: opacity 0.35s ease;
}

.game-notes-mini h2 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #111827;
}

.game-notes-mini p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

/* REVIEW MODAL */
.review-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.review-modal.open {
  display: flex;
}

.review-box {
  width: min(92vw, 420px);
  background: #ffffff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  position: relative;
  text-align: left;
}

.review-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #64748b;
}

.review-box h2 {
  margin: 0 0 8px;
  color: #111827;
}

.review-box p {
  margin: 0 0 14px;
  color: #64748b;
}

.review-stars {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.review-stars span {
  font-size: 32px;
  color: #cbd5e1;
  cursor: pointer;
}

.review-stars span.active {
  color: #facc15;
}

#reviewText {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  resize: vertical;
  font-size: 0.95rem;
}

.review-submit {
  margin-top: 14px;
  width: 100%;
}

.btn-review {
  background: #334155;
  color: #fff;
  border: 1px solid #475569;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.btn-review:hover {
  background: #1f2937;
}

/* MOBILE MENU + MOBILE LAYOUT */
@media (max-width: 900px) {
  .topbar-inner {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex: 1;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex: 0 0 auto;
  }

  .menu-right {
    display: none;
  }

  .menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    width: 180px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 8px;
    background: rgba(32, 35, 42, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.28);
    z-index: 999;
  }

  .menu.open {
    display: flex;
  }

  .menu > li > a {
    width: 100%;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 170px;
    margin: 0;
    padding: 8px;
    background: rgba(42, 46, 56, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.24);
    z-index: 1000;
  }

  .has-submenu.open::before,
  .has-submenu:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 12px;
    height: 100%;
  }

  .has-submenu.open > .submenu {
    display: block;
  }

  .page {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    overflow-x: hidden;
  }

  .tri-layout {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    margin-right: 0;
  }

  .games-panel,
  .center-stack,
  .ads-panel {
    width: 100%;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
  }
/* MOBILE ORDER SWAP */
  .games-panel {
    order: 2;
  }

  .center-stack {
    order: 1;
  }

  .ads-panel {
    order: 3;
  }
  .games-scroll {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .game-card {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .viewer-layout {
    flex-direction: column;
    align-items: center;
  }

  .viewer-controls {
    width: 100%;
    max-width: 375px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-self: auto;
  }

  .viewer-controls .btn,
  .viewer-controls .status-pill {
    width: auto;
    min-width: 140px;
  }

  .phone-frame {
    width: 100%;
    max-width: 430px;
  }
}

/* SMALL MOBILE */
@media (max-width: 640px) {
  .hero {
    padding: 16px 12px 8px;
    display: flex;
    justify-content: center;
  }

  .hero-card {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 18px 14px 16px;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .hero p {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .games-panel,
  .center-stack,
  .ads-panel {
    max-width: calc(100vw - 20px);
  }

  .frame-panel {
    padding-left: 14px;
    padding-right: 14px;
  }
  .game-notes-mini {
    height: 88px;
    min-height: 88px;
    max-height: 88px;
    margin-bottom: 12px;
    padding: 10px 12px;
  }

  #gameNotesTitle {
    font-size: 0.9rem;
    min-height: 22px;
    max-height: 24px;
    margin-bottom: 4px;
  }

  #gameNotesText {
    height: 34px;
    font-size: 0.8rem;
    line-height: 1.25;
  }


	 .phone-frame {
	    width: min(96vw, 430px);
	    height: calc(100vh - 88px);
	    min-height: 660px;
	    border-radius: 24px;
	  }
	
	  .phone-notch {
	    display: none;
	  }
	
	  .game-window {
	    border-radius: 18px;
	  }
}

.site-stats-panel {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  text-align: center;
}

.site-stat {
  padding: 8px 4px;
  border-right: 1px solid #ddd;
}

.site-stat:last-child {
  border-right: none;
}

.site-stat-icon,
.site-stat-label,
.site-stat-value {
  display: block;
}

.site-stat-icon {
  font-size: 1.1rem;
}

.site-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
}

.site-stat-value {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1565c0;
}

@media (max-width: 480px) {
  .site-stats-panel {
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 6px;
  }

  .site-stat-label {
    font-size: 0.55rem;
  }

  .site-stat-value {
    font-size: 0.68rem;
  }

  .site-stat-icon {
    font-size: 0.8rem;
  }
}
@media (max-width:480px){

  .myprofile{
      margin-bottom:4px;
      padding-bottom:4px;
  }

  .site-stats-panel{
      margin-top:0;
      margin-bottom:-17px;
  }
}

/* ==================================================================
   LUDOWORLD BRAND V1 â€” WHERE THE WORLD COMES TO PLAY
   Visual overrides only. Existing portal mechanics remain intact.
================================================================== */

:root{
  --lw-bg:#050817;
  --lw-bg-2:#090d25;
  --lw-panel:#0d1430;
  --lw-panel-2:#111a3d;
  --lw-line:rgba(126,101,255,.20);
  --lw-white:#f8fbff;
  --lw-muted:#aab4d0;
  --lw-purple:#9b4dff;
  --lw-pink:#ef4d9b;
  --lw-red:#ff4d5f;
  --lw-orange:#ff9f1c;
  --lw-blue:#3488ff;
  --lw-cyan:#2fd1ff;
  --lw-green:#2ecc71;
  --lw-yellow:#ffc107;
  --lw-shadow:0 24px 70px rgba(0,0,0,.38);
}

html,body{
  background:
    radial-gradient(circle at 15% 10%,rgba(112,48,255,.13),transparent 28%),
    radial-gradient(circle at 80% 22%,rgba(52,136,255,.10),transparent 30%),
    linear-gradient(180deg,#040614 0%,#080c20 48%,#050817 100%);
  color:var(--lw-white);
  font-family:Inter,Poppins,"Segoe UI",Arial,sans-serif;
}

body{
  min-height:100vh;
}

/* NAVIGATION */

.topbar{
  position:sticky;
  top:0;
  background:rgba(4,7,20,.88);
  border-bottom:1px solid rgba(114,104,255,.18);
  box-shadow:0 12px 35px rgba(0,0,0,.25);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.topbar-inner{
  max-width:1500px;
  min-height:76px;
  padding:8px 22px;
}

.brand{
  gap:8px;
}

.lw-brand-link{
  display:flex;
  align-items:center;
  min-width:205px;
}

.lw-brand-logo{
  display:block;
  height:58px;
  width:auto;
  max-width:250px;
  object-fit:contain;
  filter:drop-shadow(0 6px 18px rgba(82,72,255,.16));
}

.brand-mark{display:none}

.menu > li > a{
  color:#eef2ff;
  font-weight:650;
  padding:10px 13px;
  border-radius:999px;
}

.menu > li > a:hover{
  background:linear-gradient(90deg,rgba(155,77,255,.16),rgba(52,136,255,.12));
  color:#fff;
}

.submenu{
  background:rgba(10,13,35,.96);
  border:1px solid rgba(126,101,255,.22);
}

.menu-right{
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px 13px;
  border:1px solid rgba(126,101,255,.32);
  border-radius:999px;
  color:#e5e9ff;
  background:rgba(255,255,255,.025);
}

.portal-dot{
  width:7px;height:7px;border-radius:50%;
  background:#2ecc71;
  box-shadow:0 0 12px #2ecc71;
}

/* HERO */

.lw-hero{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid rgba(126,101,255,.12);
  background:
    radial-gradient(circle at 60% 34%,rgba(52,136,255,.15),transparent 23%),
    radial-gradient(circle at 74% 58%,rgba(155,77,255,.14),transparent 34%),
    linear-gradient(120deg,#050817 0%,#080b22 54%,#07132b 100%);
}

.lw-hero::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.25;
  pointer-events:none;
  background-image:
    radial-gradient(circle at 8% 22%,#fff 0 1px,transparent 1.5px),
    radial-gradient(circle at 18% 72%,#7fb8ff 0 1px,transparent 1.5px),
    radial-gradient(circle at 32% 14%,#fff 0 1px,transparent 1.5px),
    radial-gradient(circle at 45% 82%,#b26cff 0 1px,transparent 1.5px),
    radial-gradient(circle at 68% 15%,#fff 0 1px,transparent 1.5px),
    radial-gradient(circle at 86% 67%,#4fc3ff 0 1px,transparent 1.5px),
    radial-gradient(circle at 94% 23%,#fff 0 1px,transparent 1.5px);
  background-size:210px 210px,250px 250px,190px 190px,280px 280px,230px 230px,260px 260px,180px 180px;
}

.lw-hero-inner{
  position:relative;
  z-index:2;
  width:min(1460px,94%);
  margin:auto;
  min-height:690px;
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(460px,1.1fr);
  gap:40px;
  align-items:center;
  padding:55px 0 45px;
}

.lw-hero-copy{
  max-width:650px;
}

.lw-kicker{
  display:inline-flex;
  padding:8px 14px;
  margin-bottom:22px;
  border:1px solid rgba(155,77,255,.28);
  border-radius:999px;
  color:#dabfff;
  background:rgba(155,77,255,.09);
  font-size:12px;
  font-weight:800;
  letter-spacing:.11em;
}

.lw-hero h1{
  margin:0 0 22px;
  color:#fff;
  font-size:clamp(56px,6.3vw,94px);
  line-height:.96;
  letter-spacing:-.055em;
  font-weight:850;
}

.world-word{
  background:linear-gradient(90deg,#ef4d9b 0%,#ff6b4a 34%,#ff9f1c 60%,#9b4dff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.lw-hero-lead{
  max-width:610px;
  margin:0 0 18px;
  color:#c9d1e6;
  font-size:19px;
  line-height:1.7;
}

.lw-brand-lines{
  display:flex;
  flex-direction:column;
  gap:3px;
  margin:0 0 28px;
  color:#dce3f6;
  font-size:15px;
}

.lw-brand-lines span:last-child{
  color:#66d7ff;
}

.lw-hero-actions{
  display:flex;
  flex-direction:column;
  gap:14px;

  width:100%;
  max-width:560px;
}

.lw-play-now,
.lw-learn-btn{
  width:100%;
  min-height:52px;
  padding:0 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:13px;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  transition:transform .22s ease,box-shadow .22s ease;
}

.lw-play-now{
  border:0;
  color:white;
  background:linear-gradient(100deg,#ff8145 0%,#ef4d9b 48%,#8c4dff 100%);
  box-shadow:0 14px 34px rgba(239,77,155,.22);
}

.lw-learn-btn{
  color:#fff;
  border:1px solid rgba(63,207,255,.52);
  background:rgba(7,16,42,.72);
}



.lw-play-now:hover,
.lw-learn-btn:hover{
  transform:translateY(-3px);
}

.lw-mini-features{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:32px;
}

.lw-mini-features div{
  display:flex;
  align-items:center;
  gap:9px;
  color:#c8d0e4;
  font-size:11px;
  line-height:1.35;
}

.lw-mini-features b{
  font-size:20px;
}

.lw-hero-art{
  position:relative;
  min-height:570px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lw-globe-art{
  position:relative;
  z-index:2;
  width:min(680px,100%);
  max-height:570px;
  object-fit:cover;
  object-position:center top;
  border-radius:50%;
  filter:drop-shadow(0 35px 55px rgba(0,0,0,.38));
  mix-blend-mode:screen;
  animation:lwFloat 7s ease-in-out infinite;
}

@keyframes lwFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-9px)}
}

.lw-dice-moon{
  position:absolute;
  z-index:4;
  top:7%;
  right:7%;
  width:74px;height:74px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:22px;
  color:#2c1c10;
  font-size:58px;
  line-height:1;
  background:radial-gradient(circle at 35% 30%,#fff,#ffe8bf 48%,#d79a62 100%);
  box-shadow:0 0 38px rgba(255,185,95,.45);
  transform:rotate(15deg);
  animation:moonSpin 14s linear infinite;
}

@keyframes moonSpin{
  to{transform:rotate(375deg)}
}

.lw-orbit{
  position:absolute;
  left:50%;
  top:50%;
  border:1px solid;
  border-radius:50%;
  transform:translate(-50%,-50%) rotate(-12deg);
  pointer-events:none;
}

.orbit-red{
  width:83%;height:41%;
  border-color:rgba(255,77,95,.45);
  box-shadow:0 0 18px rgba(255,77,95,.2);
}
.orbit-blue{
  width:89%;height:50%;
  border-color:rgba(52,136,255,.40);
  transform:translate(-50%,-50%) rotate(13deg);
}
.orbit-green{
  width:78%;height:59%;
  border-color:rgba(46,204,113,.30);
  transform:translate(-50%,-50%) rotate(35deg);
}
.orbit-yellow{
  width:73%;height:52%;
  border-color:rgba(255,193,7,.28);
  transform:translate(-50%,-50%) rotate(-38deg);
}

.lw-hero-badge{
  position:absolute;
  z-index:5;
  right:3%;
  bottom:6%;
  padding:14px 17px;
  border:1px solid rgba(126,101,255,.24);
  border-radius:15px;
  background:rgba(7,10,30,.78);
  backdrop-filter:blur(12px);
  box-shadow:0 16px 40px rgba(0,0,0,.3);
}

.lw-hero-badge strong,
.lw-hero-badge span{
  display:block;
}

.lw-hero-badge strong{
  color:#fff;
  font-size:13px;
}

.lw-hero-badge span{
  margin-top:3px;
  color:#9aa8ca;
  font-size:11px;
}

/* HIGHLIGHT STRIP */

.lw-stats-strip{
  width:min(1400px,92%);
  margin:-26px auto 26px;
  position:relative;
  z-index:4;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid rgba(126,101,255,.20);
  border-radius:18px;
  overflow:hidden;
  background:rgba(10,14,38,.90);
  box-shadow:0 18px 55px rgba(0,0,0,.30);
  backdrop-filter:blur(14px);
}

.lw-stats-strip > div{
  min-height:88px;
  padding:15px 20px;
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  column-gap:12px;
  align-items:center;
  border-right:1px solid rgba(255,255,255,.07);
}

.lw-stats-strip > div:last-child{
  border-right:0;
}

.lw-stat-icon{
  grid-row:1 / 3;
  width:42px;height:42px;
  display:flex;align-items:center;justify-content:center;
  border-radius:12px;
  background:rgba(255,255,255,.05);
}

.lw-stats-strip strong{
  color:#fff;
  font-size:15px;
}

.lw-stats-strip small{
  color:#8e9ab9;
  font-size:11px;
}

/* EXISTING PORTAL â€” NEW SKIN */

.page{
  max-width:1460px;
  padding:18px 18px 44px;
}

.lw-portal-heading{
  padding:30px 0 20px;
  text-align:center;
}

.lw-portal-heading span{
  color:#b468ff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.16em;
}

.lw-portal-heading h2{
  margin:8px 0 8px;
  color:#fff;
  font-size:32px;
}

.lw-portal-heading p{
  margin:0;
  color:#8f9ab5;
}

.panel,
.info-card{
  background:linear-gradient(180deg,rgba(15,21,52,.96),rgba(9,14,38,.98));
  border:1px solid rgba(126,101,255,.18);
  box-shadow:var(--lw-shadow);
}

.panel-head{
  background:linear-gradient(180deg,rgba(20,28,67,.94),rgba(13,19,48,.94));
  border-bottom:1px solid rgba(126,101,255,.16);
}

.panel-title,
.info-card h3{
  color:#f8fbff;
}

.panel-sub,
.info-card p{
  color:#93a0bd;
}

.games-scroll::-webkit-scrollbar-thumb{
  background:#47537c;
}

.game-card{
  background:linear-gradient(180deg,#101936,#0b132e);
  border:1px solid rgba(126,101,255,.17);
  box-shadow:none;
}

.game-card:hover{
  border-color:rgba(155,77,255,.52);
  box-shadow:0 15px 35px rgba(0,0,0,.28);
}

.game-info h3{
  color:#f5f7ff;
}

.game-info p{
  color:#9ca8c4;
}

.tag{
  background:rgba(155,77,255,.10);
  color:#d7c2ff;
  border-color:rgba(155,77,255,.18);
}

.frame-panel{
  background:
    radial-gradient(circle at 50% 0%,rgba(155,77,255,.10),transparent 32%),
    linear-gradient(180deg,#0f1737,#091129);
  border:1px solid rgba(126,101,255,.20);
}

.phone-frame{
  background:#02040d;
  border:1px solid rgba(90,108,190,.32);
  box-shadow:0 30px 60px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.02) inset;
}

.phone-notch{
  background:#040611;
}

.game-notes-mini{
  background:#101936;
  border:1px solid rgba(126,101,255,.18);
  box-shadow:none;
}

#gameNotesTitle,
.game-notes-mini h2{
  color:#fff;
}

#gameNotesText,
.game-notes-mini p{
  color:#9eabc6;
}

.btn{
  border-radius:12px;
  box-shadow:none;
}

.btn-primary{
  color:#fff;
  background:linear-gradient(95deg,#ff8145,#ef4d9b 50%,#8c4dff);
}

.btn-primary:hover{
  background:linear-gradient(95deg,#ff925d,#f05ba3 50%,#9e63ff);
}

.btn-secondary{
  color:#dbe3ff;
  background:#151d43;
  border:1px solid rgba(126,101,255,.28);
}

.status-pill{
  color:#ccd5ee;
  background:#121a3b;
  border-color:rgba(126,101,255,.22);
}

.btn-review{
  color:#fff;
  background:#151d43;
  border-color:rgba(126,101,255,.3);
}

.ads-body{
  background:transparent;
}

.ad-slot{
  color:#808eaf;
  border-color:rgba(126,101,255,.22);
  background:
    linear-gradient(135deg,rgba(155,77,255,.05),rgba(52,136,255,.04)),
    #0b1330;
}

.site-stats-panel{
  border-color:rgba(126,101,255,.15)!important;
}

.site-stat{
  background:#101936!important;
  border-color:rgba(126,101,255,.13)!important;
  color:#fff;
}

.site-stat-label{
  color:#8f9ab6!important;
}

.site-stat-value{
  color:#fff!important;
}

.lw-card-links{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.lw-card-links a{
  padding:7px 10px;
  border-radius:999px;
  color:#c4d3ff;
  border:1px solid rgba(126,101,255,.22);
  background:#0d1535;
  font-size:12px;
}

.review-box{
  color:#eef2ff;
  background:#0f1737;
  border:1px solid rgba(126,101,255,.25);
}

.review-box h2{
  color:#fff;
}

.review-box p{
  color:#9ba8c4;
}

#reviewText{
  color:#fff;
  background:#0a112c;
  border-color:rgba(126,101,255,.24);
}

.site-footer{
  max-width:none;
  margin:30px 0 0;
  padding:25px 18px 28px;
  background:#030510;
  border-top:1px solid rgba(126,101,255,.16);
  color:#aab4d0;
}

.footer-copy a{
  color:#70b7ff;
}


/* RESPONSIVE */

@media(max-width:1180px){
  .lw-hero-inner{
    grid-template-columns:1fr 1fr;
    min-height:620px;
  }
  .lw-hero h1{
    font-size:clamp(52px,6.5vw,76px);
  }
}

@media(max-width:900px){
  .lw-brand-logo{
    height:48px;
  }

  .lw-brand-link{
    min-width:170px;
  }

  .menu{
    background:rgba(7,10,29,.97);
    border-color:rgba(126,101,255,.20);
  }

  .submenu{
    background:rgba(11,15,39,.98);
  }

  .lw-hero-inner{
    min-height:auto;
    grid-template-columns:1fr;
    padding:42px 0 70px;
    text-align:center;
  }

  .lw-hero-copy{
    margin:auto;
  }

  .lw-hero-lead{
    margin-left:auto;
    margin-right:auto;
  }

  .lw-hero-actions{
    justify-content:center;
  }

  .lw-mini-features{
    max-width:560px;
    margin-left:auto;
    margin-right:auto;
  }

  .lw-hero-art{
    min-height:430px;
    order:-1;
  }

  .lw-globe-art{
    width:min(560px,92vw);
  }

  .lw-stats-strip{
    grid-template-columns:repeat(2,1fr);
    margin-top:-20px;
  }

  .lw-stats-strip > div:nth-child(2){
    border-right:0;
  }
}

@media(max-width:640px){
  .topbar-inner{
    min-height:68px;
  }

  .lw-brand-logo{
    height:42px;
    max-width:185px;
  }

  .lw-brand-link{
    min-width:145px;
  }

  .lw-hero-inner{
    width:min(94%,430px);
    padding-top:30px;
  }

  .lw-hero-art{
    min-height:300px;
  }

  .lw-dice-moon{
    width:54px;height:54px;
    font-size:42px;
    top:2%;
    right:3%;
  }

  .lw-hero-badge{
    display:none;
  }

  .lw-kicker{
    font-size:10px;
  }

  .lw-hero h1{
    font-size:42px;
  }

  .lw-hero-lead{
    font-size:16px;
  }

  .lw-brand-lines{
    font-size:13px;
  }

  .lw-play-now,
  .lw-learn-btn{
    width:100%;
  }

  .lw-mini-features{
    grid-template-columns:repeat(2,1fr);
    padding:0 8px;
  }

  .lw-stats-strip{
    width:min(94%,430px);
    grid-template-columns:1fr 1fr;
  }

  .lw-stats-strip > div{
    min-height:78px;
    padding:12px;
  }

  .lw-stat-icon{
    width:34px;height:34px;
  }

  .lw-portal-heading h2{
    font-size:27px;
  }
}


/* ===========================================================
   LUDOWORLD BRAND V2 â€” TRUE 3D DICE MOON
=========================================================== */
.lw-dice-moon{display:none!important}
.lw-dice-orbit{position:absolute;z-index:6;top:8%;right:8%;width:86px;height:86px;perspective:650px;filter:drop-shadow(0 0 20px rgba(255,185,95,.30))}
.lw-dice-cube{position:relative;width:64px;height:64px;margin:11px;transform-style:preserve-3d;animation:diceOrbitSpin 12s linear infinite}
.dice-face{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:5px;padding:10px;border:1px solid rgba(255,255,255,.74);border-radius:12px;background:linear-gradient(145deg,#fffdf9 0%,#f6e4c4 52%,#d6a977 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset 0 -6px 14px rgba(143,86,35,.18),0 0 14px rgba(255,195,110,.18);backface-visibility:hidden}
.dice-face i{width:9px;height:9px;border-radius:50%;background:#32180f;align-self:center;justify-self:center}
.face-one{transform:translateZ(32px)}.face-six{transform:rotateY(180deg) translateZ(32px)}.face-three{transform:rotateY(90deg) translateZ(32px)}.face-four{transform:rotateY(-90deg) translateZ(32px)}.face-two{transform:rotateX(90deg) translateZ(32px)}.face-five{transform:rotateX(-90deg) translateZ(32px)}
.face-one i:nth-child(1){grid-column:2;grid-row:2}
.face-two i:nth-child(1){grid-column:1;grid-row:1}.face-two i:nth-child(2){grid-column:3;grid-row:3}
.face-three i:nth-child(1){grid-column:1;grid-row:1}.face-three i:nth-child(2){grid-column:2;grid-row:2}.face-three i:nth-child(3){grid-column:3;grid-row:3}
.face-four i:nth-child(1){grid-column:1;grid-row:1}.face-four i:nth-child(2){grid-column:3;grid-row:1}.face-four i:nth-child(3){grid-column:1;grid-row:3}.face-four i:nth-child(4){grid-column:3;grid-row:3}
.face-five i:nth-child(1){grid-column:1;grid-row:1}.face-five i:nth-child(2){grid-column:3;grid-row:1}.face-five i:nth-child(3){grid-column:2;grid-row:2}.face-five i:nth-child(4){grid-column:1;grid-row:3}.face-five i:nth-child(5){grid-column:3;grid-row:3}
.face-six i:nth-child(1){grid-column:1;grid-row:1}.face-six i:nth-child(2){grid-column:3;grid-row:1}.face-six i:nth-child(3){grid-column:1;grid-row:2}.face-six i:nth-child(4){grid-column:3;grid-row:2}.face-six i:nth-child(5){grid-column:1;grid-row:3}.face-six i:nth-child(6){grid-column:3;grid-row:3}
@keyframes diceOrbitSpin{0%{transform:rotateX(-18deg) rotateY(0deg) rotateZ(7deg)}25%{transform:rotateX(165deg) rotateY(95deg) rotateZ(18deg)}50%{transform:rotateX(310deg) rotateY(185deg) rotateZ(-6deg)}75%{transform:rotateX(485deg) rotateY(275deg) rotateZ(12deg)}100%{transform:rotateX(702deg) rotateY(360deg) rotateZ(7deg)}}
@media(max-width:640px){.lw-dice-orbit{width:64px;height:64px;top:1%;right:1%;transform:scale(.78);transform-origin:top right}}

	
	/* =========================================================
	   LUDOWORLD APP STORE BUTTONS
	========================================================= */
/* =========================================================
   PLATFORM BUTTONS — GLOBAL FINAL OVERRIDE
   MUST REMAIN AT VERY END OF indexpage.css
========================================================= */

.lw-hero-actions{
  display:flex !important;
  flex-direction:column !important;
  flex-wrap:nowrap !important;

  width:100% !important;
  max-width:560px;

  gap:14px;
}


/* WEB + HOW TO PLAY */

.lw-play-now,
.lw-learn-btn{
  width:100% !important;

  min-height:52px;

  display:flex !important;
  align-items:center;
  justify-content:center;

  gap:10px;
}


/* ANDROID + IPHONE ROW */

.lw-store-buttons{
  width:100% !important;

  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;

  gap:12px;
}


/* INDIVIDUAL STORE BUTTON */

.lw-store-btn{
  min-width:0;
  min-height:60px;

  padding:8px 16px;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  gap:11px;

  border-radius:16px;

  box-sizing:border-box;

  color:#fff;
  text-decoration:none;
}


/* ICON */

.lw-store-icon{
  width:32px;
  min-width:32px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:25px;
}


/* TEXT */

.lw-store-text{
  display:flex !important;
  flex-direction:column !important;

  align-items:flex-start;
  justify-content:center;

  line-height:1.05;
}

.lw-store-text small{
  font-size:9px;
  font-weight:700;
  letter-spacing:.12em;
  opacity:.75;
}

.lw-store-text strong{
  margin-top:4px;
  font-size:17px;
  font-weight:800;
}


/* ANDROID */

.lw-store-android{
  color:#fff !important;

  border:1px solid rgba(64,220,128,.50);

  background:
    linear-gradient(
      135deg,
      #134c3b,
      #147c4d
    ) !important;

  box-shadow:
    0 12px 26px rgba(28,180,100,.16);
}

.lw-store-android:hover{
  transform:translateY(-3px);
  border-color:#45dc83;
}


/* IPHONE */

.lw-store-ios{
  color:#fff !important;

  border:1px solid rgba(180,190,225,.24);

  background:
    linear-gradient(
      135deg,
      #22294c,
      #131835
    ) !important;
}

.lw-store-disabled{
  opacity:.52;
  cursor:not-allowed;
  pointer-events:none;
  filter:saturate(.45);
}