/* Pocket Games RPG — standalone final cascade */
:root{--pgl-bg:#130e10;--pgl-surface:#211719;--pgl-soft:#2b1d1d;--pgl-text:#f2e5d5;--pgl-muted:#bba99a;--pgl-border:#65482f;--pgl-primary:#8e2229;--pgl-primary2:#46151b;--pgl-shadow:0 8px 22px #0006;--pgl-radius:9px;--gold:#e7bc78;--panel:linear-gradient(145deg,#2c1e1e,#1b1416 75%)}
html,body.pg-rpg-theme{color-scheme:dark!important;background:#130e10!important;color:var(--pgl-text)!important}
body.pg-rpg-theme.pg-light-theme .page_layout,body.pg-rpg-theme.pg-light-theme .content-container,body.pg-rpg-theme.pg-light-theme .content-container>.container-fluid{background:transparent!important}
body.pg-rpg-theme{background-image:radial-gradient(ellipse at 90% 0,#54202055,transparent 45%),repeating-linear-gradient(125deg,#ffffff02 0 1px,transparent 1px 9px)!important}
body.pg-rpg-theme.pg-light-theme a{color:var(--gold)}
body.pg-rpg-theme.pg-light-theme :is(h1,h2,h3,h4,h5,h6,.card-title,.user-login,.progress-value){color:#f4d8a1!important}
body.pg-rpg-theme h1,body.pg-rpg-theme .rpg-section-title{font-family:Georgia,serif;letter-spacing:0!important}
body.pg-rpg-theme.pg-light-theme :is(.top_nav,.sidebar,.sidebar__inner,.sidebar__wrapper,.sidebar__logo,.pg-mobile-nav){background:linear-gradient(145deg,#26191a,#120e10)!important;border-color:#805735!important;box-shadow:0 4px 20px #0008!important}
body.pg-rpg-theme.pg-light-theme .sidebar a,body.pg-rpg-theme.pg-light-theme .navbar .icon{color:#e9cfaa!important}
body.pg-rpg-theme.pg-light-theme .navbar-toggler-bar{background:var(--gold)!important}
body.pg-rpg-theme.pg-light-theme .sidebar :is(.active,a.active),body.pg-rpg-theme.pg-light-theme .sidebar a:hover{background:linear-gradient(90deg,#7a2029,#32181b)!important;color:#ffe4a8!important;border-radius:5px!important}
body.pg-rpg-theme.pg-light-theme :is(.card,.list-group-item,.modal-content,.dropdown-menu,.jumbotron,.bg-white,.bg-light,.news-card,.inlink,.post,.post-item,.forum__topic,.forum__section,.comments__item,.user__link,.user_photo,.post-of-user,.pg-game-media,.pg-game-description,.pg-file-info){background:var(--panel)!important;color:var(--pgl-text)!important;border:1px solid #68482f!important;border-radius:8px!important;box-shadow:0 5px 16px #0005!important}
body.pg-rpg-theme.pg-light-theme :is(.card-header,.card-footer,.modal-header,.modal-footer,.table,.dropdown-item,.page-link){background:#24191a!important;color:#e9cfaa!important;border-color:#65482f!important}
body.pg-rpg-theme.pg-light-theme :is(.dropdown-item:hover,.list-group-item-action:hover,.inlink:hover,.news-card:hover){background:#392122!important;border-color:#c08c4b!important;color:#fff0cc!important}
body.pg-rpg-theme.pg-light-theme :is(.text-muted,small,.small,.breadcrumb-item,.breadcrumb-item a,.news-meta,.pg-file-info__label,.useragent,.user-ip,.user-name){color:#bfae9e!important}
body.pg-rpg-theme.pg-light-theme :is(.text-dark,.text-body,.pg-file-info__value,.pg-game-description__text){color:#f2e5d5!important}
body.pg-rpg-theme.pg-light-theme :is(.form-control,.custom-select,input[type=text],input[type=search],input[type=password],input[type=email],input[type=number],textarea,select){background:#191214!important;color:#f5e5d0!important;border:1px solid #795638!important;border-radius:6px!important}
body.pg-rpg-theme.pg-light-theme :is(input,textarea,select):focus{border-color:#e7bc78!important;box-shadow:0 0 0 3px #c38d4533!important}
body.pg-rpg-theme.pg-light-theme :is(.btn-primary,.btn-info,.pg-download-card,.nav-pills .nav-link.active,.nav-tabs .nav-link.active,.page-item.active .page-link){background:linear-gradient(135deg,#93262d,#4b151c)!important;border:1px solid #d5a25c!important;color:#fff0cf!important;border-radius:6px!important;box-shadow:inset 0 0 12px #e7652822,0 5px 15px #0006!important}
body.pg-rpg-theme.pg-light-theme :is(.btn-light,.btn-secondary,.cnt,.badge-light,.badge-secondary,.pg-file-size,.liic){background:#30201c!important;color:#f0c985!important;border:1px solid #795638!important;border-radius:6px!important}
body.pg-rpg-theme.pg-light-theme .ph{background:linear-gradient(100deg,#511b20,#251719)!important;color:#f5d399!important;border:1px solid #b17a40!important;border-radius:5px!important;font-family:Georgia,serif;box-shadow:0 5px 15px #0007!important}
body.pg-rpg-theme.pg-light-theme .news-title a{color:#f3d7aa!important}body.pg-rpg-theme.pg-light-theme .news-poster-container{background:#211719!important}
body.pg-rpg-theme.pg-light-theme .news-card{width:clamp(155px,24vw,240px)!important}body.pg-rpg-theme.pg-light-theme .news-poster-container{height:clamp(105px,15vw,145px)!important}
body.pg-rpg-theme.pg-light-theme .pg-game-description{border-left:3px solid #d4a15b!important}body.pg-rpg-theme.pg-light-theme .pg-download-card :is(a,.pg-download-card__label,.pg-download-card__icon){color:#fff0cf!important}
body.pg-rpg-theme.pg-light-theme .profile-avatar .avatar-image{border-color:#b17a40!important}body.pg-rpg-theme.pg-light-theme .user__link svg{color:var(--gold)!important}
body.pg-rpg-theme.pg-light-theme :is(.page-footer,.page-footer a){color:#c4a982!important;background:transparent!important}
body.pg-rpg-theme.pg-light-theme *{scrollbar-color:#805735 #191214!important}body.pg-rpg-theme.pg-light-theme ::-webkit-scrollbar-track{background:#191214!important}body.pg-rpg-theme.pg-light-theme ::-webkit-scrollbar-thumb{background:#805735!important;border-color:#191214!important}
body.pg-rpg-theme.pg-light-theme .pg-mobile-nav__item{color:#c4ad93!important;background:transparent!important;border-radius:5px!important}body.pg-rpg-theme.pg-light-theme .pg-mobile-nav__item.is-active{background:linear-gradient(145deg,#72222a,#35171a)!important;color:#ffe0a2!important;box-shadow:inset 0 -2px #d5a25c} .pg-mobile-nav__item .icon{width:23px;height:23px;fill:currentColor}
.rpg-hero{position:relative;isolation:isolate;overflow:hidden;min-height:290px;display:flex;align-items:center;border:1px solid #b78348;border-radius:7px;background:#28171a;box-shadow:0 12px 30px #0008;margin-bottom:16px}.rpg-hero-art{position:absolute;inset:0;z-index:-2;background-size:cover;background-position:center right}.rpg-hero:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#130d10f5 0%,#1b1014c9 32%,#1b101420 75%)}.rpg-hero:after,.rpg-more:after{content:'';position:absolute;inset:0;pointer-events:none;background:url('../images/rpg-corner.svg') top left/42px no-repeat}.rpg-hero-content{padding:30px;max-width:70%}.rpg-kicker{color:#e8c48a;font-size:10px;letter-spacing:2px}.rpg-hero h2{font: bold clamp(32px,5vw,62px)/1.02 Georgia,serif!important;text-transform:uppercase;margin:12px 0 20px!important;text-shadow:0 3px 12px #000}.rpg-hero h2 em{font-size:.72em;font-weight:normal}.rpg-cta{display:inline-flex;gap:14px;align-items:center;background:linear-gradient(#8b252c,#4b131a);border:1px solid #e0b16d;padding:11px 16px;color:#ffe4ad!important;font-weight:700;text-decoration:none!important;clip-path:polygon(7px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 7px)}.rpg-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 20px}.rpg-shortcuts a{display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px 3px;background:linear-gradient(145deg,#482025,#221719);border:1px solid #a47743;border-radius:5px;color:#f2d5a5!important;font-size:13px;text-decoration:none!important}.rpg-shortcuts .icon{width:25px;height:25px;fill:currentColor}.rpg-section-title{font-size:23px!important;margin:18px 0 8px}.rpg-more{position:relative;display:block;text-align:center;padding:22px 10px;margin:14px 0 22px;border:1px solid #c18b49;background:linear-gradient(110deg,#3b171c,#6c2529,#2a1719);font:bold 26px Georgia,serif;color:#f9d99d!important;text-decoration:none!important}.rpg-more small{display:block;font:13px Roboto,sans-serif;margin-top:5px}.rpg-cta:hover,.rpg-shortcuts a:hover,.rpg-more:hover{filter:brightness(1.2)}
@media(max-width:767px){.rpg-hero{min-height:220px}.rpg-hero-content{padding:20px 14px;max-width:85%}.rpg-hero-art{background-position:65% center}.rpg-kicker{font-size:9px;letter-spacing:1px}.rpg-hero h2{font-size:34px!important}.rpg-cta{font-size:12px;padding:9px 10px}.rpg-shortcuts a{font-size:11px}.rpg-shortcuts{gap:5px}.rpg-section-title{font-size:20px!important}body.pg-rpg-theme.pg-light-theme .pg-mobile-nav{bottom:max(7px,env(safe-area-inset-bottom));height:62px}body.pg-rpg-theme.pg-light-theme{padding-bottom:calc(82px + env(safe-area-inset-bottom))!important}}
@media(prefers-reduced-motion:reduce){body.pg-rpg-theme *{transition:none!important;animation:none!important}}
/* v1.1 — mobile feedback fixes */
body.pg-rpg-theme.pg-light-theme .rpg-mobile-brand{display:flex!important;align-items:center;justify-content:center;flex:1;min-width:0;position:static!important;opacity:1!important;visibility:visible!important;margin:0 10px!important;transform:none!important}
body.pg-rpg-theme.pg-light-theme .rpg-mobile-brand a{display:block;width:min(220px,58vw)}
body.pg-rpg-theme.pg-light-theme .rpg-mobile-brand img{display:block!important;width:100%!important;height:auto!important;max-width:none!important;margin:0!important;opacity:1!important;visibility:visible!important}
@media(min-width:992px){body.pg-rpg-theme.pg-light-theme .rpg-mobile-brand{display:none!important}}
body.pg-rpg-theme.pg-light-theme :is(.text-dark-brown,.section-header .text-dark-brown,.list-items .item-name){color:#f2d29a!important}
body.pg-rpg-theme.pg-light-theme :is(.border,.border-top,.border-bottom,.border-left,.border-right,.pg-file-info__row,.table td,.table th){border-color:#68482f!important}
body.pg-rpg-theme.pg-light-theme :is(hr,.pg-game-divider){background:#68482f!important;border-color:#68482f!important}
body.pg-rpg-theme.pg-light-theme .pg-game-description:before{background:linear-gradient(#f0c77e,#8b532e)!important}
body.pg-rpg-theme.pg-light-theme :is(.card-img-top,.img-thumbnail,.card .bg-light,.card .bg-white,.card .card-img,.card [style*="background"],.card .embed-responsive){background-color:#1b1416!important;border-color:#68482f!important}
body.pg-rpg-theme.pg-light-theme .card :is(a,div)[style*="background"]{background-color:#1b1416!important}
body.pg-rpg-theme.pg-light-theme .card :is(.bg-light,.bg-white,.embed-responsive){background:#1b1416!important}
body.pg-rpg-theme.pg-light-theme .card{overflow:hidden}
body.pg-rpg-theme.pg-light-theme .card .card-img-top{object-fit:contain;display:block;width:100%;height:auto;max-height:250px}
body.pg-rpg-theme.pg-light-theme .list-items .list-item{background:var(--panel)!important;border:1px solid #795638!important;border-radius:6px;margin:6px 0;color:#f2d29a!important}
body.pg-rpg-theme.pg-light-theme :is(.section-header,.list-items .item-desc){color:#cdbba6!important}
body.pg-rpg-theme.pg-light-theme .inlink{gap:12px!important;justify-content:flex-start!important;min-height:64px!important}
body.pg-rpg-theme.pg-light-theme .liic{flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important}
body.pg-rpg-theme.pg-light-theme .libody{flex:1 1 0!important;min-width:0;margin:0!important;text-align:left;overflow-wrap:anywhere}
.rpg-file-icon .icon{width:26px;height:26px;color:#e7bc78;fill:currentColor}
body.pg-rpg-theme.pg-light-theme :is(.ph,.rpg-more,.rpg-shortcuts a){background-image:url('../images/rpg-corner.svg'),linear-gradient(125deg,#542026,#211518)!important;background-repeat:no-repeat!important;background-position:top left,center!important;background-size:22px,cover!important;box-shadow:inset 0 0 0 2px #1a1012,inset 0 0 0 3px #a4774344,0 5px 15px #0007!important}
body.pg-rpg-theme.pg-light-theme .rpg-more{background-image:url('../images/rpg-corner.svg'),linear-gradient(90deg,#190e12e8,#381419a0),url('../images/rpg-hero.webp')!important;background-size:35px,cover,cover!important;background-position:top left,center,center 40%!important;padding:25px 10px}
body.pg-rpg-theme.pg-light-theme .pg-mobile-nav{border-radius:12px!important;padding:4px!important;height:54px!important}
body.pg-rpg-theme.pg-light-theme .pg-mobile-nav__item{height:44px!important;gap:3px!important}
body.pg-rpg-theme.pg-light-theme .pg-mobile-nav__item .icon{width:20px;height:20px}
body.pg-rpg-theme.pg-light-theme .pg-mobile-nav__item small{font-size:10px!important}
@media(max-width:767px){body.pg-rpg-theme.pg-light-theme .navbar{min-height:54px!important}body.pg-rpg-theme.pg-light-theme .rpg-hero{min-height:205px}body.pg-rpg-theme.pg-light-theme .row>.col-6{padding:0 5px!important}body.pg-rpg-theme.pg-light-theme .row>.col-6 .card{margin-bottom:10px!important}body.pg-rpg-theme.pg-light-theme .row>.col-6 .card .card-img-top{max-height:190px}}

/* v1.2: self-contained icons, no external sprite or cache dependency */
body.pg-rpg-theme .rpg-inline-icon{display:block!important;visibility:visible!important;opacity:1!important;fill:none!important;stroke:currentColor!important;flex-shrink:0;overflow:visible!important}
body.pg-rpg-theme .rpg-inline-icon :is(path,circle){fill:none!important;stroke:currentColor!important}
body.pg-rpg-theme .rpg-file-icon{display:flex!important;align-items:center!important;justify-content:center!important;color:#e7bc78!important}
body.pg-rpg-theme .rpg-file-icon .rpg-inline-icon{width:26px!important;height:26px!important}
body.pg-rpg-theme .pg-mobile-nav__item .rpg-inline-icon{width:22px!important;height:22px!important}
