.match-cinematic[hidden] { display: none; }

.match-cinematic {
  --scene-light: #9af4db;
  --scene-color: #246d60;
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: clamp(92px, 24vh, 230px) 16px 16px;
  pointer-events: none;
  isolation: isolate;
}
.match-cinematic[data-tone="ember"] { --scene-light: #ffd0a0; --scene-color: #8b4d37; }
.match-cinematic[data-scene="intro"] { padding-top: clamp(55px, 15vh, 140px); }
.match-cinematic:is([data-scene="equip"], [data-scene="trigger"]) { padding-top: clamp(64px, 18vh, 178px); }
.match-cinematic__frame {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  width: min(550px, 94vw);
  min-width: 0;
  padding: 22px 28px 25px;
  border-block: 1px solid color-mix(in srgb, var(--scene-light), transparent 43%);
  color: #fffbeb;
  text-align: center;
  background: linear-gradient(90deg, transparent 0%, #071518ee 17%, #071518ee 83%, transparent 100%);
  text-shadow: 0 2px 18px #050908;
  animation: match-cinematic-in 1080ms both;
}
.match-cinematic[data-scene="intro"] .match-cinematic__frame { animation-duration: 1450ms; }
.match-cinematic__stripes {
  position: absolute;
  z-index: -1;
  inset: -10% 0;
  background: linear-gradient(105deg, transparent 24%, var(--scene-color) 46%, var(--scene-light) 50%, var(--scene-color) 54%, transparent 77%);
  opacity: .36;
  mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
  animation: match-cinematic-sweep 830ms both;
}
.match-cinematic__title {
  font: 650 clamp(27px, 5.9vw, 58px)/1.03 "Cinzel", Georgia, serif;
  letter-spacing: .055em;
  color: var(--scene-light);
  text-shadow: 0 0 28px color-mix(in srgb, var(--scene-light), transparent 67%), 0 2px 6px #020604;
}
.match-cinematic:is([data-scene="equip"], [data-scene="trigger"]) .match-cinematic__title { font-size: clamp(20px, 4.5vw, 36px); }
.match-cinematic__detail { font-size: clamp(11px, 2.4vw, 16px); font-weight: 650; line-height: 1.3; color: #f2ede0; max-width: 34ch; }
.match-cinematic__legends {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(7px, 2vw, 18px);
  width: min(340px, 100%);
  margin: 0 0 9px;
}
.match-cinematic__legend { display: grid; gap: 3px; min-width: 0; justify-items: center; }
.match-cinematic__legend img {
  width: clamp(59px, 14vw, 102px);
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border: 1px solid #9ee3d1;
  border-radius: 7px;
  box-shadow: 0 6px 17px #000a;
}
.match-cinematic__legend:last-child img { border-color: #e5ab78; }
.match-cinematic__legend-name { overflow-wrap: anywhere; font-size: clamp(9px, 2vw, 12px); }
.match-cinematic__versus { color: #ffe1ad; font: 650 clamp(19px, 4vw, 32px)/1 "Cinzel", Georgia, serif; }
.game-card[data-stage-pulse] { animation: match-card-pulse 670ms both; }
.battlefield[data-stage-pulse] { animation: match-field-pulse 790ms both; }

.table-impact-label {
  display: grid;
  place-content: center;
  gap: 2px;
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, currentColor 65%, transparent);
  border-radius: 7px;
  background: #121420f5;
  box-shadow: 0 4px 15px #070912b0;
  font: 800 13px/1.2 Inter, "Segoe UI", sans-serif;
  text-align: center;
}
.table-impact-label strong { letter-spacing: .035em; }
.table-impact-label span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #f0edf3;
  font-size: 11px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.table-card-moment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid color-mix(in srgb, currentColor 58%, #1d2431);
  border-inline-start-width: 3px;
  border-radius: 6px;
  background: linear-gradient(110deg, #202a39, #131924 75%);
  box-shadow: 0 6px 24px #05060cbd;
  pointer-events: none;
}
.table-card-moment img {
  width: 42px;
  height: 100%;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 4px;
  background: #0e1420;
}
.table-card-moment[data-landscape] img { width: 76px; }
.table-card-moment div { display: grid; gap: 3px; min-width: 0; }
.table-card-moment span { font: 700 10px/1.15 Inter, "Segoe UI", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.table-card-moment strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: #faf6ff;
  font: 700 14px/1.16 Inter, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}
.table-card-moment[data-landscape] strong { -webkit-line-clamp: 2; }

.equipment-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.equipment-controls .equipment-open, .equipment-payment { border-color: #d5ad6d; color: #ffdfa5; }
.equipment-hint { flex: 1 1 140px; font-size: 11px; color: #e4d1a9; }
.equipment-attachments { display: flex; flex-wrap: wrap; gap: 5px; }
.equipment-attachments .equipment-chip { min-height: 29px; padding: 3px 7px; font-size: 10px; color: #ffdfa5; }
.game-card[data-equip-target] { outline: 2px solid #f8d398; outline-offset: 2px; }
.equipment-group {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-inline: 2px;
  border-radius: 6px;
  background: #c59b5430;
  box-shadow: 0 0 0 1px #c59b54;
}
.equipment-group > .game-card { flex: none; }
.equipment-link {
  position: absolute;
  z-index: 1;
  inset: clamp(13px, 1.4vw, 23px) 1px auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  padding: 2px;
  border: 1px solid #c59b54;
  border-radius: 3px;
  background: #211809f5;
  color: #ffe3ad;
  font: 750 clamp(9px, .92vw, 12px)/1.1 system-ui, sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.equipment-marker {
  position: absolute;
  z-index: 1;
  inset: 2px auto auto 2px;
  border: 1px solid #d1ab6b;
  border-radius: 4px;
  min-width: 14px;
  padding: 1px 3px;
  color: #ffe3ad;
  background: #211809ef;
  font: 700 10px/1.1 system-ui, sans-serif;
  pointer-events: none;
}
.game-card[data-equipped="true"] { border-color: #c59b54; }
.card-art-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 5px;
  color: #e6d2a6;
  background: #132125;
  text-align: center;
  font-size: clamp(8px, 1.1vw, 11px);
  overflow-wrap: anywhere;
  pointer-events: none;
}
.featured-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 8px 14px;
  padding: 12px 15px;
  border: 1px solid #bb965c70;
  border-inline-start: 3px solid #ebc386;
  border-radius: 7px;
  background: linear-gradient(105deg, #392d1e, #132328 73%);
}
.featured-event__copy { display: grid; min-width: 0; gap: 4px; }
.featured-event__copy strong { color: #ffe1ae; }
.featured-event__copy span { color: #c8c3b3; font-size: 12px; }

@keyframes match-cinematic-in {
  0% { opacity: 0; translate: 0 12px; scale: .93; }
  16%, 77% { opacity: 1; translate: none; scale: 1; }
  100% { opacity: 0; translate: 0 -8px; }
}
@keyframes match-cinematic-sweep {
  from { scale: .22 1; opacity: 0; }
  38% { opacity: .55; }
  to { scale: 1.1 1; opacity: .14; }
}
@keyframes match-card-pulse {
  25% { box-shadow: 0 0 0 2px #ffdb91, 0 0 21px #ffd780ba; }
}
@keyframes match-field-pulse {
  26% { box-shadow: inset 0 0 42px #e4a85667, 0 0 0 2px #eab975c4; }
}
@media (prefers-reduced-motion: reduce) {
  .match-cinematic, .match-cinematic[hidden], .table-card-moment { display: none; }
  [data-stage-pulse] { animation: none !important; }
}
