/* The original approved airport study supplies the scenery and six objects.
   CSS viewports exclude its illustrative prices, titles and buttons entirely. */
.airport-page {
  --airport-gold: #f2c66d;
  --airport-edge: #c08a35;
  --airport-ink: #69471e;
  width: min(100%, 760px); margin: 0 auto; padding: 3px 0 8px;
  height: calc(100svh - var(--play-dock-height, 175px) - 108px - var(--safe-top, env(safe-area-inset-top)));
  min-height: 255px; max-height: 735px; display: grid;
  grid-template-rows: auto minmax(70px, 1fr) auto minmax(0, 1.65fr) auto;
  gap: 11px; color: var(--airport-ink);
}
.airport-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.airport-heading .eyebrow { font-size: 9px; color: #877044; letter-spacing: .1em; }
.airport-heading h1 { margin: 1px 0 0; font: 600 clamp(28px, 5vw, 36px)/1.05 var(--heading); }
.airport-wallet { padding: 7px 12px; border: 1px solid #dfbe7b; border-radius: 18px; background: linear-gradient(140deg,#fff9dc,#f9db92); box-shadow: inset 0 2px #fffdef,0 2px #b98f4b33; }
.airport-scene { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(120px, 1fr); align-items: center; min-height: 0; margin: 0; padding: 0; gap: 14px; overflow: hidden; border: 1px solid #d5ab61; border-radius: 22px; background: linear-gradient(135deg,#f9d68b,#ffe8b2); box-shadow: inset 0 0 0 2px #fff0c2, 0 3px #bb87352b; }
.airport-study-window { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; isolation: isolate; background: #f1d19b; }
.airport-study-picture { display: block; position: absolute; inset: auto 0; top: 50%; aspect-ratio: 853 / 410; transform: translateY(-50%); overflow: hidden; opacity: 0; pointer-events: none; }
.airport-study-window.has-art .airport-study-picture { opacity: 1; }
.airport-study-picture img { position: absolute; max-width: none; max-height: none; width: 100%; height: 449.7561%; left: 0; top: -70.7317%; object-fit: fill; }
.airport-scene .airport-scene-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.airport-study-window.has-art .airport-scene-fallback { visibility: hidden; }
.airport-scene-copy { padding: 9px 14px 9px 0; min-width: 0; }
.airport-scene strong { font: 600 clamp(18px, 2.5vw, 26px)/1.1 var(--heading); color: #3b6559; }
.airport-scene p { margin: 7px 0 0; color: #7a633d; font-size: 12px; line-height: 1.35; }
.airport-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; padding: 4px; border: 1px solid var(--airport-edge); border-radius: 19px; background: linear-gradient(120deg,#e8ba68,#ffdc91 45%,#edbc67); box-shadow: inset 0 2px #fff2c2, 0 3px #b57f2c30; }
.airport-tabs button { min-width: 0; min-height: 44px; padding: 5px; border: 0; border-radius: 14px; background: none; color: #7e663b; font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.airport-tabs button .icon { width: 19px; height: 19px; }
.airport-tabs button[aria-pressed="true"] { position: relative; color: #fffef1; background: linear-gradient(125deg,#14b4af,#008b8d 55%,#08777b); box-shadow: inset 0 2px #b6f4e277,0 2px #225b6d; }
.airport-tabs button[aria-pressed="true"]::before { content: ""; position: absolute; top: -3px; left: 28%; width: 44%; height: 4px; border-radius: 0 0 5px 5px; background: #ffdf78; box-shadow: 0 1px 2px #a56c2c66; }
.airport-stock { min-height: 0; display: grid; gap: 9px; }
.airport-stock-enter { animation: airport-stock-arrive 180ms cubic-bezier(.2,.7,.25,1) backwards; }
@keyframes airport-stock-arrive {
  from { opacity: .65; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.airport-tickets { grid-template-rows: repeat(3,minmax(44px,1fr)); }
.airport-ticket,.airport-product { min-height: 44px; border: 1px solid #c99442; border-radius: 20px; color: var(--airport-ink); background: radial-gradient(ellipse at 20% 0,#fff2c5,transparent 75%),linear-gradient(130deg,#ffe5a3,#f6cc7b 58%,#eeb961); box-shadow: inset 0 0 0 2px #fff0bf, inset 0 3px #fff6d8,0 3px 0 #b8873c66,0 7px 9px #98632616; }
.airport-ticket { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 8px 13px; text-align: left; }
.airport-ticket-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #f6e3b5; color: #a4782d; }
.airport-ticket strong { display: block; font: 600 clamp(17px,3vw,23px)/1.1 var(--heading); }
.airport-ticket small { display: block; margin-top: 4px; color: #8a7e61; font-size: 10px; line-height: 1.2; }
.airport-ticket.is-owned { border-color: #8dbca4; background: linear-gradient(125deg,#fffdf0,#dcefd6); }
.airport-ticket-action { color: #307f80; font-size: 11px; font-weight: 900; display: flex; align-items: center; gap: 4px; }
.airport-ticket-action .icon { width: 17px; height: 17px; }
.airport-products { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(44px,1fr)); }
.airport-product { display: grid; grid-template-columns: 1fr auto; grid-template-rows: minmax(0,1fr) auto auto; justify-items: center; gap: 2px 4px; padding: 9px 7px 8px; position: relative; }
.airport-product-art { display: grid; place-items: center; grid-column: 1/-1; min-height: 0; width: 100%; container-type: size; }
.airport-product-art > .icon { width: min(78px,13vw,100cqh); height: min(78px,13vw,100cqh); aspect-ratio: 1; filter: drop-shadow(0 3px 1px #c3944b33); }
.airport-study-product { --crop-x: 30; --crop-y: 858; position: relative; overflow: hidden; border-radius: 13px; isolation: isolate; }
.airport-study-product[data-art="pickaxe"],.airport-study-product[data-art="bubble"] { --crop-x: 310; }
.airport-study-product[data-art="water"],.airport-study-product[data-art="radar"] { --crop-x: 585; }
.airport-study-product:is([data-art="blower"],[data-art="bubble"],[data-art="radar"]) { --crop-y: 1255; }
.airport-study-product img { inset: auto; left: calc(var(--crop-x) / -245 * 100%); top: calc(var(--crop-y) / -235 * 100%); width: 348.1633%; height: 784.6809%; max-width: none; max-height: none; object-fit: fill; }
.airport-study-product .art-fallback { width: 100%; height: 100%; color: #237c7d; }
.airport-product-copy { grid-column: 1/-1; min-width: 0; width: 100%; text-align: center; font-size: 12px; line-height: 1.15; }
.airport-product-copy > strong { display: block; }
.airport-product strong { font: 600 clamp(15px,2.7vw,20px)/1.1 var(--heading); }
.airport-product small { display: block; margin-top: 2px; color: #8a7e61; font-size: 9px; }
.airport-product .airport-price { grid-column: 1/-1; padding: 3px 9px; border: 1px solid #e7b651; border-radius: 12px; background: linear-gradient(#ffe793,#efb744); box-shadow: inset 0 1px #fff4bc; font-size: 13px; color: #674315; }
.airport-price { display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; color: #9a6a20; font-weight: 900; }
.airport-price .icon { width: 18px; height: 18px; }
.airport-price strong { font: 900 16px/1 var(--body); }
.airport-product .airport-price strong { font: 900 13px/1 var(--body); }
.airport-max { grid-column: 1/-1; color: #398778; }
.airport-max .icon { width: 19px; height: 19px; }
.airport-footnote { min-height: 1.3em; margin: 0; padding: 0 5px; color: #8a8067; font-size: 10px; line-height: 1.3; text-align: center; }
.airport-complete { grid-row: 1/-1; display: grid; align-content: center; justify-items: center; text-align: center; gap: 9px; }
.airport-complete > .icon { width: 48px; height: 48px; color: #2b9a8d; }
.airport-complete span { color: #8a8067; font-size: 13px; }
.airport-offer > p { font-size: 15px; line-height: 1.45; margin: 10px 0; }
.airport-offer .airport-effect { display: grid; gap: 6px; padding: 12px; border-radius: 17px; background: #f3e9cf; color: #48685c; font-size: 13px; text-align: center; }
.airport-help-rule,.airport-upgrade-requirement { color: #7a755f; font-size: 12px !important; }
.airport-offer-price { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding: 12px 14px; border: 1px solid #ddc184; border-radius: 16px; background: linear-gradient(120deg,#fff4c7,#f8d67e); font-weight: 800; }
.airport-offer-price .airport-price strong { font-size: 25px; }
.airport-offer-price .airport-price .icon { width: 25px; height: 25px; }
.airport-offer-balance { margin-bottom: 0 !important; font-size: 11px !important; color: #8a8067; text-align: center; }
.character-dialog:has(.airport-offer) > .dialog-actions { display: grid; grid-template-columns: 1fr; gap: 5px; }
.character-dialog:has(.airport-offer) > .dialog-actions .primary { min-height: 58px; font: 650 21px/1.1 var(--heading); border-radius: 19px; color: #fffdf0; background: linear-gradient(125deg,#2eb9bd,#1b92a3 48%,#286c94); box-shadow: inset 0 2px #b6f7e755,0 3px #195c72; }
.character-dialog:has(.airport-offer) > .dialog-actions .secondary { min-height: 44px; padding: 5px; border: 0; background: none; box-shadow: none; color: #82745b; font-size: 13px; }
.airport-product:active,.airport-ticket:active { transform: translateY(2px) scale(.985); }
@media (min-width: 761px) {
  /* Starts beyond the study's left subtitle and stops before its gold counter. */
  .airport-study-picture img { left: -119.3277%; top: 0; width: 259.6639%; height: 355.9441%; }
}
@media (max-width: 760px) {
  .airport-page { height: calc(100svh - var(--play-dock-height,175px) - 96px - var(--safe-top, env(safe-area-inset-top))); gap: 8px; }
  .airport-scene { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto; gap: 0; }
  .airport-scene-copy { display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
  .airport-scene-copy strong { flex: 0 1 45%; font-size: 18px; }
  .airport-scene-copy p { flex: 1; margin: 0; font-size: 11px; }
}
@media (max-height: 700px) {
  .airport-page { gap: 6px; grid-template-rows: auto minmax(35px,.6fr) auto minmax(0,2fr) auto; }
  .airport-heading .eyebrow { display: none; }
  .airport-heading h1 { font-size: 26px; }
  .airport-wallet { padding: 6px 10px; }
  .airport-scene { gap: 8px; border-radius: 16px; }
  .airport-scene-copy { display: none; }
  .airport-scene strong { font-size: 19px; }
  .airport-scene p { margin-top: 3px; font-size: 10px; }
  .airport-tabs button { font-size: 11px; }
  .airport-tabs button .icon { width: 16px; height: 16px; }
  .airport-stock { gap: 6px; }
  .airport-product { padding: 5px; gap: 1px; border-radius: 16px; }
  .airport-product-art > .icon { width: 30px; height: 30px; }
  .airport-product strong { font-size: 14px; }
  .airport-product small { font-size: 8px; }
  .airport-ticket { padding: 5px 9px; gap: 6px; border-radius: 16px; }
  .airport-ticket strong { font-size: 16px; }
  .airport-ticket small { margin-top: 2px; font-size: 9px; }
  .airport-footnote { font-size: 8px; }
}
@media (max-height: 460px) and (min-width: 600px) {
  .airport-page { height: calc(100svh - var(--play-dock-height,100px) - 108px - var(--safe-top, env(safe-area-inset-top))); min-height: 180px; grid-template-columns: 155px minmax(0,1fr); grid-template-rows: auto minmax(0,1fr) auto; gap: 5px 12px; }
  .airport-heading { grid-row: 1; grid-column: 1; }
  .airport-wallet { display: none; }
  .airport-scene { grid-column: 1; grid-row: 2; }
  .airport-scene { display: block; }
  .airport-scene-copy { display: none; }
  .airport-tabs { grid-column: 2; grid-row: 1; }
  .airport-stock { grid-column: 2; grid-row: 2; }
  .airport-products { grid-template-columns: repeat(6,minmax(0,1fr)); grid-template-rows: minmax(44px,1fr); }
  .airport-tickets { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: minmax(44px,1fr); }
  .airport-ticket { grid-template-columns: 30px minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto; padding: 5px 7px; }
  .airport-ticket-icon { width: 28px; height: 28px; }
  .airport-ticket > .airport-price,.airport-ticket-action { grid-column: 1/-1; justify-self: center; }
  .airport-product strong { font-size: 11px; }
  .airport-product-copy { font-size: 11px; line-height: 1.1; }
  .airport-footnote { grid-column: 1/-1; grid-row: 3; }
}
@media (max-height: 640px) and (max-width: 599px) {
  .airport-page { grid-template-rows: auto auto minmax(0,1fr) auto; }
  .airport-scene { display: none; }
  .airport-product { grid-template-rows: minmax(28px,1fr) auto auto; }
}
@media (max-width: 599px) {
  .airport-footnote { min-height: 2.6em; }
}
@media (prefers-reduced-motion: reduce) {
  .airport-page *, .airport-page *::before, .airport-page *::after { animation: none !important; transition: none !important; }
}

/* A single shop frame contains complete tool illustrations. The shelf scrolls
   natively; the airport scene and two destination buttons stay in place. */
.airport-page { grid-template-rows: auto minmax(70px,.7fr) auto minmax(140px,2fr) auto; }
.airport-equipment {
  display: block; overflow: auto; overscroll-behavior: contain; touch-action: pan-y;
  border: 1px solid #d2a451; border-radius: 22px;
  background: linear-gradient(135deg,#fff6db,#f7dfaa);
  box-shadow: inset 0 0 0 3px #fff9e7,0 3px #bd934633;
  scrollbar-width: thin; scrollbar-color: #d3a856 #f5e5c4;
}
.airport-equipment:focus-visible { outline: 3px solid #008b8d; outline-offset: 3px; }
.equipment-shelf { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 8px; gap: 0; }
.equipment-item { min-width: 0; padding: 6px 7px 10px; border-bottom: 1px solid #b58a3d35; }
.equipment-item:nth-child(odd) { border-right: 1px solid #b58a3d35; }
.equipment-item:nth-last-child(-n+2) { border-bottom: 0; }
.equipment-overview {
  display: grid; justify-items: center; gap: 4px; width: 100%; min-height: 158px;
  border: 0; border-radius: 16px; padding: 0 3px 6px; background: none;
  box-shadow: none; color: #185858;
}
.equipment-overview:focus-visible { outline: 3px solid #008b8d; outline-offset: -1px; }
.equipment-item-stage { position: relative; display: grid; place-items: center; width: 100%; height: 112px; }
.equipment-art { display: inline-grid; place-items: center; position: relative; width: 110px; height: 110px; pointer-events: none; }
.equipment-art > .equipment-tool { display: block; width: 100%; height: 100%; object-fit: contain; color: #72501f; filter: drop-shadow(0 4px 0 #9f773829) drop-shadow(0 7px 5px #8f6c2920); }
.equipment-art.is-locked > .equipment-tool { filter: drop-shadow(1.5px 0 #c99732) drop-shadow(-1.5px 0 #c99732) drop-shadow(0 1.5px #c99732) drop-shadow(0 -1.5px #c99732) drop-shadow(0 3px 3px #d3a13b33); }
.equipment-level {
  position: absolute; right: 1px; bottom: 5px; min-width: 36px; min-height: 28px;
  display: grid; place-items: center; padding: 3px 7px; border: 1px solid #c69636;
  border-radius: 10px; background: linear-gradient(#fff3c9,#edca76); color: #6c4b1f;
  box-shadow: inset 0 1px #fff9e7,0 2px #b8883b38; font-size: 10px; font-weight: 900;
}
.equipment-level > .icon { width: 21px; height: 21px; }
.equipment-overview > strong { font: 700 clamp(17px,2.2vw,21px)/1.1 var(--heading); text-wrap: balance; }
.equipment-overview > small { font-size: 10px; line-height: 1.3; color: #796949; }
.equipment-item.is-locked .equipment-overview > strong { color: #8c6a2d; }
.equipment-item-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.equipment-item-actions > button {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px;
  min-width: 0; min-height: 44px; padding: 5px 4px; border: 1px solid #d5b66c;
  border-radius: 11px; background: #fff6da; color: #166b69; box-shadow: inset 0 1px #fffdf0,0 2px #bc944128;
  font-size: 10px; font-weight: 900;
}
.equipment-item-actions > button + button { background: #f5e3b7; color: #80602b; }
.equipment-item-actions > [data-equipment-refill] { flex-direction: column; gap: 2px; }
.equipment-item-actions .equipment-unlock-invitation { grid-column: 1/-1; color: #846025; background: #f5e3b7; }
.equipment-item-actions > button:focus-visible { outline: 3px solid #008b8d; outline-offset: 1px; }
.equipment-item-actions > button > .icon { width: 15px; height: 15px; }
.equipment-gold { display: inline-flex; align-items: center; justify-content: center; gap: 3px; white-space: nowrap; }
.equipment-gold > .icon { width: 17px; height: 17px; flex: none; }
.equipment-gold > b { font-size: 12px; }
@media (min-width: 761px) {
  .equipment-shelf { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .equipment-item:nth-child(odd) { border-right: 0; }
  .equipment-item:not(:nth-child(3n)) { border-right: 1px solid #b58a3d35; }
  .equipment-item:nth-last-child(-n+3) { border-bottom: 0; }
  .equipment-item-stage { height: 130px; }
  .equipment-art { width: 128px; height: 128px; }
}
@media (max-height: 460px) and (min-width: 600px) {
  .airport-page { grid-template-rows: auto minmax(0,1fr) auto; }
  .equipment-shelf { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .equipment-item-stage { height: 84px; }
  .equipment-item-stage .equipment-art { width: 80px; height: 80px; }
  .equipment-overview { min-height: 125px; }
}
@media (max-height: 640px) and (max-width: 599px) {
  .airport-page { grid-template-rows: auto auto minmax(0,1fr) auto; }
}

/* Equipment uses the app's existing guarded native dialog, with a full-screen
   item surface instead of an additional character or a nested confirmation. */
dialog.equipment-dialog {
  inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh;
  max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: #f8edcf; box-shadow: none; overflow: hidden; color: #155452;
}
dialog.equipment-dialog > #dialog-content { height: 100%; padding: 0; margin: 0; }
.equipment-detail {
  display: grid; grid-template-rows: auto minmax(0,1fr) auto; height: 100%;
  background: radial-gradient(ellipse at 50% 28%,#fffdf0,#fff2cd 50%,#edd398);
}
.equipment-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left)); border-bottom: 1px solid #bf964847; }
.equipment-detail-kicker { font-size: 10px; font-weight: 900; letter-spacing: .12em; color: #87703d; }
.equipment-detail-close { flex: none; min-width: 44px; min-height: 44px; }
.equipment-detail-wallet { padding: 8px 13px; border: 1px solid #cfaa5d; border-radius: 22px; background: #f3d697; color: #725220; box-shadow: inset 0 1px #fff7db; }
.equipment-detail-wallet .equipment-gold > b { font-size: 15px; }
.equipment-detail-scroll { overflow: auto; overscroll-behavior: contain; padding: 22px 22px 12px; }
.equipment-detail-intro { text-align: center; max-width: 640px; margin: 0 auto; }
.equipment-detail-eyebrow { font-size: 10px; font-weight: 900; letter-spacing: .1em; color: #987037; }
.equipment-detail h2 { margin: 8px 0 10px; color: #155452; font: 700 clamp(30px,5.5vw,46px)/1.05 var(--heading); text-wrap: balance; }
.equipment-detail-level,.equipment-detail-lock { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 5px 12px; border: 1px solid #cca252; border-radius: 16px; color: #80612d; background: #f3e2b3; font-size: 12px; font-weight: 900; }
.equipment-detail-lock .icon { width: 18px; height: 18px; }
.equipment-detail-stage { position: relative; display: grid; place-items: center; min-height: 220px; max-width: 600px; margin: 10px auto; }
.equipment-detail-stage > .equipment-art { width: clamp(180px,31vh,290px); height: clamp(180px,31vh,290px); z-index: 1; }
.equipment-detail-stage::before { content: ''; position: absolute; left: 18%; right: 18%; top: 30%; bottom: 17%; border-radius: 50%; background: radial-gradient(ellipse,#f6d17255,#f6d17200 70%); pointer-events: none; }
.equipment-detail-copy { max-width: 520px; margin: 0 auto; text-align: center; }
.equipment-detail-copy > p { margin: 10px 0; font-size: 15px; line-height: 1.5; }
.equipment-detail-copy .equipment-current-effect { color: #17726c; font-weight: 900; }
.equipment-detail-copy .equipment-detail-stock { font-size: 12px; color: #806c46; }
.equipment-detail-copy .equipment-detail-requirement { font-size: 12px; color: #806c46; }
.equipment-detail-actions { position: relative; padding: 12px max(22px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left)); background: #fff5da; border-top: 1px solid #c9a45c50; box-shadow: 0 -8px 22px #ae8e3810; }
.equipment-detail-actions > .primary,.equipment-owned-actions { width: min(100%,520px); margin: 0 auto; }
.equipment-purchase { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 28px; font: 700 20px/1.1 var(--heading); }
.equipment-purchase:disabled { opacity: .55; }
.equipment-purchase .equipment-gold > b,.equipment-owned-actions .equipment-gold > b { font: inherit; }
.equipment-purchase .equipment-gold > .icon { width: 23px; height: 23px; }
.equipment-purchase-note { margin: 9px 0 0; text-align: center; color: #8a754d; font-size: 11px; line-height: 1.4; }
.equipment-detail-status { min-height: 1.4em; margin: 0 auto 9px; max-width: 520px; text-align: center; font-size: 12px; line-height: 1.4; color: #79623c; font-weight: 800; }
.equipment-detail-back { display: block; min-height: 44px; margin: 8px auto -7px; padding: 6px 12px; border: 0; background: none; box-shadow: none; color: #47746a; font-size: 12px; font-weight: 900; }
.equipment-owned-actions { display: grid; gap: 9px; }
.equipment-owned-actions > button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; }
.equipment-owned-actions > button > .icon { width: 20px; height: 20px; }
.equipment-evolution { display: grid; grid-template-columns: minmax(0,1fr) 44px minmax(0,1fr); align-items: center; max-width: 620px; margin: 22px auto 14px; gap: 9px; }
.equipment-evolution > div { display: grid; justify-items: center; align-content: start; gap: 6px; min-width: 0; padding: 13px 8px; border: 1px solid #d0b271; border-radius: 22px; background: #fff8e2; }
.equipment-evolution .equipment-evolution-next { border-color: #b68e35; background: #fff1c6; box-shadow: inset 0 0 0 2px #fffaf0,0 3px #c49b4d42; }
.equipment-evolution .equipment-art { width: clamp(90px,14vw,160px); height: clamp(90px,14vw,160px); }
.equipment-evolution > div > span:not(.equipment-art) { color: #877047; font-size: 10px; font-weight: 900; }
.equipment-evolution > div > p { min-height: 3em; margin: 0; font-size: 12px; line-height: 1.5; color: #225e59; text-align: center; }
.equipment-evolution-arrow img { display: block; width: 100%; height: auto; }
.equipment-unlock-burst { position: absolute; width: 210px; height: 210px; pointer-events: none; }
.equipment-detail.is-celebrating .equipment-unlock-burst::before,.equipment-detail.is-celebrating .equipment-unlock-burst::after { content: ''; position: absolute; inset: 5%; border: 3px solid #e3b54c; border-radius: 50%; animation: equipment-unlock-ring 620ms ease-out both; }
.equipment-detail.is-celebrating .equipment-unlock-burst::after { inset: 15%; border-width: 1px; animation-delay: 80ms; }
@keyframes equipment-unlock-ring { from { opacity: .9; transform: scale(.65); } to { opacity: 0; transform: scale(1.35); } }
@media (max-height: 550px) and (min-width: 600px) {
  .equipment-detail-header { padding-block: 6px; }
  .equipment-detail-scroll { display: grid; grid-template-columns: minmax(140px,.8fr) minmax(0,1.2fr); grid-template-rows: auto auto auto; gap: 7px 22px; align-items: center; padding: 10px 24px; }
  .equipment-detail-intro { grid-column: 2; grid-row: 1; width: 100%; }
  .equipment-detail h2 { margin-block: 3px; font-size: 28px; }
  .equipment-detail-stage { grid-column: 1; grid-row: 1/4; min-height: 160px; margin: 0; }
  .equipment-detail-stage > .equipment-art { width: 190px; height: 190px; }
  .equipment-evolution { grid-column: 2; grid-row: 2; width: 100%; margin: 0; }
  .equipment-evolution > div { padding: 8px 6px; }
  .equipment-evolution > div > p { min-height: 1.5em; font-size: 11px; }
  .equipment-detail-copy { grid-column: 2; grid-row: 2/4; }
  .equipment-detail:has(.equipment-evolution) .equipment-detail-copy { grid-column: 2; grid-row: 3; }
  .equipment-detail-copy > p { margin-block: 5px; font-size: 12px; line-height: 1.35; }
  .equipment-detail-copy .equipment-detail-requirement { font-size: 10px; }
  .equipment-detail-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 14px; padding: 7px 24px; }
  .equipment-detail-status { grid-column: 1/-1; margin-bottom: 3px; min-height: 0; }
  .equipment-detail-status:empty { display: none; }
  .equipment-detail-actions > .equipment-purchase { grid-column: 1; min-height: 48px; width: 100%; }
  .equipment-purchase-note { grid-column: 1; margin: 5px 0 0; font-size: 10px; }
  .equipment-detail-back { grid-column: 2; grid-row: 1/4; min-width: 140px; margin: 0; padding: 5px 8px; }
  .equipment-owned-actions { grid-column: 1/-1; width: min(100%,620px); }
  .equipment-owned-actions { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .equipment-dialog *, .equipment-dialog *::before, .equipment-dialog *::after { animation: none !important; transition: none !important; }
}
