.poker-room-page {
  background: var(--surface-page);
}

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

.poker-room-page .poker-room-section-label,
.poker-room-page .poker-room-work-label,
.poker-room-page .poker-room-hero__label,
.poker-room-page .poker-room-presence__micro-label,
.poker-room-page .poker-room-sequence__material,
.poker-room-page .poker-room-card-study__object-note {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.poker-room-page .poker-room-section-label,
.poker-room-page .poker-room-hero__label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.poker-room-page .poker-room-section-label::after,
.poker-room-page .poker-room-hero__label::after {
  content: "";
  flex: 1 1 2rem;
  min-width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.poker-room-page .poker-room-hero__label {
  color: var(--color-dry-clay);
}

.poker-room-page .poker-room-work-label {
  margin-bottom: var(--space-3);
}

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

.poker-room-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: var(--space-7);
}

.poker-room-hero__intro,
.poker-room-hero__plate {
  min-width: 0;
  width: 100%;
}

.poker-room-hero__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.poker-room-hero__title {
  max-width: 43.75rem;
  margin: 0;
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  letter-spacing: -0.035em;
}

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

.poker-room-hero__frame img {
  aspect-ratio: 4 / 3;
  object-position: center;
}

.poker-room-composition__reading {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: min(100%, 41.25rem);
  margin-inline: auto;
  padding-top: var(--space-5);
}

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

.poker-room-composition__reading h2 {
  margin-bottom: var(--space-2);
}

.poker-room-composition__entry {
  min-width: 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-color);
}

.poker-room-composition__entry h3,
.poker-room-composition__entry p {
  max-width: 41.25rem;
}

.poker-room-composition__entry p:last-child {
  margin-bottom: 0;
}

.poker-room-composition__annotation {
  margin-bottom: var(--space-3) !important;
  color: var(--color-dry-clay);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.poker-room-table-study__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 2fr);
  gap: var(--space-5);
  align-items: start;
}

.poker-room-table-study__plate {
  grid-column: 1 / -1;
  width: min(100%, 54.375rem);
  margin-inline: auto;
  min-width: 0;
}

.poker-room-table-study__frame img {
  aspect-ratio: 3 / 2;
  object-position: center left;
}

.poker-room-table-study__caption,
.poker-room-table-study__note {
  min-width: 0;
  width: 100%;
}

.poker-room-table-study__caption {
  grid-column: 1;
  max-width: 31.25rem;
}

.poker-room-table-study__caption h2 {
  margin-bottom: var(--space-4);
}

.poker-room-table-study__caption p:last-child {
  margin-bottom: 0;
}

.poker-room-table-study__note {
  grid-column: 2;
  max-width: 13.75rem;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-muted-bronze);
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
}

.poker-room-presence__title {
  width: min(100%, 43.75rem);
  margin-top: var(--space-5);
}

.poker-room-presence__prose {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
  column-gap: 16.6667%;
  align-items: start;
}

.poker-room-presence__primary,
.poker-room-presence__supporting {
  min-width: 0;
  width: 100%;
}

.poker-room-presence__display {
  max-width: 30rem;
  margin-bottom: var(--space-5);
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: var(--leading-heading);
}

.poker-room-presence__micro-label {
  margin-bottom: var(--space-3) !important;
  color: var(--color-muted-bronze);
}

.poker-room-presence__primary p:last-child,
.poker-room-presence__supporting p:last-child {
  margin-bottom: 0;
}

.poker-room-presence__line {
  width: min(100%, 32.5rem);
  margin: var(--space-7) 0 0;
  padding-left: var(--space-5);
  border-left: 2px solid var(--color-dry-clay);
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: var(--leading-feature);
}

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

.poker-room-sequence__panel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  padding-block: var(--space-8);
}

.poker-room-sequence__heading,
.poker-room-sequence__entries {
  grid-column: 1;
  min-width: 0;
  width: 100%;
}

.poker-room-sequence__heading {
  margin-bottom: var(--space-6);
}

.poker-room-sequence__heading h2 {
  width: min(100%, 38.75rem);
  margin-top: var(--space-5);
  margin-bottom: 0;
}

.poker-room-sequence__entries {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.poker-room-sequence__entry {
  display: grid;
  grid-template-columns: minmax(2rem, 3.5rem) minmax(0, 1fr);
  gap: var(--space-4);
  min-width: 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-color);
}

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

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

.poker-room-sequence__number {
  margin: 0;
  color: var(--color-dry-clay);
  font-family: var(--font-heading);
  font-size: var(--text-feature);
  line-height: var(--leading-feature);
}

.poker-room-sequence__entry h3,
.poker-room-sequence__entry p {
  max-width: 37.5rem;
}

.poker-room-sequence__entry p:last-child {
  margin-bottom: 0;
}

.poker-room-sequence__material {
  margin-top: var(--space-4) !important;
  color: var(--color-muted-bronze);
}

.poker-room-card-study__layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: var(--space-6);
  align-items: start;
}

.poker-room-card-study__plate,
.poker-room-card-study__caption,
.poker-room-card-study__space {
  min-width: 0;
  width: 100%;
}

.poker-room-card-study__plate {
  grid-column: 1;
  grid-row: 1;
}

.poker-room-card-study__frame img {
  aspect-ratio: 2 / 3;
  object-position: center;
}

.poker-room-card-study__caption {
  grid-column: 2;
  grid-row: 1;
  max-width: 20rem;
}

.poker-room-card-study__caption h2 {
  margin-bottom: var(--space-4);
}

.poker-room-card-study__caption p:last-child {
  margin-bottom: 0;
}

.poker-room-card-study__object-note {
  margin-top: var(--space-5) !important;
  color: var(--color-muted-bronze);
}

.poker-room-card-study__space {
  grid-column: 3;
  grid-row: 1;
}

.poker-room-materials__title {
  width: min(100%, 43.75rem);
  margin-top: var(--space-5);
}

.poker-room-materials__entries {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  row-gap: var(--space-7);
  margin-top: var(--space-6);
}

.poker-room-materials__entry {
  min-width: 0;
  width: 100%;
  max-width: 35rem;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-muted-bronze);
}

.poker-room-materials__entry--left {
  grid-column: 1 / span 6;
}

.poker-room-materials__entry--offset {
  grid-column: 3 / span 6;
}

.poker-room-materials__entry p:last-child {
  margin-bottom: 0;
}

.poker-room-inline-link {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.5rem 0.125rem;
  color: var(--color-charcoal);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left calc(100% - 0.45rem);
  background-size: 100% 1px;
  transition: background-size var(--transition-fast), opacity var(--transition-fast);
}

.poker-room-inline-link:hover,
.poker-room-inline-link:focus-visible {
  background-size: 0 1px;
}

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

.poker-room-lounge__panel {
  padding-block: var(--space-8);
}

.poker-room-lounge__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  width: min(100%, 38.75rem);
  min-width: 0;
}

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

.poker-room-lounge__continue {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  min-width: 0;
  width: min(100%, 35rem);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-color);
}

.poker-room-lounge__continue p {
  margin: 0;
}

.poker-room-lounge__button {
  min-height: 3rem;
}

.poker-room-closing__frame img {
  aspect-ratio: 16 / 9;
  object-position: center;
}

.poker-room-closing__caption {
  width: min(100%, 38.75rem);
  margin-top: var(--space-5);
}

.poker-room-closing__caption h2 {
  margin-bottom: var(--space-4);
}

.poker-room-closing__caption p:last-child {
  margin-bottom: 0;
}

.poker-room-closing__note {
  width: min(100%, 17.5rem);
  margin-top: var(--space-5) !important;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
}

.poker-room-next {
  padding-top: var(--section-space);
  padding-bottom: var(--space-10) !important;
}

.poker-room-next__inner {
  border-top: 1px solid var(--color-charcoal);
  padding-top: var(--space-7);
}

.poker-room-next__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  width: min(100%, 32.5rem);
  min-width: 0;
}

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

.poker-room-next__actions {
  width: auto;
}

.poker-room-next__primary,
.poker-room-next__secondary {
  min-height: 3rem;
}

@media (max-width: 74.999rem) {
  .poker-room-hero {
    padding-top: var(--space-9);
  }

  .poker-room-sequence__panel,
  .poker-room-lounge__panel {
    padding-block: var(--space-7);
  }
}

@media (max-width: 61.249rem) {
  .poker-room-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .poker-room-hero__intro {
    width: min(100%, 38.75rem);
  }

  .poker-room-hero__plate {
    grid-row: 2;
  }

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

  .poker-room-table-study__plate,
  .poker-room-table-study__caption,
  .poker-room-table-study__note {
    grid-column: 1;
  }

  .poker-room-table-study__caption {
    max-width: 31.25rem;
  }

  .poker-room-table-study__note {
    max-width: 31.25rem;
    padding-top: var(--space-4);
  }
}

@media (max-width: 56.249rem) {
  .poker-room-card-study__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  .poker-room-card-study__caption,
  .poker-room-card-study__plate {
    grid-column: 1;
  }

  .poker-room-card-study__caption {
    grid-row: 1;
    max-width: 32.5rem;
  }

  .poker-room-card-study__plate {
    grid-row: 2;
    width: min(100%, 38.75rem);
  }

  .poker-room-card-study__space {
    display: none;
  }
}

@media (max-width: 53.749rem) {
  .poker-room-presence__prose {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-5);
  }

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

  .poker-room-materials__entry--left,
  .poker-room-materials__entry--offset {
    grid-column: 1;
  }
}

@media (max-width: 51.249rem) {
  .poker-room-sequence__panel {
    grid-template-columns: minmax(0, 1fr);
    padding-block: var(--space-6);
  }

  .poker-room-sequence__heading,
  .poker-room-sequence__entries {
    grid-column: 1;
  }

  .poker-room-lounge__panel {
    padding-block: var(--space-6);
  }
}

@media (max-width: 47.999rem) {
  .poker-room-page .section {
    padding-block: var(--space-8);
  }

  .poker-room-hero {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .poker-room-hero__title {
    font-size: clamp(2.75rem, 13vw, 4.5rem);
  }

  .poker-room-hero__lead {
    font-size: 1.125rem;
  }

  .poker-room-composition__reading {
    width: 100%;
  }

  .poker-room-sequence__panel,
  .poker-room-lounge__panel {
    padding-block: var(--space-5);
  }

  .poker-room-closing__frame img {
    aspect-ratio: 4 / 3;
  }

  .poker-room-card-study__frame img {
    aspect-ratio: 4 / 5;
  }

  .poker-room-next {
    padding-bottom: var(--space-8) !important;
  }
}

@media (max-width: 38.749rem) {
  .poker-room-next__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: var(--space-2);
  }

  .poker-room-next__actions > * {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 23.749rem) {
  .poker-room-lounge__button {
    width: 100%;
  }
}

@media (hover: hover) and (pointer: fine) {
  .poker-room-page .gallery-frame:hover img {
    transform: scale(1.015);
  }
}

@media (prefers-reduced-motion: reduce) {
  .poker-room-page .gallery-frame img {
    transition-duration: 0ms;
  }

  .poker-room-page .gallery-frame:hover img {
    transform: none;
  }
}
