.royal-case {
  --case-wine: #68323e;
  --case-ink: #352621;
  --case-muted: #6f584b;
  --case-rule: #e0ccb5;
  --case-paper: #fffaf0;
  padding: clamp(15px, 3vw, 45px) 0 clamp(3.5rem, 8vw, 7rem);
  color: var(--case-ink);
  background: radial-gradient(ellipse at 50% 10%, #fff3de 0, #fcf7ec 41%, #fbf8f3 80%);
}

.case-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  width: min(100% - clamp(24px, 6vw, 96px), 1210px);
  min-height: clamp(420px, 44vw, 594px);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #755244;
  background: #211815;
  box-shadow: 0 21px 59px #512c192c;
  color: #fff2db;
}

.case-hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.case-hero::before,
.case-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.case-hero::before {
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #1d1314ef, #26181ae6 24%, #29191b6e 51%, transparent 79%);
}

.case-hero::after {
  inset: 12px;
  border: 1px solid #f4d6a345;
  border-radius: 2px;
}

.case-hero-copy {
  padding: clamp(36px, 7.4vw, 104px);
}

.royal-case .case-label {
  margin: 0 0 10px;
  color: var(--case-wine);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .2em;
}

.case-hero .case-label {
  color: #ffd99e;
  font-size: clamp(1rem, 1.75vw, 1.3rem);
}

.case-hero h1 {
  margin: 0;
  font: 700 clamp(2.8rem, 7.2vw, 6.5rem)/1.11 var(--serif);
  letter-spacing: .05em;
  text-shadow: 0 3px 20px #09050487;
}

.case-pitch {
  margin: 22px 0 29px;
  color: #ffedd9;
  font: 500 clamp(.98rem, 2.1vw, 1.27rem)/1.8 var(--serif);
}

.case-button {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 9px 19px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--case-wine);
  color: #fff9f0;
  font-size: .94rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.case-button:hover {
  background: #52232e;
}

.case-button-gold {
  border-color: #f8d295;
  background: #f8d295;
  color: #321d21;
}

.case-button-gold:hover {
  background: #ffdba1;
}

.case-button-secondary {
  border-color: #bb9681;
  background: #fffaf2;
  color: #673140;
}

.case-button-secondary:hover {
  background: #f6ead9;
}

.case-content {
  width: min(100% - clamp(32px, 13vw, 144px), 940px);
  margin-inline: auto;
}

.case-program {
  margin-block: clamp(29px, 6.1vw, 76px) clamp(31px, 6.1vw, 70px);
}

.case-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 20px;
  margin-bottom: 19px;
}

.case-section-heading h2,
.case-opening h2,
.case-reader-heading h2 {
  margin: 0;
  color: #50252e;
  font: 700 clamp(1.62rem, 3.2vw, 2.48rem)/1.42 var(--serif);
}

.case-section-heading p,
.case-timezone,
.case-message {
  margin: 0;
  color: var(--case-muted);
  font-size: .89rem;
}

.case-schedule {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-schedule li {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 3px;
  padding: clamp(14px, 2.4vw, 25px);
  border: 1px solid var(--case-rule);
  border-top: 3px solid #bda387;
  border-radius: 4px;
  background: #ffffffad;
}

.case-schedule .case-night-open {
  border-top-color: var(--case-wine);
}

.case-night-number {
  color: var(--case-wine);
  font: 700 .82rem/1.5 var(--serif);
  letter-spacing: .13em;
}

.case-schedule strong {
  color: #4a3330;
  font: 700 clamp(1.05rem, 2.1vw, 1.42rem)/1.45 var(--serif);
}

.case-schedule time {
  color: var(--case-muted);
  font-size: .88rem;
  white-space: nowrap;
}

.case-night-action {
  display: inline-grid;
  align-items: center;
  min-height: 44px;
  margin-bottom: -8px;
  color: var(--case-wine);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.case-timezone {
  margin-top: .7rem;
}

.case-program [data-case-retry] {
  margin-top: 1rem;
}

.case-opening,
.case-reader {
  position: relative;
  width: min(100%, 744px);
  margin: 0 auto;
  padding: clamp(21px, 5.7vw, 57px);
  border: 1px solid var(--case-rule);
  border-radius: 5px;
  background: var(--case-paper);
  box-shadow: 0 8px 27px #4b2a1810;
}

.case-reader-heading,
.case-opening h2 {
  margin-bottom: 1.17rem;
  padding-bottom: 1.02rem;
  border-bottom: 1px solid var(--case-rule);
}

.case-prose {
  font: 500 clamp(1.05rem, 2vw, 1.17rem)/2.12 var(--serif);
  font-feature-settings: "palt";
  overflow-wrap: anywhere;
}

.case-prose p {
  margin: 0 0 .95em;
}

.case-prose p:last-child {
  margin-bottom: 0;
}

.case-reader-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--case-rule);
}

.case-release-next {
  margin: 0;
  color: var(--case-muted);
  font-size: .92rem;
}

.case-evidence,
.case-guess,
.case-answer {
  margin-top: clamp(26px, 5vw, 44px);
}

.case-evidence h3,
.case-guess legend,
.case-answer h3 {
  margin-top: 0;
  color: var(--case-wine);
  font: 700 clamp(1.15rem, 2.5vw, 1.45rem)/1.5 var(--serif);
}

.case-evidence h3,
.case-answer h3 {
  margin-bottom: .65em;
}

.case-clue {
  margin-bottom: 10px;
  border: 1px solid #d5bba1;
  border-left: 3px solid #8d5160;
  border-radius: 4px;
  background: #f8ecda;
}

.case-clue summary {
  min-height: 44px;
  padding: .54rem .9rem;
  color: #522f2b;
  cursor: pointer;
  font-weight: 700;
}

.case-clue-copy {
  margin: 0 .9rem .9rem;
  padding: 0 0 0 1rem;
  color: #513631;
}

blockquote.case-clue-copy {
  border-left: 1px solid #d5bba1;
  font: 600 1.05rem/1.8 var(--serif);
}

.case-clue-copy p {
  margin: 0;
}

.case-clue-copy li {
  margin-bottom: .38em;
}

.case-guess fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.case-guess legend {
  margin-bottom: .8rem;
  padding: 0;
}

.case-choice {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 8px;
  padding: .58rem .83rem;
  border: 1px solid #d5bba1;
  border-radius: 4px;
  background: #fffdf8;
  cursor: pointer;
  font-weight: 600;
}

.case-choice:has(:checked) {
  border-color: var(--case-wine);
  background: #f7e4dc;
}

.case-choice input {
  flex: 0 0 auto;
  width: 1.12rem;
  height: 1.12rem;
  margin: 0;
  accent-color: var(--case-wine);
}

.case-guess button {
  margin-top: .42rem;
}

.case-guess .case-message,
.case-share .case-message:not(:empty) {
  margin-top: .63rem;
}

.case-reveal p {
  margin-top: 0;
}

.case-answer {
  padding: clamp(14px, 4vw, 23px);
  border: 1px solid #d5bba1;
  border-radius: 4px;
  background: #f8ebd8;
}

.case-answer p {
  margin: .35rem 0 0;
}

.case-correct {
  color: var(--case-wine);
  font-weight: 700;
}

.case-share {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 1.6rem 0 0;
}

.case-share-fallback,
.case-share .case-message:not(:empty) {
  width: 100%;
  text-align: center;
}

.case-share-fallback input {
  display: block;
  width: min(100%, 28rem);
  margin: .25rem auto .2rem;
  padding: .5rem;
  border: 1px solid #b79782;
  border-radius: 3px;
  background: #fffefa;
  color: var(--case-ink);
}

@media (max-width: 659px) {
  .case-hero {
    align-items: end;
    min-height: clamp(365px, 100vw, 490px);
  }

  .case-hero-art {
    object-position: 63% center;
  }

  .case-hero::before {
    background:
      linear-gradient(0deg, #25171a 0%, #25171aed 11%, #25171aac 33%, #25171a12 63%),
      linear-gradient(90deg, #25171a4f, transparent 78%);
  }

  .case-hero::after {
    inset: 8px;
  }

  .case-hero-copy {
    padding: clamp(24px, 7vw, 43px);
  }

  .case-hero h1 {
    font-size: clamp(2.4rem, 10vw, 4.5rem);
  }

  .case-pitch {
    margin: 13px 0 17px;
  }

  .case-schedule {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .case-schedule li {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: .6rem;
  }

  .case-night-number {
    grid-column: 1 / -1;
  }

  .case-night-action {
    grid-column: 1 / -1;
    margin-top: -4px;
  }

  .case-section-heading {
    margin-bottom: 14px;
  }
}

@media (max-width: 345px) {
  .case-schedule li {
    grid-template-columns: 1fr;
  }
}
