/* ============================================================================
   MESSY MOB 2.0 — CINEMATIC SURFACE SYSTEM
   ============================================================================

   ONE stylesheet, loaded by BOTH the homepage and MOB SOCIAL, so the two
   surfaces are literally the same system rather than two looks that resemble
   each other.

   THE DESIGN PROBLEM THIS SOLVES
   ------------------------------
   Before this file both pages carried a decade of accreted values: border
   radii from 2px to 26px, seven different shadow recipes, and cards that were
   flat `var(--panel)` rectangles with no depth. Nothing read as one network.

   THE APPROACH — "stage lighting, not decoration"
   -----------------------------------------------
   The subject is a live entertainment network that looks like a luxury
   nightclub. The material language is therefore LIGHT and METAL, not boxes:
   raised surfaces catch a light from above, gold is physically shaded with a
   dark brown shadow and a narrow near-white specular, and purple is the room
   the light sits in. Depth comes from four fixed elevation steps, never from
   invented per-component values.

   DELIBERATELY NOT DONE
   ---------------------
   - No numbered markers, no ALL-CAPS eyebrows, no "→" after link text.
   - No motion on load for every section (that is the generated-page tell).
     One slow gold sheen on the crest is the single orchestrated moment.
   - No warm-cream, no acid accent, no hairline broadsheet rules.
   ========================================================================== */

:root {
  /* ---- room ---- */
  --mm2-void:        #030208;
  --mm2-midnight:    #0A0518;
  --mm2-plum:        #150D26;
  --mm2-purple-deep: #3B0F7A;
  --mm2-purple:      #6D28D9;
  --mm2-glow:        #C4A1FF;

  /* ---- metal ---- */
  --mm2-gold-shadow: #3A2506;
  --mm2-gold-deep:   #6B4A12;
  --mm2-gold:        #F0C75E;
  --mm2-gold-lit:    #FFE08A;
  --mm2-gold-spec:   #FFFDF2;
  --mm2-platinum:    #A8AFBB;

  /* ---- type ---- */
  --mm2-text:        #F6F1E7;
  --mm2-text-2:      #D9D2C4;
  --mm2-text-3:      #A79E8F;
  --mm2-font-display: 'Cinzel', 'Cinzel Decorative', Georgia, 'Times New Roman', serif;
  --mm2-font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* ---- the only four radii ---- */
  --mm2-r-sm:  8px;
  --mm2-r-md: 14px;
  --mm2-r-lg: 20px;
  --mm2-r-pill: 999px;

  /* ---- the only four elevations ---- */
  --mm2-e1: 0 1px 2px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,253,242,.06);
  --mm2-e2: 0 6px 18px rgba(0,0,0,.50), inset 0 1px 0 rgba(255,253,242,.09);
  --mm2-e3: 0 18px 44px rgba(0,0,0,.60), inset 0 1px 0 rgba(255,253,242,.11);
  --mm2-e4: 0 34px 80px rgba(0,0,0,.70), inset 0 1px 0 rgba(255,253,242,.13);

  /* ---- gold as a physical material ---- */
  --mm2-metal: linear-gradient(100deg,
      var(--mm2-gold-shadow) 0%, var(--mm2-gold-deep) 18%,
      var(--mm2-gold) 42%, var(--mm2-gold-spec) 48%,
      var(--mm2-gold-lit) 54%, var(--mm2-gold) 64%,
      var(--mm2-gold-deep) 86%, var(--mm2-gold-shadow) 100%);
  --mm2-metal-tight: linear-gradient(100deg,
      var(--mm2-gold-deep) 0%, var(--mm2-gold) 40%,
      var(--mm2-gold-spec) 48%, var(--mm2-gold-lit) 56%, var(--mm2-gold-deep) 100%);
  /* text-only metal: denser stops so small type stays legible */
  --mm2-metal-text: linear-gradient(100deg,
      #8A6118 0%, var(--mm2-gold) 26%, var(--mm2-gold-spec) 44%,
      var(--mm2-gold-lit) 52%, var(--mm2-gold) 68%, #8A6118 100%);

  /* ---- touch ---- */
  --mm2-touch: 52px;
}

/* ============================================================ HEADINGS ===
   Dimensional display type. The gradient is a TEXT treatment only; the
   drop-shadow is what gives the metal its thickness. Small headings use the
   denser ramp so they do not wash out. */
h1, h2, h3, .mm2-display {
  font-family: var(--mm2-font-display);
  letter-spacing: .015em;
  font-weight: 700;
  line-height: 1.06;
}
h1, h2 {
  background: var(--mm2-metal-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.92));
}
/* headings that need to stay solid (inside dense UI) opt out with .plain */
h2.plain, h3, .mm2-plain {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--mm2-gold-lit);
}

/* ============================================================== ROOM ===
   The environment behind every surface. Two purple pools and a gold
   underlight, fixed so it does not scroll away. */
body {
  background:
    radial-gradient(1100px 640px at 18% -12%, rgba(109,40,217,.42), transparent 66%),
    radial-gradient(820px 520px at 88% 108%, rgba(240,199,94,.12), transparent 64%),
    linear-gradient(180deg, #0B0716 0%, var(--mm2-void) 62%);
  background-attachment: fixed;
  color: var(--mm2-text);
  font-family: var(--mm2-font-body);
}

/* =========================================================== SURFACES ===
   One card recipe. Raised, lit from above, purple body. Every surface in the
   network uses this and only varies elevation and radius by hierarchy. */
.mm2-surface,
.hub-card, .role, .checkin-card, .announcement, .trailer-feature, .chat-shell,
.card, .post, .notif {
  position: relative;
  /* the purple has to be visible on a midnight field, so the surface leans
     plum rather than near-black — 0.30 alpha read as grey in practice */
  background:
    radial-gradient(120% 100% at 12% 0%, rgba(109,40,217,.34) 0%, transparent 58%),
    linear-gradient(165deg, rgba(59,15,122,.52) 0%, rgba(28,16,52,.97) 52%, rgba(18,10,34,.99) 100%);
  border: 1px solid rgba(240,199,94,.20);
  border-radius: var(--mm2-r-lg);
  box-shadow: var(--mm2-e3);
}
/* the light catch along the top edge — this is what stops it looking flat */
.mm2-surface::before,
.hub-card::before, .role::before, .checkin-card::before, .announcement::before,
.trailer-feature::before, .chat-shell::before, .card::before, .post::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,253,242,.09) 0%, transparent 18%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}

/* secondary surfaces sit lower and darker */
.post, .notif { box-shadow: var(--mm2-e2); border-radius: var(--mm2-r-md); }

/* ============================================================== METAL ===
   Anything that should read as polished gold. */
.mm2-gold-fill, .btn.primary, .primary {
  background: var(--mm2-metal);
  background-size: 220% 100%;
  border: 0;
  color: #1A1030;
  font-weight: 800;
  box-shadow: var(--mm2-e2), 0 0 26px rgba(240,199,94,.20),
              inset 0 1px 0 rgba(255,255,255,.62);
}
/* platinum for secondary actions — quieter than gold */
.mm2-platinum-fill {
  background: linear-gradient(100deg, #6E7583, var(--mm2-platinum) 40%, #EDF1F7 50%, var(--mm2-platinum) 60%, #6E7583);
  color: #14161B;
  border: 0;
}

/* ============================================================= INPUTS ===
   Form fields were rendering near-white (rgb(232,240,254)) because the
   browser's default field styling beat the page rule. On a midnight page that
   was the single brightest thing above the fold. Forced dark, with an explicit
   colour-scheme so mobile keyboards and autofill match the theme. */
:root { color-scheme: dark; }

input, textarea, select {
  background: #0B0716 !important;
  color: var(--mm2-text) !important;
  border: 1px solid rgba(168,175,187,.26) !important;
  border-radius: var(--mm2-r-md) !important;
  min-height: var(--mm2-touch);
  padding: 12px 14px;
  font-family: var(--mm2-font-body);
  font-size: 16px;
  caret-color: var(--mm2-gold);
}
input::placeholder, textarea::placeholder { color: rgba(167,158,143,.78); }
input:focus, textarea:focus, select:focus {
  border-color: rgba(240,199,94,.65) !important;
  box-shadow: 0 0 0 3px rgba(240,199,94,.16);
}
/* Chrome/Safari paint autofilled fields with a light background unless told
   otherwise; this inset shadow is the only reliable override. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--mm2-text);
  -webkit-box-shadow: 0 0 0 1000px #0B0716 inset;
  box-shadow: 0 0 0 1000px #0B0716 inset;
  caret-color: var(--mm2-gold);
  transition: background-color 9999s ease-in-out 0s;
}

/* =========================================================== AVATARS ===
   Photo when the member has one; the approved lion crest for system posts;
   initials only as a last resort. */
.avatar { overflow: hidden; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar--lion {
  background: radial-gradient(circle at 35% 25%, #3B0F7A, #09040F) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.55), inset 0 0 0 1.5px rgba(240,199,94,.6) !important;
}
.avatar--lion img { border-radius: inherit; }

/* ====================================================== CINEMATIC CARD ===
   The metal edge. A real hairline that catches light from the top-left,
   brightest at the corner, fading as it travels. This is the detail that
   separates a lit surface from a gradient rectangle. */
.card, .post, .mm2-surface,
.hub-card, .role, .checkin-card, .announcement, .trailer-feature, .chat-shell {
  position: relative;
  isolation: isolate;
}
.card::after, .post::after,
.hub-card::after, .role::after, .checkin-card::after, .announcement::after,
.trailer-feature::after, .chat-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  padding: 1px;
  background:
    linear-gradient(145deg,
      rgba(255,253,242,.55) 0%,
      rgba(240,199,94,.42) 12%,
      rgba(240,199,94,.10) 34%,
      rgba(59,15,122,.0) 58%,
      rgba(240,199,94,.14) 86%,
      rgba(240,199,94,.30) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
}

/* ============================================================ DIVIDERS ===
   A gold hairline that fades at both ends — used instead of hard rules. */
.mm2-rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(240,199,94,.35) 22%, rgba(240,199,94,.35) 78%, transparent);
}

/* =============================================================== FOOTER ===
   Closes the room: darker than the page, a gold hairline on top. */
footer {
  background: linear-gradient(180deg, rgba(10,5,24,.96), var(--mm2-void));
  border-top: 1px solid rgba(240,199,94,.20);
  box-shadow: inset 0 1px 0 rgba(255,253,242,.05);
}
footer a { color: var(--mm2-text-2); }
footer a:hover { color: var(--mm2-gold-lit); }

/* ========================================================== NAVIGATION ===
   The bar is glass over the room, with a gold hairline beneath. */
nav[aria-label="Main navigation"] {
  background: rgba(10,5,24,.94);
  border-bottom: 1px solid rgba(240,199,94,.22);
  box-shadow: 0 1px 0 rgba(255,253,242,.05), 0 12px 40px rgba(0,0,0,.55);
  backdrop-filter: blur(14px);
}
.brand-mark {
  background: var(--mm2-metal);
  background-size: 220% 100%;
  color: #1A1030;
  border: 0;
  box-shadow: var(--mm2-e2), 0 0 20px rgba(240,199,94,.24),
              inset 0 1px 0 rgba(255,255,255,.6);
}

/* ============================================================ CONTROLS ===
   Every interactive element gets the same geometry and the same focus ring. */
.btn, button.mm2-btn, .mm2-btn {
  min-height: var(--mm2-touch);
  border-radius: var(--mm2-r-pill);
  font-family: var(--mm2-font-body);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: .01em;
}
.btn:not(.primary), button:not(.primary) {
  background: rgba(21,13,38,.82);
  border: 1px solid rgba(168,175,187,.26);
  color: var(--mm2-text);
  box-shadow: var(--mm2-e1);
}
.btn:not(.primary):hover, button:not(.primary):hover {
  border-color: rgba(240,199,94,.55);
  color: var(--mm2-gold-lit);
}
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--mm2-gold-spec);
  outline-offset: 3px;
  border-radius: var(--mm2-r-sm);
}

/* =============================================================== MEDIA ===
   Video and images get the same frame treatment as the surfaces. */
video, img.post-media, .trailer-feature video {
  border-radius: var(--mm2-r-md);
  border: 1px solid rgba(240,199,94,.18);
  box-shadow: var(--mm2-e2);
  background: var(--mm2-void);
}

/* ======================================================== READABILITY ===
   Nothing below 16px. Older audience on phones is the stated constraint. */
body, p, li, label, small, a, button, input, textarea, select,
.mm2-copy, .mm2-meta {
  font-size: max(16px, 1em);
  line-height: 1.6;
}

/* ====================================================== REDUCED MOTION ===*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ============================================================= MOBILE ===*/
@media (max-width: 760px) {
  .hub-grid, .roles { grid-template-columns: 1fr; }
  .hub-card.wide { grid-column: auto; }
  .trailer-feature { grid-template-columns: 1fr; }
  body { overflow-x: hidden; }
  img, video, iframe, canvas { max-width: 100%; height: auto; }
}
