:root{
  --bg-1: #07102a;
  --bg-2: #0f1530;
  --accent-a: #7b2ff7;
  --accent-b: #ff6fb5;
  --muted: rgba(255,255,255,0.92);
  --card-bg: rgba(255,255,255,0.02);
  --topbar-height-desktop: 64px;
  --topbar-height-mobile: 56px;
}

html,body{height:100%; margin:0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;}
body{
  --topbar-height: var(--topbar-height-desktop);
  display:flex; align-items:center; justify-content:center;
  background:
    radial-gradient(900px 400px at 8% 10%, rgba(123,47,247,0.12), transparent 8%),
    radial-gradient(700px 300px at 92% 90%, rgba(255,111,181,0.06), transparent 6%),
    linear-gradient(180deg,var(--bg-1),var(--bg-2));
  color:var(--muted);
  padding-top: calc(env(safe-area-inset-top, 28px) + var(--topbar-height));
  padding-right: env(safe-area-inset-right, 20px);
  padding-bottom: env(safe-area-inset-bottom, 28px);
  padding-left: env(safe-area-inset-left, 20px);
  -webkit-font-smoothing:antialiased;
  box-sizing: border-box;
}

.topbar {
  position: fixed;
  top: env(safe-area-inset-top, 12px);
  left: 0;
  right: 0;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  pointer-events: none;
}

.topnav {
  pointer-events: auto;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 6px 12px;
  border-radius: 12px;
}

.tab {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  letter-spacing: 0.2px;
  transition: transform .12s ease, background .12s ease;
  background: transparent;
  box-shadow: none;
}
.tab:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.02);
}
.tab--active {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: white;
  box-shadow: 0 8px 28px rgba(123,47,247,0.12);
}

.menu-button {
  pointer-events: auto;
  position: absolute;
  right: 12px;
  top: 6px;
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  z-index: 1300;
}
.menu-button:focus { outline: 2px solid rgba(255,255,255,0.08); }

.menu-button .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--muted), rgba(255,255,255,0.6));
  border-radius: 2px;
}

.mobile-menu {
  position: absolute;
  right: 8px;
  top: calc(var(--topbar-height) + 8px);
  width: min(92vw, 320px);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(2,6,23,0.6);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
  z-index: 1250;
  overflow: hidden;
}

.mobile-menu--open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mobile-menu-item {
  display: block;
  width: 100%;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  background: transparent;
}
.mobile-menu-item:last-child { border-bottom: none; }
.mobile-menu-item:active,
.mobile-menu-item:focus,
.mobile-menu-item:hover {
  background: rgba(255,255,255,0.02);
}

.card{
  width:100%;
  max-width:920px;
  background: transparent;
  padding:28px 20px;
  border-radius:0;
  text-align:center;
  box-shadow: none;
}

.stack{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
}

.tagline {
  font-family: "Dancing Script", "Segoe Script", cursive;
  font-weight: 1100;
  font-size: clamp(24px, 3.2vw, 36px);
  margin:0;
  color: #ffffffcc;
  text-align:center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub,
.sub2 {
  font-family: "Russo One", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 350;
  font-size: 28px;
  margin:0;
  color: #ffffffcc;
  text-align:center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub2 .inline-icon {
  display: inline-block;
  width: 96px;
  height: 72px;
  object-fit: cover;
  max-width: none !important;
  vertical-align: middle;
  margin: 0 0.35ch;
  overflow: hidden;
  transform: translateY(-0.28em);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0 0 0 0); 
  white-space: nowrap; 
  border: 0;
}

.brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0;
  margin-top:6px;
}

.logo {
  display:block;
  width:24px;
  height:24px;
  object-fit:contain;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding:2px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.36), inset 0 -6px 18px rgba(0,0,0,0.12);
  margin:0;
}

.site-title {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.8px;
  margin-top: 6px;
  margin-bottom: 40px;
  background: linear-gradient(90deg,
    #f8df05 0%,
    #eb0707 50%,
    #43d503 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #f8df05;
  text-shadow: 0 6px 24px rgba(0,0,0,0.45);
  display: inline-block;
}

.play {
  display:inline-block;
  text-decoration:none;
  font-weight:800;
  font-size: clamp(16px,2.4vw,20px);
  padding:12px 32px;
  border-radius:999px;
  background: linear-gradient(90deg,var(--accent-a),var(--accent-b));
  color:white;
  box-shadow: 0 10px 30px rgba(123,47,247,0.18), 0 4px 8px rgba(0,0,0,0.32);
  transition: transform .12s ease;
  margin-top:35px;
  margin-bottom:35px;
}
.play:active { transform:translateY(1px); }

.games-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-top: -6px;
  flex-wrap: wrap;
}

.game-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  padding: 8px;
  background: rgba(255,255,255,0.02);
  box-shadow: 0 6px 18px rgba(2,6,23,0.35);
  transition: transform .12s ease, box-shadow .12s ease;
}

.game-icon:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(2,6,23,0.45);
}

@media (max-width:540px){
  :root { --topbar-height: var(--topbar-height-mobile); }
  .tagline { white-space: normal; font-size:26px; }
  .sub, .sub2 { white-space: nowrap; font-size:18px; }
  .logo { width:24px; height:24px; padding:4px; }
  .site-title { font-size: clamp(22px, 9vw, 30px); }
  .card { padding:28px 18px; border-radius:12px; }
  .game-icon { width:36px; height:36px; padding:6px; }
  .games-row { gap:12px; margin-top:6px; }

  .topnav { display: none; }
  .menu-button { display: flex; }
  .mobile-menu {
    right: 6px;
    top: calc(var(--topbar-height) + 8px);
    width: min(94vw, 300px);
  }
}

html, body { overflow-x: hidden; }
html, body { overscroll-behavior-y: contain; }

.card {
  min-height: calc(100vh - var(--topbar-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.stack {
  width: 100%;
  max-width: 920px;
  padding: 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

@media (min-width: 420px) and (max-width: 480px) and (orientation: portrait) {
  .site-title {
    margin-bottom: 72px;
  }

  .play {
    margin-top: 64px;
    margin-bottom: 64px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .topbar {
    transform: translate(-12px, 15px);
    -webkit-transform: translate(-12px, 15px);
  }
}

@media (min-width: 541px) {
  .menu-button,
  .mobile-menu {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .topnav {
    gap: 48px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .tab--active {
    background: linear-gradient(90deg, #d9f5ff 0%, #bfeaff 100%);
    color: #05345a;
    box-shadow: 0 8px 28px rgba(5,52,90,0.08);
  }

  .tab--active:hover {
    transform: none;
    background: linear-gradient(90deg, #d9f5ff 0%, #bfeaff 100%);
  }
}

:root {
  --active-bg: linear-gradient(90deg, #d9f5ff 0%, #bfeaff 100%);
  --active-text: #05345a;
}

@media (min-width: 541px) {
  .tab--active {
    background: var(--active-bg) !important;
    color: var(--active-text) !important;
    box-shadow: 0 8px 28px rgba(5,52,90,0.08) !important;
  }
}

.mobile-menu { display: none !important; }

.mobile-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,6,23,0.60);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.mobile-modal.mobile-modal--open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-modal-panel {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  color: #05345a;
  box-shadow: 0 20px 80px rgba(2,6,23,0.65);
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.mobile-modal-header {
  height: 56px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 12px;
  box-sizing: border-box;
  z-index: 2;
}

.mobile-modal-close {
  background: transparent;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: rgba(5,52,90,0.95);
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.mobile-modal-close:focus { outline: 2px solid rgba(5,52,90,0.12); }

.mobile-modal-list {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0 16px 0;
  box-sizing: border-box;
  flex: 1 1 auto;
}

.mobile-modal-item {
  display: block;
  width: 100%;
  padding: 18px 20px;
  text-decoration: none;
  color: rgba(5,52,90,0.65);
  font-weight: 500;
  font-size: 18px;
  border-top: 1px solid rgba(2,6,23,0.06);
  background: transparent;
  box-sizing: border-box;
}
.mobile-modal-item:first-child { border-top: none; }

.mobile-modal-item--active {
  font-weight: 800;
  color: #05345a;
  background: rgba(5,52,90,0.04);
}

.mobile-modal-item:hover,
.mobile-modal-item:focus { background: rgba(2,6,23,0.04); outline: none; }

body.no-scroll { overflow: hidden !important; }

@media (max-width: 540px) {
  .menu-button { display: flex !important; }
}

