.poker-page {
  overflow: clip;
}

.poker-page .poker-hero {
  position: relative;
  min-height: 42.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  isolation: isolate;
}

.poker-page .poker-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  max-width: none;
}

.poker-page .poker-hero__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(42, 27, 23, 0.42) 0%, rgba(42, 27, 23, 0.32) 42%, rgba(42, 27, 23, 0.08) 76%);
  content: "";
}

.poker-page .poker-hero__media img,
.poker-page .poker-room__figure img,
.poker-page .poker-dining__figure img,
.poker-page .poker-lounge-feature__figure img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.poker-page .poker-hero__layout {
  width: min(100% - (var(--container-padding) * 2), var(--container-wide-max));
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  min-width: 0;
  padding-block: var(--space-9);
}

.poker-page .poker-hero__copy {
  grid-column: 1 / span 5;
  min-width: 0;
  max-width: 35rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.poker-page .poker-hero__copy .eyebrow,
.poker-page .poker-hero__copy h1,
.poker-page .poker-hero__copy p {
  margin: 0;
}

.poker-page .poker-hero__copy h1 {
  font-size: clamp(3.25rem, 5.3vw, 4rem);
}

.poker-page .poker-hero__copy .lead {
  max-width: 34rem;
}

.poker-page .poker-hero__actions {
  width: 100%;
}

.poker-page .poker-hero__actions > .button {
  min-width: 0;
}

.poker-page .poker-hero__copy .offline-note {
  max-width: 34rem;
}

.poker-page .poker-dinner-flow__intro,
.poker-page .poker-holdem__intro,
.poker-page .poker-profiles__intro,
.poker-page .poker-faq__intro {
  min-width: 0;
}

.poker-page .poker-dinner-flow__intro {
  width: min(100%, 40.625rem);
  border-inline-start: 1px solid var(--color-brass-500);
  padding-inline-start: var(--space-5);
}

.poker-page .poker-dinner-flow__intro p,
.poker-page .poker-holdem__intro .lead {
  max-width: 40.625rem;
}

.poker-page .poker-dinner-flow__points,
.poker-page .poker-holdem__steps,
.poker-page .poker-rules__list,
.poker-page .poker-profiles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  min-width: 0;
  margin-top: var(--space-7);
}

.poker-page .poker-numbered-point,
.poker-page .poker-step,
.poker-page .poker-rule-item,
.poker-page .poker-profile-card {
  min-width: 0;
}

.poker-page .poker-numbered-point__number,
.poker-page .poker-step__number {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--color-brass-700);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.poker-page .poker-numbered-point h3,
.poker-page .poker-step h3,
.poker-page .poker-rule-item h3,
.poker-page .poker-profile-card h3 {
  font-size: clamp(1.75rem, 2.8vw, 2rem);
}

.poker-page .poker-room {
  padding-block: var(--section-space);
}

.poker-page .poker-room__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-8);
  align-items: center;
  min-width: 0;
}

.poker-page .poker-room__figure {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 5;
  margin: 0;
}

.poker-page .poker-room__figure img {
  object-position: center center;
}

.poker-page .poker-room__panel {
  width: 100%;
  max-width: 32.5rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid color-mix(in srgb, var(--color-brass-500) 55%, transparent);
  background: var(--color-walnut-700);
}

.poker-page .poker-room__panel > * {
  margin: 0;
}

.poker-page .poker-room__panel .rule {
  margin: var(--space-1) 0;
}

.poker-page .poker-holdem__intro {
  width: min(100%, 37.5rem);
}

.poker-page .poker-step {
  border-top: 1px solid var(--color-brass-500);
  padding-top: var(--space-4);
}

.poker-page .poker-dining__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-8);
  align-items: center;
  min-width: 0;
}

.poker-page .poker-dining__panel {
  width: 100%;
  max-width: 31.25rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.poker-page .poker-dining__panel > * {
  margin: 0;
}

.poker-page .poker-dining__panel .rule {
  margin: var(--space-1) 0;
}

.poker-page .poker-dining__action {
  align-self: flex-start;
}

.poker-page .poker-dining__figure {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 5;
  margin: 0;
}

.poker-page .poker-dining__figure img {
  object-position: center center;
}

.poker-page .poker-rules__intro {
  width: min(100%, 36.25rem);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-brass-500);
}

.poker-page .poker-rules__intro > * {
  margin: 0;
}

.poker-page .poker-rule-item {
  position: relative;
  padding-inline-start: var(--space-5);
}

.poker-page .poker-rule-item__mark {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  color: var(--color-brass-500);
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
}

.poker-page .poker-profiles__intro {
  width: min(100%, 37.5rem);
}

.poker-page .poker-profile-card {
  height: 100%;
  background: var(--surface-paper);
}

.poker-page .poker-profile-card .card__body {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.poker-page .poker-profile-card .card__body > * {
  margin: 0;
}

.poker-page .poker-profiles__closing {
  width: min(100%, 37.5rem);
  min-width: 0;
  margin-top: var(--space-7);
}

.poker-page .poker-profiles__closing .rule {
  margin: 0 0 var(--space-5);
}

.poker-page .poker-lounge-feature__wrap {
  position: relative;
  width: min(100% - (var(--container-padding) * 2), var(--container-wide-max));
  min-width: 0;
  padding-bottom: var(--space-9);
}

.poker-page .poker-lounge-feature__figure {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  margin: 0;
}

.poker-page .poker-lounge-feature__figure img {
  object-position: center center;
}

.poker-page .poker-lounge-feature__panel {
  width: min(100% - var(--space-8), 33.75rem);
  min-width: 0;
  margin-top: calc(var(--space-9) * -1);
  margin-inline-start: var(--space-8);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.poker-page .poker-lounge-feature__panel > * {
  margin: 0;
}

.poker-page .poker-lounge-feature__actions {
  width: 100%;
}

.poker-page .poker-faq__intro {
  width: min(100%, 35rem);
}

.poker-page .poker-faq__list {
  width: min(100%, 51.25rem);
  min-width: 0;
  margin-top: var(--space-7);
  display: flex;
  flex-direction: column;
}

.poker-page .poker-faq__item {
  min-width: 0;
  border-top: 1px solid var(--color-border);
}

.poker-page .poker-faq__item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.poker-page .poker-faq__item h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: var(--leading-body);
}

.poker-page .poker-faq__button {
  width: 100%;
  min-width: 0;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  padding: var(--space-4) 0;
  text-align: left;
}

.poker-page .poker-faq__symbol {
  flex: 0 0 auto;
  color: var(--color-brass-700);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.poker-page .poker-faq__answer {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows var(--transition-base), opacity var(--transition-base);
}

.poker-page .poker-faq__answer > div {
  overflow: hidden;
}

.poker-page .poker-faq__answer p {
  max-width: 38.75rem;
  margin: 0;
  padding: 0 0 var(--space-5);
}

.poker-page .poker-faq__item.is-collapsed .poker-faq__answer {
  grid-template-rows: 0fr;
  opacity: 0;
}

.poker-page .poker-closing {
  padding-block: var(--section-space);
}

.poker-page .poker-closing__layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-width: 0;
}

.poker-page .poker-closing__copy {
  grid-column: 1 / span 6;
  width: 100%;
  max-width: 37.5rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  border-top: 1px solid var(--color-brass-500);
  padding-top: var(--space-5);
}

.poker-page .poker-closing__copy > * {
  margin: 0;
}

.poker-page .poker-closing__actions {
  width: 100%;
}

.poker-page .poker-closing__space {
  grid-column: 7 / -1;
  min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
  .poker-page .poker-hero:hover .poker-hero__media img {
    filter: brightness(1.05);
    transform: scale(1.03);
  }
}

@media (max-width: 61.1875rem) {
  .poker-page .poker-hero {
    min-height: auto;
    display: block;
    background: var(--surface-casino);
    padding-block: var(--section-space-compact);
  }

  .poker-page .poker-hero__media {
    position: relative;
    inset: auto;
    width: min(100% - (var(--container-padding) * 2), var(--container-wide-max));
    aspect-ratio: 4 / 5;
    margin: var(--space-7) auto 0;
  }

  .poker-page .poker-hero__media::after {
    background: rgba(42, 27, 23, 0.12);
  }

  .poker-page .poker-hero__layout {
    display: block;
    padding: 0;
  }

  .poker-page .poker-hero__copy {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 59.375rem) {
  .poker-page .poker-lounge-feature__wrap {
    padding-bottom: 0;
  }

  .poker-page .poker-lounge-feature__panel {
    width: 100%;
    margin: var(--space-6) 0 0;
  }
}

@media (max-width: 57.5rem) {
  .poker-page .poker-dinner-flow__points,
  .poker-page .poker-holdem__steps,
  .poker-page .poker-rules__list,
  .poker-page .poker-profiles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .poker-page .poker-room__panel,
  .poker-page .poker-dining__panel {
    max-width: none;
  }

  .poker-page .poker-dining__panel {
    order: 1;
  }

  .poker-page .poker-dining__figure {
    order: 2;
  }
}

@media (max-width: 50rem) {
  .poker-page .poker-faq__list {
    width: 100%;
  }
}

@media (max-width: 47.5rem) {
  .poker-page .poker-closing__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .poker-page .poker-closing__copy {
    grid-column: 1;
    max-width: none;
  }

  .poker-page .poker-closing__space {
    display: none;
  }
}

@media (max-width: 40rem) {
  .poker-page .poker-dinner-flow__points,
  .poker-page .poker-holdem__steps,
  .poker-page .poker-rules__list,
  .poker-page .poker-profiles__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  .poker-page .poker-hero__copy h1 {
    font-size: clamp(2.375rem, 10vw, 3.5rem);
  }

  .poker-page .poker-hero__actions,
  .poker-page .poker-lounge-feature__actions,
  .poker-page .poker-closing__actions {
    flex-direction: column;
  }

  .poker-page .poker-hero__actions > .button,
  .poker-page .poker-lounge-feature__actions > .button,
  .poker-page .poker-closing__actions > .button,
  .poker-page .poker-dining__action {
    width: 100%;
  }

  .poker-page .poker-dining__action {
    align-self: stretch;
  }

  .poker-page .poker-lounge-feature__figure {
    aspect-ratio: 3 / 2;
  }

  .poker-page .poker-room__panel {
    padding: var(--space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .poker-page .poker-faq__answer {
    transition: none;
  }
}
