.poker-page {
  overflow: clip;
}

.poker-page .section {
  position: relative;
}

.poker-page .button {
  min-height: 2.75rem;
}

.poker-hero {
  padding-top: calc(var(--section-space) + var(--space-3));
}

.poker-hero::before,
.poker-closing::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(125deg, transparent 0 44%, rgb(184 115 79 / 10%) 44.1%, transparent 44.25%);
}

.poker-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}

.poker-hero__content,
.poker-location__copy,
.poker-gallery__copy,
.poker-closing__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-5);
}

.poker-hero__content > *,
.poker-location__copy > *,
.poker-gallery__copy > *,
.poker-closing__content > * {
  margin-block: 0;
}

.poker-hero__content {
  max-width: 38.75rem;
}

.poker-hero__content h1 {
  font-size: clamp(2.5rem, 11vw, 3.5rem);
}

.poker-hero__actions,
.poker-closing__actions {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: var(--space-3);
}

.poker-hero__actions > *,
.poker-closing__actions > * {
  min-width: 0;
}

.poker-offline-panel {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: start;
  max-width: 35rem;
  min-width: 0;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid rgb(216 180 119 / 18%);
  border-radius: var(--radius-md);
  background: var(--color-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.poker-offline-panel > * {
  min-width: 0;
}

.poker-offline-panel__mark {
  color: var(--color-copper);
  font-size: 1.25rem;
  line-height: 1.4;
}

.poker-offline-panel p {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-helper);
  line-height: var(--leading-helper);
}

.poker-hero__media,
.poker-location__media,
.poker-gallery__media {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-cinematic);
}

.poker-hero__media {
  aspect-ratio: 4 / 3;
}

.poker-hero__media img,
.poker-location__media img,
.poker-gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poker-hero__media img {
  object-position: 68% center;
}

.poker-character__intro,
.poker-program__intro,
.poker-steps__intro,
.poker-rules__intro,
.poker-contact__intro {
  max-width: 40.625rem;
}

.poker-character__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.poker-character-card,
.poker-rule,
.poker-contact-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-top-color: rgb(184 115 79 / 55%);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-subtle);
  transition: border-color var(--transition-base), background-color var(--transition-base), transform var(--transition-base);
}

.poker-character-card > *,
.poker-rule > *,
.poker-contact-card > * {
  margin-block: 0;
}

.poker-character-card:hover,
.poker-rule:hover,
.poker-contact-card:hover {
  border-color: rgb(216 180 119 / 42%);
  background: var(--color-surface-raised);
  transform: translateY(-2px);
}

.poker-character-card--emerald {
  border-top-color: rgb(216 180 119 / 42%);
  background: var(--color-emerald-deep);
}

.poker-character-card--emerald:hover {
  background: #17443a;
}

.poker-card-number {
  color: var(--color-copper);
  font-size: var(--text-meta);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
}

.poker-text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2.75rem;
  gap: var(--space-2);
  font-size: var(--text-helper);
  font-weight: var(--weight-semibold);
}

.poker-program {
  background: linear-gradient(135deg, rgb(74 31 42 / 34%), transparent 58%);
}

.poker-program__intro {
  max-width: 40rem;
}

.poker-program__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  margin-top: var(--space-6);
  border: 1px solid rgb(184 115 79 / 48%);
  border-radius: var(--radius-md);
  background: var(--color-burgundy-deep);
  box-shadow: var(--shadow-cinematic);
}

.poker-program__meta,
.poker-program__action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: var(--space-2);
  padding: var(--space-5);
  border-bottom: 1px solid rgb(216 180 119 / 22%);
}

.poker-program__meta span {
  color: var(--color-muted-ivory);
  font-size: var(--text-meta);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.poker-program__meta strong {
  overflow-wrap: anywhere;
}

.poker-program__action {
  align-items: stretch;
  border-bottom: 0;
}

.poker-program__note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgb(184 115 79 / 50%);
}

.poker-program__note > * {
  margin-block: 0;
}

.poker-program__note p {
  max-width: 42rem;
  color: var(--color-text-muted);
}

.poker-location__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.poker-location__heading {
  max-width: 36rem;
}

.poker-location__media {
  aspect-ratio: 4 / 3;
}

.poker-location__copy {
  max-width: 35rem;
}

.poker-location__copy address {
  padding: var(--space-4);
  border-left: 2px solid var(--color-copper);
  background: rgb(32 39 36 / 56%);
  color: var(--color-ivory);
  font-style: normal;
  font-weight: var(--weight-semibold);
}

.poker-steps__intro {
  max-width: 38.75rem;
}

.poker-steps__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.poker-steps__list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-6);
}

.poker-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: var(--space-3);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgb(184 115 79 / 34%);
}

.poker-step > * {
  min-width: 0;
}

.poker-step__number {
  color: var(--color-champagne);
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: var(--weight-semibold);
  line-height: 1;
}

.poker-step__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: var(--space-4);
}

.poker-step__content > * {
  margin-block: 0;
}

.poker-step__content h3 .status {
  vertical-align: middle;
}

.poker-organisation-note {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-self: start;
  min-width: 0;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
}

.poker-organisation-note > * {
  min-width: 0;
}

.poker-organisation-note > span {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border: 1px solid var(--color-copper);
  border-radius: 50%;
  color: var(--color-champagne);
  font-size: var(--text-helper);
  font-weight: var(--weight-semibold);
}

.poker-organisation-note h3,
.poker-organisation-note p {
  margin-block: 0;
}

.poker-organisation-note p {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-helper);
}

.poker-rules {
  background: radial-gradient(circle at 88% 20%, rgb(18 59 50 / 35%), transparent 28rem);
}

.poker-rules__intro {
  max-width: 42.5rem;
}

.poker-rules__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.poker-rule {
  min-height: 100%;
}

.poker-rule--fair {
  border-top-color: rgb(121 184 155 / 64%);
}

.poker-rule--age {
  background: var(--color-burgundy-deep);
  border-color: rgb(216 180 119 / 32%);
}

.poker-rule--age:hover {
  background: #592531;
}

.poker-rule__badge {
  display: inline-flex;
  width: fit-content;
  min-height: 2rem;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border: 1px solid rgb(216 180 119 / 55%);
  border-radius: var(--radius-pill);
  color: var(--color-ivory);
  font-size: var(--text-helper);
  font-weight: var(--weight-semibold);
}

.poker-rule--instructions {
  background: var(--color-surface-raised);
}

.poker-rule__placeholder {
  padding: var(--space-4);
  border: 1px dashed rgb(216 180 119 / 56%);
  border-radius: var(--radius-sm);
  color: var(--color-champagne);
  font-size: var(--text-helper);
  font-weight: var(--weight-semibold);
}

.poker-checklist__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}

.poker-checklist__intro {
  max-width: 35rem;
}

.poker-checklist__list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0;
}

.poker-checklist-item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  min-width: 0;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-top: 1px solid rgb(184 115 79 / 42%);
}

.poker-checklist-item > * {
  min-width: 0;
}

.poker-checklist-item > span {
  color: var(--color-copper);
  font-size: var(--text-helper);
  font-weight: var(--weight-semibold);
}

.poker-checklist-item h3,
.poker-checklist-item p {
  margin-block: 0;
}

.poker-checklist-item p {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}

.poker-checklist-item a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-top: var(--space-2);
  font-size: var(--text-helper);
  font-weight: var(--weight-semibold);
}

.poker-checklist__list > .button {
  align-self: flex-start;
  margin-top: var(--space-5);
}

.poker-contact {
  background: linear-gradient(140deg, rgb(18 59 50 / 48%), transparent 62%);
}

.poker-contact__intro {
  max-width: 39.375rem;
}

.poker-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.poker-contact-card {
  align-items: flex-start;
}

.poker-contact-card--primary {
  background: var(--color-emerald-deep);
}

.poker-contact-card--primary:hover {
  background: #174d41;
}

.poker-contact-card__links {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-2);
}

.poker-contact-card__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  overflow-wrap: anywhere;
  font-weight: var(--weight-semibold);
}

.poker-gallery__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.poker-gallery__copy {
  max-width: 26.25rem;
}

.poker-gallery__media {
  aspect-ratio: 16 / 9;
}

.poker-gallery__media figcaption {
  position: relative;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
}

.poker-closing {
  padding-bottom: calc(var(--section-space) + var(--space-4));
}

.poker-closing__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: var(--space-5);
  padding: var(--space-5);
  border: 1px solid rgb(216 180 119 / 28%);
  border-radius: var(--radius-lg);
  background: var(--color-burgundy-deep);
  box-shadow: var(--shadow-cinematic);
}

.poker-closing__panel > * {
  min-width: 0;
}

.poker-closing__content {
  max-width: 34.375rem;
}

.poker-closing__actions {
  align-content: center;
  align-items: stretch;
}

.poker-closing__legal {
  max-width: 47.5rem;
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid rgb(216 180 119 / 28%);
  color: var(--color-muted-ivory);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.poker-reveal {
  opacity: 1;
}

.poker-page.has-poker-reveal .poker-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}

.poker-page.has-poker-reveal .poker-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 43.75rem) {
  .poker-character__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poker-character-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .poker-program__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poker-program__action {
    border-bottom: 0;
  }

  .poker-rules__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poker-rule--age,
  .poker-rule--instructions {
    grid-column: 1 / -1;
  }
}

@media (min-width: 48rem) {
  .poker-closing__panel {
    padding: var(--space-6);
  }
}

@media (min-width: 47.5rem) {
  .poker-contact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 56.25rem) {
  .poker-program__panel {
    grid-template-columns: minmax(11.25rem, 3fr) minmax(11.25rem, 2fr) minmax(11.25rem, 4fr) minmax(10rem, 3fr);
  }

  .poker-program__meta,
  .poker-program__action {
    border-right: 1px solid rgb(216 180 119 / 22%);
    border-bottom: 0;
  }

  .poker-program__action {
    border-right: 0;
  }

  .poker-checklist__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .poker-checklist__list {
    max-width: 43.75rem;
    justify-self: end;
  }

  .poker-gallery__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }
}

@media (min-width: 58.75rem) {
  .poker-location__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    column-gap: var(--space-6);
    row-gap: var(--space-5);
  }

  .poker-location__heading {
    grid-column: 1 / -1;
  }

  .poker-location__media {
    grid-column: 1 / span 6;
  }

  .poker-location__copy {
    grid-column: 8 / span 5;
  }
}

@media (min-width: 61.25rem) {
  .poker-hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    column-gap: var(--space-6);
  }

  .poker-hero__content {
    grid-column: 1 / span 5;
  }

  .poker-hero__media {
    grid-column: 7 / span 6;
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 68.75rem) {
  .poker-character__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .poker-character-card:nth-child(3) {
    grid-column: auto;
  }

  .poker-steps__layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-6);
  }

  .poker-steps__list {
    grid-column: 1 / span 9;
  }

  .poker-organisation-note {
    grid-column: 8 / span 5;
    margin-top: var(--space-7);
  }

  .poker-step {
    grid-template-columns: minmax(0, 2fr) minmax(0, 7fr);
  }

  .poker-rules__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .poker-rule:nth-child(1),
  .poker-rule:nth-child(2),
  .poker-rule--age {
    grid-column: span 4;
  }

  .poker-rule--instructions {
    grid-column: 1 / -1;
  }

  .poker-closing__panel {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }

  .poker-closing__legal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 26.875rem) {
  .poker-hero__actions,
  .poker-closing__actions {
    flex-direction: column;
  }

  .poker-hero__actions .button,
  .poker-closing__actions .button {
    width: 100%;
  }
}

@media (max-width: 28.75rem) {
  .poker-contact-card .button,
  .poker-steps .button {
    width: 100%;
  }
}

@media (max-width: 26.25rem) {
  .poker-gallery__media {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poker-page.has-poker-reveal .poker-reveal,
  .poker-page.has-poker-reveal .poker-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .poker-character-card:hover,
  .poker-rule:hover,
  .poker-contact-card:hover {
    transform: none;
  }
}
