/* MM-LIGHT-PAGES (2026-10-29): light theme for the keychain game's supporting pages, matching the hub (homes/links.html).
   Loaded AFTER each page's own <style>. Contrast: ink #222633 / #3f4450 on white or #f5fbfc, muted #5d6874 (>=5.3:1),
   teal text #146F7B (5.6:1), lime text #4E6B0A (6.6:1). Golden-ticket skin via html.mm-skin-ticket (assets/mm-theme.js). */
:root{--char:#222633;--teal:#1FA6B8;--teal-d:#146F7B;--lime:#A0D020;--ink:#3f4450;--muted:#5d6874;--soft:#f5fbfc;--line:#e2e4e8}
html body{background:var(--soft)!important;color:var(--char)!important}
h1{color:var(--char)!important}
.script,h2,.card h2{color:var(--teal-d)!important}
.card h2{color:#4E6B0A!important}
.home,.foot,.tag,.priv,.sub,.mut,.ach .dt,.up .n,th{color:var(--muted)!important}
.count,.rk,.card b{color:#4E6B0A!important}
.card,.up,.lbcard,.hero-line,.ach,.term-card{background:#fff!important;border:1px solid var(--line)!important;color:var(--ink)!important;box-shadow:0 6px 18px rgba(34,38,51,.07)!important}
.ach{border-color:rgba(160,208,32,.75)!important}
.up .lbl,.term,.card{color:var(--ink)!important}
.term b,.up .lbl b,.lbcard b,td b{color:var(--char)!important}
.bar{background:#e6eef0!important}
a{color:var(--teal-d)}
.btn-dark{background:var(--char)!important;color:#fff!important}
.btn-lime,.btn{color:var(--char)}
.in,input:not([type=checkbox]):not([type=radio]),textarea,select{background:#fff!important;color:var(--char)!important;border:1.5px solid #9aa6b2!important}
input::placeholder,textarea::placeholder{color:var(--muted)!important}
td,th{border-bottom-color:var(--line)!important}
tr[style*="rgba(160,208,32,.16)"]{background:#eef7d6!important}
svg [style*="fill:rgb(100%,100%,100%)"]{fill:var(--char)!important}
svg [style*="fill:rgb(76.861572%,79.998779%,82.351685%)"]{fill:var(--muted)!important}
/* golden-ticket skin (until Nov 2, 11:59pm AZ) */
html.mm-skin-ticket body{background-color:var(--soft)!important;background-image:radial-gradient(circle,rgba(212,175,55,.07) 0 3px,transparent 3.5px),radial-gradient(circle,rgba(31,166,184,.06) 0 2.5px,transparent 3px),radial-gradient(circle,rgba(160,208,32,.06) 0 3px,transparent 3.5px)!important;background-size:58px 58px,83px 83px,71px 71px!important;background-position:7px 11px,41px 29px,23px 53px!important}
html.mm-skin-ticket .card,html.mm-skin-ticket .lbcard,html.mm-skin-ticket .up,html.mm-skin-ticket .hero-line{border:1.5px solid #D4AF37!important}
html.mm-skin-ticket h1::after{content:"";display:block;width:64px;height:4px;margin:8px auto 0;border-radius:3px;background:linear-gradient(90deg,#D4AF37,#F3E3A0,#D4AF37)}
/* MM-PWLIGHT-V1 overlay: the JS-built cards, toasts, popups and inputs (mmHeroPick, mmCivPop, toast(), charFlow) */
[style*="background:#2b3040" i],[style*="background: rgb(43, 48, 64)"],[style*="background:#1d2230" i],[style*="background: rgb(29, 34, 48)"],[style*="background:#171c2a" i],[style*="background: rgb(23, 28, 42)"],[style*="background:#2b3142" i],[style*="background: rgb(43, 49, 66)"],[style*="background:#21263a" i],[style*="background: rgb(33, 38, 58)"],[style*="rgba(43,48,64"],[style*="rgba(43, 48, 64"]{background:#fff!important;color:var(--ink)!important;box-shadow:0 12px 34px rgba(34,38,51,.16)!important}
input[style*="#1d2230" i],textarea[style*="#1d2230" i],input[style*="rgb(29, 34, 48)"],textarea[style*="rgb(29, 34, 48)"],#mmMergeCode{background:#fff!important;color:var(--char)!important;border:1.5px solid var(--line)!important;border-radius:12px!important;min-height:48px;box-shadow:none!important}
[style*="linear-gradient(#2b3040,#2b3040)" i]{background:linear-gradient(#fff,#fff) padding-box,linear-gradient(105deg,#1FA6B8,#E0392B) border-box!important;color:var(--ink)!important}
[style*="border:1px solid #3a4154" i],[style*="rgb(58, 65, 84)"],[style*="#556" i]{border-color:var(--line)!important}
[style*="border-top:1px solid rgba(255,255,255" i],[style*="border-top: 1px solid rgba(255, 255, 255"]{border-top-color:var(--line)!important}
[style*="background:rgba(255,255,255,." i],[style*="background: rgba(255, 255, 255, 0."]{background:var(--soft)!important;border-color:var(--line)!important}
[style*="rgba(8,12,16"],[style*="rgba(8, 12, 16"],[style*="rgba(8,10,16"],[style*="rgba(8, 10, 16"],[style*="rgba(247,249,252,.58)"],[style*="rgba(247, 249, 252, 0.58)"]{background:rgba(34,38,51,.18)!important}
[style*="color:#fff;" i]:not([style*="background" i]),[style*="color:#fff;" i][style*="background:none" i],[style*="color:#fff;" i][style*="background:transparent" i],[style*="color:#fff;" i][style*="background: none" i],[style*="color:#fff;" i][style*="background: transparent" i],[style$="color:#fff" i]:not([style*="background" i]),[style$="color:#fff" i][style*="background:none" i],[style$="color:#fff" i][style*="background:transparent" i],[style$="color:#fff" i][style*="background: none" i],[style$="color:#fff" i][style*="background: transparent" i],[style*="color:#fff!" i]:not([style*="background" i]),[style*="color:#fff!" i][style*="background:none" i],[style*="color:#fff!" i][style*="background:transparent" i],[style*="color:#fff!" i][style*="background: none" i],[style*="color:#fff!" i][style*="background: transparent" i],[style*="color:#ffffff" i]:not([style*="background" i]),[style*="color:#ffffff" i][style*="background:none" i],[style*="color:#ffffff" i][style*="background:transparent" i],[style*="color:#ffffff" i][style*="background: none" i],[style*="color:#ffffff" i][style*="background: transparent" i],[style*="color: rgb(255, 255, 255)"]:not([style*="background" i]),[style*="color: rgb(255, 255, 255)"][style*="background:none" i],[style*="color: rgb(255, 255, 255)"][style*="background:transparent" i],[style*="color: rgb(255, 255, 255)"][style*="background: none" i],[style*="color: rgb(255, 255, 255)"][style*="background: transparent" i]{color:var(--char)!important}
[style*="color:#dfe6ec" i]:not([style*="background" i]),[style*="color: rgb(223, 230, 236)"]:not([style*="background" i]),[style*="color:#cfe3ea" i]:not([style*="background" i]),[style*="color: rgb(207, 227, 234)"]:not([style*="background" i]),[style*="color:#eef3f5" i]:not([style*="background" i]),[style*="color: rgb(238, 243, 245)"]:not([style*="background" i]),[style*="color:#e7eef2" i]:not([style*="background" i]),[style*="color: rgb(231, 238, 242)"]:not([style*="background" i]),[style*="color:#eaf2f5" i]:not([style*="background" i]),[style*="color: rgb(234, 242, 245)"]:not([style*="background" i]),[style*="color:#dbe3ea" i]:not([style*="background" i]),[style*="color: rgb(219, 227, 234)"]:not([style*="background" i]),[style*="color:#cdd8e0" i]:not([style*="background" i]),[style*="color: rgb(205, 216, 224)"]:not([style*="background" i]),[style*="color:#cfe0e6" i]:not([style*="background" i]),[style*="color: rgb(207, 224, 230)"]:not([style*="background" i]),[style*="color:#c3d0d6" i]:not([style*="background" i]),[style*="color: rgb(195, 208, 214)"]:not([style*="background" i]),[style*="color:#eaf3d0" i]:not([style*="background" i]),[style*="color: rgb(234, 243, 208)"]:not([style*="background" i]){color:var(--ink)!important}
[style*="color:#aeb6c0" i]:not([style*="background" i]),[style*="color: rgb(174, 182, 192)"]:not([style*="background" i]),[style*="color:#9fb0b8" i]:not([style*="background" i]),[style*="color: rgb(159, 176, 184)"]:not([style*="background" i]),[style*="color:#8fa6ad" i]:not([style*="background" i]),[style*="color: rgb(143, 166, 173)"]:not([style*="background" i]),[style*="color:#6f7892" i]:not([style*="background" i]),[style*="color: rgb(111, 120, 146)"]:not([style*="background" i]),[style*="color:#9fb2c0" i]:not([style*="background" i]),[style*="color: rgb(159, 178, 192)"]:not([style*="background" i]),[style*="color:#aeb9c2" i]:not([style*="background" i]),[style*="color: rgb(174, 185, 194)"]:not([style*="background" i]),[style*="color:#9fb0c0" i]:not([style*="background" i]),[style*="color: rgb(159, 176, 192)"]:not([style*="background" i]),[style*="color:#5f6b7d" i]:not([style*="background" i]),[style*="color: rgb(95, 107, 125)"]:not([style*="background" i]),[style*="color:#8b909b" i]:not([style*="background" i]),[style*="color: rgb(139, 144, 155)"]:not([style*="background" i]),[style*="color:#6b7585" i]:not([style*="background" i]),[style*="color: rgb(107, 117, 133)"]:not([style*="background" i]),[style*="color:#9ab" i]:not([style*="background" i]),[style*="color: rgb(153, 170, 187)"]:not([style*="background" i]){color:var(--muted)!important}
[style*="color:#7fe0ef" i]:not([style*="background" i]),[style*="color: rgb(127, 224, 239)"]:not([style*="background" i]),[style*="color:#7fd0dd" i]:not([style*="background" i]),[style*="color: rgb(127, 208, 221)"]:not([style*="background" i]),[style*="color:#8fdcea" i]:not([style*="background" i]),[style*="color: rgb(143, 220, 234)"]:not([style*="background" i]),[style*="color:#8fbecb" i]:not([style*="background" i]),[style*="color: rgb(143, 190, 203)"]:not([style*="background" i]){color:var(--teal-d)!important}
[style*="color:#ffd700" i]:not([style*="background" i]),[style*="color: rgb(255, 215, 0)"]:not([style*="background" i]),[style*="color:#ffcc33" i]:not([style*="background" i]),[style*="color: rgb(255, 204, 51)"]:not([style*="background" i]),[style*="color:#f6c945" i]:not([style*="background" i]),[style*="color: rgb(246, 201, 69)"]:not([style*="background" i]),[style*="color:#ffd9a2" i]:not([style*="background" i]),[style*="color: rgb(255, 217, 162)"]:not([style*="background" i]),[style*="color:#ffb46b" i]:not([style*="background" i]),[style*="color: rgb(255, 180, 107)"]:not([style*="background" i]),[style*="color:#B6F03A" i]:not([style*="background" i]),[style*="color: rgb(182, 240, 58)"]:not([style*="background" i]){color:#7A5C00!important}
[style*="color:#ff9a8a" i]:not([style*="background" i]),[style*="color: rgb(255, 154, 138)"]:not([style*="background" i]),[style*="color:#ff7a6b" i]:not([style*="background" i]),[style*="color: rgb(255, 122, 107)"]:not([style*="background" i]),[style*="color:#e0a0a0" i]:not([style*="background" i]),[style*="color: rgb(224, 160, 160)"]:not([style*="background" i]),[style*="color:#ffb4a8" i]:not([style*="background" i]),[style*="color: rgb(255, 180, 168)"]:not([style*="background" i]),[style*="color:#ff8a8a" i]:not([style*="background" i]),[style*="color: rgb(255, 138, 138)"]:not([style*="background" i]),[style*="color:#ff6b5e" i]:not([style*="background" i]),[style*="color: rgb(255, 107, 94)"]:not([style*="background" i]),[style*="color:#f55" i]:not([style*="background" i]),[style*="color: rgb(255, 85, 85)"]:not([style*="background" i]),[style*="color:#ED6A5A" i]:not([style*="background" i]),[style*="color: rgb(237, 106, 90)"]:not([style*="background" i]),[style*="color:#E0392B" i]:not([style*="background" i]),[style*="color:#e0492b" i]:not([style*="background" i]),[style*="color: rgb(224, 57, 43)"]:not([style*="background" i]),[style*="color:#d6c4c4" i]:not([style*="background" i]),[style*="color: rgb(214, 196, 196)"]:not([style*="background" i]){color:#C0392B!important}
[style*="color:#A0D020" i]:not([style*="background" i]),[style*="color: rgb(160, 208, 32)"]:not([style*="background" i]),[style*="color:var(--lime)" i]:not([style*="background" i]){color:#4E6B0A!important}
#mmHeroPick>div{border:1px solid var(--line)!important;border-radius:16px!important}
#mmHeroPick>div>div:first-child,#mmCivPop b:first-child{text-align:center;text-wrap:balance;color:var(--char)}
[data-mmtoast]>span[data-a="cx"]+b{display:block;text-align:center;text-wrap:balance;color:var(--char);padding:0 18px 2px}[data-mmtoast]>span[data-a="cx"]+b+br{display:none}
[style*="background:#222838" i],[style*="background: rgb(34, 40, 56)"],[style*="background:#222b38" i],[style*="background: rgb(34, 43, 56)"],[style*="background:#222834" i],[style*="background: rgb(34, 40, 52)"],[style*="background:#2a1d33" i],[style*="background: rgb(42, 29, 51)"],[style*="background:#222633" i]{background:#fff!important;color:var(--ink)!important}[style*="background:#5c1f1f" i]{background:#fdecea!important}
#mmHeroPick button{font-family:Montserrat,Arial,sans-serif}#mmHeroCancel{min-height:44px;border-color:var(--line)!important;color:var(--muted)!important}

/* MM-LIGHT-PAGES: on these pages the remapped reds/greens must clear 4.5:1 on white and #f5fbfc */
[style*="color:#E0392B" i]:not([style*="background" i]),[style*="color:#e0492b" i]:not([style*="background" i]),[style*="color:#ED6A5A" i]:not([style*="background" i]),[style*="color:#ff7a6b" i]:not([style*="background" i]),[style*="color:#e0a0a0" i]:not([style*="background" i]){color:#B03024!important}
.vs{color:#7A5C00!important}
.seg button{background:#fff!important;border:1.5px solid #9aa6b2!important;color:var(--char)!important}
.seg button.on{background:var(--teal-d)!important;border-color:var(--teal-d)!important;color:#fff!important}
