.office-accessory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.office-collection-heading {
  margin-top: 30px;
}

.display-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.medical-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.medical-prop-card {
  --faction-color: #b6252a;
}

.display-replica-card {
  --faction-color: #263748;
}

.office-accessory-card.medical-prop-card .catalog-product-image,
.office-accessory-card.display-replica-card .catalog-product-image {
  aspect-ratio: 4 / 3;
}

.office-accessory-card.medical-prop-card .catalog-product-image img,
.office-accessory-card.display-replica-card .catalog-product-image img {
  padding: 14px;
  object-fit: contain;
}

.prop-product .image-stage.prop-view {
  min-height: 430px;
  aspect-ratio: 4 / 3;
}

.game-profile-frame {
  min-height: 0 !important;
  padding: 0;
  overflow: hidden;
  color: #f4f0e7;
  border: 1px solid #38362f;
  background: #151410 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  font-family: Arial, Helvetica, sans-serif;
}

.game-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 10px 12px 9px;
  border-bottom: 1px solid #2d2b26;
  background: linear-gradient(#2a2925, #1e1d19);
  text-transform: uppercase;
}

.game-profile-header > div:first-child {
  display: grid;
  gap: 3px;
}

.game-profile-header strong {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.35px;
}

.game-profile-header span,
.game-profile-value small {
  color: #efe0a5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.game-profile-value {
  display: grid;
  justify-items: end;
  gap: 1px;
  white-space: nowrap;
}

.game-profile-value span {
  color: #a9bfd0;
  letter-spacing: 0.8px;
}

.game-profile-value strong {
  color: #fff;
  font-size: 15px;
}

.game-profile-value small {
  color: #8e8b80;
  font-size: 7px;
  letter-spacing: 0.8px;
}

.office-product .image-stage.game-profile-frame .game-profile-render {
  display: grid;
  place-items: center;
  height: 225px;
  padding: 8px 22px;
  background: radial-gradient(circle at 50% 44%, #292821 0, #181713 55%, #11100e 100%);
}

.office-product .image-stage.game-profile-frame .game-profile-render img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  filter: drop-shadow(0 13px 12px rgba(0, 0, 0, 0.6));
}

.game-profile-inventory {
  padding: 8px 12px;
  color: #f4ead0;
  border-block: 1px solid #24231f;
  background: #1d1c18;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.game-profile-inventory span {
  margin-right: 7px;
  color: #76746c;
}

.game-profile-effects {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 8px 14px 6px 24px;
  color: #f7f4ed;
  font-size: 10px;
  line-height: 1.25;
}

.game-profile-effects li::marker {
  color: #c6b16b;
}

.game-profile-reward {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px 5px;
  color: #f5ce22;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.game-profile-flavor {
  margin: 0;
  padding: 0 12px 8px;
  color: #bbb7a9;
  font-size: 10px;
  font-style: italic;
  line-height: 1.3;
}

.game-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  padding: 7px 12px;
  color: #d2cec1;
  border-top: 1px solid #2a2924;
  font-size: 8px;
  text-transform: uppercase;
}

.game-profile-meta b {
  margin-right: 4px;
  color: #f2ca25;
}

.game-profile-unlock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  color: #f4f0e7;
  border-top: 1px solid #2f2d28;
  background: #25241f;
  font-size: 9px;
}

.game-profile-unlock span {
  color: #9d998d;
  font-size: 8px;
}

.game-profile-source {
  display: block;
  padding: 6px 12px;
  color: #a7bbc8;
  border-top: 1px solid #2a2924;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-align: right;
}

.game-profile-source:hover,
.game-profile-source:focus-visible {
  color: #fff;
}

.medical-prop-card .game-card-compact {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0;
  color: #f5f1e8;
  background: #151410;
}

.game-card-compact-header,
.game-card-compact-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  background: linear-gradient(#2a2925, #1d1c19);
  text-transform: uppercase;
}

.game-card-compact-header > span:first-child {
  display: grid;
  gap: 2px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.game-card-compact-header small {
  color: #ebdda2;
  font-size: 7px;
  letter-spacing: 0.8px;
}

.game-card-compact-value {
  display: grid;
  justify-items: end;
  color: #aabecd;
  font-size: 7px;
  font-weight: 800;
}

.game-card-compact-value strong {
  color: #fff;
  font-size: 10px;
}

.game-card-compact-render {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  background: radial-gradient(circle at 50% 45%, #2b2a23 0, #181713 58%, #11100e 100%);
}

.game-card-compact-render.product-photo-render {
  background: #fff;
}

.office-accessory-card.medical-prop-card .catalog-product-image.game-card-compact .game-card-compact-render.product-photo-render img {
  position: absolute;
  inset: 8px 16px;
  width: calc(100% - 32px);
  height: calc(100% - 16px);
  padding: 0;
  object-fit: contain;
}

.office-accessory-card.medical-prop-card .catalog-product-image.game-card-compact .game-card-compact-render img {
  width: 100%;
  height: 100%;
  padding: 7px 16px;
  object-fit: contain;
  filter: drop-shadow(0 9px 10px rgba(0, 0, 0, 0.65));
}

/* Pose each manufactured model to match its recognizable MetaForge game-item view. */
.medical-prop-card .game-card-compact-render img.medical-orientation-first-aid,
.office-product .game-profile-render img.medical-orientation-first-aid {
  transform: rotate(180deg) scale(0.9);
}

.medical-prop-card .game-card-compact-render img.medical-orientation-bandage,
.office-product .game-profile-render img.medical-orientation-bandage {
  transform: rotate(-1deg) scale(0.9);
}

.medical-prop-card .game-card-compact-render img.medical-orientation-resuscitator,
.office-product .game-profile-render img.medical-orientation-resuscitator {
  transform: rotate(-12deg) scale(0.86);
}

.medical-prop-card .game-card-compact-render img.medical-orientation-adrenaline,
.office-product .game-profile-render img.medical-orientation-adrenaline {
  transform: rotate(38deg) scale(0.72);
}

.medical-prop-card .game-card-compact-render img.medical-orientation-medical-bag,
.office-product .game-profile-render img.medical-orientation-medical-bag {
  transform: rotate(1deg) scale(0.9);
}

.game-card-compact-footer {
  align-items: center;
  padding-block: 6px;
  color: #e9dfc7;
  border-top: 1px solid #302e28;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.45px;
}

.game-card-compact-footer em {
  color: #e0bd2a;
  font-style: normal;
}

.office-accessory-card {
  --faction-color: var(--blue);
}

.office-accessory-card .catalog-product-image {
  aspect-ratio: 1;
  background: #eef0f2;
}

.office-accessory-card .catalog-product-image::after {
  display: none;
}

.office-accessory-card .catalog-product-image img {
  padding: 10px;
  object-fit: contain;
}

.office-accessory-card .catalog-product-body {
  padding: 14px;
}

.office-accessory-card h3 {
  font-size: 16px;
}

.office-accessory-card .catalog-product-body > p:not(.faction-origin):not(.product-size) {
  min-height: 50px;
}

.office-product .image-stage.office-view {
  background: #eef0f2;
}

.office-product .image-stage.office-view img {
  width: 100%;
  height: 100%;
  padding: 14px;
  object-fit: contain;
  filter: none;
}

.office-product .image-stage.product-gallery-stage {
  min-height: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--soft-line);
  background: #fff;
}

.office-product .image-stage.product-gallery-stage img {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  padding: 0;
  object-fit: contain;
}

.product-gallery-caption {
  margin: 8px 0 0;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.product-gallery-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.product-gallery-choice {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 7px;
  min-height: 52px;
  padding: 4px;
  color: var(--blue-dark);
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.15;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.product-gallery-choice img {
  width: 42px;
  height: 42px;
  object-fit: cover;
}

.product-gallery-choice.selected {
  padding: 2px;
  border: 3px solid var(--blue);
}

.game-reference-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  margin: 20px 12px 18px;
  padding: 26px;
  border: 1px solid var(--line);
  background: #f5f6f7;
}

.game-reference-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.game-reference-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.product-copy-grid > div {
  padding: 28px 32px;
  border: 1px solid var(--line);
  background: #fff;
}

.product-copy-grid h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.product-copy-grid ul {
  margin: 0;
  padding-left: 20px;
}

.product-copy-grid li,
.product-copy-grid p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.faction-selector {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--soft-line);
}

.faction-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 8px;
  margin-top: 7px;
}

.faction-option {
  min-height: 50px;
  padding: 9px 8px;
  color: var(--blue-dark);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.faction-option.selected {
  padding: 7px 6px;
  border: 3px solid var(--blue);
}

.faction-option::before {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  content: "";
  background: var(--choice-color, var(--blue));
  vertical-align: -1px;
}

.faction-option[data-faction="valkyra"] {
  --choice-color: #d11f2c;
}

.faction-option[data-faction="manticore"] {
  --choice-color: #159a5c;
}

.faction-option[data-faction="white-landscape"],
.faction-option[data-faction="full-tagline"] {
  --choice-color: #fff;
}

.faction-option[data-faction="white-landscape"]::before,
.faction-option[data-faction="full-tagline"]::before {
  box-shadow: 0 0 0 1px #111;
}

.identity-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.selected-badge-preview {
  display: grid;
  grid-template-columns: 1fr 92px;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-align: left;
}

.selected-badge-preview img {
  width: 92px;
  height: 58px;
  object-fit: contain;
  background: #eef0f2;
}

.personalization-field {
  margin-top: 12px;
}

.personalization-field label {
  display: block;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.7px;
}

.personalization-field input {
  width: 100%;
  height: 45px;
  margin-top: 6px;
  padding: 0 12px;
  border: 2px solid #8799a8;
  background: #fff;
  font-size: 16px;
}

.personalization-field small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

@media (max-width: 1000px) {
  .office-accessory-grid,
  .display-product-grid,
  .medical-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-reference-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .office-accessory-grid,
  .display-product-grid,
  .medical-product-grid,
  .faction-selector-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery-choices,
  .product-copy-grid {
    grid-template-columns: 1fr 1fr;
  }

  .game-reference-panel {
    margin-inline: 0;
    padding: 18px;
  }
}
