/* DBOPH - the artwork-heavy pages (classes, media) and the shared pieces that
   only they use. Loaded after site.css, never instead of it. */

.eyebrow {
  margin: 0 0 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
}

/* ------------------------------------------------------------ race heading */

.race-head { display: flex; gap: 20px; align-items: center; margin: 0 0 22px; }
.race-head-img {
  width: 112px; height: 74px; flex: none;
  object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--edge);
}

.base-label {
  margin: 0 0 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text);
}
.base-label span { color: var(--faint); font-weight: 600; letter-spacing: .04em; }

/* --------------------------------------------------------------- class card */

.cls {
  display: flex; gap: 0;
  background: var(--panel); border: 1px solid var(--edge);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s ease;
}
.cls:hover { border-color: var(--gold); }

.cls-art { width: 168px; flex: none; background: #0a1018; border-right: 1px solid var(--edge); }
.cls-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cls-art.none {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #101a29, #0a0f18);
  color: var(--faint); font-size: 40px; font-weight: 800;
}

.cls-body { padding: 18px 20px 20px; min-width: 0; }

.cls-meta { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 8px; font-size: 11px; }
.cls-role, .cls-weapon {
  padding: 3px 9px; border-radius: 999px;
  font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.cls-role   { background: rgba(241,165,0,.14); color: var(--gold-bright); }
.cls-weapon { background: rgba(151,162,176,.14); color: var(--dim); }

.cls h3 { margin: 0 0 8px; font-size: 19px; color: var(--text); }
.cls-kr { font-size: 13px; font-weight: 600; color: var(--faint); margin-left: 5px; }
.cls-text { margin: 0 0 14px; color: var(--dim); font-size: 14.5px; line-height: 1.6; }

.cls-skills { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--edge); }
.cls-skills li { margin: 0 0 9px; font-size: 13.5px; line-height: 1.5; }
.cls-skills li:last-child { margin-bottom: 0; }
.cls-skills strong { color: var(--gold-bright); font-weight: 700; }
.cls-skills .kr { color: var(--faint); font-size: 12px; margin-left: 4px; }
.cls-skills em { display: block; color: var(--faint); font-style: normal; font-size: 13px; }

/* -------------------------------------------------------------- media page */

.vid {
  background: #000; border: 1px solid var(--edge);
  border-radius: var(--radius); overflow: hidden;
}
.vid video, .vid iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; }
.vid-none {
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 16 / 9; padding: 24px;
  background: linear-gradient(150deg, #101a29, #080c13);
  color: var(--faint); font-size: 14px;
}
.vid-cap { padding: 14px 18px; background: var(--panel); border-top: 1px solid var(--edge); }
.vid-cap h3 { margin: 0 0 4px; font-size: 16px; color: var(--text); }
.vid-cap p  { margin: 0; color: var(--faint); font-size: 13.5px; }

/* ------------------------------------------------------------------ gallery */

.gal { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.gal.c3 { grid-template-columns: repeat(3, 1fr); }

.gal a {
  display: block; position: relative;
  border: 1px solid var(--edge); border-radius: var(--radius);
  overflow: hidden; background: #0a1018;
  transition: border-color .15s ease, transform .08s ease;
}
.gal a:hover { border-color: var(--gold); transform: translateY(-2px); }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 10; }
.gal.art img { aspect-ratio: 4 / 3; object-fit: contain; background: #f4f1ea; }

.gal-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 12px 9px;
  background: linear-gradient(180deg, rgba(7,11,18,0), rgba(7,11,18,.9));
  color: var(--text); font-size: 12px; font-weight: 600;
}

/* ------------------------------------------------------- front-page races */

.races { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.races a {
  display: block; position: relative; overflow: hidden;
  border: 1px solid var(--edge); border-radius: var(--radius);
  background: #0a1018; color: var(--text);
  transition: border-color .15s ease, transform .08s ease;
}
.races a:hover { border-color: var(--gold); transform: translateY(-3px); text-decoration: none; }
.races img { width: 100%; height: 210px; object-fit: cover; display: block; }
.races .r-in {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 15px;
  background: linear-gradient(180deg, rgba(7,11,18,0), rgba(7,11,18,.93) 62%);
}
.races b { display: block; font-size: 18px; margin-bottom: 3px; }
.races span { font-size: 13px; color: var(--dim); }

/* ------------------------------------------------------------- strip banner */

.strip {
  position: relative; border-radius: var(--radius);
  border: 1px solid var(--edge); overflow: hidden;
  min-height: 260px; display: flex; align-items: flex-end;
  background: #0a1018 center/cover no-repeat;
}
.strip::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(7,11,18,.94) 8%, rgba(7,11,18,.25) 70%);
}
.strip-in { position: relative; z-index: 2; padding: 24px 28px; }
.strip-in h3 { margin: 0 0 6px; font-size: 21px; color: var(--text); }
.strip-in p  { margin: 0; color: var(--dim); font-size: 14.5px; max-width: 60ch; }

/* Used as a link on the front page as well as a plain banner elsewhere. */
a.strip { transition: border-color .15s ease, transform .08s ease; }
a.strip:hover { border-color: var(--gold); text-decoration: none; transform: translateY(-2px); }
a.strip:hover .strip-in h3 { color: var(--gold-bright); }

/* -------------------------------------------------------------------- small */

@media (max-width: 900px) {
  .gal { grid-template-columns: repeat(3, 1fr); }
  .cls-art { width: 128px; }
}
@media (max-width: 640px) {
  .gal, .gal.c3 { grid-template-columns: repeat(2, 1fr); }
  .cls { flex-direction: column; }
  .cls-art { width: 100%; height: 210px; border-right: 0; border-bottom: 1px solid var(--edge); }
  .race-head { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Three portraits side by side on a phone is three 100px slivers. */
  .races { grid-template-columns: 1fr; }
  .races img { height: 190px; }
  .strip { min-height: 210px; }
  .strip-in { padding: 20px; }
  .strip-in h3 { font-size: 18px; }
}
