/* 10 Distinct Sleek Interactive In-Game Title Menu Layouts */
.gmenu-screen {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  pointer-events: auto;
  color: #f4f4f4;
  overflow: hidden;
}
.gmenu-screen.hidden { display: none; }

.gm-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  padding: 16px;
}

/* Shared sleek components */
.gm-panel, .gm-dock, .gm-corner, .gm-marquee, .gm-cabinet-deck {
  background: rgba(16, 17, 20, 0.84);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48);
}

.gm-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #b0b3bd;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.gm-pill {
  color: #fff;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gm-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin-left: auto; opacity: 0.75; }

.gm-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 5px;
  color: #ffffff;
}
.gm-tagline {
  font-size: 0.82rem;
  color: #b8bcc7;
  margin-bottom: 12px;
}

.gm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 9px;
}
.gm-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 6px 9px;
}
.gm-stat span { display: block; font-size: 0.64rem; text-transform: uppercase; color: #9499a6; }
.gm-stat strong { font-family: ui-monospace, Consolas, monospace; font-size: 0.98rem; color: #fff; }

.gm-medals { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }

.gm-mode-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.gm-sublabel { font-size: 0.74rem; font-weight: 600; color: #b5b9c4; }
.gm-modes { display: flex; gap: 4px; }

/* Interactive Soundtrack & Equalizer Deck */
.gm-audio-deck {
  background: rgba(10, 11, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 9px 11px;
  margin-bottom: 10px;
}
.gm-audio-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.gm-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
  width: 48px;
  flex-shrink: 0;
}
.eq-bar {
  flex: 1;
  height: 4px;
  background: var(--gm-accent, #e5482e);
  border-radius: 2px;
  transition: height 0.06s linear;
}
.gm-track-info { flex: 1; min-width: 0; }
.gm-track-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gm-track-sub { font-size: 0.66rem; color: #8f95a3; font-family: ui-monospace, Consolas, monospace; }
.gm-track-btns { display: flex; gap: 4px; }
.gm-mini-btn {
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e4e4e7;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}
.gm-mini-btn:hover { background: rgba(255, 255, 255, 0.16); }

.gm-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gm-sliders label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #9fa4b0;
  font-family: ui-monospace, Consolas, monospace;
}
.gm-sliders input[type="range"] {
  flex: 1;
  accent-color: var(--gm-accent, #e5482e);
  height: 4px;
  cursor: pointer;
}

.gm-controls-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 12px;
}
.gm-keys { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 4px; }
.gm-key {
  background: #25272e;
  border: 1px solid #444854;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.68rem;
  color: #f4f4f5;
}
.gm-ctrl-note { font-size: 0.74rem; color: #9ea3af; }

.gm-cta-row { display: flex; gap: 7px; flex-wrap: wrap; }
.gm-play-btn {
  flex: 1 1 130px;
  padding: 10px 16px;
  border-radius: 6px;
  border: 0;
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.15s ease;
}
.gm-play-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.gm-sec-btn {
  padding: 9px 11px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #ececef;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}
.gm-sec-btn:hover { background: rgba(255, 255, 255, 0.14); }

/* Tabs for Layout 7 */
.gm-tabs { display: flex; gap: 4px; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.gm-tab {
  flex: 1; padding: 6px 8px; border-radius: 5px; border: 1px solid transparent;
  background: transparent; color: #9ca3af; font-size: 0.76rem; font-weight: 600; cursor: pointer;
}
.gm-tab.active { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.16); }
.gm-tab-pane { display: none; }
.gm-tab-pane.active { display: block; }

/* ============================================================
   THE 10 DISTINCT STRUCTURAL LAYOUTS
   ============================================================ */

/* Layout 01: Left Split Editorial Rail */
.mlayout-01 { padding: 0; align-items: stretch; justify-content: flex-start; background: linear-gradient(90deg, rgba(10,11,14,0.85) 0%, rgba(10,11,14,0.1) 58%, transparent 100%); }
.mlayout-01 .gm-panel {
  width: 390px; max-width: 92%; height: 100%; border-radius: 0; border: 0;
  border-right: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-direction: column; justify-content: center; overflow-y: auto;
}

/* Layout 02: Bottom Cinema Dock */
.mlayout-02 { flex-direction: column; justify-content: space-between; background: linear-gradient(0deg, rgba(8,9,12,0.88) 0%, transparent 55%); }
.mlayout-02 .gm-top-strip { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mlayout-02 .gm-top-badge { background: rgba(14,15,18,0.78); border: 1px solid rgba(255,255,255,0.12); padding: 4px 10px; border-radius: 5px; font-size: 0.72rem; color: #d4d4d8; }
.mlayout-02 .gm-dock { width: 100%; padding: 14px 18px; }
.mlayout-02 .gm-dock-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.mlayout-02 .gm-dock-right { min-width: 280px; flex: 0 1 340px; }
.mlayout-02 .gm-audio-deck { margin-bottom: 0; }

/* Layout 03: Cockpit Telemetry HUD (Diagonal Corners) */
.mlayout-03 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; gap: 12px; align-items: start; }
.mlayout-03 .gm-tl { grid-column: 1; grid-row: 1; max-width: 380px; }
.mlayout-03 .gm-tr { grid-column: 2; grid-row: 1; justify-self: end; max-width: 300px; padding: 12px 14px; }
.mlayout-03 .gm-bl { grid-column: 1; grid-row: 3; max-width: 360px; padding: 12px 14px; }
.mlayout-03 .gm-br { grid-column: 2; grid-row: 3; justify-self: end; width: 320px; max-width: 100%; padding: 14px; }

/* Layout 04: Centered Glass Minimalist Showcase */
.mlayout-04 { align-items: center; justify-content: center; background: rgba(8, 9, 12, 0.5); }
.mlayout-04 .gm-panel { width: 460px; max-width: 100%; max-height: 100%; overflow-y: auto; border-top: 3px solid var(--gm-accent); }

/* Layout 05: Diagonal Cover Slash */
.mlayout-05 { align-items: center; justify-content: flex-start; padding-left: 28px; background: linear-gradient(112deg, rgba(12,13,16,0.92) 44%, transparent 66%); }
.mlayout-05 .gm-panel { width: 430px; max-width: 100%; max-height: 100%; overflow-y: auto; border-left: 6px solid var(--gm-accent); border-radius: 4px; }

/* Layout 06: Arcade Cabinet Marquee */
.mlayout-06 { flex-direction: column; justify-content: space-between; align-items: center; }
.mlayout-06 .gm-marquee { width: 100%; max-width: 680px; padding: 10px 18px; border-bottom: 3px solid var(--gm-accent); }
.mlayout-06 .gm-cabinet-deck { width: 100%; max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 16px; }
@media (max-width: 680px) { .mlayout-06 .gm-cabinet-deck { grid-template-columns: 1fr; } }

/* Layout 07: Right Studio Console with Tabs */
.mlayout-07 { padding: 0; align-items: stretch; justify-content: flex-end; background: linear-gradient(270deg, rgba(10,11,14,0.85) 0%, transparent 60%); }
.mlayout-07 .gm-right-rail {
  width: 375px; max-width: 92%; height: 100%; border-radius: 0; border: 0;
  border-left: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-direction: column; overflow-y: auto;
}

/* Layout 08: Four-Corner Open Viewport HUD */
.mlayout-08 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; gap: 10px; }
.mlayout-08 .gm-corner { background: rgba(12, 13, 16, 0.72); border-radius: 6px; padding: 12px 14px; }
.mlayout-08 .gm-tl { grid-column: 1; grid-row: 1; max-width: 340px; border-left: 3px solid var(--gm-accent); }
.mlayout-08 .gm-tr { grid-column: 2; grid-row: 1; justify-self: end; max-width: 290px; }
.mlayout-08 .gm-bl { grid-column: 1; grid-row: 3; max-width: 360px; }
.mlayout-08 .gm-br { grid-column: 2; grid-row: 3; justify-self: end; width: 320px; max-width: 100%; }

/* Layout 09: Framed Gallery Poster */
.mlayout-09 { align-items: flex-end; justify-content: center; padding: 20px; }
.mlayout-09::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,0.22); pointer-events: none; border-radius: 4px; }
.mlayout-09 .gm-panel { width: 520px; max-width: 100%; max-height: 92%; overflow-y: auto; padding: 16px 20px; }

/* Layout 10: Sleek Floating Command Pill */
.mlayout-10 { flex-direction: column; justify-content: space-between; align-items: center; }
.mlayout-10 .gm-top-strip { width: 100%; display: flex; justify-content: space-between; gap: 8px; }
.mlayout-10 .gm-top-badge { background: rgba(14,15,18,0.8); padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); font-size: 0.72rem; }
.mlayout-10 .gm-dock { width: 100%; max-width: 720px; border-radius: 14px; padding: 14px 18px; }
.mlayout-10 .gm-dock-main { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.mlayout-10 .gm-dock-right { min-width: 260px; }
.mlayout-10 .gm-audio-deck { margin-bottom: 0; }

/* Compact responsiveness inside smaller embeds */
@media (max-width: 640px) {
  .mlayout-03, .mlayout-08 { display: flex; flex-direction: column; justify-content: flex-end; overflow-y: auto; }
  .mlayout-03 .gm-tr, .mlayout-08 .gm-tr { display: none; }
}
