/* ==========================================================================
   MS39 mobile — white + gold skin (trial, 5 Oct 2026).
   Loaded last, after mgk.css, and changes colour only: every size, gap and
   layout rule is left to the files before it. To go back to black + gold,
   remove the <link> to this file in inc/header.php and
   account/inc/layout.php.

   Most of the build paints from the tokens in theme.css and mgk.css, so
   re-pointing them does the bulk of the work; the rules underneath only cover
   the places mgk.css wrote a dark colour out by hand.
   ========================================================================== */

:root {
  /* Ink & surfaces (light) */
  --c-bg:          #f6f3ec;
  --c-ink:         #1f1a10;
  --c-body:        #4a4334;
  --c-muted:       #857c69;
  --c-faint:       #b0a68f;
  --c-line:        #e9e1cd;
  --c-surface:     #ffffff;
  --c-soft:        #faf7f0;
  --c-soft-2:      #f3eddf;

  /* Gold on white: "lit" — the colour gold text and active states use —
     becomes a deeper gold so it reads; the button gradient keeps its shine. */
  --gold:          #c79a2c;
  --gold-lit:      #a37a16;
  --gold-deep:     #8a6514;
  --gold-line:     rgba(199, 154, 44, .38);
  --gold-glow:     rgba(212, 169, 55, .12);
  --on-gold:       #2a1f05;

  /* Links and accents written against the old "blue" tokens. */
  --c-blue:        #b4861a;
  --c-blue-mid:    #c79a2c;
  --c-orange:      #b4861a;
  --c-orange-dark: #9c7417;
  --c-yellow:      #c79a2c;
  --c-gold:        #c79a2c;
  --c-blue-deep:   #fbf6e8;
  --c-purple-1:    #fbf6e8;
  --c-purple-2:    #f1e4c2;

  /* The mobile build's own tokens */
  --m-blue:        #b4861a;
  --m-blue-lit:    #c79a2c;
  --m-blue-deep:   #a37a16;
  --m-ground:      #f6f3ec;
  --m-line:        #e9e1cd;

  --shadow-card: 0 2px 14px rgba(120, 95, 30, .08);
  --shadow-pop:  0 10px 36px rgba(120, 95, 30, .16);
}

/* Top bar and the "← Title" bar under it */
.mg-top { background: #ffffff !important; border-bottom: 1px solid var(--c-line); }
body.mgk .m-acc-bar, body.mgk .m-page-bar { background: #ffffff; border-bottom: 1px solid var(--c-line); }

/* Drawer */
body.mgk .m-drawer { background: #ffffff; }

/* Home */
.mg-bal b.masked { text-shadow: 0 0 12px rgba(31, 26, 16, .4); }
.mg-guest { background: linear-gradient(130deg, #fbf0d2, #ffffff 70%); }
.mg-quick { background: linear-gradient(180deg, #fffaf0, #ffffff); box-shadow: var(--shadow-card); }
.mg-quick a { border-right-color: rgba(199, 154, 44, .2); }
.mg-hero { border-color: var(--gold-line); box-shadow: var(--shadow-card); }
.mg-reward { box-shadow: var(--shadow-card); }
.mg-reward.tall { background: linear-gradient(140deg, #fbf0d2, #ffffff 70%); }
.mg-reward .deco { color: rgba(212, 169, 55, .16); }

/* Lobby + cards: a little lift so white cards do not melt into the page. */
.mg-cat-rail button { box-shadow: 0 1px 6px rgba(120, 95, 30, .06); }
.mg-lobby .plat-tile img { box-shadow: 0 2px 10px rgba(120, 95, 30, .08); }
.mg-game .thumb, .mg-promo { box-shadow: 0 2px 10px rgba(120, 95, 30, .08); }

/* Bottom bar: white, with the Home button's ring cut in the same white. */
.mg-bottom { background: #ffffff !important; box-shadow: 0 -4px 18px rgba(120, 95, 30, .08); }
.mg-bottom a.mg-home .ic { box-shadow: 0 0 0 5px #ffffff, 0 6px 18px rgba(212, 169, 55, .35); }

/* Wallet plate and My Account head: pale gold instead of dark gold. */
body.mgk .m-wallet-top {
  background: linear-gradient(135deg, #f8e7b8 0%, #fdf6e3 55%, #ffffff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 10px rgba(120, 95, 30, .12);
}
.ma-head { background: linear-gradient(135deg, #f8e7b8 0%, #fdf6e3 55%, #ffffff 100%); }
.ma-list, .rr-card, .credit-notice { box-shadow: var(--shadow-card); }

body.mgk dialog::backdrop { background: rgba(40, 32, 12, .45); }

/* Flags: a light hairline instead of the white one meant for black. */
.lang-row .lf { box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }

/* Responsible-gaming marks are dark artwork and read on white as they are. */
body.mgk .m-footer .foot-badges.lg img { filter: none; }

/* Fields stay white on the ivory page. */
body.mgk .form-control, body.mgk .form-select { background-color: #ffffff; }
body.mgk .form-control:focus, body.mgk .form-select:focus { background-color: #ffffff; box-shadow: 0 0 0 3px rgba(212, 169, 55, .15); }

/* The logo was keyed for a black ground; on white its pale highlights wash
   out, so deepen it a touch rather than ship a second file. */
.mg-top .brand-logo img, .mg-hello-logo img { filter: brightness(.8) saturate(1.35) contrast(1.15) drop-shadow(0 1px 0 rgba(120, 95, 30, .15)); }

/* Tabs that wrote white text over a surface token: dark ink on the light
   surface for the idle tab; the active one keeps its gold and dark ink. */
.m-acc-tabs a, .m-msg-tabs a { color: var(--c-body); }
