/* The Clubs r12 ground is shared by internal scenes. The landing is outside this scope. */
html[data-pi-studio-shell] .workspace {
  background: #020203 !important;
}
html[data-pi-studio-shell] .workspace::before {
  background: none !important;
  box-shadow: none !important;
}
html[data-pi-studio-shell] .workspace::after {
  content: none !important;
}
html[data-pi-studio-shell] #main#main {
  background: #020203 radial-gradient(ellipse 660px 520px at 50% 0,rgba(211,152,88,.10),rgba(211,152,88,.018) 54%,transparent 83%) !important;
}
html[data-pi-studio-shell][data-pi-studio-wallpaper] #main#main {
  background: radial-gradient(ellipse 660px 520px at 50% 0,rgba(211,152,88,.10),transparent 83%),var(--studio-wallpaper) center / cover no-repeat #020203 !important;
}
[data-pi-studio-frame] [data-interior-stage="clubs"] .clubs-tool-status { display: none; }

/* Recolour and adjust the native light without changing its shape. */
html[data-pi-studio-shell] [data-studio-colored-light] {
  filter: var(--studio-light-filter) !important;
}
html[data-pi-studio-shell] [data-studio-adjusted-light] {
  opacity: calc(min(1,var(--studio-light-level)) * var(--studio-native-opacity,1)) !important;
  filter: var(--studio-light-filter,brightness(1)) brightness(max(1,var(--studio-light-level))) !important;
}
html[data-pi-studio-shell] [data-studio-colored-light][data-studio-light-role$="-left"],
html[data-pi-studio-shell] [data-studio-colored-light][data-studio-light-role$="-right"] {
  background-image:linear-gradient(to left,color-mix(in srgb,var(--studio-light-color),#fff 15%),var(--studio-light-color) 3px,color-mix(in srgb,var(--studio-light-color),transparent 68%) 12px,transparent 100%) !important;
  opacity:calc(min(1,var(--studio-light-level,1)) * .9) !important;
  filter:brightness(max(1,var(--studio-light-level,1))) !important;
}

/* Reuse the upper profile where a native r12 lightbar is absent. */
[data-pi-studio-lamp] {
  position: absolute;
  pointer-events: none;
  display: none;
}
html[data-pi-studio-shell]:not([data-pi-studio-native-lamps]) [data-pi-studio-lamp] {
  display: block;
}
[data-pi-studio-lamp="header"] {
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  height: 12px;
  background: url('/assets/design-system/v005-light-profile-7fe3307083a5.svg') center / 100% 100% no-repeat;
  mask-image: linear-gradient(90deg,transparent,#000 12% 88%,transparent);
}
[data-pi-studio-lamp="context-left"],[data-pi-studio-lamp="context-right"],[data-pi-studio-lamp="work-left"],[data-pi-studio-lamp="work-right"] {
  inset: 6px auto 6px 0;
  width: 19px;
  z-index: 2;
  background: linear-gradient(90deg,#f1c48270,transparent);
  mask-image: linear-gradient(180deg, transparent,#000 13% 87%,transparent);
}
[data-pi-studio-lamp="context-right"],[data-pi-studio-lamp="work-right"] { inset: 6px 0 6px auto; transform: scaleX(-1); }
[data-pi-studio-lamp^="context-"] { opacity:0; }
[data-pi-studio-lamp^="context-"][data-studio-light-active] { opacity:1; }
[data-pi-studio-lamp="dock"] {
  inset: auto 2px -2px;
  height: 35%;
  border-radius: 0 0 20px 20px;
  border-bottom: 1px solid #f4b563;
  box-shadow: 0 4px 9px -2px #eaa44f77;
}

@layer pokerindex-interior-stage {
html [data-studio-material]:not(:has(>.om-picture,>.clubs-tool-key,>.clubs-control-key,>.events-unified-key,>.start-common-key,>.interior-console-key,>.pi-ui-key)),
html [data-studio-material] > :is(.om-picture,.clubs-tool-key,.clubs-control-key,.events-unified-key,.start-common-key,.interior-console-key,.pi-ui-key) {
  background: linear-gradient(155deg,color-mix(in srgb,var(--studio-material),#fff 18%),var(--studio-material) 57%,color-mix(in srgb,var(--studio-material),#000 28%)) !important;
  box-shadow: inset 0 1px 0 #ffffff30,inset 0 -2px 3px #0009,0 2px 3px #000b !important;
  border-radius: max(7px,var(--studio-existing-radius,0px));
}
html [data-studio-clubs-finish]:not(:has(>.om-picture,>.clubs-tool-key,>.clubs-control-key,>.events-unified-key,>.start-common-key,>.interior-console-key,>.pi-ui-key)),
html [data-studio-clubs-finish] > :is(.om-picture,.clubs-tool-key,.clubs-control-key,.events-unified-key,.start-common-key,.interior-console-key,.pi-ui-key) {
  background: linear-gradient(#00000061,#00000061),url('/assets/clubs-etalon-v1/owner-surface.svg') center / 100% 100% #08090b !important;
  box-shadow: inset 0 1px 2px #efd8b52e,inset 0 -2px 3px #000b,0 2px 3px #000b !important;
  border-radius: max(7px,var(--studio-existing-radius,0px));
}
html [data-studio-glow]:not(:has(>.om-picture,>.clubs-tool-key,>.clubs-control-key,>.events-unified-key,>.start-common-key,>.interior-console-key,>.pi-ui-key)),
html [data-studio-glow] > :is(.om-picture,.clubs-tool-key,.clubs-control-key,.events-unified-key,.start-common-key,.interior-console-key,.pi-ui-key) {
  filter: drop-shadow(0 1px 2px var(--studio-glow)) drop-shadow(0 3px 7px color-mix(in srgb,var(--studio-glow),transparent 46%)) !important;
}
}
[data-studio-icon] { width: 1.6em; height: 1.6em; object-fit: contain; vertical-align: middle; }
[data-studio-icon-edited] > .om-picture { position: relative; }
[data-studio-icon-edited] > .om-picture > :not([data-studio-icon]) { visibility: hidden !important; }
html [data-studio-icon-edited] > .om-picture:has(>[data-studio-icon]) > [data-studio-icon] {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  visibility: visible !important;
}
[data-pi-studio-select] :is(a[href],button,[role="button"],[role="tab"]) { cursor: crosshair; }
[data-pi-studio-overlay] {
  position: fixed;
  z-index: 2147483646;
  box-sizing: border-box;
  border: 2px solid #f3c080;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #452d15,0 0 16px #f3c08054;
  pointer-events: none;
}
[data-pi-studio-overlay][hidden] { display: none !important; }
html[data-numbered-home-wallpaper] .hba-home {
  background: var(--numbered-home-wallpaper) center top / cover no-repeat !important;
}
html[data-numbered-home-wallpaper] .hba-home .hba-hero.materia-hero {background:var(--numbered-home-wallpaper) center / cover no-repeat #020203 !important;}
html[data-numbered-home-wallpaper] .hba-home .materia-hero .materia-scene {opacity:0!important;}
html[data-pi-studio-frame] [data-numbered-selected] { outline: 3px solid #f3c080 !important; outline-offset: -3px; }
[data-numbered-block-color] { background-color:var(--numbered-block-color) !important; }
[data-numbered-block-color][data-shell2-slot]::before { background-color:var(--numbered-block-color) !important; }
html[data-pi-studio-shell] #main #app [data-interior-stage] > [data-shell2-slot][data-numbered-block-color]::before {
  background-image:none !important;
  background-color:var(--numbered-block-color) !important;
}
html[data-pi-studio-shell] #main #app [data-interior-stage] > [data-shell2-slot="work"][data-numbered-block-color] > .shell2-block__body::after {
  content:"";position:absolute;inset:0;z-index:2000;pointer-events:none;border-radius:inherit;
  border:4px solid var(--numbered-block-color);
  box-shadow:inset 0 0 16px color-mix(in srgb,var(--numbered-block-color),transparent 38%);
}
[data-numbered-svg-replaced] > :not([data-numbered-svg-layer]) { visibility:hidden!important; }
[data-numbered-canvas-replaced] { opacity:0!important; }
[data-home-replaced] {position:relative!important;}
[data-home-replaced] > :not([data-home-override]) {visibility:hidden!important;}
[data-home-override] {position:absolute!important;inset:0;z-index:12;visibility:visible!important;}
.pi-owner-block {box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:32px;min-height:260px;padding:clamp(28px,5vw,72px);background:radial-gradient(ellipse at 70% 0,#a9774020,transparent 55%),#08090b;color:#f3ebdf;overflow:hidden;}
.pi-owner-copy {max-width:680px;}
.pi-owner-copy h2 {font:400 clamp(28px,3vw,46px)/1.1 Georgia,serif;color:#f4e7d5;margin:0 0 18px;}
.pi-owner-copy p {font:400 17px/1.5 system-ui,sans-serif;white-space:pre-wrap;margin:0 0 20px;}
.pi-owner-copy a {display:inline-block;color:#19120b;background:#e5b47a;border-radius:7px;padding:12px 18px;text-decoration:none;font:600 15px system-ui,sans-serif;}
.pi-owner-block > img {max-width:42%;max-height:320px;object-fit:contain;}
@media(max-width:760px){.pi-owner-block{flex-direction:column;align-items:flex-start}.pi-owner-block > img{max-width:100%}}

/* Optional block finish inspired by the tournament clock scene. */
html[data-pi-studio-shell] #main #app [data-interior-stage] > [data-shell2-slot][data-numbered-clock-finish] {
  border-radius: 18px !important;
  background: radial-gradient(ellipse 70% 55% at 50% 108%,#bb6a2b38,transparent 70%),linear-gradient(145deg,#242527,var(--numbered-block-color,#101113) 80%) !important;
  box-shadow: inset 0 1px 0 #ffffff20, inset 0 -2px 5px #df995975, 0 7px 18px #0008, 0 5px 18px #bb642a24 !important;
}
html[data-pi-studio-shell] #main #app [data-interior-stage] > [data-shell2-slot][data-numbered-clock-finish]::before {
  border-radius: inherit !important;
  background-image: radial-gradient(ellipse 42% 50% at 0% 100%,#df813c35,transparent 75%),radial-gradient(ellipse 42% 50% at 100% 100%,#df813c35,transparent 75%),linear-gradient(145deg,#242527,var(--numbered-block-color,#101113) 80%) !important;
  border: 1px solid #866b564f !important;
  box-shadow: inset 0 1px 0 #ffffff1c,inset 0 -2px 6px #e29b5c88,0 5px 16px #b95e2b30 !important;
}

/* Make the chosen clock finish legible on the narrow strip under the menu. */
html[data-pi-studio-shell] #main #app [data-interior-stage] > [data-shell2-slot="context"][data-numbered-clock-finish]::before {
  background-image: radial-gradient(ellipse 48% 100% at 0% 100%,#d9854550,transparent 76%),radial-gradient(ellipse 48% 100% at 100% 100%,#d9854550,transparent 76%),linear-gradient(145deg,#373533,var(--numbered-block-color,#191a1c) 78%) !important;
  border-color: #c39a735e !important;
  box-shadow: inset 0 1px 0 #ffffff2b,inset 0 -3px 8px #f1a65eaa,0 5px 18px #bd682d52 !important;
}

/* The original photographic surface is continuous. Only the rim uses nine slices.
   The upper layer contains only the rim and the light outside it, so maps and controls stay live. */
@layer pokerindex-interior-stage {
  html[data-pi-studio-shell] #main #app [data-interior-stage] > [data-shell2-slot][data-numbered-etalon-finish] {
    --clock-bleed: 28px;
    --clock-cut: calc(var(--clock-bleed) * 2.333333);
    position: relative !important;
    isolation: isolate !important;
    border: 0 !important;
    border-radius: var(--clock-bleed) !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  html[data-pi-studio-shell] #main #app [data-interior-stage] > [data-shell2-slot="work"][data-numbered-etalon-finish] {
    --clock-bleed: clamp(34px, 5vw, 76px);
  }
  html[data-pi-studio-shell] #main #app [data-interior-stage] > [data-shell2-slot="aside"][data-numbered-etalon-finish] {
    --clock-bleed: 21px;
  }
  html[data-pi-studio-shell] #main #app [data-interior-stage] > [data-shell2-slot][data-numbered-etalon-finish]::before,
  html[data-pi-studio-shell] #main #app [data-interior-stage] > [data-shell2-slot][data-numbered-etalon-finish]::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: calc(-1 * var(--clock-bleed)) !important;
    width: auto !important;
    height: auto !important;
    border: 0 solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    mask: none !important;
    pointer-events: none !important;
    z-index: -1 !important;
  }
  html[data-pi-studio-shell] #main #app [data-interior-stage] > [data-shell2-slot][data-numbered-etalon-finish]::before {
    inset: 0 !important;
    border-radius: inherit !important;
    background: #121214 url('/assets/block-finishes/clock-board-v2.webp') center / 100% 100% no-repeat !important;
  }
  html[data-pi-studio-shell] #main #app [data-interior-stage] > [data-numbered-etalon-finish][data-numbered-block-color]::before {
    background-color: var(--numbered-block-color) !important;
    background-blend-mode: soft-light !important;
  }
  html[data-pi-studio-shell] #main #app [data-interior-stage] > [data-shell2-slot][data-numbered-etalon-finish]::after {
    z-index: 5 !important;
    border-image: url('/assets/block-finishes/clock-rim-v2.webp') 224 / var(--clock-cut) / 0 stretch !important;
  }
  html[data-pi-studio-shell] #main #app [data-numbered-etalon-finish] .shell2-block__body {
    border-radius: inherit !important;
  }
  html[data-pi-studio-shell] #main #app [data-numbered-etalon-finish]
    :is([class$="-reflection"],[class$="-emission"],.clubs-ad-shine,[data-pi-studio-lamp]):not([data-studio-light-active]):not(:has([data-studio-light-active])) {
    visibility: hidden !important;
  }
  /* The inspector already identifies the selected block by number. Keep the artwork readable. */
  html[data-pi-studio-frame] #main #app [data-numbered-selected][data-numbered-etalon-finish] {
    outline: none !important;
  }
  html[data-pi-studio-shell] #main [data-numbered-etalon-finish] .leaflet-bottom.leaflet-right .leaflet-control-attribution {
    margin-right: var(--clock-bleed) !important;
    margin-bottom: 5px !important;
  }
}

/* The entry film covers the landing until the logo settles into the header.
   The existing flight fades this same backdrop out on the last frame. */
html .pi-intro.pi-living-intro { pointer-events: auto !important; }
.pi-intro.pi-living-intro .pi-logo-backdrop {
  inset: 0;
  opacity: 1;
}
html .pi-intro.pi-living-intro[data-ready] .pi-logo-backdrop {
  opacity: 1;
}

/* One imagined lamp above the scene: two upper blocks only; dock untouched. */
@layer pokerindex-interior-stage {
 html[data-pi-studio-shell] #main #app [data-interior-stage] > [data-shell2-slot][data-numbered-illumination] > .pi-symmetric-rim {display:none !important;}
 html[data-pi-studio-shell] #main #app [data-interior-stage] > [data-shell2-slot][data-numbered-illumination]::after {
  inset:0 !important; border:0 !important; border-image:none !important; border-radius:inherit !important;
  clip-path:none !important; mask:none !important; opacity:1 !important; pointer-events:none !important;
 }
 html[data-pi-studio-shell] #main #app [data-interior-stage] > [data-shell2-slot="context"][data-numbered-illumination]::after {
  background:radial-gradient(ellipse 75% 65% at 50% 0%,rgba(255,214,167,.19),transparent 73%),radial-gradient(ellipse 22% 92% at 0% 5%,rgba(248,178,108,.22),transparent 75%),radial-gradient(ellipse 22% 92% at 100% 5%,rgba(248,178,108,.22),transparent 75%) !important;
  box-shadow:inset 0 1px 0 rgba(255,223,188,.8),inset 1px 3px 7px rgba(244,188,137,.20),inset -1px 3px 7px rgba(244,188,137,.20),0 -5px 18px -10px rgba(237,177,116,.70) !important;
 }
 html[data-pi-studio-shell] #main #app [data-interior-stage] > [data-shell2-slot="work"][data-numbered-illumination]::after {
  background:linear-gradient(to bottom,transparent,rgba(247,199,146,.72) 18%,rgba(238,170,105,.38) 72%,transparent) left 14% / 2px 67% no-repeat,linear-gradient(to bottom,transparent,rgba(247,199,146,.72) 18%,rgba(238,170,105,.38) 72%,transparent) right 14% / 2px 67% no-repeat,radial-gradient(ellipse 5% 48% at 0% 46%,rgba(237,163,99,.17),transparent 85%),radial-gradient(ellipse 5% 48% at 100% 46%,rgba(237,163,99,.17),transparent 85%) !important;
  box-shadow:none !important;
 }
}

@layer pokerindex-interior-stage {
 html[data-pi-studio-shell][data-pi-shell] #main #app [data-interior-stage] > :is([data-shell2-slot="context"],[data-shell2-slot="work"])[data-numbered-etalon-finish][data-numbered-illumination]::after {
  mask-image:none !important; clip-path:none !important;
 }
 html[data-pi-studio-shell][data-pi-shell] #main #app [data-interior-stage] > :is([data-shell2-slot="context"],[data-shell2-slot="work"])[data-numbered-etalon-finish][data-numbered-illumination] > .pi-symmetric-rim {display:none !important;}
}

/* Signature light: the existing photographic rim is kept, reflected symmetrically.
   Top block is lit from above; the work block uses only the sides, not lower corners. */
@layer pokerindex-interior-stage {
 html[data-pi-studio-shell][data-pi-shell] #main #app [data-interior-stage] > :is([data-shell2-slot="context"],[data-shell2-slot="work"])[data-numbered-etalon-finish][data-numbered-illumination]::after,
 html[data-pi-studio-shell][data-pi-shell] #main #app [data-interior-stage] > :is([data-shell2-slot="context"],[data-shell2-slot="work"])[data-numbered-etalon-finish][data-numbered-illumination] > .pi-symmetric-rim {
   display:block !important;position:absolute !important;inset:calc(-1 * var(--clock-bleed)) !important;
   width:auto !important;height:auto !important;border:0 solid transparent !important;border-radius:0 !important;
   border-image:url('/assets/block-finishes/clock-rim-v2.webp') 224 / var(--clock-cut) / 0 stretch !important;
   background:none !important;box-shadow:none !important;clip-path:inset(0 50% 0 0) !important;
   opacity:.9 !important;filter:none !important;pointer-events:none !important;z-index:5 !important;
 }
 html[data-pi-studio-shell][data-pi-shell] #main #app [data-interior-stage] > [data-shell2-slot="context"][data-numbered-etalon-finish][data-numbered-illumination]::after,
 html[data-pi-studio-shell][data-pi-shell] #main #app [data-interior-stage] > [data-shell2-slot="context"][data-numbered-etalon-finish][data-numbered-illumination] > .pi-symmetric-rim {
   mask-image:linear-gradient(to bottom,transparent 0%,transparent 32%,rgba(0,0,0,.55) 57%,#000 100%) !important;
 }
 html[data-pi-studio-shell][data-pi-shell] #main #app [data-interior-stage] > [data-shell2-slot="context"][data-numbered-etalon-finish][data-numbered-illumination]::after {transform:scaleY(-1) !important;}
 html[data-pi-studio-shell][data-pi-shell] #main #app [data-interior-stage] > [data-shell2-slot="context"][data-numbered-etalon-finish][data-numbered-illumination] > .pi-symmetric-rim {transform:scale(-1,-1) !important;}
 html[data-pi-studio-shell][data-pi-shell] #main #app [data-interior-stage] > [data-shell2-slot="work"][data-numbered-etalon-finish][data-numbered-illumination]::after,
 html[data-pi-studio-shell][data-pi-shell] #main #app [data-interior-stage] > [data-shell2-slot="work"][data-numbered-etalon-finish][data-numbered-illumination] > .pi-symmetric-rim {
   mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.8) 18%,#000 53%,rgba(0,0,0,.72) 69%,transparent 84%) !important;
 }
 html[data-pi-studio-shell][data-pi-shell] #main #app [data-interior-stage] > [data-shell2-slot="work"][data-numbered-etalon-finish][data-numbered-illumination]::after {transform:none !important;}
 html[data-pi-studio-shell][data-pi-shell] #main #app [data-interior-stage] > [data-shell2-slot="work"][data-numbered-etalon-finish][data-numbered-illumination] > .pi-symmetric-rim {transform:scaleX(-1) !important;}
}
