.poker-page {
  background: var(--color-page);
  color: var(--color-text);
}

.poker-page p,
.poker-page h1,
.poker-page h2,
.poker-page h3 {
  overflow-wrap: anywhere;
}

.poker-hero {
  position: relative;
  min-height: 45rem;
  overflow: hidden;
  background: var(--color-black-1000);
}

.poker-hero__image,
.poker-hero__image::after {
  position: absolute;
  inset: 0;
}

.poker-hero__image::after {
  content: "";
  background: rgba(0, 0, 0, 0.42);
}

.poker-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 52%;
  filter: grayscale(0.78) saturate(0.45) contrast(1.08) brightness(0.72);
}

.poker-hero__content-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100% - (2 * var(--gutter)), var(--container-main));
  min-height: 45rem;
  margin-inline: auto;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
}

.poker-hero__content {
  display: flex;
  grid-column: 1 / span 5;
  min-width: 0;
  max-width: 42.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  padding-block: var(--space-10);
}

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

.poker-hero__eyebrow {
  color: var(--color-snow-050);
}

.poker-hero h1 {
  max-width: 42.5rem;
  font-size: 4.5rem;
  line-height: 0.96;
}

.poker-hero__lead {
  max-width: 35rem;
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
}

.poker-hero__actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

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

.poker-hero__button {
  min-height: 3rem;
}

.poker-hero__etiquette-link {
  color: var(--color-snow-050);
}

.poker-hero__note {
  color: var(--color-graphite-400);
  font-size: var(--text-meta);
  line-height: var(--leading-meta);
}

.poker-atmosphere__grid,
.poker-evening__grid,
.poker-etiquette__grid,
.poker-scenarios__grid,
.poker-next__grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.poker-atmosphere__intro {
  grid-column: 1 / span 5;
  min-width: 0;
  max-width: 35rem;
}

.poker-atmosphere__intro .lead {
  max-width: 35rem;
}

.poker-atmosphere__items {
  display: grid;
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: var(--space-8);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
}

.poker-atmosphere__item {
  min-width: 0;
  max-width: 22.5rem;
  padding-top: var(--space-4);
  border-top: var(--border-hairline);
}

.poker-atmosphere__item--first {
  grid-column: 1 / span 4;
}

.poker-atmosphere__item--materials {
  grid-column: 5 / span 4;
}

.poker-atmosphere__item--company {
  grid-column: 10 / span 3;
}

.poker-atmosphere__item h3,
.poker-scenario h3,
.poker-inquiry__item h3 {
  margin-bottom: var(--space-4);
}

.poker-atmosphere__item p:last-child,
.poker-scenario p:last-child,
.poker-inquiry__item p:last-child {
  margin-bottom: 0;
}

.poker-item-number,
.poker-item-kicker,
.poker-step__number,
.poker-rule__number,
.poker-inquiry__label,
.poker-next__number {
  margin: 0 0 var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: var(--leading-meta);
  text-transform: uppercase;
}

.poker-atmosphere__closing {
  color: var(--color-snow-050);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.12;
}

.poker-evening {
  background: var(--color-black-1000);
}

.poker-evening__grid {
  column-gap: var(--space-6);
}

.poker-evening__intro {
  grid-column: 1 / span 5;
  min-width: 0;
  max-width: 29.375rem;
}

.poker-evening__intro .lead {
  max-width: 29.375rem;
}

.poker-evening__steps {
  display: flex;
  grid-column: 7 / span 6;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  border-top: var(--border-hairline);
}

.poker-step {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(2.5rem, 1fr) minmax(0, 5fr);
  column-gap: var(--space-4);
  padding-block: var(--space-5);
  border-bottom: var(--border-hairline);
}

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

.poker-step__number {
  margin: 0;
}

.poker-step__copy {
  min-width: 0;
  max-width: 26.875rem;
}

.poker-step__copy h3 {
  margin-bottom: var(--space-3);
}

.poker-step__copy p {
  margin-bottom: var(--space-4);
}

.poker-step__link {
  display: inline-block;
}

.poker-detail__grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-6);
  align-items: end;
}

.poker-detail__figure {
  grid-column: 1 / span 7;
  min-width: 0;
  margin: 0;
}

.poker-detail__trigger {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.poker-detail__image-frame {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border: var(--border-hairline);
}

.poker-detail__image-frame img {
  object-position: 50% 58%;
  filter: grayscale(0.72) saturate(0.55) contrast(1.08);
}

.poker-detail__caption {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-nav);
  line-height: var(--leading-nav);
}

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

.poker-detail__tag {
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.poker-detail__copy {
  grid-column: 9 / span 4;
  min-width: 0;
  max-width: 26.25rem;
}

.poker-detail__copy p {
  margin-bottom: 0;
}

.poker-etiquette {
  background: var(--color-black-1000);
}

.poker-etiquette__intro {
  grid-column: 1 / span 5;
  min-width: 0;
  max-width: 37.5rem;
}

.poker-etiquette__intro .lead {
  max-width: 37.5rem;
}

.poker-etiquette__rules {
  display: flex;
  grid-column: 1 / -1;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  margin-top: var(--space-8);
  border-top: var(--border-hairline);
}

.poker-rule {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-4);
  padding-block: var(--space-6);
  border-bottom: var(--border-hairline);
}

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

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

.poker-rule h3 {
  grid-column: 2 / span 3;
  font-size: clamp(1.75rem, 2.5vw, 2rem);
}

.poker-rule > p:last-child {
  grid-column: 6 / span 6;
  max-width: 31.25rem;
}

.poker-rule--last > p:last-child {
  color: var(--color-snow-050);
}

.poker-scenarios__intro {
  grid-column: 1 / span 6;
  min-width: 0;
  max-width: 36.25rem;
}

.poker-scenarios__intro .lead {
  max-width: 36.25rem;
}

.poker-scenarios__items {
  display: grid;
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: var(--space-8);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.poker-scenario {
  min-width: 0;
  max-width: 21.875rem;
  padding-right: var(--space-6);
}

.poker-scenario + .poker-scenario {
  padding-left: var(--space-6);
  border-left: var(--border-hairline);
}

.poker-scenario__link {
  display: inline-block;
  margin-top: var(--space-2);
}

.poker-inquiry {
  background: var(--color-anthracite-900);
}

.poker-inquiry__panel {
  display: grid;
  min-width: 0;
  padding: var(--space-9);
  border: var(--border-hairline);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  row-gap: var(--space-7);
}

.poker-inquiry__intro {
  grid-column: 1 / span 5;
  min-width: 0;
  max-width: 35rem;
}

.poker-inquiry__intro .lead {
  max-width: 35rem;
}

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

.poker-inquiry__item {
  min-width: 0;
  max-width: 26.25rem;
}

.poker-inquiry__item:first-child {
  grid-column: 1 / span 5;
}

.poker-inquiry__item:last-child {
  grid-column: 8 / span 5;
}

.poker-inquiry__statement {
  grid-column: 1 / span 8;
  min-width: 0;
  max-width: 41.25rem;
  margin: 0;
  color: var(--color-snow-050);
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.poker-next__intro {
  grid-column: 1 / span 5;
  min-width: 0;
  max-width: 32.5rem;
}

.poker-next__tiles {
  display: grid;
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: var(--space-7);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: var(--border-hairline);
}

.poker-next__tile {
  display: flex;
  min-width: 0;
  min-height: 20rem;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-6);
  background: var(--color-anthracite-900);
  text-decoration: none;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.poker-next__tile + .poker-next__tile {
  border-left: var(--border-hairline);
}

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

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

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

.poker-next__tile-title {
  max-width: 24.375rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.02;
}

.poker-next__tile-text {
  max-width: 24.375rem;
  color: var(--color-text-muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.poker-next__tile-link {
  font-size: var(--text-nav);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.poker-next__tile:hover,
.poker-next__tile:focus-visible {
  background: var(--color-snow-050);
  color: var(--color-black-1000);
}

.poker-next__tile:hover .poker-next__tile-text,
.poker-next__tile:focus-visible .poker-next__tile-text {
  color: var(--color-black-1000);
}

.poker-next__help {
  grid-column: 1 / span 6;
  min-width: 0;
  max-width: 37.5rem;
  margin: var(--space-5) 0 0;
  color: var(--color-text-muted);
}

.poker-final {
  padding-block: var(--space-11);
  background: var(--color-black-1000);
}

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

.poker-final__content {
  display: flex;
  grid-column: 4 / span 6;
  min-width: 0;
  max-width: 40rem;
  margin-inline: auto;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
}

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

.poker-final__content p:not(.eyebrow) {
  max-width: 31.25rem;
}

.poker-final__button {
  min-height: 3rem;
  margin-top: var(--space-2);
}

.poker-lightbox {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  min-width: 0;
  place-items: center;
  padding: var(--gutter);
}

.poker-lightbox[hidden] {
  display: none;
}

.poker-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
}

.poker-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 62rem);
  min-width: 0;
  max-height: calc(100vh - (2 * var(--gutter)));
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
  border: var(--border-hairline);
  background: var(--color-black-1000);
  box-shadow: var(--shadow-layer);
}

.poker-lightbox__dialog img {
  width: 100%;
  min-width: 0;
  max-height: calc(100vh - 12rem);
  object-fit: contain;
  filter: grayscale(0.72) saturate(0.55) contrast(1.08);
}

.poker-lightbox__dialog p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-nav);
}

.poker-lightbox__close {
  align-self: flex-end;
  padding: var(--space-2) 0;
  background: transparent;
  color: var(--color-snow-050);
  font-size: var(--text-nav);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

@media (max-width: 979px) {
  .poker-hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .poker-hero__image {
    position: relative;
    min-height: 46vh;
  }

  .poker-hero__image::after {
    background: rgba(0, 0, 0, 0.2);
  }

  .poker-hero__content-wrap {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 0;
    background: var(--color-black-1000);
  }

  .poker-hero__content {
    width: min(100% - (2 * var(--gutter)), 37.5rem);
    max-width: none;
    margin-inline: auto;
    padding-block: var(--space-8);
  }

  .poker-hero h1 {
    font-size: 3.5rem;
    line-height: 0.98;
  }
}

@media (max-width: 939px) {
  .poker-atmosphere__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-7) var(--space-6);
  }

  .poker-atmosphere__item--first,
  .poker-atmosphere__item--materials,
  .poker-atmosphere__item--company {
    grid-column: auto;
    max-width: 22.5rem;
  }

  .poker-rule {
    grid-template-columns: minmax(2.5rem, auto) minmax(0, 1fr);
    row-gap: var(--space-4);
  }

  .poker-rule__number,
  .poker-rule h3 {
    grid-column: auto;
  }

  .poker-rule > p:last-child {
    grid-column: 1 / -1;
    max-width: 31.25rem;
  }
}

@media (max-width: 919px) {
  .poker-scenarios__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-7);
  }

  .poker-scenario {
    max-width: none;
  }

  .poker-scenario:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 859px) {
  .poker-evening__grid {
    row-gap: var(--space-7);
  }

  .poker-evening__intro,
  .poker-evening__steps {
    grid-column: 1 / -1;
  }

  .poker-evening__steps {
    max-width: 37.5rem;
  }
}

@media (max-width: 819px) {
  .poker-detail__grid {
    row-gap: var(--space-5);
  }

  .poker-detail__figure,
  .poker-detail__copy {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 759px) {
  .poker-inquiry__panel {
    padding: var(--space-6);
    grid-template-columns: 1fr;
    row-gap: var(--space-6);
  }

  .poker-inquiry__intro,
  .poker-inquiry__items,
  .poker-inquiry__statement {
    grid-column: 1;
  }

  .poker-inquiry__items {
    grid-template-columns: 1fr;
    row-gap: var(--space-6);
  }

  .poker-inquiry__item:first-child,
  .poker-inquiry__item:last-child {
    grid-column: 1;
    max-width: none;
  }
}

@media (max-width: 719px) {
  .poker-next__tiles {
    grid-template-columns: 1fr;
  }

  .poker-next__tile {
    min-height: 15.625rem;
  }

  .poker-next__tile + .poker-next__tile {
    border-top: var(--border-hairline);
    border-left: 0;
  }
}

@media (max-width: 639px) {
  .poker-hero__image {
    min-height: 44vh;
  }

  .poker-hero__content {
    width: min(100% - (2 * var(--gutter)), 100%);
    gap: var(--space-4);
    padding-block: var(--space-7);
  }

  .poker-hero h1 {
    font-size: 2.625rem;
    line-height: 1;
  }

  .poker-hero__lead {
    max-width: none;
    font-size: 1.125rem;
  }

  .poker-hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .poker-hero__button {
    width: 100%;
  }

  .poker-atmosphere__grid,
  .poker-etiquette__grid,
  .poker-scenarios__grid,
  .poker-next__grid,
  .poker-final__container {
    grid-template-columns: 1fr;
  }

  .poker-atmosphere__intro,
  .poker-etiquette__intro,
  .poker-scenarios__intro,
  .poker-next__intro,
  .poker-final__content {
    grid-column: 1;
  }

  .poker-atmosphere__items,
  .poker-scenarios__items {
    grid-template-columns: 1fr;
    margin-top: var(--space-7);
  }

  .poker-atmosphere__item--first,
  .poker-atmosphere__item--materials,
  .poker-atmosphere__item--company {
    max-width: 35rem;
  }

  .poker-atmosphere__item--company {
    grid-column: 1;
  }

  .poker-evening__intro,
  .poker-evening__steps {
    grid-column: 1 / -1;
  }

  .poker-step {
    grid-template-columns: 1fr;
    row-gap: var(--space-3);
  }

  .poker-scenario,
  .poker-scenario + .poker-scenario,
  .poker-scenario:nth-child(3) {
    padding: var(--space-5) 0 0;
    border-top: var(--border-hairline);
    border-left: 0;
  }

  .poker-scenario:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .poker-next__help {
    grid-column: 1;
    max-width: 37.5rem;
  }

  .poker-final {
    padding-block: var(--space-9);
  }

  .poker-final__content {
    max-width: none;
    margin: 0;
  }

  .poker-final__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poker-next__tile,
  .poker-hero__image img,
  .poker-detail__image-frame img {
    transition: none;
  }
}
