/* The invitation is a photographic spread. Its dark edge carries the headline. */
#bar-reading {padding-block:clamp(32px,4.8vw,72px);background:var(--bg);}
#bar-reading .reading-interior {position:relative;isolation:isolate;overflow:hidden;min-height:clamp(310px,38vw,540px);display:flex;align-items:center;background:#1c1511;}
#bar-reading .bar-dice-art {position:absolute;inset:0 0 0 auto;width:81%;height:100%;object-fit:cover;object-position:center 54%;z-index:-2;mask-image:linear-gradient(90deg,transparent,#000 35%);}
#bar-reading .reading-interior::after {content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#18120fdb,transparent 65%);}
#bar-reading .reading-invitation {width:48%;padding:clamp(30px,4.7vw,72px);}
#bar-reading .reading-label {color:#e4c9a5;font:550 1rem/1.4 var(--sans);margin:0 0 .8rem;}
#bar-reading .reading-invitation h2 {margin:0;font:500 clamp(2.55rem,4vw,4.4rem)/1.04 var(--ser);letter-spacing:-.05em;color:#faf2e7;}
#bar-reading .reading-invitation h2+p {margin:15px 0 24px;max-width:34ch;color:#e7ddd1;line-height:1.55;}
#bar-reading .reading-invitation .secondary {background:#ebd9bd;color:#30201b;padding-inline:21px;}
#bar-reading .bar-dice-link {display:inline-flex;align-items:center;min-height:48px;}

@media(max-width:700px) {
  #bar-reading .reading-interior {display:flex;flex-direction:column;align-items:stretch;min-height:0;}
  #bar-reading .reading-interior::after {display:none;}
  #bar-reading .bar-dice-art {position:static;width:100%;height:auto;aspect-ratio:1.55;object-fit:cover;mask-image:linear-gradient(#000 88%,transparent);}
  #bar-reading .reading-invitation {width:auto;padding:4px 22px 26px;}
  #bar-reading .reading-invitation h2 {font-size:2.55rem;}
}

/* Keep the photograph and the animated dice in one coordinate system. */
main#main-content[data-edition=roulette] {padding-top:clamp(4px,.55vw,10px);}
#main-content[data-edition=roulette] > .atlas-crumbs {margin-block:0 4px;}
.wheel-page {--cream:#f7ebd8;--muted:#d3c5b1;--brass:#e7c396;color:var(--cream);}
.wheel-page [hidden] {display:none!important;}
.wheel-page :is(a,button,summary):focus-visible {outline:2px solid #f4d8a5;outline-offset:3px;}
main#main-content[data-edition=roulette] .wheel-page .game-mast.dice-table {
  display:grid;position:relative;isolation:isolate;box-sizing:border-box;
  grid-template-columns:minmax(0,43%) minmax(0,1fr);grid-template-rows:1fr 1fr;
  width:calc(100% + 2 * var(--interior-rail));min-height:0;aspect-ratio:3;
  margin:0 calc(-1 * var(--interior-rail));padding:0;background:var(--bg);
}
#main-content .dice-table .wheel-lead,.dice-table .bar-dice-control {
  z-index:1;min-width:0;margin:0;padding-inline:var(--interior-rail) 0;text-align:start;box-sizing:border-box;
}
#main-content .dice-table .wheel-lead {grid-area:1/1;align-self:end;}
#main-content .dice-table .wheel-lead h1 {
  margin:0;color:var(--cream);font:var(--page-title);letter-spacing:-.047em;text-wrap:balance;
}
#main-content .dice-table .st-intro {max-width:34ch;margin:12px 0 0;color:var(--cream);font:400 clamp(1rem,1.3vw,1.25rem)/1.5 var(--sans);}
.bar-dice-stage {
  grid-area:1/1/-1/-1;position:relative;isolation:isolate;container-type:size;
  min-width:0;min-height:0;overflow:hidden;
  --felt-left:.515;--felt-right:.89;--felt-top:.34;--felt-bottom:.595;
  background:linear-gradient(90deg,#170e0bd6 0%,#1a100ca6 30%,#1a100c2b 45%,transparent 55%),
    url('/assets/studio/bar-dice-table-panorama-2172.webp') center / cover no-repeat;
}
.die-slot {
  position:absolute;--size:clamp(31px,3.65cqw,76px);
  width:var(--size);height:var(--size);left:var(--x);top:var(--y);transform:translate(-50%,-50%);
}
.die-slot:nth-child(1) {--x:58%;--y:47%;}
.die-slot:nth-child(2) {--x:69%;--y:46%;--die-y:50%;}
.die-slot:nth-child(3) {--x:80.5%;--y:48.5%;--die-y:100%;}
.die-shadow,.die-flight {translate:calc(var(--size)*var(--spot-x,0)) calc(var(--size)*var(--spot-y,0));}
.die-shadow {
  position:absolute;top:102%;left:-7%;width:150%;height:36%;border-radius:50%;pointer-events:none;
  background:radial-gradient(ellipse at 45% 47%,#2512089e 8%,#2915097d 32%,#341b0c3d 57%,transparent 74%);
  opacity:.91;transform:rotate(6deg);
}
.die-shadow::before {
  content:"";position:absolute;inset:26% 29% 8% 12%;border-radius:50%;opacity:var(--contact,1);
  background:radial-gradient(ellipse at 48% 53%,#160d09db 3%,#1c100ac2 27%,#26140870 53%,transparent 75%);
}
.die-flight {position:relative;width:100%;height:100%;}
.die-model,.die-rest {display:block;position:absolute;width:175%;height:175%;top:-37.5%;left:-37.5%;max-width:none;}
.die-rest {background:url('/assets/studio/bar-d12-rest.webp') var(--die-x,0%) var(--die-y,0%) / 1200% 300% no-repeat;}
.die-flight:has([data-value="2"]) {--die-x:9.090909%;}
.die-flight:has([data-value="3"]) {--die-x:18.181818%;}
.die-flight:has([data-value="4"]) {--die-x:27.272727%;}
.die-flight:has([data-value="5"]) {--die-x:36.363636%;}
.die-flight:has([data-value="6"]) {--die-x:45.454545%;}
.die-flight:has([data-value="7"]) {--die-x:54.545455%;}
.die-flight:has([data-value="8"]) {--die-x:63.636364%;}
.die-flight:has([data-value="9"]) {--die-x:72.727273%;}
.die-flight:has([data-value="10"]) {--die-x:81.818182%;}
.die-flight:has([data-value="11"]) {--die-x:90.909091%;}
.die-flight:has([data-value="12"]) {--die-x:100.0%;}
.bar-dice-stage:not([data-dice-photos="ready"]) .die-model,.bar-dice-stage[data-dice-photos="ready"] .die-rest {visibility:hidden;}
.bar-dice-stage:not([data-dice-photos="ready"]) .facet-motion .die-model {visibility:visible;}
.bar-dice-stage .facet-motion .die-rest {visibility:hidden;}
.bar-dice-control {
  position:relative;grid-area:2/1;align-self:start;display:grid;justify-items:start;gap:14px;padding-top:clamp(14px,1.5vw,26px);
}
.wheel-modes {display:flex;flex-wrap:wrap;gap:2px;width:fit-content;max-width:100%;padding:3px;border:1px solid #695845;border-radius:7px;box-sizing:border-box;}
.wheel-modes button {font:500 1rem/1.15 var(--sans);background:#211a14cc;color:var(--cream);min-height:44px;padding:6px clamp(9px,1vw,17px);border:0;border-radius:4px;cursor:pointer;}
.wheel-modes button[aria-pressed=true] {background:#514234;color:#fff3df;}
.wheel-modes button:hover {color:#fff4e2;}
.dice-throw-actions {display:flex;align-items:center;gap:12px 18px;flex-wrap:wrap;margin:0;}
.bar-dice .pick-count {order:1;margin:0;color:var(--muted);font:400 .96rem/1.4 var(--sans);}
.wheel-action {display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:48px;padding:10px 24px;border:1px solid transparent;border-radius:5px;
  color:#251c16;background:#e8c797;text-decoration:none;font:650 1.08rem/1.3 var(--sans);cursor:pointer;}
.wheel-action:hover {background:#f4d9b0;}
.wheel-action:disabled {opacity:.58;cursor:default;}
.wheel-status {margin:9px 0 0;color:#e0cdb4;font:400 1rem/1.45 var(--sans);}
.wheel-status:empty {display:none;}
.bar-dice:has(.wheel-outcome:not([hidden])) .wheel-status {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
.dice-tools {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:16px 44px;align-items:start;
  padding:clamp(12px,1.8vw,24px) 0;margin:clamp(24px,3vw,42px) auto 0;border-top:1px solid #493b2d;width:100%;color:#decdb9;}
.dice-tools .exclusion-control,.dice-tools .dice-rules {max-width:none;margin:0;padding:0;border:0;}
.dice-tools summary {display:flex;align-items:center;gap:9px;padding:8px 0;min-height:44px;box-sizing:border-box;cursor:pointer;font:500 1.05rem/1.35 var(--sans);color:#edddc6;list-style:none;}
.dice-tools summary::-webkit-details-marker {display:none;}
.dice-tools summary::marker {content:"";}
.dice-tools .dice-rules summary::before {content:"i";display:grid;place-items:center;width:1.1em;height:1.1em;border:1px solid;border-radius:50%;color:var(--brass);font:italic 600 .86em/1 var(--ser);}
.dice-tools .dice-rules p {margin:7px 0 12px;color:var(--muted);font:400 1rem/1.55 var(--sans);}
.wheel-outcome {display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);align-items:center;gap:clamp(24px,3.5vw,56px);
  width:min(100%,1260px);margin:var(--atlas-chapter-gap,48px) 0 12px;text-align:start;scroll-margin-top:0;outline:none;}
.wheel-outcome img {display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;object-position:left center;border-radius:var(--photo-radius);box-shadow:0 6px 17px #09070454;}
.dice-result-copy {min-width:0;}
.wheel-eyebrow {margin:0 0 .75em;color:var(--brass);font:550 1rem/1.4 var(--sans);}
.wheel-eyebrow span {display:inline-block;color:var(--muted);margin-inline-start:12px;font-weight:400;}
.wheel-outcome h2 {margin:0;color:var(--cream);font:400 clamp(2.25rem,4.2vw,4.5rem)/1.07 var(--ser);letter-spacing:-.04em;overflow-wrap:break-word;}
.wheel-outcome [data-dice-taste] {max-width:40ch;margin:16px 0 12px;color:#eadfce;font:400 1.18rem/1.52 var(--sans);}
.wheel-outcome [data-dice-description] {max-width:58ch;margin:0 0 15px;color:#f0e6d8;font:400 clamp(1rem,1.25vw,1.13rem)/1.55 var(--sans);}
.wheel-outcome [data-dice-serving] {margin:0 0 18px;color:var(--muted);font:400 1rem/1.5 var(--sans);}
.wheel-outcome [data-dice-ingredients] {margin:0 0 6px;color:var(--muted);font:400 1rem/1.5 var(--sans);}
@media(min-width:901px) and (max-width:1280px) {
  .bar-dice-stage {background-image:linear-gradient(90deg,#170e0bd6 0%,#1a100ca6 30%,#1a100c2b 45%,transparent 55%),url('/assets/studio/bar-dice-table-panorama-1280.webp');}
  #main-content .dice-table .wheel-lead h1 {font-size:clamp(2.5rem,5vw,4rem);}
}
@media(max-width:900px) {
  main#main-content[data-edition=roulette] .wheel-page .game-mast.dice-table {
    grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;aspect-ratio:auto;gap:0;
  }
  #main-content .dice-table .wheel-lead {grid-area:1/1;padding:clamp(24px,4vw,40px) var(--interior-rail) 22px;}
  #main-content .dice-table .wheel-lead h1 {font-size:clamp(2.5rem,8.5vw,4.25rem);}
  .bar-dice-stage {
    grid-area:2/1;container-type:inline-size;aspect-ratio:15/8;width:100%;
    --felt-left:.22;--felt-right:.865;--felt-top:.32;--felt-bottom:.615;
    background:url('/assets/studio/bar-dice-table-close-1100.webp') center / cover no-repeat;
  }
  .die-slot {--size:clamp(28px,7.9cqw,62px);}
  .die-slot:nth-child(1) {--x:32%;--y:47%;}
  .die-slot:nth-child(2) {--x:52%;--y:45.5%;}
  .die-slot:nth-child(3) {--x:72%;--y:48.5%;}
  .dice-table .bar-dice-control {grid-area:3/1;padding:22px var(--interior-rail) 0;}
  .dice-tools {grid-template-columns:minmax(0,1fr);gap:0;}
  .dice-tools > * + * {border-top:1px solid #483e33;}
}
@media(max-width:640px) {
  .bar-dice-stage {background-image:url('/assets/studio/bar-dice-table-close-640.webp');}
  .wheel-modes button {min-width:0;padding-inline:clamp(7px,2vw,12px);}
  .dice-throw-actions {gap:10px 14px;}
  .wheel-action {min-height:46px;padding-inline:18px;}
  .bar-dice .pick-count {font-size:1rem;}
}
@media(max-width:760px) {
  .wheel-outcome {grid-template-columns:minmax(0,1fr);grid-template-areas:"eyebrow" "name" "photo" "taste" "description" "ingredients" "serving" "actions";gap:0;}
  .dice-result-copy {display:contents;}
  .wheel-outcome .wheel-eyebrow {grid-area:eyebrow;margin-bottom:6px;}
  .wheel-outcome h2 {grid-area:name;margin-bottom:24px;}
  .wheel-outcome img {grid-area:photo;}
  .wheel-outcome [data-dice-taste] {grid-area:taste;margin:20px 0 9px;}
  .wheel-outcome [data-dice-description] {grid-area:description;}
  .wheel-outcome [data-dice-ingredients] {grid-area:ingredients;}
  .wheel-outcome [data-dice-serving] {grid-area:serving;}
  .dice-result-actions {grid-area:actions;}
}

/* A reading and a round share the same two columns as an open Atlas spread. */
#main-content .dice-table .st-intro {max-width:36ch;color:#f4e7d6;text-wrap:pretty;}
.bar-dice .dice-tools {grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(28px,4vw,72px);align-items:stretch;border:0;padding:0;margin:clamp(32px,3.6vw,58px) 0 0;}
.bar-dice .dice-note {min-width:0;border:0;border-top:1px solid #5a4936;padding:clamp(18px,2vw,30px) 0 0;}
.bar-dice .dice-note h2 {margin:0 0 14px;color:var(--cream);font:500 clamp(1.55rem,2.3vw,2.3rem)/1.12 var(--ser);letter-spacing:-.035em;}
.bar-dice .dice-note > p:not(.dice-round-line),.bar-dice .dice-rules p {max-width:53ch;margin:12px 0 4px;color:var(--muted);font:400 1.04rem/1.5 var(--sans);text-wrap:pretty;}
.dice-reading,.dice-note .dice-round-line {display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-height:34px;margin:0;color:#d6c5ae;font:400 1rem/1.3 var(--sans);}
.dice-values {display:inline-flex;gap:5px;}
.dice-values b {display:grid;place-items:center;min-width:32px;height:32px;box-sizing:border-box;background:#723f32;border:1px solid #a06f55;color:#ffebce;border-radius:var(--photo-radius);font:500 1.25rem/1 var(--ser);font-variant-numeric:lining-nums tabular-nums;}
.dice-values b:nth-child(2) {background:#d2bfa0;color:#33281c;border-color:#e4cdad;}
.dice-values b:nth-child(3) {background:#4b533a;border-color:#788264;color:#f5e6c9;}
.dice-round-line strong {color:#eed2a4;font:500 clamp(1.6rem,2.3vw,2rem)/1.05 var(--ser);font-variant-numeric:lining-nums tabular-nums;letter-spacing:-.03em;}
.bar-dice .dice-note summary {width:fit-content;max-width:100%;min-height:44px;padding:9px 0;box-sizing:border-box;color:#f1cea1;}
.bar-dice .dice-note summary:hover,.bar-dice .dice-again:hover {color:#fff0d6;}
.bar-dice .dice-rules summary::before {display:none;}
.bar-dice .dice-rules summary::after {content:"";width:7px;height:7px;margin:-4px 4px 0 3px;border-right:1px solid;border-bottom:1px solid;transform:rotate(45deg);}
.bar-dice .dice-rules[open] summary::after {transform:translateY(3px) rotate(225deg);}
.bar-dice .wheel-outcome {margin:clamp(30px,3.8vw,64px) auto 0;width:100%;}
.bar-dice .wheel-outcome img {object-fit:cover;object-position:center;}
.wheel-eyebrow strong {font-weight:550;}
.dice-result-actions {display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;}
.dice-again {display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:8px 2px;border:0;background:transparent;color:#eac89a;font:550 1.05rem/1.25 var(--sans);cursor:pointer;}
.dice-again::before {content:"↻";font:400 1.4em/1 var(--sans);}
.bar-dice .wheel-action:hover {color:#261a10;}
.bar-dice [data-spin][aria-disabled="true"] {cursor:progress;}
.bar-dice:has(.rolling) .wheel-status {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
@media(max-width:900px){
  .bar-dice .dice-tools {margin-top:28px;gap:24px;}
}
@media(max-width:640px){
  .bar-dice .dice-tools {grid-template-columns:minmax(0,1fr);gap:20px;}
  .bar-dice .dice-note {padding-top:18px;}
  .bar-dice .dice-note h2 {margin-bottom:12px;}
  .dice-reading,.dice-note .dice-round-line {gap:8px 10px;}
  .dice-values b {min-width:29px;height:29px;}
}

/* Keep mode and action in a single left-aligned stack at all widths. */
.dice-table .bar-dice-control {gap:0;}
.dice-table .dice-throw-actions {margin-top:20px;}
.bar-dice .dice-table .pick-count {order:0;margin-top:7px;}
.dice-result-actions {margin:14px 0 0;}
.bar-dice .wheel-outcome {align-items:start;}
.dice-again[aria-disabled=true] {cursor:progress;}
@media(max-width:900px){
  #main-content .dice-table .wheel-lead {padding-bottom:14px;}
  .dice-table .bar-dice-control {
    grid-area:2/1;padding:0 var(--interior-rail) 20px;
  }
  .dice-table .bar-dice-stage {grid-area:3/1;}
  .dice-table .dice-throw-actions {margin-top:18px;}
}
.dice-coordinate {margin:24px 0 20px;min-width:0;}
.bar-dice .dice-coordinate h3 {margin:0;font:550 1.18rem/1.3 var(--ser);letter-spacing:0;color:#ebd2ac;}
.dice-coordinate .dice-address {display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin:5px 0 7px;color:#e6c59a;font:500 clamp(1.15rem,1.8vw,1.55rem)/1.3 var(--ser);font-variant-numeric:lining-nums tabular-nums;}
.dice-address strong {color:var(--cream);font-weight:550;}
.dice-coordinate [data-coordinate-reason],.dice-coordinate details p {max-width:60ch;margin:0;color:var(--cream);font:400 1.02rem/1.48 var(--sans);}
.dice-coordinate details p {color:var(--muted);margin:4px 0 10px;}
.dice-coordinate details p:empty {display:none;}
.dice-coordinate details {border:0;margin:0;padding:0;}
.dice-coordinate summary {display:flex;align-items:center;list-style:none;width:fit-content;max-width:100%;min-height:44px;box-sizing:border-box;padding:8px 12px 8px 0;color:var(--brass);font:550 1rem/1.4 var(--sans);cursor:pointer;}
.dice-coordinate summary::-webkit-details-marker {display:none;}
.dice-coordinate summary::marker {content:"";}
/* The changing label supplies the state for both disclosures. */
#main-content .bar-dice .dice-coordinate details > summary::after {content:none;}
.dice-coordinate details:not([open]) > summary > .dice-hide,
.dice-coordinate details[open] > summary > .dice-show {display:none;}
.dice-coordinate summary:hover {color:#fff3da;}
.dice-coordinate ol {position:relative;margin:0 0 10px;max-height:12rem;overflow:auto;overscroll-behavior:contain;padding:4px 8px 4px 3.5em;border-left:1px solid #5d4c37;font:400 1rem/1.5 var(--sans);}
.dice-coordinate li {padding:3px 8px;color:#d8c8b4;}
.dice-coordinate li[aria-current] {color:#ffdfae;background:#342b20;font-weight:650;}
@media(max-width:760px){
  .bar-dice .wheel-outcome {grid-template-areas:"eyebrow" "name" "actions" "coordinate" "photo" "taste" "description" "ingredients" "serving";}
  .bar-dice .wheel-outcome h2 {margin-bottom:0;}
  .bar-dice .dice-coordinate {grid-area:coordinate;margin:20px 0 24px;}
  .bar-dice .dice-result-actions {margin:12px 0 0;}
}

.bar-dice .wheel-outcome:has([data-coordinate-math][open]) {align-items:start;}

.dice-coordinate :is(summary,ol):focus-visible {outline:2px solid var(--brass);outline-offset:2px;}
