dialog[data-panel="travel"] {
  width:min(1120px,98vw,140dvh); max-width:100vw; max-height:95dvh;
  border:0; padding:0; background:transparent;
}
dialog[data-panel="travel"]::backdrop { background:#25253932 }
dialog[data-panel="travel"] .dialog-head { position:absolute; z-index:4; right:.6%; top:2%; padding:0 }
dialog[data-panel="travel"] #panel-title { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%) }
dialog[data-panel="travel"] #panel-body { overflow-x:hidden; scrollbar-width:none }
.field-journal { position:relative; display:grid; grid-template-columns:minmax(0,55fr) minmax(0,45fr); gap:.6%; align-items:center; padding:5px 1%; overflow:clip }
.field-journal[data-view="maps"] { display:block }
.journal-back { position:absolute; z-index:3; left:4%; top:3%; border:5px solid transparent; border-image:url("./assets/travel-journal/place-tag.png") 5 fill / 5px; padding:2px 6px; background:transparent; color:#503a2d; font:15px/1.2 var(--game-body) }
.atlas,.travel-note { position:relative; min-width:0; isolation:isolate; container-type:inline-size; image-rendering:pixelated }
.atlas { aspect-ratio:5/6 }
.atlas-sheet {
  position:absolute; left:15.5%; top:6%; width:80%; aspect-ratio:540/684; z-index:0;
  background:center/100% 100% no-repeat;
}
.atlas-sheet.in-front { left:2%; top:13%; width:80%; z-index:2 }
.field-journal:not([data-view="maps"]) .atlas-sheet:not(.in-front) {
  left:calc(12% + var(--fan) * 5%); top:calc(8% - var(--fan) * 3%);
  transform:rotate(4deg); transform-origin:center;
}
.field-journal:not([data-view="maps"]) .atlas-sheet:not(.in-front) :is(.chart-pins,.chart-geography) { visibility:hidden }
.field-journal[data-view="maps"] .atlas {
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:16px 0;
  aspect-ratio:auto; padding:36px 2.5% 24px;
}
.field-journal[data-view="maps"] .atlas-sheet {
  position:relative; flex:0 0 48%; left:auto; top:auto;
  container-type:inline-size;
}
.field-journal[data-view="maps"] .atlas-sheet:nth-child(even) { margin-left:-1%; top:8px }
.sheet-pick { position:absolute; inset:0; width:100%; height:100%; padding:0; border:0; background:transparent }
.sheet-pick:active { translate:none }
.sheet-tab {
  position:absolute; top:31%; right:.8%; padding:5px 1px; writing-mode:vertical-rl;
  text-orientation:upright; letter-spacing:.12em; color:#fff4da;
  border:5px solid transparent; border-image:url("./assets/travel-journal/place-tag-selected.png") 5 fill / 5px;
  font:clamp(12px,2.35cqw,16px)/1 var(--game-body);
}
.atlas-sheet[data-group="해외"] .sheet-tab { color:#493d31; border-image-source:url("./assets/travel-journal/place-tag.png") }
.sheet-pick:focus-visible { outline:none }
.sheet-pick:focus-visible .sheet-tab {
  outline:2px solid #ffe9b7; outline-offset:1px;
}
.chart-pins { position:absolute; inset:0; pointer-events:none }
.map-pin {
  position:absolute; display:grid; place-items:center; width:24px; height:24px; padding:0; border:0;
  transform:translate(-50%,-50%); background:transparent; pointer-events:auto;
}
.map-pin::before {
  content:""; position:absolute; left:calc(50% - 5px); bottom:50%; width:10px; height:12px;
  background:linear-gradient(#bb7458 0 25%,#a36249 25% 59%,#77513c 59%);
  clip-path:polygon(30% 0,70% 0,70% 9%,90% 9%,90% 25%,100% 25%,100% 58%,80% 58%,80% 75%,60% 75%,60% 100%,40% 100%,40% 83%,30% 83%,30% 75%,20% 75%,20% 58%,0 58%,0 25%,10% 25%,10% 9%,30% 9%);
}
.map-pin::after { content:""; position:absolute; width:3px; height:2px; left:calc(50% - 2px); bottom:calc(50% + 8px); background:#ffe5ae; pointer-events:none }
.pin-label {
  display:inline-flex; align-items:center;
  position:absolute; bottom:calc(50% + 13px); left:50%; transform:translateX(-50%);
  white-space:nowrap; padding:0 3px 1px; color:#503a2d;
  border:5px solid transparent; border-image:url("./assets/travel-journal/place-tag.png") 5 fill / 5px;
  font:clamp(11px,2.45cqw,16px)/1.08 var(--game-body);
}
.map-pin[data-side="below"] .pin-label { top:calc(50% + 2px); bottom:auto }
.map-pin:is([data-side="left"],[data-side="right"]) .pin-label { top:calc(50% - 5px); bottom:auto; left:calc(50% + 7px); transform:translateY(-50%) }
.map-pin[data-side="left"] .pin-label { left:auto; right:calc(50% + 7px) }
.map-pin:is(:hover,:focus-within) { z-index:2 }
.map-pin:has(.pin-name[aria-pressed="true"]) .pin-label { border-image-source:url("./assets/travel-journal/place-tag-selected.png"); color:#fff5db }
.pin-name { border:0; background:transparent; padding:1px 2px; color:inherit; font:inherit }
.chart-geography {
  position:absolute; transform:translate(-50%,-50%); pointer-events:none; white-space:nowrap;
  color:#425a50; opacity:.9; letter-spacing:.12em; text-shadow:0 1px #e0d9b7;
  font:clamp(10px,2cqw,14px)/1 var(--game-body);
}
.travel-note {
  aspect-ratio:566/710; color:#523b31;
}
.travel-note::before {
  content:""; position:absolute; inset:13% 1% 1%; z-index:-1; pointer-events:none;
  background:url("./assets/travel-journal/memo-notebook.webp") center/100% 100% no-repeat;
}
.journal-print {
  position:absolute; left:15%; top:5.7%; width:72%; aspect-ratio:451/314;
  --photo-frame:url("./assets/travel-journal/photo-frames/tide-edge.webp");
  --photo-window:url("./assets/travel-journal/photo-frames/tide-edge-window.png");
  --paper-edge:#b88661;
  transform:rotate(var(--photo-angle,-3deg));
  filter:drop-shadow(-1px 0 0 var(--paper-edge)) drop-shadow(1px 0 0 var(--paper-edge))
         drop-shadow(0 -1px 0 var(--paper-edge)) drop-shadow(0 1px 0 var(--paper-edge));
}
.journal-print[data-frame="torn-corner"] {
  --photo-frame:url("./assets/travel-journal/photo-frames/torn-corner.webp");
  --photo-window:url("./assets/travel-journal/photo-frames/torn-corner-window.png");
}
.journal-print::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:var(--photo-frame) center/100% 100% no-repeat;
}
.photo-window {
  position:absolute; z-index:-1; inset:0; width:100%; height:100%;
  mask:var(--photo-window) center/100% 100% no-repeat;
}
.travel-illustration {
  position:absolute; left:3.8%; top:6%; width:92.4%; height:75.5%;
  object-fit:cover; image-rendering:pixelated;
}
.travel-note-copy {
  position:absolute; inset:51% 11% 9% 15%; overflow:auto; scrollbar-width:thin;
}
.note-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:3.2cqw }
.travel-note h3 { margin:0; color:#714039; font:clamp(19px,6.5cqw,32px)/1.25 var(--game-title); overflow-wrap:anywhere }
.travel-note h3:focus { outline:none }
.journal-videos { display:grid }
.note-hearts {
  flex:none;
  color:#543a31; font:clamp(12px,2.8cqw,16px)/1.35 var(--game-body);
}
.journal-prompt {
  grid-column:1/-1; width:fit-content; max-width:95%; margin:0 auto 6px; text-align:center;
  color:#503a2d; font:clamp(13px,1.6vw,17px)/1.4 var(--game-body); padding:2px 10px;
  border:5px solid transparent; border-image:url("./assets/travel-journal/place-tag.png") 5 fill / 5px;
}
.travel-heart {
  display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:32px;
  padding:1px 7px; color:#553b32; border:5px solid transparent; pointer-events:auto;
  border-image:url("./assets/travel-journal/place-tag.png") 5 fill / 5px;
  background:transparent; font:inherit; font-variant-numeric:tabular-nums;
}
.travel-heart[aria-pressed="true"] { color:#813643 }
.travel-heart:disabled { cursor:wait }
.heart-status { grid-column:1/-1; color:#583a31; background:#ffeac6; justify-self:center }
.heart-status:empty { display:none }
.travel-heart.pin-heart { margin:-4px -4px -4px 0; padding:3px; border:0; min-height:24px; min-width:24px; background:none }
.travel-heart i {
  width:18px; height:16px; flex:none; image-rendering:pixelated;
  background:url("./assets/travel-journal/heart.png") left center no-repeat;
}
.travel-heart[aria-pressed="true"] i { background-position:right center }
.journal-video {
  display:flex; justify-content:space-between; align-items:baseline; gap:4px; color:#553e32;
  padding-block:1.4cqw; font:clamp(13px,3.8cqw,19px)/1.4 var(--game-body); text-decoration:none;
}
.journal-video small { color:#796552; font-size:.78em }
a.journal-video small { color:#225d59; text-decoration:underline; text-underline-offset:3px }
@media(max-width:740px) {
  dialog[data-panel="travel"] { width:min(535px,98vw) }
  dialog[data-panel="travel"] .dialog-head { top:0 }
  .field-journal { display:block; padding:0 1% 8px }
  .field-journal[data-view="maps"] .atlas { flex-wrap:nowrap; justify-content:start; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; gap:4%; padding:32px 4% 20px; scroll-snap-type:x proximity }
  .field-journal[data-view="maps"] .atlas-sheet { flex-basis:91%; scroll-snap-align:center }
  .field-journal:not([data-view="maps"]) { padding-top:28px }
  .journal-back { top:2px }
  .travel-note { width:min(100%,420px); margin:auto }
}
/* The artwork is the board; the calendar grid and the memo stay interactive. */
@font-face {
  font-family:DosMyungjo;
  src:url("./assets/fonts/dos-myungjo/DOSMyungjo.woff") format("woff");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
dialog:is([data-panel="schedule"],[data-panel="fish-guide"]) {
  width:min(1392px,98vw,208dvh); max-width:100vw; max-height:96dvh;
  border:0; padding:0; background:transparent;
}
dialog:is([data-panel="schedule"],[data-panel="fish-guide"])::backdrop { background:#2525391a }
dialog:is([data-panel="schedule"],[data-panel="fish-guide"]) .dialog-head { position:absolute; z-index:3; right:.4%; top:2%; padding:0 }
dialog:is([data-panel="schedule"],[data-panel="fish-guide"]) #panel-title {
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%);
}
dialog:is([data-panel="schedule"],[data-panel="travel"],[data-panel="fish-guide"]) #close {
  width:clamp(32px,3.3vw,48px); height:auto; aspect-ratio:1;
  background:url("./assets/winter-calendar/button_close.webp") center/contain no-repeat;
}
dialog:is([data-panel="schedule"],[data-panel="travel"],[data-panel="fish-guide"]) #close::before,.month-controls button::before { display:none }
.calendar {
  --ink:#4a3029; --wine:#943e40; --blue:#31576c; color:var(--ink);
  display:grid; grid-template-columns:minmax(0,56.4fr) minmax(0,43.6fr); align-items:center;
  padding:1% 1.6% 1.2% 1.3%; image-rendering:pixelated;
}
.planner-page,.agenda { position:relative; min-width:0; isolation:isolate; container-type:inline-size }
.planner-page {
  aspect-ratio:875/796;
  /* Align the bottom frame corners above the hanging ribbon and tape. */
  translate:0 2.25%;
  background:url("./assets/winter-calendar/calendar_panel.webp") center/100% 100% no-repeat;
}
.month-nav { position:absolute; left:36%; right:6%; top:12.2cqw; height:7.8cqw; display:flex; align-items:center; justify-content:space-between; gap:2% }
.month-nav h3 {
  display:flex; align-items:baseline; gap:1.1cqw; white-space:nowrap; color:#ffedcf;
  font:clamp(21px,6.25cqw,47px)/1 DosMyungjo,var(--game-body); text-shadow:0 2px #603531;
}
.month-nav small { font-size:clamp(13px,3.7cqw,29px) }
.month-controls { display:flex; align-items:center; gap:.7cqw }
.month-controls button {
  width:clamp(26px,6.5cqw,50px); height:auto; aspect-ratio:1; background:center/contain no-repeat;
}
.month-controls button:first-child { background-image:url("./assets/winter-calendar/button_prev.webp") }
.month-controls button:last-child { background-image:url("./assets/winter-calendar/button_next.webp") }
.month-controls button:hover,dialog:is([data-panel="schedule"],[data-panel="travel"],[data-panel="fish-guide"]) #close:hover { filter:brightness(1.12) }
.dates {
  position:absolute; left:15.6%; right:7.4%; top:29.4%; height:49%;
  --dot-size:clamp(4px,.9cqw,7px); --dot-space:clamp(2px,.45cqw,4px);
  display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); grid-template-rows:.84fr repeat(var(--weeks),1fr);
  justify-items:stretch; align-items:stretch; text-align:center;
}
.dates > span,.dates button { display:grid; place-items:center; font:700 clamp(15px,3.62cqw,28px)/1 var(--game-body) }
.dates > span { border-bottom:2px solid #aa7f605c; font-size:clamp(14px,3.35cqw,26px) }
.dates > span:first-child,.dates button:nth-child(7n+1) { color:var(--wine) }
.dates > span:nth-child(7),.dates button:nth-child(7n) { color:var(--blue) }
.dates button {
  grid-template-rows:minmax(0,1fr) calc(var(--dot-size) + 2 * var(--dot-space));
  min-width:0; min-height:0; border:0; padding:0; background:transparent; color:var(--ink);
}
.dates button:active { translate:none }
.date-number { display:grid; place-items:center; place-self:stretch; pointer-events:none }
.dates button:hover .date-number { background-color:#b87d4d25 }
.dates button[aria-current="date"]:not([aria-pressed="true"]) .date-number { text-decoration:underline; text-underline-offset:2px }
.dates button[aria-pressed="true"] .date-number {
  color:#fff0d6; text-shadow:0 1px #643434;
  margin-inline:-2px;
  background:url("./assets/winter-calendar/date-selected-stars.png") center / 100% min(100%,5.8cqw) no-repeat;
}
.dates button[aria-pressed="true"] .date-number.painted { position:relative; color:transparent; text-shadow:none; background:none }
.selected-date-badge { position:absolute; pointer-events:none }
@media (forced-colors:active) {
  .dates button[aria-pressed="true"] .date-number.painted { color:HighlightText; background:Highlight }
  .selected-date-badge { display:none }
}
.date-marks { display:flex; gap:var(--dot-space); justify-content:center; align-items:center; pointer-events:none }
.schedule-dot { border-radius:50%; background:#b14341 }
.schedule-dot[data-color="green"] { background:#36764c }
.date-marks .schedule-dot { width:var(--dot-size); height:var(--dot-size) }
.calendar button:focus-visible,dialog:is([data-panel="schedule"],[data-panel="fish-guide"]) #close:focus-visible {
  outline:2px solid #885038; outline-offset:-2px; border-radius:3px;
}
.month-controls button:focus-visible { outline-color:#fff0d2 }
.agenda {
  aspect-ratio:612/718;
  background:url("./assets/winter-calendar/memo_panel.webp") center/100% 100% no-repeat;
}
.agenda::after {
  position:absolute; pointer-events:none; background:center/contain no-repeat;
  content:""; right:-1.1%; top:36%; width:16.8%; aspect-ratio:124/190;
  background-image:url("./assets/winter-calendar/cotton_sprig.webp");
}
.day-number {
  position:absolute; left:6.5%; top:18.8%; width:26.3%; height:15%;
  display:grid; place-items:center;
  color:#893b43; font:700 clamp(36px,11.8cqw,72px)/1 var(--game-body);
}
.agenda > strong {
  /* The first printed rule is 197px from the top of the 718px memo artwork. */
  position:absolute; left:34%; right:28%; bottom:72.6%; white-space:nowrap; text-align:center;
  font:700 clamp(12px,3.85cqw,23px)/1.2 var(--game-body);
}
.agenda-entries {
  position:absolute; left:10.2%; right:16.2%; top:40.8cqw; bottom:17.4%; overflow:auto; scrollbar-width:thin;
  padding-inline-start:clamp(14px,3.65cqw,22px);
  overflow-wrap:anywhere; word-break:keep-all; overscroll-behavior:contain; scrollbar-color:#ad896d transparent;
}
.agenda p,.upload-entry time { font:700 clamp(14px,3.65cqw,22px)/1.6 var(--game-body) }
.upload-entry { display:flex; flex-wrap:wrap; gap:0 1.5cqw; align-items:baseline; margin-bottom:1.6cqw }
.upload-entry time { color:var(--wine) } .upload-entry p { flex:1 1 55% }
.upload-title .schedule-dot {
  display:inline-block; width:.62em; aspect-ratio:1; vertical-align:.05em; margin-right:.45em;
}
.upload-entry .upload-note { flex-basis:100%; margin-top:.45em; font-weight:400; font-size:clamp(13px,3.2cqw,20px) }
@media(max-width:700px) and (orientation:portrait), (max-width:510px) {
  dialog:is([data-panel="schedule"],[data-panel="fish-guide"]) { width:min(464px,calc(100vw - 8px)); max-height:96dvh; padding-top:32px }
  dialog:is([data-panel="schedule"],[data-panel="fish-guide"]) .dialog-head { top:0; right:0 }
  .calendar { grid-template-columns:1fr; gap:2px; padding:5px 6px 2px }
  .planner-page { translate:none }
  .dates { top:27.5%; height:54% }
  .dates button { font-size:clamp(15px,4.8cqw,18px) } .dates > span { font-size:15px; border-bottom-width:1px }
  .month-nav { left:33% } .month-nav h3 { font-size:clamp(21px,6cqw,29px) }
  .agenda { width:94%; justify-self:center; margin-top:-2% }
}

dialog[data-panel="fish-guide"] {
  width:min(1120px,85vw,124dvh); padding:0; color:#50372e;
}
dialog[data-panel="fish-guide"] .dialog-head { top:.8%; right:0 }
.fish-guide { position:relative; aspect-ratio:1574/1042; image-rendering:pixelated }
.codex-book {
  position:absolute; top:5.3%; left:1.5%; width:94.9%; aspect-ratio:1493/936;
  background:url("./assets/fish-guide/codex/book_base.png") center/100% 100% no-repeat;
}
.fish-index,.fish-detail { position:absolute; top:0; bottom:0; width:50%; container-type:inline-size }
.fish-index { left:0 }
.fish-detail { right:0 }
.codex-title {
  position:absolute; inset:7% 16% auto 29%; margin:0; padding-top:17%; text-align:center;
  background:url("./assets/fish-guide/codex/title_ribbon_fish.png") center top/100% auto no-repeat;
  font:700 clamp(17px,4.3cqw,31px)/1.15 var(--game-body); color:#513c36;
}
.catch-choices {
  position:absolute; left:20.5%; right:6%; top:27%;
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:2.5cqw;
}
.catch-choices > * {
  aspect-ratio:125/120; min-width:0; border:0; background:center/contain no-repeat;
}
.catch-choices button {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2%;
  padding:5%; color:#4c392f; background-image:url("./assets/fish-guide/codex/fish_slot_empty.png");
}
.catch-choices button[aria-pressed="true"] { background-image:url("./assets/fish-guide/codex/fish_slot_selected.png"); color:#314c58 }
.catch-choices button:hover { filter:brightness(1.05) }
.catch-choices button:focus-visible,.fish-back:focus-visible { outline:2px solid #475e70; outline-offset:1px }
.catch-choices button img { display:block; width:92%; height:58%; object-fit:contain }
.catch-choices button span { font:700 clamp(11px,2.6cqw,18px)/1.2 var(--game-body); white-space:nowrap }
.unknown-catch { background-image:url("./assets/fish-guide/codex/fish_slot_unknown.png") }
.catch-summary {
  position:absolute; left:20%; right:6%; top:81.8%; text-align:center;
  color:#70523e; font:clamp(13px,3.35cqw,23px)/1.3 var(--game-body);
}
.specimen-plate {
  position:absolute; left:10%; top:11.5%; width:76%; aspect-ratio:315/138;
  display:grid; place-items:center;
}
.specimen-plate img { width:86%; height:78%; min-height:0; object-fit:contain }
.specimen-heading {
  position:absolute; isolation:isolate; left:22%; top:40.5%; width:52%; min-height:8%;
  margin:0; display:grid; place-items:center;
  font:700 clamp(19px,5.4cqw,38px)/1 var(--game-body);
}
.specimen-heading::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; transform:rotate(-1deg);
  background:rgb(208 194 175 / 62%);
  clip-path:polygon(1% 0,99% 0,99% 13%,100% 13%,100% 31%,99% 31%,99% 51%,98% 51%,98% 66%,99% 66%,99% 83%,98% 83%,98% 100%,0 100%,0 82%,1% 82%,1% 65%,0 65%,0 45%,1% 45%,1% 25%,2% 25%,2% 12%,1% 12%);
}
.specimen-heading:focus { outline:none }
.specimen-info {
  position:absolute; left:14.5%; right:14%; top:52.5%; bottom:12%;
  overflow:auto; scrollbar-width:thin; scrollbar-color:#b19070 transparent; overflow-wrap:anywhere; word-break:keep-all;
}
.specimen-catch,.specimen-description { padding-left:6.4cqw; background-position:left top; background-repeat:no-repeat }
.specimen-catch {
  padding-block:.25cqw 1.4cqw; background-image:url("./assets/fish-guide/codex/icon_location.png");
  background-size:3.6cqw auto; font:700 clamp(14px,3.55cqw,24px)/1.4 var(--game-body);
}
.specimen-description {
  margin-top:1.8cqw; background-image:url("./assets/fish-guide/codex/icon_note.png");
  background-size:4.2cqw auto; background-position:left .6cqw;
}
.specimen-description i { display:block; margin-bottom:.6cqw; color:#705742; font:italic clamp(13px,2.8cqw,20px)/1.2 Georgia,serif }
.specimen-notes { font:clamp(13px,3.3cqw,22px)/1.5 var(--game-body) }
.specimen-info a { display:inline-block; margin-top:1cqw; font-size:clamp(12px,2.55cqw,16px); color:#655446; text-underline-offset:3px }
.fish-back { display:none }
@media(max-width:700px) and (orientation:portrait), (max-width:510px) {
  dialog[data-panel="fish-guide"] { width:min(470px,94vw,65dvh) }
  .fish-guide { aspect-ratio:746/1065 }
  .codex-book { left:1%; width:98%; top:7%; aspect-ratio:746.5/936; background-size:200% 100%; background-position:left top }
  .fish-guide[data-page="detail"] .codex-book { background-position:right top }
  .fish-guide[data-page="list"] .fish-detail,.fish-guide[data-page="detail"] .fish-index { display:none }
  .fish-index,.fish-detail { width:100% }
  .fish-back {
    display:flex; align-items:center; gap:5px; position:absolute; bottom:8.5%; left:14%;
    min-height:36px; padding:0 4px; border:0; background:transparent; font:15px/1 var(--game-body);
  }
  .fish-back::before {
    content:""; width:24px; aspect-ratio:68/61;
    background:url("./assets/fish-guide/codex/page_prev.png") center/contain no-repeat;
  }
  .specimen-heading { top:38.5% }
  .specimen-info { top:49.5%; bottom:16% }
}

/* Scale the supplied chat artwork around live portraits, text and controls. */
.dialog-head .speaker-portrait { display:none }
dialog.conversation,#rescue-line {
  --chat-rail:url("./assets/camp-panels/dialogue-rail.webp") 20 fill;
  --chat-well:url("./assets/camp-panels/dialogue-inset.webp");
  --nameplate:url("./assets/camp-panels/dialogue-plaque.webp");
  border:solid transparent; border-image:var(--chat-rail); padding:0; color:#fff0d9;
}
dialog.conversation[open],#rescue-line:not([hidden]) {
  display:grid; grid-template-columns:clamp(156px,21vw,200px) minmax(0,1fr); gap:3px;
  width:min(810px,calc(100vw - 20px)); max-width:calc(100vw - 16px); border-width:13px;
}
.conversation .dialog-head { display:contents }
:is(.conversation,#rescue-line) .speaker-card {
  grid-column:1; display:grid; grid-template-rows:auto auto; align-content:start; min-width:0; gap:3px;
}
:is(.conversation,#rescue-line) .speaker-portrait {
  position:relative; display:grid; place-items:center; width:100%; aspect-ratio:1;
  isolation:isolate; overflow:hidden; border:3px solid transparent;
  border-image:url("./assets/camp-panels/dialogue-portrait.webp") 6 fill;
}
.speaker-portrait img { display:block; width:92%; height:92%; object-fit:contain; image-rendering:pixelated }
.portrait-sheet img {
  position:absolute; left:var(--portrait-x); top:var(--portrait-y); width:var(--portrait-width,400%);
  height:200%; max-width:none; object-fit:fill;
}
.portrait-closeup img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center bottom }
.speaker-portrait.staff-portrait img {
  position:absolute; left:0; top:0; width:200%; height:100%; max-width:none; object-fit:fill;
}
#staff-stats:not([hidden]) {
  position:absolute; z-index:2; pointer-events:none;
  display:grid; gap:3px; justify-items:center; transform:translateX(-50%);
  border:2px solid #9ec5da; box-shadow:0 2px #312c3b,inset 0 0 0 1px #657d96;
  background:linear-gradient(#32455af5,#27374df5); padding:6px 13px; color:#e3f1fa;
  font:16px/1.25 var(--game-body); white-space:nowrap;
}
#staff-stats[data-magic="gold"] { border-color:#f5d39b; background:linear-gradient(#5b4149f5,#3f3447f5); color:#ffe2a2 }
#staff-stats[data-magic="blue"] span:first-child { font-size:.85em; color:#b4d4ec }
#island.in-staff :is(.interact,.touch-pad) { visibility:hidden }
.conversation .speaker-card h2,#rescue-line .speaker-name {
  display:grid; place-items:center; min-width:0; width:100%; min-height:29px; margin:0; padding:4px 5px;
  border:0; background:var(--nameplate) center/100% 100% no-repeat; color:#3c2924;
  text-align:center; font:17px/1.15 var(--game-title); overflow-wrap:anywhere;
}
.conversation #panel-body,#rescue-line > span {
  min-width:0; margin:0; background:var(--chat-well) center/100% 100% no-repeat; color:#fff2de;
  word-break:keep-all; overflow-wrap:anywhere;
}
.conversation #panel-body {
  grid-column:2; grid-row:1; position:relative; display:flex; flex-direction:column; justify-content:center;
  padding:41px clamp(18px,3vw,34px) 39px;
}
.conversation #panel-body p { margin:0; font:20px/1.65 var(--game-body); text-shadow:0 1px #2b1f1e }
dialog.conversation[data-panel="makeupApology"] { bottom:max(10px,env(safe-area-inset-bottom)) }
dialog[data-panel="makeupApology"]::backdrop { background:transparent }
[data-panel="makeupApology"] .speaker-portrait::after {
  content:""; position:absolute; top:25%; right:13%; width:12%; aspect-ratio:3/4;
  background:#a7e8fa; clip-path:polygon(42% 0,58% 0,58% 25%,75% 25%,75% 48%,
    92% 48%,92% 82%,75% 82%,75% 100%,25% 100%,25% 82%,8% 82%,8% 48%,25% 48%,25% 25%,42% 25%);
}
.bin-find { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px }
.bin-find p { flex:1 1 10ch }
.bin-find-icon {
  width:clamp(48px,7vw,80px); aspect-ratio:1; flex:none; image-rendering:pixelated;
  background:url("./camp/native-winter/bin-finds.png") left center/300% 100% no-repeat;
}
dialog.conversation:has(.makeup-stage) {
  inset-block:auto max(6px,env(safe-area-inset-bottom)); margin-block:0; max-height:calc(100dvh - 12px);
  row-gap:0; border-image:none; background:transparent;
}
dialog.conversation:has(.makeup-stage)::backdrop { background:transparent }
.makeup-stage {
  grid-column:1 / -1; grid-row:1; display:grid; place-items:end center;
  height:min(450px,53dvh,calc(100dvh - 170px)); overflow:hidden;
}
.makeup-portrait {
  position:relative; overflow:hidden; height:min(100%,calc(100vw - 46px));
  aspect-ratio:1; image-rendering:pixelated;
}
/* The painted bust ends 30 pixels above the bottom of its 512px cell. */
.makeup-portrait img { top:calc(var(--portrait-y) + 6%) }
dialog.conversation:has(.makeup-stage)::before {
  content:""; grid-area:2 / 1 / 3 / -1; border:8px solid transparent;
  border-image:var(--chat-rail); pointer-events:none;
}
dialog.conversation:has(.makeup-stage) :is(.speaker-card,#panel-body) {
  grid-row:2; margin-block:8px;
}
dialog.conversation:has(.makeup-stage) .speaker-card { position:relative; margin-inline-start:8px }
dialog.conversation:has(.makeup-stage) #panel-body { margin-inline-end:8px }
dialog.conversation:has(.makeup-stage) #close { grid-area:2 / 2; top:8px; right:8px }
dialog.conversation:has(.makeup-revealing) :is(.speaker-card,#panel-body),
dialog.conversation:has(.makeup-revealing)::before { visibility:hidden }
dialog.conversation:has(.makeup-revealing) #close:not(:focus-visible) { opacity:0; pointer-events:none }
.makeup-revealing .makeup-portrait {
  mask: url("./assets/camp-panels/makeup-reveal-mask.png") 0 0 / 24px 240% repeat-x;
  animation:makeup-appear .8s steps(44,end) both;
}
@keyframes makeup-appear {
  from { mask-position:0 0; transform:translateY(10px) }
  to { mask-position:0 100%; transform:translateY(0) }
}
@media (prefers-reduced-motion:reduce) {
  .makeup-revealing .makeup-portrait { animation:none; mask:none }
}
.conversation #close { position:absolute; z-index:2; top:1px; right:1px; width:41px; height:41px }
.conversation #close::before {
  width:31px; height:32px; background:url("./assets/camp-panels/dialogue-close.webp") center/contain no-repeat;
}
.conversation #close:focus-visible { outline:none }
.conversation #close:focus-visible::before { filter:brightness(1.24) }
.dialogue-next,#rescue-line button {
  position:absolute; right:6px; bottom:4px; display:grid; place-items:center; padding:0;
  width:39px; height:32px; border:0; background:transparent; font-size:0; margin:0;
}
.dialogue-next::after,#rescue-line button::after {
  content:""; width:19px; height:13px; background:url("./assets/camp-panels/dialogue-advance.webp") center/contain no-repeat;
}
.dialogue-next:focus-visible,#rescue-line button:focus-visible { outline:1px solid #e8c49a; outline-offset:-4px }
#rescue-line:not([hidden]) {
  position:absolute; z-index:2; inset:auto 0 max(28px,env(safe-area-inset-bottom)); margin-inline:auto;
}
#rescue-line > span {
  display:grid; align-content:center; contain:size; padding:22px clamp(14px,3vw,34px) 32px;
  font:20px/1.65 var(--game-body);
}
#rescue-line button[hidden] { display:none }
#duck-chat:not([hidden]) {
  position:absolute; z-index:1; isolation:isolate; pointer-events:none; image-rendering:pixelated;
  width:max-content; min-width:min(92px,calc(100% - 8px)); max-width:min(228px,calc(100% - 8px));
}
#duck-chat::before {
  content:""; position:absolute; z-index:-1; inset:0;
  /* All message heights share the same corners, rendered at their native size. */
  border:solid transparent; border-width:20px 28px;
  border-image:url("./assets/camp-panels/duck-chat-paper.webp") 20 28 fill repeat;
}
#duck-chat p {
  margin:0; padding:10px 22px 9px; color:#462e26; text-align:center;
  font:16px/22px var(--game-body); word-break:keep-all; overflow-wrap:anywhere;
}
#island.in-dress :is(.interact,.touch-pad) { display:none }
@media(max-width:560px) {
  dialog.conversation[open],#rescue-line:not([hidden]) { grid-template-columns:clamp(94px,29vw,146px) minmax(0,1fr); gap:2px; border-width:8px }
  .conversation #panel-body { padding:34px 13px 28px }
  .conversation #panel-body p { font-size:16px; line-height:1.6 }
  .conversation .speaker-card h2 { min-height:23px; font-size:15px }
  #rescue-line .speaker-name { min-height:23px; font-size:15px }
  #rescue-line > span { font-size:16px; line-height:1.6; padding-block:12px 28px }
  .conversation #close { width:34px; height:34px } .conversation #close::before { width:25px; height:26px }
  .broadcast-choices { gap:4px; margin-top:6px }
}
@media(max-height:500px) and (min-width:561px) {
  dialog.conversation[open],#rescue-line:not([hidden]) { grid-template-columns:125px minmax(0,1fr) }
}
