@import url("wars.css");

.wars-section {
  margin: 0 0 22px;
}

.wars-section-title,
.body_mc .wars-section-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  text-align: left;
}

.wars-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 14px;
}

.wars-meta {
  margin: 0;
}

.wars-meta-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(44, 53, 68, 0.55);
}

.wars-meta-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.wars-meta-row:first-child {
  padding-top: 0;
}

.wars-meta dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wars-meta dd {
  margin: 0;
  min-width: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.wars-meta dd a {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.wars-meta dd a:hover {
  color: var(--accent);
}

.wars-empty-val {
  color: var(--muted);
}

.wars-report {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.wars-report-author {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
}

.wars-screens {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.war_screen,
.war_table {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--inset);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease);
}

.war_screen--hover,
.war_table_hover,
.war_screen:hover {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.war_screen-clip {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  background: url(../../images/general/wars/clip.gif) center / contain no-repeat;
  opacity: 0.8;
}

.war_screen-desc {
  min-height: 2.4em;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.war_screen-img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  line-height: 0;
}

.war_screen-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.war_screen-glass {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-repeat: no-repeat;
  background-position: bottom right;
  pointer-events: none;
}

.wars-comments {
  margin: 0 0 18px;
}

.wars-comments a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

.wars-comments a:hover {
  text-decoration: underline;
}

.wars-meta-foot {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.wars-game-info {
  margin-top: 4px;
}

.wars-game-info-layout {
  display: grid;
  grid-template-columns: minmax(160px, 280px) minmax(0, 1fr);
  gap: 18px 22px;
  align-items: start;
}

.wars-game-info-art {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  line-height: 0;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.wars-game-info-art:hover,
.wars-game-info-art:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
  outline: none;
}

.wars-game-info-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 460 / 215;
  object-fit: cover;
}

.wars-game-info-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px;
}

.wars-game-info-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  object-fit: cover;
}

.wars-game-info-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.wars-game-info-genres {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.wars-game-info-desc {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.wars-game-info-meta {
  margin: 0 0 14px;
}

.wars-game-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

@media (max-width: 900px) {
  .wars-detail-grid {
    grid-template-columns: 1fr;
  }

  .wars-meta-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .wars-game-info-layout {
    grid-template-columns: 1fr;
  }

  .wars-game-info-media {
    max-width: 420px;
  }
}
