/* A moonlit ballroom, then the ivory paper of the palace archives. */
.salon-shell {
  --plum: #352337;
  --wine: #742c48;
  --gold: #ead29e;
  --brass: #876443;
  --paper: #fffbf2;
  /* Keys share a shaft and wards. Their openwork bows fit the same 100 × 50 viewBox. */
  --key-shaft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M32 22h8v-3h5v3h3v-2h3v2h45a3 3 0 0 1 0 6h-2v12h-5v-4h-4v-5h-4v7h-6V28H51v2h-3v-2h-3v3h-5v-3h-8z'/%3E%3C/svg%3E");
  --key-rose: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath fill='none' stroke='black' stroke-width='4.4' stroke-linecap='round' stroke-linejoin='round' d='M34 25c3-4 1-10-4-11 0-7-8-10-13-5-5-2-11 3-9 9-7 3-7 11 0 14-2 6 4 11 9 9 5 5 13 2 13-5 5-1 7-7 4-11z M13 25q9-12 15 0-6 12-15 0z'/%3E%3C/svg%3E");
  --key-moon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath fill-rule='evenodd' d='M33 6C17 2 3 13 3 25s13 22 28 19l5-3C21 39 14 31 16 22 18 13 24 9 33 6z'/%3E%3Cpath fill='none' stroke='black' stroke-width='3.5' d='M32 13q-12 11-4 20 6 3 10-8-3-6-6-12z'/%3E%3C/svg%3E");
  --key-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath fill='none' stroke='black' stroke-linejoin='round' stroke-width='4' d='M20 4 38 25 20 46 2 25z M20 15l8 10-8 10-8-10z'/%3E%3C/svg%3E");
  --key-bow: var(--key-rose);
  --hairline: #d8c8b9;
  background: #f9f5ee;
  color: #342935;
  isolation: isolate;
}
.salon-shell h1, .salon-shell h2, .salon-shell h3,
.salon-shell blockquote, .salon-shell p { margin: 0; }
.salon-shell h2 { font: 600 clamp(1.65rem, 3vw, 2.55rem)/1.45 var(--serif); letter-spacing: .035em; }
.salon-shell p { line-height: 1.85; }
.salon-shell a, .salon-shell button { -webkit-tap-highlight-color: #9e557132; touch-action: manipulation; }
.salon-shell button:focus-visible, .salon-shell a:focus-visible { outline: 3px solid #147f99; outline-offset: 4px; }
.salon-shell :is(h2,h3)[tabindex="-1"]:focus { outline: 0; }

.salon-hero {
  position: relative; display: grid; align-items: center; isolation: isolate; overflow: hidden;
  min-height: clamp(28rem, 45vw, 42rem); padding: clamp(3rem, 6vw, 7rem) max(7vw, calc((100% - 1100px)/2));
  color: #fff7e9; background: #261828;
}
.salon-art { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 68% 38%; }
.salon-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, #211324ed 0%, #271a2ad9 25%, #2a192b91 44%, #2a192b0c 65%),
    linear-gradient(0deg, #29172560, transparent 32%);
}
.hero-frame {
  position: absolute; inset: .8rem; z-index: -1; pointer-events: none;
  border: 1px solid #e2c89d63;
}
.hero-frame::before, .hero-frame::after {
  position: absolute; width: 1.4rem; height: 1.4rem; content: ''; pointer-events: none;
}
.hero-frame::before { top: .25rem; left: .25rem; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.hero-frame::after { bottom: .25rem; right: .25rem; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.salon-hero-copy { width: min(100%, 34rem); }
.salon-kicker, .salon-label { font: 650 .875rem/1.55 var(--sans); letter-spacing: .1em; }
.salon-shell .salon-kicker { display: inline-flex; align-items: center; gap: .65rem; color: #f9e2b6; }
.salon-kicker span { color: #f8d98f; font-size: 1.05rem; }
.salon-hero h1 {
  margin: 1rem 0 1.2rem; font: 600 clamp(4.3rem, 7.5vw, 7.8rem)/1.13 var(--serif);
  letter-spacing: .055em; text-shadow: 0 2px 12px #24142780;
}
.salon-hero h1 span { display: block; margin-bottom: .16em; font-size: .37em; letter-spacing: .1em; }
.salon-lead { color: #fff8ed; font: 500 clamp(1rem, 1.4vw, 1.23rem)/1.85 var(--serif); }
.salon-hero-actions, .duel-actions, .salon-linkrow, .fortune-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.salon-hero-actions { margin-top: 1.65rem; }
.salon-shell :is(.salon-primary,.salon-secondary,.salon-button) {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 2.95rem; padding: .66rem 1.45rem; border-radius: 3px; border: 1px solid transparent;
  font: 650 1rem/1.45 var(--sans); text-align: center; transition: background-color .18s, transform .18s;
}
.salon-shell .salon-primary, .salon-shell .salon-button.primary {
  background: var(--wine); color: #fff9ed; border-color: var(--wine);
}
.salon-shell .salon-secondary, .salon-shell .salon-button.secondary {
  background: transparent; border-color: #a4878c; color: var(--plum);
}
.salon-hero .salon-primary { background: #f0dcae; color: #352032; border-color: #f6dfb0; }
.salon-hero .salon-secondary { background: #2e1f33b5; border-color: #cbb699; color: #fff4de; }

.salon-inner { width: min(100% - 2 * var(--gutter), 1000px); margin: 0 auto; padding: clamp(2.2rem,5vw,4.75rem) 0; }
.salon-rules, .salon-books { display: grid; align-items: center; gap: clamp(1.1rem, 4vw, 4rem); }
.salon-rules { grid-template-columns: .9fr 1.15fr; padding: .4rem 0 2.6rem; }
.salon-shell .salon-label { margin-bottom: .4rem; color: var(--wine); }
.salon-rules p + p { margin-top: .4rem; color: #685963; }
.salon-panel { position: relative; padding: clamp(1.2rem, 4.6vw, 3.2rem); border: 1px solid var(--hairline); border-radius: 5px; }
.arena { margin: 0 0 2.5rem; scroll-margin-top: .8rem; background: #fffcf7; box-shadow: 0 10px 32px #3e2a3812; }
.arena::before { content: ''; position: absolute; top: -1px; left: 1.2rem; right: 1.2rem; height: 3px; background: linear-gradient(90deg,#98604b, #d3a961, #a34a62); }
.duel-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .9rem; color: #71576a; font-size: .9rem; font-weight: 650; }
.duel-progress { display: flex; align-items: center; gap: 5px; color: var(--brass); font-size: .875rem; }
.duel-step { margin-inline-start: .35rem; }
.duel-progress i,.duel-progress span:empty { display: inline-block; width: 1rem; height: 4px; border-radius: 3px; background: #ddcfbd; }
.duel-progress :is(.done,.active,.filled,[aria-current="step"]) { background: var(--wine); }
.duel-heading { margin-block: .85rem .6rem !important; }
.duel-quote { position: relative; padding: 1rem 1.3rem; margin: 1rem 0 !important; background: #f3e9ec; border-left: 3px solid #8e405e; color: #462b40; font: 600 clamp(1.15rem,2.3vw,1.5rem)/1.8 var(--serif); }
.duel-clue { padding: .85rem 1.05rem; border: 1px solid #ddceae; background: #f7f0e2; color: #463529; }
.duel-clue b,.duel-clue strong { color: #79582e; }
.duel-choices { display: grid; gap: .66rem; margin-top: 1.1rem; }
.duel-choice {
  position: relative; display: flex; align-items: center; gap: .85rem; font-size: 1rem;
  width: 100%; min-height: 3.1rem; padding: .74rem 1.05rem; text-align: start;
  border: 1px solid #cbbac1; border-radius: 3px; background: #fffcf7; color: #493045;
  transition: background-color .18s, border-color .18s, transform .18s;
}
.duel-choice::before { content: '◆'; color: #9c7151; font-size: .66rem; flex: none; }
.duel-response, .duel-result { padding: clamp(1.05rem, 2.8vw, 2rem); margin: 1rem 0; background: #f5eee6; border: 1px solid #d3bda5; border-radius: 3px; }
.duel-response { position: relative; padding-inline-end: clamp(3rem,6vw,4.2rem); }
.duel-response.correct { background: #f6f0df; border-color: #bca16d; }
.fortune-key-ornament, .duel-response.correct::after, .fortune-key::before {
  display: inline-block; aspect-ratio: 2; flex: none;
  background: linear-gradient(170deg,#fff4be 18%,#d4a85f 40%,#fbe3a0 49%,#a06f35 67%,#dcb77c 82%);
  -webkit-mask-image: var(--key-bow), var(--key-shaft);
  mask-image: var(--key-bow), var(--key-shaft);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.duel-response.correct::after, .fortune-key::before {
  content: ''; width: 2.45rem; transform: rotate(-17deg);
  background: linear-gradient(165deg,#805631 20%,#99713e 46%,#664324 53%,#aa8143 85%);
}
.duel-response.correct::after { position: absolute; top: 1rem; right: .65rem; }
.duel-response.miss { padding-inline-end: clamp(1.05rem,2.8vw,2rem); }
.salon-shell :is(.salon-primary,.salon-secondary,.duel-choice,.fortune-key-choice):active { transform: translateY(1px); }
@media (prefers-reduced-motion:no-preference) {
  .duel-response, .fortune-result { animation: salon-reveal .24s ease-out both; }
}
@keyframes salon-reveal {
  from { opacity: .6; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
.duel-response h3, .duel-result h3 { color: var(--wine); font: 600 1.35rem/1.5 var(--serif); }
.duel-response p + p, .duel-result p + p { margin-top: .7rem; }
.duel-score { color: #784a34; font-weight: 700; font-variant-numeric: tabular-nums; }
.duel-note { margin: .65rem 0; color: #66525e; font-size: .94rem; }
.duel-actions { margin-top: 1.25rem; }
.duel-actions a:not(.salon-primary):not(.salon-secondary), .fortune-links a, .salon-linkrow a {
  color: var(--wine); text-decoration: underline; text-underline-offset: .25em; font-weight: 650;
}
.fortune-panel { background: var(--paper); scroll-margin-top: 1rem; border-color: #ceba9a; box-shadow: 0 6px 24px #49352308; }
.fortune-intro-line { padding-bottom: .85rem; border-bottom: 1px solid #dbcfbd; }
.fortune-date { display: inline-block; color: var(--brass); margin: .85rem 0 .4rem; font-size: .9rem; font-weight: 650; }
.fortune-keyring { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.5rem,1.6vw,1rem); margin: 1.25rem 0; }
.fortune-key-choice {
  position: relative; isolation: isolate; display: grid; align-content: center; justify-items: center;
  gap: .7rem; min-width: 0; min-height: 8rem; padding: 1rem .5rem; border-radius: 3px;
  border: 1px solid #5c4233; border-bottom: 4px solid #533426; color: #fff1d4;
  background: linear-gradient(108deg,#33252428,transparent 40%,#45292035),
    repeating-linear-gradient(1deg,transparent 0 9px,#dbab7020 10px,transparent 11px 16px),
    linear-gradient(155deg,#684c3f,#775646 52%,#624234);
  box-shadow: inset 0 1px 0 #c39770, 0 3px 6px #49302324;
  transition: transform .18s, box-shadow .18s;
}
.fortune-key-choice::before {
  content: ''; position: absolute; inset: .35rem; z-index: -1; pointer-events: none;
  border: 1px solid #ae896589; outline: 1px solid #32201b70; outline-offset: 1px;
  box-shadow: inset 0 0 0 3px #654535, inset 0 0 0 4px #af876346;
}
.fortune-key-choice[data-key="moon"] { --key-bow: var(--key-moon); }
.fortune-key-choice[data-key="diamond"] { --key-bow: var(--key-diamond); }
.fortune-key-ornament { width: min(5.6rem,86%); transform: rotate(-12deg); font-size: 0; color: transparent; }
.fortune-key-label { color: #fff4de; font: 650 1rem/1.55 var(--serif); text-shadow: 0 1px 2px #241713; }
.fortune-result {
  margin: .55rem 0 1.1rem; padding: clamp(1rem, 3vw, 2.1rem);
  border: 1px solid #c6aa80; border-left: 4px solid #826045;
  background: linear-gradient(110deg,#fcf5e7,#fffdf7 55%); box-shadow: inset 0 0 0 3px #fffaf1;
}
.salon-shell .fortune-rank { color: var(--wine); font: 600 clamp(1.6rem,3vw,2.2rem)/1.5 var(--serif); margin-bottom: .6rem; }
.salon-shell .fortune-story { font-family: var(--serif); font-size: 1.1rem; }
.salon-shell .fortune-advice { margin-top: .7rem; color: #5a414d; }
.fortune-key::before { width: 2.05rem; margin-right: .55rem; vertical-align: middle; }
.salon-shell .fortune-key { margin: .8rem 0; font-weight: 650; color: #755431; }
.fortune-links,.salon-linkrow { column-gap: 1.2rem; }
.fortune-links a,.salon-linkrow a { display: inline-flex; min-height: 2.75rem; align-items: center; }
.fortune-collection { border-top: 1px solid #ddcfb8; padding-top: .9rem; }
.fortune-collection h3 { font: 650 1rem/1.6 var(--serif); }
.fortune-treasures { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: .65rem 0; padding: 0; }
.fortune-treasure { padding: .18rem .65rem; border-inline-start: 2px solid #a1804c; background: #f3ead8; color: #62472f; font-size: .875rem; }
.salon-shell .fortune-note { color: #6f635c; font-size: .875rem; }
.salon-books { margin-top: clamp(2rem,5vw,4rem); padding-top: 2.1rem; border-top: 1px solid var(--hairline); grid-template-columns: minmax(4.5rem,8.6rem) minmax(0,1fr); }
.salon-book-cover { display:block; }
.salon-book-cover img { width: 100%; height: auto; box-shadow: 2px 6px 15px #4630442e; }
.salon-books h2 + p { margin: .5rem 0; max-width: 42rem; }

@media (hover:hover) {
  .salon-shell .salon-primary:hover, .salon-shell .salon-secondary:hover, .salon-shell .salon-button:hover { transform: translateY(-2px); }
  .salon-hero .salon-primary:hover { background: #fce9bf; }
  .salon-hero .salon-secondary:hover { background: #51384f; }
  .duel-choice:hover { color: #682944; border-color: #955570; background: #faeced; transform: translateX(2px); }
  .fortune-key-choice:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #ddbb8f, 0 5px 10px #49302338; }
  .salon-linkrow a:hover,.fortune-links a:hover { color: #48192c; }
}
@media (max-width:650px) {
  .salon-hero { align-items: end; min-height: 31.2rem; padding: 7.8rem 1.5rem 2.3rem; }
  .salon-art { object-position: 73% 0; height: 68%; mask-image: linear-gradient(#000 66%, transparent); }
  .salon-hero::before {
    background: linear-gradient(0deg,#251927 4%,#291c2bef 27%,#28192a9c 45%,#2619251a 70%),
      linear-gradient(90deg,#271a2a50 0%,transparent 65%);
  }
  .hero-frame { inset: .55rem; }
  .salon-hero h1 { font-size: clamp(3.05rem,13vw,4.35rem); margin: .55rem 0 .6rem; }
  .salon-hero h1 span { font-size: .4em; }
  .salon-hero-actions { margin-top: .95rem; gap: .5rem; }
  .salon-hero-actions :is(button,a) { flex: 0 1 auto; padding-inline: 1.1rem; }
  .salon-inner { width: calc(100% - 2rem); padding-block: 1.65rem 2.4rem; }
  .salon-rules { grid-template-columns: 1fr; gap: .55rem; padding: .25rem .18rem 1.7rem; }
  .salon-books { grid-template-columns: minmax(3.8rem,20%) minmax(0,1fr); gap: .9rem; align-items: start; }
  .salon-books h2 { font-size: 1.45rem; }
  .fortune-keyring { gap: .45rem; }
  .fortune-key-choice { min-height: 6.3rem; gap: .45rem; padding: .7rem .22rem; }
  .fortune-key-label { font-size: .875rem; }
  .fortune-key-ornament { width: min(4.2rem,88%); }
  .duel-response.correct { padding-right: 3.45rem; }
  .duel-quote { padding: .8rem .9rem; }
}
@media (max-width:360px) {
  .salon-hero { padding-inline: 1.2rem; }
  .salon-hero-actions :is(button,a) { padding-inline: .7rem; }
  .salon-panel { padding: 1rem; }
  .fortune-keyring { gap: .3rem; }
  .fortune-key-label { letter-spacing: -.04em; }
}
@media (prefers-reduced-motion:reduce) {
  .salon-shell *, .salon-shell *::before, .salon-shell *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}


.salon-tools { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: .45rem 1.1rem; margin: -.7rem 0 1rem; }
.salon-tools[hidden], .salon-tools button[hidden] { display: none; }
.salon-tools button { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .35rem .2rem; border: 0; background: transparent; color: #554450; font: 600 .875rem/1.4 var(--sans); }
.salon-tools span { padding: .12rem .5rem; min-width: 2.8em; border: 1px solid #bbaaa8; border-radius: 1em; font-size: .76rem; color: #65515d; }
.salon-tools [aria-pressed="true"] span { color: #fff8ea; background: #69405a; border-color: #69405a; }
html[data-salon-motion="reduced"] .salon-shell *,
html[data-salon-motion="reduced"] .salon-shell *::before,
html[data-salon-motion="reduced"] .salon-shell *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }

.salon-tools {
  position: sticky;
  top: var(--site-top-inset, 0px);
  z-index: 7;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-bottom: .75rem;
  padding: 0 .65rem;
  border: 1px solid #d6c6b2;
  border-radius: .65rem;
  background: #fffaf2;
  box-shadow: 0 .18rem .6rem #39263612;
}
.salon-tools .salon-speaker { font: normal 1.2rem/1 Georgia, serif; color: #724063; }
.salon-shell :is(#fortune, .arena, .oracle-stage, #arena-title) { scroll-margin-top: calc(3.8rem + var(--site-top-inset, 0px)); }
.court-exhibit-art { width: clamp(4.75rem, 12vw, 6.5rem); aspect-ratio: 1; height: auto; object-fit: contain; flex-shrink: 0; border-radius: .45rem; }

.salon-audio-credits {
  color: #65515d;
  padding: .7rem 0 .15rem;
  font: 500 .875rem/1.7 var(--sans);
}
.salon-audio-credits summary {
  width: fit-content;
  min-height: 44px;
  padding: .6rem .2rem;
  color: #6d605a;
  font-size: .8125rem;
  font-weight: 400;
  cursor: pointer;
}
.salon-audio-credits ul { margin: .5rem 0; padding-inline-start: 1.4rem; }
.salon-audio-credits a { color: #693952; text-underline-offset: .2em; }
