/* Edition comparison: native Eggincube cards, with no custom card anatomy.
   Isolated to this table. Artwork and normal prices/stages stay visible. */
body[data-page="game"] .game-page[data-egg-nine-tabs="1"] .egg-nine-edition-comparison .egg-nine-comparison-native {
  box-sizing:border-box;
  max-width:100%;
  width:100%;
  margin:0 auto 12px;
  padding:13px 14px;
  border-radius:10px;
}
body[data-page="game"] .game-page[data-egg-nine-tabs="1"] .egg-nine-edition-comparison .egg-nine-comparison-native > h2 {
  margin:0 0 10px;
  padding:0;
  font:700 16px/1.3 Inter,sans-serif;
}
body[data-page="game"] .egg-matrix-editions-across {
  width:100%;
  max-width:100%;
  min-width:0;
  color:#E6ECFF;
  font-family:Inter,sans-serif;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-scroll {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:100%;
  overflow-x:auto;
  overflow-y:visible;
  background:#0F1A3A;
  border:1px solid #1E2D5C;
  border-radius:9px;
  scrollbar-color:#1E2D5C #0F1A3A;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-scroll:focus-visible {
  outline:2px solid #7FA8FF;
  outline-offset:2px;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-table {
  width:100%;
  border:0;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
  margin:0;
  background:#0F1A3A;
  color:#E6ECFF;
  font-size:12px;
  line-height:1.35;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-table caption {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-table :is(th,td) {
  box-sizing:border-box;
  min-width:0;
  margin:0;
  padding:7px 9px;
  border:0;
  border-bottom:1px solid #1E2D5C;
  vertical-align:middle;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-table tr > :is(th,td):not(:last-child) {
  border-right:1px solid #1E2D5C;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-table tbody tr:last-child > :is(th,td) {
  border-bottom:0;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-table thead th {
  padding:9px;
  background:#14224A;
  text-align:center;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-table tr > th:first-child {
  position:sticky;
  left:0;
  z-index:2;
  width:276px;
  min-width:276px;
  max-width:276px;
  text-align:left;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-table thead th:first-child {z-index:3;}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-label-head {
  color:#E6ECFF;
  font-size:13px;
  font-weight:700;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-edition-card {
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:46px;
  gap:0;
  margin:0;
  padding:8px 6px;
  border:1px solid #1E2D5C;
  border-radius:8px;
  background:#0F1A3A;
  text-align:center;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-edition-name {
  display:block;
  width:100%;
  overflow-wrap:anywhere;
  color:#E6ECFF;
  font-size:12px;
  line-height:1.3;
  font-weight:700;
  text-decoration:none;
}
body[data-page="game"] .egg-matrix-editions-across a.egg-matrix-edition-name:is(:hover,:focus-visible) {
  color:#7FA8FF;
  text-decoration:underline;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-table tbody th.egg-matrix-item {
  background:#0F1A3A;
  padding:7px 9px;
  text-align:left;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-row:nth-child(even) > :is(td,th) {
  background:#14224A!important;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-item-wrap {
  width:100%;
  min-width:0;
  display:block;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-item-kind {
  display:none;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-item-name {
  display:block;
  margin:0;
  padding:7px 2px;
  color:#E6ECFF;
  font-size:13px;
  line-height:1.35;
  font-weight:700;
  text-decoration:none;
}
body[data-page="game"] .egg-matrix-editions-across a.egg-matrix-item-name:is(:hover,:focus-visible) {
  color:#7FA8FF;
  text-decoration:underline;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-status-cell {
  text-align:center;
  vertical-align:middle;
  padding:8px;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-status {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  margin:auto;
  line-height:1;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-symbol {
  display:grid;
  flex:none;
  place-items:center;
  box-sizing:border-box;
  width:26px;
  height:26px;
  margin:0;
  padding:0;
  border:1px solid transparent;
  border-radius:50%;
  color:#8A98C4;
  font:700 14px/1 Inter,sans-serif;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-symbol svg {
  display:block;
  width:16px;
  height:16px;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-symbol-yes {
  color:#3DDC97;
  background:rgba(61,220,151,.11);
  border-color:rgba(61,220,151,.35);
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-symbol-no {
  color:#FF6B6B;
  background:rgba(255,107,107,.11);
  border-color:rgba(255,107,107,.35);
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-symbol-unknown {
  color:#8A98C4;
  background:#14224A;
  border-color:#1E2D5C;
}

/* Keep normal game and DLC cards and their intrinsic aspect ratios.
   Only size the wrapper to the table cell; native site card styling owns interiors. */
body[data-page="game"] .game-page[data-egg-nine-tabs="1"] .egg-nine-comparison-sections .egg-matrix-editions-across .egg-matrix-native-card,
body[data-page="game"] .game-page[data-egg-nine-tabs="1"] .egg-nine-comparison-sections .egg-matrix-editions-across .egg-matrix-native-card .egg-compare-card-grid {
  box-sizing:border-box;
  min-width:0;
  width:100%;
  max-width:100%;
  padding:0;
  margin:0;
}
body[data-page="game"] .game-page[data-egg-nine-tabs="1"] .egg-nine-comparison-sections .egg-matrix-editions-across .egg-matrix-native-card .egg-compare-card-grid {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-flow:row!important;
  gap:0!important;
}
body[data-page="game"] .game-page[data-egg-nine-tabs="1"] .egg-nine-comparison-sections .egg-matrix-editions-across .egg-matrix-native-card .egg-compare-card-grid > :is(.game-card,.egg-dlc-shell) {
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
}
/* The same image-over-content structure used in sitewide game/DLC grids. */
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-native-card .game-card > a,
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-native-card .egg-dlc-shell > a.egg-dlc-item {
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  width:100%;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-native-card .game-card > a > img,
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-native-card .egg-dlc-media {
  display:block;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:460/215;
  object-fit:contain;
  overflow:hidden;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-native-card .egg-dlc-media img {
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  border-radius:0;
}
/* Adjust only padding for the 256px-wide card; never strip or rearrange its data. */
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-native-card .game-card .card-body,
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-native-card .egg-dlc-copy {
  box-sizing:border-box;
  min-width:0;
  width:100%;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible;
  padding:9px 10px!important;
}
body[data-page="game"] .egg-matrix-editions-across .egg-matrix-native-card .egg-dlc-copy {
  gap:6px;
}
@media (max-width:720px) {
  body[data-page="game"] .game-page[data-egg-nine-tabs="1"] .egg-nine-edition-comparison .egg-nine-comparison-native {padding:11px;}
  body[data-page="game"] .egg-matrix-editions-across .egg-matrix-table tr > th:first-child {
    width:258px;
    min-width:258px;
    max-width:258px;
  }
  body[data-page="game"] .egg-matrix-editions-across .egg-matrix-table :is(th,td) {padding:6px;}
}

/* The comparison has two render paths: verified matrices and fallback
   publisher sections. Both must use the same native card geometry and controls.
   No new button markup, saved-state APIs, or price-stage rules are introduced. */
body[data-page="game"] #egg-nine-panel-edition-comparison .egg-nine-comparison-sections :is(.game-card.compact-game-card,.egg-dlc-shell){
  position:relative!important;
  box-sizing:border-box;
  min-width:0;
  width:100%;
  max-width:100%;
  isolation:isolate;
  border-radius:10px!important;
}
body[data-page="game"] #egg-nine-panel-edition-comparison .egg-nine-comparison-sections .game-card.compact-game-card {
  overflow:hidden;
  border:1px solid #1E2D5C;
  background:#0F1A3A;
}
body[data-page="game"] #egg-nine-panel-edition-comparison .egg-nine-comparison-sections .egg-dlc-shell > a.egg-dlc-item {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  box-sizing:border-box;
  width:100%;
  overflow:hidden!important;
  border:1px solid #1E2D5C;
  border-radius:10px!important;
  background:#0F1A3A;
}
body[data-page="game"] #egg-nine-panel-edition-comparison .egg-nine-comparison-sections .game-card > a > :is(img,.artwork-fallback){
  border-radius:0;
}
body[data-page="game"] #egg-nine-panel-edition-comparison .egg-nine-comparison-sections .egg-dlc-shell .egg-dlc-media{
  border-top-left-radius:9px;
  border-top-right-radius:9px;
}

/* The exact standard category palette, for game and DLC cards alike. */
body[data-page="game"] #egg-nine-panel-edition-comparison .egg-nine-comparison-sections :is(.game-card,.egg-dlc-shell){--egg-edge-color:#8A98C4;}
body[data-page="game"] #egg-nine-panel-edition-comparison .egg-nine-comparison-sections :is(.game-card:has(.stage.incubating),.egg-dlc-shell[data-dlc-stage="incubating"]){--egg-edge-color:#FF6B6B;}
body[data-page="game"] #egg-nine-panel-edition-comparison .egg-nine-comparison-sections :is(.game-card:has(.stage.cracking),.egg-dlc-shell[data-dlc-stage="cracking"]){--egg-edge-color:#7FA8FF;}
body[data-page="game"] #egg-nine-panel-edition-comparison .egg-nine-comparison-sections :is(.game-card:has(.stage.hatched),.game-card:has(.stage.free),.egg-dlc-shell[data-dlc-stage="hatched"],.egg-dlc-shell[data-dlc-stage="free"]){--egg-edge-color:#3DDC97;}
body[data-page="game"] #egg-nine-panel-edition-comparison .egg-nine-comparison-sections :is(.game-card:has(.stage.cooked),.egg-dlc-shell[data-dlc-stage="cooked"]){--egg-edge-color:#FF9A3D;}
body[data-page="game"] #egg-nine-panel-edition-comparison .egg-nine-comparison-sections :is(.game-card:has(.stage.eggcube),.egg-dlc-shell[data-dlc-stage="eggcube"]){--egg-edge-color:#E6ECFF;}
body[data-page="game"] #egg-nine-panel-edition-comparison .egg-nine-comparison-sections .game-card.compact-game-card:is(:hover,:focus-within){
  border-color:var(--egg-edge-color)!important;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--egg-edge-color) 32%,transparent),0 0 18px color-mix(in srgb,var(--egg-edge-color) 38%,transparent);
}
body[data-page="game"] #egg-nine-panel-edition-comparison .egg-nine-comparison-sections .egg-dlc-shell:is(:hover,:focus-within) > .egg-dlc-item{
  border-color:var(--egg-edge-color)!important;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--egg-edge-color) 32%,transparent),0 0 18px color-mix(in srgb,var(--egg-edge-color) 38%,transparent);
}

/* Normal Owned, Waitlist and Ignore buttons are intentionally inherited
   unmodified from Eggincube's shared game/DLC card styles and handlers.
   Do not override action size, position, color, opacity, SVG, or selected state. */
/* Keep the matrix table's narrow item column stable on phones. */
@media(max-width:720px){
 body[data-page="game"] #egg-nine-panel-edition-comparison .egg-matrix-table tr > th:first-child{
   width:258px;
   min-width:258px;
   max-width:258px;
 }
}


/* A tier-comparison table must remain readable while examining a card.
   The global hover preview duplicates item information and covers edition
   checkmarks; suppress it only while this specific tab is active. */
body[data-page="game"]:has(.game-page[data-egg-active-tab="edition-comparison"]) #egg-game-hover-preview {
  display:none!important;
}
