/* Base-game DLC shelf: full-width artwork with native Steam header proportions. */
.egg-dlc-section,
.egg-dlc-parent {
    margin-top: 16px;
    padding: 20px;
    background: #0F1A3A;
    border: 1px solid #1E2D5C;
    border-radius: 10px;
}
.egg-dlc-section h2 {
    margin: 0 0 16px;
    color: #E6ECFF;
    font-size: 19px;
}
.egg-dlc-hint {
    margin: 0 0 16px;
    color: #8A98C4;
    font-size: 13px;
}
.egg-dlc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 12px;
    align-items: stretch;
}
.egg-dlc-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    color: #E6ECFF;
    background: #14224A;
    border: 1px solid #1E2D5C;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 120ms ease;
}
.egg-dlc-item:hover {
    border-color: #7FA8FF;
}
.egg-dlc-item:focus-visible {
    outline: 2px solid #7FA8FF;
    outline-offset: 2px;
}
.egg-dlc-media {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 460 / 215;
    overflow: hidden;
    background: #0A1128;
    border-bottom: 1px solid #1E2D5C;
    box-sizing: border-box;
}
.egg-dlc-item .egg-dlc-media img {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center center;
}
.egg-dlc-item .egg-dlc-media .artwork-fallback {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 0;
    aspect-ratio: auto;
    text-align: center;
    color: #8A98C4;
    background: #0A1128;
    font-size: 12px;
    line-height: 1.4;
    overflow: hidden;
}
.egg-dlc-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    min-height: 86px;
    padding: 12px 14px 14px;
    box-sizing: border-box;
}
.egg-dlc-copy strong {
    color: #E6ECFF;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.egg-dlc-copy .egg-dlc-price {
    display: block;
    margin-top: auto;
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: #8A98C4;
}
.egg-dlc-copy .egg-dlc-price.incubating { color: #FF6B6B; }
.egg-dlc-copy .egg-dlc-price.cracking { color: #7FA8FF; }
.egg-dlc-copy .egg-dlc-price.hatched,
.egg-dlc-copy .egg-dlc-price.free { color: #3DDC97; }
.egg-dlc-copy .egg-dlc-price.cooked { color: #FF9A3D; }
.egg-dlc-copy .egg-dlc-price.eggcube { color: #E6ECFF; }
.egg-dlc-copy .egg-dlc-price.unknown {
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 500;
}
.egg-dlc-parent {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
}
.egg-dlc-label {
    color: #8A98C4;
    font-size: 12px;
}
.egg-dlc-parent a {
    color: #7FA8FF;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.egg-dlc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    color: #8A98C4;
    font-size: 13px;
}
.egg-dlc-pagination button {
    background: #14224A;
    color: #E6ECFF;
    border: 1px solid #1E2D5C;
    border-radius: 10px;
    padding: 9px 13px;
    cursor: pointer;
    font: inherit;
}
.egg-dlc-pagination button:hover,
.egg-dlc-pagination button:focus-visible { border-color: #7FA8FF; }
.egg-dlc-section[aria-busy="true"] { opacity: .7; }
.egg-dlc-required {
    margin: 0 0 12px;
    color: #8A98C4;
    font-size: 13px;
}
.egg-dlc-required a {
    color: #7FA8FF;
    text-decoration: underline;
    text-underline-offset: 3px;
}
body[data-page="game"] .game-summary [data-price-stage="free"] { --deal-price-color: #3DDC97; }
body[data-page="game"] .game-summary [data-price-stage="free"] .price { color: #3DDC97; }
@media (max-width: 560px) {
    .egg-dlc-section,
    .egg-dlc-parent { padding: 14px; }
    .egg-dlc-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
        gap: 10px;
    }
    .egg-dlc-copy { padding: 11px 12px 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .egg-dlc-item { transition: none; }
}

/* DLC classification: compact, subdued category chip beneath the title. */
.egg-dlc-copy .egg-dlc-type {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    max-width: 100%;
    min-height: 24px;
    padding: 3px 9px;
    border: 1px solid #1E2D5C;
    border-radius: 999px;
    box-sizing: border-box;
    color: #8A98C4;
    background: #0F1A3A;
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.egg-dlc-copy {
    min-height: 113px;
    gap: 8px;
}
/* Match homepage category hover feedback; do not underline the whole link. */
.egg-dlc-grid .egg-dlc-item {
    --dlc-glow-color: #8A98C4;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.egg-dlc-grid .egg-dlc-item[data-dlc-stage="incubating"] { --dlc-glow-color: #FF6B6B; }
.egg-dlc-grid .egg-dlc-item[data-dlc-stage="cracking"] { --dlc-glow-color: #7FA8FF; }
.egg-dlc-grid .egg-dlc-item[data-dlc-stage="hatched"],
.egg-dlc-grid .egg-dlc-item[data-dlc-stage="free"] { --dlc-glow-color: #3DDC97; }
.egg-dlc-grid .egg-dlc-item[data-dlc-stage="cooked"] { --dlc-glow-color: #FF9A3D; }
.egg-dlc-grid .egg-dlc-item[data-dlc-stage="eggcube"] { --dlc-glow-color: #E6ECFF; }
.egg-dlc-grid .egg-dlc-item:is(:hover,:focus-visible) {
    border-color: var(--dlc-glow-color);
    box-shadow: 0 0 16px color-mix(in srgb, var(--dlc-glow-color) 24%, transparent);
}
.egg-dlc-grid .egg-dlc-item:focus-visible { outline-color: var(--dlc-glow-color); }
.egg-dlc-grid a.egg-dlc-item,
.egg-dlc-grid a.egg-dlc-item:is(:hover,:focus,:focus-visible,:active),
.egg-dlc-grid a.egg-dlc-item:is(:hover,:focus,:focus-visible,:active) * {
    text-decoration: none !important;
}
@media (prefers-reduced-motion: reduce) {
    .egg-dlc-grid .egg-dlc-item { transition: none; }
}

/* DLC shelf shares the actual homepage artwork action buttons. */
.egg-dlc-grid .egg-dlc-shell{
  position:relative;
  min-width:0;
  height:100%;
}
.egg-dlc-grid .egg-dlc-shell > .egg-dlc-item{
  height:100%;
}
.egg-dlc-grid .egg-dlc-shell > .egg-card-actions{
  position:absolute;
  top:8px;
  left:8px;
  right:8px;
  z-index:4;
  display:flex;
  flex-direction:row-reverse;
  justify-content:space-between;
  align-items:flex-start;
  gap:8px;
  margin:0;
  padding:0;
  pointer-events:none;
}
.egg-dlc-grid .egg-dlc-shell > .egg-card-actions .egg-card-icon{
  pointer-events:auto;
}
/* Reserve exactly two title lines so every subtype pill shares a baseline. */
.egg-dlc-grid .egg-dlc-copy strong{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  min-height:2.8em;
  max-height:2.8em;
  line-height:1.4;
  overflow:hidden;
  overflow-wrap:anywhere;
}
/* Hovering either the link or a saved-game control highlights one card. */
.egg-dlc-grid .egg-dlc-shell:is(:hover,:focus-within) > .egg-dlc-item{
  border-color:var(--dlc-glow-color);
  box-shadow:0 0 16px color-mix(in srgb,var(--dlc-glow-color) 24%,transparent);
}
/* The same gold egg treatment as a wishlisted Hatched homepage card. */
.egg-dlc-grid .egg-dlc-shell[data-dlc-stage="hatched"] .egg-card-icon[data-wishlist-game][aria-pressed="true"] .egg-wishlist-egg{
  fill:#F4C542;
  stroke:#000000;
  stroke-width:1;
  vector-effect:non-scaling-stroke;
  paint-order:stroke fill;
  filter:drop-shadow(0 0 28px rgba(244,197,66,.85)) drop-shadow(0 0 55px rgba(244,197,66,.5));
}

/* Align every DLC subtype chip at the card's lower right, opposite its price. */
.egg-dlc-grid .egg-dlc-copy .egg-dlc-bottom{
  display:flex;
  flex:0 0 auto;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  width:100%;
  min-width:0;
  margin-top:auto;
}
.egg-dlc-grid .egg-dlc-bottom > .egg-dlc-price{
  flex:0 0 auto;
  max-width:60%;
  margin:0;
  min-width:0;
  white-space:nowrap;
}
.egg-dlc-grid .egg-dlc-bottom > .egg-dlc-type{
  flex:0 1 auto;
  align-self:flex-end;
  min-width:0;
  max-width:calc(100% - 70px);
  margin-left:auto;
  text-align:right;
}

/* Current DLC price and verified discount stay together on the lower left. */
.egg-dlc-grid .egg-dlc-bottom > .egg-dlc-price-group {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    min-width: 0;
    max-width: calc(100% - 44px);
    white-space: nowrap;
}
.egg-dlc-grid .egg-dlc-price-group > .egg-dlc-price {
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.egg-dlc-grid .egg-dlc-discount {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 3px 6px;
    border: 1px solid color-mix(in srgb, var(--dlc-glow-color) 35%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--dlc-glow-color) 8%, transparent);
    color: var(--dlc-glow-color);
    font: 700 11px/1.25 Inter, sans-serif;
    white-space: nowrap;
}
.egg-dlc-grid .egg-dlc-bottom > .egg-dlc-type {
    flex: 0 1 auto;
    max-width: none;
    margin-left: auto;
    min-width: 0;
}

/* Show a verified regular price below the discounted DLC row, without
   truncating values or changing the stage pill position on wide cards. */
.egg-dlc-grid .egg-dlc-copy .egg-dlc-bottom {
    flex-wrap: wrap;
    row-gap: 5px;
}
.egg-dlc-grid .egg-dlc-bottom > .egg-dlc-price-group {
    flex: 1 1 125px;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 7px;
    row-gap: 2px;
    max-width: 100%;
}
.egg-dlc-grid .egg-dlc-price-group > .egg-dlc-original-price {
    display: block;
    flex: 0 0 100%;
    color: #8A98C4;
    font: 500 11px/1.25 "JetBrains Mono", monospace;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    white-space: nowrap;
}
/* The shared clickable-card hover rule removes decoration from descendants;
   explicitly retain the regular-price strike-through on hover and focus. */
.egg-dlc-grid a.egg-dlc-item .egg-dlc-original-price,
.egg-dlc-grid a.egg-dlc-item:is(:hover,:focus,:focus-visible,:active) .egg-dlc-original-price {
    text-decoration: line-through !important;
}

/* Edition entitlements: show included DLC in grayscale until hovered or keyboard-focused. */
.egg-dlc-grid .egg-dlc-shell[data-dlc-included]:not(:hover):not(:focus-within):not(.egg-touch-edge-glow) > .egg-dlc-item .egg-dlc-media > img,
.egg-dlc-grid .egg-dlc-shell[data-dlc-included]:not(:hover):not(:focus-within):not(.egg-touch-edge-glow) > .egg-dlc-item .egg-dlc-media > .artwork-fallback,
.egg-dlc-grid .egg-dlc-shell[data-dlc-included]:not(:hover):not(:focus-within):not(.egg-touch-edge-glow) > .egg-dlc-item .egg-dlc-copy,
.egg-dlc-grid .egg-dlc-shell[data-dlc-included]:not(:hover):not(:focus-within):not(.egg-touch-edge-glow) > .egg-card-actions {
    filter: grayscale(1);
    opacity: .48;
}
.egg-dlc-grid .egg-dlc-shell[data-dlc-included]:not(:hover):not(:focus-within):not(.egg-touch-edge-glow) > .egg-dlc-item {
    background: #0F1A3A;
    border-color: #1E2D5C;
    box-shadow: none;
}
.egg-dlc-grid .egg-dlc-shell[data-dlc-included] > .egg-dlc-item .egg-dlc-media {
    position: relative;
}
.egg-dlc-grid .egg-dlc-shell[data-dlc-included]:not(:hover):not(:focus-within):not(.egg-touch-edge-glow) > .egg-dlc-item .egg-dlc-media::after {
    content: "INCLUDED";
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-9deg);
    pointer-events: none;
    padding: 7px 12px;
    border: 2px solid rgba(230, 236, 255, .75);
    border-radius: 3px;
    background: rgba(10, 17, 40, .82);
    color: #E6ECFF;
    font: 700 clamp(14px, 1.6vw, 21px)/1.2 Inter, sans-serif;
    letter-spacing: .11em;
    white-space: nowrap;
}
