.adventures-modal { width: min(700px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-sizing: border-box; padding: 26px; overflow-y: auto; overflow-x: hidden; text-align: left; }
.adventures-modal > * { min-width: 0; }
.adventures-modal .adventure-close { position: sticky; top: 0; float: right; z-index: 4; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f4d7dc; color: #513a3d; font-size: 28px; }
.adventure-heading { padding-right: 40px; }
.adventures-modal h2 { font-size: clamp(25px,5vw,34px); line-height: 1.25; margin: 8px 0 12px; overflow-wrap: anywhere; }
.adventures-modal h3 { font-size: 22px; line-height: 1.3; margin: 8px 0; overflow-wrap: anywhere; }
.adventures-modal p,.adventures-modal li { font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.adventures-modal .eyebrow { font-size: 13px; }
.adventure-card { margin-top: 20px; padding: 20px; border-radius: 24px; border: 2px solid #e7c9d3; background: #fff4f8; }
.boss-card { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 18px; background: linear-gradient(130deg,#e6f7ff,#fff6fb); border-color: #a8d6e4; }
.adventures-modal .adventure-meta { font: 13px/1.5 system-ui,sans-serif; color: #6a7889; }
.boss-phase-preview { padding-left: 20px; margin: 10px 0; }
.boss-phase-preview li { font-size: 14px; }
.boss-cat-illustration { position: sticky; top: 56px; z-index: 0; align-self: start; margin-top: 28px; width: 96px; height: 108px; border: 3px solid #725875; border-radius: 45% 45% 42% 42%; background: #e7cbe8; box-shadow: inset -9px -12px 0 #cba6d7,0 10px 0 #a8d5e477; }
.boss-ear { position: absolute; top: -22px; width: 0; height: 0; border-left: 19px solid transparent; border-right: 19px solid transparent; border-bottom: 33px solid #725875; z-index: -1; }
.boss-ear::after { content: ""; position: absolute; top: 7px; left: -14px; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 25px solid #e7cbe8; }
.boss-ear.left { left: 1px; transform: rotate(-22deg); }.boss-ear.right { right: 1px; transform: rotate(22deg) scaleX(-1); }
.boss-cat-face { position: absolute; top: 37px; width: 100%; text-align: center; color: #725875; font: bold 23px/1.3 system-ui; }
.boss-ice-spark { position: absolute; bottom: -12px; left: -6px; border: 2px solid #8bc3db; background: #d3f3ff; border-radius: 8px; width: 35px; height: 35px; text-align: center; color: #4e9bbf; font: 28px/32px system-ui; }
.adventures-modal .adventure-status { color: #8b5273; font-size: 14px; }
.adventure-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.adventure-actions button { flex: 1 1 180px; min-height: 46px; margin: 0; white-space: normal; }
.adventures-modal .primary-button,.adventures-modal .secondary-button { min-height: 46px; white-space: normal; overflow-wrap: anywhere; }
.adventure-card-copy > .primary-button { width: 100%; margin-top: 12px; }
.adventure-small,.adventures-modal .adventure-small { font-size: 14px; color: #796a78; }
.trio-preview { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 12px 0; }
.trio-preview li { flex: 1 1 130px; padding: 10px; border: 1px solid #eacfd7; background: white; border-radius: 14px; font-size: 14px; }
.adventures-modal .adventure-trust-note,.adventures-modal .adventure-save-note { margin: 18px 0 0; font-size: 13px; line-height: 1.6; color: #786e79; }
.adventures-modal .adventure-save-note { padding: 12px; background: #eef4ec; border-radius: 14px; color: #5d775a; }
.adventures-modal .adventure-warning { background: #fff0d5; color: #885c31; }
.adventure-result-modal { text-align: center; }
.adventure-result-pet { font-size: 56px; margin-top: 10px; }
.boss-hearts { color: #e2688d; font-size: 30px !important; letter-spacing: 8px; }
.trio-scorecards { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 12px; margin: 18px 0; text-align: left; }
.trio-scorecard { padding: 14px; background: #fff; border: 1px solid #ead4da; border-radius: 18px; min-width: 0; }
.trio-scorecard h3 { font-size: 18px; }
.trio-score-summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }.trio-score-summary b { color: #d25b83; font-size: 22px; }
.trio-scorecard ol { padding: 0; list-style: none; }.trio-scorecard li { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; padding: 8px 0; border-top: 1px dashed #ead4da; }
@media(max-width:480px) {
  .adventures-modal { padding: 20px 16px; }
  .adventure-card { padding: 16px; }
  .boss-card { grid-template-columns: 58px minmax(0,1fr); gap: 14px; }
  .boss-card { gap: 4px 14px; }
  .boss-phase-preview { display: none; }
  .boss-card .adventure-card-copy > p { margin: 8px 0; }
  .boss-card .adventure-card-copy { display: contents; }
  .boss-card .adventure-card-copy > * { grid-column: 1 / -1; }
  .boss-card .adventure-card-copy > .eyebrow,.boss-card .adventure-card-copy > h3,.boss-card .adventure-card-copy > .adventure-meta { grid-column: 2; }
  .boss-cat-illustration { grid-column: 1; grid-row: 1 / span 3; position: relative; top: auto; width: 55px; height: 70px; margin-top: 18px; border-width: 2px; }
  .boss-ear { width: 0; height: 0; top: -15px; border-left-width: 11px; border-right-width: 11px; border-bottom-width: 20px; }.boss-ear::after { top: 5px; left: -7px; border-left-width: 7px; border-right-width: 7px; border-bottom-width: 14px; }.boss-cat-face { font-size: 15px; top: 24px; }.boss-ice-spark { width: 24px; height: 25px; bottom: -7px; font-size: 19px; line-height: 23px; }
  .trio-scorecards { grid-template-columns: minmax(0,1fr); }
}
@media(max-height:480px) and (orientation:landscape) {
  .adventures-modal { padding: 16px 20px; }
  .adventure-heading > p,.boss-card .adventure-card-copy > p:not(.adventure-meta):not(.adventure-status),.boss-phase-preview { display: none; }
  .adventure-heading h2 { font-size: 23px; margin: 5px 0; }.adventure-card { padding: 12px 16px; margin-top: 12px; }.boss-cat-illustration { margin-top: 18px; }.adventures-modal h3 { margin: 4px 0; font-size: 20px; }.adventure-card-copy > .primary-button { margin-top: 6px; }
}
