/* COFFIN ROLEPLAY V3.81 — unified midnight/amber visitor theme.
   OPT-IN: requires body.cfrp381-theme added by the authenticated installer.
   Preserve: V3.77 site header, V3.80 Discord account widget, map engine, HTML hierarchy,
   forms, shop checkout, PHP authentication and administrative pages. */
:root{--c381-bg:#181a1c;--c381-fg:#e7e7e7;--c381-accent:#ffe03e}
html body.cfrp381-theme:not(.coffin-home):not(.cfrp-admin):not(.admin){
 color:#e7e7e7!important;background:#181a1c!important;
 background-image:linear-gradient(180deg,rgba(24,26,28,.28) 0%,rgba(24,26,28,.39) 44%,rgba(24,26,28,.73) 100%),url('/assets/images/backgrounds/coffin-inner-bg.png')!important;
 background-repeat:no-repeat!important;background-size:cover!important;background-position:center 55%!important;
 background-attachment:fixed!important;
}
/* Single illustration layer. Prior v373 styles also put a duplicate wallpaper on <main>. */
html body.cfrp381-theme:not(.coffin-home) > main,
html body.cfrp381-theme:not(.coffin-home) > main.wn-page,
html body.cfrp381-theme:not(.coffin-home) > main.c322-about-main,
html body.cfrp381-theme:not(.coffin-home) > main.c322-economy-main,
html body.cfrp381-theme:not(.coffin-home) > .page-shell,
html body.cfrp381-theme:not(.coffin-home) > .city-shell{
 background-color:transparent!important;background-image:none!important;
}
html body.cfrp381-theme > .wall,html body.cfrp381-theme > .rain-layer,
html body.cfrp381-theme > #coffin-rain-canvas{display:none!important}
/* Readability: panels use translucent graphite, not opaque black blocks. */
html body.cfrp381-theme main :is(
 .c322-welcome,.c322-more,.c322-quick,.about-sidebar,.wn-results,.wn-sidebar,
 .cfrp-faq-list,.cfrp-faq-aside,.cfrp-characters-empty,.cfrp-characters-toolbar,
 .coffin-shop-aside,.coffin-shop-results,.coffin-shop-notice,.store11-side,
 .store11-main,.store11-product,.store11-alert,.cda-panel,.cda-profile-card,
 .cfrp-info-grid,.cfrp-apply-shell,.cfrp-apply-info,.cfrp-form-step,
 .page-card,.content-card,.weazel-card,.cards > *, .cfrp-map-controls,.cfrp-map-aside){
 background-color:rgba(24,26,28,.82)!important;
 background-image:none!important;
 border-color:rgba(231,231,231,.20)!important;
 color:#e7e7e7!important;
 box-shadow:0 12px 36px rgba(0,0,0,.19)!important;
}
/* Deliberately don't match the actual map viewport/canvas, photographs, or player avatar. */
html body.cfrp381-theme main :is(.wn-results,.wn-sidebar,.c322-welcome,.cfrp-faq-aside,
 .cfrp-characters-empty,.cfrp-apply-shell,.store11-side,.store11-main){
 backdrop-filter:blur(4px);
}
html body.cfrp381-theme main :is(h1,h2,h3,h4,.wn-news-summary){color:#e7e7e7!important}
html body.cfrp381-theme main :is(p,li,.wn-feedback,.wn-sidebar-caption){color:rgba(231,231,231,.88)!important}
html body.cfrp381-theme main :is(.home-caption,.c322-overline,.c322-sectionline,.wn-overline,
 .wn-results-eyebrow,.wn-cat-label,.store11-kicker,.coffin-shop-eyebrow,
 .cfrp-question-index,.cfrp-counter,.cda-kicker){color:#ffe03e!important}
html body.cfrp381-theme main :is(a,button,input,textarea,select,summary):focus-visible{
 outline:2px solid #ffe03e!important;outline-offset:3px!important;
}
html body.cfrp381-theme main :is(input:not([type=checkbox]):not([type=radio]),textarea,select){
 background-color:rgba(24,26,28,.94)!important;color:#e7e7e7!important;
 border-color:rgba(231,231,231,.32)!important;
}
html body.cfrp381-theme main :is(input,textarea)::placeholder{color:rgba(231,231,231,.60)!important}
html body.cfrp381-theme ::selection{background:#ffe03e;color:#181a1c}
/* About / economy / jobs / businesses: yellow micro-accent without changing content. */
html body.cfrp381-theme main :is(.c322-cta,.c322-count,.c322-quick:hover,.about-side-link:hover){
 border-color:rgba(255,224,62,.50)!important;
}
html body.cfrp381-theme main :is(.c322-cta a,.c322-quick a,.about-sidebar a):hover{color:#ffe03e!important}
/* Community rules / FAQ: readable text and discreet gold separators. */
html body.cfrp381-theme main :is(.cfrp-faq-list details,.cfrp-faq-aside a,.cards > *){
 border-color:rgba(231,231,231,.17)!important;
}
html body.cfrp381-theme main :is(.cfrp-faq-list details[open],.cfrp-faq-list details:hover){
 border-color:rgba(255,224,62,.52)!important;
}
/* Weazel News: keep the original editorial column structure and colored category chips. */
html body.cfrp381-theme main.wn-page :is(.wn-results,.wn-sidebar){
 border:1px solid rgba(231,231,231,.22)!important;border-radius:16px!important;
}
html body.cfrp381-theme main.wn-page :is(.wn-results-toolbar,.wn-category-shell){
 background-color:rgba(24,26,28,.76)!important;
 border-color:rgba(231,231,231,.16)!important;
}
html body.cfrp381-theme main.wn-page :is(.wn-search-wrap input){
 background-color:#181a1c!important;color:#e7e7e7!important;
}
/* Catalog only: apply to shell/cards, not payment actions, prices, images or product data. */
html body.cfrp381-theme main .store11-product,
html body.cfrp381-theme main .c329-card{
 border:1px solid rgba(231,231,231,.19)!important;border-radius:14px!important;
 background:rgba(24,26,28,.87)!important;
}
html body.cfrp381-theme main .store11-product:hover,
html body.cfrp381-theme main .c329-card:hover{
 border-color:rgba(255,224,62,.52)!important;
}
html body.cfrp381-theme main :is(.coffin-category-menu a:hover,.store11-cat:hover){
 border-color:rgba(255,224,62,.6)!important;color:#ffe03e!important;
}
/* Character archive / profile cards. No modification to Discord avatars. */
html body.cfrp381-theme main :is(.cfrp-characters-toolbar,.cda-panel,.cda-profile-card){
 border-color:rgba(231,231,231,.21)!important;
}
/* Identity verification: yellow instead of old Discord blue/purple; artwork visible around the card. */
html body.cfrp381-theme:has(.cfrp-gate-main){
 background-image:linear-gradient(180deg,rgba(24,26,28,.19),rgba(24,26,28,.34) 55%,rgba(24,26,28,.64)),url('/assets/images/backgrounds/coffin-inner-bg.png')!important;
 background-position:center 62%!important;
}
html body.cfrp381-theme main.cfrp-gate-main,
html body.cfrp381-theme > .cfrp-gate-main{
 background:transparent!important;background-image:none!important;
 min-height:calc(100svh - 205px)!important;display:flex!important;
 align-items:center!important;justify-content:center!important;padding:16px 14px!important;
}
html body.cfrp381-theme .cfrp-gate-main .gate-card{
 background:rgba(24,26,28,.83)!important;background-image:none!important;
 border:1px solid rgba(255,224,62,.54)!important;color:#e7e7e7!important;
 box-shadow:0 20px 46px rgba(0,0,0,.35)!important;backdrop-filter:blur(7px)!important;
 padding:20px 28px!important;
}
html body.cfrp381-theme .cfrp-gate-main .gate-card::before{
 background:linear-gradient(90deg,transparent,#ffe03e,transparent)!important;
}
html body.cfrp381-theme .cfrp-gate-main .gate-emblem,
html body.cfrp381-theme .cfrp-gate-main .gate-login{
 background:#ffe03e!important;background-image:none!important;color:#181a1c!important;
 border-color:#ffe03e!important;box-shadow:none!important;
}
html body.cfrp381-theme .cfrp-gate-main .gate-emblem :is(svg,path),
html body.cfrp381-theme .cfrp-gate-main .gate-login :is(svg,path){
 color:#181a1c!important;fill:currentColor!important;
}
html body.cfrp381-theme .cfrp-gate-main :is(.gate-eyebrow,.gate-sub){color:#ffe03e!important}
html body.cfrp381-theme .cfrp-gate-main :is(.gate-title,.gate-intro,.gate-foot){color:#e7e7e7!important}
html body.cfrp381-theme .cfrp-gate-main .gate-chip{
 background:rgba(24,26,28,.62)!important;border-color:rgba(255,224,62,.48)!important;
 color:#e7e7e7!important;
}
html body.cfrp381-theme .cfrp-gate-main .gate-chip span{background:#ffe03e!important}
html body.cfrp381-theme .cfrp-gate-main .gate-login:hover{background:#e7e7e7!important;border-color:#e7e7e7!important}
/* Keep footer and entire approved V3.77 header and V3.80 profile dropdown untouched. */
@media(max-width:900px){
 html body.cfrp381-theme:not(.coffin-home){background-attachment:scroll!important;background-position:57% top!important}
 html body.cfrp381-theme .cfrp-gate-main .gate-card{padding:20px 19px!important}
}
@media(max-width:560px){
 html body.cfrp381-theme .cfrp-gate-main .gate-title{font-size:clamp(30px,8vw,42px)!important}
 html body.cfrp381-theme main :is(.wn-results,.wn-sidebar){border-radius:11px!important}
}
@media(prefers-reduced-motion:reduce){html body.cfrp381-theme:not(.coffin-home){background-attachment:scroll!important}}
