    * { 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);
      --radius: 18px;
      --radius-sm: 12px;
    }

    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 {
      display: flex;
      align-items: center;
      gap: 4px;
      list-style: none;
      padding: 0;
      margin: 0;
      flex-wrap: wrap;
      justify-content: center;
    }

    .menu > li {
      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;
    }

    .submenu {
	  display: none;
	  position: absolute;
	  top: 100%;
	  left: 0;
	  margin-top: 0;
	  padding-top: 8px; /* keeps visual breathing room without breaking hover */
      min-width: 190px;
      padding: 8px;
      margin: 0;
      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;
    }

    .menu li:hover > .submenu {
      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;
    }
	.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);
	}
	
	.has-submenu {
	  position: relative;
	}
	
	.has-submenu::after {
	  content: "";
	  position: absolute;
	  left: 0;
	  top: 100%;
	  width: 100%;
	  height: 12px;
	}
	
	.submenu {
	  display: none;
	  position: absolute;
	  top: 100%;
	  left: 0;
	  margin-top: 0;
	  padding: 8px;
	  padding-top: 10px;
	  min-width: 190px;
	  border-radius: 14px;
	}
	
	.has-submenu:hover > .submenu,
	.has-submenu:focus-within > .submenu,
	.submenu:hover {
	  display: block;
	}
	 
	@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;
	  }
	}
    /* 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 1:2:1 layout */
    .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;
    }

    /* Left rail */
    .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;
	}
	.showcase-card:first-child {
	  scroll-margin-top: 0;
	}
	.showcase-card {
	  scroll-margin-top: 8px;
	}
	.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;
	}
    .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 section */
    .center-stack {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .center-topbar {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      padding: 18px 20px;
      background: var(--card);
      border: 1px solid var(--line-soft);
      border-radius: 20px;
      box-shadow: var(--shadow-soft);
    }

    .center-copy h2 {
      margin: 0 0 6px;
      font-size: 1.1rem;
      color: #101828;
    }

    .center-copy p {
      margin: 0;
      color: var(--muted);
      font-size: 0.94rem;
      line-height: 1.55;
    }

    .action-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .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: linear-gradient(180deg, #3a73eb, #2f6fed);
      color: #fff;
    }

    .btn-secondary {
      background: #eef2f7;
      color: #334155;
      box-shadow: none;
      border: 1px solid #d8dee7;
    }

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

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

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

    .phone-frame {
      width: 100%;
      max-width: 375px;
      height: 760px;
      background: #0e1014;
      border-radius: 32px;
      padding: 14px 6px 8px;
      box-shadow: 0 24px 44px rgba(0,0,0,0.22);
      position: relative;
      overflow: hidden;
    }

    .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;
    }

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

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

    /* Right rail 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;
    }

    /* Lower info cards */
    .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;
    }

    .links {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 14px;
    }

    .links a {
      color: var(--accent);
      font-weight: 700;
      font-size: 0.92rem;
    }

    footer {
      max-width: 1440px;
      margin: 0 auto;
      padding: 18px 18px 36px;
      text-align: center;
      color: #7a8797;
      font-size: 0.92rem;
    }
	.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;
	  flex: 1;
	}
	.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; }	
	
	.btn-primary {
	  background: #2563eb;   /* clean blue */
	  color: #fff;
	  border: none;
	}
	
	.btn-primary:hover {
	  background: #1e4fd1;
	}
	
	.btn-secondary {
	  background: #d1d5db;   /* stronger gray */
	  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);
	}
		
	@media (max-width: 900px) {
	  .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 {
        max-width: 100%;
        height: 100vh;
        width: 88vh;
    	max-width: 350px;
        min-height: 640px;
        border-radius: 24px;
      }
	}
    @media (max-width: 1180px) {
      .tri-layout {
        grid-template-columns: 1fr;
      }

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

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

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

    @media (max-width: 640px) {
      .menu {
        justify-content: center;
      }

      .hero {
        padding: 20px 12px 10px;
      }

      .hero-card,
      .center-topbar,
      .frame-panel {
        padding-left: 14px;
        padding-right: 14px;
      }

      .phone-frame {
        max-width: 100%;
        height: 105vh;
        width: 88vh;
    	max-width: 350px;
        min-height: 640px;
        border-radius: 24px;
      }

      .phone-notch {
        display: none;
      }

      .game-window {
        border-radius: 18px;
        transform: scale(0.97);   /* zoom out slightly */
  		transform-origin: top center;
      }
    }