/* Shared in-game card face promoted from Card Lab's selected Broad Square design. */
.card-container {
  --header-paper: url('art/card-ui/title-frayed-red.png');
  --footer-blue: #155dbb;
  position: relative;
  width: 1024px;
  height: 1536px;
  overflow: hidden;
  transform-origin: top left;
  border: 19px solid #d8c49d;
  border-radius: 43px;
  outline: 1px solid #f2dfb3;
  box-sizing: border-box;
  background: #000;
  box-shadow: 1px 1px 0 #5b4b32, 0 28px 55px rgba(0,0,0,.65);
  color: #090a09;
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
}
.card-container.attack { --header-paper: url('art/card-ui/title-frayed-red.png'); }
.card-container.defense { --header-paper: url('art/card-ui/title-frayed-blue.png'); }
.card-container.powerup { --header-paper: url('art/card-ui/title-frayed-green.png'); }
/* Curse cards (Dead Weight): the frayed banner rendered near-black, texture intact. */
.card-container.curse .top-band { filter: brightness(.22) saturate(.25); }

.card-container::before {
  content: '';
  position: absolute;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  border: 7px solid #090a09;
  border-radius: 23px;
}

.card-border {
  position: absolute;
  z-index: 101;
  inset: 0;
  pointer-events: none;
  border: 0;
  border-radius: 23px;
  box-shadow: inset 1px 1px rgba(255,255,255,.2), inset -1px -1px rgba(0,0,0,.2);
}

.top-band {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: 0;
  width: auto;
  height: 219px;
  border-radius: 0;
  background: transparent var(--header-paper) center / 100% 100% no-repeat;
  box-shadow: none;
}

.energy-medallion {
  position: absolute;
  z-index: 40;
  left: 21px;
  top: 23px;
  width: 174px;
  height: 174px;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  background: #020302;
  box-shadow: none;
  transform: none;
}
.energy-medallion::after { content: none; }
.energy-text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ead8af;
  font: 900 150px/.8 'Barlow Condensed', sans-serif;
  text-shadow: none;
  transform: translateY(-7px);
}

.title-block {
  position: absolute;
  z-index: 35;
  left: 0;
  right: 0;
  top: 0;
  width: auto;
  height: 219px;
  padding: 0 26px 11px 230px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.title-text {
  max-width: 100%;
  color: #ead8af;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.02em;
  white-space: nowrap;
  -webkit-text-stroke: 20px #090a09;
  paint-order: stroke fill;
  text-shadow: 9px 9px 0 #090a09;
}

.type-label,
.card-kind-icon,
.metallic-line { display: none; }

.art-panel {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  top: 202px;
  width: auto;
  height: 782px;
  border: 0 !important;
  border-bottom: 7px solid #1867d3 !important;
  border-radius: 0;
  box-sizing: border-box;
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: none;
}

.rules-panel {
  position: absolute;
  z-index: 20;
  left: -11px;
  right: -11px;
  top: 959px;
  width: auto;
  height: 449px;
  padding: 57px 70px 43px;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent url('art/card-ui/parchment-frayed.png') center / 100% 100% no-repeat;
  box-shadow: none;
}
.rule-row {
  flex: 0 1 auto;
  min-height: 92px;
  height: auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
}
.rule-row + .rule-row { border-top: 5px solid rgba(10,11,11,.62); }
.rule-text {
  width: 100%;
  min-width: 0;
  color: #090a09;
  font: 900 66px/.98 'Roboto Condensed', sans-serif;
  letter-spacing: .005em;
}
.rules-panel .rule-row:only-child .rule-text { font-size: 57px; }
.rule-icon,
.rule-icon-sprite { display: none; }

.footer-strip {
  position: absolute;
  z-index: 15;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: auto;
  height: 213px;
  padding: 134px 34px 0;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--footer-blue);
  box-shadow: none;
}
.flavor-text {
  color: #ead8af;
  font: italic 900 48px/1 'Barlow Condensed', sans-serif;
  letter-spacing: .035em;
  text-align: center;
  white-space: nowrap;
}
