.slots-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 300px;
  background: #070d24
}

.slots-hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('assets/slot-hero.webp') right center/cover no-repeat
}

.slots-hero:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #040c22f5, #060c25e8 25%, #070d2470 56%, transparent 85%)
}

.slots-hero-copy {
  padding: 22px 28px 30px;
  max-width: 800px
}

.slots-hero h1 {
  margin: 10px 0 16px;
  line-height: 1.14;
  text-transform: none
}

.slots-hero h1 span {
  line-height: 1.18;
  padding-bottom: .12em;
  margin-bottom: -.12em
}

.slots-hero-copy>p:not(.eyebrow) {
  max-width: 570px;
  line-height: 1.65;
  text-shadow: 0 1px 6px #000
}

.slots-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 470px;
  margin-top: 21px
}

.slots-hero-actions a {
  gap: 10px
}

.slots-content {
  padding-top: 16px
}

.slots-content>.panel,
.library-comparison,
.learning-grid {
  margin-bottom: 14px
}

.slots-content .section-heading h2 {
  font-size: var(--heading-size);
  line-height: 1.25
}

.slots-content .section-heading p,
.slots-content p,
.slots-content table,
.slots-content button {
  font-size: 14px
}

.gallery-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px
}

.gallery-header .section-heading {
  margin: 0
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0
}

.gallery-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid #6b47ad;
  border-radius: 50%;
  background: #112343;
  color: #b8baff;
  line-height: 1
}

.gallery-controls button:first-child {
  width: auto;
  padding: 8px 13px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
  background: #47216b;
  color: #f2b8ff
}

.gallery-controls #previous-game svg {
  transform: rotate(180deg)
}

.gallery-controls svg {
  width: 17px;
  height: 17px
}

.gallery-controls button:disabled {
  opacity: .35;
  cursor: default
}

.gallery-controls button[aria-pressed=true] {
  background: #9b32c9;
  color: #fff
}

.game-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 65px)/6);
  gap: 13px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #4e366e transparent;
  padding: 18px 2px 12px;
  scroll-padding: 2px
}

.game-card {
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid #4c3776;
  border-radius: 8px;
  padding: 7px;
  background: linear-gradient(135deg, #121d3c, #08112b);
  display: flex;
  flex-direction: column
}

.game-card>img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.45;
  object-fit: cover;
  border-radius: 5px
}

.game-card h3 {
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 5px;
  min-height: 42px
}

.game-card ul {
  padding: 0;
  margin: 0 0 10px;
  list-style: none;
  font-size: 12px;
  line-height: 1.65;
  color: #c6d2ee
}

.game-card li {
  margin: 2px 0
}

.game-card li:before {
  content: '·';
  color: #c489ff;
  margin-right: 5px
}

.game-card button {
  display: block;
  text-align: left;
  border: 0;
  background: none;
  color: #e797ff;
  padding: 3px 0;
  margin-top: auto;
  line-height: 1.5;
  font-size: 12px;
  min-height: 32px;
  font-weight: 600
}

.game-card button:hover {
  text-decoration: underline;
  text-underline-offset: 3px
}

.gallery-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center
}

.gallery-footer p {
  font-size: 11px;
  color: #a2b0ce;
  line-height: 1.5
}

.gallery-footer p:first-child {
  color: #dcb8ff
}

.filter-panel {
  position: relative
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  align-items: center
}

.filter-label {
  font-size: 12px;
  min-width: 100px;
  color: #b5c4df;
  font-weight: 600
}

.filter-chip {
  border: 1px solid #444c87;
  border-radius: 22px;
  background: #0a1936;
  color: #e7e5fa;
  padding: 8px 13px;
  min-height: 38px;
  line-height: 1.5;
  font-size: 12px !important
}

.filter-chip.selected,
.filter-chip[aria-pressed=true] {
  border-color: #c85bff;
  background: linear-gradient(110deg, #b82ee9, #7329da);
  color: #fff;
  box-shadow: 0 0 12px #a330e830
}

.filter-chip:hover {
  border-color: #c078ed
}

.filter-guide {
  margin-top: 15px;
  border-top: 1px solid #2c3458;
  padding-top: 10px
}

.filter-guide>summary {
  cursor: pointer;
  min-height: 36px;
  color: #cfb3ef;
  font-size: 14px;
  line-height: 1.6
}

.filter-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 14px
}

.filter-guide-grid h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 12px
}

.filter-guide-grid h4 {
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0 5px;
  color: #ead7ff
}

.filter-guide-grid p {
  font-size: 14px;
  line-height: 1.7;
  color: #c8d4e7
}

.library-comparison {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  align-items: stretch
}

.library-comparison>.panel {
  height: 100%;
  min-width: 0
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px
}

.library-tile {
  min-width: 0;
  padding: 4px;
  border: 1px solid #323f69;
  background: #081634;
  color: #e2e4f3;
  border-radius: 6px;
  text-align: left;
  transition: border-color .2s, transform .2s
}

.library-tile:hover {
  border-color: #d378ff;
  transform: translateY(-2px)
}

.library-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px
}

.library-tile span {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  padding: 5px 2px;
  overflow-wrap: anywhere;
  min-height: 35px
}

.comparison-panel .device-tabs {
  max-width: none;
  margin-bottom: 12px
}

.comparison-panel .device-tabs button {
  font-size: 12px;
  padding: 8px;
  line-height: 1.4
}

.comparison-panel table {
  font-size: 12px
}

.comparison-panel th {
  width: 36%
}

.comparison-panel td:nth-child(2) {
  width: 16%
}

.slots-content th,
.slots-content td {
  padding: 9px 8px;
  line-height: 1.6
}

.slots-content thead th {
  font-weight: 700;
  background: #26214c
}

.text-action {
  border: 0;
  background: none;
  color: #e393ff;
  padding: 12px 0 0;
  font-weight: 600;
  font-size: 14px;
  min-height: 40px;
  line-height: 1.5
}

.published-panel table {
  font-size: 14px
}

.published-panel th {
  width: 45%
}

.no-results {
  padding: 20px 0;
  color: #e6c9ff
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch
}

.learning-grid>.panel {
  height: 100%;
  min-width: 0
}

.learning-grid .section-heading h2 {
  font-size: 21px
}

.learning-grid .section-heading .ui-icon {
  width: 28px;
  height: 30px;
  flex-basis: 28px
}

.explain-item {
  border-top: 1px solid #303855
}

.explain-item summary {
  cursor: pointer;
  min-height: 44px;
  padding: 11px 4px 11px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #e1c5ff
}

.explain-item p {
  font-size: 14px;
  line-height: 1.7;
  color: #c6d2e6;
  margin: 0 0 13px
}

.screen-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center
}

.slot-schematic {
  margin: 0;
  padding: 16px;
  border: 1px solid #77518a;
  border-radius: 14px;
  background: radial-gradient(ellipse at center, #a82b8150, transparent 85%), #1d113a
}

.slot-schematic figcaption {
  font-size: 12px;
  color: #ccb4e8;
  margin-bottom: 14px;
  text-align: center
}

.schematic-top,
.schematic-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px
}

.slot-schematic b {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid #eeb0ff;
  border-radius: 50%;
  background: #8e39be;
  color: #fff;
  font-size: 13px;
  margin-right: 3px
}

.schematic-reels {
  position: relative;
  display: flex;
  gap: 8px;
  margin: 17px 0;
  padding: 12px;
  border: 3px solid #ecb445;
  border-radius: 12px;
  background: #490c3d
}

.schematic-reels>span {
  display: grid;
  place-items: center;
  flex: 1;
  height: 130px;
  border: 2px solid #ffd46a;
  border-radius: 8px;
  background: linear-gradient(#ffd98b, #fff2bf, #de951f);
  font-size: 90px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: #df2330;
  text-shadow: 2px 3px #8c0b29
}

.reel-marker {
  position: absolute;
  top: -13px;
  left: 40%
}

.payline-marker {
  position: absolute;
  right: -14px;
  top: 45%
}

.schematic-spin {
  display: block;
  border: 1px solid #ef9bff;
  border-radius: 7px;
  padding: 9px 15px;
  background: linear-gradient(#c343ec, #7d19a5);
  font-weight: 700
}

.screen-labels>div {
  padding: 10px 0;
  border-bottom: 1px solid #293551
}

.screen-labels>div:last-child {
  border: 0
}

.screen-labels h3 {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 6px
}

.screen-labels p {
  font-size: 14px;
  line-height: 1.65;
  color: #c7d4e9
}

.slot-faq .faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start
}

.slot-faq .faq-grid>details {
  min-width: 0;
  width: 100%
}

.slot-faq .faq-grid>details>summary {
  min-height: 76px;
  padding: 12px
}

.more-guides {
  padding: 16px 12px
}

.more-guides h2 {
  font-size: 18px;
  margin-bottom: 16px
}

.more-guides>div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px
}

.more-guides a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-left: 1px solid #3e3e70;
  color: #d8b4f9;
  font-size: 13px
}

.more-guides a:hover {
  color: #fff
}

#game-dialog {
  color: #f5f3ff;
  width: min(680px, calc(100% - 28px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  border: 1px solid #a34de3;
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #251a43, #07172e);
  box-shadow: 0 15px 70px #000a
}

#game-dialog::backdrop {
  background: #010718d9;
  backdrop-filter: blur(5px)
}

#close-game {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 1px solid #8058a5;
  border-radius: 50%;
  background: #2c1b46;
  color: #fff;
  font-size: 27px;
  line-height: 1
}

#game-dialog-content>img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 11px;
  float: left;
  margin: 0 22px 16px 0
}

#game-dialog-title {
  font-size: 26px;
  line-height: 1.25;
  margin: 15px 30px 14px 0
}

#game-dialog-content>p {
  line-height: 1.75;
  margin-bottom: 16px
}

#game-dialog-content dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  clear: both;
  gap: 0;
  font-size: 14px
}

#game-dialog-content dt,
#game-dialog-content dd {
  margin: 0;
  padding: 9px;
  border-bottom: 1px solid #333c5b;
  line-height: 1.6
}

#game-dialog-content dt {
  color: #e2b8ff;
  font-weight: 600
}

.dialog-art-note {
  font-size: 12px;
  color: #a4b3cd;
  clear: both
}

body.game-dialog-open {
  overflow: hidden
}

@media(min-width:1600px) {
  .slots-hero {
    min-height: 340px
  }

  .slots-hero-copy {
    padding-top: 32px
  }

  .game-gallery {
    grid-auto-columns: calc((100% - 65px)/6)
  }
}

@media(min-width:681px) and (max-width:1300px) {
  .slots-hero-copy {
    max-width: 700px;
    padding-left: 22px
  }

  .game-gallery {
    grid-auto-columns: calc((100% - 39px)/4)
  }

  .gallery-header {
    flex-direction: column;
    gap: 12px
  }

  .gallery-controls {
    align-self: flex-end
  }

  .library-comparison {
    grid-template-columns: 1fr
  }

  .library-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr))
  }

  .learning-grid {
    grid-template-columns: 1fr
  }

  .learning-grid .section-heading h2 {
    font-size: var(--heading-size)
  }

  .screen-layout {
    grid-template-columns: 1fr
  }

  .filter-guide-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:680px) {
  .slots-hero {
    min-height: 0
  }

  .slots-hero-copy {
    padding: 20px 16px 26px;
    max-width: 100%
  }

  .slots-hero-art {
    background-position: 70% center;
    opacity: .65
  }

  .slots-hero:after {
    background: linear-gradient(90deg, #070b24ed, #0a0d2790)
  }

  .slots-hero-copy>p:not(.eyebrow) {
    max-width: none
  }

  .slots-hero-actions {
    gap: 10px;
    max-width: none
  }

  .slots-hero-actions a {
    min-height: 56px;
    padding: 10px 9px;
    font-size: 14px;
    gap: 6px
  }

  .gallery-header {
    flex-direction: column;
    gap: 12px
  }

  .gallery-controls {
    align-self: flex-end;
    gap: 8px
  }

  .gallery-controls button {
    width: 40px;
    height: 40px
  }

  .game-gallery {
    grid-auto-columns: calc((100% - 12px)/2);
    gap: 12px;
    padding-top: 15px
  }

  .game-card {
    padding: 7px
  }

  .game-card h3 {
    min-height: 42px
  }

  .game-card ul {
    font-size: 12px
  }

  .game-card button {
    font-size: 13px;
    min-height: 40px
  }

  .gallery-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px
  }

  .gallery-footer p {
    font-size: 12px
  }

  .filter-label {
    width: 100%;
    min-width: 0
  }

  .filter-group {
    gap: 8px;
    margin: 14px 0
  }

  .filter-chip {
    min-height: 42px;
    font-size: 13px !important;
    padding: 9px 12px
  }

  .filter-guide-grid {
    grid-template-columns: 1fr;
    gap: 18px
  }

  .library-comparison,
  .learning-grid,
  .screen-layout {
    grid-template-columns: 1fr
  }

  .library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px
  }

  .library-tile span {
    font-size: 12px;
    min-height: 40px
  }

  .comparison-panel .device-tabs button {
    font-size: 13px;
    min-height: 48px
  }

  .slots-content .section-heading h2,
  .learning-grid .section-heading h2 {
    font-size: var(--heading-size)
  }

  .comparison-panel table {
    font-size: 13px
  }

  .slots-content .comparison-panel th,
  .slots-content .comparison-panel td {
    padding: 8px 6px
  }

  .schematic-reels>span {
    height: 100px;
    font-size: 65px
  }

  .slot-schematic {
    padding: 13px
  }

  .schematic-bottom {
    gap: 6px
  }

  .schematic-spin {
    padding: 8px;
    font-size: 12px
  }

  .slot-faq .faq-grid {
    grid-template-columns: 1fr
  }

  .slot-faq .faq-grid>details>summary {
    min-height: 88px
  }

  .more-guides>div {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .more-guides a {
    font-size: 14px
  }

  #game-dialog {
    padding: 20px 16px;
    max-height: calc(100dvh - 24px)
  }

  #game-dialog-content>img {
    float: none;
    width: 100%;
    height: auto;
    max-height: 220px;
    aspect-ratio: 1.5;
    object-fit: cover;
    margin: 26px 0 16px
  }

  #game-dialog-title {
    font-size: 24px;
    margin: 12px 0
  }

  #game-dialog-content dl {
    grid-template-columns: 100px 1fr
  }

  #game-dialog-content dt,
  #game-dialog-content dd {
    padding: 8px 5px
  }
}

@media(max-width:360px) {
  .slots-hero-actions {
    grid-template-columns: 1fr
  }

  .slots-hero-actions a {
    min-height: 46px
  }

  .game-gallery {
    grid-auto-columns: 80%
  }

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

  .gallery-controls {
    gap: 6px
  }

  .gallery-controls button {
    width: 36px;
    height: 36px
  }

  .gallery-controls button:first-child {
    padding: 8px 10px
  }

  .comparison-panel .device-tabs button {
    font-size: 12px
  }

  .schematic-reels>span {
    height: 85px;
    font-size: 54px
  }

  .schematic-top,
  .schematic-bottom {
    font-size: 10px
  }

  .slot-schematic b {
    width: 19px;
    height: 19px;
    font-size: 11px
  }

  .schematic-spin {
    padding: 7px;
    font-size: 10px
  }
}

@media(hover:none) {
  .library-tile:hover {
    transform: none
  }
}

/* Shared readable type scale and a clear current-page state. */
.game-card ul,
.game-card button,
.library-tile span,
.comparison-panel table,
.comparison-panel .device-tabs button {
  font-size: var(--text-size)
}

.library-tile span {
  min-height: 47px;
  line-height: 1.5
}

.side-nav a[aria-current="page"] {
  background: linear-gradient(105deg, #a62cf3, #651282);
  color: #fff;
  box-shadow: 0 0 20px #ac20f225
}

/* Simplified collection and six equally sized screen-reading cards. */
.library-comparison {
  grid-template-columns: minmax(0, 1fr)
}

.screen-layout {
  display: block
}

.screen-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px
}

.screen-labels>div {
  padding: 16px;
  border: 1px solid #394469;
  border-radius: 10px;
  background: linear-gradient(135deg, #251e40, #0b1a31)
}

.screen-labels>div:last-child {
  border: 1px solid #394469
}

.screen-labels h3 {
  margin-bottom: 9px
}

.game-card h3 {
  min-height: 0;
  margin: 9px 0
}

.game-card button {
  margin-top: auto
}

@media(max-width:900px) {
  .screen-labels {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:480px) {
  .screen-labels {
    grid-template-columns: 1fr
  }
}

/* Side arrows and pagination dots replace the control bar and scrollbar. */
.gallery-track {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
  margin-top: 10px
}

.gallery-track .game-gallery {
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px
}

.gallery-track .game-gallery::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0
}

.gallery-side-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  padding: 8px;
  border: 1px solid #685292;
  border-radius: 20px;
  background: #14223e;
  color: #d9b7ff
}

.gallery-side-arrow svg {
  width: 18px;
  height: 18px
}

#previous-game svg {
  transform: rotate(180deg)
}

.gallery-side-arrow:disabled {
  opacity: .3;
  cursor: default
}

.gallery-side-arrow:not(:disabled):hover {
  background: #512279;
  color: #fff
}

.gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 12px
}

.gallery-dots button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 12px
}

.gallery-dots button:before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #686f9e;
  transition: background .2s, box-shadow .2s
}

.gallery-dots button[aria-current="page"]:before {
  background: #d387ff;
  box-shadow: 0 0 9px #d366ff85
}

@media(max-width:680px) {
  .gallery-track {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 5px
  }

  .gallery-side-arrow {
    width: 30px;
    height: 44px;
    padding: 6px
  }

  .gallery-dots {
    gap: 0
  }

  .gallery-dots button {
    width: 20px;
    height: 30px
  }
}

/* One integrated filter-and-library block with native, accessible dropdowns. */
.filter-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 14px;
  margin: 18px 0 22px
}

.filter-select-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: #ded5ee;
  font-size: 14px;
  font-weight: 600
}

.filter-select-label select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 32px 10px 12px;
  border: 1px solid #5c4b83;
  border-radius: 9px;
  background: #111d38;
  color: #f3ecff;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  color-scheme: dark
}

.filter-select-label select:hover {
  border-color: #c27ce8
}

.filter-select-label select:focus-visible {
  outline: 2px solid #e49bff;
  outline-offset: 3px
}

.reset-dropdowns {
  min-height: 46px;
  padding: 10px 15px;
  border: 1px solid #965db8;
  border-radius: 9px;
  background: #302044;
  color: #f5dbff;
  white-space: nowrap;
  font-size: 14px
}

.reset-dropdowns:disabled {
  opacity: .4;
  cursor: default
}

.filter-panel>.library-grid {
  padding-top: 18px;
  border-top: 1px solid #303952
}

@media(max-width:1000px) {
  .filter-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .reset-dropdowns {
    grid-column: 1/-1;
    justify-self: end
  }
}

@media(max-width:600px) {
  .filter-toolbar {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 18px
  }

  .reset-dropdowns {
    width: 100%;
    justify-self: stretch
  }

  .filter-select-label select {
    min-height: 48px
  }
}

/* Contextual artwork fills the shorter learning card naturally. */
.understanding-panel {
  display: flex;
  flex-direction: column
}

.understanding-art {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 160px;
  padding: 20px 0 8px;
  margin-top: 12px;
  background: radial-gradient(ellipse, #7333ae25, transparent 70%)
}

.understanding-art img {
  display: block;
  width: 100%;
  max-width: 310px;
  height: auto;
  max-height: 245px;
  object-fit: contain;
  filter: drop-shadow(0 7px 15px #03081955)
}

@media(max-width:680px) {
  .understanding-art {
    min-height: 140px;
    padding-top: 12px
  }

  .understanding-art img {
    max-height: 200px;
    max-width: 280px
  }
}

/* Keep artwork behind the explanations instead of adding to card height. */
.understanding-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block
}

.understanding-panel>.section-heading,
.understanding-panel>.explain-item {
  position: relative;
  z-index: 1
}

.understanding-art {
  position: absolute;
  z-index: 0;
  inset: auto 8px 12px;
  display: grid;
  place-items: center;
  height: 245px;
  min-height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  opacity: .9;
  transition: opacity .25s ease, filter .25s ease
}

.understanding-art img {
  width: 100%;
  height: 100%;
  max-width: 310px;
  max-height: 245px;
  object-fit: contain
}

.understanding-panel:has(.explain-item[open]) .understanding-art {
  opacity: .13;
  filter: saturate(.6)
}

.understanding-panel:has(.explain-item[open]) .explain-item p {
  color: #e4eaf7;
  text-shadow: 0 1px 4px #071022
}

@media(max-width:1300px) {
  .understanding-panel {
    min-height: 285px
  }

  .understanding-art {
    left: auto;
    right: 8px;
    width: 48%;
    height: 190px
  }

  .understanding-panel>.explain-item {
    max-width: 100%
  }
}

@media(max-width:680px) {
  .understanding-panel {
    min-height: 270px
  }

  .understanding-art {
    height: 175px;
    width: 65%;
    right: 4px;
    bottom: 8px
  }
}

@media(prefers-reduced-motion:reduce) {
  .understanding-art {
    transition: none
  }
}
