:root {
  --bg: #0a0a0a;
  --panel: #121212;
  --muted: #9b9b9b;
  --accent: #d1d5db;
  --accent-2: #a1a1aa;
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
}


/* Base layout */
body,html {
  margin:0;
  height:100%;
  background:var(--bg);
  color:#e6eef2;
}
.app {
  display:flex;
  min-height:100vh;
}

/* Iframe for the menu */
.menu-frame {
  width:260px;
  min-width:260px;
  border:none;
  height:100vh;
  position:sticky;
  top:0;
}

/* Sidebar (inside menu.html) */
.menu-body {
  background:var(--panel);
  color:#e6eef2;
  margin:0;
  overflow:hidden;
}
.sidebar {
  display:flex;
  flex-direction:column;
  gap:16px;
  height:100vh;
  padding:20px;
  box-sizing:border-box;
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
}
.logo {
  width:44px;
  height:44px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:#01203a;
}
.menu {
  list-style:none;
  padding:0;
  margin:20px 0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.menu a {
  text-decoration:none;
  color:inherit;
  padding:10px;
  border-radius:8px;
  display:block;
  transition:background .2s;
}
.menu a:hover {
  background:rgba(255,255,255,0.05);
}
.sidebar-footer {
  margin-top:auto;
  font-size:12px;
  color:var(--muted);
}

/* Main content */
.main {
  flex:1;
  padding:40px;
  box-sizing:border-box;
}
.container {
  max-width:1000px;
  margin: 24px auto;
  background:rgba(255,255,255,0.02);
  border-radius:12px;
  padding:32px;
  box-shadow:0 0 20px rgba(0,0,0,0.5);
}

/* Landing hero */
.hero {
  display:flex;
  gap:24px;
  flex-wrap:wrap;
  align-items:center;
}
.avatar {
  width:150px;
  height:150px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.1);
}
.avatar img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.hero-right {
  flex:1;
}
.name {
  font-size:30px;
  margin:0 0 6px;
}
.role {
  color:var(--muted);
  margin-bottom:16px;
}
.button-row {
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content: center;
  margin-top: 40px;
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 32px;
  box-sizing: border-box;
}
.btn {
  text-decoration:none;
  color:#e6eef2;
  padding:10px 14px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.1);
  flex: 1 1 200px;
  text-align: center;
  font-size: 18px; 
  padding: 16px 20px;
}
.btn.primary {
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  color:#031726;
  border:none;
}
.placeholders {
  margin-top:20px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  gap:12px;
}
.ph {
  background:rgba(255,255,255,0.03);
  height:100px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  border:1px dashed rgba(255,255,255,0.05);
}

/* Mobile floating menu */
.mobile-menu-btn {
  display:none;
}
@media(max-width:900px) {
  .menu-frame {
    display:none;
  }
  .mobile-menu-btn {
    display:flex;
    position:fixed;
    bottom:20px;
    right:20px;
    width:56px;
    height:56px;
    border:none;
    border-radius:50%;
    background:linear-gradient(180deg,var(--accent),var(--accent-2));
    color:#01203a;
    font-size:24px;
    align-items:center;
    justify-content:center;
    box-shadow:0 4px 20px rgba(0,0,0,0.4);
    z-index:10;
  }
  .overlay {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.5);
    display:none;
  }
  .overlay.show {
    display:block;
  }
  iframe.menu-frame.mobile-open {
    display:block;
    position:fixed;
    top:0;
    left:0;
    width:80%;
    max-width: 320px;
    z-index:20;
    height:100vh;
  }
}

/* Game embed */
.game-box {
  position: relative;
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  height: 100%;
  max-height: 80vh;
}

.game-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.fullscreen-link {
  text-align: center;
  margin: 16px 0 0;
}

.fullscreen-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.fullscreen-link a:hover {
  color: var(--accent-2);
}

/* make sure all containers size calculations include padding */
.container,
.container-grid {
  box-sizing: border-box;
}

/* grid wrapper: two columns when space allows, gap and padding handled */
.container-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* allow columns to shrink */
  gap: 24px;
  max-width: 1000px;
  margin: 24px auto;
  padding: 0 16px;
  width: 100%;
  align-items: start;
}

/* ensure inner .container always fills its grid cell and doesn't overflow */
.container-grid .container {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

/* responsive breakpoint: force single column on small screens */
@media (max-width: 700px) {
  .container-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 12px;
  }
}