/* Memories2 gold theme: CSS only. Currency, purchase and donation logic stays unchanged. */
html,body.website,body.ingame{background:#120b0c!important;color:#e1b2b6!important}
body.website,body.ingame{background-image:linear-gradient(90deg,#120b0c22,#120b0caa 65%),url('/img/theme/header-bg.png')!important;background-position:center top!important;background-size:cover!important;background-attachment:fixed!important}
#page{background:rgba(15,14,11,.92)!important;border:1px solid #96444b;box-shadow:0 18px 65px #000000bb;color:#dfb5b9}
#header.header{height:122px!important;min-height:122px;background:linear-gradient(90deg,#120b0c08,#120b0c55 45%,#120b0cf5 70%),url('/img/theme/header-bg.png') left 24%/cover!important;border-bottom:1px solid #9c434b;box-shadow:none;padding-top:10px;box-sizing:border-box}
.header>.logo-block{width:49%!important}.header>.payment-block{padding-top:28px}
.header h1{width:280px!important;height:95px!important;margin:0!important}
.header h1 a{background:url('/img/main/logo-head.png') center/contain no-repeat!important;width:280px!important;height:95px!important;display:block!important;text-indent:-9999px}
.header>.logo-block .welcome{color:#dea3a8;top:84px;left:300px}
.header .text-link,.header ul.currency_status{color:#efbdc2!important}
#header.header{position:relative}
#header.header h1{position:absolute;left:30%;top:0}
#header.header>.logo-block .welcome{position:absolute;left:30%;top:94px;display:flex;align-items:center;gap:6px;width:280px;height:20px;justify-content:center}
#header.header>.logo-block .welcome i{float:none;margin:0}
#header.header>.logo-block .welcome span{display:inline;margin-right:10px}
#header.header ul.currency_status li[data-currency="2"] img{width:16px!important;height:16px!important;object-fit:contain}
#contentContainer,#navigation,#category,.content,.tab-content,#mCSB_1_container{background-color:transparent!important;background-image:none!important}
#navigation{background:#1b1011!important;border-color:#843d43!important;box-shadow:none}
.btn-navitem,.btn-catitem,.btn-subcatitem,.btn-sideitem{color:#df9ea4!important;text-shadow:none!important;background:linear-gradient(#321b1d,#180e0f)!important;border-color:#6a3136!important}
#navigation .nav-tabs li a.btn-navitem-active,#navigation .nav-tabs li a.btn-navitem-active:hover,#subnavi>li>.btn-catitem-active{background:linear-gradient(#c4676f,#933d45)!important;color:#160a0b!important;border-color:#e699a0!important;box-shadow:none!important}
.btn-navitem:hover,.btn-catitem:hover,.btn-subcatitem:hover,.btn-sideitem:hover{background:#4e2226!important;color:#f0c5c9!important}
#category h2,.content h2,.tab-content h3{border-color:#823e44!important;color:#e7a3a9!important;text-shadow:none!important}
.breadcrumb,.breadcrumb a,.breadcrumb .item_count,.category-link,.category-link a{color:#cd8f95!important;text-shadow:none!important}
.item-box,.card .list-item .item-box,.contrast-box{background:linear-gradient(145deg,#2b1a1c,#170e0f)!important;color:#dcb7ba!important;border:1px solid #8a3d44!important;border-radius:5px;box-shadow:inset 0 1px #d3777f33,0 6px 18px #00000066!important}
.card h4,.card-heading,.item-description h4 a{color:#eaaab0!important;text-shadow:none!important;font-weight:bold!important}
.item-shortdesc,.card .item-description .item-shortdesc{background:#0e090966!important;color:#d5b1b4!important;border-radius:3px}
.item-shortdesc p,.item-description p,.list-item p{color:#d5b1b4!important}
a.item-thumb{background:radial-gradient(#512529,#160e0e)!important;border:1px solid #8c3940!important;border-radius:3px;box-shadow:none!important}
.price,.end-price,.price-label,.block-price,.price_desc{color:#eaabb1!important;text-shadow:none!important}
.btn-default,.btn-price,.btn-buy,.premium,.btn-default:hover,.btn-price:hover,.btn-buy:hover{background:linear-gradient(#953d45,#4f2024)!important;border:1px solid #c56870!important;color:#f5d7da!important;text-shadow:0 1px 2px #000000!important;box-shadow:none!important;border-radius:3px}
.btn-default:hover,.btn-price:hover,.btn-buy:hover{background:linear-gradient(#b4555e,#742d33)!important}
.btn-disabled,.btn-disabled:hover{background:#2f1d1f!important;color:#9e6166!important;border-color:#5a3538!important;text-shadow:none!important}
#showRightPush,#slideMenu{background:#1c1112!important;color:#e3a2a8!important;border-color:#8b3d44!important}
#slideMenu h2{color:#e3a2a8!important}
#searchBar input,input[type=text],input[type=password],input[type=email],select,textarea{background:#120b0c!important;color:#e7bcc0!important;border:1px solid #7e393f!important;text-shadow:none}
input::placeholder{color:#af7c81!important}
.promo-area{background:linear-gradient(90deg,#130c0c11,#130c0c55 40%,#130c0cd9),url('/img/theme/header-bg.png') left 26%/cover!important;border:1px solid #853d43;border-radius:5px}
.promo-area img{opacity:0}.promo-area:after{content:'';position:absolute;inset:5% 8% 5% 38%;background:url('/img/main/logo-head.png') center/contain no-repeat;pointer-events:none}.promo-area{position:relative}
.fancybox-skin,.fancybox-inner,.grey-box,.dark-grey-box,#itemDetail,.item-detail{background:#1d1213!important;color:#dfb0b4!important;border-color:#8a3b42!important}
.fancybox-skin h2,.fancybox-skin h3,.fancybox-skin h4,.fancybox-skin p,.fancybox-skin label,.fancybox-skin li{color:#e0aaaf!important;text-shadow:none!important}
.tooltip,.tooltip-inner{color:#eebcc0!important;background:#160e0e!important}
.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background:#b7535c!important}
.item-status.new-status{background:#ba5760!important;border-color:#d7747d!important}
.fancybox-overlay{background:rgba(9,8,6,.88)!important}
.fancybox-skin{border:1px solid #99474e!important;box-shadow:0 15px 60px #000000!important}
.fancybox-skin .picture_wrapper{background:radial-gradient(#4e2226,#150d0e)!important;border:1px solid #8c3940;border-radius:4px}
.fancybox-skin .nav-tabs{border-color:#80393f!important}
.fancybox-skin .nav-tabs>li>a{background:#32181a!important;color:#d99ca1!important;border-color:#80393f!important}
.fancybox-skin .nav-tabs>li.active>a,.fancybox-skin .nav-tabs>li>a:hover{background:#a1454d!important;color:#13090a!important}
#subnavi>li>.btn-catitem{height:55px;min-height:55px;padding:7px 4px!important;box-sizing:border-box;font-size:11px;line-height:16px!important}
#subnavi>li>.btn-catitem i{font-size:20px;line-height:23px}
#subnavi>li>.btn-catitem br{display:none}
@media(max-width:850px){#header.header{height:105px!important;min-height:105px}.header h1,.header h1 a{width:220px!important;height:78px!important}.header>.logo-block .welcome{left:240px;top:76px}.header>.payment-block{padding-top:16px}}
@media(max-width:850px){#header.header>.logo-block .welcome{left:30%;top:78px;width:220px}}

/* Chaos2 native voucher MD and Euro item icons, matching the game inventory. */
img[src*="/images/this/coins.png"]{content:url('/shop/images/icons/chaos2/30510.png')}
img[src*="/images/this/jcoins.png"],img[src*="/images/this/jd-balance.png"]{content:url('/shop/images/icons/chaos2/80012.png')}
img[src*="/images/this/coins.png"],img[src*="/images/this/jcoins.png"],img[src*="/images/this/jd-balance.png"]{width:28px!important;height:28px!important;object-fit:contain;display:inline-block;vertical-align:middle}
#header.header .premium img{width:18px!important;height:18px!important}
#header.header ul.currency_status img,#header.header ul.currency_status li[data-currency="2"] img{width:24px!important;height:24px!important;object-fit:contain}

/* Native catalogue scrolling: fit the actual embedded browser viewport. */
body.website,body.ingame{height:auto!important;min-height:100vh;margin-top:0!important;margin-bottom:0!important}
body.website #page,body.ingame #page{height:auto!important;max-height:100vh;max-width:100%;overflow-y:auto!important;overflow-x:hidden;box-sizing:border-box}
#page .content{height:auto!important}
#page .scrollable_container.m2-native-scroll{overflow-y:scroll!important;overflow-x:hidden!important;box-sizing:border-box;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:#b7535c #211213;overscroll-behavior-y:contain;padding-bottom:16px}
#page::-webkit-scrollbar,.m2-native-scroll::-webkit-scrollbar{width:14px}
#page::-webkit-scrollbar-track,.m2-native-scroll::-webkit-scrollbar-track{background:#211213;border-left:1px solid #702f35}
#page::-webkit-scrollbar-thumb,.m2-native-scroll::-webkit-scrollbar-thumb{background:#b7535c;border:3px solid #211213;border-radius:8px;min-height:36px}
#page::-webkit-scrollbar-thumb:hover,.m2-native-scroll::-webkit-scrollbar-thumb:hover{background:#de7b84}

#page #category .tabbable{height:auto!important}
.m2-native-scroll>ul.item-list.card{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0;padding-right:8px}
.m2-native-scroll>ul.item-list.card:before,.m2-native-scroll>ul.item-list.card:after{display:none}
.m2-native-scroll>ul.item-list.card>.list-item{width:auto!important;min-width:0;float:none!important;margin:0!important}
@media(max-width:760px){.m2-native-scroll>ul.item-list.card{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Bundle saving is already included in the payable catalogue price. */
.m2-bundle-saving{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:7px 0 4px;clear:both;font:11px/1.4 Arial,sans-serif;color:#d69da2}
.m2-saving-badge{display:inline-block;background:linear-gradient(135deg,#dd7982,#a2353f);color:#1b0a0c;padding:4px 7px;border:1px solid #e8a1a8;border-radius:3px;font-weight:700;letter-spacing:.25px}
.m2-saving-reference{color:#d69da2}.m2-saving-reference s{color:#b98388;text-decoration:line-through}
#page .item-list .item-box{height:auto!important;min-height:0}
#itemDetails>.span12>.m2-bundle-saving{margin:12px 0;font-size:13px}

#page .item-list .item-box{max-height:none!important}
#page .item-list .price_desc{height:auto!important;min-height:36px;overflow:auto}
#page .item-list .price_desc .price{width:auto!important;height:auto!important;min-height:30px;padding:4px 0!important}
#page .item-list .price_desc .price .block-price{display:inline-flex!important;align-items:center;gap:5px;white-space:nowrap}

/* Compact header logo leaves the currency icons and balances unobstructed. */
#header.header h1{width:18%!important;max-width:180px!important;height:80px!important;top:6px}
#header.header h1 a{width:100%!important;height:100%!important}
#header.header>.logo-block .welcome{width:18%;max-width:180px}

/* Chaos2: shared artwork, garnet panels, warm metal details. */
body.website,body.ingame{font-family:Arial,sans-serif!important;background-color:#170708!important;background-image:linear-gradient(180deg,#17070877,#170708ee 65%),url('/img/theme/header-bg.png')!important}
#page{width:1100px!important;max-width:calc(100% - 32px)!important;margin:26px auto!important;max-height:none!important;border-color:#753238!important;background:#1b0b10ee!important;border-radius:8px;overflow:visible!important}
#header.header{background:linear-gradient(90deg,#200a0e55,#18090ded),url('/img/theme/header-bg.png') center 40%/cover!important;border-color:#71343a!important;border-radius:8px 8px 0 0}
#header.header h1{left:24px!important;top:10px!important;width:160px!important;height:75px!important}
#header.header h1 a{background:url('/img/main/logo-head.png') center/contain no-repeat!important}
#header.header>.logo-block .welcome{left:190px!important;top:54px!important;width:auto!important;max-width:230px!important}
.chaos-topline{display:flex;justify-content:space-between;gap:16px;max-width:1100px;margin:18px auto 0;padding:0 18px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#c7abae}
.chaos-topline a{color:#e3c5bc;text-decoration:none}.chaos-topline strong{color:#faf1e8;letter-spacing:.16em}
#navigation .nav-tabs{display:flex!important;flex-wrap:wrap;justify-content:flex-start}
#navigation .nav-tabs li{float:none!important}#navigation{height:auto!important;min-height:50px!important}
#subnavi{display:flex;flex-wrap:wrap}#subnavi>li{flex:1 1 100px;float:none!important}
.content{max-width:100%;box-sizing:border-box}.card-heading,.item-description h4 a{color:#f1d9bd!important}.price,.end-price{color:#f6ddac!important}
.btn-default,.btn-price,.btn-buy,.premium{background:linear-gradient(#9d303b,#551720)!important;border-color:#b2585e!important;color:#fff2e5!important}
.btn-default:hover,.btn-price:hover,.btn-buy:hover{background:linear-gradient(#bd4650,#78232d)!important}
#page .scrollable_container.m2-native-scroll{max-height:none!important;height:auto!important;overflow:visible!important;padding-bottom:25px}
.item-picture img{image-rendering:auto;object-fit:contain}
.chaos-login{max-width:1000px;margin:7vh auto;background:linear-gradient(110deg,#20090e55,#17090bf5 48%),url('/img/theme/header-bg.png') left center/cover;border:1px solid #78363d;border-radius:10px;display:grid;grid-template-columns:1fr 1fr;box-shadow:0 25px 90px #000a;min-height:510px;overflow:hidden}
.chaos-login-art{padding:55px 38px;display:flex;flex-direction:column;justify-content:flex-end}.chaos-login-art img{width:145px;align-self:flex-start;margin-bottom:auto}.chaos-login-art h1{font:36px Georgia,serif;color:#ffe8d2!important;line-height:1.15;margin:25px 0 12px}.chaos-login-art p{color:#dac2bf;line-height:1.6}
.chaos-login-form{padding:60px 42px;background:#1d0c10d9}.chaos-eyebrow{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:#d29285}.chaos-login-form h2{font:30px Georgia,serif;color:#fff0df;margin:14px 0 10px}.chaos-login-form p{color:#bfa6a9;font-size:13px;line-height:1.6}.chaos-login-form label{display:block;margin:22px 0 8px;color:#e3c5c4;font-size:12px}.chaos-login-form input{width:100%;height:44px!important;box-sizing:border-box;border-radius:4px;padding:10px!important}.chaos-login-form button{width:100%;margin:25px 0 18px;height:46px;border-radius:4px;font-weight:bold;letter-spacing:.07em}.chaos-login-links{display:flex;justify-content:space-between;gap:14px;font-size:12px}.chaos-login-links a{color:#e0b88f}.chaos-error{padding:10px;border:1px solid #b1434a;color:#ffd7d7;font-size:13px}.chaos-footer{text-align:center;color:#b69396;padding:18px;font-size:11px;letter-spacing:.05em}
@media(max-width:760px){#page{margin:12px auto!important;max-width:calc(100% - 14px)!important}#header.header{height:170px!important}#header.header>.logo-block .welcome{left:165px!important;top:35px!important}.header>.payment-block{position:absolute;left:15px;bottom:12px;width:calc(100% - 30px)!important;margin:0!important}.header .payment-block .currency_status{right:10px}.chaos-login{grid-template-columns:1fr;margin:20px 12px}.chaos-login-art{min-height:170px;padding:25px}.chaos-login-art h1{font-size:28px}.chaos-login-art img{width:90px}.chaos-login-form{padding:30px 25px}.chaos-topline{font-size:10px}.m2-native-scroll>ul.item-list.card{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.m2-native-scroll>ul.item-list.card{grid-template-columns:1fr}.chaos-topline span{display:none}}

/* Let the document scroll and keep catalogue panels full width. */
html body.website,html body.ingame{overflow-y:auto!important;overflow-x:hidden!important}
body.website #page,body.ingame #page{overflow:visible!important;max-height:none!important}
#page #category .tabbable{display:block!important;width:100%!important}
#page #category #subnavi{float:none!important;width:100%!important;margin:0!important}
#page #category .tab-content{float:none!important;width:100%!important;margin:0!important;overflow:visible!important}
#page #category .scrollable_container{float:none!important;width:100%!important;min-width:0!important;overflow:visible!important;max-height:none!important;height:auto!important;box-sizing:border-box}
#page #category .scrollable_container>ul.item-list{width:100%!important;box-sizing:border-box}
#page #category .scrollable_container>h3{clear:both;padding:15px 0}
@media(max-width:760px){
 #header.header .payment-block{display:flex!important;align-items:center;justify-content:flex-end;gap:12px;top:auto!important;bottom:12px!important;height:auto!important;padding:0!important;min-height:0!important}
 #header.header .payment-block .currency_status{position:static!important;display:flex!important;float:none!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;gap:8px;order:0}
 #header.header .payment-block .currency_status li{float:none!important;display:inline-flex!important;align-items:center;white-space:nowrap;font:12px Arial,sans-serif}
 #header.header .payment-block>.btn-price{position:static!important;float:none!important;width:auto!important;height:36px!important;padding:0 12px!important;margin:0!important;font-size:11px!important;order:1}
 #header.header .payment-block .account-push{position:static!important;float:none!important;width:36px!important;height:36px!important;margin:0!important;order:2}
 #header.header h1{left:18px!important;width:115px!important;height:80px!important;top:8px!important}
 #header.header>.logo-block .welcome{left:150px!important;top:40px!important}
}

.fancybox-inner #itemDetails,.fancybox-inner #itemBuy,.fancybox-inner #itemConfirmation,.fancybox-inner #notEnoughCash{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
.fancybox-inner #itemDetails>.span12{width:100%!important;box-sizing:border-box}
.fancybox-inner #itemDetails #name{height:auto!important;min-height:35px!important;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.fancybox-inner #itemDetails #name .price{position:static!important;float:none!important;order:2;margin-left:auto;white-space:normal}
.fancybox-inner #itemBuy .dark-grey-box{display:flex;align-items:center;gap:15px;padding:16px!important;box-sizing:border-box}
.fancybox-inner #itemBuy .dark-grey-box>.contrast-box{float:none!important;width:55%!important;height:auto!important;min-height:0!important;box-sizing:border-box;padding:12px!important}
.fancybox-inner #itemBuy .arrow{display:none!important}
.fancybox-inner #itemBuy #buy{float:none!important;width:45%!important;padding:0!important;box-sizing:border-box}
.fancybox-inner #itemBuy #buy .btn-group,.fancybox-inner #itemBuy #buy button{max-width:100%!important;box-sizing:border-box}
.fancybox-inner #itemDetails .item-showcase{min-width:0!important}
.fancybox-inner #itemDetails .picture_wrapper img{max-width:100%;object-fit:contain}
#page #category>div:first-child{background:#200e13!important;border-color:#65222c!important}
#page #category>div:first-child a{border-color:#953341!important;color:#ffd8dd!important;background:#40131e!important}
.fancybox-close{background-color:#93273a!important;border-radius:50%;z-index:9999}

.fancybox-inner #itemDetails .picture_wrapper{width:100%!important;height:170px!important;box-sizing:border-box}.fancybox-inner #itemDetails .picture_wrapper img{width:100%!important;height:100%!important;object-fit:contain}
