/* Pre Nascita: the item comparison stays beside the score. */
.birth-score-demo { padding: clamp(20px,4vw,42px); border: 1px solid #ad90534d; background: linear-gradient(130deg,#422f1780,#151311eb 75%); }
.birth-score-demo h4 { margin: 0; }
.birth-reward-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(22px,5vw,66px); margin-top: 26px; }
.birth-score-controls label,.birth-quality-result { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #e5d3af; font-size: 14px; }
.birth-score-demo input { appearance: none; display: block; margin: 14px 0; height: 22px; background: linear-gradient(90deg,#e1bd79 var(--score-fill),#514535 var(--score-fill)) center / 100% 4px no-repeat; cursor: pointer; }
.birth-score-demo input::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #e1bd79; }
.birth-score-demo input::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #e1bd79; }
.birth-quality-result { margin-top: 22px; }
.birth-quality-result strong { color: #efd194; font: 52px/1 var(--serif); }
.birth-score-demo .birth-reward-preview { display: block; margin: 0; min-width: 0; }
.birth-gear { justify-content: start; gap: 8px; margin-bottom: 9px; }
.birth-gear button { display: flex; align-items: center; gap: 10px; flex: 1; min-height: 58px; padding: 6px 10px; border: 1px solid #82683f88; color: #dbc5a0; background: #1c1712; }
.birth-gear button[aria-pressed=true] { border-color: #d0ac6b; background: #44331f; }
.birth-gear button img { width: 26px; height: 38px; filter: none; }
.birth-item-tooltip.metin-tooltip { width: 100%; max-width: none; min-height: 125px; padding: 12px 14px; }
.birth-score-demo .birth-item-tooltip .tooltip-title { display: block; font: 600 19px/1.3 var(--serif); text-align: left; }
.birth-item-tooltip table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 12px; }
.birth-item-tooltip th,.birth-item-tooltip td { padding: 5px 3px; text-align: left; }
.birth-item-tooltip thead th { color: #c0ad89; font-weight: 400; }
.birth-item-tooltip tbody th { font-weight: 500; }
.birth-item-tooltip td:last-child { color: #a8dab0; font-weight: 700; }
.birth-demo-note { margin-top: 20px; }

/* Harmonize the equipment controls with the blue slate of the Grotto. */
.equipment-chapter { --gear-ink:#e2edf8; --gear-muted:#afc1d2; --gear-edge:#7593ae63; --gear-panel:#131e2bdc; --gear-active:#2c465d; }
.equipment-chapter .atelier-heading::before { color: var(--gear-muted); }
.equipment-chapter :is(.atelier-heading p,.atelier-family,.atelier-inspection .kicker,.evo-selected-item span,.evo-selected-item p,.evo-equipped-summary dt,.evo-accessory-note,.atelier-status,.evo-route small,.render-placeholder small,.render-placeholder>span) { color: var(--gear-muted); }
.equipment-chapter :is(.atelier-heading h3,.render-class,.render-placeholder strong,.atelier-inspection h4,.evo-selected-item h5,.evo-equipped-summary dd,.atelier-routes h4,.atelier-accessory-grid h5) { color: var(--gear-ink); }
.equipment-chapter :is(.atelier-classes button,.atelier-modes button,.atelier-family select,.atelier-stages button,.evo-route button:not(.evo-route-arrow),.equipped-slot) { color: var(--gear-muted); background: var(--gear-panel); border-color: var(--gear-edge); }
.equipment-chapter .equipped-slot[aria-pressed=true],
.equipment-chapter :is(.atelier-classes,.atelier-modes,.atelier-stages,.evo-route) button[aria-pressed=true] { background: linear-gradient(135deg,var(--gear-active),#17283b); border-color: #9bbad7; color: #edf7ff; }
.equipment-chapter :is(.atelier-stages,.atelier-inspection,.evo-selected-item,.evo-equipped-summary>div,.atelier-routes,.atelier-accessory-evolutions,.atelier-status) { border-color: var(--gear-edge); }
.equipment-chapter .evo-route-arrow { color: #b9d4ee; }
.equipment-chapter .has-set-photo { isolation: isolate; background: radial-gradient(ellipse at 50% 58%,#233b50,#181f2d 78%); border-color: var(--gear-edge); }
.equipment-chapter .evo-character-photo { background: transparent; mix-blend-mode: lighten; }
.presentation-part>.quality-chapter.scenic-surface::before,
.presentation-part>.bonus-chapter.scenic-surface::before { opacity: .72; background-image: linear-gradient(180deg,#10172455,var(--scene-tint) 92%),linear-gradient(90deg,#10151d88,#10151d25),var(--scene); }

/* In-game captures retain their original pixels within the chapter composition. */
.system-visual .system-screen,
.news-photo>img,
.atlas-capture .screen-surface { outline: 1px solid color-mix(in srgb,var(--accent,#b89969) 37%,transparent); outline-offset: 0; box-shadow: 0 18px 40px -18px #000b; }
.system-visual .system-screen-image,
.system-visual:hover .system-screen-image { animation: none; filter: none; image-rendering: auto; }
.system-visual figcaption,.news-photo figcaption,.atlas-capture figcaption { border-top: 1px solid color-mix(in srgb,var(--accent,#b89969) 30%,transparent); padding-top: 10px; }
#novita-rendita-online .news-photo>img,#novita-upp-protetto .news-photo>img { display: block; width: auto; max-width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
#sistema-dungeon .system-visual { width: 100%; max-width: none; }
#sistema-dungeon .system-screen { max-width: 100%; }
@media (min-width: 1250px) {
  #sistema-dungeon .system-pair { grid-template-columns: minmax(0,724px) minmax(0,1fr); gap: clamp(28px,4vw,64px); }
}
@media (min-width: 1000px) and (min-height: 800px) and (prefers-reduced-motion: no-preference) {
  .system-spread-row>.system-visual,.system-pair>.system-visual,.news-body>.news-photo { position: sticky; top: 42px; align-self: start; }
}
.scroll-reveal:focus-within { opacity: 1; transform: none; }

/* Keep the old school choices compact, in the introduction. */
#capitolo-concept .classic-chapter { padding-block: clamp(28px,5vw,60px); }
#capitolo-concept .classic-concept-intro { display: block; padding: 0; }
#capitolo-concept .rules-copy { padding: 0; }
#capitolo-concept .rules-copy h3 { margin: 0 0 6px; font-size: clamp(25px,3vw,38px); }
.classic-exclusions { margin-top: 26px; padding-top: 18px; border-top: 1px solid #91765288; }
.classic-exclusions h4 { margin-bottom: 14px; color: #efdbbb; font: 400 clamp(21px,2.4vw,29px)/1.2 var(--serif); }
.classic-exclusion-list { display: grid; grid-template-columns: repeat(9,minmax(0,1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.classic-exclusion-list li {
  display: grid; grid-template-rows: 68px auto 1fr; justify-items: center; align-items: start; gap: 5px;
  min-width: 0; padding: 9px 5px 11px; border: 1px solid #a4885661; background: #1d1813cc; text-align: center;
}
.classic-exclusion-list img { display: block; align-self: center; width: 80%; height: 60px; object-fit: contain; filter: saturate(.65); }
.classic-exclusion-list strong { color: #f0dbb7; font: 400 15px/1.15 var(--serif); }
.classic-exclusion-list span { color: #c9b89d; font-size: 11px; line-height: 1.25; }
.classic-exclusions-source { margin-top: 10px; color: #c3af90; font-size: 11px; }
.classic-exclusions-source a { color: inherit; }
.skill-reaction {
  display: grid; grid-template-columns: 56px minmax(0,1fr); align-items: start; gap: 14px;
  margin-top: 22px; padding: 17px; border: 1px solid #d1a45f75; border-left: 3px solid #d1a45f;
  background: linear-gradient(135deg,#3a2c1eaa,#1a151b); scroll-margin-top: 75px;
}
.skill-reaction img { width: 56px; height: auto; align-self: start; }
.skill-reaction h5 { margin: 0 0 6px; font: 400 21px/1.2 var(--serif); color: #f2d4a3; }
.skill-reaction p:last-child { margin: 0; }
@media (max-width: 1050px) {
  .classic-exclusion-list { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .classic-exclusion-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .skill-reaction { grid-template-columns: 38px minmax(0,1fr); padding: 12px; gap: 9px; }
}
@media (max-width: 760px) {
  .birth-reward-grid { grid-template-columns: 1fr; }
  .birth-item-tooltip.metin-tooltip { padding-inline: 9px; }
}
