/* Shared final visual layer for the attendance and Kids Dash kingdom explorer. */
.oam-info-header.has-banner { position: relative; display: grid; align-items: end; min-height: 0; aspect-ratio: 16 / 7; overflow: hidden; border: 3px solid #d7e2ec; border-radius: 22px; padding: 0; color: #fff; background: #f6f8fb; }
.oam-info-header.has-banner img { grid-area: 1 / 1; position: relative; z-index: 0; width: 100%; height: 100%; border: 0; border-radius: 0; background: transparent; object-fit: contain; filter: none; }
.oam-info-header.has-banner::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(17, 24, 39, .72), rgba(17, 24, 39, .02) 48%); }
.oam-info-header.has-banner > div { grid-area: 1 / 1; position: relative; z-index: 2; max-width: 660px; padding: 20px; text-shadow: 0 2px 10px rgba(17, 24, 39, .55); }
.oam-info-header.has-banner .kicker, .oam-info-header.has-banner p { color: #fff; }

.oam-stage-card, .gateway-card { display: grid; gap: 7px; color: #243047; cursor: pointer; appearance: none; }
.oam-stage-card:hover, .gateway-card:hover, .oam-stage-card.is-selected, .gateway-card.is-selected { border-color: #de84b4; box-shadow: 0 0 0 4px rgba(222, 132, 180, .18), 0 0 26px rgba(222, 132, 180, .45); }
.oam-stage-card.locked:hover, .gateway-card.locked:hover { opacity: .78; }
.gateway-card.is-wide { grid-column: 1 / -1; grid-template-columns: 110px 1fr; align-items: center; text-align: left; }
.gateway-card.is-wide .oamiemon-gateway-img { grid-row: span 4; }
.gateway-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.gateway-grid .gateway-card.is-wide { justify-self: center; width: min(620px, 100%); }

.stage-lock-badge { z-index: 3; right: 12px; bottom: 12px; display: grid; place-items: center; width: 74px; height: 74px; border: 5px solid #fff; border-radius: 999px; background: #8f1f28; color: #fff; font-size: 2rem; line-height: 1; box-shadow: 0 8px 20px rgba(70, 18, 24, .28); }
.stage-lock-badge i { display: block; line-height: 1; }
.oam-stage-card.locked, .gateway-card.locked { filter: none; opacity: 1; }
.oam-stage-card.locked > :not(.stage-lock-badge):not(.current-level-badge), .gateway-card.locked > :not(.stage-lock-badge):not(.shopkeeper-lock-badge):not(.current-level-badge):not(.shop-gateway-closed-row) { filter: grayscale(.85); opacity: .58; }
.stage-lock-badge, .shopkeeper-lock-badge { filter: none !important; opacity: 1 !important; }

.kingdom-shop-preview { display: grid; margin-top: 10px; }
.shop-gateway-card { position: relative; width: min(760px, 100%); justify-self: center; align-items: center; overflow: hidden; }
.shop-gateway-hero-frame { position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 7; overflow: hidden; border-radius: 14px; background: #f6f8fb; }
.shop-gateway-hero-img, .shop-gateway-card .oamiemon-gateway-img { display: block; width: 100%; height: 100%; max-height: none; border-radius: 0; object-fit: cover; object-position: var(--shop-hero-position-x, 50%) var(--shop-hero-position-y, 50%); background: #f6f8fb; transform: scale(var(--shop-hero-scale, 1)); transform-origin: var(--shop-hero-position-x, 50%) var(--shop-hero-position-y, 50%); }
.shop-gateway-owner { position: relative; z-index: 10; display: grid; place-items: center; width: clamp(136px, 19vw, 190px); height: clamp(136px, 19vw, 190px); margin-top: 0; border: 5px solid #fff; border-radius: 999px; padding: 8px; background: #fff; color: #8f1f28; box-shadow: 0 10px 24px rgba(35, 48, 71, .22); overflow: visible; }
.shop-gateway-owner img { display: block; width: 100%; height: 100%; aspect-ratio: 1; border-radius: 999px; object-fit: cover; object-position: center 42%; transform: scale(1.08); transform-origin: center; }
.shop-gateway-closed-row { position: relative; z-index: 20; display: grid; grid-template-columns: auto; align-items: center; justify-content: center; margin-top: -82px; margin-bottom: 14px; filter: none !important; opacity: 1 !important; }
.shopkeeper-lock-badge { position: absolute; z-index: 6; right: -15px; bottom: -11px; display: grid; place-items: center; width: 74px; height: 74px; border: 5px solid #fff; border-radius: 999px; background: #8f1f28; color: #fff; font-size: 2rem; line-height: 1; box-shadow: 0 8px 20px rgba(70, 18, 24, .28); }

.oam-stage-detail-slot { margin: 12px 0 18px; }
.oam-stage-detail-card, .bad-guy-info-card { display: grid; grid-template-columns: 224px 1fr; gap: 16px; align-items: start; border: 2px solid #d7e2ec; border-radius: 18px; padding: 14px; background: #f8fbff; color: #243047; text-align: left; }
.oam-stage-detail-card > img, .bad-guy-info-img { width: 224px; height: 224px; border: 3px solid rgba(53, 183, 212, .28); border-radius: 16px; background: #fff; object-fit: contain; }
.oam-stage-detail-card h3, .bad-guy-info-card strong { display: block; margin: 0; font-size: 1.45rem; line-height: 1.05; }
.oam-stage-detail-card p, .bad-guy-info-card p { margin: 7px 0; color: #667085; font-weight: 800; }
.oam-stage-detail-chips, .bad-guy-reward-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.oam-stage-detail-chips span, .bad-guy-reward-row > span { border-radius: 999px; padding: 5px 9px; background: #e8f8ff; color: #0f6d83; font-size: .75rem; font-weight: 950; text-transform: uppercase; }
.oam-stage-rewards, .bad-guy-reward-row { margin-top: 10px; }
.reward-bounty-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.reward-bounty-item { display: inline-flex; min-width: 76px; min-height: 42px; align-items: center; justify-content: center; gap: 8px; border: 2px solid rgba(65, 105, 225, .18); border-radius: 999px; padding: 8px 14px; background: #fff; color: #243047; font-size: 1rem; line-height: 1; }
.reward-bounty-item .emoji { display: grid; place-items: center; width: 30px; height: 30px; font-size: 1.45rem; }
.reward-bounty-item strong { display: inline-grid; place-items: center; min-width: 34px; min-height: 28px; border-radius: 999px; background: #e8f8ff; color: #0f6d83; font-size: 1.05rem; }

.closed-shop-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; width: min(640px, 94vw); border: 4px solid #ffd7e9; border-radius: 28px; padding: 24px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.closed-shop-card > img { width: clamp(132px, 24vw, 190px); height: clamp(132px, 24vw, 190px); border: 6px solid #fff; border-radius: 999px; object-fit: cover; object-position: center 42%; box-shadow: 0 16px 30px rgba(35,48,71,.18); }
.closed-shop-card h2 { margin: 2px 0 8px; color: #243047; font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: .98; }
.closed-shop-card p:last-child { margin: 0; color: #667085; font-size: 1.05rem; font-weight: 900; line-height: 1.35; }
.closed-shop-card > .modal-close, .oam-oamiemon-info-card > .modal-close, .kid-notice-card > .modal-close { position: absolute; top: 10px; right: 10px; left: auto; z-index: 20; display: grid; place-items: center; width: 38px; min-width: 38px; height: 38px; min-height: 38px; margin: 0; border: 0; border-radius: 999px; padding: 0; color: #fff; background: #202b3d; font-size: 1.15rem; line-height: 1; }

@media (max-width: 980px) {
  .gateway-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .oam-info-header.has-banner { aspect-ratio: 16 / 9; }
}

@media (max-width: 620px) {
  .gateway-grid, .gateway-card.is-wide, .oam-stage-detail-card, .bad-guy-info-card, .closed-shop-card { grid-template-columns: 1fr !important; }
  .oam-info-header.has-banner { aspect-ratio: 4 / 3; }
  .oam-stage-detail-card > img, .bad-guy-info-img { width: 100%; height: auto; max-height: 224px; }
}
