.fishing-hero .slots-hero-art {
  background-image: url('assets/fishing-hero.webp');
  background-position: right center
}

.fishing-hero:after {
  background: linear-gradient(90deg, #031125f5, #05182ce8 26%, #03172b70 58%, transparent 85%)
}

.fishing-hero h1 span {
  color: #75d8ff
}

.fishing-hero .eyebrow {
  color: #ed8eff
}

.fishing-hero .slots-hero-copy {
  max-width: 880px
}

.fishing-content .gallery-panel {
  background: linear-gradient(130deg, #121b39, #041b30);
  border-color: #224865
}

.fishing-content .game-card {
  border-color: #315c85
}

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

.fishing-content .library-tile span {
  font-size: 14px;
  min-height: 46px
}

.fishing-content .library-tile img {
  aspect-ratio: 1.4
}

.fishing-pair {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px
}

.fishing-pair>.panel {
  height: 100%;
  min-width: 0
}

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

.fishing-content .section-heading p,
.fishing-content p,
.fishing-content table {
  font-size: 14px;
  line-height: 1.65
}

.costs-panel {
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: hidden
}

.cost-art {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 150px;
  margin-top: 15px;
  padding: 22px 8px;
  pointer-events: none;
  transition: opacity .2s
}

.credit-token,
.credit-total {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  flex: none;
  border: 4px solid #ffe092;
  border-radius: 50%;
  background: radial-gradient(at 35% 25%, #fff2a0, #f3b719 45%, #be6504);
  box-shadow: 0 0 15px #ffb93630;
  color: #78330a;
  font-size: 24px;
  font-weight: 800;
  line-height: 1
}

.credit-total {
  width: 85px;
  height: 85px;
  font-size: 25px
}

.shot-token {
  display: grid;
  place-items: center;
  width: 60px;
  height: 65px;
  border: 1px solid #d99cff;
  border-radius: 13px;
  background: linear-gradient(135deg, #af50df, #4b237a);
  font-size: 25px;
  font-weight: 800;
  line-height: 1
}

.cost-times,
.cost-equals {
  font-size: 28px;
  color: #d6baf1;
  font-weight: 700
}

.costs-panel:has(details[open]) .cost-art {
  position: absolute;
  inset: auto 12px 16px;
  z-index: -1;
  opacity: .12;
  min-height: 0
}

.calculator-panel {
  background: linear-gradient(130deg, #122b4e, #08162e) !important;
  border-color: #375288 !important
}

.calculator-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 14px;
  padding: 15px;
  border: 1px solid #334c78;
  border-radius: 11px;
  background: #15294a;
  margin-bottom: 13px
}

.calculator-field label {
  font-size: 14px;
  font-weight: 600;
  align-self: center;
  line-height: 1.5
}

.calculator-field input[type=number] {
  width: 100%;
  min-height: 40px;
  border: 1px solid #8293dc;
  border-radius: 7px;
  background: #06132b;
  color: #fff;
  text-align: center;
  font: 700 18px/1.4 Inter, Arial, sans-serif;
  padding: 5px;
  appearance: textfield
}

.calculator-field input[type=number]::-webkit-inner-spin-button {
  appearance: none
}

.calculator-field input[type=range] {
  grid-column: 1/-1;
  width: 100%;
  height: 22px;
  margin: 0;
  accent-color: #e457f5;
  cursor: pointer
}

.calculator-field input:focus-visible {
  outline: 2px solid #f0a3ff;
  outline-offset: 3px
}

.calculator-field input[aria-invalid=true] {
  border-color: #ff8095
}

.cost-result {
  padding: 16px;
  text-align: center;
  border: 1px solid #2ac6e2;
  border-radius: 12px;
  background: radial-gradient(at center, #115672, #07263f)
}

.cost-result>span {
  font-size: 14px;
  font-weight: 600
}

.cost-result output {
  display: block;
  margin: 6px 0;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff
}

.cost-result p {
  font-size: 14px;
  color: #d6f8ff
}

.calculator-note {
  margin: 12px 0 0;
  color: #c2d3e8;
  font-size: 12px !important;
  line-height: 1.65
}

.room-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.room-cards>div {
  padding: 14px;
  border: 1px solid #1a9bcd;
  border-radius: 10px;
  background: linear-gradient(135deg, #075391, #082746)
}

.room-cards>div+div {
  border-color: #a64bdf;
  background: linear-gradient(135deg, #661faa, #24184a)
}

.room-cards h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 9px
}

.room-cards p {
  margin: 8px 0;
  color: #e1ebf7
}

.room-panel>p {
  margin: 12px 0 0;
  color: #c8d6e9
}

.room-differences {
  margin-top: 15px
}

.room-differences>summary {
  color: #e3beff;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  line-height: 1.5
}

.room-differences .table-wrap {
  margin: 8px 0
}

.room-differences table {
  font-size: 12px
}

.room-differences th {
  width: 28%
}

.fishing-controls-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden
}

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

.controls-water-art {
  position: absolute;
  z-index: -1;
  inset: auto 14px 10px;
  height: 190px;
  border-radius: 14px;
  background: linear-gradient(0deg, #08224130, #08182a99), url('assets/games/ocean-king.webp') center 55%/cover;
  opacity: .45;
  pointer-events: none;
  mask-image: linear-gradient(transparent, #000 25%, #000 80%, transparent)
}

.fishing-controls-panel:has(details[open]) .controls-water-art {
  opacity: .12
}

.fishing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px
}

.fishing-feature-grid>article {
  min-width: 0;
  padding: 15px;
  border: 1px solid #354a74;
  border-radius: 10px;
  background: linear-gradient(140deg, #142848, #0b1630)
}

.fishing-feature-grid .ui-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  margin-bottom: 12px
}

.fishing-feature-grid h3 {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px
}

.fishing-feature-grid p {
  margin: 7px 0 0;
  color: #d3deed
}

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

.fishing-content #game-dialog-content>p {
  font-size: 14px
}

.fishing-content .screen-labels>div {
  background: linear-gradient(135deg, #172b46, #0b1a31)
}

@media(min-width:681px) and (max-width:1250px) {
  .fishing-pair {
    grid-template-columns: 1fr
  }

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

  .cost-art {
    min-height: 150px
  }

  .fishing-controls-panel {
    min-height: 440px
  }

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

@media(max-width:680px) {
  .fishing-hero .slots-hero-art {
    background-position: 68% center
  }

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

  .fishing-content .library-tile img {
    aspect-ratio: 1.25
  }

  .fishing-pair {
    grid-template-columns: 1fr
  }

  .room-cards {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .fishing-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
  }

  .fishing-feature-grid>article {
    padding: 13px
  }

  .fishing-controls-panel {
    min-height: 430px
  }

  .calculator-field {
    padding: 13px;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 80px
  }

  .cost-art {
    gap: 8px
  }

  .credit-token {
    width: 60px;
    height: 60px;
    font-size: 22px
  }

  .credit-total {
    width: 73px;
    height: 73px;
    font-size: 22px
  }

  .shot-token {
    width: 50px;
    height: 58px;
    font-size: 23px
  }

  .cost-times,
  .cost-equals {
    font-size: 23px
  }

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

  .cost-result output {
    font-size: 38px
  }
}

@media(max-width:360px) {
  .fishing-feature-grid {
    grid-template-columns: 1fr
  }

  .cost-art {
    gap: 6px
  }

  .credit-token {
    width: 50px;
    height: 50px;
    font-size: 20px
  }

  .credit-total {
    width: 65px;
    height: 65px;
    font-size: 20px
  }

  .shot-token {
    width: 45px;
    height: 50px;
    font-size: 20px
  }

  .cost-times,
  .cost-equals {
    font-size: 20px
  }

  .calculator-field {
    padding: 11px;
    grid-template-columns: minmax(0, 1fr) 70px
  }

  .fishing-content .library-tile span {
    font-size: 13px
  }
}

/* Polished slider tracks consistent with the neon calculator styling. */
.calculator-field input[type=range] {
  appearance: none;
  background: transparent
}

.calculator-field input[type=range]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 8px;
  background: linear-gradient(90deg, #db42ed, #4568a7)
}

.calculator-field input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 2px solid #ffd3ff;
  border-radius: 50%;
  background: #d746ed;
  box-shadow: 0 0 9px #e746e950
}

.calculator-field input[type=range]::-moz-range-track {
  height: 6px;
  border-radius: 8px;
  background: linear-gradient(90deg, #db42ed, #4568a7)
}

.calculator-field input[type=range]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 2px solid #ffd3ff;
  border-radius: 50%;
  background: #d746ed
}

/* Detailed artwork has its own space; expanded desktop text uses a subdued backdrop. */
.costs-panel {
  min-height: 430px
}

.cost-art {
  position: relative;
  z-index: 0;
  inset: auto;
  flex: 1;
  min-height: 240px;
  height: 260px;
  margin: 18px 0 0;
  padding: 0;
  opacity: 1;
  pointer-events: none
}

.cost-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 540px;
  margin: auto;
  object-fit: contain;
  filter: drop-shadow(0 7px 14px #020b2455)
}

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

.costs-panel:has(details[open]) .cost-art {
  position: absolute;
  inset: auto 12px 12px;
  z-index: -1;
  opacity: .08;
  min-height: 0;
  height: 260px;
  margin: 0
}

@media(max-width:680px) {

  .cost-art,
  .costs-panel:has(details[open]) .cost-art {
    position: relative;
    inset: auto;
    z-index: 0;
    flex: none;
    height: 125px;
    min-height: 125px;
    margin: 16px 0 0;
    opacity: 1
  }

  .cost-art img {
    max-width: 210px
  }
}
