/* Casa del Billar | Premium Felt & Architectural Ornament v3
   Shared across public pages. Ornament motifs are restricted to edges,
   never crossing readable text or controls. No scripts, no API changes. */
:root{
 --cdb-felt-v3:url('../images/bar-felt-grain.webp');
 --cdb-gold-v3:url('../images/bar-gold-ornament.svg');
 --cdb-ivory-v3:url('../images/club-ivory-weave.webp');
 --cdb-bronze-v3:url('../images/club-bronze-ornament.svg');
}
/* Dark section detailing: retain backgrounds, strengthen elegant corner artwork. */
body.cdb-home .events-ribbon::before,
body.cdb-home .reviews-section::before,
body.bar-landing .menu-questions::before,
body.cdb-app-official .oa-story::before,
body.cdb-app-official .oa-gallery::before,
body.cdb-app-official .oa-download::before{
 background-image:var(--cdb-gold-v3)!important;
 background-size:min(100%,1480px) auto!important;
 background-position:center center!important;
 background-repeat:repeat-y!important;
 opacity:.64!important;
 -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 13%,transparent 23%,transparent 77%,#000 87%,#000 100%)!important;
 mask-image:linear-gradient(90deg,#000 0%,#000 13%,transparent 23%,transparent 77%,#000 87%,#000 100%)!important;
 pointer-events:none!important;
}
body.cdb-home .white-section::before,
body.cdb-app-official .oa-intro::before{
 background-image:var(--cdb-bronze-v3)!important;
 background-size:min(100%,1480px) auto!important;
 background-position:center center!important;
 background-repeat:repeat-y!important;
 opacity:.52!important;
 -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 12%,transparent 23%,transparent 77%,#000 88%,#000 100%)!important;
 mask-image:linear-gradient(90deg,#000 0%,#000 12%,transparent 23%,transparent 77%,#000 88%,#000 100%)!important;
}
/* Same language of gilded lines on Academy and events panels. */
body .cda-section.cda-textile,
body .cdb-felt-section,
body .cdb-app-section{position:relative;isolation:isolate}
body .cda-section.cda-textile::after,
body .cdb-felt-section::after,
body .cdb-app-section::after{
 content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
 background:var(--cdb-gold-v3) center center / min(100%,1480px) auto repeat-y;
 opacity:.43;
 -webkit-mask-image:linear-gradient(90deg,#000 0%,transparent 20%,transparent 80%,#000 100%);
 mask-image:linear-gradient(90deg,#000 0%,transparent 20%,transparent 80%,#000 100%);
}
body .cda-section.cda-textile > *,body .cdb-felt-section > *,body .cdb-app-section > *{position:relative;z-index:1}
/* APP: editorial hero layered with the actual billiards-club photograph.
   Strong left-side vignette protects white text; phones remain HTML objects. */
body.cdb-app-official .oa-hero{
 background-color:#03251b!important;
 background-image:
 linear-gradient(90deg,rgba(0,27,19,.98) 0%,rgba(0,35,25,.89) 34%,rgba(0,39,28,.62) 67%,rgba(1,28,21,.78) 100%),
 radial-gradient(ellipse at 74% 40%,rgba(164,117,43,.24),transparent 54%),
 url('../images/slide-club.webp')!important;
 background-size:cover,cover,cover!important;
 background-position:center,center,center 45%!important;
 background-repeat:no-repeat!important;
 position:relative;isolation:isolate;
}
body.cdb-app-official .oa-hero::before{
 content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
 background-image:var(--cdb-gold-v3);
 background-position:center center;background-size:min(100%,1480px) auto;background-repeat:repeat-y;
 opacity:.49;
 -webkit-mask-image:linear-gradient(90deg,#000 0%,transparent 19%,transparent 81%,#000 100%);
 mask-image:linear-gradient(90deg,#000 0%,transparent 19%,transparent 81%,#000 100%);
}
body.cdb-app-official .oa-hero>.wrap{position:relative;z-index:1}
/* Five reasons: cinematic pool-hall ambiance instead of blank flat green / grid. */
body.cdb-app-official .oa-story{
 background-color:#04291e!important;
 background-image:
 linear-gradient(105deg,rgba(0,33,23,.84),rgba(4,44,31,.91) 54%,rgba(0,26,18,.89)),
 radial-gradient(ellipse at 37% 33%,rgba(214,157,83,.19),transparent 51%),
 url('../images/slide-club.webp'),var(--cdb-felt-v3)!important;
 background-size:cover,cover,cover,320px 320px!important;
 background-position:center,center,center center,center!important;
 background-repeat:no-repeat,no-repeat,no-repeat,repeat!important;
}
/* Gallery background: felt is visible, background graphics use club ornaments,
   not broad diagonal stripes. */
body.cdb-app-official .oa-gallery{
 background-color:#03281d!important;
 background-image:radial-gradient(ellipse at 76% 10%,rgba(48,119,79,.36),transparent 60%),linear-gradient(125deg,rgba(2,34,25,.92),rgba(3,43,30,.86)),var(--cdb-felt-v3)!important;
 background-size:cover,cover,320px 320px!important;
 background-repeat:no-repeat,no-repeat,repeat!important;
}
/* Download: felt, directional light and corner engraving. */
body.cdb-app-official .oa-download{
 background-image:radial-gradient(ellipse at 76% 44%,rgba(61,131,89,.54),transparent 58%),linear-gradient(125deg,rgba(0,34,24,.94),rgba(5,64,43,.88)),var(--cdb-felt-v3)!important;
 background-size:cover,cover,320px 320px!important;
 background-repeat:no-repeat,no-repeat,repeat!important;
}
/* Keep human-visible gallery captions, but no selectable underlines while dragging. */
body.cdb-app-official .oa-shot figcaption{
 text-decoration:none!important;
 -webkit-user-select:none;user-select:none;
}
@media (max-width:760px){
 body.cdb-app-official .oa-hero{background-position:center,center,64% center!important}
 body.cdb-home .events-ribbon::before,body.cdb-home .reviews-section::before,
 body.cdb-app-official .oa-hero::before,body.cdb-app-official .oa-gallery::before,
 body.cdb-app-official .oa-story::before,body.cdb-app-official .oa-download::before,
 body .cda-section.cda-textile::after,body .cdb-felt-section::after,body .cdb-app-section::after{
 background-size:870px auto!important;background-position:center center!important;opacity:.38!important;
 }
}
