.underbed-jump { display: block; margin-top: 1.6rem; padding: .75rem 0; color: var(--cyan); background: none; border: 0; border-bottom: 1px dashed var(--cyan); font-size: .875rem; font-weight: 800; text-align: left; cursor: pointer; min-height: 44px; }
.underbed-continent { width: min(1440px, 100%); margin: 5rem auto; padding: 0 clamp(1rem, 4vw, 4rem); scroll-margin-top: 1rem; }
.underbed-heading { display: grid; grid-template-columns: 1fr 240px; align-items: center; gap: 2rem; margin-bottom: 2rem; border-top: 3px solid var(--cyan); padding-top: 2rem; }
.underbed-heading h2 { margin: 0; text-transform: uppercase; font-size: clamp(2.5rem, 6.8vw, 6rem); line-height: .96; letter-spacing: -.055em; }
.underbed-heading h2 em { color: var(--cyan); font-style: normal; text-shadow: 4px 4px 0 #462858; }
.underbed-heading p:last-child { color: #d5e8d7; font-size: 1.1rem; line-height: 1.5; max-width: 34rem; }
.underbed-seal { position: relative; padding: .65rem; border: 1px solid var(--cyan); transform: rotate(4deg); background: #061918; box-shadow: 8px 8px 0 #332047; }
.underbed-seal img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.underbed-seal span { display: block; padding: .75rem .25rem .25rem; font-size: .8rem; text-align: center; line-height: 1.5; color: var(--cyan); }
.underbed-seal strong { font-size: .75rem; }
.underbed-layout { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.55fr); gap: 1.3rem; align-items: start; }
.exp-briefing, .exp-workspace, .exp-archives article { border: 1px solid #466754; background: linear-gradient(145deg, #102419, #08150f); border-radius: .55rem; padding: clamp(1rem, 2vw, 1.5rem); }
.exp-briefing h3 { font-size: 1.6rem; margin: 1.2rem 0; }
.underbed-continent p { font-size: 1rem; line-height: 1.55; }
.exp-briefing p { color: #d2e2cf; }
.exp-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.exp-roles button { padding: .75rem .2rem; display: flex; flex-direction: column; gap: .4rem; align-items: center; background: #08130c; color: var(--paper); border: 1px solid #71916b; border-radius: .35rem; cursor: pointer; }
.exp-roles b { color: var(--cyan); font-size: 1.4rem; }
.exp-roles span { font-size: .875rem; line-height: 1.2; }
.exp-roles small { color: #c4d8c5; font-size: .75rem; line-height: 1.3; }
.exp-roles [aria-pressed="true"] { border-color: var(--cyan); background: #154239; box-shadow: inset 0 -3px var(--cyan); }
.exp-briefing label { display: block; font-size: .875rem; font-weight: 800; margin: 1.3rem 0 .5rem; }
.exp-briefing label span { font-weight: 400; }
.exp-briefing select, .exp-briefing input[type="text"] { width: 100%; min-height: 48px; padding: .65rem; font: inherit; font-size: 1rem; border: 1px solid #8db79a; border-radius: .25rem; color: var(--paper); background: #07130d; }
.exp-briefing select:focus-visible, .exp-briefing input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.exp-briefing :disabled { opacity: .65; cursor: not-allowed; }
.exp-seed-actions { display: flex; gap: .4rem; margin-top: .5rem; }
.exp-seed-actions button { flex: 1; min-height: 44px; font-size: .875rem; padding: .6rem; border: 1px solid #759477; color: var(--paper); background: #163024; border-radius: .25rem; cursor: pointer; }
#expSeedHint, .exp-difficulty small { display: block; margin-top: .5rem; color: #bfd2bf; font-size: .75rem; line-height: 1.5; }
.exp-difficulty { border-top: 1px solid #41634b; padding-top: 1rem; min-height: 44px; line-height: 1.5; }
.exp-difficulty input { width: 20px; height: 20px; vertical-align: middle; accent-color: var(--magenta); margin-right: .35rem; }
.exp-start { width: 100%; padding: 1rem .65rem; min-height: 52px; margin-top: .75rem; border: 1px solid var(--cyan); color: #071a16; background: var(--cyan); border-radius: .3rem; font-size: .95rem; font-weight: 900; cursor: pointer; }
.exp-start.confirming { background: var(--magenta); border-color: var(--magenta); color: #170812; }
.exp-cancel { width: 100%; margin-top: .5rem; min-height: 44px; color: var(--paper); background: #143424; border: 1px solid #7fbb87; cursor: pointer; }
.exp-briefing .exp-storage { font-size: .8rem; color: #bed1c0; }
.exp-dashboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.exp-dashboard div { min-width: 0; border-right: 1px solid #426a51; }
.exp-dashboard div:last-child { border: 0; }
.exp-dashboard small { display: block; color: #c2d7c4; font-size: .75rem; line-height: 1.4; }
.exp-dashboard strong { font-size: clamp(1.35rem, 3vw, 2.3rem); line-height: 1.5; font-variant-numeric: tabular-nums; color: var(--cyan); }
.exp-alarm-track { height: 7px; margin: .65rem 0 1rem; background: #283e31; border-radius: 2px; overflow: hidden; }
.exp-alarm-track span { display: block; height: 100%; width: 0; background: var(--magenta); transition: width 180ms ease; }
.exp-map-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .8rem; color: #c5dfd3; overflow-wrap: anywhere; }
.exp-map-heading b { color: var(--magenta); }
.exp-instruction { color: #d2e8d4; margin: 1rem 0; }
.exp-mission-tracker { padding: 1rem; border: 1px solid #abc98a; background: #1a301b; color: #e6ffcb; margin: 1rem 0; }
.exp-mission-tracker > strong { font-size: 1rem; line-height: 1.5; }
.exp-cargo-checklist { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.exp-cargo-checklist span { padding: .4rem .55rem; border: 1px dashed #9abf81; border-radius: .25rem; font-size: .875rem; line-height: 1.4; }
.exp-cargo-checklist .collected { background: var(--matcha); color: #13280b; border-style: solid; font-weight: 800; }
.exp-vacuum-guide { border-left: 3px solid #ff9ed9; padding: .7rem 1rem; background: #27192c; color: #efd4e8; }
.exp-vacuum-guide > b { color: #ffb8df; font-size: .875rem; }
.exp-vacuum-guide p { margin: .4rem 0; }
.exp-vacuum-guide > span { font-size: .875rem; line-height: 1.5; color: #ddc7fb; }
.exp-turn-result { padding: .85rem; min-height: 3.4rem; color: #d2f7ee; border: 1px solid #528176; background: #0e3028; }
.exp-turn-result[data-kind='pickup'] { border-color: var(--matcha); color: #edffd4; background: #263d18; }
.exp-turn-result[data-kind='contact'] { border-color: #ff83bd; color: #ffe1ed; background: #4b1f37; }
.exp-square-guide { min-height: 3rem; color: #d9e6cd; border-left: 2px solid #6c9f85; padding-left: .75rem; }
.exp-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; padding: .45rem; border: 1px solid #4b9983; background: #061310; border-radius: .45rem; }
.exp-board:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.exp-cell { position: relative; min-width: 0; min-height: 70px; aspect-ratio: 1.04; padding: .35rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; color: #d5e5d2; background: #12241c; border: 1px solid #527461; border-radius: .25rem; cursor: default; overflow: hidden; }
.exp-cell[aria-disabled="false"] { cursor: pointer; border-color: #b8e8c6; background: #1d3a2d; }
.exp-cell[aria-disabled="false"]:hover { background: #2b5040; }
.exp-cell .exp-coordinate { position: absolute; top: .2rem; left: .25rem; font-size: .75rem; color: #b7d2bc; }
.exp-cell .exp-symbol { font-size: clamp(1.2rem, 3vw, 2.2rem); font-weight: 900; line-height: 1.3; }
.exp-cell .exp-cell-label { font-size: .75rem; font-weight: 800; line-height: 1; min-height: .8rem; color: #d4e9d7; }
.exp-cell.cargo .exp-symbol { color: var(--matcha); }
.exp-cell.relic .exp-symbol { color: var(--violet); }
.exp-cell.sun .exp-symbol { color: #fff29f; }
.exp-cell.donut .exp-symbol { color: #81bfff; }
.exp-cell.squeak .exp-symbol, .exp-cell.gate .exp-symbol { color: #ffb094; }
.exp-cell.used:not(.current):not(.exit) .exp-symbol { opacity: .45; }
.exp-cell.exit { border: 2px solid var(--matcha); }
.exp-cell.current { color: #041b12; background: var(--matcha); border: 2px solid #f0ffcb; box-shadow: 0 0 20px #b8ff3e26; }
.exp-cell.current .exp-symbol, .exp-cell.current .exp-cell-label, .exp-cell.current .exp-coordinate { color: #082919; opacity: 1; }
.exp-cell.vacuum { box-shadow: inset 0 0 0 2px var(--magenta); }
.exp-cell .exp-vacuum { position: absolute; right: .2rem; top: .15rem; font-size: .75rem; background: #ff9ed9; color: #23121c; padding: .05rem .2rem; font-weight: 900; }
.exp-cell.next { border-bottom: 4px solid #ff9ed9; }
.exp-cell .exp-next { position: absolute; bottom: .15rem; right: .2rem; font-size: .75rem; color: #ffb2e0; font-weight: 900; }
.exp-cell.current .exp-next { color: #5b1745; }
.exp-cell.next .exp-cell-label { padding-bottom: .9rem; }
.exp-cell .exp-next { left: 50%; right: auto; transform: translateX(-50%); }
.exp-cell.gate .exp-symbol { font-size: 1.25rem; }
.exp-cell .exp-cell-label { max-width: 100%; letter-spacing: -.025em; }
#expCargoLegend { width: 100%; color: var(--matcha); font-weight: 800; font-size: .875rem; }
.exp-legend { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: .85rem 0; color: #d3e5d4; font-size: .8rem; }
.exp-legend b { color: var(--cyan); }
.exp-action-bar { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: .5rem; margin-top: 1rem; }
.exp-action-bar button { min-height: 52px; padding: .6rem; border: 1px solid #a0ccb0; border-radius: .3rem; background: #18402f; color: var(--paper); font-size: .875rem; font-weight: 800; cursor: pointer; }
.exp-action-bar button:first-child { color: var(--cyan); border-color: var(--cyan); }
.exp-action-bar button:last-child { color: var(--matcha); border-color: var(--matcha); }
.exp-action-bar button:disabled { opacity: .45; cursor: not-allowed; }
.exp-support-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .6rem; }
.exp-support-row button, .exp-support-row a { min-height: 44px; padding: .65rem; font-size: .875rem; }
.exp-support-row button { color: #d6c5f5; border: 1px solid #aa88d0; background: #271d33; border-radius: .25rem; cursor: pointer; }
.exp-support-row button:disabled { opacity: .45; cursor: not-allowed; }
.exp-support-row a { color: var(--cyan); text-underline-offset: 4px; }
.exp-support-row a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.registry-expedition-return { display: block; min-height: 44px; padding: .75rem 0; color: var(--cyan); font-size: .875rem; line-height: 1.5; text-underline-offset: 3px; }
.registry-expedition-return:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.mutation-archive, .case-archive { grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); }
.mutation-archive span, .case-archive span { min-height: 44px; font-size: .75rem; }
.mutation-archive button, .case-archive button { width: 100%; min-height: 44px; padding: .2rem; color: inherit; font: inherit; background: transparent; border: 0; cursor: pointer; }
#mutationBiography:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.exp-transmission { background: #06150f; border-left: 3px solid var(--cyan); padding: 1rem; min-height: 6.5rem; color: #d9efdc; }
.exp-result { border: 1px solid var(--matcha); padding: 1.3rem; background: radial-gradient(ellipse at 90% 0, #38662066, transparent), #142416; }
.exp-result > span { color: var(--matcha); font-size: .8rem; font-weight: 800; letter-spacing: .08em; }
.exp-result h3 { font-size: 1.8rem; line-height: 1.1; margin: .6rem 0; }
#expResultStamps { display: flex; flex-wrap: wrap; gap: .4rem; }
#expResultStamps span { font-size: .8rem; padding: .4rem .5rem; border: 1px dashed #a5bd7f; border-radius: .2rem; }
.exp-field-guide { margin-top: 1.2rem; border-top: 1px solid #567361; padding-top: .5rem; color: #d4e2d0; }
.exp-field-guide summary { min-height: 44px; padding: .65rem 0; cursor: pointer; font-size: .875rem; color: var(--cyan); }
.exp-field-guide summary:focus-visible, .exp-exhibit:focus-visible, .exp-result:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.exp-archives { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-top: 1.3rem; }
.exp-archive-heading { display: flex; align-items: start; gap: 1rem; justify-content: space-between; }
.exp-archive-heading h3 { font-size: 1.5rem; margin: 0; }
.exp-archive-heading span { font-size: 1.25rem; font-weight: 900; color: var(--cyan); white-space: nowrap; }
.exp-archives p { color: #c3d9c8; }
.exp-relic-grid, .exp-ending-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.exp-relic-grid button, .exp-ending-grid button { min-height: 72px; min-width: 0; padding: .6rem .25rem; border: 1px dashed #73866d; border-radius: .25rem; background: #0a170f; color: #c6d1c0; font-size: .875rem; cursor: pointer; }
.exp-relic-grid button.found { color: var(--cyan); border-style: solid; border-color: var(--cyan); background: #143c31; }
.exp-ending-grid button.found { color: var(--matcha); border-style: solid; border-color: var(--matcha); background: #1e3815; }
.exp-relic-grid b, .exp-ending-grid b { display: block; font-size: 1.35rem; line-height: 1.3; }
.exp-relic-grid span, .exp-ending-grid span { display: block; font-size: .75rem; margin-top: .25rem; }
.exp-exhibit { margin-top: 1.3rem; padding: 1.3rem 1.5rem; border: 1px solid #8b73a4; border-left: 5px solid var(--violet); background: #201c2b; }
.exp-exhibit > span { color: #d5bdff; font-size: .75rem; font-weight: 800; }
.exp-exhibit h3 { margin: .55rem 0; font-size: 1.35rem; }
.exp-exhibit p { margin: .5rem 0 0; color: #e0d8eb; }
.exp-passport { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding: 1rem .25rem; font-size: .875rem; color: #c9ddc3; }
.exp-passport strong { color: var(--matcha); }
.exp-final-secret { padding: 2rem; text-align: center; border: 2px solid var(--magenta); background: linear-gradient(120deg, #213c25, #3b203d); }
.exp-final-secret > span { color: var(--magenta); font-weight: 900; font-size: .875rem; }
.exp-final-secret h3 { font-size: clamp(2rem, 4vw, 4rem); margin: .8rem 0; }
.underbed-continent [hidden] { display: none !important; }
@media (max-width: 980px) {
  .underbed-layout { grid-template-columns: minmax(235px, .8fr) minmax(0, 1.3fr); gap: .8rem; }
  .exp-roles { grid-template-columns: 1fr; }
  .exp-roles button { display: grid; grid-template-columns: 3rem 1fr; text-align: left; padding: .55rem; }
  .exp-roles b { grid-row: span 2; }
  .exp-roles span, .exp-roles small { width: 100%; }
  .exp-cell { min-height: 62px; }
  .exp-action-bar { grid-template-columns: 1fr 1fr; }
  .exp-action-bar button:first-child { grid-column: 1 / -1; }
  .exp-dashboard small { font-size: .75rem; }
}
@media (max-width: 740px) {
  .underbed-heading { grid-template-columns: 1fr 130px; gap: 1rem; }
  .underbed-heading h2 { font-size: clamp(2rem, 7vw, 3.8rem); }
  .underbed-seal { transform: rotate(2deg); padding: .3rem; }
  .underbed-seal span { font-size: .75rem; }
  .underbed-seal strong { font-size: .75rem; }
  .underbed-layout { grid-template-columns: 1fr; }
  .exp-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .exp-roles button { display: flex; text-align: center; }
  .exp-roles span, .exp-roles small { width: auto; }
  .exp-archives { grid-template-columns: 1fr; }
  .exp-board { gap: .25rem; padding: .3rem; }
  .exp-cell { min-height: 82px; }
  .exp-start { position: relative; }
}
@media (max-width: 420px) {
  .underbed-heading { grid-template-columns: 1fr; }
  .underbed-seal { display: none; }
  .underbed-heading h2 { font-size: 3rem; }
  .exp-workspace { padding: .65rem; }
  .exp-cell { aspect-ratio: .65; min-height: 82px; }
  .exp-cell .exp-symbol { font-size: 1.1rem; }
  .exp-dashboard strong { font-size: 1.5rem; }
  .exp-cell .exp-coordinate { font-size: .75rem; }
  .exp-cell .exp-next { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .exp-alarm-track span { transition: none; } }
