/* Five clear square scenes; navigation lives in the right rail and details open only on tap. */
.g2-scroll:has(> .g2-x-page) {padding:16px 8px 6px;overflow:hidden;}
.g2-x-page {height:100%;min-height:0;display:flex;flex-direction:column;gap:5px;}
.g2-x-encounters {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;flex:1;min-height:0;max-height:295px;}
.g2-x-card {position:relative;container-type:size;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:32px minmax(0,1fr) 44px;gap:2px;min-width:0;min-height:0;padding:7px!important;text-align:center;align-items:center;overflow:hidden;}
.g2-x-card-heading {position:relative;display:grid;align-content:center;justify-items:center;min-width:0;height:100%;padding:0 21px 0 1px;}
.g2-x-card-heading>strong {font:700 11px/1.1 Georgia,serif;min-width:0;max-width:100%;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.g2-x-card.is-locked .g2-x-card-heading {padding-left:12px;}
.g2-x-header-lock {position:absolute;left:0;top:50%;transform:translateY(-50%);display:flex;align-items:center;color:#806848;}
.g2-x-header-lock>.g2-x-lock {width:10px;height:12px;}
.g2-x-info {position:absolute;z-index:2;right:0;top:0;display:grid;place-items:start end;width:44px!important;height:44px;min-width:44px;min-height:44px;padding:6px!important;border:0;border-radius:0;background:transparent;color:#70583a;cursor:pointer;}
.g2-x-info>span {display:grid;place-items:center;width:20px;height:20px;border:1px solid #a38a61;border-radius:50%;background:#e8dab6;font:700 italic 13px/1 Georgia,serif;box-shadow:inset 0 1px 0 #fff2ce;pointer-events:none;}
.g2-x-info:focus-visible {outline:2px solid #967240;outline-offset:-2px;}
.g2-x-art {position:relative;justify-self:center;align-self:center;width:min(100cqw,calc(100cqh - 80px));max-width:100%;height:auto;aspect-ratio:1;min-height:0;overflow:hidden;border-radius:2px;}
.g2-x-art>:is(img,svg) {width:100%;height:100%;display:block;object-fit:cover;object-position:center;overflow:hidden;opacity:1;filter:none;transform:none;}
.g2-x-card.is-locked .g2-x-art>:is(img,svg) {opacity:1;filter:none;}
.g2-x-card>.g2-button {display:flex;align-items:center;justify-content:center;gap:5px;width:100%!important;min-height:44px;height:44px;max-width:100%;padding:3px!important;border:0;border-radius:0;background:var(--stone-code-skin) center/100% 100% no-repeat;box-shadow:none;font:700 11px/1 Georgia,serif;letter-spacing:.015em;white-space:nowrap;}
.g2-x-fight-icon {display:block;width:18px;height:18px;object-fit:contain;flex:0 0 18px;}
.g2-x-card>.g2-button:disabled {color:#7b684c!important;}
.g2-x-card>.g2-button:focus:not(:focus-visible) {outline:0;}
.g2-x-map-page {gap:5px;}
@media(min-height:361px){.g2-scroll:has(> .g2-x-map-page){padding-top:22px;}}
.g2-x-map-heading {display:flex;align-items:baseline;justify-content:space-between;gap:5px;flex:0 0 22px;min-width:0;}
.g2-x-map-heading>strong {font:700 12px/1.2 Georgia,serif;}
.g2-x-map-heading>span {font:10px/1.1 system-ui,sans-serif;color:#7a6548;text-align:right;}
.g2-x-map-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px;flex:1;min-height:0;max-height:290px;container:expedition-map / size;}
button.g2-x-map-area {position:relative;display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 15px 12px 18px;align-items:center;column-gap:5px;row-gap:1px;width:100%!important;min-height:44px;min-width:0;padding:7px 10px!important;border:0;background:var(--stone-code-skin) center/100% 100% no-repeat;color:#55412a;cursor:pointer;text-align:left;}
.g2-x-map-number {position:absolute;right:6px;top:5px;font:10px/1 Georgia,serif;opacity:.55;}
.g2-x-map-area-icon {grid-column:1;grid-row:1/5;display:grid;place-items:center;}
.g2-x-map-area-icon>.stone-icon {color:currentColor;}
.g2-x-map-area>strong {grid-column:2;grid-row:1;font:700 12px/1.1 Georgia,serif;max-width:calc(100% - 7px);}
.g2-x-map-range {grid-column:2;grid-row:2;font:10px/1.1 system-ui,sans-serif;}
.g2-x-map-theme {grid-column:2;grid-row:3;display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:9px/1.1 system-ui,sans-serif;color:#806544;}
.g2-x-map-enter {grid-column:2;grid-row:4;font:600 9px/1 system-ui,sans-serif;display:flex;align-items:center;gap:4px;color:#806544;}
.g2-x-map-area.is-selected {color:#fff0cc;text-shadow:none;}
.g2-x-map-area.is-selected .g2-x-map-enter {color:#f0d4a8;}
.g2-x-map-area.is-selected .g2-x-map-theme {color:#f0d4a8;}
.g2-x-map-area:focus-visible {outline:2px solid #967240;outline-offset:1px;}
@container expedition-map (max-height:190px) {
  button.g2-x-map-area {grid-template-rows:minmax(0,1fr) 15px 18px;}
  .g2-x-map-theme {display:none;}
  .g2-x-map-enter {grid-row:3;}
  .g2-x-map-area-icon {grid-row:1/4;}
}
@media(max-width:700px){
  .g2-x-encounters {gap:4px;}
  .g2-x-card {grid-template-rows:32px minmax(0,1fr) 44px;padding:5px!important;gap:1px;}
  .g2-x-card-heading>strong {font-size:10px;}
  .g2-x-card-heading {padding-right:20px;}
  .g2-x-info {padding:5px!important;}
  .g2-x-info>span {width:18px;height:18px;font-size:12px;}
  .g2-x-card>.g2-button {font-size:10px;}
  .g2-x-art {width:min(100cqw,calc(100cqh - 78px));}
  .g2-x-map-heading>strong {font-size:11px;}
  .g2-x-map-heading>span {font-size:9px;}
  button.g2-x-map-area {grid-template-columns:24px minmax(0,1fr);padding:5px 7px!important;column-gap:3px;}
  .g2-x-map-area>strong {font-size:10.5px;}
  .g2-x-map-range {font-size:9px;}
  .g2-x-map-theme {font-size:8px;}
  .g2-x-map-enter {font-size:8px;}
  .g2-x-map-area-icon>.stone-icon {width:20px;height:20px;}
}
@media(max-height:360px) and (orientation:landscape){
  .g2-scroll:has(> .g2-x-page) {padding-top:13px;padding-bottom:4px;}
  .g2-x-page {gap:3px;}
  .g2-x-card {grid-template-rows:32px minmax(0,1fr) 44px;padding:4px!important;gap:1px;}
  .g2-x-map-heading {flex-basis:19px;}
  button.g2-x-map-area {grid-template-rows:minmax(0,1fr) 13px 15px;padding-block:4px!important;}
  .g2-x-map-theme {display:none;}
  .g2-x-map-enter {grid-row:3;}
  .g2-x-map-area-icon {grid-row:1/4;}
}
