.castle .hero-actions {
  margin-bottom: 0;
}

.castle :is(#certificates, #corporate) {
  scroll-margin-top: 100px;
}

.castle .date-card {
  min-block-size: 0;
  padding: 20px clamp(12px, 1.6vw, 24px);
}

.castle .date-card p {
  color: #e1d4c9;
  font-size: 13px;
  margin-bottom: 14px;
}

.game-details {
  display: grid;
  gap: 5px;
  margin: 0 0 16px;
  color: #f3e4d5;
  font-size: 12px;
  line-height: 1.4;
}

.game-details div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 10px;
  flex-wrap: wrap;
}

.game-details dt { color: #d0c2b8; }
.game-details dd { margin: 0; font-weight: 700; }

.castle .date-button {
  min-height: 48px;
  padding: 10px 0 0;
  gap: 8px;
  font-size: 13px;
  line-height: 1.25;
}

.castle .date-button span { flex: 0 0 auto; }
.castle .availability-note { color: #e0d2c6; }

#corporate-count, #corporate-date, #booking-output {
  font-size: 16px;
}

:is(a, button, summary, input, textarea):focus-visible {
  outline: 2px solid #f7dc9b;
  outline-offset: 3px;
}

@media (min-width: 851px) and (max-width: 1050px) {
  .nav-links { gap: 12px; }
  .nav-wrap { gap: 10px; }
}

@media (max-width: 580px) {
  .castle .hero-copy .hero-lead { margin-bottom: 18px; }
  .castle .certificate-card { margin-top: 16px; }
  .castle .date-card { padding: 17px 18px; }
}

.game-booking-dialog #game-booking-title {
  margin-right: 20px;
  font-size: clamp(32px, 7vw, 46px);
}

#game-booking-form:not([hidden]) {
  display: grid;
  gap: 8px;
}

#game-booking-form label {
  font-size: 14px;
  margin-top: 5px;
}

.game-booking-dialog :is(input:not([type="hidden"]):not([hidden]), select) {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #817362;
  background: #141820;
  color: #f4eadc;
  color-scheme: dark;
  font-size: 16px;
}

#game-booking-status {
  margin: 16px 0 10px;
  color: #ffe7bd;
  font-size: 14px;
}

#game-booking-status:empty { display: none; }

.game-booking-fallback {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  color: #ffe7bd;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* The event format shares its colour between the card and booking dialog. */
[data-game-format="dinner"] {
  --game-accent: #f1d095;
  --game-ink: #241b13;
  --game-tint: #6b462e6b;
  --game-border: #caa86c8c;
}

[data-game-format="oneshot"] {
  --game-accent: #cadff4;
  --game-ink: #172637;
  --game-tint: #39567475;
  --game-border: #9bbad58c;
}

.castle .date-grid {
  align-items: stretch;
  gap: clamp(12px, 1.6vw, 22px);
}

.castle .date-card[data-game-format] {
  position: relative;
  padding: clamp(16px, 1.8vw, 24px);
  border: 1px solid var(--game-border);
  border-top: 3px solid var(--game-accent);
  background: radial-gradient(ellipse at 96% 0%, var(--game-tint), transparent 61%), #1d1a27f2;
  box-shadow: 0 14px 28px #08060d61;
  color: #f4eade;
}

.castle .date-card[data-game-format]:focus-within,
.castle .date-card[data-game-format]:hover {
  border-color: var(--game-accent);
}

.castle .date-card .date-top {
  align-items: center;
  min-height: 56px;
  margin: 0 0 16px;
}

.game-date {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff1df;
}

.game-day {
  font: 500 clamp(46px, 5vw, 65px)/.83 var(--serif);
  letter-spacing: -.05em;
}

.game-month {
  display: grid;
  gap: 1px;
  color: #e8ded3;
  font: 600 13px/1.25 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

.game-weekday { color: #c7bfc0; font-weight: 400; }

.game-symbol {
  inline-size: 56px;
  block-size: 56px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px #0d0a1494);
}

.castle .game-card-main h3 {
  margin: 0;
  color: var(--game-accent);
  font: 750 13px/1.35 var(--sans);
}

.game-card-main h3 span {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--game-border);
  background: #1210197d;
}

.castle .game-card-main p {
  margin: 8px 0;
  color: #e2d6ce;
}

.game-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  margin: 0 0 14px;
  color: var(--game-accent);
}

.game-price strong {
  font: 600 clamp(25px, 2.6vw, 33px)/1 var(--serif);
  white-space: nowrap;
}

.game-price span { font-size: 12px; color: #e8ded5; }

.castle .date-card .game-details {
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid #f9e9d930;
  font-size: 13px;
}

.castle .date-card .date-button {
  margin-top: 0;
  padding: 10px 12px;
  border: 1px solid var(--game-accent);
  background: var(--game-accent);
  color: var(--game-ink);
}

.castle .date-card .date-button:hover,
.castle .date-card .date-button:focus-visible {
  background: #fff1de;
  color: #211a22;
}

.game-booking-dialog[data-game-format] {
  max-width: 520px;
  padding: clamp(19px, 5vw, 34px);
  border-top: 3px solid var(--game-accent);
  background: radial-gradient(ellipse at top right, var(--game-tint), transparent 60%), #201a29;
}

.game-booking-dialog .dialog-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.booking-game-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--game-border);
  background: #100d17a3;
}

#selected-game-format {
  grid-column: 1 / -1;
  color: var(--game-accent);
  font-size: 13px;
  font-weight: 750;
}

#selected-game-date { font: 600 20px/1.25 var(--serif); }
#selected-game-price { color: #ecdfd3; font-size: 13px; }
.game-booking-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game-booking-field { display: grid; gap: 6px; min-width: 0; }
.game-booking-dialog .dialog-generate { margin-top: 12px; }
.game-booking-dialog .game-booking-fallback[hidden],
.game-booking-dialog .game-booking-done[hidden] { display: none; }
.game-booking-dialog .game-booking-fallback { color: var(--game-accent); }

#game-booking-status:is([data-state="success"], [data-state="error"]) {
  padding: 12px 14px;
  border: 1px solid var(--game-border);
  background: #100d17a3;
}
#game-booking-status[data-state="success"] { color: #e8f4d7; }

@media (min-width: 581px) and (max-width: 1000px) {
  .castle .date-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .castle .date-card .date-top { margin-bottom: 11px; }
  .castle .date-card .game-details { margin-bottom: 12px; }
}

@media (max-width: 380px) {
  .booking-game-meta { grid-template-columns: 1fr; }
  .game-booking-pair { grid-template-columns: 1fr; gap: 4px; }
}

.past-games {
  margin-top: clamp(30px, 5vw, 58px);
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid #ad8d615b;
  background: #211824ed;
}

.past-games-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 16px;
}

.past-games h3 {
  margin: 0;
  color: #ffebd0;
  font: 600 clamp(25px, 4vw, 38px)/1.15 var(--serif);
}

.past-games-heading .button {
  min-height: 44px;
  padding: 8px 12px;
}

.past-games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr .7fr;
  gap: 10px;
}

.past-games figure { margin: 0; min-width: 0; }
.past-games figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 58%;
  border: 1px solid #f3c39038;
}

@media (max-width: 580px) {
  .past-games-grid { grid-template-columns: 1fr 1fr; }
  .past-games figure:first-child { grid-column: 1 / -1; }
  .past-games figure:first-child img { aspect-ratio: 16 / 9; }
}

@media (min-width: 581px) {
  .past-games figure img { height: clamp(138px, 19vw, 242px); }
}

.castle .date-card[data-game-format] .date-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}

.castle .game-card-main { text-align: left; }
.castle .date-card[data-game-format] .date-button {
  position: static;
  justify-content: space-between;
  text-align: left;
}
.castle .date-card[data-game-format] .date-button .action-icon {
  position: relative;
  inset: auto;
}

.game-booking-dialog[data-game-format] :is(.dialog-generate, .game-booking-done) {
  background: var(--game-accent);
  border-color: var(--game-accent);
  color: var(--game-ink);
}

.booking-game-terms {
  display: grid;
  grid-column: 1 / -1;
  gap: 3px;
  margin-top: 5px;
  padding-top: 8px;
  border-top: 1px solid #f9e9d930;
  color: #e8ded5;
  font-size: 13px;
}
