.ei-seed-library{font-family:inherit;max-width:1200px;margin:20px auto;color:#222}.ei-memory-game-ui{--line:#1d1d1d;--panel:#cfcfcf;--dark:#3d3d3d;--slot:#555;font-family:ui-monospace,Menlo,Consolas,"Noto Sans TC",monospace}.ei-memory-game-ui a{text-decoration:none!important}.ei-game-window{background:var(--panel);border:4px solid var(--line);box-shadow:inset 4px 4px 0 #fff,inset -4px -4px 0 #777,0 10px 26px rgba(0,0,0,.22);border-radius:4px;overflow:hidden}.ei-game-topbar{display:flex;align-items:stretch;min-height:72px;background:#333;border-bottom:4px solid var(--line)}.ei-game-tab{width:88px;padding:8px 6px;text-align:center;color:#eee;border-right:3px solid #151515;background:linear-gradient(#4b4b4b,#2d2d2d);box-shadow:inset 0 2px 0 rgba(255,255,255,.25)}.ei-game-tab.is-active{background:#ddd;color:#111;box-shadow:inset 4px 4px 0 #fff,inset -4px -4px 0 #888}.ei-game-tab em{display:block;font-style:normal;font-weight:800;font-size:14px}.ei-tab-icon,.ei-game-help,.ei-game-close{display:inline-block;width:34px;height:34px;border:3px solid #191919;background:#777;box-shadow:inset 3px 3px 0 rgba(255,255,255,.45),inset -3px -3px 0 rgba(0,0,0,.35);position:relative}.ei-game-top-spacer{flex:1}.ei-game-help,.ei-game-close{align-self:center;margin:9px;color:#eee;text-align:center;font-size:24px;line-height:28px;font-weight:900;background:#555}.ei-tab-book:before{content:"";position:absolute;left:7px;top:6px;width:18px;height:22px;background:#6aa6d8;border:2px solid #1d2024}.ei-tab-cube:before,.ei-game-energy-icon:before{content:"";position:absolute;left:8px;top:8px;width:17px;height:17px;background:linear-gradient(135deg,#b78345 0 48%,#76512d 49%);border:2px solid #21180f}.ei-tab-shard:before{content:"";position:absolute;left:11px;top:4px;width:14px;height:25px;background:linear-gradient(135deg,#d9faff,#41a8cf 55%,#247498);clip-path:polygon(50% 0,100% 30%,70% 100%,20% 92%,0 28%)}.ei-tab-key:before{content:"";position:absolute;left:8px;top:9px;width:21px;height:8px;background:#d9aa38;border:2px solid #38270a}.ei-tab-potion:before{content:"";position:absolute;left:10px;top:7px;width:15px;height:22px;border-radius:5px 5px 8px 8px;background:linear-gradient(#e5f7ff 0 25%,#57bee0 26%);border:2px solid #1b3b46}.ei-tab-compass:before{content:"";position:absolute;left:7px;top:7px;width:20px;height:20px;border-radius:50%;background:#202020;border:3px solid #b0b0b0}.ei-tab-gear:before{content:"⚙";position:absolute;left:3px;top:-2px;font-size:30px;color:#bbb}.ei-game-panel{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px;padding:16px;background:#d8d8d8}.ei-game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.ei-game-section-title{font-size:22px;font-weight:900}.ei-game-count{display:inline-block;margin-left:8px}.ei-game-controls{display:flex;gap:10px}.ei-game-select{background:#4f4f4f;color:#fff;border:3px solid #191919;box-shadow:inset 2px 2px 0 #8b8b8b,inset -2px -2px 0 #242424;padding:7px 10px;font-weight:800}.ei-game-grid{display:grid;grid-template-columns:repeat(8,minmax(58px,1fr));gap:6px;background:#363636;border:4px solid #1d1d1d;box-shadow:inset 4px 4px 0 #676767,inset -4px -4px 0 #222;padding:10px;min-height:360px}.ei-game-slot,.ei-game-hot-slot{position:relative;display:block;aspect-ratio:1/1;background:linear-gradient(135deg,#686868,#444);border:3px solid #1d1d1d;box-shadow:inset 3px 3px 0 #8b8b8b,inset -3px -3px 0 #292929;overflow:hidden;cursor:pointer}.ei-game-slot.is-selected{outline:3px solid #fff}.ei-slot-status-locked{filter:grayscale(.85) brightness(.72);opacity:.72}.ei-game-icon{position:absolute;left:50%;top:50%;width:42px;height:42px;transform:translate(-50%,-50%);display:block;backface-visibility:hidden;-webkit-backface-visibility:hidden;image-rendering:auto}.ei-game-hot-slot .ei-game-icon{width:34px;height:34px}.ei-game-icon.has-thumb img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;image-rendering:auto}.ei-game-icon:not(.has-thumb):before,.ei-game-icon:not(.has-thumb):after{content:"";position:absolute;display:block}.ei-game-icon-tomato:before{left:8px;top:11px;width:26px;height:26px;background:linear-gradient(135deg,#ff6455,#d9372f 64%,#8d1e1a);border:3px solid #4b1110;border-radius:12px}.ei-game-icon-tomato:after{left:16px;top:5px;width:12px;height:10px;background:#4b9a38;clip-path:polygon(50% 0,100% 45%,70% 100%,50% 70%,25% 100%,0 45%)}.ei-game-icon-basil:before,.ei-game-icon-mint:before{left:5px;top:9px;width:31px;height:25px;background:radial-gradient(ellipse at 25% 55%,#68d85b 0 25%,transparent 26%),radial-gradient(ellipse at 62% 36%,#4fa742 0 25%,transparent 26%),radial-gradient(ellipse at 70% 70%,#347f31 0 25%,transparent 26%)}.ei-game-icon-ginger:before{left:7px;top:15px;width:30px;height:18px;background:#d6a15a;border:3px solid #714616;border-radius:9px;box-shadow:9px -6px 0 -2px #efbd6b}.ei-game-icon-peach:before{left:8px;top:10px;width:27px;height:29px;background:linear-gradient(135deg,#ffd19c,#ff9a8d);border:3px solid #71403c;border-radius:45% 45% 55% 55%}.ei-game-icon:not([class*="tomato"]):not([class*="basil"]):not([class*="mint"]):not([class*="ginger"]):not([class*="peach"]):before{left:9px;top:7px;width:24px;height:30px;background:linear-gradient(135deg,#e9fbff,#74d7ff 35%,#387cde 72%,#6f46d9);clip-path:polygon(50% 0,100% 35%,72% 100%,20% 92%,0 34%)}.ei-game-icon:not([class*="tomato"]):not([class*="basil"]):not([class*="mint"]):not([class*="ginger"]):not([class*="peach"]):after{content:attr(data-letter);left:0;right:0;top:9px;text-align:center;color:#fff;font-weight:900;font-size:16px;text-shadow:2px 2px 0 #123}.ei-slot-mini-bars{position:absolute;left:5px;bottom:5px;display:flex;gap:2px}.ei-slot-mini-bars i{width:8px;height:5px;background:#6bd06c;border:1px solid #183b18}.ei-slot-mini-bars i:nth-child(2){background:#54b7d9}.ei-slot-source{position:absolute;right:6px;bottom:5px;width:8px;height:8px;background:#80d85c;border:1px solid #1c3e1e;transform:rotate(45deg)}.ei-slot-star{position:absolute;right:2px;top:0;color:#ffd44f;font-size:16px}.ei-slot-lock{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:26px;font-weight:900;color:#ddd}.ei-game-pagination{display:flex;gap:20px;justify-content:center;padding:12px 0 0}.ei-game-detail{background:#3f3f3f;color:#eaeaea;border:4px solid #1d1d1d;box-shadow:inset 4px 4px 0 #686868,inset -4px -4px 0 #252525;padding:14px}.ei-game-detail h2{font-size:32px;text-align:right;margin:0 0 12px;color:#1f1f1f;background:#d3d3d3;border:3px solid #1c1c1c;padding:8px}.ei-game-detail-card{display:none}.ei-game-detail-card.is-active{display:block}.ei-game-detail-head{display:grid;grid-template-columns:78px 1fr auto;gap:12px}.ei-game-detail-icon{position:relative;width:78px;height:78px;background:#555;border:3px solid #181818}.ei-game-detail-icon .ei-game-icon{width:58px;height:58px}.ei-game-detail h3{margin:0 0 4px;color:#fff;font-size:22px}.ei-game-id,.ei-game-type{font-size:13px;color:#ddd;margin-top:4px}.ei-game-state-tag{background:#3f8d39;color:#fff;border:2px solid #163a13;font-weight:900;padding:5px 8px}.ei-game-bars{margin-top:16px;display:grid;gap:10px}.ei-game-bars div{display:grid;grid-template-columns:88px 1fr 58px;gap:9px;align-items:center}.ei-game-bars i{height:12px;background:#252525;border:2px solid #151515;display:block}.ei-game-bars b{height:100%;display:block;background:linear-gradient(90deg,#eab940,#f2d971)}.ei-game-bars div:nth-child(2) b{background:linear-gradient(90deg,#48a746,#8be06e)}.ei-game-bars em{text-align:right;font-style:normal;color:#fff}.ei-game-desc{border:2px solid #666;padding:16px 18px;line-height:1.7;min-height:80px;border-radius:14px}.ei-game-status-list{border:2px solid #2b2b2b;background:#4a4a4a;padding:8px 10px;display:grid;gap:7px}.ei-game-status-list div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(255,255,255,.12);padding-bottom:5px}.ei-game-next-hint{margin-top:10px;background:#353535;border-left:4px solid #d6a93c;padding:9px}.ei-game-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.ei-seed-button,.ei-game-fake-button{width:100%;border-radius:0;border:3px solid #151515;box-shadow:inset 3px 3px 0 rgba(255,255,255,.28),inset -3px -3px 0 rgba(0,0,0,.28);font-family:inherit;font-weight:900;padding:10px 8px;background:#4b9b3a;color:#fff}.ei-game-fake-button{background:#626262;color:#eee}.ei-game-bottom{display:grid;grid-template-columns:120px minmax(0,1fr) 360px;gap:10px;background:#333;border-top:4px solid #1d1d1d;padding:10px;color:#eee}.ei-game-hotbar-label{display:flex;align-items:center;font-size:18px;font-weight:900}.ei-game-hotbar{display:grid;grid-template-columns:repeat(9,1fr);gap:4px}.ei-game-hot-slot b{position:absolute;right:4px;bottom:2px;color:#eee}.ei-game-energy-core{display:grid;grid-template-columns:44px 1fr auto;gap:10px;align-items:center;background:#444;border:3px solid #151515;padding:8px}.ei-game-energy-icon{position:relative;display:block;width:36px;height:36px;background:#2e6b91;border:3px solid #153347}.ei-game-energy-line{height:14px;background:#222;border:2px solid #111;margin-top:4px}.ei-game-energy-line span{height:100%;display:block;background:linear-gradient(90deg,#3ba5d7,#7ee7ff)}.ei-memory-game-ui.is-ei-loading{pointer-events:none;filter:saturate(.8)}.ei-game-empty{padding:22px;font-weight:900;text-align:center}@media(max-width:980px){.ei-game-panel{grid-template-columns:1fr}.ei-game-grid{grid-template-columns:repeat(6,minmax(48px,1fr))}.ei-game-bottom{grid-template-columns:1fr}.ei-game-tab{width:70px}}@media(max-width:620px){.ei-game-grid{grid-template-columns:repeat(4,1fr)}.ei-game-detail-head{grid-template-columns:64px 1fr}.ei-game-state-tag{grid-column:1/-1;width:max-content}.ei-game-detail-actions{grid-template-columns:1fr}.ei-game-hotbar{grid-template-columns:repeat(5,1fr)}}

/* v0.1.6 clickable top tabs */
.ei-game-tab{appearance:none;-webkit-appearance:none;border-top:0;border-bottom:0;border-left:0;margin:0;cursor:pointer;font:inherit;position:relative}
.ei-game-tab:hover{filter:brightness(1.08)}
.ei-game-tab small{display:block;position:absolute;right:5px;top:4px;min-width:16px;height:16px;line-height:16px;border:2px solid #171717;background:#242424;color:#fff;font-size:10px;font-weight:900;box-shadow:inset 1px 1px 0 rgba(255,255,255,.25)}
.ei-game-tab.is-active small{background:#fff;color:#111}
.ei-game-slot[hidden],.ei-game-hot-slot[hidden],.ei-game-tab-empty[hidden]{display:none!important}
.ei-game-tab-empty{grid-column:1/-1;min-height:150px;display:grid;place-items:center;color:#ddd;font-weight:900;text-shadow:2px 2px 0 #111;border:3px dashed #777;background:rgba(255,255,255,.05)}

/* v0.1.7 selectable interface styles
   Each theme is a complete visual skin over the same inventory structure. */
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-window{transition:background .18s ease,border-color .18s ease,box-shadow .18s ease}.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-tab,.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-slot,.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-detail,.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-bottom,.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-energy-core{transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease}

/* Dragon Quest / cute RPG */
.ei-memory-style-dragon{font-family:"Trebuchet MS","Noto Sans TC",sans-serif;color:#24351d}.ei-memory-style-dragon .ei-game-window{background:#d9f2b8;border-color:#2f4e22;box-shadow:inset 4px 4px 0 #f6ffe0,inset -4px -4px 0 #78a85a,0 12px 30px rgba(43,79,28,.28);border-radius:16px}.ei-memory-style-dragon .ei-game-topbar,.ei-memory-style-dragon .ei-game-bottom{background:#4f8b36;border-color:#203d16}.ei-memory-style-dragon .ei-game-tab{background:linear-gradient(#8bd765,#4f8b36);border-color:#203d16;color:#fff}.ei-memory-style-dragon .ei-game-tab.is-active{background:#fff8d8;color:#25431d}.ei-memory-style-dragon .ei-game-panel{background:#edf9dc}.ei-memory-style-dragon .ei-game-grid{background:#e7ffd3;border-color:#38572a;box-shadow:inset 4px 4px 0 #fff,inset -4px -4px 0 #9ac67d}.ei-memory-style-dragon .ei-game-slot,.ei-memory-style-dragon .ei-game-hot-slot{background:linear-gradient(135deg,#fff9c5,#c8eda6);border-color:#486d2e;box-shadow:inset 3px 3px 0 #fff,inset -3px -3px 0 #83b564;border-radius:10px}.ei-memory-style-dragon .ei-game-detail{background:#fff8d8;color:#24351d;border-color:#486d2e}.ei-memory-style-dragon .ei-game-detail h2{background:#7fc35b;color:#fff;border-color:#325a22}.ei-memory-style-dragon .ei-game-desc,.ei-memory-style-dragon .ei-game-status-list{background:#fffbe7;color:#24351d;border-color:#d2b85b}.ei-memory-style-dragon .ei-game-state-tag,.ei-memory-style-dragon .ei-seed-button{background:#ef8d3a;border-color:#7a3f12;color:#fff;border-radius:10px}

/* Classical / parchment archive */
.ei-memory-style-classical{font-family:Georgia,"Noto Serif TC",serif;color:#3a2614}.ei-memory-style-classical .ei-game-window{background:#c7a86a;border-color:#5a3819;box-shadow:inset 5px 5px 0 #f7e2a8,inset -5px -5px 0 #856239,0 16px 32px rgba(58,38,20,.35)}.ei-memory-style-classical .ei-game-topbar,.ei-memory-style-classical .ei-game-bottom{background:#5a3819}.ei-memory-style-classical .ei-game-tab{background:linear-gradient(#a97b3d,#65401d);color:#f6e7bd;border-color:#2c1a0c}.ei-memory-style-classical .ei-game-tab.is-active{background:#f1dfaa;color:#3a2614}.ei-memory-style-classical .ei-game-panel{background:#ead7a7}.ei-memory-style-classical .ei-game-grid{background:#7b5228;border-color:#3b240f;box-shadow:inset 4px 4px 0 #b7894b,inset -4px -4px 0 #432711}.ei-memory-style-classical .ei-game-slot,.ei-memory-style-classical .ei-game-hot-slot{background:radial-gradient(circle at 30% 25%,#f7e6b6,#a67739);border-color:#3e270f}.ei-memory-style-classical .ei-game-detail{background:#e7d29e;color:#3a2614;border-color:#3e270f}.ei-memory-style-classical .ei-game-detail h2{background:#c49a50;color:#2a1608;border-color:#3e270f}.ei-memory-style-classical .ei-game-desc,.ei-memory-style-classical .ei-game-status-list{background:#f4e7c4;color:#3a2614;border-color:#936a31}.ei-memory-style-classical .ei-game-state-tag,.ei-memory-style-classical .ei-seed-button{background:#8c5b25;border-color:#3e270f;color:#f8e7bd}

/* Medieval forged inventory */
.ei-memory-style-medieval{font-family:"Palatino Linotype","Noto Serif TC",serif;color:#ead7b0}.ei-memory-style-medieval .ei-game-window{background:#3c3329;border-color:#17110d;box-shadow:inset 5px 5px 0 #75614b,inset -5px -5px 0 #18120e,0 18px 30px rgba(0,0,0,.45)}.ei-memory-style-medieval .ei-game-topbar,.ei-memory-style-medieval .ei-game-bottom{background:#211914}.ei-memory-style-medieval .ei-game-tab{background:linear-gradient(#5a4937,#2a2119);color:#ead7b0;border-color:#0f0b08}.ei-memory-style-medieval .ei-game-tab.is-active{background:#9a774a;color:#1d130c}.ei-memory-style-medieval .ei-game-panel{background:#4a3d30}.ei-memory-style-medieval .ei-game-grid{background:#1f1a16;border-color:#0d0a08;box-shadow:inset 4px 4px 0 #5e5042,inset -4px -4px 0 #12100d}.ei-memory-style-medieval .ei-game-slot,.ei-memory-style-medieval .ei-game-hot-slot{background:linear-gradient(135deg,#665541,#2e251d);border-color:#0d0a08;box-shadow:inset 3px 3px 0 #8a755b,inset -3px -3px 0 #16110d}.ei-memory-style-medieval .ei-game-detail{background:#2f281f;color:#ead7b0;border-color:#0d0a08}.ei-memory-style-medieval .ei-game-detail h2{background:#886b3f;color:#1d130c;border-color:#0d0a08}.ei-memory-style-medieval .ei-game-desc,.ei-memory-style-medieval .ei-game-status-list{background:#3e3328;color:#ead7b0;border-color:#6d5638}.ei-memory-style-medieval .ei-game-state-tag,.ei-memory-style-medieval .ei-seed-button{background:#8b2e24;border-color:#2c0d0a;color:#ffe0b4}

/* European elegant cabinet */
.ei-memory-style-european{font-family:"Times New Roman","Noto Serif TC",serif;color:#2c2430}.ei-memory-style-european .ei-game-window{background:#f2ecdd;border-color:#b9944a;box-shadow:0 18px 38px rgba(53,42,22,.18),inset 0 0 0 6px #fffaf0;border-radius:14px}.ei-memory-style-european .ei-game-topbar,.ei-memory-style-european .ei-game-bottom{background:#e8dcc6;border-color:#b9944a}.ei-memory-style-european .ei-game-tab{background:#efe5d4;color:#3b2d22;border-color:#b9944a}.ei-memory-style-european .ei-game-tab.is-active{background:#fff;color:#7a5521}.ei-memory-style-european .ei-game-panel{background:#f8f4ea}.ei-memory-style-european .ei-game-grid{background:#fffaf0;border-color:#c49b50}.ei-memory-style-european .ei-game-slot,.ei-memory-style-european .ei-game-hot-slot{background:#fff;border-color:#c49b50;border-radius:12px;box-shadow:inset 0 0 0 2px #f3e5c9,0 2px 5px rgba(0,0,0,.08)}.ei-memory-style-european .ei-game-detail{background:#fffaf0;color:#2c2430;border-color:#c49b50}.ei-memory-style-european .ei-game-detail h2{background:#fff;color:#7a5521;border-color:#c49b50}.ei-memory-style-european .ei-game-desc,.ei-memory-style-european .ei-game-status-list{background:#fff;color:#2c2430;border-color:#e3c98c}.ei-memory-style-european .ei-game-state-tag,.ei-memory-style-european .ei-seed-button{background:#b9944a;border-color:#7a5521;color:#fff;border-radius:8px}

/* Chinese red lacquer */
.ei-memory-style-chinese{font-family:"Noto Serif TC","Songti TC",serif;color:#f8e7c4}.ei-memory-style-chinese .ei-game-window{background:#651313;border-color:#260707;box-shadow:inset 5px 5px 0 #b5392d,inset -5px -5px 0 #330909,0 15px 30px rgba(101,19,19,.35)}.ei-memory-style-chinese .ei-game-topbar,.ei-memory-style-chinese .ei-game-bottom{background:#260707}.ei-memory-style-chinese .ei-game-tab{background:linear-gradient(#8e1f1f,#4e0d0d);color:#f8e7c4;border-color:#170404}.ei-memory-style-chinese .ei-game-tab.is-active{background:#d6aa55;color:#3a0808}.ei-memory-style-chinese .ei-game-panel{background:#7c1515}.ei-memory-style-chinese .ei-game-grid{background:#3a0808;border-color:#170404;box-shadow:inset 4px 4px 0 #9e2929,inset -4px -4px 0 #270606}.ei-memory-style-chinese .ei-game-slot,.ei-memory-style-chinese .ei-game-hot-slot{background:linear-gradient(135deg,#9c2323,#5a0d0d);border-color:#d6aa55}.ei-memory-style-chinese .ei-game-detail{background:#4a0b0b;color:#f8e7c4;border-color:#d6aa55}.ei-memory-style-chinese .ei-game-detail h2{background:#d6aa55;color:#3a0808;border-color:#260707}.ei-memory-style-chinese .ei-game-desc,.ei-memory-style-chinese .ei-game-status-list{background:#651313;color:#f8e7c4;border-color:#d6aa55}.ei-memory-style-chinese .ei-game-state-tag,.ei-memory-style-chinese .ei-seed-button{background:#d6aa55;border-color:#260707;color:#3a0808}

/* Japanese washi */
.ei-memory-style-japanese{font-family:"Hiragino Mincho ProN","Yu Mincho","Noto Serif TC",serif;color:#2d2a24}.ei-memory-style-japanese .ei-game-window{background:#f3eee2;border-color:#5b5143;box-shadow:0 14px 30px rgba(45,42,36,.18),inset 0 0 0 5px rgba(255,255,255,.55);border-radius:6px}.ei-memory-style-japanese .ei-game-topbar,.ei-memory-style-japanese .ei-game-bottom{background:#2d2a24;border-color:#171512}.ei-memory-style-japanese .ei-game-tab{background:#403b32;color:#f3eee2;border-color:#171512}.ei-memory-style-japanese .ei-game-tab.is-active{background:#f3eee2;color:#b84b3a}.ei-memory-style-japanese .ei-game-panel{background:#faf7ef}.ei-memory-style-japanese .ei-game-grid{background:#d7cbb8;border-color:#5b5143}.ei-memory-style-japanese .ei-game-slot,.ei-memory-style-japanese .ei-game-hot-slot{background:#f8f3e8;border-color:#7d705d;box-shadow:inset 2px 2px 0 rgba(255,255,255,.7),inset -2px -2px 0 rgba(0,0,0,.12)}.ei-memory-style-japanese .ei-game-detail{background:#f8f3e8;color:#2d2a24;border-color:#5b5143}.ei-memory-style-japanese .ei-game-detail h2{background:#b84b3a;color:#fff;border-color:#5b5143}.ei-memory-style-japanese .ei-game-desc,.ei-memory-style-japanese .ei-game-status-list{background:#fffaf0;color:#2d2a24;border-color:#cbbba0}.ei-memory-style-japanese .ei-game-state-tag,.ei-memory-style-japanese .ei-seed-button{background:#b84b3a;border-color:#5b5143;color:#fff}

/* Wabi-sabi */
.ei-memory-style-wabi{font-family:"Noto Serif TC",Georgia,serif;color:#37322a}.ei-memory-style-wabi .ei-game-window{background:#d8d0bd;border-color:#8b806b;box-shadow:0 10px 24px rgba(64,55,42,.16);border-radius:18px}.ei-memory-style-wabi .ei-game-topbar,.ei-memory-style-wabi .ei-game-bottom{background:#8b806b;border-color:#5a5144}.ei-memory-style-wabi .ei-game-tab{background:#afa38d;color:#fff8ec;border-color:#5a5144}.ei-memory-style-wabi .ei-game-tab.is-active{background:#eee8dc;color:#37322a}.ei-memory-style-wabi .ei-game-panel{background:#eee8dc}.ei-memory-style-wabi .ei-game-grid{background:#c7bca7;border-color:#8b806b;box-shadow:none}.ei-memory-style-wabi .ei-game-slot,.ei-memory-style-wabi .ei-game-hot-slot{background:#e8decc;border-color:#9b8e77;border-radius:16px;box-shadow:none}.ei-memory-style-wabi .ei-game-detail{background:#e8decc;color:#37322a;border-color:#8b806b}.ei-memory-style-wabi .ei-game-detail h2{background:#c7bca7;color:#37322a;border-color:#8b806b;text-align:left}.ei-memory-style-wabi .ei-game-desc,.ei-memory-style-wabi .ei-game-status-list{background:#eee8dc;color:#37322a;border-color:#b8ad98}.ei-memory-style-wabi .ei-game-state-tag,.ei-memory-style-wabi .ei-seed-button{background:#7b715f;border-color:#5a5144;color:#fff;border-radius:18px}

/* Cyberpunk */
.ei-memory-style-cyberpunk{font-family:Orbitron,Eurostile,ui-monospace,monospace;color:#dffbff}.ei-memory-style-cyberpunk .ei-game-window{background:#130b2b;border-color:#00e5ff;box-shadow:0 0 0 2px #ff2bd6,0 0 28px rgba(0,229,255,.45),inset 0 0 30px rgba(255,43,214,.18)}.ei-memory-style-cyberpunk .ei-game-topbar,.ei-memory-style-cyberpunk .ei-game-bottom{background:#050711;border-color:#00e5ff}.ei-memory-style-cyberpunk .ei-game-tab{background:linear-gradient(#1b1740,#080a18);color:#dffbff;border-color:#00e5ff;text-shadow:0 0 5px #00e5ff}.ei-memory-style-cyberpunk .ei-game-tab.is-active{background:#00e5ff;color:#070814;text-shadow:none;box-shadow:0 0 12px #00e5ff}.ei-memory-style-cyberpunk .ei-game-panel{background:#100c24}.ei-memory-style-cyberpunk .ei-game-grid{background:#050711;border-color:#ff2bd6;box-shadow:inset 0 0 18px rgba(0,229,255,.25)}.ei-memory-style-cyberpunk .ei-game-slot,.ei-memory-style-cyberpunk .ei-game-hot-slot{background:#12152d;border-color:#00e5ff;box-shadow:inset 0 0 10px rgba(0,229,255,.35),0 0 8px rgba(255,43,214,.18)}.ei-memory-style-cyberpunk .ei-game-detail{background:#080a18;color:#dffbff;border-color:#00e5ff;box-shadow:inset 0 0 20px rgba(255,43,214,.16)}.ei-memory-style-cyberpunk .ei-game-detail h2{background:#ff2bd6;color:#050711;border-color:#00e5ff;text-align:left}.ei-memory-style-cyberpunk .ei-game-desc,.ei-memory-style-cyberpunk .ei-game-status-list{background:#10142f;color:#dffbff;border-color:#00e5ff}.ei-memory-style-cyberpunk .ei-game-state-tag,.ei-memory-style-cyberpunk .ei-seed-button{background:#00e5ff;border-color:#ff2bd6;color:#050711}.ei-memory-style-cyberpunk .ei-game-bars b,.ei-memory-style-cyberpunk .ei-game-energy-line span{background:linear-gradient(90deg,#ff2bd6,#00e5ff)}

/* Modern minimal */
.ei-memory-style-minimal{font-family:Inter,"Noto Sans TC",sans-serif;color:#172033}.ei-memory-style-minimal .ei-game-window{background:#fff;border:1px solid #d8dee8;box-shadow:0 14px 34px rgba(15,23,42,.08);border-radius:22px}.ei-memory-style-minimal .ei-game-topbar,.ei-memory-style-minimal .ei-game-bottom{background:#f7f8fb;border-color:#e5e8ef}.ei-memory-style-minimal .ei-game-tab{background:#f7f8fb;color:#485162;border-color:#e5e8ef;box-shadow:none}.ei-memory-style-minimal .ei-game-tab.is-active{background:#111827;color:#fff;box-shadow:none}.ei-memory-style-minimal .ei-game-panel{background:#fff}.ei-memory-style-minimal .ei-game-grid{background:#f3f5f8;border:1px solid #e5e8ef;box-shadow:none;border-radius:18px}.ei-memory-style-minimal .ei-game-slot,.ei-memory-style-minimal .ei-game-hot-slot{background:#fff;border:1px solid #dfe4ec;box-shadow:0 2px 5px rgba(15,23,42,.06);border-radius:14px}.ei-memory-style-minimal .ei-game-detail{background:#fff;color:#172033;border:1px solid #e5e8ef;box-shadow:0 2px 8px rgba(15,23,42,.06);border-radius:18px}.ei-memory-style-minimal .ei-game-detail h2{background:#fff;color:#172033;border:0;text-align:left}.ei-memory-style-minimal .ei-game-desc,.ei-memory-style-minimal .ei-game-status-list{background:#f8fafc;color:#172033;border:1px solid #e5e8ef;border-radius:14px}.ei-memory-style-minimal .ei-game-state-tag,.ei-memory-style-minimal .ei-seed-button{background:#111827;border:0;color:#fff;border-radius:12px;box-shadow:none}

/* Windows 95 */
.ei-memory-style-windows95{font-family:Tahoma,"MS Sans Serif",sans-serif;color:#000}.ei-memory-style-windows95 .ei-game-window{background:#c0c0c0;border-color:#000;box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #808080;border-radius:0}.ei-memory-style-windows95 .ei-game-topbar{background:#000080;border-color:#000}.ei-memory-style-windows95 .ei-game-bottom{background:#c0c0c0;border-color:#808080;color:#000}.ei-memory-style-windows95 .ei-game-tab{background:#c0c0c0;color:#000;border-color:#808080;box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #808080;border-radius:0}.ei-memory-style-windows95 .ei-game-tab.is-active{background:#fff;color:#000}.ei-memory-style-windows95 .ei-game-panel{background:#c0c0c0}.ei-memory-style-windows95 .ei-game-grid{background:#808080;border-color:#000;box-shadow:inset 2px 2px 0 #404040,inset -2px -2px 0 #fff}.ei-memory-style-windows95 .ei-game-slot,.ei-memory-style-windows95 .ei-game-hot-slot{background:#c0c0c0;border-color:#000;box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #808080;border-radius:0}.ei-memory-style-windows95 .ei-game-detail{background:#c0c0c0;color:#000;border-color:#000}.ei-memory-style-windows95 .ei-game-detail h2{background:#000080;color:#fff;border-color:#000;text-align:left}.ei-memory-style-windows95 .ei-game-desc,.ei-memory-style-windows95 .ei-game-status-list{background:#fff;color:#000;border-color:#808080}.ei-memory-style-windows95 .ei-game-state-tag,.ei-memory-style-windows95 .ei-seed-button{background:#c0c0c0;color:#000;border-color:#000;box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #808080;border-radius:0}

/* Windows modern */
.ei-memory-style-windows11{font-family:"Segoe UI","Noto Sans TC",sans-serif;color:#202124}.ei-memory-style-windows11 .ei-game-window{background:rgba(245,247,252,.92);backdrop-filter:blur(10px);border:1px solid rgba(110,125,150,.3);box-shadow:0 18px 44px rgba(47,74,116,.18);border-radius:18px}.ei-memory-style-windows11 .ei-game-topbar,.ei-memory-style-windows11 .ei-game-bottom{background:rgba(235,241,252,.75);border-color:rgba(110,125,150,.18)}.ei-memory-style-windows11 .ei-game-tab{background:transparent;color:#314058;border-color:rgba(110,125,150,.18);box-shadow:none}.ei-memory-style-windows11 .ei-game-tab.is-active{background:#fff;color:#0067c0;border-radius:12px}.ei-memory-style-windows11 .ei-game-panel{background:transparent}.ei-memory-style-windows11 .ei-game-grid{background:rgba(255,255,255,.65);border:1px solid rgba(110,125,150,.22);box-shadow:none;border-radius:18px}.ei-memory-style-windows11 .ei-game-slot,.ei-memory-style-windows11 .ei-game-hot-slot{background:rgba(255,255,255,.85);border:1px solid rgba(110,125,150,.2);box-shadow:0 2px 8px rgba(47,74,116,.08);border-radius:12px}.ei-memory-style-windows11 .ei-game-detail{background:rgba(255,255,255,.78);color:#202124;border:1px solid rgba(110,125,150,.22);border-radius:18px}.ei-memory-style-windows11 .ei-game-detail h2{background:transparent;color:#0067c0;border:0;text-align:left}.ei-memory-style-windows11 .ei-game-desc,.ei-memory-style-windows11 .ei-game-status-list{background:rgba(255,255,255,.8);color:#202124;border:1px solid rgba(110,125,150,.18);border-radius:14px}.ei-memory-style-windows11 .ei-game-state-tag,.ei-memory-style-windows11 .ei-seed-button{background:#0067c0;color:#fff;border:0;border-radius:10px}

/* Mac classic */
.ei-memory-style-macclassic{font-family:Chicago,Monaco,"Noto Sans TC",monospace;color:#000}.ei-memory-style-macclassic .ei-game-window{background:#e5e5e5;border:2px solid #000;box-shadow:none;border-radius:0}.ei-memory-style-macclassic .ei-game-topbar,.ei-memory-style-macclassic .ei-game-bottom{background:repeating-linear-gradient(0deg,#fff 0,#fff 2px,#cfcfcf 2px,#cfcfcf 4px);border-color:#000;color:#000}.ei-memory-style-macclassic .ei-game-tab{background:#e5e5e5;color:#000;border-color:#000;box-shadow:none}.ei-memory-style-macclassic .ei-game-tab.is-active{background:#000;color:#fff}.ei-memory-style-macclassic .ei-game-panel{background:#fff}.ei-memory-style-macclassic .ei-game-grid{background:#fff;border:2px solid #000;box-shadow:none}.ei-memory-style-macclassic .ei-game-slot,.ei-memory-style-macclassic .ei-game-hot-slot{background:#fff;border:2px solid #000;box-shadow:none;border-radius:0}.ei-memory-style-macclassic .ei-game-detail{background:#fff;color:#000;border:2px solid #000}.ei-memory-style-macclassic .ei-game-detail h2{background:repeating-linear-gradient(0deg,#fff 0,#fff 2px,#cfcfcf 2px,#cfcfcf 4px);color:#000;border:2px solid #000;text-align:center}.ei-memory-style-macclassic .ei-game-desc,.ei-memory-style-macclassic .ei-game-status-list{background:#fff;color:#000;border:2px solid #000}.ei-memory-style-macclassic .ei-game-state-tag,.ei-memory-style-macclassic .ei-seed-button{background:#fff;color:#000;border:2px solid #000;border-radius:0;box-shadow:none}

/* macOS glass */
.ei-memory-style-macos{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC",sans-serif;color:#1f2937}.ei-memory-style-macos .ei-game-window{background:linear-gradient(135deg,rgba(255,255,255,.85),rgba(235,242,255,.65));backdrop-filter:blur(18px);border:1px solid rgba(160,178,210,.35);box-shadow:0 24px 55px rgba(31,41,55,.16);border-radius:24px}.ei-memory-style-macos .ei-game-topbar,.ei-memory-style-macos .ei-game-bottom{background:rgba(255,255,255,.45);border-color:rgba(160,178,210,.25)}.ei-memory-style-macos .ei-game-tab{background:transparent;color:#4b5563;border-color:rgba(160,178,210,.18);box-shadow:none}.ei-memory-style-macos .ei-game-tab.is-active{background:rgba(255,255,255,.9);color:#0f172a;border-radius:14px}.ei-memory-style-macos .ei-game-panel{background:transparent}.ei-memory-style-macos .ei-game-grid{background:rgba(255,255,255,.4);border:1px solid rgba(160,178,210,.25);box-shadow:none;border-radius:20px}.ei-memory-style-macos .ei-game-slot,.ei-memory-style-macos .ei-game-hot-slot{background:rgba(255,255,255,.75);border:1px solid rgba(160,178,210,.22);box-shadow:0 8px 20px rgba(31,41,55,.08);border-radius:16px}.ei-memory-style-macos .ei-game-detail{background:rgba(255,255,255,.72);color:#1f2937;border:1px solid rgba(160,178,210,.25);border-radius:22px}.ei-memory-style-macos .ei-game-detail h2{background:transparent;color:#0f172a;border:0;text-align:left}.ei-memory-style-macos .ei-game-desc,.ei-memory-style-macos .ei-game-status-list{background:rgba(255,255,255,.7);color:#1f2937;border:1px solid rgba(160,178,210,.22);border-radius:16px}.ei-memory-style-macos .ei-game-state-tag,.ei-memory-style-macos .ei-seed-button{background:#0a84ff;color:#fff;border:0;border-radius:999px;box-shadow:none}

/* Terminal */
.ei-memory-style-terminal{font-family:"IBM Plex Mono",Consolas,monospace;color:#74ff9a}.ei-memory-style-terminal .ei-game-window{background:#020805;border-color:#39ff88;box-shadow:0 0 20px rgba(57,255,136,.25),inset 0 0 30px rgba(57,255,136,.08);border-radius:0}.ei-memory-style-terminal .ei-game-topbar,.ei-memory-style-terminal .ei-game-bottom,.ei-memory-style-terminal .ei-game-panel{background:#020805;border-color:#39ff88}.ei-memory-style-terminal .ei-game-tab{background:#06180e;color:#74ff9a;border-color:#1f8a4a;box-shadow:none}.ei-memory-style-terminal .ei-game-tab.is-active{background:#39ff88;color:#020805}.ei-memory-style-terminal .ei-game-grid,.ei-memory-style-terminal .ei-game-detail{background:#030d08;border-color:#39ff88;box-shadow:none;color:#74ff9a}.ei-memory-style-terminal .ei-game-slot,.ei-memory-style-terminal .ei-game-hot-slot{background:#06180e;border-color:#1f8a4a;box-shadow:none}.ei-memory-style-terminal .ei-game-detail h2{background:#06180e;color:#39ff88;border-color:#39ff88;text-align:left}.ei-memory-style-terminal .ei-game-desc,.ei-memory-style-terminal .ei-game-status-list{background:#020805;color:#74ff9a;border-color:#1f8a4a}.ei-memory-style-terminal .ei-game-state-tag,.ei-memory-style-terminal .ei-seed-button{background:#06180e;color:#74ff9a;border-color:#39ff88;box-shadow:none}.ei-memory-style-terminal .ei-game-bars b,.ei-memory-style-terminal .ei-game-energy-line span{background:#39ff88}

/* Arcane magic */
.ei-memory-style-arcane{font-family:Cinzel,"Noto Serif TC",serif;color:#f1eaff}.ei-memory-style-arcane .ei-game-window{background:#25133d;border-color:#b18cff;box-shadow:0 0 30px rgba(177,140,255,.35),inset 0 0 28px rgba(97,72,180,.22);border-radius:18px}.ei-memory-style-arcane .ei-game-topbar,.ei-memory-style-arcane .ei-game-bottom{background:#160b2a;border-color:#b18cff}.ei-memory-style-arcane .ei-game-tab{background:#2f1a55;color:#f1eaff;border-color:#6f53cc}.ei-memory-style-arcane .ei-game-tab.is-active{background:#b18cff;color:#160b2a}.ei-memory-style-arcane .ei-game-panel{background:#211138}.ei-memory-style-arcane .ei-game-grid{background:#160b2a;border-color:#b18cff}.ei-memory-style-arcane .ei-game-slot,.ei-memory-style-arcane .ei-game-hot-slot{background:radial-gradient(circle at 50% 35%,#5837a3,#211138);border-color:#b18cff}.ei-memory-style-arcane .ei-game-detail{background:#160b2a;color:#f1eaff;border-color:#b18cff}.ei-memory-style-arcane .ei-game-detail h2{background:#3d2470;color:#f1eaff;border-color:#b18cff}.ei-memory-style-arcane .ei-game-desc,.ei-memory-style-arcane .ei-game-status-list{background:#25133d;color:#f1eaff;border-color:#6f53cc}.ei-memory-style-arcane .ei-game-state-tag,.ei-memory-style-arcane .ei-seed-button{background:#b18cff;color:#160b2a;border-color:#e4d7ff}

/* Steampunk */
.ei-memory-style-steampunk{font-family:Georgia,"Noto Serif TC",serif;color:#f1d7a0}.ei-memory-style-steampunk .ei-game-window{background:#543416;border-color:#1f1208;box-shadow:inset 4px 4px 0 #9a6a31,inset -4px -4px 0 #2a1709,0 18px 35px rgba(0,0,0,.36)}.ei-memory-style-steampunk .ei-game-topbar,.ei-memory-style-steampunk .ei-game-bottom{background:#2a1709}.ei-memory-style-steampunk .ei-game-tab{background:linear-gradient(#9a6a31,#4b2c12);color:#f1d7a0;border-color:#1f1208}.ei-memory-style-steampunk .ei-game-tab.is-active{background:#d2a34c;color:#2a1709}.ei-memory-style-steampunk .ei-game-panel{background:#6b431d}.ei-memory-style-steampunk .ei-game-grid{background:#2a1709;border-color:#d2a34c}.ei-memory-style-steampunk .ei-game-slot,.ei-memory-style-steampunk .ei-game-hot-slot{background:radial-gradient(circle,#9a6a31,#4b2c12);border-color:#d2a34c}.ei-memory-style-steampunk .ei-game-detail{background:#2a1709;color:#f1d7a0;border-color:#d2a34c}.ei-memory-style-steampunk .ei-game-detail h2{background:#d2a34c;color:#2a1709;border-color:#1f1208}.ei-memory-style-steampunk .ei-game-desc,.ei-memory-style-steampunk .ei-game-status-list{background:#543416;color:#f1d7a0;border-color:#9a6a31}.ei-memory-style-steampunk .ei-game-state-tag,.ei-memory-style-steampunk .ei-seed-button{background:#d2a34c;color:#2a1709;border-color:#1f1208}

/* Kawaii journal */
.ei-memory-style-kawaii{font-family:"Nunito","Noto Sans TC",sans-serif;color:#5c4651}.ei-memory-style-kawaii .ei-game-window{background:#fff5fb;border-color:#ff9fc7;box-shadow:0 12px 30px rgba(255,143,188,.24);border-radius:26px}.ei-memory-style-kawaii .ei-game-topbar,.ei-memory-style-kawaii .ei-game-bottom{background:#ffddea;border-color:#ff9fc7}.ei-memory-style-kawaii .ei-game-tab{background:#fff5fb;color:#7a5264;border-color:#ff9fc7;border-radius:14px}.ei-memory-style-kawaii .ei-game-tab.is-active{background:#ff9fc7;color:#fff}.ei-memory-style-kawaii .ei-game-panel{background:#fffafd}.ei-memory-style-kawaii .ei-game-grid{background:#fff0f8;border-color:#ffb7d4;border-radius:22px;box-shadow:none}.ei-memory-style-kawaii .ei-game-slot,.ei-memory-style-kawaii .ei-game-hot-slot{background:#fff;border-color:#ffb7d4;border-radius:18px;box-shadow:0 4px 10px rgba(255,143,188,.16)}.ei-memory-style-kawaii .ei-game-detail{background:#fff;color:#5c4651;border-color:#ffb7d4;border-radius:22px}.ei-memory-style-kawaii .ei-game-detail h2{background:#ffddea;color:#7a5264;border-color:#ff9fc7;text-align:left;border-radius:16px}.ei-memory-style-kawaii .ei-game-desc,.ei-memory-style-kawaii .ei-game-status-list{background:#fff7fb;color:#5c4651;border-color:#ffd1e3;border-radius:16px}.ei-memory-style-kawaii .ei-game-state-tag,.ei-memory-style-kawaii .ei-seed-button{background:#ff8dbc;color:#fff;border:0;border-radius:999px}

/* Ink wash */
.ei-memory-style-ink{font-family:"Noto Serif TC","Songti TC",serif;color:#1d1d1d}.ei-memory-style-ink .ei-game-window{background:#f6f1e6;border-color:#1d1d1d;box-shadow:0 10px 26px rgba(0,0,0,.12);border-radius:4px}.ei-memory-style-ink .ei-game-topbar,.ei-memory-style-ink .ei-game-bottom{background:#1d1d1d;border-color:#000}.ei-memory-style-ink .ei-game-tab{background:#333;color:#f6f1e6;border-color:#000}.ei-memory-style-ink .ei-game-tab.is-active{background:#f6f1e6;color:#1d1d1d}.ei-memory-style-ink .ei-game-panel{background:#f8f4ea}.ei-memory-style-ink .ei-game-grid{background:#ded6c8;border-color:#1d1d1d;box-shadow:none}.ei-memory-style-ink .ei-game-slot,.ei-memory-style-ink .ei-game-hot-slot{background:#fbf8f0;border-color:#1d1d1d;box-shadow:none}.ei-memory-style-ink .ei-game-detail{background:#fbf8f0;color:#1d1d1d;border-color:#1d1d1d}.ei-memory-style-ink .ei-game-detail h2{background:#1d1d1d;color:#f6f1e6;border-color:#1d1d1d;text-align:left}.ei-memory-style-ink .ei-game-desc,.ei-memory-style-ink .ei-game-status-list{background:#f6f1e6;color:#1d1d1d;border-color:#444}.ei-memory-style-ink .ei-game-state-tag,.ei-memory-style-ink .ei-seed-button{background:#1d1d1d;color:#f6f1e6;border-color:#000}

/* Glass sci-fi */
.ei-memory-style-glass{font-family:"Noto Sans TC",system-ui,sans-serif;color:#ecfbff}.ei-memory-style-glass .ei-game-window{background:linear-gradient(135deg,rgba(13,30,62,.72),rgba(37,58,130,.42));backdrop-filter:blur(14px);border:1px solid rgba(155,239,255,.5);box-shadow:0 20px 50px rgba(18,38,94,.28),inset 0 0 24px rgba(155,239,255,.12);border-radius:22px}.ei-memory-style-glass .ei-game-topbar,.ei-memory-style-glass .ei-game-bottom{background:rgba(5,14,36,.45);border-color:rgba(155,239,255,.35)}.ei-memory-style-glass .ei-game-tab{background:rgba(255,255,255,.08);color:#ecfbff;border-color:rgba(155,239,255,.25);box-shadow:none;border-radius:12px}.ei-memory-style-glass .ei-game-tab.is-active{background:rgba(155,239,255,.28);color:#fff}.ei-memory-style-glass .ei-game-panel{background:transparent}.ei-memory-style-glass .ei-game-grid{background:rgba(255,255,255,.08);border:1px solid rgba(155,239,255,.3);box-shadow:none;border-radius:18px}.ei-memory-style-glass .ei-game-slot,.ei-memory-style-glass .ei-game-hot-slot{background:rgba(255,255,255,.12);border:1px solid rgba(155,239,255,.28);box-shadow:inset 0 0 12px rgba(155,239,255,.1);border-radius:14px}.ei-memory-style-glass .ei-game-detail{background:rgba(7,20,48,.45);color:#ecfbff;border:1px solid rgba(155,239,255,.35);border-radius:18px}.ei-memory-style-glass .ei-game-detail h2{background:rgba(155,239,255,.15);color:#ecfbff;border-color:rgba(155,239,255,.28);text-align:left}.ei-memory-style-glass .ei-game-desc,.ei-memory-style-glass .ei-game-status-list{background:rgba(255,255,255,.08);color:#ecfbff;border:1px solid rgba(155,239,255,.22);border-radius:14px}.ei-memory-style-glass .ei-game-state-tag,.ei-memory-style-glass .ei-seed-button{background:rgba(155,239,255,.24);color:#fff;border-color:rgba(155,239,255,.5);border-radius:12px}

/* Keep pixel as current default; make it explicit */
.ei-memory-style-pixel .ei-game-window{border-radius:4px}


/* v0.1.8: detail action buttons containment fix */
.ei-memory-game-ui,.ei-memory-game-ui *,.ei-memory-game-ui *::before,.ei-memory-game-ui *::after{box-sizing:border-box}
.ei-memory-game-ui .ei-game-detail{min-width:0;overflow:hidden}
.ei-memory-game-ui .ei-game-detail-card{min-width:0;max-width:100%;overflow:hidden}
.ei-memory-game-ui .ei-game-detail-actions{width:100%;max-width:100%;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:stretch;overflow:hidden}
.ei-memory-game-ui .ei-game-detail-actions>*{min-width:0;max-width:100%;width:100%}
.ei-memory-game-ui .ei-game-detail-actions .ei-seed-inline-form{display:block;margin:0;padding:0;min-width:0;max-width:100%;width:100%}
.ei-memory-game-ui .ei-game-detail-actions .ei-seed-button,.ei-memory-game-ui .ei-game-detail-actions .ei-game-fake-button{display:block;width:100%;max-width:100%;min-width:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ei-memory-game-ui .ei-game-detail-actions .ei-game-fake-button{appearance:none;-webkit-appearance:none}
@media(max-width:620px){.ei-memory-game-ui .ei-game-detail-actions{grid-template-columns:1fr}}

/* v0.1.9: SVG icon system - centered, readable, no CSS-drawn tab glyphs */
.ei-memory-game-ui .ei-game-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;position:relative;line-height:1.15;min-height:72px}
.ei-memory-game-ui .ei-game-tab em{margin:0;line-height:1.15;text-align:center;width:100%}
.ei-memory-game-ui .ei-game-tab small{position:absolute;top:6px;right:6px;min-width:16px;height:16px;display:grid;place-items:center;padding:0 3px;font-size:10px;line-height:1;border:2px solid var(--line,#1d1d1d);background:#f5f5f5;color:#111;font-weight:900;box-shadow:1px 1px 0 rgba(0,0,0,.45)}
.ei-memory-game-ui .ei-tab-icon.ei-icon-has-svg{display:grid;place-items:center;width:34px;height:34px;margin:0 auto;color:#f2f2f2;position:relative;overflow:hidden;border-radius:12px;background:radial-gradient(circle at 34% 28%,rgba(120,224,255,.24),rgba(8,18,44,.98) 56%,rgba(4,9,24,1) 100%);border:1px solid rgba(124,173,221,.24);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(0,0,0,.28),0 8px 18px rgba(5,11,28,.18)}
.ei-memory-game-ui .ei-tab-icon.ei-icon-has-svg:before,.ei-memory-game-ui .ei-tab-icon.ei-icon-has-svg:after{content:"";position:absolute;inset:1px;border-radius:11px;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,0) 36%,rgba(255,205,82,.05) 100%);pointer-events:none}
.ei-memory-game-ui .ei-svg-icon{display:grid;place-items:center;width:100%;height:100%;line-height:0;color:inherit;position:relative;isolation:isolate}
.ei-memory-game-ui .ei-svg-icon svg{display:block;width:76%;height:76%;overflow:visible;vector-effect:non-scaling-stroke;filter:drop-shadow(0 2px 3px rgba(8,16,34,.18))}
.ei-memory-game-ui .ei-game-icon.ei-icon-has-svg{display:grid;place-items:center;position:absolute;left:50%;top:50%;width:42px;height:42px;transform:translate(-50%,-50%);color:#eaf7ff;border-radius:14px;background:radial-gradient(circle at 34% 28%,rgba(120,224,255,.24),rgba(8,18,44,.98) 56%,rgba(4,9,24,1) 100%);border:1px solid rgba(124,173,221,.24);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(0,0,0,.28),0 8px 18px rgba(5,11,28,.18);image-rendering:auto}
.ei-memory-game-ui .ei-game-icon.ei-icon-has-svg:before,.ei-memory-game-ui .ei-game-icon.ei-icon-has-svg:after{content:"";position:absolute;inset:1px;border-radius:12px;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,0) 36%,rgba(255,205,82,.05) 100%);pointer-events:none}
.ei-memory-game-ui .ei-game-icon.ei-icon-has-svg .ei-svg-icon svg{width:88%;height:88%}
.ei-memory-game-ui .ei-game-detail-icon .ei-game-icon.ei-icon-has-svg{width:58px;height:58px}
.ei-memory-game-ui .ei-game-hot-slot .ei-game-icon.ei-icon-has-svg{width:34px;height:34px}
.ei-memory-game-ui .ei-svg-icon .ei-ico-fill{fill:currentColor;opacity:.18}
.ei-memory-game-ui .ei-svg-icon .ei-ico-panel{fill:currentColor;opacity:.38}
.ei-memory-game-ui .ei-svg-icon .ei-ico-main{fill:currentColor;opacity:.96}
.ei-memory-game-ui .ei-svg-icon .ei-ico-accent{fill:#f4c74d}
.ei-memory-game-ui .ei-svg-icon .ei-ico-hi{fill:#ffffff;opacity:.92}
.ei-memory-game-ui .ei-svg-icon .ei-ico-stroke{fill:none;stroke:#091224;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.ei-memory-game-ui .ei-svg-icon .ei-ico-stroke-light{fill:none;stroke:rgba(255,255,255,.55);stroke-width:.9;stroke-linecap:round;stroke-linejoin:round}
.ei-memory-game-ui .ei-svg-icon-seed{color:#ff6f5f}.ei-memory-game-ui .ei-svg-icon-leaf{color:#63d86d}.ei-memory-game-ui .ei-svg-icon-gem,.ei-memory-game-ui .ei-svg-icon-shard{color:#63ddff}.ei-memory-game-ui .ei-svg-icon-key{color:#ffd565}.ei-memory-game-ui .ei-svg-icon-potion{color:#7ae9ff}.ei-memory-game-ui .ei-svg-icon-compass{color:#d7e4f2}.ei-memory-game-ui .ei-svg-icon-gear{color:#d8dde8}.ei-memory-game-ui .ei-svg-icon-core{color:#9fe9ff}.ei-memory-game-ui .ei-svg-icon-scroll{color:#eed7a1}.ei-memory-game-ui .ei-svg-icon-star{color:#ffd86e}.ei-memory-game-ui .ei-svg-icon-shield{color:#7cb9ff}.ei-memory-game-ui .ei-svg-icon-map{color:#edc98f}.ei-memory-game-ui .ei-svg-icon-flame{color:#ff914f}.ei-memory-game-ui .ei-svg-icon-moon{color:#ddd5ff}.ei-memory-game-ui .ei-svg-icon-crown{color:#ffd565}.ei-memory-game-ui .ei-svg-icon-chest{color:#d7a158}.ei-memory-game-ui .ei-svg-icon-book{color:#78b9ff}.ei-memory-game-ui .ei-svg-icon-cube{color:#78cfff}
.ei-memory-style-classic .ei-game-tab small,.ei-memory-style-european .ei-game-tab small,.ei-memory-style-medieval .ei-game-tab small,.ei-memory-style-dragon .ei-game-tab small{background:#f6e2b3;color:#40280c;border-color:#3a210b}
.ei-memory-style-modern .ei-game-tab small,.ei-memory-style-minimal .ei-game-tab small,.ei-memory-style-macos .ei-game-tab small{border:0;border-radius:999px;background:#111827;color:#fff;box-shadow:none}
.ei-memory-style-cyberpunk .ei-game-tab small,.ei-memory-style-terminal .ei-game-tab small{background:#050505;color:#39ff88;border-color:#39ff88;box-shadow:0 0 8px rgba(57,255,136,.35)}
.ei-memory-style-kawaii .ei-game-tab small{background:#fff;color:#ff5fa2;border:2px solid #ff9fc7;border-radius:999px;box-shadow:none}


/* v0.1.11 slot bottom frame fix
   Some theme skins and absolute status decorations made the bottom edge look like a missing ㄇ-shaped frame.
   Draw a non-layout overlay line using the slot's inherited border color, so every skin keeps its own color. */
.ei-memory-game-ui .ei-game-slot,
.ei-memory-game-ui .ei-game-hot-slot{
  box-sizing:border-box;
  position:relative;
}
.ei-memory-game-ui .ei-game-slot::after,
.ei-memory-game-ui .ei-game-hot-slot::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:0;
  border-bottom:3px solid;
  border-color:inherit;
  pointer-events:none;
  z-index:12;
}
.ei-memory-game-ui .ei-game-slot > *,
.ei-memory-game-ui .ei-game-hot-slot > *{
  position:relative;
  z-index:2;
}
.ei-memory-game-ui .ei-slot-mini-bars,
.ei-memory-game-ui .ei-slot-source,
.ei-memory-game-ui .ei-slot-star,
.ei-memory-game-ui .ei-slot-lock,
.ei-memory-game-ui .ei-game-hot-slot b{
  z-index:4;
}


/* v0.1.12 detail panel readability + compact status badge
   Fixes: locked status badge stretching into a large block; ID/type text too pale on light skins. */
.ei-memory-game-ui .ei-game-detail-head{
  align-items:flex-start;
}
.ei-memory-game-ui .ei-game-state-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:start;
  justify-self:end;
  width:auto;
  min-width:0;
  max-width:112px;
  min-height:0;
  padding:5px 9px;
  line-height:1.15;
  font-size:14px;
  white-space:nowrap;
  text-align:center;
  writing-mode:horizontal-tb!important;
  letter-spacing:.02em;
}
.ei-memory-game-ui .ei-game-detail h3{
  color:var(--ei-detail-title,#fff);
}
.ei-memory-game-ui .ei-game-id,
.ei-memory-game-ui .ei-game-type{
  color:var(--ei-detail-meta,#ddd);
  opacity:1;
  font-weight:700;
  text-shadow:none;
}
.ei-memory-game-ui .ei-detail-status-locked .ei-game-state-tag{
  filter:none;
  opacity:1;
}
.ei-memory-style-pixel{--ei-detail-title:#fff;--ei-detail-meta:#e7e7e7;}
.ei-memory-style-dragon{--ei-detail-title:#24351d;--ei-detail-meta:#405f31;}
.ei-memory-style-classical{--ei-detail-title:#3a2614;--ei-detail-meta:#694319;}
.ei-memory-style-medieval{--ei-detail-title:#ffe9bf;--ei-detail-meta:#e6c58d;}
.ei-memory-style-european{--ei-detail-title:#2c2430;--ei-detail-meta:#6c4d2b;}
.ei-memory-style-chinese{--ei-detail-title:#fff1c8;--ei-detail-meta:#ffd986;}
.ei-memory-style-japanese{--ei-detail-title:#2d2a24;--ei-detail-meta:#5b5143;}
.ei-memory-style-wabi{--ei-detail-title:#37322a;--ei-detail-meta:#665b4b;}
.ei-memory-style-cyberpunk{--ei-detail-title:#f7fbff;--ei-detail-meta:#75f7ff;}
.ei-memory-style-minimal{--ei-detail-title:#0f172a;--ei-detail-meta:#475569;}
.ei-memory-style-windows95{--ei-detail-title:#000;--ei-detail-meta:#333;}
.ei-memory-style-windows{--ei-detail-title:#111827;--ei-detail-meta:#4b5563;}
.ei-memory-style-macclassic{--ei-detail-title:#111;--ei-detail-meta:#333;}
.ei-memory-style-macos{--ei-detail-title:#0f172a;--ei-detail-meta:#4b5563;}
.ei-memory-style-terminal{--ei-detail-title:#a8ffbd;--ei-detail-meta:#74ff9a;}
.ei-memory-style-arcane{--ei-detail-title:#f7efff;--ei-detail-meta:#d8c5ff;}
.ei-memory-style-steampunk{--ei-detail-title:#ffe2a6;--ei-detail-meta:#f1d7a0;}
.ei-memory-style-kawaii{--ei-detail-title:#5c4651;--ei-detail-meta:#7a5264;}
.ei-memory-style-ink{--ei-detail-title:#1d1d1d;--ei-detail-meta:#333;}
.ei-memory-style-glass{--ei-detail-title:#ecfbff;--ei-detail-meta:#bfeeff;}
@media(max-width:620px){
  .ei-memory-game-ui .ei-game-state-tag{
    justify-self:start;
    max-width:100%;
    font-size:13px;
    padding:5px 8px;
  }
}


/* v0.1.13 detail metric value readability
   Fixes energy/repair numeric values becoming invisible on light skins. */
.ei-memory-game-ui .ei-game-bars span{
  color:var(--ei-detail-label,var(--ei-detail-meta,#ddd));
  opacity:1;
  text-shadow:none;
}
.ei-memory-game-ui .ei-game-bars em{
  color:var(--ei-detail-value,var(--ei-detail-title,#fff));
  opacity:1;
  font-weight:800;
  text-shadow:none;
  background:transparent!important;
  mix-blend-mode:normal!important;
}
.ei-memory-game-ui .ei-game-bars i{
  border-color:var(--ei-meter-border,#151515);
  background:var(--ei-meter-bg,#252525);
}
.ei-memory-style-pixel{--ei-detail-label:#e7e7e7;--ei-detail-value:#fff;--ei-meter-bg:#252525;--ei-meter-border:#151515;}
.ei-memory-style-dragon{--ei-detail-label:#405f31;--ei-detail-value:#24351d;--ei-meter-bg:#2d3f25;--ei-meter-border:#162211;}
.ei-memory-style-classical{--ei-detail-label:#5f421e;--ei-detail-value:#3a2614;--ei-meter-bg:#2e2114;--ei-meter-border:#1b1209;}
.ei-memory-style-medieval{--ei-detail-label:#e6c58d;--ei-detail-value:#fff0c8;--ei-meter-bg:#120e0a;--ei-meter-border:#080604;}
.ei-memory-style-european{--ei-detail-label:#6c4d2b;--ei-detail-value:#2c2430;--ei-meter-bg:#33271b;--ei-meter-border:#1b1209;}
.ei-memory-style-chinese{--ei-detail-label:#ffd986;--ei-detail-value:#fff1c8;--ei-meter-bg:#2a0505;--ei-meter-border:#130202;}
.ei-memory-style-japanese{--ei-detail-label:#5b5143;--ei-detail-value:#2d2a24;--ei-meter-bg:#302b23;--ei-meter-border:#171512;}
.ei-memory-style-wabi{--ei-detail-label:#665b4b;--ei-detail-value:#37322a;--ei-meter-bg:#433c32;--ei-meter-border:#2a251f;}
.ei-memory-style-cyberpunk{--ei-detail-label:#75f7ff;--ei-detail-value:#ffffff;--ei-meter-bg:#020515;--ei-meter-border:#00e5ff;}
.ei-memory-style-minimal{--ei-detail-label:#475569;--ei-detail-value:#0f172a;--ei-meter-bg:#111827;--ei-meter-border:#0f172a;}
.ei-memory-style-windows95{--ei-detail-label:#333;--ei-detail-value:#000;--ei-meter-bg:#111;--ei-meter-border:#000;}
.ei-memory-style-windows{--ei-detail-label:#4b5563;--ei-detail-value:#111827;--ei-meter-bg:#111827;--ei-meter-border:#0f172a;}
.ei-memory-style-macclassic{--ei-detail-label:#333;--ei-detail-value:#111;--ei-meter-bg:#111;--ei-meter-border:#000;}
.ei-memory-style-macos{--ei-detail-label:#4b5563;--ei-detail-value:#0f172a;--ei-meter-bg:#111827;--ei-meter-border:#0f172a;}
.ei-memory-style-terminal{--ei-detail-label:#74ff9a;--ei-detail-value:#a8ffbd;--ei-meter-bg:#010402;--ei-meter-border:#39ff88;}
.ei-memory-style-arcane{--ei-detail-label:#d8c5ff;--ei-detail-value:#fff;--ei-meter-bg:#12071f;--ei-meter-border:#a06cff;}
.ei-memory-style-steampunk{--ei-detail-label:#f1d7a0;--ei-detail-value:#ffe9b8;--ei-meter-bg:#211308;--ei-meter-border:#110904;}
.ei-memory-style-kawaii{--ei-detail-label:#7a5264;--ei-detail-value:#5c4651;--ei-meter-bg:#4a3140;--ei-meter-border:#291720;}
.ei-memory-style-ink{--ei-detail-label:#333;--ei-detail-value:#111;--ei-meter-bg:#111;--ei-meter-border:#000;}
.ei-memory-style-glass{--ei-detail-label:#bfeeff;--ei-detail-value:#fff;--ei-meter-bg:#081524;--ei-meter-border:#7bdcff;}


/* v0.1.14 metric value one-line fix
   Keep values like "34 / 100" on one line instead of wrapping into two rows. */
.ei-memory-game-ui .ei-game-bars div{
  grid-template-columns:minmax(82px,auto) minmax(70px,1fr) max-content;
}
.ei-memory-game-ui .ei-game-bars em{
  white-space:nowrap;
  min-width:max-content;
  display:inline-block;
  line-height:1.25;
}
@media(max-width:620px){
  .ei-memory-game-ui .ei-game-bars div{
    grid-template-columns:minmax(70px,auto) minmax(54px,1fr) max-content;
    gap:7px;
  }
  .ei-memory-game-ui .ei-game-bars em{
    font-size:12px;
  }
}

/* v0.1.15 configurable detail title alignment + optional footer energy core */
.ei-memory-game-ui .ei-game-detail h2.ei-title-align-left{text-align:left!important;}
.ei-memory-game-ui .ei-game-detail h2.ei-title-align-center{text-align:center!important;}
.ei-memory-game-ui .ei-game-detail h2.ei-title-align-right{text-align:right!important;}
.ei-memory-game-ui .ei-game-bottom.ei-no-footer-core{grid-template-columns:120px minmax(0,1fr)!important;}
.ei-memory-game-ui .ei-game-bottom.ei-no-footer-core .ei-game-hotbar{min-width:0;}
@media(max-width:980px){.ei-memory-game-ui .ei-game-bottom.ei-no-footer-core{grid-template-columns:1fr!important;}}
@media(max-width:620px){.ei-memory-game-ui .ei-game-detail h2.ei-title-align-left,.ei-memory-game-ui .ei-game-detail h2.ei-title-align-center,.ei-memory-game-ui .ei-game-detail h2.ei-title-align-right{text-align:center!important;}}


/* v0.1.16 next hint readability fix
   The next-step hint inherited dark text on a dark box in some light skins.
   Use explicit per-theme hint variables so the hint box stays readable and style-matched. */
.ei-memory-game-ui .ei-game-next-hint{
  background:var(--ei-hint-bg,#353535)!important;
  color:var(--ei-hint-text,#f3f4f6)!important;
  border-left-color:var(--ei-hint-accent,#d6a93c)!important;
  text-shadow:none!important;
  opacity:1!important;
}
.ei-memory-game-ui .ei-game-next-hint strong,
.ei-memory-game-ui .ei-game-next-hint a{
  color:var(--ei-hint-strong,var(--ei-hint-text,#fff))!important;
  opacity:1!important;
  text-shadow:none!important;
}
.ei-memory-style-pixel{--ei-hint-bg:#303030;--ei-hint-text:#f4f4f4;--ei-hint-strong:#ffffff;--ei-hint-accent:#d6a93c;}
.ei-memory-style-dragon{--ei-hint-bg:#fff9d6;--ei-hint-text:#28421e;--ei-hint-strong:#1f3516;--ei-hint-accent:#ef8d3a;}
.ei-memory-style-classical{--ei-hint-bg:#f3dfaa;--ei-hint-text:#3a2614;--ei-hint-strong:#2a1608;--ei-hint-accent:#8c5b25;}
.ei-memory-style-medieval{--ei-hint-bg:#3a2d21;--ei-hint-text:#ffe9b8;--ei-hint-strong:#fff3cf;--ei-hint-accent:#b68a4c;}
.ei-memory-style-european{--ei-hint-bg:#fff7e6;--ei-hint-text:#2c2430;--ei-hint-strong:#5e3f17;--ei-hint-accent:#b9944a;}
.ei-memory-style-chinese{--ei-hint-bg:#7b1714;--ei-hint-text:#ffe9b8;--ei-hint-strong:#fff4d1;--ei-hint-accent:#d6aa55;}
.ei-memory-style-japanese{--ei-hint-bg:#fff4df;--ei-hint-text:#2d2a24;--ei-hint-strong:#3a3328;--ei-hint-accent:#b84b3a;}
.ei-memory-style-wabi{--ei-hint-bg:#efe7d7;--ei-hint-text:#37322a;--ei-hint-strong:#2f2a23;--ei-hint-accent:#8b806b;}
.ei-memory-style-cyberpunk{--ei-hint-bg:#0d1230;--ei-hint-text:#e8fbff;--ei-hint-strong:#ffffff;--ei-hint-accent:#ff3df2;}
.ei-memory-style-minimal{--ei-hint-bg:#f1f5f9;--ei-hint-text:#0f172a;--ei-hint-strong:#020617;--ei-hint-accent:#0f172a;}
.ei-memory-style-windows95{--ei-hint-bg:#ffffff;--ei-hint-text:#000000;--ei-hint-strong:#000000;--ei-hint-accent:#000080;}
.ei-memory-style-windows{--ei-hint-bg:#eff6ff;--ei-hint-text:#111827;--ei-hint-strong:#0f172a;--ei-hint-accent:#2563eb;}
.ei-memory-style-macclassic{--ei-hint-bg:#ffffff;--ei-hint-text:#111111;--ei-hint-strong:#000000;--ei-hint-accent:#111111;}
.ei-memory-style-macos{--ei-hint-bg:rgba(255,255,255,.78);--ei-hint-text:#0f172a;--ei-hint-strong:#020617;--ei-hint-accent:#007aff;}
.ei-memory-style-terminal{--ei-hint-bg:#020805;--ei-hint-text:#9dffb8;--ei-hint-strong:#c7ffd5;--ei-hint-accent:#39ff88;}
.ei-memory-style-arcane{--ei-hint-bg:#21113b;--ei-hint-text:#f2eaff;--ei-hint-strong:#ffffff;--ei-hint-accent:#d6b0ff;}
.ei-memory-style-steampunk{--ei-hint-bg:#3a2312;--ei-hint-text:#ffe4b0;--ei-hint-strong:#fff0c9;--ei-hint-accent:#c88a35;}
.ei-memory-style-kawaii{--ei-hint-bg:#fff2f8;--ei-hint-text:#5c4651;--ei-hint-strong:#7a5264;--ei-hint-accent:#ff8dbc;}
.ei-memory-style-ink{--ei-hint-bg:#ffffff;--ei-hint-text:#1d1d1d;--ei-hint-strong:#000000;--ei-hint-accent:#1d1d1d;}
.ei-memory-style-glass{--ei-hint-bg:rgba(255,255,255,.12);--ei-hint-text:#ecfbff;--ei-hint-strong:#ffffff;--ei-hint-accent:#9befff;}


/* v0.1.17 universal button hover system
   Every clickable control now has a visible hover/focus response across all skins. */
.ei-memory-game-ui{
  --ei-hover-lift:-2px;
  --ei-hover-brightness:1.08;
  --ei-hover-glow:0 0 0 2px rgba(255,255,255,.32),0 8px 18px rgba(0,0,0,.22);
  --ei-hover-shadow:0 6px 16px rgba(0,0,0,.22);
}
.ei-memory-game-ui button,
.ei-memory-game-ui a,
.ei-memory-game-ui .ei-game-tab,
.ei-memory-game-ui .ei-game-select,
.ei-memory-game-ui .ei-game-help,
.ei-memory-game-ui .ei-game-close,
.ei-memory-game-ui .ei-game-pagination span,
.ei-memory-game-ui .ei-seed-button,
.ei-memory-game-ui .ei-game-fake-button,
.ei-memory-game-ui .ei-game-slot,
.ei-memory-game-ui .ei-game-hot-slot{
  transition:transform .16s ease,filter .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease,color .16s ease,opacity .16s ease;
}
.ei-memory-game-ui .ei-game-tab:hover,
.ei-memory-game-ui .ei-game-help:hover,
.ei-memory-game-ui .ei-game-close:hover,
.ei-memory-game-ui .ei-game-pagination span:hover,
.ei-memory-game-ui .ei-game-select:hover,
.ei-memory-game-ui .ei-seed-button:hover,
.ei-memory-game-ui .ei-game-fake-button:hover,
.ei-memory-game-ui .ei-game-slot:hover,
.ei-memory-game-ui .ei-game-hot-slot:hover{
  transform:translateY(var(--ei-hover-lift));
  filter:brightness(var(--ei-hover-brightness)) saturate(1.08);
  box-shadow:var(--ei-hover-glow),var(--ei-hover-shadow),inset 3px 3px 0 rgba(255,255,255,.28),inset -3px -3px 0 rgba(0,0,0,.26);
  z-index:8;
}
.ei-memory-game-ui .ei-game-tab.is-active:hover,
.ei-memory-game-ui .ei-game-slot.is-selected:hover,
.ei-memory-game-ui .ei-game-hot-slot.is-selected:hover{
  filter:brightness(1.04) saturate(1.08);
  box-shadow:0 0 0 3px rgba(255,255,255,.6),0 8px 18px rgba(0,0,0,.24),inset 3px 3px 0 rgba(255,255,255,.38),inset -3px -3px 0 rgba(0,0,0,.28);
}
.ei-memory-game-ui .ei-seed-button:hover,
.ei-memory-game-ui .ei-game-fake-button:hover{
  cursor:pointer;
}
.ei-memory-game-ui .ei-game-fake-button[aria-disabled="true"]:hover{
  opacity:.92;
}
.ei-memory-game-ui .ei-game-slot:hover .ei-game-icon,
.ei-memory-game-ui .ei-game-hot-slot:hover .ei-game-icon,
.ei-memory-game-ui .ei-game-tab:hover .ei-tab-icon{
  transform:translate(-50%,-50%) scale(1.08);
  filter:drop-shadow(0 0 8px rgba(255,255,255,.45));
}
.ei-memory-game-ui .ei-game-tab:hover .ei-tab-icon{
  transform:scale(1.08);
}
.ei-memory-game-ui .ei-game-tab:focus-visible,
.ei-memory-game-ui .ei-game-slot:focus-visible,
.ei-memory-game-ui .ei-game-hot-slot:focus-visible,
.ei-memory-game-ui .ei-seed-button:focus-visible,
.ei-memory-game-ui .ei-game-fake-button:focus-visible,
.ei-memory-game-ui .ei-game-help:focus-visible,
.ei-memory-game-ui .ei-game-close:focus-visible{
  outline:3px solid rgba(255,255,255,.85);
  outline-offset:2px;
}
.ei-memory-game-ui .ei-game-detail-actions .ei-seed-button:hover,
.ei-memory-game-ui .ei-game-detail-actions .ei-game-fake-button:hover{
  transform:translateY(-1px);
}
.ei-memory-style-classical .ei-game-tab:hover,
.ei-memory-style-classical .ei-game-slot:hover,
.ei-memory-style-classical .ei-game-hot-slot:hover,
.ei-memory-style-classical .ei-seed-button:hover,
.ei-memory-style-european .ei-game-tab:hover,
.ei-memory-style-european .ei-game-slot:hover,
.ei-memory-style-european .ei-game-hot-slot:hover,
.ei-memory-style-european .ei-seed-button:hover,
.ei-memory-style-japanese .ei-game-tab:hover,
.ei-memory-style-japanese .ei-game-slot:hover,
.ei-memory-style-japanese .ei-game-hot-slot:hover,
.ei-memory-style-japanese .ei-seed-button:hover,
.ei-memory-style-wabi .ei-game-tab:hover,
.ei-memory-style-wabi .ei-game-slot:hover,
.ei-memory-style-wabi .ei-game-hot-slot:hover,
.ei-memory-style-wabi .ei-seed-button:hover,
.ei-memory-style-minimal .ei-game-tab:hover,
.ei-memory-style-minimal .ei-game-slot:hover,
.ei-memory-style-minimal .ei-game-hot-slot:hover,
.ei-memory-style-minimal .ei-seed-button:hover{
  box-shadow:0 0 0 2px rgba(80,50,16,.18),0 8px 18px rgba(80,50,16,.18),inset 2px 2px 0 rgba(255,255,255,.35),inset -2px -2px 0 rgba(0,0,0,.14);
}
@media (prefers-reduced-motion: reduce){
  .ei-memory-game-ui button,
  .ei-memory-game-ui a,
  .ei-memory-game-ui .ei-game-tab,
  .ei-memory-game-ui .ei-game-slot,
  .ei-memory-game-ui .ei-game-hot-slot,
  .ei-memory-game-ui .ei-seed-button,
  .ei-memory-game-ui .ei-game-fake-button{
    transition:none;
  }
  .ei-memory-game-ui .ei-game-tab:hover,
  .ei-memory-game-ui .ei-game-slot:hover,
  .ei-memory-game-ui .ei-game-hot-slot:hover,
  .ei-memory-game-ui .ei-seed-button:hover,
  .ei-memory-game-ui .ei-game-fake-button:hover{
    transform:none;
  }
}


/* v0.1.18 robust slot frame fix for all skins
   Previous bottom-only repair could still be visually overridden by selected/hover/theme shadows.
   This draws a full four-sided frame above decorations, so no theme becomes a ㄇ-shaped slot. */
.ei-memory-game-ui .ei-game-slot,
.ei-memory-game-ui .ei-game-hot-slot{
  --ei-slot-frame-color: currentColor;
  isolation:isolate;
  position:relative;
  overflow:hidden;
}
.ei-memory-game-ui .ei-game-slot::before,
.ei-memory-game-ui .ei-game-hot-slot::before{
  content:"";
  position:absolute;
  inset:0;
  border:3px solid var(--ei-slot-frame-color);
  pointer-events:none;
  z-index:30;
  box-sizing:border-box;
}
.ei-memory-game-ui .ei-game-slot::after,
.ei-memory-game-ui .ei-game-hot-slot::after{
  display:none!important;
}
.ei-memory-game-ui .ei-game-slot,
.ei-memory-game-ui .ei-game-hot-slot{--ei-slot-frame-color:var(--line,#1d1d1d)}
.ei-memory-game-ui .ei-game-slot.is-selected,
.ei-memory-game-ui .ei-game-hot-slot.is-selected{--ei-slot-frame-color:#fff}
.ei-memory-style-classical .ei-game-slot,.ei-memory-style-classical .ei-game-hot-slot{--ei-slot-frame-color:#3e270f}
.ei-memory-style-classical .ei-game-slot.is-selected,.ei-memory-style-classical .ei-game-hot-slot.is-selected{--ei-slot-frame-color:#d6aa55}
.ei-memory-style-medieval .ei-game-slot,.ei-memory-style-medieval .ei-game-hot-slot{--ei-slot-frame-color:#0d0a08}
.ei-memory-style-medieval .ei-game-slot.is-selected,.ei-memory-style-medieval .ei-game-hot-slot.is-selected{--ei-slot-frame-color:#c69a55}
.ei-memory-style-european .ei-game-slot,.ei-memory-style-european .ei-game-hot-slot{--ei-slot-frame-color:#c49b50}
.ei-memory-style-european .ei-game-slot.is-selected,.ei-memory-style-european .ei-game-hot-slot.is-selected{--ei-slot-frame-color:#7a5521}
.ei-memory-style-chinese .ei-game-slot,.ei-memory-style-chinese .ei-game-hot-slot{--ei-slot-frame-color:#d6aa55}
.ei-memory-style-chinese .ei-game-slot.is-selected,.ei-memory-style-chinese .ei-game-hot-slot.is-selected{--ei-slot-frame-color:#ffd95e}
.ei-memory-style-japanese .ei-game-slot,.ei-memory-style-japanese .ei-game-hot-slot{--ei-slot-frame-color:#7d705d}
.ei-memory-style-japanese .ei-game-slot.is-selected,.ei-memory-style-japanese .ei-game-hot-slot.is-selected{--ei-slot-frame-color:#b84b3a}
.ei-memory-style-wabi .ei-game-slot,.ei-memory-style-wabi .ei-game-hot-slot{--ei-slot-frame-color:#9b8e77}
.ei-memory-style-wabi .ei-game-slot.is-selected,.ei-memory-style-wabi .ei-game-hot-slot.is-selected{--ei-slot-frame-color:#5a5144}
.ei-memory-style-cyberpunk .ei-game-slot,.ei-memory-style-cyberpunk .ei-game-hot-slot{--ei-slot-frame-color:#17f1ff}
.ei-memory-style-cyberpunk .ei-game-slot.is-selected,.ei-memory-style-cyberpunk .ei-game-hot-slot.is-selected{--ei-slot-frame-color:#ff2bd6}
.ei-memory-style-minimal .ei-game-slot,.ei-memory-style-minimal .ei-game-hot-slot{--ei-slot-frame-color:#d1d5db}
.ei-memory-style-minimal .ei-game-slot.is-selected,.ei-memory-style-minimal .ei-game-hot-slot.is-selected{--ei-slot-frame-color:#111827}
.ei-memory-style-windows95 .ei-game-slot,.ei-memory-style-windows95 .ei-game-hot-slot{--ei-slot-frame-color:#404040}
.ei-memory-style-windows95 .ei-game-slot.is-selected,.ei-memory-style-windows95 .ei-game-hot-slot.is-selected{--ei-slot-frame-color:#000080}
.ei-memory-style-windows .ei-game-slot,.ei-memory-style-windows .ei-game-hot-slot{--ei-slot-frame-color:#9cc5f6}
.ei-memory-style-windows .ei-game-slot.is-selected,.ei-memory-style-windows .ei-game-hot-slot.is-selected{--ei-slot-frame-color:#0a64d6}
.ei-memory-style-mac .ei-game-slot,.ei-memory-style-mac .ei-game-hot-slot,
.ei-memory-style-macos .ei-game-slot,.ei-memory-style-macos .ei-game-hot-slot{--ei-slot-frame-color:#a0b2d2}
.ei-memory-style-mac .ei-game-slot.is-selected,.ei-memory-style-mac .ei-game-hot-slot.is-selected,
.ei-memory-style-macos .ei-game-slot.is-selected,.ei-memory-style-macos .ei-game-hot-slot.is-selected{--ei-slot-frame-color:#0a84ff}
.ei-memory-style-terminal .ei-game-slot,.ei-memory-style-terminal .ei-game-hot-slot{--ei-slot-frame-color:#39ff88}
.ei-memory-style-arcane .ei-game-slot,.ei-memory-style-arcane .ei-game-hot-slot{--ei-slot-frame-color:#b18cff}
.ei-memory-style-steampunk .ei-game-slot,.ei-memory-style-steampunk .ei-game-hot-slot{--ei-slot-frame-color:#d2a34c}
.ei-memory-style-kawaii .ei-game-slot,.ei-memory-style-kawaii .ei-game-hot-slot{--ei-slot-frame-color:#ffb7d4}
.ei-memory-style-kawaii .ei-game-slot.is-selected,.ei-memory-style-kawaii .ei-game-hot-slot.is-selected{--ei-slot-frame-color:#ff5fa2}
.ei-memory-style-ink .ei-game-slot,.ei-memory-style-ink .ei-game-hot-slot{--ei-slot-frame-color:#1d1d1d}
.ei-memory-style-glass .ei-game-slot,.ei-memory-style-glass .ei-game-hot-slot{--ei-slot-frame-color:rgba(155,239,255,.55)}
.ei-memory-style-glass .ei-game-slot.is-selected,.ei-memory-style-glass .ei-game-hot-slot.is-selected{--ei-slot-frame-color:#ecfbff}

/* v0.1.19 slot frame rollback + clean hover line
   The full overlay frame in v0.1.18 became too thick and uneven in several skins.
   Restore the original slot border weight and only repair the missing bottom edge with a thin overlay. */
.ei-memory-game-ui .ei-game-slot,
.ei-memory-game-ui .ei-game-hot-slot{
  --ei-slot-line-color:var(--ei-slot-frame-color,currentColor);
  --ei-slot-hover-line:#f4c542;
  border-width:3px!important;
  overflow:hidden;
  isolation:isolate;
}
.ei-memory-game-ui .ei-game-slot::before,
.ei-memory-game-ui .ei-game-hot-slot::before{
  display:none!important;
}
.ei-memory-game-ui .ei-game-slot::after,
.ei-memory-game-ui .ei-game-hot-slot::after{
  content:""!important;
  display:block!important;
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:0;
  border-bottom:3px solid var(--ei-slot-line-color)!important;
  pointer-events:none;
  z-index:18;
  box-sizing:border-box;
}
.ei-memory-game-ui .ei-game-slot:hover::after,
.ei-memory-game-ui .ei-game-hot-slot:hover::after{
  border-bottom-color:var(--ei-slot-hover-line)!important;
}
.ei-memory-game-ui .ei-game-slot:hover,
.ei-memory-game-ui .ei-game-hot-slot:hover{
  box-shadow:inset 3px 3px 0 rgba(255,255,255,.24),inset -3px -3px 0 rgba(0,0,0,.22),0 0 0 1px rgba(255,255,255,.18)!important;
}
.ei-memory-game-ui .ei-slot-lock{
  left:auto!important;
  right:3px!important;
  top:3px!important;
  transform:none!important;
  width:16px!important;
  height:16px!important;
  display:grid!important;
  place-items:center!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:900!important;
  color:#fff!important;
  background:rgba(0,0,0,.78)!important;
  border:1px solid rgba(255,255,255,.45)!important;
  box-shadow:0 1px 0 rgba(0,0,0,.45)!important;
  text-shadow:none!important;
  z-index:22!important;
  pointer-events:none!important;
}
.ei-memory-game-ui .ei-slot-source,
.ei-memory-game-ui .ei-slot-mini-bars,
.ei-memory-game-ui .ei-slot-star,
.ei-memory-game-ui .ei-game-hot-slot b{
  z-index:20!important;
}
.ei-memory-style-classical{--ei-slot-hover-line:#d6aa55}.ei-memory-style-medieval{--ei-slot-hover-line:#c69a55}.ei-memory-style-european{--ei-slot-hover-line:#b9944a}.ei-memory-style-chinese{--ei-slot-hover-line:#ffd95e}.ei-memory-style-japanese{--ei-slot-hover-line:#b84b3a}.ei-memory-style-wabi{--ei-slot-hover-line:#5a5144}.ei-memory-style-cyberpunk{--ei-slot-hover-line:#ff2bd6}.ei-memory-style-minimal{--ei-slot-hover-line:#111827}.ei-memory-style-windows95{--ei-slot-hover-line:#000080}.ei-memory-style-windows{--ei-slot-hover-line:#0a64d6}.ei-memory-style-mac,.ei-memory-style-macos{--ei-slot-hover-line:#0a84ff}.ei-memory-style-terminal{--ei-slot-hover-line:#74ff9a}.ei-memory-style-arcane{--ei-slot-hover-line:#d8c5ff}.ei-memory-style-steampunk{--ei-slot-hover-line:#d2a34c}.ei-memory-style-kawaii{--ei-slot-hover-line:#ff5fa2}.ei-memory-style-ink{--ei-slot-hover-line:#111}.ei-memory-style-glass{--ei-slot-hover-line:#ecfbff}


/* v0.1.20 hotbar number outside slot
   Move the quick-slot number below the icon cell instead of overlaying it inside the item slot. */
.ei-memory-game-ui .ei-game-hotbar{
  align-items:start;
  gap:6px;
}
.ei-memory-game-ui .ei-game-hotbar-cell{
  display:grid;
  grid-template-rows:auto auto;
  justify-items:center;
  align-items:start;
  gap:3px;
  min-width:0;
}
.ei-memory-game-ui .ei-game-hotbar-cell .ei-game-hot-slot{
  width:100%;
  min-height:0;
}
.ei-memory-game-ui .ei-hotbar-number{
  display:block;
  position:static!important;
  right:auto!important;
  bottom:auto!important;
  width:100%;
  min-height:16px;
  line-height:16px;
  text-align:center;
  font-size:12px;
  font-weight:900;
  color:var(--ei-hotbar-number-color,currentColor);
  text-shadow:none;
  pointer-events:none;
}
.ei-memory-style-pixel,.ei-memory-style-medieval,.ei-memory-style-chinese,.ei-memory-style-cyberpunk,.ei-memory-style-terminal,.ei-memory-style-arcane,.ei-memory-style-steampunk,.ei-memory-style-glass{
  --ei-hotbar-number-color:#f8f3df;
}
.ei-memory-style-classical,.ei-memory-style-european,.ei-memory-style-japanese,.ei-memory-style-wabi,.ei-memory-style-minimal,.ei-memory-style-windows95,.ei-memory-style-windows,.ei-memory-style-mac,.ei-memory-style-macos,.ei-memory-style-kawaii,.ei-memory-style-ink,.ei-memory-style-dragon{
  --ei-hotbar-number-color:#2b2418;
}
@media(max-width:620px){
  .ei-memory-game-ui .ei-game-hotbar-cell{gap:2px}
  .ei-memory-game-ui .ei-hotbar-number{font-size:11px;line-height:14px;min-height:14px}
}

.ei-memory-game-ui .ei-game-hot-slot > b{display:none!important}


/* v0.1.21 — neutral UI blending fix
   The modern/light skins previously kept several deep pixel-gray blocks from the base inventory skin.
   These rules make controls, detail buttons, and the global energy core inherit the current skin's softer material language. */
.ei-memory-style-modern,
.ei-memory-style-minimal,
.ei-memory-style-windows,
.ei-memory-style-macos,
.ei-memory-style-mac,
.ei-memory-style-european,
.ei-memory-style-japanese,
.ei-memory-style-wabi,
.ei-memory-style-kawaii,
.ei-memory-style-ink,
.ei-memory-style-dragon{
  --ei-soft-panel:#ffffff;
  --ei-soft-panel-2:#f8fafc;
  --ei-soft-line:#dbe3ef;
  --ei-soft-line-strong:#9aa8b8;
  --ei-soft-text:#111827;
  --ei-soft-muted:#475569;
  --ei-soft-accent:#2563eb;
  --ei-soft-accent-text:#ffffff;
  --ei-soft-shadow:0 8px 22px rgba(15,23,42,.08);
}
.ei-memory-style-classical{--ei-soft-panel:#f4e7c4;--ei-soft-panel-2:#ead7a7;--ei-soft-line:#936a31;--ei-soft-line-strong:#6f471d;--ei-soft-text:#3a2614;--ei-soft-muted:#5c4323;--ei-soft-accent:#8c5b25;--ei-soft-accent-text:#f8e7bd;--ei-soft-shadow:0 8px 18px rgba(58,38,20,.14)}
.ei-memory-style-european{--ei-soft-panel:#fffaf0;--ei-soft-panel-2:#f8f4ea;--ei-soft-line:#e3c98c;--ei-soft-line-strong:#c49b50;--ei-soft-text:#2c2430;--ei-soft-muted:#5a4b3e;--ei-soft-accent:#b9944a;--ei-soft-accent-text:#fff}
.ei-memory-style-japanese{--ei-soft-panel:#fffaf0;--ei-soft-panel-2:#f8f3e8;--ei-soft-line:#cbbba0;--ei-soft-line-strong:#7d705d;--ei-soft-text:#2d2a24;--ei-soft-muted:#5b5143;--ei-soft-accent:#b84b3a;--ei-soft-accent-text:#fff}
.ei-memory-style-wabi{--ei-soft-panel:#e8decc;--ei-soft-panel-2:#eee8dc;--ei-soft-line:#b6aa93;--ei-soft-line-strong:#8b806b;--ei-soft-text:#37322a;--ei-soft-muted:#5a5144;--ei-soft-accent:#8b806b;--ei-soft-accent-text:#fff8ec;--ei-soft-shadow:none}
.ei-memory-style-kawaii{--ei-soft-panel:#fff;--ei-soft-panel-2:#fff7fb;--ei-soft-line:#ffd1e3;--ei-soft-line-strong:#ff9fc7;--ei-soft-text:#5c4651;--ei-soft-muted:#7a5264;--ei-soft-accent:#ff8dbc;--ei-soft-accent-text:#fff}
.ei-memory-style-ink{--ei-soft-panel:#fbf8f0;--ei-soft-panel-2:#f6f1e6;--ei-soft-line:#444;--ei-soft-line-strong:#1d1d1d;--ei-soft-text:#1d1d1d;--ei-soft-muted:#333;--ei-soft-accent:#1d1d1d;--ei-soft-accent-text:#f6f1e6}
.ei-memory-style-dragon{--ei-soft-panel:#fff9d9;--ei-soft-panel-2:#edf9dc;--ei-soft-line:#9ac67d;--ei-soft-line-strong:#486d2e;--ei-soft-text:#24351d;--ei-soft-muted:#486d2e;--ei-soft-accent:#4f8b36;--ei-soft-accent-text:#fff}

.ei-memory-style-modern .ei-game-select,
.ei-memory-style-minimal .ei-game-select,
.ei-memory-style-windows .ei-game-select,
.ei-memory-style-macos .ei-game-select,
.ei-memory-style-mac .ei-game-select,
.ei-memory-style-european .ei-game-select,
.ei-memory-style-japanese .ei-game-select,
.ei-memory-style-wabi .ei-game-select,
.ei-memory-style-kawaii .ei-game-select,
.ei-memory-style-ink .ei-game-select,
.ei-memory-style-dragon .ei-game-select,
.ei-memory-style-classical .ei-game-select{
  background:var(--ei-soft-panel);
  color:var(--ei-soft-text);
  border-color:var(--ei-soft-line-strong);
  box-shadow:var(--ei-soft-shadow);
  border-radius:10px;
}
.ei-memory-style-modern .ei-game-fake-button,
.ei-memory-style-minimal .ei-game-fake-button,
.ei-memory-style-windows .ei-game-fake-button,
.ei-memory-style-macos .ei-game-fake-button,
.ei-memory-style-mac .ei-game-fake-button,
.ei-memory-style-european .ei-game-fake-button,
.ei-memory-style-japanese .ei-game-fake-button,
.ei-memory-style-wabi .ei-game-fake-button,
.ei-memory-style-kawaii .ei-game-fake-button,
.ei-memory-style-ink .ei-game-fake-button,
.ei-memory-style-dragon .ei-game-fake-button,
.ei-memory-style-classical .ei-game-fake-button{
  background:var(--ei-soft-panel-2)!important;
  color:var(--ei-soft-text)!important;
  border-color:var(--ei-soft-line-strong)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.45), var(--ei-soft-shadow)!important;
}
.ei-memory-style-modern .ei-game-detail-actions .ei-seed-button,
.ei-memory-style-minimal .ei-game-detail-actions .ei-seed-button,
.ei-memory-style-windows .ei-game-detail-actions .ei-seed-button,
.ei-memory-style-macos .ei-game-detail-actions .ei-seed-button,
.ei-memory-style-mac .ei-game-detail-actions .ei-seed-button,
.ei-memory-style-european .ei-game-detail-actions .ei-seed-button,
.ei-memory-style-japanese .ei-game-detail-actions .ei-seed-button,
.ei-memory-style-wabi .ei-game-detail-actions .ei-seed-button,
.ei-memory-style-kawaii .ei-game-detail-actions .ei-seed-button,
.ei-memory-style-ink .ei-game-detail-actions .ei-seed-button,
.ei-memory-style-dragon .ei-game-detail-actions .ei-seed-button,
.ei-memory-style-classical .ei-game-detail-actions .ei-seed-button{
  background:var(--ei-soft-accent)!important;
  color:var(--ei-soft-accent-text)!important;
  border-color:var(--ei-soft-line-strong)!important;
  box-shadow:var(--ei-soft-shadow)!important;
}
.ei-memory-style-modern .ei-game-energy-core,
.ei-memory-style-minimal .ei-game-energy-core,
.ei-memory-style-windows .ei-game-energy-core,
.ei-memory-style-macos .ei-game-energy-core,
.ei-memory-style-mac .ei-game-energy-core,
.ei-memory-style-european .ei-game-energy-core,
.ei-memory-style-japanese .ei-game-energy-core,
.ei-memory-style-wabi .ei-game-energy-core,
.ei-memory-style-kawaii .ei-game-energy-core,
.ei-memory-style-ink .ei-game-energy-core,
.ei-memory-style-dragon .ei-game-energy-core,
.ei-memory-style-classical .ei-game-energy-core{
  background:var(--ei-soft-panel-2)!important;
  color:var(--ei-soft-text)!important;
  border-color:var(--ei-soft-line-strong)!important;
  box-shadow:var(--ei-soft-shadow)!important;
  border-radius:10px;
}
.ei-memory-style-modern .ei-game-energy-line,
.ei-memory-style-minimal .ei-game-energy-line,
.ei-memory-style-windows .ei-game-energy-line,
.ei-memory-style-macos .ei-game-energy-line,
.ei-memory-style-mac .ei-game-energy-line,
.ei-memory-style-european .ei-game-energy-line,
.ei-memory-style-japanese .ei-game-energy-line,
.ei-memory-style-wabi .ei-game-energy-line,
.ei-memory-style-kawaii .ei-game-energy-line,
.ei-memory-style-ink .ei-game-energy-line,
.ei-memory-style-dragon .ei-game-energy-line,
.ei-memory-style-classical .ei-game-energy-line{
  background:rgba(15,23,42,.10)!important;
  border-color:var(--ei-soft-line-strong)!important;
}
.ei-memory-style-modern .ei-game-help,
.ei-memory-style-modern .ei-game-close,
.ei-memory-style-minimal .ei-game-help,
.ei-memory-style-minimal .ei-game-close,
.ei-memory-style-windows .ei-game-help,
.ei-memory-style-windows .ei-game-close,
.ei-memory-style-macos .ei-game-help,
.ei-memory-style-macos .ei-game-close,
.ei-memory-style-mac .ei-game-help,
.ei-memory-style-mac .ei-game-close,
.ei-memory-style-european .ei-game-help,
.ei-memory-style-european .ei-game-close,
.ei-memory-style-japanese .ei-game-help,
.ei-memory-style-japanese .ei-game-close,
.ei-memory-style-wabi .ei-game-help,
.ei-memory-style-wabi .ei-game-close,
.ei-memory-style-kawaii .ei-game-help,
.ei-memory-style-kawaii .ei-game-close,
.ei-memory-style-ink .ei-game-help,
.ei-memory-style-ink .ei-game-close,
.ei-memory-style-dragon .ei-game-help,
.ei-memory-style-dragon .ei-game-close,
.ei-memory-style-classical .ei-game-help,
.ei-memory-style-classical .ei-game-close{
  background:var(--ei-soft-panel)!important;
  color:var(--ei-soft-text)!important;
  border-color:var(--ei-soft-line-strong)!important;
  box-shadow:var(--ei-soft-shadow)!important;
}
.ei-memory-style-modern .ei-game-bottom,
.ei-memory-style-minimal .ei-game-bottom,
.ei-memory-style-windows .ei-game-bottom,
.ei-memory-style-macos .ei-game-bottom,
.ei-memory-style-mac .ei-game-bottom,
.ei-memory-style-european .ei-game-bottom,
.ei-memory-style-japanese .ei-game-bottom,
.ei-memory-style-wabi .ei-game-bottom,
.ei-memory-style-kawaii .ei-game-bottom,
.ei-memory-style-ink .ei-game-bottom,
.ei-memory-style-dragon .ei-game-bottom,
.ei-memory-style-classical .ei-game-bottom{
  background:var(--ei-soft-panel-2)!important;
  color:var(--ei-soft-muted)!important;
  border-top-color:var(--ei-soft-line)!important;
}


/* v0.1.23 custom SVG icon color */
.ei-memory-game-ui .ei-game-icon.ei-icon-has-svg[style*="--ei-icon-color"] .ei-svg-icon{
  color:var(--ei-icon-color)!important;
}
.ei-memory-game-ui .ei-game-icon.ei-icon-has-svg[style*="--ei-icon-color"] svg{
  stroke:var(--ei-icon-color)!important;
}

/* v0.1.31+ detail description contrast system */
.ei-memory-game-ui{--ei-desc-text:#f3f4f6;--ei-desc-strong:#ffffff;--ei-desc-muted:#e5e7eb;--ei-desc-border:rgba(255,255,255,.18)}
.ei-memory-style-pixel,.ei-memory-style-medieval,.ei-memory-style-chinese,.ei-memory-style-cyberpunk,.ei-memory-style-terminal,.ei-memory-style-arcane,.ei-memory-style-steampunk,.ei-memory-style-glass{--ei-desc-text:#f6f7fb;--ei-desc-strong:#ffffff;--ei-desc-muted:#e7e7e7;--ei-desc-border:rgba(255,255,255,.18)}
.ei-memory-style-dragon,.ei-memory-style-classic,.ei-memory-style-classical,.ei-memory-style-european,.ei-memory-style-japanese,.ei-memory-style-wabi,.ei-memory-style-minimal,.ei-memory-style-modern,.ei-memory-style-windows95,.ei-memory-style-windows11,.ei-memory-style-windows,.ei-memory-style-macclassic,.ei-memory-style-mac,.ei-memory-style-macos,.ei-memory-style-kawaii,.ei-memory-style-ink{--ei-desc-text:#1f2937;--ei-desc-strong:#111827;--ei-desc-muted:#334155;--ei-desc-border:rgba(15,23,42,.18)}
.ei-memory-style-classical{--ei-desc-text:#3a2614;--ei-desc-strong:#241307;--ei-desc-muted:#5c4323;--ei-desc-border:rgba(93,64,31,.28)}.ei-memory-style-european{--ei-desc-text:#2c2430;--ei-desc-strong:#1f1722;--ei-desc-muted:#5a4b3e;--ei-desc-border:rgba(185,148,74,.26)}.ei-memory-style-japanese{--ei-desc-text:#2d2a24;--ei-desc-strong:#1f1c18;--ei-desc-muted:#5b5143;--ei-desc-border:rgba(125,112,93,.28)}.ei-memory-style-wabi{--ei-desc-text:#37322a;--ei-desc-strong:#242019;--ei-desc-muted:#5a5144;--ei-desc-border:rgba(90,81,68,.26)}.ei-memory-style-kawaii{--ei-desc-text:#5c4651;--ei-desc-strong:#46313b;--ei-desc-muted:#7a5264;--ei-desc-border:rgba(255,159,199,.34)}.ei-memory-style-ink{--ei-desc-text:#1d1d1d;--ei-desc-strong:#000;--ei-desc-muted:#333;--ei-desc-border:rgba(0,0,0,.28)}
.ei-memory-game-ui .ei-game-desc,.ei-memory-game-ui .ei-game-desc p,.ei-memory-game-ui .ei-game-desc span,.ei-memory-game-ui .ei-game-desc div,.ei-memory-game-ui .ei-game-desc li{color:var(--ei-desc-text)!important;opacity:1!important;text-shadow:none!important}.ei-memory-game-ui .ei-game-desc{border-color:var(--ei-desc-border)!important}.ei-memory-game-ui .ei-game-desc strong,.ei-memory-game-ui .ei-game-desc b,.ei-memory-game-ui .ei-game-desc a{color:var(--ei-desc-strong)!important;opacity:1!important;text-shadow:none!important}.ei-memory-game-ui .ei-game-status-list,.ei-memory-game-ui .ei-game-status-list span,.ei-memory-game-ui .ei-game-status-list strong{color:var(--ei-desc-text)!important;opacity:1!important;text-shadow:none!important}.ei-memory-game-ui .ei-game-status-list strong{color:var(--ei-desc-strong)!important}.ei-memory-game-ui .ei-game-detail .ei-game-id,.ei-memory-game-ui .ei-game-detail .ei-game-type,.ei-memory-game-ui .ei-game-bars span{color:var(--ei-desc-muted,var(--ei-desc-text))!important}

/* v0.1.40 slot clarity + hint readability refinement */
.ei-memory-game-ui .ei-slot-status-locked .ei-game-icon{
  opacity:.22;
  filter:grayscale(1) brightness(.72);
}
.ei-memory-game-ui .ei-slot-lock{
  left:50%;
  top:50%;
  width:40px;
  height:40px;
  transform:translate(-50%,-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(22,24,30,.96),rgba(10,11,16,.94));
  border:2px solid rgba(255,255,255,.82);
  box-shadow:0 5px 14px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.24);
  color:#ffffff;
  font-size:28px;
  font-weight:900;
  line-height:1;
  text-shadow:none;
}
.ei-memory-game-ui .ei-slot-lock span{
  display:block;
  transform:translateY(-1px);
}
.ei-memory-game-ui .ei-slot-badge{
  position:absolute;
  left:4px;
  right:4px;
  bottom:4px;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:16px;
  padding:1px 4px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  line-height:1.15;
  letter-spacing:.04em;
  text-shadow:none;
  border:1px solid rgba(0,0,0,.35);
  box-shadow:0 1px 5px rgba(0,0,0,.24);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  pointer-events:none;
}
.ei-memory-game-ui .ei-slot-badge-locked{background:rgba(18,18,20,.94);color:#fff;border-color:rgba(255,255,255,.2);}
.ei-memory-game-ui .ei-slot-badge-claimable{background:#2f7d32;color:#fff;border-color:#173c18;}
.ei-memory-game-ui .ei-slot-badge-discovered{background:#245fb7;color:#fff;border-color:#123059;}
.ei-memory-game-ui .ei-slot-badge-planted{background:#6a4bb8;color:#fff;border-color:#35215d;}
.ei-memory-game-ui .ei-slot-badge-grown{background:#cb8b17;color:#221503;border-color:#654207;}
.ei-memory-game-ui .ei-slot-badge-archived{background:#475569;color:#fff;border-color:#1f2937;}
.ei-memory-game-ui .ei-slot-status-locked .ei-slot-source,
.ei-memory-game-ui .ei-slot-status-locked .ei-slot-mini-bars{
  opacity:.15;
}
.ei-memory-game-ui .ei-game-slot.has-action{
  box-shadow:0 0 0 1px rgba(255,212,79,.42), inset 3px 3px 0 #8b8b8b, inset -3px -3px 0 #292929;
}
.ei-memory-game-ui .ei-game-next-hint,
.ei-memory-game-ui .ei-game-next-hint p,
.ei-memory-game-ui .ei-game-next-hint span,
.ei-memory-game-ui .ei-game-next-hint div,
.ei-memory-game-ui .ei-game-next-hint li{
  color:var(--ei-hint-text,#f3f4f6)!important;
  opacity:1!important;
  text-shadow:none!important;
}
.ei-memory-game-ui .ei-game-next-hint p:last-child,
.ei-memory-game-ui .ei-game-next-hint ul:last-child,
.ei-memory-game-ui .ei-game-next-hint ol:last-child{
  margin-bottom:0;
}
.ei-memory-game-ui .ei-game-next-hint{
  border-radius:10px;
  line-height:1.65;
}
@media(max-width:620px){
  .ei-memory-game-ui .ei-slot-badge{
    font-size:9px;
    min-height:15px;
    left:3px;
    right:3px;
    bottom:3px;
  }
  .ei-memory-game-ui .ei-slot-lock{
    width:34px;
    height:34px;
    font-size:24px;
  }
}

/* v0.1.41 slot marker cleanup + lock marker reposition */
.ei-memory-game-ui .ei-slot-source{
  display:none!important;
}
.ei-memory-game-ui .ei-slot-mini-bars{
  left:auto!important;
  right:6px!important;
  top:6px!important;
  bottom:auto!important;
  display:inline-flex!important;
  align-items:center;
  gap:3px;
  padding:2px 4px;
  border-radius:999px;
  background:rgba(0,0,0,.58);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 1px 4px rgba(0,0,0,.28);
}
.ei-memory-game-ui .ei-slot-mini-bars i{
  width:10px;
  height:6px;
  border-radius:2px;
}
.ei-memory-game-ui .ei-slot-star{
  right:8px!important;
  top:24px!important;
  font-size:15px!important;
  text-shadow:0 1px 2px rgba(0,0,0,.45);
}
.ei-memory-game-ui .ei-slot-lock{
  left:6px!important;
  right:auto!important;
  top:6px!important;
  transform:none!important;
  width:22px!important;
  height:22px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,#252833,#11131a)!important;
  border:1px solid rgba(255,255,255,.72)!important;
  box-shadow:0 2px 6px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.12)!important;
  color:#ffffff!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1!important;
  z-index:24!important;
}
.ei-memory-game-ui .ei-slot-lock span{
  transform:translateY(-.5px);
}
@media(max-width:620px){
  .ei-memory-game-ui .ei-slot-mini-bars{right:4px!important;top:4px!important;padding:1px 3px;gap:2px;}
  .ei-memory-game-ui .ei-slot-mini-bars i{width:8px;height:5px;}
  .ei-memory-game-ui .ei-slot-lock{left:4px!important;top:4px!important;width:20px!important;height:20px!important;font-size:13px!important;}
  .ei-memory-game-ui .ei-slot-star{right:6px!important;top:22px!important;font-size:13px!important;}
}

/* v0.1.42 hard pin slot markers so browser/cache/theme CSS cannot pull them back */
.ei-memory-game-ui .ei-slot-mini-bars{left:auto!important;right:6px!important;top:6px!important;bottom:auto!important;}
.ei-memory-game-ui .ei-slot-lock{left:6px!important;right:auto!important;top:6px!important;bottom:auto!important;transform:none!important;}
@media(max-width:620px){.ei-memory-game-ui .ei-slot-mini-bars{right:4px!important;top:4px!important;}.ei-memory-game-ui .ei-slot-lock{left:4px!important;top:4px!important;}}

/* v0.1.43 marker class replacement: avoid old .ei-slot-lock / .ei-slot-mini-bars cached rules */
.ei-memory-game-ui .ei-slot-corner-question{
  position:absolute!important;left:6px!important;top:6px!important;right:auto!important;bottom:auto!important;transform:none!important;
  width:22px!important;height:22px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  border-radius:999px!important;background:linear-gradient(180deg,#252833,#11131a)!important;border:1px solid rgba(255,255,255,.72)!important;
  box-shadow:0 2px 6px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.12)!important;
  color:#fff!important;font-size:14px!important;font-weight:900!important;line-height:1!important;z-index:80!important;text-shadow:none!important;pointer-events:none!important;
}
.ei-memory-game-ui .ei-slot-corner-question span{display:block!important;transform:translateY(-.5px)!important;}
@media(max-width:620px){
  .ei-memory-game-ui .ei-slot-corner-question{left:4px!important;top:4px!important;width:20px!important;height:20px!important;font-size:13px!important;}
}

/* v0.1.44 remove redundant action star marker
   The status pill already communicates claimable / completable state. */
.ei-memory-game-ui .ei-slot-star,
.ei-memory-game-ui .ei-action-star,
.ei-memory-game-ui [class*="slot-star"]{
  display:none!important;
}


/* EI 首次提示 / EI First Tip - v0.1.49 position fidelity fix */
[data-ei-first-tip="1"]{position:relative;}
[data-ei-first-tip="1"].ei-firsttip-active{overflow:visible!important;z-index:50;}
[data-ei-first-tip="1"].ei-firsttip-active.ei-firsttip-glow{box-shadow:0 0 0 3px rgba(255,244,170,.82),0 0 22px rgba(255,211,72,.72),0 0 44px rgba(255,184,0,.38)!important;animation:eiFirstTipPulse 1.25s ease-in-out infinite;}
.ei-firsttip-marker{position:absolute!important;z-index:9999!important;min-width:30px!important;height:30px!important;width:auto!important;padding:0 7px!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:linear-gradient(180deg,#fff7a8,#ffb800)!important;color:#342000!important;border:2px solid #fff!important;box-shadow:0 8px 22px rgba(0,0,0,.28)!important;font-size:18px!important;font-weight:900!important;line-height:1!important;pointer-events:none!important;box-sizing:border-box!important;text-shadow:none!important;font-family:inherit!important;--ei-firsttip-x:0px;--ei-firsttip-y:0px;}
.ei-firsttip-marker.is-arrow{font-size:22px!important;min-width:34px!important;height:30px!important;}
.ei-firsttip-marker-symbol{display:inline-block!important;line-height:1!important;animation:eiFirstTipBounce .9s ease-in-out infinite;}
.ei-firsttip-marker.is-arrow .ei-firsttip-marker-symbol{animation:eiFirstTipSoftNudge .85s ease-in-out infinite;}
.ei-firsttip-marker.dir-right .ei-firsttip-marker-symbol,.ei-firsttip-marker.is-arrow-dir-right .ei-firsttip-marker-symbol{transform:rotate(0deg)!important;}
.ei-firsttip-marker.dir-left .ei-firsttip-marker-symbol,.ei-firsttip-marker.is-arrow-dir-left .ei-firsttip-marker-symbol{transform:rotate(180deg)!important;}
.ei-firsttip-marker.dir-up .ei-firsttip-marker-symbol,.ei-firsttip-marker.is-arrow-dir-up .ei-firsttip-marker-symbol{transform:rotate(-90deg)!important;}
.ei-firsttip-marker.dir-down .ei-firsttip-marker-symbol,.ei-firsttip-marker.is-arrow-dir-down .ei-firsttip-marker-symbol{transform:rotate(90deg)!important;}
.ei-firsttip-marker.pos-top,.ei-firsttip-marker.is-pos-top{left:50%!important;bottom:calc(100% + 12px)!important;transform:translate(calc(-50% + var(--ei-firsttip-x)),var(--ei-firsttip-y))!important;}
.ei-firsttip-marker.pos-top-right,.ei-firsttip-marker.is-pos-top-right{right:6px!important;bottom:calc(100% + 10px)!important;transform:translate(var(--ei-firsttip-x),var(--ei-firsttip-y))!important;}
.ei-firsttip-marker.pos-right,.ei-firsttip-marker.is-pos-right{left:calc(100% + 12px)!important;top:50%!important;transform:translate(var(--ei-firsttip-x),calc(-50% + var(--ei-firsttip-y)))!important;}
.ei-firsttip-marker.pos-bottom-right,.ei-firsttip-marker.is-pos-bottom-right{right:6px!important;top:calc(100% + 10px)!important;transform:translate(var(--ei-firsttip-x),var(--ei-firsttip-y))!important;}
.ei-firsttip-marker.pos-bottom,.ei-firsttip-marker.is-pos-bottom{left:50%!important;top:calc(100% + 12px)!important;transform:translate(calc(-50% + var(--ei-firsttip-x)),var(--ei-firsttip-y))!important;}
.ei-firsttip-marker.pos-bottom-left,.ei-firsttip-marker.is-pos-bottom-left{left:6px!important;top:calc(100% + 10px)!important;transform:translate(var(--ei-firsttip-x),var(--ei-firsttip-y))!important;}
.ei-firsttip-marker.pos-left,.ei-firsttip-marker.is-pos-left{right:calc(100% + 12px)!important;top:50%!important;transform:translate(var(--ei-firsttip-x),calc(-50% + var(--ei-firsttip-y)))!important;}
.ei-firsttip-marker.pos-top-left,.ei-firsttip-marker.is-pos-top-left{left:6px!important;bottom:calc(100% + 10px)!important;transform:translate(var(--ei-firsttip-x),var(--ei-firsttip-y))!important;}
.ei-firsttip-bubble{position:absolute!important;left:50%;bottom:calc(100% + 20px);transform:translateX(-50%);z-index:9998;max-width:min(260px,72vw);width:max-content;padding:9px 12px;border-radius:14px;background:rgba(255,255,255,.97);color:#1f2937;border:2px solid rgba(17,24,39,.14);box-shadow:0 12px 30px rgba(15,23,42,.22);font-size:13px;font-weight:800;line-height:1.45;text-align:left;white-space:normal;pointer-events:none;box-sizing:border-box;text-shadow:none;}
.ei-firsttip-bubble:after{content:"";position:absolute;left:50%;top:100%;transform:translateX(-50%);border:8px solid transparent;border-top-color:rgba(255,255,255,.97);}
.ei-firsttip-bubble.is-bottom{bottom:auto;top:calc(100% + 20px);}
.ei-firsttip-bubble.is-bottom:after{top:auto;bottom:100%;border-top-color:transparent;border-bottom-color:rgba(255,255,255,.97);}
.ei-firsttip-bubble.is-left{left:auto;right:calc(100% + 20px);top:50%;bottom:auto;transform:translateY(-50%);}
.ei-firsttip-bubble.is-left:after{left:100%;top:50%;transform:translateY(-50%);border-top-color:transparent;border-left-color:rgba(255,255,255,.97);}
.ei-firsttip-bubble.is-right{left:calc(100% + 20px);top:50%;bottom:auto;transform:translateY(-50%);}
.ei-firsttip-bubble.is-right:after{left:auto;right:100%;top:50%;transform:translateY(-50%);border-top-color:transparent;border-right-color:rgba(255,255,255,.97);}
.ei-firsttip-bubble.is-away-from-marker.is-top{bottom:calc(100% + 82px);}
.ei-firsttip-bubble.is-away-from-marker.is-bottom{top:calc(100% + 82px);}
.ei-firsttip-bubble.is-away-from-marker.is-left{right:calc(100% + 82px);}
.ei-firsttip-bubble.is-away-from-marker.is-right{left:calc(100% + 82px);}
@keyframes eiFirstTipPulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.12)}}
@keyframes eiFirstTipBounce{0%,100%{translate:0 0}50%{translate:0 -5px}}
@keyframes eiFirstTipSoftNudge{0%,100%{translate:0 0}50%{translate:4px 0}}
@media(max-width:640px){.ei-firsttip-bubble{font-size:12px;max-width:210px;padding:8px 10px}.ei-firsttip-marker{min-width:26px!important;height:26px!important;font-size:15px!important}.ei-firsttip-marker.is-arrow{min-width:30px!important;height:26px!important;font-size:19px!important}}

/* v0.1.54: EI 首次提示也支援詳情內部按鈕，父層不可裁切提示 */
.ei-memory-game-ui .ei-game-detail-actions{
  overflow:visible!important;
}
.ei-memory-game-ui .ei-seed-inline-form{
  position:relative!important;
  overflow:visible!important;
}
.ei-memory-game-ui .ei-game-detail-actions .ei-seed-button.ei-firsttip-active,
.ei-memory-game-ui .ei-game-detail-actions .ei-game-fake-button.ei-firsttip-active{
  overflow:visible!important;
  z-index:80!important;
}

/* v0.1.55: EI 首次提示個別按鈕修正
   按鈕提示的 marker / bubble 由安全 host 承載，避免被 button 本身 overflow/text-overflow 裁切。 */
.ei-seed-inline-form.ei-firsttip-host-active,
.ei-firsttip-host-active{
  position:relative!important;
  overflow:visible!important;
  z-index:90!important;
}
.ei-memory-game-ui .ei-firsttip-ancestor-active,
.ei-memory-game-ui .ei-game-detail.ei-firsttip-ancestor-active,
.ei-memory-game-ui .ei-game-detail-card.ei-firsttip-ancestor-active,
.ei-memory-game-ui .ei-game-detail-actions.ei-firsttip-ancestor-active,
.ei-memory-game-ui .ei-seed-inline-form.ei-firsttip-ancestor-active{
  overflow:visible!important;
}
.ei-memory-game-ui .ei-game-detail-actions .ei-seed-inline-form.ei-firsttip-host-active .ei-firsttip-marker,
.ei-memory-game-ui .ei-game-detail-actions .ei-seed-inline-form.ei-firsttip-host-active .ei-firsttip-bubble{
  pointer-events:none!important;
}
.ei-memory-game-ui .ei-game-detail-actions .ei-seed-inline-form.ei-firsttip-host-active .ei-firsttip-bubble.is-left{
  right:calc(100% + 24px)!important;
  left:auto!important;
}
.ei-memory-game-ui .ei-game-detail-actions .ei-seed-inline-form.ei-firsttip-host-active .ei-firsttip-bubble.is-right{
  left:calc(100% + 24px)!important;
  right:auto!important;
}

/* ======================================================================
 * v0.1.56 — EI 統一風格規範書：24 種 Canonical Theme
 * 風格負責完整元件；動畫效果不併入風格 Key。
 * ====================================================================== */
.ei-memory-game-ui[class*="ei-memory-style-"]{
  --ei-bg:#eef2f7;--ei-panel:#fff;--ei-panel-2:#f7f9fc;--ei-top:#263247;
  --ei-line:#cbd5e1;--ei-line-strong:#475569;--ei-text:#172033;--ei-muted:#64748b;
  --ei-accent:#3b82f6;--ei-accent-2:#1d4ed8;--ei-on-accent:#fff;--ei-top-text:var(--ei-on-accent);--ei-slot:#edf2f7;
  --ei-shadow:0 18px 48px rgba(15,23,42,.22);--ei-radius:18px;--ei-small-radius:12px;
  color:var(--ei-text)!important;
}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-window{background:var(--ei-bg)!important;border:2px solid var(--ei-line-strong)!important;border-radius:var(--ei-radius)!important;box-shadow:var(--ei-shadow)!important;color:var(--ei-text)!important;overflow:hidden}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-topbar,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-bottom{background:var(--ei-top)!important;border-color:var(--ei-line-strong)!important;color:var(--ei-top-text)!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-panel{background:var(--ei-bg)!important;color:var(--ei-text)!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-tab{background:color-mix(in srgb,var(--ei-top) 82%,white 18%)!important;border-color:var(--ei-line-strong)!important;color:var(--ei-top-text)!important;box-shadow:none!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-tab em,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-tab small{color:inherit!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-tab.is-active{background:var(--ei-panel)!important;color:var(--ei-text)!important;box-shadow:inset 0 -3px 0 var(--ei-accent)!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-grid{background:color-mix(in srgb,var(--ei-top) 62%,black 38%)!important;border:2px solid var(--ei-line-strong)!important;border-radius:var(--ei-small-radius)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ei-line) 45%,transparent)!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-slot,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-hot-slot{background:linear-gradient(145deg,var(--ei-slot),color-mix(in srgb,var(--ei-slot) 72%,var(--ei-top) 28%))!important;border:2px solid var(--ei-line-strong)!important;border-radius:var(--ei-small-radius)!important;box-shadow:inset 0 1px 0 color-mix(in srgb,white 55%,transparent),0 3px 10px rgba(0,0,0,.16)!important;color:var(--ei-text)!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-slot:hover,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-hot-slot:hover{transform:translateY(-1px);border-color:var(--ei-accent)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--ei-accent) 25%,transparent),0 8px 18px rgba(0,0,0,.2)!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-slot.is-selected{outline:3px solid var(--ei-accent)!important;outline-offset:1px}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-detail{background:var(--ei-panel)!important;border:2px solid var(--ei-line-strong)!important;border-radius:var(--ei-small-radius)!important;box-shadow:0 12px 28px rgba(0,0,0,.14)!important;color:var(--ei-text)!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-detail h2{background:var(--ei-top)!important;border:1px solid var(--ei-line-strong)!important;border-radius:calc(var(--ei-small-radius) - 3px)!important;color:var(--ei-on-accent)!important;box-shadow:none!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-detail h3,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-section-title,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-status-list strong{color:var(--ei-text)!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-id,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-type,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-count{color:var(--ei-muted)!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-detail-icon{background:var(--ei-slot)!important;border:2px solid var(--ei-line-strong)!important;border-radius:var(--ei-small-radius)!important;color:var(--ei-accent)!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-desc,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-status-list,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-next-hint{background:var(--ei-panel-2)!important;border-color:var(--ei-line)!important;color:var(--ei-text)!important;border-radius:calc(var(--ei-small-radius) - 4px)!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-desc p,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-next-hint p,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-status-list span{color:var(--ei-text)!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-state-tag,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-seed-button{background:var(--ei-accent)!important;border:2px solid var(--ei-accent-2)!important;border-radius:calc(var(--ei-small-radius) - 3px)!important;color:var(--ei-on-accent)!important;box-shadow:0 4px 12px color-mix(in srgb,var(--ei-accent) 28%,transparent)!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-seed-button:hover{background:var(--ei-accent-2)!important;color:var(--ei-on-accent)!important;transform:translateY(-1px)}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-fake-button,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-select{background:var(--ei-panel-2)!important;border:1px solid var(--ei-line-strong)!important;border-radius:calc(var(--ei-small-radius) - 3px)!important;color:var(--ei-text)!important;box-shadow:none!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-fake-button:hover{border-color:var(--ei-accent)!important;background:var(--ei-panel)!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-help,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-close{background:color-mix(in srgb,var(--ei-top) 70%,white 30%)!important;border:1px solid color-mix(in srgb,var(--ei-on-accent) 45%,transparent)!important;border-radius:9px!important;color:var(--ei-top-text)!important;box-shadow:none!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-energy-core{background:color-mix(in srgb,var(--ei-top) 78%,white 22%)!important;border:1px solid color-mix(in srgb,var(--ei-on-accent) 35%,transparent)!important;border-radius:var(--ei-small-radius)!important;color:var(--ei-top-text)!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-energy-line{background:rgba(0,0,0,.28)!important;border:1px solid rgba(255,255,255,.2)!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-energy-line span{background:linear-gradient(90deg,var(--ei-accent),color-mix(in srgb,var(--ei-accent) 60%,white 40%))!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-slot-badge{background:color-mix(in srgb,var(--ei-top) 80%,black 20%)!important;border:1px solid color-mix(in srgb,var(--ei-on-accent) 42%,transparent)!important;color:var(--ei-top-text)!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-slot-corner-question{position:absolute!important;left:6px!important;top:6px!important;width:22px!important;height:22px!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:999px!important;background:var(--ei-top)!important;border:1px solid color-mix(in srgb,var(--ei-on-accent) 70%,transparent)!important;color:var(--ei-top-text)!important;font-weight:900!important;z-index:80!important;pointer-events:none!important}

/* 成就模式 */
.ei-memory-game-ui .ei-item-mode-achievement.ei-rarity-uncommon{--ei-rarity:#22c55e}.ei-memory-game-ui .ei-item-mode-achievement.ei-rarity-rare{--ei-rarity:#38bdf8}.ei-memory-game-ui .ei-item-mode-achievement.ei-rarity-epic{--ei-rarity:#a855f7}.ei-memory-game-ui .ei-item-mode-achievement.ei-rarity-legendary{--ei-rarity:#f59e0b}.ei-memory-game-ui .ei-item-mode-achievement{--ei-rarity:#94a3b8}
.ei-memory-game-ui .ei-game-slot.ei-item-mode-achievement,.ei-memory-game-ui .ei-game-detail-card.ei-item-mode-achievement .ei-game-detail-icon{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--ei-rarity) 45%,transparent),0 5px 18px rgba(0,0,0,.18)!important}
.ei-memory-game-ui .ei-item-mode-achievement .ei-game-state-tag{background:var(--ei-rarity)!important;border-color:color-mix(in srgb,var(--ei-rarity) 70%,black 30%)!important;color:#fff!important}
.ei-memory-game-ui .ei-slot-status-earned{filter:none!important;opacity:1!important}
.ei-memory-game-ui .ei-slot-status-hidden{filter:grayscale(1) brightness(.55)!important;opacity:.78!important}
.ei-memory-game-ui .ei-slot-status-revoked{filter:grayscale(1) brightness(.65)!important;opacity:.68!important}
.ei-hidden-achievement-symbol{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:36px;font-weight:900;color:var(--ei-muted);text-shadow:0 2px 8px rgba(0,0,0,.22)}

/* 24 種正式通用風格變數 */
.ei-memory-style-basic{--ei-bg:#e9edf3;--ei-panel:#fff;--ei-panel-2:#f7f8fa;--ei-top:#344054;--ei-line:#d0d5dd;--ei-line-strong:#667085;--ei-text:#1d2939;--ei-muted:#667085;--ei-accent:#1570ef;--ei-accent-2:#175cd3;--ei-on-accent:#fff;--ei-slot:#f2f4f7;--ei-radius:14px;--ei-small-radius:9px}
.ei-memory-style-minimal{--ei-top-text:#0f172a;--ei-bg:#f8fafc;--ei-panel:#fff;--ei-panel-2:#f8fafc;--ei-top:#fff;--ei-line:#e2e8f0;--ei-line-strong:#cbd5e1;--ei-text:#0f172a;--ei-muted:#64748b;--ei-accent:#111827;--ei-accent-2:#000;--ei-on-accent:#fff;--ei-slot:#fff;--ei-shadow:0 12px 30px rgba(15,23,42,.08);--ei-radius:16px;--ei-small-radius:10px}
.ei-memory-style-minimal .ei-game-topbar,.ei-memory-style-minimal .ei-game-bottom{color:#0f172a!important}.ei-memory-style-minimal .ei-game-tab,.ei-memory-style-minimal .ei-game-help,.ei-memory-style-minimal .ei-game-close{color:#0f172a!important}
.ei-memory-style-glass{--ei-top-text:#f8fafc;--ei-bg:linear-gradient(135deg,#111827,#172554 58%,#312e81);--ei-panel:rgba(15,23,42,.72);--ei-panel-2:rgba(30,41,59,.74);--ei-top:rgba(2,6,23,.82);--ei-line:rgba(186,230,253,.24);--ei-line-strong:rgba(125,211,252,.58);--ei-text:#f8fafc;--ei-muted:#cbd5e1;--ei-accent:#38bdf8;--ei-accent-2:#0284c7;--ei-on-accent:#031525;--ei-slot:rgba(51,65,85,.78);--ei-shadow:0 24px 70px rgba(2,6,23,.55);--ei-radius:24px;--ei-small-radius:15px}
.ei-memory-style-rpg{--ei-bg:#211b16;--ei-panel:#30271f;--ei-panel-2:#3a2f25;--ei-top:#17120f;--ei-line:#8a6b34;--ei-line-strong:#d5ad4b;--ei-text:#fff3cf;--ei-muted:#d8c49c;--ei-accent:#c9952e;--ei-accent-2:#7d5617;--ei-on-accent:#fff7d6;--ei-slot:#463828;--ei-shadow:0 18px 44px rgba(0,0,0,.52);--ei-radius:9px;--ei-small-radius:5px}
.ei-memory-style-classic_wood{--ei-bg:#3b2517;--ei-panel:#5a3822;--ei-panel-2:#6a452c;--ei-top:#25150d;--ei-line:#8f6848;--ei-line-strong:#c89a63;--ei-text:#fff2d2;--ei-muted:#e6cda7;--ei-accent:#a86d2d;--ei-accent-2:#704316;--ei-on-accent:#fff6e5;--ei-slot:#6c452b;--ei-shadow:0 20px 46px rgba(35,18,8,.55);--ei-radius:10px;--ei-small-radius:6px}
.ei-memory-style-parchment{--ei-bg:#d8bd83;--ei-panel:#f2dfae;--ei-panel-2:#f8e9c4;--ei-top:#6b431d;--ei-line:#a77b3d;--ei-line-strong:#674117;--ei-text:#3c260f;--ei-muted:#6f512d;--ei-accent:#8b5c20;--ei-accent-2:#55330f;--ei-on-accent:#fff5d6;--ei-slot:#ead29a;--ei-shadow:0 18px 44px rgba(72,45,17,.34);--ei-radius:8px;--ei-small-radius:5px}
.ei-memory-style-dark{--ei-bg:#111827;--ei-panel:#1f2937;--ei-panel-2:#273449;--ei-top:#0b1220;--ei-line:#39465a;--ei-line-strong:#64748b;--ei-text:#f8fafc;--ei-muted:#cbd5e1;--ei-accent:#60a5fa;--ei-accent-2:#2563eb;--ei-on-accent:#061225;--ei-slot:#334155;--ei-shadow:0 20px 48px rgba(0,0,0,.48);--ei-radius:22px;--ei-small-radius:14px}
.ei-memory-style-chinese{--ei-top-text:#fff4d8;--ei-bg:#541414;--ei-panel:#711d1d;--ei-panel-2:#852525;--ei-top:#3f0d0d;--ei-line:#a95a3d;--ei-line-strong:#d6aa55;--ei-text:#fff4d8;--ei-muted:#f1d7ad;--ei-accent:#c99a39;--ei-accent-2:#8d621a;--ei-on-accent:#3d0b0b;--ei-slot:#8e2924;--ei-shadow:0 22px 48px rgba(50,0,0,.52);--ei-radius:10px;--ei-small-radius:5px}
.ei-memory-style-japanese{--ei-bg:#e8dfcf;--ei-panel:#f8f2e7;--ei-panel-2:#eee5d5;--ei-top:#342e2a;--ei-line:#b9aa92;--ei-line-strong:#6d6254;--ei-text:#28231e;--ei-muted:#655c50;--ei-accent:#b64032;--ei-accent-2:#7f241c;--ei-on-accent:#fff8ec;--ei-slot:#f3ebde;--ei-shadow:0 17px 38px rgba(65,52,39,.22);--ei-radius:7px;--ei-small-radius:3px}
.ei-memory-style-ink{--ei-bg:#e8e6df;--ei-panel:#faf9f4;--ei-panel-2:#efeee8;--ei-top:#1e1e1c;--ei-line:#aaa8a0;--ei-line-strong:#353535;--ei-text:#151515;--ei-muted:#4d4d49;--ei-accent:#272727;--ei-accent-2:#000;--ei-on-accent:#faf9f4;--ei-slot:#f4f3ed;--ei-shadow:0 16px 35px rgba(0,0,0,.18);--ei-radius:4px;--ei-small-radius:2px}
.ei-memory-style-pixel{--ei-bg:#2e2e34;--ei-panel:#42424a;--ei-panel-2:#4c4c55;--ei-top:#17171c;--ei-line:#696974;--ei-line-strong:#0e0e12;--ei-text:#fff;--ei-muted:#dedee8;--ei-accent:#65c466;--ei-accent-2:#275b2a;--ei-on-accent:#fff;--ei-slot:#595963;--ei-shadow:8px 8px 0 rgba(0,0,0,.45);--ei-radius:0;--ei-small-radius:0}
.ei-memory-style-pixel .ei-game-window,.ei-memory-style-pixel .ei-game-grid,.ei-memory-style-pixel .ei-game-slot,.ei-memory-style-pixel .ei-game-detail,.ei-memory-style-pixel .ei-seed-button{image-rendering:pixelated;box-shadow:inset 3px 3px 0 rgba(255,255,255,.18),inset -3px -3px 0 rgba(0,0,0,.38)!important}
.ei-memory-style-windows95{--ei-bg:#008080;--ei-panel:#c0c0c0;--ei-panel-2:#d4d0c8;--ei-top:#000080;--ei-line:#fff;--ei-line-strong:#404040;--ei-text:#000;--ei-muted:#404040;--ei-accent:#000080;--ei-accent-2:#00004f;--ei-on-accent:#fff;--ei-slot:#c0c0c0;--ei-shadow:4px 4px 0 #000;--ei-radius:0;--ei-small-radius:0}
.ei-memory-style-windows95 .ei-game-window,.ei-memory-style-windows95 .ei-game-slot,.ei-memory-style-windows95 .ei-game-detail,.ei-memory-style-windows95 .ei-game-fake-button,.ei-memory-style-windows95 .ei-game-select{box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #808080!important}
.ei-memory-style-windows{--ei-top-text:#152033;--ei-bg:linear-gradient(135deg,#edf6ff,#e7effb);--ei-panel:rgba(255,255,255,.88);--ei-panel-2:rgba(245,249,255,.94);--ei-top:rgba(255,255,255,.82);--ei-line:#c5d3e6;--ei-line-strong:#7b91ad;--ei-text:#152033;--ei-muted:#53657d;--ei-accent:#2563eb;--ei-accent-2:#1d4ed8;--ei-on-accent:#fff;--ei-slot:#f2f7fd;--ei-shadow:0 22px 54px rgba(55,88,130,.22);--ei-radius:20px;--ei-small-radius:12px}
.ei-memory-style-windows .ei-game-topbar,.ei-memory-style-windows .ei-game-bottom,.ei-memory-style-windows .ei-game-tab,.ei-memory-style-windows .ei-game-help,.ei-memory-style-windows .ei-game-close{color:#152033!important}
.ei-memory-style-mac{--ei-top-text:#15181d;--ei-bg:linear-gradient(145deg,#f5f7fb,#e9eef6);--ei-panel:rgba(255,255,255,.84);--ei-panel-2:rgba(248,250,253,.9);--ei-top:rgba(248,250,253,.78);--ei-line:#d5dce8;--ei-line-strong:#9aa8bb;--ei-text:#15181d;--ei-muted:#687386;--ei-accent:#0a84ff;--ei-accent-2:#0066cc;--ei-on-accent:#fff;--ei-slot:#fff;--ei-shadow:0 26px 70px rgba(31,41,55,.2);--ei-radius:25px;--ei-small-radius:15px}
.ei-memory-style-mac .ei-game-topbar,.ei-memory-style-mac .ei-game-bottom,.ei-memory-style-mac .ei-game-tab,.ei-memory-style-mac .ei-game-help,.ei-memory-style-mac .ei-game-close{color:#15181d!important}
.ei-memory-style-cyberpunk{--ei-top-text:#f5f3ff;--ei-bg:#090616;--ei-panel:#15102a;--ei-panel-2:#1e1638;--ei-top:#05030d;--ei-line:#8b5cf6;--ei-line-strong:#22d3ee;--ei-text:#f5f3ff;--ei-muted:#d8b4fe;--ei-accent:#22d3ee;--ei-accent-2:#ec4899;--ei-on-accent:#04030b;--ei-slot:#251947;--ei-shadow:0 0 34px rgba(34,211,238,.18),0 24px 62px rgba(0,0,0,.62);--ei-radius:6px;--ei-small-radius:3px}
.ei-memory-style-nasapunk{--ei-top-text:#eef8ff;--ei-bg:#071426;--ei-panel:#10243c;--ei-panel-2:#17304d;--ei-top:#050d18;--ei-line:#365f82;--ei-line-strong:#89b7d8;--ei-text:#eef8ff;--ei-muted:#b8cfdf;--ei-accent:#ff8a3d;--ei-accent-2:#b84d12;--ei-on-accent:#102031;--ei-slot:#1c3a58;--ei-shadow:0 24px 60px rgba(0,8,22,.62);--ei-radius:12px;--ei-small-radius:7px}
.ei-memory-style-steampunk{--ei-bg:#2e2016;--ei-panel:#4b3524;--ei-panel-2:#5a402b;--ei-top:#20150e;--ei-line:#8e6842;--ei-line-strong:#d2a34c;--ei-text:#fff1cf;--ei-muted:#dfc9a4;--ei-accent:#c48135;--ei-accent-2:#744419;--ei-on-accent:#2d1c10;--ei-slot:#65482f;--ei-shadow:0 22px 48px rgba(18,9,3,.56);--ei-radius:10px;--ei-small-radius:5px}
.ei-memory-style-terminal{--ei-top-text:#8cffb5;--ei-bg:#010704;--ei-panel:#03140a;--ei-panel-2:#06200f;--ei-top:#000;--ei-line:#145c30;--ei-line-strong:#39ff88;--ei-text:#8cffb5;--ei-muted:#60c984;--ei-accent:#39ff88;--ei-accent-2:#16a34a;--ei-on-accent:#001a09;--ei-slot:#082916;--ei-shadow:0 0 30px rgba(57,255,136,.16),0 20px 46px rgba(0,0,0,.7);--ei-radius:3px;--ei-small-radius:1px}
.ei-memory-style-terminal,.ei-memory-style-terminal *{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important}
.ei-memory-style-arcane{--ei-bg:#140b28;--ei-panel:#24143f;--ei-panel-2:#301a51;--ei-top:#0d061c;--ei-line:#7056a8;--ei-line-strong:#c084fc;--ei-text:#faf5ff;--ei-muted:#ddd6fe;--ei-accent:#a855f7;--ei-accent-2:#6d28d9;--ei-on-accent:#fff;--ei-slot:#3c2161;--ei-shadow:0 0 36px rgba(168,85,247,.24),0 24px 56px rgba(0,0,0,.58);--ei-radius:20px;--ei-small-radius:11px}
.ei-memory-style-wabisabi{--ei-bg:#cfc8ba;--ei-panel:#e7e1d5;--ei-panel-2:#ddd6c8;--ei-top:#665e52;--ei-line:#a49b8b;--ei-line-strong:#756c5e;--ei-text:#302d28;--ei-muted:#625d54;--ei-accent:#7d6e58;--ei-accent-2:#55493a;--ei-on-accent:#f8f3ea;--ei-slot:#e4ddcf;--ei-shadow:0 16px 34px rgba(64,55,43,.2);--ei-radius:7px;--ei-small-radius:4px}
.ei-memory-style-cute{--ei-top-text:#563e49;--ei-bg:#ffeef6;--ei-panel:#fffafd;--ei-panel-2:#fff1f8;--ei-top:#ffb8d5;--ei-line:#ffd0e3;--ei-line-strong:#ff8dbc;--ei-text:#563e49;--ei-muted:#845b6e;--ei-accent:#ff6fab;--ei-accent-2:#db3d7f;--ei-on-accent:#fff;--ei-slot:#fff6fb;--ei-shadow:0 18px 44px rgba(219,61,127,.18);--ei-radius:26px;--ei-small-radius:17px}
.ei-memory-style-cute .ei-game-topbar,.ei-memory-style-cute .ei-game-bottom,.ei-memory-style-cute .ei-game-tab,.ei-memory-style-cute .ei-game-help,.ei-memory-style-cute .ei-game-close{color:#563e49!important}
.ei-memory-style-western{--ei-bg:#d8d0c0;--ei-panel:#f4efe4;--ei-panel-2:#eae1d1;--ei-top:#55483b;--ei-line:#b4a184;--ei-line-strong:#77634d;--ei-text:#33281e;--ei-muted:#6e5b48;--ei-accent:#9b6c2e;--ei-accent-2:#674317;--ei-on-accent:#fff8e8;--ei-slot:#efe6d7;--ei-shadow:0 20px 46px rgba(62,45,27,.28);--ei-radius:12px;--ei-small-radius:7px}
.ei-memory-style-dq{--ei-top-text:#fff;--ei-bg:#071b48;--ei-panel:#0d2a68;--ei-panel-2:#13367e;--ei-top:#031033;--ei-line:#89aef2;--ei-line-strong:#fff;--ei-text:#fff;--ei-muted:#d9e5ff;--ei-accent:#f2c94c;--ei-accent-2:#a87900;--ei-on-accent:#17224a;--ei-slot:#19418f;--ei-shadow:0 0 0 4px #fff,0 0 0 8px #071b48,0 18px 44px rgba(0,0,0,.5);--ei-radius:9px;--ei-small-radius:4px}

/* v0.1.56：成就解鎖通知（限制在記憶庫元件內，不壓過外部 Dialogue／Battle 彈窗） */
.ei-memory-game-ui{position:relative}
.ei-achievement-notice-stack{position:absolute;top:84px;right:18px;z-index:68;display:grid;gap:10px;width:min(340px,calc(100% - 36px));pointer-events:none}
.ei-achievement-notice{--ei-rarity:#94a3b8;position:relative;display:grid;grid-template-columns:42px 1fr;gap:11px;align-items:center;padding:12px 38px 12px 12px;background:var(--ei-panel,#fff);border:2px solid var(--ei-rarity);border-radius:var(--ei-small-radius,12px);box-shadow:0 16px 38px rgba(0,0,0,.32),inset 4px 0 0 var(--ei-rarity);color:var(--ei-text,#172033);opacity:0;transform:translateY(-10px) scale(.98);transition:opacity .22s ease,transform .22s ease;pointer-events:auto;overflow:hidden}
.ei-achievement-notice.ei-rarity-uncommon{--ei-rarity:#22c55e}.ei-achievement-notice.ei-rarity-rare{--ei-rarity:#38bdf8}.ei-achievement-notice.ei-rarity-epic{--ei-rarity:#a855f7}.ei-achievement-notice.ei-rarity-legendary{--ei-rarity:#f59e0b}
.ei-achievement-notice.is-visible{opacity:1;transform:none}.ei-achievement-notice.is-leaving{opacity:0;transform:translateY(-8px) scale(.98)}
.ei-achievement-notice-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:color-mix(in srgb,var(--ei-rarity) 18%,var(--ei-panel,#fff));border:2px solid var(--ei-rarity);color:var(--ei-rarity);font-size:22px;font-weight:900}
.ei-achievement-notice div{display:grid;gap:2px;min-width:0}.ei-achievement-notice small{color:var(--ei-muted,#64748b);font-weight:800}.ei-achievement-notice strong{color:var(--ei-text,#172033);font-size:15px;overflow-wrap:anywhere}.ei-achievement-notice em{color:var(--ei-rarity);font-size:12px;font-style:normal;font-weight:900}
.ei-achievement-notice-close{position:absolute;right:8px;top:8px;width:26px;height:26px;padding:0;border:0;border-radius:50%;background:color-mix(in srgb,var(--ei-panel-2,#f7f9fc) 82%,transparent);color:var(--ei-text,#172033);font-size:18px;line-height:1;cursor:pointer}
.ei-achievement-notice-close:hover{background:var(--ei-rarity);color:#fff}
@media(max-width:620px){.ei-achievement-notice-stack{top:76px;right:10px;width:calc(100% - 20px)}}
@media(prefers-reduced-motion:reduce){.ei-achievement-notice{transition:none!important;transform:none!important}}

/* v0.1.58 - stage transition feedback */
.ei-memory-transition-note,.ei-memory-transition-cost-note{margin-top:8px;padding:8px 10px;border:1px solid rgba(127,127,127,.25);border:1px solid color-mix(in srgb,currentColor 22%,transparent);border-radius:9px;font-size:.82em;line-height:1.55;opacity:.88}.ei-memory-transition-countdown{display:inline-block;min-width:5.5em;margin:0 .25em;font-variant-numeric:tabular-nums;font-weight:800}.ei-memory-transition-cost-note{font-size:.76em;opacity:.72}.ei-memory-transition-disabled{cursor:not-allowed!important;filter:saturate(.45);opacity:.58!important}.ei-memory-transition-disabled:hover{transform:none!important}

/* v0.1.59：查看詳情模組動作 */
.ei-memory-game-ui .ei-memory-view-action-button[disabled]{
  cursor:not-allowed!important;
  opacity:.48!important;
  filter:grayscale(.45);
  transform:none!important;
}

/* v0.1.107: per-item icon sizing refreshed. Small / medium / large now have visibly larger spacing differences. */
.ei-memory-game-ui .ei-game-slot .ei-game-icon.ei-game-icon-size-small{width:42%;height:42%;max-width:34px;max-height:34px}
.ei-memory-game-ui .ei-game-slot .ei-game-icon.ei-game-icon-size-medium{width:64%;height:64%;max-width:52px;max-height:52px}
.ei-memory-game-ui .ei-game-slot .ei-game-icon.ei-game-icon-size-large{width:88%;height:88%;max-width:none;max-height:none;border-radius:8px}
.ei-memory-game-ui .ei-game-hot-slot .ei-game-icon.ei-game-icon-size-small{width:34%;height:34%;max-width:24px;max-height:24px}
.ei-memory-game-ui .ei-game-hot-slot .ei-game-icon.ei-game-icon-size-medium{width:56%;height:56%;max-width:40px;max-height:40px}
.ei-memory-game-ui .ei-game-hot-slot .ei-game-icon.ei-game-icon-size-large{width:82%;height:82%;max-width:none;max-height:none;border-radius:7px}
.ei-memory-game-ui .ei-game-detail-icon .ei-game-icon.ei-game-icon-size-small{width:40%;height:40%;max-width:48px;max-height:48px}
.ei-memory-game-ui .ei-game-detail-icon .ei-game-icon.ei-game-icon-size-medium{width:62%;height:62%;max-width:74px;max-height:74px}
.ei-memory-game-ui .ei-game-detail-icon .ei-game-icon.ei-game-icon-size-large{width:86%;height:86%;max-width:none;max-height:none;border-radius:8px}
.ei-memory-game-ui .ei-game-icon.ei-game-icon-size-small .ei-png-icon img{width:74%!important;height:74%!important;max-width:74%!important;max-height:74%!important}
.ei-memory-game-ui .ei-game-icon.ei-game-icon-size-medium .ei-png-icon img{width:84%!important;height:84%!important;max-width:84%!important;max-height:84%!important}
.ei-memory-game-ui .ei-game-icon.ei-game-icon-size-large .ei-png-icon img{width:90%!important;height:90%!important;max-width:90%!important;max-height:90%!important}
.ei-memory-game-ui .ei-game-icon.ei-game-icon-size-small .ei-svg-icon svg{width:72%;height:72%}
.ei-memory-game-ui .ei-game-icon.ei-game-icon-size-medium .ei-svg-icon svg{width:84%;height:84%}
.ei-memory-game-ui .ei-game-icon.ei-game-icon-size-large .ei-svg-icon svg{width:94%;height:94%}


/* v0.1.63 contrast patch: dark backgrounds use bright text, light backgrounds use dark text. */
.ei-memory-game-ui .ei-game-bars div>span{font-weight:800}
.ei-memory-game-ui .ei-game-detail.ei-contrast-dark h3,
.ei-memory-game-ui .ei-game-detail.ei-contrast-dark .ei-game-id,
.ei-memory-game-ui .ei-game-detail.ei-contrast-dark .ei-game-type,
.ei-memory-game-ui .ei-game-detail.ei-contrast-dark .ei-game-bars div>span,
.ei-memory-game-ui .ei-game-detail.ei-contrast-dark .ei-game-bars em,
.ei-memory-game-ui .ei-game-desc.ei-contrast-dark,
.ei-memory-game-ui .ei-game-status-list.ei-contrast-dark,
.ei-memory-game-ui .ei-game-status-list.ei-contrast-dark strong,
.ei-memory-game-ui .ei-game-next-hint.ei-contrast-dark,
.ei-memory-game-ui .ei-game-bottom.ei-contrast-dark,
.ei-memory-game-ui .ei-game-energy-core.ei-contrast-dark{color:#f5f7fb!important}
.ei-memory-game-ui .ei-game-detail.ei-contrast-light h3,
.ei-memory-game-ui .ei-game-detail.ei-contrast-light .ei-game-id,
.ei-memory-game-ui .ei-game-detail.ei-contrast-light .ei-game-type,
.ei-memory-game-ui .ei-game-detail.ei-contrast-light .ei-game-bars div>span,
.ei-memory-game-ui .ei-game-detail.ei-contrast-light .ei-game-bars em,
.ei-memory-game-ui .ei-game-desc.ei-contrast-light,
.ei-memory-game-ui .ei-game-status-list.ei-contrast-light,
.ei-memory-game-ui .ei-game-status-list.ei-contrast-light strong,
.ei-memory-game-ui .ei-game-next-hint.ei-contrast-light,
.ei-memory-game-ui .ei-game-bottom.ei-contrast-light,
.ei-memory-game-ui .ei-game-energy-core.ei-contrast-light{color:#1f2328!important}
.ei-memory-game-ui .ei-game-status-list.ei-contrast-light div{border-bottom-color:rgba(0,0,0,.12)!important}
.ei-memory-game-ui .ei-game-status-list.ei-contrast-dark div{border-bottom-color:rgba(255,255,255,.12)!important}

/* v0.1.69 — 完全黑透：透明黑色介面，背景不套用模糊。 */
.ei-memory-style-full_black{--ei-top-text:#fff;--ei-bg:rgba(0,0,0,.58);--ei-panel:rgba(0,0,0,.72);--ei-panel-2:rgba(0,0,0,.82);--ei-top:rgba(0,0,0,.84);--ei-line:rgba(255,255,255,.26);--ei-line-strong:rgba(255,255,255,.72);--ei-text:#fff;--ei-muted:rgba(255,255,255,.76);--ei-accent:#fff;--ei-accent-2:#dbeafe;--ei-on-accent:#050505;--ei-slot:rgba(0,0,0,.76);--ei-shadow:0 24px 70px rgba(0,0,0,.50);--ei-radius:16px;--ei-small-radius:10px;--ei-detail-title:#fff;--ei-detail-meta:rgba(255,255,255,.78);--ei-detail-label:rgba(255,255,255,.72);--ei-detail-value:#fff;--ei-meter-bg:#080808;--ei-meter-border:rgba(255,255,255,.55);--ei-hint-bg:rgba(0,0,0,.78);--ei-hint-text:#fff;--ei-hint-strong:#fff;--ei-hint-accent:#dbeafe;--ei-slot-hover-line:#fff;--ei-desc-text:#fff;--ei-desc-strong:#fff;--ei-desc-muted:rgba(255,255,255,.72);--ei-desc-border:rgba(255,255,255,.20);color:#fff!important;background:rgba(0,0,0,.58)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.ei-memory-style-full_black .ei-game-window,.ei-memory-style-full_black .ei-game-topbar,.ei-memory-style-full_black .ei-game-bottom,.ei-memory-style-full_black .ei-game-grid,.ei-memory-style-full_black .ei-game-detail,.ei-memory-style-full_black .ei-game-desc,.ei-memory-style-full_black .ei-game-status-list,.ei-memory-style-full_black .ei-game-slot,.ei-memory-style-full_black .ei-game-hot-slot{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}

/* v0.1.70 — canonical Basic Black and EI World palettes. */
.ei-memory-style-basic_black{--ei-top-text:#fff;--ei-bg:rgba(0,0,0,.52);--ei-panel:rgba(0,0,0,.66);--ei-panel-2:rgba(0,0,0,.76);--ei-top:rgba(0,0,0,.78);--ei-line:rgba(255,255,255,.24);--ei-line-strong:rgba(255,255,255,.62);--ei-text:#fff;--ei-muted:rgba(255,255,255,.74);--ei-accent:#d8b55f;--ei-accent-2:#9a7225;--ei-on-accent:#18120a;--ei-slot:rgba(0,0,0,.70);--ei-shadow:0 24px 70px rgba(0,0,0,.44);--ei-radius:16px;--ei-small-radius:10px;--ei-desc-text:#fff;--ei-desc-strong:#fff;--ei-desc-muted:rgba(255,255,255,.72);--ei-desc-border:rgba(255,255,255,.18);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.ei-memory-style-ei_world{--ei-top-text:#f8fafc;--ei-bg:#071521;--ei-panel:#0b2331;--ei-panel-2:#102e3e;--ei-top:#050f19;--ei-line:rgba(215,177,74,.28);--ei-line-strong:#d7b14a;--ei-text:#f8fafc;--ei-muted:#bfd0dc;--ei-accent:#d7b14a;--ei-accent-2:#9a7225;--ei-on-accent:#18120a;--ei-slot:#123545;--ei-shadow:inset 0 0 0 2px rgba(215,177,74,.08),0 24px 64px rgba(2,12,23,.50);--ei-radius:16px;--ei-small-radius:9px;--ei-desc-text:#f8fafc;--ei-desc-strong:#fff;--ei-desc-muted:#bfd0dc;--ei-desc-border:rgba(215,177,74,.22);background:radial-gradient(circle at 15% 0,rgba(47,140,164,.16),transparent 32%),linear-gradient(145deg,#06121e,#0a2733)}

/* v0.1.73：詳情資訊清理、右上角控制按鈕與分頁數量對比 */
.ei-memory-game-ui .ei-game-desc{
  min-height:0!important;
  margin:12px 0 0!important;
  padding:4px 2px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-desc{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.ei-memory-game-ui .ei-game-desc p{margin:0 0 .7em!important}
.ei-memory-game-ui .ei-game-desc p:last-child{margin-bottom:0!important}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-tab small{
  background:var(--ei-accent)!important;
  color:var(--ei-on-accent)!important;
  border:1px solid var(--ei-accent-2)!important;
  border-radius:999px!important;
  box-shadow:0 2px 6px rgba(0,0,0,.22)!important;
  -webkit-text-fill-color:var(--ei-on-accent)!important;
}
.ei-memory-game-ui .ei-game-top-control{
  appearance:none;
  -webkit-appearance:none;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:34px;
  height:34px;
  padding:0;
  align-self:center;
  margin:9px;
  cursor:pointer;
  font-family:inherit;
  line-height:1;
}
.ei-memory-game-ui .ei-game-top-control + .ei-game-top-control{margin-left:0}
.ei-memory-game-ui .ei-game-top-control:disabled{cursor:not-allowed;opacity:.55}
.ei-memory-control-dialog{
  position:absolute;
  inset:0;
  z-index:240;
  display:grid;
  place-items:center;
  padding:20px;
}
.ei-memory-control-dialog[hidden]{display:none!important}
.ei-memory-control-dialog-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.68);
  backdrop-filter:blur(3px);
}
.ei-memory-control-dialog-panel{
  position:relative;
  z-index:1;
  width:min(520px,calc(100% - 24px));
  max-height:min(72vh,620px);
  overflow:auto;
  box-sizing:border-box;
  padding:24px;
  border:2px solid var(--ei-line-strong,#475569);
  border-radius:var(--ei-small-radius,14px);
  background:var(--ei-panel,#fff);
  color:var(--ei-text,#172033);
  box-shadow:0 24px 70px rgba(0,0,0,.46);
}
.ei-memory-control-dialog-panel h3{margin:0 42px 14px 0!important;color:var(--ei-text,#172033)!important;font-size:22px!important}
.ei-memory-control-dialog-text{line-height:1.75;color:var(--ei-text,#172033);overflow-wrap:anywhere}
.ei-memory-control-dialog-close{
  position:absolute;
  right:12px;
  top:12px;
  width:32px;
  height:32px;
  padding:0;
  border:1px solid var(--ei-line,#cbd5e1);
  border-radius:999px;
  background:var(--ei-panel-2,#f8fafc);
  color:var(--ei-text,#172033);
  font-size:21px;
  line-height:1;
  cursor:pointer;
}
.ei-memory-control-dialog-confirm{
  display:block;
  min-width:110px;
  margin:20px 0 0 auto;
  padding:9px 18px;
  border:1px solid var(--ei-accent-2,#175cd3);
  border-radius:calc(var(--ei-small-radius,10px) - 2px);
  background:var(--ei-accent,#1570ef);
  color:var(--ei-on-accent,#fff);
  font-weight:800;
  cursor:pointer;
}
@media(max-width:620px){
  .ei-memory-control-dialog{padding:10px}
  .ei-memory-control-dialog-panel{width:100%;padding:20px}
  .ei-memory-game-ui .ei-game-top-control{margin:7px 5px}
}

/* v0.1.84 — EI Loading Renderer-inspired PNG icon system */
.ei-memory-game-ui .ei-png-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  padding:0;
  box-sizing:border-box;
  line-height:0;
}
.ei-memory-game-ui .ei-png-icon img{
  display:block;
  width:78%;
  height:78%;
  max-width:78%;
  max-height:78%;
  object-fit:contain;
  object-position:center;
  image-rendering:auto;
  filter:none;
}
.ei-memory-game-ui .ei-tab-icon.ei-icon-has-png,
.ei-memory-game-ui .ei-game-icon.ei-icon-has-png{
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  background:
    radial-gradient(circle at 50% 46%,rgba(29,120,170,.16),rgba(12,25,45,0) 54%),
    #0c192d!important;
  border:1px solid rgba(91,143,249,.24)!important;
  border-radius:13px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 5px 12px rgba(4,12,28,.18)!important;
  overflow:hidden!important;
  color:inherit;
  padding:0!important;
}
.ei-memory-game-ui .ei-tab-icon.ei-icon-has-png:before,
.ei-memory-game-ui .ei-tab-icon.ei-icon-has-png:after,
.ei-memory-game-ui .ei-game-icon.ei-icon-has-png:before,
.ei-memory-game-ui .ei-game-icon.ei-icon-has-png:after{
  display:none!important;
  content:none!important;
}
.ei-memory-game-ui .ei-tab-icon.ei-icon-has-png{
  width:38px!important;
  height:38px!important;
  margin:0 auto;
}
.ei-memory-game-ui .ei-game-icon.ei-icon-has-png{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}
/* Normal inventory slots: stage size follows the selected icon size. */
.ei-memory-game-ui .ei-game-slot .ei-game-icon.ei-game-icon-size-small.ei-icon-has-png{
  width:54%!important;height:54%!important;max-width:42px!important;max-height:42px!important;
}
.ei-memory-game-ui .ei-game-slot .ei-game-icon.ei-game-icon-size-medium.ei-icon-has-png{
  width:74%!important;height:74%!important;max-width:none!important;max-height:none!important;
}
.ei-memory-game-ui .ei-game-slot .ei-game-icon.ei-game-icon-size-large.ei-icon-has-png{
  width:94%!important;height:94%!important;max-width:none!important;max-height:none!important;
}
/* Hotbar uses a tighter scale. */
.ei-memory-game-ui .ei-game-hot-slot .ei-game-icon.ei-game-icon-size-small.ei-icon-has-png{
  width:50%!important;height:50%!important;max-width:30px!important;max-height:30px!important;
}
.ei-memory-game-ui .ei-game-hot-slot .ei-game-icon.ei-game-icon-size-medium.ei-icon-has-png{
  width:70%!important;height:70%!important;max-width:none!important;max-height:none!important;
}
.ei-memory-game-ui .ei-game-hot-slot .ei-game-icon.ei-game-icon-size-large.ei-icon-has-png{
  width:90%!important;height:90%!important;max-width:none!important;max-height:none!important;
}
/* Detail view keeps the complete icon visible at every size. */
.ei-memory-game-ui .ei-game-detail-icon .ei-game-icon.ei-game-icon-size-small.ei-icon-has-png{
  width:54%!important;height:54%!important;max-width:46px!important;max-height:46px!important;
}
.ei-memory-game-ui .ei-game-detail-icon .ei-game-icon.ei-game-icon-size-medium.ei-icon-has-png{
  width:74%!important;height:74%!important;max-width:none!important;max-height:none!important;
}
.ei-memory-game-ui .ei-game-detail-icon .ei-game-icon.ei-game-icon-size-large.ei-icon-has-png{
  width:94%!important;height:94%!important;max-width:none!important;max-height:none!important;
}
.ei-memory-game-ui .ei-game-icon.ei-game-icon-size-large.ei-icon-has-png .ei-png-icon img{
  width:82%;height:82%;max-width:82%;max-height:82%;
}
.ei-memory-game-ui .ei-game-slot:hover .ei-game-icon.ei-icon-has-png,
.ei-memory-game-ui .ei-game-hot-slot:hover .ei-game-icon.ei-icon-has-png,
.ei-memory-game-ui .ei-game-tab:hover .ei-tab-icon.ei-icon-has-png{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 6px 16px rgba(4,12,28,.24)!important;
  filter:brightness(1.04);
}
.ei-memory-game-ui .ei-slot-status-locked .ei-game-icon.ei-icon-has-png img{
  filter:grayscale(.9) brightness(.72) opacity(.8);
}


/* v0.1.86 premium icon polish: larger stage and larger artwork */
.ei-memory-game-ui .ei-tab-icon.ei-icon-has-png{width:42px!important;height:42px!important;border-radius:14px!important}
.ei-memory-game-ui .ei-png-icon{padding:0!important}
.ei-memory-game-ui .ei-png-icon img{width:88%!important;height:88%!important;max-width:88%!important;max-height:88%!important;object-fit:contain!important;object-position:center!important}
.ei-memory-game-ui .ei-game-slot .ei-game-icon.ei-game-icon-size-small.ei-icon-has-png{width:60%!important;height:60%!important;max-width:46px!important;max-height:46px!important}
.ei-memory-game-ui .ei-game-slot .ei-game-icon.ei-game-icon-size-medium.ei-icon-has-png{width:84%!important;height:84%!important}
.ei-memory-game-ui .ei-game-slot .ei-game-icon.ei-game-icon-size-large.ei-icon-has-png{width:100%!important;height:100%!important}
.ei-memory-game-ui .ei-game-hot-slot .ei-game-icon.ei-game-icon-size-small.ei-icon-has-png{width:56%!important;height:56%!important;max-width:34px!important;max-height:34px!important}
.ei-memory-game-ui .ei-game-hot-slot .ei-game-icon.ei-game-icon-size-medium.ei-icon-has-png{width:78%!important;height:78%!important}
.ei-memory-game-ui .ei-game-hot-slot .ei-game-icon.ei-game-icon-size-large.ei-icon-has-png{width:96%!important;height:96%!important}
.ei-memory-game-ui .ei-game-detail-icon .ei-game-icon.ei-game-icon-size-small.ei-icon-has-png{width:60%!important;height:60%!important;max-width:50px!important;max-height:50px!important}
.ei-memory-game-ui .ei-game-detail-icon .ei-game-icon.ei-game-icon-size-medium.ei-icon-has-png{width:84%!important;height:84%!important}
.ei-memory-game-ui .ei-game-detail-icon .ei-game-icon.ei-game-icon-size-large.ei-icon-has-png{width:100%!important;height:100%!important}
.ei-memory-game-ui .ei-game-icon.ei-game-icon-size-large.ei-icon-has-png .ei-png-icon img{width:92%!important;height:92%!important;max-width:92%!important;max-height:92%!important}
.ei-memory-game-ui .ei-game-icon.ei-game-icon-size-small.ei-icon-has-png .ei-png-icon img{width:90%!important;height:90%!important;max-width:90%!important;max-height:90%!important}
.ei-memory-game-ui .ei-game-icon.ei-game-icon-size-medium.ei-icon-has-png .ei-png-icon img{width:90%!important;height:90%!important;max-width:90%!important;max-height:90%!important}


/* v0.1.88 larger DQ-style icon sizing */
.ei-memory-game-ui .ei-png-icon{padding:0!important}
.ei-memory-game-ui .ei-png-icon img{width:92%!important;height:92%!important;max-width:92%!important;max-height:92%!important;object-fit:contain!important;object-position:center!important}
.ei-memory-game-ui .ei-tab-icon.ei-icon-has-png{width:46px!important;height:46px!important;border-radius:15px!important}
.ei-memory-game-ui .ei-game-slot .ei-game-icon.ei-game-icon-size-small.ei-icon-has-png{width:72%!important;height:72%!important;max-width:54px!important;max-height:54px!important}
.ei-memory-game-ui .ei-game-slot .ei-game-icon.ei-game-icon-size-medium.ei-icon-has-png{width:92%!important;height:92%!important;max-width:74px!important;max-height:74px!important}
.ei-memory-game-ui .ei-game-slot .ei-game-icon.ei-game-icon-size-large.ei-icon-has-png{width:100%!important;height:100%!important;max-width:92px!important;max-height:92px!important}
.ei-memory-game-ui .ei-game-hot-slot .ei-game-icon.ei-game-icon-size-small.ei-icon-has-png{width:66%!important;height:66%!important;max-width:40px!important;max-height:40px!important}
.ei-memory-game-ui .ei-game-hot-slot .ei-game-icon.ei-game-icon-size-medium.ei-icon-has-png{width:84%!important;height:84%!important;max-width:52px!important;max-height:52px!important}
.ei-memory-game-ui .ei-game-hot-slot .ei-game-icon.ei-game-icon-size-large.ei-icon-has-png{width:96%!important;height:96%!important;max-width:62px!important;max-height:62px!important}
.ei-memory-game-ui .ei-game-detail-icon .ei-game-icon.ei-game-icon-size-small.ei-icon-has-png{width:70%!important;height:70%!important;max-width:58px!important;max-height:58px!important}
.ei-memory-game-ui .ei-game-detail-icon .ei-game-icon.ei-game-icon-size-medium.ei-icon-has-png{width:90%!important;height:90%!important;max-width:78px!important;max-height:78px!important}
.ei-memory-game-ui .ei-game-detail-icon .ei-game-icon.ei-game-icon-size-large.ei-icon-has-png{width:100%!important;height:100%!important;max-width:96px!important;max-height:96px!important}


/* v0.1.108 — minimal white icon stage + clearly separated small/medium/large sizing */
/* 1) Minimal style PNG stage must be white rather than transparent/dark. */
.ei-memory-game-ui.ei-memory-style-minimal .ei-tab-icon.ei-icon-has-png,
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-icon.ei-icon-has-png{
  background:#ffffff!important;
  border:1px solid #d7e0eb!important;
  box-shadow:0 4px 12px rgba(15,23,42,.10)!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-slot:hover .ei-game-icon.ei-icon-has-png,
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-hot-slot:hover .ei-game-icon.ei-icon-has-png,
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-tab:hover .ei-tab-icon.ei-icon-has-png{
  box-shadow:0 6px 16px rgba(15,23,42,.14)!important;
  filter:none!important;
}
/* 2) Reset shared stage look so icon-size differences are obvious in slot, hotbar, and detail preview. */
.ei-memory-game-ui .ei-tab-icon.ei-icon-has-png{width:44px!important;height:44px!important;border-radius:14px!important}

/* Normal grid slot */
.ei-memory-game-ui .ei-game-slot .ei-game-icon.ei-game-icon-size-small.ei-icon-has-png{
  width:50%!important;height:50%!important;max-width:38px!important;max-height:38px!important;border-radius:10px!important;
}
.ei-memory-game-ui .ei-game-slot .ei-game-icon.ei-game-icon-size-medium.ei-icon-has-png{
  width:74%!important;height:74%!important;max-width:60px!important;max-height:60px!important;border-radius:14px!important;
}
.ei-memory-game-ui .ei-game-slot .ei-game-icon.ei-game-icon-size-large.ei-icon-has-png{
  width:96%!important;height:96%!important;max-width:78px!important;max-height:78px!important;border-radius:18px!important;
}

/* Hotbar slot */
.ei-memory-game-ui .ei-game-hot-slot .ei-game-icon.ei-game-icon-size-small.ei-icon-has-png{
  width:42%!important;height:42%!important;max-width:28px!important;max-height:28px!important;border-radius:8px!important;
}
.ei-memory-game-ui .ei-game-hot-slot .ei-game-icon.ei-game-icon-size-medium.ei-icon-has-png{
  width:64%!important;height:64%!important;max-width:42px!important;max-height:42px!important;border-radius:11px!important;
}
.ei-memory-game-ui .ei-game-hot-slot .ei-game-icon.ei-game-icon-size-large.ei-icon-has-png{
  width:86%!important;height:86%!important;max-width:56px!important;max-height:56px!important;border-radius:14px!important;
}

/* Detail preview / right panel */
.ei-memory-game-ui .ei-game-detail-icon .ei-game-icon.ei-game-icon-size-small.ei-icon-has-png{
  width:48%!important;height:48%!important;max-width:44px!important;max-height:44px!important;border-radius:10px!important;
}
.ei-memory-game-ui .ei-game-detail-icon .ei-game-icon.ei-game-icon-size-medium.ei-icon-has-png{
  width:72%!important;height:72%!important;max-width:68px!important;max-height:68px!important;border-radius:14px!important;
}
.ei-memory-game-ui .ei-game-detail-icon .ei-game-icon.ei-game-icon-size-large.ei-icon-has-png{
  width:96%!important;height:96%!important;max-width:92px!important;max-height:92px!important;border-radius:18px!important;
}

/* 3) Make the internal artwork scale also visibly different, not only the outer stage. */
.ei-memory-game-ui .ei-game-icon.ei-game-icon-size-small.ei-icon-has-png .ei-png-icon img{
  width:74%!important;height:74%!important;max-width:74%!important;max-height:74%!important;
}
.ei-memory-game-ui .ei-game-icon.ei-game-icon-size-medium.ei-icon-has-png .ei-png-icon img{
  width:84%!important;height:84%!important;max-width:84%!important;max-height:84%!important;
}
.ei-memory-game-ui .ei-game-icon.ei-game-icon-size-large.ei-icon-has-png .ei-png-icon img{
  width:92%!important;height:92%!important;max-width:92%!important;max-height:92%!important;
}


/* v0.1.110 — Arcane frontend overhaul
   Make the Arcane theme visually transform the whole Memory Library UI, not just the detail sidebar / energy core. */
.ei-memory-game-ui.ei-memory-style-arcane{
  position:relative;
  padding:18px;
  border-radius:28px;
  background:
    radial-gradient(circle at 12% 0%,rgba(103,76,215,.24),transparent 32%),
    radial-gradient(circle at 88% 0%,rgba(73,127,255,.16),transparent 26%),
    linear-gradient(180deg,#140b28 0%,#0b0616 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 20px 60px rgba(5,2,18,.62);
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-window{
  background:linear-gradient(180deg,rgba(22,11,42,.96),rgba(14,8,29,.96)) !important;
  border:1px solid rgba(160,108,255,.62) !important;
  border-radius:24px !important;
  box-shadow:0 0 0 1px rgba(255,255,255,.03) inset,0 0 34px rgba(160,108,255,.18),0 24px 60px rgba(0,0,0,.56) !important;
  overflow:hidden;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-topbar{
  min-height:98px;
  padding:14px 14px 12px;
  gap:14px;
  align-items:stretch;
  background:linear-gradient(180deg,rgba(18,9,39,.98),rgba(14,8,31,.96)) !important;
  border-bottom:1px solid rgba(143,111,219,.38) !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-tab{
  width:92px !important;
  min-height:76px !important;
  margin:0 !important;
  padding:10px 8px 10px !important;
  border:1px solid rgba(162,125,255,.52) !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,rgba(34,21,66,.98),rgba(23,12,44,.98)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 0 0 1px rgba(78,56,145,.28),0 10px 24px rgba(5,3,20,.34) !important;
  color:#f6efff !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-tab.is-active{
  background:linear-gradient(180deg,rgba(52,33,98,.98),rgba(29,16,55,.98)) !important;
  border-color:#63a4ff !important;
  box-shadow:0 0 0 2px rgba(99,164,255,.18),0 0 22px rgba(99,164,255,.22),inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-tab em{
  color:#f6efff !important;
  font-size:14px;
  font-weight:800;
  letter-spacing:.03em;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-tab small{
  background:linear-gradient(180deg,#4e84ff,#2563eb) !important;
  color:#fff !important;
  border:1px solid rgba(194,222,255,.85) !important;
  box-shadow:0 8px 14px rgba(37,99,235,.28) !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-top-spacer{flex:1 1 auto;min-width:14px}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-help,
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-close,
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-pagination span{
  width:40px;
  height:40px;
  border-radius:14px !important;
  border:1px solid rgba(169,139,250,.55) !important;
  background:linear-gradient(180deg,rgba(55,37,97,.94),rgba(33,19,61,.94)) !important;
  color:#f6efff !important;
  box-shadow:0 12px 20px rgba(0,0,0,.28),0 0 18px rgba(168,85,247,.12) !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-panel{
  padding:18px;
  gap:18px;
  background:transparent !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-left{
  padding:0;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-toolbar{
  margin-bottom:16px;
  padding:10px 0 0;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-section-title,
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-count{
  color:#f6efff !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-select,
.ei-memory-game-ui.ei-memory-style-arcane .ei-seed-button,
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-fake-button{
  border-radius:14px !important;
  border:1px solid rgba(160,108,255,.62) !important;
  font-weight:800;
  box-shadow:0 10px 20px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-select{
  background:linear-gradient(180deg,rgba(43,29,80,.95),rgba(28,17,55,.95)) !important;
  color:#faf5ff !important;
  padding:10px 14px !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-seed-button{
  background:linear-gradient(180deg,#4f7ff1,#2c58d8) !important;
  color:#ffffff !important;
  border-color:#7db1ff !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-fake-button{
  background:linear-gradient(180deg,rgba(54,57,79,.96),rgba(40,43,63,.96)) !important;
  color:#f5f3ff !important;
  border-color:rgba(203,213,225,.48) !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-grid{
  min-height:360px;
  padding:14px;
  border:1px solid rgba(167,139,250,.45) !important;
  border-radius:22px !important;
  background:linear-gradient(180deg,rgba(10,20,44,.92),rgba(9,16,35,.96)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 18px 34px rgba(0,0,0,.22) !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-slot,
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-hot-slot{
  border:1px solid rgba(165,180,252,.42) !important;
  border-radius:16px !important;
  background:linear-gradient(180deg,rgba(26,39,78,.98),rgba(13,19,41,.98)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 10px 18px rgba(1,5,18,.26) !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-slot.is-selected,
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-hot-slot.is-selected{
  outline:2px solid #63a4ff !important;
  box-shadow:0 0 0 2px rgba(99,164,255,.18),0 0 16px rgba(99,164,255,.22),inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-pagination{
  padding-top:14px;
  color:#ddd6fe;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-detail{
  padding:14px;
  border:1px solid rgba(167,139,250,.54) !important;
  border-radius:24px !important;
  background:linear-gradient(180deg,rgba(17,10,33,.98),rgba(14,9,28,.98)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 18px 40px rgba(0,0,0,.26) !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-detail h2{
  margin:0 0 14px;
  padding:16px 18px;
  text-align:center !important;
  border:1px solid rgba(125,211,252,.22) !important;
  border-radius:16px !important;
  background:linear-gradient(180deg,rgba(44,61,110,.95),rgba(31,47,88,.95)) !important;
  color:#ffffff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06) !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-detail-icon{
  border-radius:16px;
  border:1px solid rgba(165,180,252,.44) !important;
  background:linear-gradient(180deg,rgba(24,37,76,.98),rgba(12,18,40,.98)) !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-state-tag{
  background:linear-gradient(180deg,#5ba0ff,#2f69e7) !important;
  color:#fff !important;
  border:1px solid #9fd3ff !important;
  border-radius:12px !important;
  box-shadow:none !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-desc,
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-status-list{
  color:#f3ecff !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-next-hint{
  background:linear-gradient(180deg,rgba(36,21,66,.98),rgba(25,15,46,.98)) !important;
  border-left:4px solid #8b5cf6 !important;
  color:#f3ecff !important;
  border-radius:12px;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-bottom{
  margin:0 18px 18px;
  padding:14px;
  gap:14px;
  border:1px solid rgba(167,139,250,.38) !important;
  border-radius:24px !important;
  background:linear-gradient(180deg,rgba(14,8,29,.98),rgba(11,8,24,.98)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-hotbar-label{
  color:#f6efff !important;
  font-size:16px;
  letter-spacing:.06em;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-hotbar{
  gap:8px;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-energy-core{
  border:1px solid rgba(167,139,250,.38) !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,rgba(44,33,80,.98),rgba(28,20,51,.98)) !important;
  color:#f6efff !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-energy-icon{
  border-radius:999px;
  border:1px solid rgba(191,219,254,.65) !important;
  background:linear-gradient(180deg,#9b6bff,#6d28d9) !important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-energy-line{
  border:1px solid rgba(191,219,254,.22) !important;
  border-radius:999px !important;
  background:rgba(10,8,20,.82) !important;
  overflow:hidden;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-energy-line span{
  background:linear-gradient(90deg,#c084fc,#60a5fa) !important;
}
@media(max-width:980px){
  .ei-memory-game-ui.ei-memory-style-arcane{padding:12px}
  .ei-memory-game-ui.ei-memory-style-arcane .ei-game-topbar{padding:12px;gap:10px;overflow:auto}
  .ei-memory-game-ui.ei-memory-style-arcane .ei-game-tab{width:84px!important;min-width:84px!important}
  .ei-memory-game-ui.ei-memory-style-arcane .ei-game-bottom{margin:0 12px 12px}
}
@media(max-width:620px){
  .ei-memory-game-ui.ei-memory-style-arcane .ei-game-topbar{min-height:auto;flex-wrap:nowrap}
  .ei-memory-game-ui.ei-memory-style-arcane .ei-game-tab{width:78px!important;min-width:78px!important;min-height:70px!important}
  .ei-memory-game-ui.ei-memory-style-arcane .ei-game-detail h2{font-size:26px}
}


/* v0.1.111 — Dark / light theme text auto contrast */
.ei-memory-game-ui.ei-theme-dark .ei-game-detail,
.ei-memory-game-ui.ei-theme-dark .ei-game-detail-card,
.ei-memory-game-ui.ei-theme-dark .ei-game-detail h3,
.ei-memory-game-ui.ei-theme-dark .ei-game-id,
.ei-memory-game-ui.ei-theme-dark .ei-game-type,
.ei-memory-game-ui.ei-theme-dark .ei-game-bars div>span,
.ei-memory-game-ui.ei-theme-dark .ei-game-bars em,
.ei-memory-game-ui.ei-theme-dark .ei-game-desc,
.ei-memory-game-ui.ei-theme-dark .ei-game-desc *,
.ei-memory-game-ui.ei-theme-dark .ei-game-status-list,
.ei-memory-game-ui.ei-theme-dark .ei-game-status-list span,
.ei-memory-game-ui.ei-theme-dark .ei-game-status-list strong,
.ei-memory-game-ui.ei-theme-dark .ei-game-next-hint,
.ei-memory-game-ui.ei-theme-dark .ei-game-next-hint *,
.ei-memory-game-ui.ei-theme-dark .ei-game-section-title,
.ei-memory-game-ui.ei-theme-dark .ei-game-count,
.ei-memory-game-ui.ei-theme-dark .ei-game-hotbar-label,
.ei-memory-game-ui.ei-theme-dark .ei-game-energy-core,
.ei-memory-game-ui.ei-theme-dark .ei-game-energy-core *{color:#f8fafc!important}
.ei-memory-game-ui.ei-theme-light .ei-game-detail,
.ei-memory-game-ui.ei-theme-light .ei-game-detail-card,
.ei-memory-game-ui.ei-theme-light .ei-game-detail h3,
.ei-memory-game-ui.ei-theme-light .ei-game-id,
.ei-memory-game-ui.ei-theme-light .ei-game-type,
.ei-memory-game-ui.ei-theme-light .ei-game-bars div>span,
.ei-memory-game-ui.ei-theme-light .ei-game-bars em,
.ei-memory-game-ui.ei-theme-light .ei-game-desc,
.ei-memory-game-ui.ei-theme-light .ei-game-desc *,
.ei-memory-game-ui.ei-theme-light .ei-game-status-list,
.ei-memory-game-ui.ei-theme-light .ei-game-status-list span,
.ei-memory-game-ui.ei-theme-light .ei-game-status-list strong,
.ei-memory-game-ui.ei-theme-light .ei-game-next-hint,
.ei-memory-game-ui.ei-theme-light .ei-game-next-hint *,
.ei-memory-game-ui.ei-theme-light .ei-game-section-title,
.ei-memory-game-ui.ei-theme-light .ei-game-count,
.ei-memory-game-ui.ei-theme-light .ei-game-hotbar-label,
.ei-memory-game-ui.ei-theme-light .ei-game-energy-core,
.ei-memory-game-ui.ei-theme-light .ei-game-energy-core *{color:#0f172a!important}

/* v0.1.111 — Reworked Arcane, Pixel, DQ, EI World, Windows95 frontends */
.ei-memory-game-ui.ei-memory-style-arcane{
  --ei-bg:radial-gradient(circle at 14% 0%,rgba(118,94,255,.22),transparent 34%),linear-gradient(180deg,#120a24 0%,#090513 100%);
  --ei-panel:#140b2a;--ei-panel-2:#1d1038;--ei-top:#0e071f;--ei-line:rgba(160,108,255,.45);--ei-line-strong:#8b5cf6;--ei-text:#f8f5ff;--ei-muted:#d9d1f9;--ei-accent:#60a5fa;--ei-accent-2:#2563eb;--ei-on-accent:#fff;--ei-slot:#1b2750;--ei-radius:26px;--ei-small-radius:16px;
  background:var(--ei-bg)!important;color:var(--ei-text)!important;
}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-window{background:linear-gradient(180deg,rgba(14,8,31,.98),rgba(10,6,21,.98))!important;border:1px solid rgba(139,92,246,.72)!important;border-radius:28px!important;box-shadow:0 0 0 1px rgba(255,255,255,.04) inset,0 0 36px rgba(139,92,246,.18),0 26px 66px rgba(0,0,0,.55)!important}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-topbar{background:linear-gradient(180deg,rgba(17,9,35,.98),rgba(11,7,25,.98))!important;border-bottom:1px solid rgba(139,92,246,.32)!important}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-tab{border-radius:18px!important;background:linear-gradient(180deg,rgba(40,24,76,.98),rgba(23,14,46,.98))!important;border:1px solid rgba(167,139,250,.42)!important;box-shadow:0 14px 30px rgba(0,0,0,.24)!important}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-tab.is-active{background:linear-gradient(180deg,rgba(56,38,104,.98),rgba(28,18,53,.98))!important;box-shadow:0 0 0 2px rgba(96,165,250,.22),0 0 18px rgba(96,165,250,.22)!important}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-grid{background:linear-gradient(180deg,#0b1732,#091227)!important;border:1px solid rgba(167,139,250,.38)!important;border-radius:22px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 18px 36px rgba(0,0,0,.18)!important}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-slot,.ei-memory-game-ui.ei-memory-style-arcane .ei-game-hot-slot{background:linear-gradient(180deg,#213764,#101a35)!important;border:1px solid rgba(191,219,254,.26)!important;border-radius:16px!important}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-detail{background:linear-gradient(180deg,#0f0720,#0a0517)!important;border:1px solid rgba(139,92,246,.46)!important;border-radius:24px!important}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-detail h2{background:linear-gradient(180deg,#334b86,#25396d)!important;border:1px solid rgba(191,219,254,.18)!important;border-radius:16px!important;color:#fff!important;text-align:center!important}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-desc,.ei-memory-game-ui.ei-memory-style-arcane .ei-game-status-list,.ei-memory-game-ui.ei-memory-style-arcane .ei-game-next-hint{background:rgba(30,16,56,.9)!important;border-color:rgba(167,139,250,.26)!important}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-state-tag,.ei-memory-game-ui.ei-memory-style-arcane .ei-seed-button{background:linear-gradient(180deg,#5b9dff,#306ce8)!important;border:1px solid #9fc9ff!important;color:#fff!important}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-fake-button{background:linear-gradient(180deg,#444b69,#2f344c)!important;border:1px solid rgba(226,232,240,.26)!important;color:#fff!important}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-bottom{background:linear-gradient(180deg,rgba(14,8,29,.98),rgba(11,8,24,.98))!important;border-top:1px solid rgba(139,92,246,.28)!important;border-radius:0 0 24px 24px!important}
.ei-memory-game-ui.ei-memory-style-arcane .ei-game-energy-core{background:linear-gradient(180deg,#372752,#291a42)!important;border:1px solid rgba(167,139,250,.3)!important}

.ei-memory-game-ui.ei-memory-style-pixel{
  --ei-bg:#1f2231;--ei-panel:#2a3044;--ei-panel-2:#32384e;--ei-top:#171b28;--ei-line:#6e7285;--ei-line-strong:#0f1320;--ei-text:#fff8d8;--ei-muted:#d5d3c4;--ei-accent:#ffd44f;--ei-accent-2:#b98308;--ei-on-accent:#221709;--ei-slot:#3b435b;--ei-radius:0;--ei-small-radius:0;
  background:#1f2231!important;color:var(--ei-text)!important;font-family:"Press Start 2P","VT323","Noto Sans TC",monospace!important
}
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-window{background:#202638!important;border:4px solid #0d1020!important;border-radius:0!important;box-shadow:8px 8px 0 rgba(0,0,0,.55), inset 0 0 0 2px #ffe38c!important}
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-topbar,.ei-memory-game-ui.ei-memory-style-pixel .ei-game-bottom{background:#1a2030!important;border-color:#0d1020!important}
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-tab,.ei-memory-game-ui.ei-memory-style-pixel .ei-game-help,.ei-memory-game-ui.ei-memory-style-pixel .ei-game-close{background:#31384e!important;color:#fff6d6!important;border:3px solid #0d1020!important;border-radius:0!important;box-shadow:inset 0 0 0 2px #ffd44f!important}
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-tab.is-active{background:#44506e!important;color:#fff!important;box-shadow:inset 0 0 0 2px #fff,0 0 0 3px #ffd44f!important}
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-grid{background:#262b3d!important;border:4px solid #0d1020!important;border-radius:0!important;box-shadow:inset 0 0 0 2px #5c6276!important}
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-slot,.ei-memory-game-ui.ei-memory-style-pixel .ei-game-hot-slot{background:#4b5268!important;border:3px solid #0d1020!important;border-radius:0!important;box-shadow:inset 0 0 0 2px rgba(255,255,255,.14)!important}
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-detail{background:#2a3044!important;border:4px solid #0d1020!important;border-radius:0!important;box-shadow:8px 8px 0 rgba(0,0,0,.38)!important}
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-detail h2{background:#3a425c!important;border:3px solid #0d1020!important;border-radius:0!important;color:#fff!important;text-align:left!important}
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-desc,.ei-memory-game-ui.ei-memory-style-pixel .ei-game-status-list,.ei-memory-game-ui.ei-memory-style-pixel .ei-game-next-hint{background:#343b50!important;border:3px solid #0d1020!important;border-radius:0!important}
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-state-tag,.ei-memory-game-ui.ei-memory-style-pixel .ei-seed-button{background:#ffd44f!important;border:3px solid #0d1020!important;border-radius:0!important;color:#221709!important;box-shadow:3px 3px 0 rgba(0,0,0,.32)!important}
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-fake-button,.ei-memory-game-ui.ei-memory-style-pixel .ei-game-select{background:#454b60!important;border:3px solid #0d1020!important;border-radius:0!important;color:#fff6d6!important}
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-energy-core{background:#31384e!important;border:3px solid #0d1020!important;border-radius:0!important}

.ei-memory-game-ui.ei-memory-style-dq{
  --ei-bg:#edf3ff;--ei-panel:#11357b;--ei-panel-2:#184596;--ei-top:#12357a;--ei-line:#8bb5ff;--ei-line-strong:#ffffff;--ei-text:#ffffff;--ei-muted:#e1edff;--ei-accent:#ffd447;--ei-accent-2:#c49300;--ei-on-accent:#1c2f63;--ei-slot:#2757ac;--ei-radius:14px;--ei-small-radius:10px;
  background:#edf3ff!important;color:#0f234f!important
}
.ei-memory-game-ui.ei-memory-style-dq .ei-game-window{background:#13377d!important;border:4px solid #fff!important;border-radius:16px!important;box-shadow:0 0 0 3px #11357b,0 18px 34px rgba(18,53,122,.28)!important}
.ei-memory-game-ui.ei-memory-style-dq .ei-game-topbar,.ei-memory-game-ui.ei-memory-style-dq .ei-game-bottom{background:#13377d!important;border-color:#fff!important}
.ei-memory-game-ui.ei-memory-style-dq .ei-game-tab,.ei-memory-game-ui.ei-memory-style-dq .ei-game-help,.ei-memory-game-ui.ei-memory-style-dq .ei-game-close{background:linear-gradient(180deg,#1d4ea9,#143c86)!important;border:2px solid #fff!important;color:#fff!important;border-radius:12px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.26)!important}
.ei-memory-game-ui.ei-memory-style-dq .ei-game-tab.is-active{background:linear-gradient(180deg,#2b63c8,#1f4da1)!important;box-shadow:0 0 0 2px rgba(255,255,255,.5)!important}
.ei-memory-game-ui.ei-memory-style-dq .ei-game-panel{background:#eff4ff!important}
.ei-memory-game-ui.ei-memory-style-dq .ei-game-section-title,.ei-memory-game-ui.ei-memory-style-dq .ei-game-count{color:#132856!important}
.ei-memory-game-ui.ei-memory-style-dq .ei-game-grid{background:#183f8d!important;border:3px solid #fff!important;border-radius:14px!important;box-shadow:inset 0 0 0 2px rgba(255,255,255,.22)!important}
.ei-memory-game-ui.ei-memory-style-dq .ei-game-slot,.ei-memory-game-ui.ei-memory-style-dq .ei-game-hot-slot{background:linear-gradient(180deg,#4076d6,#2552a7)!important;border:2px solid #fff!important;border-radius:12px!important}
.ei-memory-game-ui.ei-memory-style-dq .ei-game-detail{background:#173e8d!important;border:3px solid #fff!important;border-radius:16px!important}
.ei-memory-game-ui.ei-memory-style-dq .ei-game-detail h2{background:linear-gradient(180deg,#2c5ebc,#1c438d)!important;border:2px solid #fff!important;border-radius:14px!important;color:#fff!important;text-align:center!important}
.ei-memory-game-ui.ei-memory-style-dq .ei-game-desc,.ei-memory-game-ui.ei-memory-style-dq .ei-game-status-list,.ei-memory-game-ui.ei-memory-style-dq .ei-game-next-hint{background:#2151aa!important;border:2px solid rgba(255,255,255,.65)!important}
.ei-memory-game-ui.ei-memory-style-dq .ei-game-state-tag,.ei-memory-game-ui.ei-memory-style-dq .ei-seed-button{background:linear-gradient(180deg,#6aa2ff,#4a7cf2)!important;color:#fff!important;border:2px solid #b7d1ff!important}
.ei-memory-game-ui.ei-memory-style-dq .ei-game-fake-button{background:linear-gradient(180deg,#57637f,#3f4a62)!important;border:2px solid #d0daf1!important;color:#fff!important}
.ei-memory-game-ui.ei-memory-style-dq .ei-game-energy-core{background:#2d4f95!important;border:2px solid #fff!important}

.ei-memory-game-ui.ei-memory-style-ei_world{
  --ei-bg:linear-gradient(180deg,#0c3556 0%,#08233a 100%);--ei-panel:#0e2d44;--ei-panel-2:#12384f;--ei-top:#09253a;--ei-line:rgba(215,177,74,.28);--ei-line-strong:#d7b14a;--ei-text:#f8fafc;--ei-muted:#cfe0ea;--ei-accent:#d7b14a;--ei-accent-2:#9a7225;--ei-on-accent:#18120a;--ei-slot:#143a52;--ei-radius:22px;--ei-small-radius:14px;
  background:radial-gradient(circle at 16% 0,rgba(32,162,178,.18),transparent 30%),linear-gradient(180deg,#0d3a5d 0%,#08243a 100%)!important;color:var(--ei-text)!important
}
.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-window{background:linear-gradient(180deg,#0a2235,#091d2d)!important;border:1px solid rgba(215,177,74,.62)!important;border-radius:24px!important;box-shadow:0 0 0 1px rgba(255,255,255,.03) inset,0 22px 56px rgba(2,12,23,.42)!important}
.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-topbar,.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-bottom{background:linear-gradient(180deg,#0b2c45,#092338)!important;border-color:rgba(215,177,74,.4)!important}
.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-tab,.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-help,.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-close{background:linear-gradient(180deg,#0f3652,#0c2d45)!important;border:1px solid rgba(215,177,74,.72)!important;color:#f8fafc!important;border-radius:16px!important;box-shadow:0 16px 30px rgba(2,12,23,.22)!important}
.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-tab.is-active{background:linear-gradient(180deg,#113d5e,#0f3251)!important;box-shadow:0 0 0 2px rgba(215,177,74,.22)!important}
.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-grid{background:linear-gradient(180deg,#0b2f47,#082538)!important;border:1px solid rgba(215,177,74,.44)!important;border-radius:20px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 18px 34px rgba(0,0,0,.18)!important}
.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-slot,.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-hot-slot{background:linear-gradient(180deg,#154866,#0d3349)!important;border:1px solid rgba(215,177,74,.32)!important;border-radius:14px!important}
.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-detail{background:linear-gradient(180deg,#0b2132,#0a1a28)!important;border:1px solid rgba(215,177,74,.58)!important;border-radius:24px!important}
.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-detail h2{background:linear-gradient(180deg,#143854,#102e46)!important;border:1px solid rgba(215,177,74,.36)!important;color:#fff!important;border-radius:16px!important;text-align:center!important}
.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-desc,.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-status-list,.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-next-hint{background:linear-gradient(180deg,#123349,#0d2a3f)!important;border-color:rgba(215,177,74,.24)!important}
.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-state-tag,.ei-memory-game-ui.ei-memory-style-ei_world .ei-seed-button{background:linear-gradient(180deg,#e0bd61,#c69a2a)!important;border:1px solid #f2dfaa!important;color:#1f180e!important}
.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-fake-button{background:linear-gradient(180deg,#44556d,#36465b)!important;border:1px solid rgba(226,232,240,.28)!important;color:#fff!important}
.ei-memory-game-ui.ei-memory-style-ei_world .ei-game-energy-core{background:linear-gradient(180deg,#1b3651,#11263d)!important;border:1px solid rgba(215,177,74,.32)!important}

.ei-memory-game-ui.ei-memory-style-windows95{
  --ei-bg:#008080;--ei-panel:#c0c0c0;--ei-panel-2:#d4d0c8;--ei-top:#000080;--ei-line:#ffffff;--ei-line-strong:#000000;--ei-text:#000000;--ei-muted:#333333;--ei-accent:#000080;--ei-accent-2:#000040;--ei-on-accent:#ffffff;--ei-slot:#c0c0c0;--ei-radius:0;--ei-small-radius:0;
  background:#008080!important;color:#000!important;font-family:Tahoma,"MS Sans Serif",sans-serif!important
}
.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-window{background:#c0c0c0!important;border:2px solid #000!important;border-radius:0!important;box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #808080,4px 4px 0 #000!important}
.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-topbar,.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-bottom{background:#c0c0c0!important;border-color:#808080!important}
.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-tab,.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-help,.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-close{background:#c0c0c0!important;border:2px solid #000!important;border-radius:0!important;color:#000!important;box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #808080!important}
.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-tab.is-active{background:#ffffff!important;box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #808080!important}
.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-panel{background:#c0c0c0!important}
.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-section-title,.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-count{color:#000!important}
.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-grid{background:#808080!important;border:2px solid #000!important;border-radius:0!important;box-shadow:inset 2px 2px 0 #404040,inset -2px -2px 0 #fff!important}
.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-slot,.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-hot-slot{background:#c0c0c0!important;border:2px solid #000!important;border-radius:0!important;box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #808080!important}
.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-detail{background:#c0c0c0!important;border:2px solid #000!important;border-radius:0!important;box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #808080!important}
.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-detail h2{background:#000080!important;border:2px solid #000!important;border-radius:0!important;color:#fff!important;text-align:left!important}
.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-desc,.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-status-list,.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-next-hint{background:#ffffff!important;border:2px solid #808080!important;border-radius:0!important;color:#000!important}
.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-state-tag,.ei-memory-game-ui.ei-memory-style-windows95 .ei-seed-button{background:#c0c0c0!important;border:2px solid #000!important;border-radius:0!important;color:#000!important;box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #808080!important}
.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-fake-button,.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-select{background:#c0c0c0!important;border:2px solid #000!important;border-radius:0!important;color:#000!important;box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #808080!important}
.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-energy-core{background:#c0c0c0!important;border:2px solid #000!important;border-radius:0!important;box-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #808080!important}
.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-energy-line{background:#808080!important;border:1px solid #000!important}
.ei-memory-game-ui.ei-memory-style-windows95 .ei-game-energy-line span{background:#000080!important}


/* v0.1.112 — slot badge readability for dark icon-button styles */
.ei-memory-game-ui.ei-memory-style-ei_world .ei-slot-badge,
.ei-memory-game-ui.ei-memory-style-pixel .ei-slot-badge{
  color:#f8fafc!important;
  text-shadow:0 1px 0 rgba(0,0,0,.95),0 0 6px rgba(0,0,0,.55)!important;
  font-weight:900!important;
}
.ei-memory-game-ui.ei-memory-style-ei_world .ei-slot-badge{
  background:linear-gradient(180deg,rgba(14,24,39,.96),rgba(8,15,25,.98))!important;
  border-color:rgba(215,177,74,.55)!important;
}
.ei-memory-game-ui.ei-memory-style-pixel .ei-slot-badge{
  background:#181818!important;
  border-color:#ffd44f!important;
  box-shadow:0 1px 0 rgba(255,255,255,.08),0 0 0 1px #000 inset!important;
}


/* v0.1.113: deterministic contrast for dynamically mounted Lobby modules.
   Server-rendered data-ei-tone is authoritative, so first open and reopen are identical. */
.ei-memory-game-ui[data-ei-tone="dark"]{color:#fff!important;color-scheme:dark;--ei-text:#fff;--ei-desc-text:#fff;--ei-desc-strong:#fff;--ei-detail-title:#fff;--ei-detail-value:#fff}
.ei-memory-game-ui[data-ei-tone="dark"] .ei-game-detail-card,
.ei-memory-game-ui[data-ei-tone="dark"] .ei-game-detail-card h3,
.ei-memory-game-ui[data-ei-tone="dark"] .ei-game-detail-card .ei-game-id,
.ei-memory-game-ui[data-ei-tone="dark"] .ei-game-detail-card .ei-game-type,
.ei-memory-game-ui[data-ei-tone="dark"] .ei-game-bars span,
.ei-memory-game-ui[data-ei-tone="dark"] .ei-game-bars em,
.ei-memory-game-ui[data-ei-tone="dark"] .ei-game-desc,
.ei-memory-game-ui[data-ei-tone="dark"] .ei-game-desc *,
.ei-memory-game-ui[data-ei-tone="dark"] .ei-game-status-list,
.ei-memory-game-ui[data-ei-tone="dark"] .ei-game-status-list *,
.ei-memory-game-ui[data-ei-tone="dark"] .ei-game-next-hint,
.ei-memory-game-ui[data-ei-tone="dark"] .ei-game-next-hint *,
.ei-memory-game-ui[data-ei-tone="dark"] .ei-game-bottom,
.ei-memory-game-ui[data-ei-tone="dark"] .ei-game-energy-core{color:#fff!important;-webkit-text-fill-color:#fff!important}
.ei-memory-game-ui[data-ei-tone="light"]{color:#17191d!important;color-scheme:light;--ei-text:#17191d;--ei-desc-text:#17191d;--ei-desc-strong:#111;--ei-detail-title:#111;--ei-detail-value:#17191d}
.ei-memory-game-ui[data-ei-tone="light"] .ei-game-detail-card,
.ei-memory-game-ui[data-ei-tone="light"] .ei-game-detail-card h3,
.ei-memory-game-ui[data-ei-tone="light"] .ei-game-detail-card .ei-game-id,
.ei-memory-game-ui[data-ei-tone="light"] .ei-game-detail-card .ei-game-type,
.ei-memory-game-ui[data-ei-tone="light"] .ei-game-bars span,
.ei-memory-game-ui[data-ei-tone="light"] .ei-game-bars em,
.ei-memory-game-ui[data-ei-tone="light"] .ei-game-desc,
.ei-memory-game-ui[data-ei-tone="light"] .ei-game-desc *,
.ei-memory-game-ui[data-ei-tone="light"] .ei-game-status-list,
.ei-memory-game-ui[data-ei-tone="light"] .ei-game-status-list *,
.ei-memory-game-ui[data-ei-tone="light"] .ei-game-next-hint,
.ei-memory-game-ui[data-ei-tone="light"] .ei-game-next-hint *,
.ei-memory-game-ui[data-ei-tone="light"] .ei-game-bottom,
.ei-memory-game-ui[data-ei-tone="light"] .ei-game-energy-core{color:#17191d!important;-webkit-text-fill-color:#17191d!important}

/* ======================================================================
 * v0.1.115 — Basic contrast + Minimal / Full Black structural redesign
 * ====================================================================== */

/* Basic: neutral light content with deterministic white text on dark chrome. */
.ei-memory-game-ui.ei-memory-style-basic{
  --ei-top-text:#ffffff;
  --ei-text:#1d2939;
  --ei-muted:#475467;
  --ei-on-accent:#ffffff;
}
.ei-memory-game-ui.ei-memory-style-basic .ei-game-topbar,
.ei-memory-game-ui.ei-memory-style-basic .ei-game-bottom,
.ei-memory-game-ui.ei-memory-style-basic .ei-game-hotbar-label,
.ei-memory-game-ui.ei-memory-style-basic .ei-game-hot-slot b,
.ei-memory-game-ui.ei-memory-style-basic .ei-game-energy-core,
.ei-memory-game-ui.ei-memory-style-basic .ei-game-energy-core *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.ei-memory-game-ui.ei-memory-style-basic .ei-slot-badge{
  background:linear-gradient(180deg,#475467,#344054)!important;
  border-color:#101828!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-shadow:0 1px 1px rgba(0,0,0,.75)!important;
}
.ei-memory-game-ui.ei-memory-style-basic .ei-game-state-tag,
.ei-memory-game-ui.ei-memory-style-basic .ei-seed-button{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.ei-memory-game-ui.ei-memory-style-basic .ei-slot-badge-grown{
  background:#8a5a00!important;
  color:#fff!important;
}

/* DQ: item labels and status text must always remain white on blue inventory cards. */
.ei-memory-game-ui.ei-memory-style-dq{
  --ei-top-text:#ffffff;
}
.ei-memory-game-ui.ei-memory-style-dq .ei-slot-badge{
  background:linear-gradient(180deg,rgba(9,28,72,.98),rgba(4,16,48,.99))!important;
  border:1px solid rgba(255,255,255,.88)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-shadow:0 1px 0 #000,0 0 5px rgba(0,0,0,.8)!important;
}
.ei-memory-game-ui.ei-memory-style-dq .ei-game-hot-slot b,
.ei-memory-game-ui.ei-memory-style-dq .ei-game-hotbar-label,
.ei-memory-game-ui.ei-memory-style-dq .ei-game-state-tag,
.ei-memory-game-ui.ei-memory-style-dq .ei-seed-button{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Minimal: genuinely frameless, spacious and low-noise rather than Basic with paler colors. */
.ei-memory-game-ui.ei-memory-style-minimal{
  --ei-top-text:#0f172a;
  background:#f8fafc!important;
  padding:18px!important;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC",sans-serif!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-window{
  background:#fff!important;
  border:0!important;
  border-radius:24px!important;
  box-shadow:0 18px 55px rgba(15,23,42,.08)!important;
  overflow:hidden!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-topbar{
  min-height:68px!important;
  padding:10px 14px!important;
  gap:8px!important;
  background:#fff!important;
  border:0!important;
  border-bottom:1px solid #eef2f7!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-tab{
  width:auto!important;
  min-width:72px!important;
  min-height:46px!important;
  padding:7px 12px!important;
  background:transparent!important;
  border:1px solid transparent!important;
  border-radius:12px!important;
  color:#64748b!important;
  box-shadow:none!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-tab.is-active{
  background:#0f172a!important;
  border-color:#0f172a!important;
  color:#fff!important;
  box-shadow:none!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-tab.is-active em,
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-tab.is-active small{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-panel{
  padding:24px!important;
  gap:24px!important;
  background:#fff!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-toolbar{
  margin-bottom:18px!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-section-title{
  font-size:20px!important;
  letter-spacing:-.02em!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-select{
  background:#fff!important;
  border:1px solid #e2e8f0!important;
  border-radius:10px!important;
  color:#334155!important;
  box-shadow:none!important;
  font-weight:600!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-grid{
  gap:14px!important;
  padding:14px!important;
  background:#f8fafc!important;
  border:1px solid #eef2f7!important;
  border-radius:18px!important;
  box-shadow:none!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-slot,
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-hot-slot{
  background:#fff!important;
  border:1px solid #e2e8f0!important;
  border-radius:14px!important;
  box-shadow:0 3px 10px rgba(15,23,42,.05)!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-slot:hover,
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-hot-slot:hover{
  transform:translateY(-2px)!important;
  border-color:#94a3b8!important;
  box-shadow:0 9px 22px rgba(15,23,42,.09)!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-slot-badge{
  left:8px!important;
  right:8px!important;
  bottom:7px!important;
  min-height:18px!important;
  border:0!important;
  border-radius:7px!important;
  background:rgba(15,23,42,.88)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:none!important;
  letter-spacing:0!important;
  font-weight:700!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-detail{
  background:#fff!important;
  border:0!important;
  border-left:1px solid #eef2f7!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding-left:24px!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-detail h2{
  padding:4px 0 14px!important;
  background:transparent!important;
  border:0!important;
  border-bottom:1px solid #e2e8f0!important;
  border-radius:0!important;
  color:#0f172a!important;
  text-align:left!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-desc,
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-status-list,
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-next-hint{
  background:#f8fafc!important;
  border:1px solid #eef2f7!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-bottom{
  min-height:88px!important;
  padding:14px 18px!important;
  background:#fff!important;
  border:0!important;
  border-top:1px solid #eef2f7!important;
  color:#334155!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-hotbar-label,
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-hot-slot b,
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-energy-core,
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-energy-core *{
  color:#334155!important;
  -webkit-text-fill-color:#334155!important;
}
.ei-memory-game-ui.ei-memory-style-minimal .ei-game-energy-core{
  background:#f8fafc!important;
  border:1px solid #e2e8f0!important;
  box-shadow:none!important;
}

/* Full black transparent: hard-edged monochrome HUD with no blur and no card-like chrome. */
.ei-memory-game-ui.ei-memory-style-full_black{
  --ei-top-text:#fff;
  --ei-text:#fff;
  --ei-muted:rgba(255,255,255,.66);
  --ei-accent:#fff;
  --ei-accent-2:#9ca3af;
  --ei-on-accent:#000;
  background:rgba(0,0,0,.62)!important;
  padding:14px!important;
  color:#fff!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Noto Sans TC",monospace!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-window{
  position:relative!important;
  background:rgba(0,0,0,.86)!important;
  border:1px solid rgba(255,255,255,.86)!important;
  border-radius:0!important;
  box-shadow:0 0 0 1px rgba(0,0,0,.95),0 24px 70px rgba(0,0,0,.58)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-window:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;
  opacity:.12;
  background:repeating-linear-gradient(180deg,rgba(255,255,255,.22) 0 1px,transparent 1px 4px);
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-window>*{
  position:relative;
  z-index:2;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-topbar{
  min-height:64px!important;
  padding:8px!important;
  gap:6px!important;
  background:rgba(0,0,0,.94)!important;
  border:0!important;
  border-bottom:1px solid #fff!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-tab,
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-help,
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-close{
  background:#000!important;
  border:1px solid rgba(255,255,255,.5)!important;
  border-radius:0!important;
  color:#fff!important;
  box-shadow:none!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-tab.is-active{
  background:#fff!important;
  border-color:#fff!important;
  color:#000!important;
  box-shadow:none!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-tab.is-active em,
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-tab.is-active small{
  color:#000!important;
  -webkit-text-fill-color:#000!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-panel{
  padding:18px!important;
  gap:18px!important;
  background:rgba(0,0,0,.72)!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-section-title,
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-count{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-select{
  background:#000!important;
  border:1px solid rgba(255,255,255,.58)!important;
  border-radius:0!important;
  color:#fff!important;
  box-shadow:none!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-grid{
  padding:12px!important;
  gap:10px!important;
  background:rgba(0,0,0,.86)!important;
  border:1px solid rgba(255,255,255,.72)!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-slot,
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-hot-slot{
  background:rgba(0,0,0,.92)!important;
  border:1px solid rgba(255,255,255,.5)!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-slot:hover,
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-hot-slot:hover,
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-slot.is-selected{
  background:#fff!important;
  border-color:#fff!important;
  outline:0!important;
  box-shadow:none!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-slot:hover .ei-slot-badge,
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-slot.is-selected .ei-slot-badge{
  background:#fff!important;
  color:#000!important;
  -webkit-text-fill-color:#000!important;
  border-color:#000!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-slot-badge{
  left:3px!important;
  right:3px!important;
  bottom:3px!important;
  border:1px solid rgba(255,255,255,.6)!important;
  border-radius:0!important;
  background:#000!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:none!important;
  text-shadow:none!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-detail{
  background:rgba(0,0,0,.9)!important;
  border:1px solid rgba(255,255,255,.78)!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-detail h2{
  padding:10px 12px!important;
  background:#000!important;
  border:0!important;
  border-bottom:1px solid #fff!important;
  border-radius:0!important;
  color:#fff!important;
  text-align:left!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-desc,
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-status-list,
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-next-hint{
  background:rgba(0,0,0,.9)!important;
  border:1px solid rgba(255,255,255,.36)!important;
  border-radius:0!important;
  color:#fff!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-state-tag,
.ei-memory-game-ui.ei-memory-style-full_black .ei-seed-button{
  background:#fff!important;
  border:1px solid #fff!important;
  border-radius:0!important;
  color:#000!important;
  -webkit-text-fill-color:#000!important;
  box-shadow:none!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-fake-button{
  background:#000!important;
  border:1px solid rgba(255,255,255,.62)!important;
  border-radius:0!important;
  color:#fff!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-bottom{
  min-height:84px!important;
  padding:12px!important;
  background:rgba(0,0,0,.96)!important;
  border:0!important;
  border-top:1px solid #fff!important;
  color:#fff!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-energy-core{
  background:#000!important;
  border:1px solid rgba(255,255,255,.7)!important;
  border-radius:0!important;
  color:#fff!important;
  box-shadow:none!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-energy-line{
  background:#000!important;
  border:1px solid #fff!important;
}
.ei-memory-game-ui.ei-memory-style-full_black .ei-game-energy-line span{
  background:#fff!important;
}

@media(max-width:760px){
  .ei-memory-game-ui.ei-memory-style-minimal{padding:8px!important}
  .ei-memory-game-ui.ei-memory-style-minimal .ei-game-panel{padding:14px!important}
  .ei-memory-game-ui.ei-memory-style-minimal .ei-game-detail{border-left:0!important;border-top:1px solid #eef2f7!important;padding:16px 0 0!important}
  .ei-memory-game-ui.ei-memory-style-full_black{padding:6px!important}
  .ei-memory-game-ui.ei-memory-style-full_black .ei-game-panel{padding:10px!important;gap:10px!important}
}


/* v0.1.116 — Pixel style: force bright text on dark chrome and slot labels. */
.ei-memory-game-ui.ei-memory-style-pixel,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-window,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-panel,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-bottom{
  color:#f8fafc!important;
}
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-tab,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-tab *,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-help,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-close,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-section-title,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-count,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-pagination,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-pagination *,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-hotbar-label,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-hot-slot b,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-energy-core,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-energy-core *,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-detail-card,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-detail-card *,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-desc,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-desc *,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-status-list,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-status-list *,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-next-hint,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-next-hint *,
.ei-memory-game-ui.ei-memory-style-pixel .ei-seed-button,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-fake-button,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-select,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-empty,
.ei-memory-game-ui.ei-memory-style-pixel .ei-slot-badge,
.ei-memory-game-ui.ei-memory-style-pixel .ei-slot-badge *,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-state-tag{
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
}
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-tab.is-active,
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-tab.is-active *{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
.ei-memory-game-ui.ei-memory-style-pixel .ei-game-state-tag,
.ei-memory-game-ui.ei-memory-style-pixel .ei-seed-button{
  color:#221709!important;
  -webkit-text-fill-color:#221709!important;
  text-shadow:none!important;
}
.ei-memory-game-ui.ei-memory-style-pixel .ei-slot-badge{
  background:#121723!important;
  border-color:#ffd44f!important;
  text-shadow:0 1px 0 rgba(0,0,0,.98),0 0 6px rgba(0,0,0,.72)!important;
}


/* ======================================================================
 * v0.1.117 — Global semantic text-contrast contract for all 26 themes
 * Dark surfaces use bright text; light surfaces use dark text. This also
 * neutralizes inherited -webkit-text-fill-color from Lobby/page builders.
 * ====================================================================== */
.ei-memory-game-ui[class*="ei-memory-style-"]{
  --ei-toolbar-text:var(--ei-text,#17191d);
  --ei-bottom-text:var(--ei-top-text,var(--ei-text,#17191d));
  --ei-slot-label-text:var(--ei-top-text,var(--ei-text,#17191d));
}

/* Explicit chrome text for every canonical theme. */
.ei-memory-game-ui.ei-memory-style-basic{--ei-top-text:#fff}
.ei-memory-game-ui.ei-memory-style-basic_black{--ei-top-text:#fff}
.ei-memory-game-ui.ei-memory-style-full_black{--ei-top-text:#fff}
.ei-memory-game-ui.ei-memory-style-minimal{--ei-top-text:#0f172a}
.ei-memory-game-ui.ei-memory-style-glass{--ei-top-text:#f8fafc}
.ei-memory-game-ui.ei-memory-style-pixel{--ei-top-text:#fff8d8}
.ei-memory-game-ui.ei-memory-style-dq{--ei-top-text:#fff;--ei-toolbar-text:#132856}
.ei-memory-game-ui.ei-memory-style-ei_world{--ei-top-text:#f8fafc}
.ei-memory-game-ui.ei-memory-style-rpg{--ei-top-text:#fff3cf}
.ei-memory-game-ui.ei-memory-style-western{--ei-top-text:#fff8e8}
.ei-memory-game-ui.ei-memory-style-classic_wood{--ei-top-text:#fff2d2}
.ei-memory-game-ui.ei-memory-style-parchment{--ei-top-text:#fff5d6}
.ei-memory-game-ui.ei-memory-style-ink{--ei-top-text:#f6f1e6}
.ei-memory-game-ui.ei-memory-style-chinese{--ei-top-text:#fff4d8}
.ei-memory-game-ui.ei-memory-style-japanese{--ei-top-text:#f3eee2}
.ei-memory-game-ui.ei-memory-style-cute{--ei-top-text:#563e49}
.ei-memory-game-ui.ei-memory-style-dark{--ei-top-text:#f8fafc}
.ei-memory-game-ui.ei-memory-style-windows95{--ei-top-text:#000}
.ei-memory-game-ui.ei-memory-style-windows{--ei-top-text:#152033}
.ei-memory-game-ui.ei-memory-style-mac{--ei-top-text:#15181d}
.ei-memory-game-ui.ei-memory-style-cyberpunk{--ei-top-text:#f5f3ff}
.ei-memory-game-ui.ei-memory-style-nasapunk{--ei-top-text:#eef8ff}
.ei-memory-game-ui.ei-memory-style-steampunk{--ei-top-text:#fff1cf}
.ei-memory-game-ui.ei-memory-style-terminal{--ei-top-text:#8cffb5}
.ei-memory-game-ui.ei-memory-style-arcane{--ei-top-text:#f8f5ff}
.ei-memory-game-ui.ei-memory-style-wabisabi{--ei-top-text:#f8f3ea}

/* Safari/Chrome page-builder text-fill rules must never leak into the module. */
.ei-memory-game-ui,
.ei-memory-game-ui *{
  -webkit-text-fill-color:currentColor!important;
}

/* Top chrome: tabs and controls. Active tabs keep their own theme color. */
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-topbar,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-tab:not(.is-active),
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-tab:not(.is-active) em,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-help,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-close{
  color:var(--ei-top-text,#fff)!important;
  -webkit-text-fill-color:currentColor!important;
}

/* Main content toolbar and pagination follow the actual content surface. */
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-panel,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-toolbar,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-section-title,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-count,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-pagination,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-pagination *{
  color:var(--ei-toolbar-text,var(--ei-text,#17191d))!important;
  -webkit-text-fill-color:currentColor!important;
}

/* Footer chrome follows its own dark/light surface, not the page theme. */
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-bottom,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-hotbar-label,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-hot-slot b,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-energy-core,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-energy-core *{
  color:var(--ei-bottom-text,var(--ei-top-text,#fff))!important;
  -webkit-text-fill-color:currentColor!important;
}

/* Slot labels are rendered on a darkened chrome badge in every skin. */
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-slot-badge,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-slot-badge *{
  color:var(--ei-slot-label-text,var(--ei-top-text,#fff))!important;
  -webkit-text-fill-color:currentColor!important;
}

/* Detail content follows its panel surface. */
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-detail-card,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-detail-card h3,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-detail-card .ei-game-id,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-detail-card .ei-game-type,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-bars span,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-bars em,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-desc,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-desc *,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-status-list,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-status-list *,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-next-hint,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-next-hint *{
  color:var(--ei-text,#17191d)!important;
  -webkit-text-fill-color:currentColor!important;
}

/* Accent controls keep each theme's own foreground; only block inherited text-fill. */
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-state-tag,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-seed-button,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-tab small{
  -webkit-text-fill-color:currentColor!important;
}
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-fake-button,
.ei-memory-game-ui[class*="ei-memory-style-"] .ei-game-select{
  color:var(--ei-text,#17191d)!important;
  -webkit-text-fill-color:currentColor!important;
}

/* v0.1.126 — Slot label visibility + deterministic two-line wrapping */
.ei-memory-game-ui .ei-slot-badge{
  flex-direction:column;
  gap:0;
  white-space:normal;
  text-overflow:clip;
  max-width:calc(100% - 8px);
  box-sizing:border-box;
}
.ei-memory-game-ui .ei-slot-badge.is-two-line{
  min-height:27px;
  padding:2px 4px;
  border-radius:7px;
  line-height:1.05;
}
.ei-memory-game-ui .ei-slot-badge-line{
  display:block;
  width:100%;
  max-width:100%;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  line-height:1.08;
  text-align:center;
}
@media(max-width:620px){
  .ei-memory-game-ui .ei-slot-badge.is-two-line{
    min-height:25px;
    padding:2px 3px;
  }
}
