/* MyMario brand — single source of colour truth.
   Values follow BRAND_PROFILE.md incl. the 2026-07-05 owner revision:
   the brand yellow is the TRUE pack/site yellow #FFF100 (not honey);
   consumer screens use the pack trio Black + Yellow + Red;
   grey fine-print on black is a signature pack motif.
   Rule: Mario UI always pairs RED and YELLOW together — never red alone. */
:root {
  --mm-yellow:       #FFF100;   /* THE Mario yellow — website + pack         */
  --mm-gold:         #F2B33D;   /* honey-gold keyline / borders ON yellow    */
  --mm-cream:        #FFF7DA;   /* butter-cream card tint                    */
  --mm-red:          #EB1F26;   /* brand red — ribbon / buttons              */
  --mm-red-dark:     #A11E1A;   /* pressed / hover / depth                   */
  --mm-orange:       #F38020;   /* neckerchief orange — caution accent       */
  --mm-brown:        #CD772F;   /* caramel brown — line art                  */
  --mm-black:        #111111;   /* pack black — nav, footer, dark panels     */

  --mm-yellow-pop:   #fff100;   /* same as --mm-yellow (kept for old refs)   */
  --mm-yellow-soft:  #fffbb1;   /* pale success-row tint                     */
  --mm-pink:         #ffb4b6;   /* gradient bottom stop                      */
  --mm-grey-onblack: #9a9a9a;   /* pack fine-print grey on black surfaces    */

  /* neutrals */
  --mm-ink:          #262626;
  --mm-ink-light:    #545454;
  --mm-grey:         #8e8e8e;
  --mm-border:       #eadfae;   /* warm border                               */
  --mm-paper:        #FFF7DA;   /* page background = butter cream            */
  --mm-card:         #ffffff;

  /* signatures */
  --mm-hero-gradient:  linear-gradient(180deg, #E23A2E, #ffb4b6);
  --mm-strip-gradient: linear-gradient(90deg, #E23A2E 0%, #E23A2E 52%, #FFC91E 100%);

  /* fonts — three jobs (BRAND_PROFILE §2 + owner revision): the wordmark
     lettering is a tall CONDENSED heavy slab → Ultra echoes it best */
  --mm-font-slab: "Ultra", "Alfa Slab One", serif;
  --mm-font-display: "Sansita", Georgia, serif;
  --mm-font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--mm-font-body);
  background: var(--mm-paper);
  color: var(--mm-ink);
  font-size: 16px;
}

/* signature red→pink strip across the very top of every page */
body::before {
  content: ""; display: block; height: 6px;
  background: var(--mm-hero-gradient);
}

h1, h2, h3, .mm-display { font-family: var(--mm-font-display); font-weight: 700; }

/* ---------------------------------------------------------------- header
   pack look: bright yellow panel meeting the black below */
.mm-header {
  background: var(--mm-yellow);
  border-bottom: 3px solid var(--mm-black);
  color: var(--mm-ink);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mm-header img.mm-logo-img { height: 46px; display: block; }
.mm-head-titles { flex: 1; min-width: 0; }
.mm-app-name {
  /* the wordmark moment — chunky slab that echoes the MARIO ribbon lettering */
  font-family: var(--mm-font-slab);
  font-size: 20px; font-weight: 400; line-height: 1.1;
  color: var(--mm-red-dark);
}
.mm-tagline { font-size: 12px; color: var(--mm-brown); margin-top: 1px; }
.mm-head-right { font-size: 12px; text-align: right; color: var(--mm-ink-light); }
.mm-head-right a { color: var(--mm-red); text-decoration: none; font-weight: 600; }

/* ---------------------------------------------------------------- layout */
.mm-main { padding: 16px; max-width: 480px; margin: 0 auto; }
.mm-main-wide { max-width: 1100px; }   /* admin on PC */

.mm-card {
  background: var(--mm-card);
  border: 1px solid var(--mm-border);
  border-radius: 15px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(17,17,17,.06);
  margin-bottom: 12px;
}
.mm-hero { border-top: 4px solid var(--mm-yellow); }
.mm-hero h1 { margin: 0 0 6px; color: var(--mm-red); font-size: 22px; }
.mm-hero p { margin: 0; font-size: 14px; line-height: 1.5; }

/* Figma home: white tiles sitting on a red panel */
.mm-tilewrap {
  background: var(--mm-red);
  border-radius: 15px;
  padding: 12px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
  margin-bottom: 12px;
}
.mm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mm-tile {
  text-align: center; font-weight: 600; font-size: 12.5px;
  padding: 14px 6px;
  background: #fff;
  border-radius: 12px;
  color: var(--mm-ink);
  text-decoration: none; display: block;
  box-shadow: 0 1px 3px rgba(17,17,17,.18);
}
.mm-tile .mm-tile-ic { display: block; font-size: 22px; margin-bottom: 4px; color: var(--mm-red); }
.mm-tile .mm-tile-num { font-size: 22px; font-family: var(--mm-font-display); color: var(--mm-ink); }
.mm-tile:active { background: var(--mm-cream); }

/* red pill points chip (header, Figma style) */
.mm-points-chip {
  background: var(--mm-red); color: #fff;
  border-radius: 50px; padding: 5px 14px;
  font-weight: 700; font-size: 14px; white-space: nowrap;
  text-decoration: none; display: inline-block;
}
.mm-points-chip .mm-coin { color: var(--mm-yellow); }

/* ---------------------------------------------------------------- buttons
   Figma app design uses solid red ~10px rounded rectangles (not pills). */
.mm-btn {
  display: inline-block;
  border: 2px solid var(--mm-red);
  border-radius: 10px;
  background: var(--mm-red);
  color: #fff;
  padding: 12px 24px;
  font-weight: 700; font-size: 15px;
  text-decoration: none; text-align: center;
  cursor: pointer;
  font-family: var(--mm-font-body);
}
.mm-btn:active { background: var(--mm-red-dark); border-color: var(--mm-red-dark); }
.mm-btn-block { display: block; width: 100%; }
.mm-btn-ghost { background: #fff; color: var(--mm-red); }
.mm-btn-yellow { background: var(--mm-yellow); border-color: var(--mm-gold); color: var(--mm-ink); }
.mm-btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------------------------------------------------------------- forms */
label.mm-label { display: block; font-size: 13px; font-weight: 600; color: var(--mm-ink-light); margin: 12px 0 4px; }
input.mm-input, select.mm-input, textarea.mm-input {
  width: 100%; padding: 12px; font-size: 16px;
  border: 1px solid var(--mm-border); border-radius: 10px;
  background: #fff; color: var(--mm-ink); font-family: var(--mm-font-body);
}
input.mm-input:focus, select.mm-input:focus, textarea.mm-input:focus {
  outline: 2px solid var(--mm-yellow); border-color: var(--mm-gold);
}

/* ---------------------------------------------------------------- status */
.mm-badge {
  display: inline-block; padding: 2px 10px; border-radius: 50px;
  font-size: 12px; font-weight: 600;
}
.mm-badge-pending  { background: var(--mm-cream);  color: var(--mm-brown); border: 1px solid var(--mm-gold); }
.mm-badge-approved { background: var(--mm-yellow-soft); color: #5c5200; border: 1px solid var(--mm-gold); }
.mm-badge-rejected { background: #fdebec; color: var(--mm-red); border: 1px solid var(--mm-pink); }

.mm-flash {
  background: var(--mm-yellow-soft); border: 1px solid var(--mm-gold);
  border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 12px;
}
.mm-flash-error { background: #fdebec; border-color: var(--mm-pink); color: var(--mm-red-dark); }

/* ---------------------------------------------------------------- lists */
.mm-list { list-style: none; margin: 0; padding: 0; }
.mm-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 2px; border-bottom: 1px solid var(--mm-border); font-size: 14px;
}
.mm-list li:last-child { border-bottom: none; }
.mm-points-plus  { color: #2e7d32; font-weight: 700; white-space: nowrap; }
.mm-points-minus { color: var(--mm-red); font-weight: 700; white-space: nowrap; }

/* ---------------------------------------------------------------- tables (admin) */
table.mm-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.mm-table th {
  text-align: left; background: var(--mm-cream); color: var(--mm-brown);
  padding: 8px 10px; border-bottom: 2px solid var(--mm-gold); white-space: nowrap;
}
.mm-table td { padding: 8px 10px; border-bottom: 1px solid var(--mm-border); }
.mm-table tr:hover td { background: var(--mm-cream); }

/* ---------------------------------------------------------------- wallet hero */
.mm-wallet {
  background: var(--mm-black);
  color: #fff;
  border-radius: 15px;
  padding: 18px 16px;
  margin-bottom: 12px;
  border: none;
}
.mm-wallet .mm-wallet-label { font-size: 12px; color: var(--mm-grey); text-transform: uppercase; letter-spacing: .08em; }
.mm-wallet .mm-wallet-points {
  /* big number on pack-black — slab + yellow, straight off the packaging */
  font-family: var(--mm-font-slab);
  font-size: 40px; font-weight: 400; color: var(--mm-yellow); line-height: 1.15;
}
.mm-wallet .mm-wallet-sub { font-size: 13px; color: #ddd; margin-top: 4px; }
.mm-wallet .mm-wallet-sub b { color: var(--mm-yellow-pop); }

/* progress bar (targets, scan milestone) */
.mm-progress { background: var(--mm-cream); border: 1px solid var(--mm-border); border-radius: 50px; height: 14px; overflow: hidden; }
.mm-progress > span { display: block; height: 100%; background: var(--mm-strip-gradient); border-radius: 50px; }

/* bottom nav — pack black with yellow accent (black+yellow+red trio) */
.mm-nav {
  position: sticky; bottom: 0; display: flex;
  background: var(--mm-black);
  border-top: 3px solid var(--mm-yellow);
  max-width: 480px; margin: 0 auto;
}
.mm-nav a {
  flex: 1; text-align: center; padding: 9px 2px 11px;
  font-size: 11px; font-weight: 600; color: var(--mm-grey-onblack); text-decoration: none;
}
.mm-nav a .mm-nav-ic { display: block; font-size: 18px; }
.mm-nav a.active { color: #fff; }
.mm-nav a.active .mm-nav-ic { color: var(--mm-yellow); }

/* footer — echoes the site footer / pack back: black band, grey fine print */
.mm-footer {
  text-align: center; font-size: 11px;
  background: var(--mm-black); color: var(--mm-grey-onblack);
  padding: 14px 10px 18px; margin-top: 20px;
}

/* pack-style fine print for any black surface */
.mm-fineprint { font-size: 12px; color: var(--mm-grey-onblack); line-height: 1.5; }

/* demo ribbon so nobody mistakes the prototype for live */
.mm-demo-ribbon {
  background: var(--mm-black); color: var(--mm-yellow);
  text-align: center; font-size: 11px; font-weight: 600;
  letter-spacing: .06em; padding: 4px 8px; text-transform: uppercase;
}
