/* ── App shell ── */
#wr-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

#wr-app header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  height: 56px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── Score bar ── */
#score-bar {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 16px 24px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.score-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.score-icon { font-size: 20px; }
.score-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}
.score-val {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

/* ── Question ── */
#question-text {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  padding: 20px 16px 0;
  text-transform: uppercase;
}

/* ── Game area ── */
#game-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 24px 0;
  flex: 1;
}

/* ── Champion card ── */
.champ-card {
  width: 300px;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .2s;
  background: var(--bg2);
  flex-shrink: 0;
  position: relative;
}

.champ-card:not(.correct):not(.wrong):hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(200,169,110,.2);
}

.champ-card.correct {
  border-color: var(--green);
  box-shadow: 0 0 28px rgba(74,222,128,.25);
  cursor: default;
}
.champ-card.wrong {
  border-color: var(--red);
  opacity: .5;
  cursor: default;
}

.card-img-wrap {
  position: absolute;
  inset: 0;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .4s ease;
  display: block;
}
.champ-card:not(.correct):not(.wrong):hover .card-img {
  transform: scale(1.04);
}

/* Gradient overlay so text is readable */
.card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.75) 40%, rgba(0,0,0,.92) 100%);
  z-index: 2;
}
.champ-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
}
.champ-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(255,255,255,.6);
  margin-top: 3px;
  text-transform: uppercase;
}
.wr-reveal {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 8px;
  min-height: 32px;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
}

/* ── VS badge ── */
#vs-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

/* ── Hint text ── */
#hint-text {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity .2s;
}
#hint-text::before { content: "ⓘ"; }

/* ── Result bar ── */
#result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  gap: 20px;
}
#result-bar.hidden { display: none; }

#result-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

#result-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
#result-icon.correct-icon { background: #1a3a22; color: var(--green); border: 1px solid var(--green); }
#result-icon.wrong-icon   { background: #3a1a1a; color: var(--red);   border: 1px solid var(--red); }

#result-msg .msg-title { font-size: 15px; font-weight: 700; }
#result-msg.correct-msg .msg-title { color: var(--green); }
#result-msg.wrong-msg   .msg-title { color: var(--red); }
#result-msg .msg-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

#result-rates {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: center;
}
.result-champ { display: flex; align-items: center; gap: 10px; }
.result-icon-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border);
}
.result-wr { font-size: 24px; font-weight: 700; line-height: 1; }
.result-wr-label { font-size: 9px; font-weight: 700; letter-spacing: .08em; color: var(--muted); margin-top: 2px; text-transform: uppercase; }
.result-vs-divider { font-size: 11px; font-weight: 600; color: var(--muted); }

#next-btn {
  background: var(--accent);
  color: #0d0d0f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 10px 24px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background .15s;
  min-width: 120px;
}
#next-btn:hover { background: #d4b97e; }

/* ── Loading overlay ── */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  z-index: 100;
}
#loading-overlay.hidden { display: none; }
