﻿/* Layout: Tutorial + Active + Heroes + Enemies */
#tutorial-page {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 10px;
  min-height: 72vh;
}
#heroes-col .portrait {
  transform: scaleX(-1);
}
/* Tutorial column */
.tutorial-col {
  border: 1px solid #444;
  border-radius: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.04);
  overflow: auto;
}

/* Controls row: Prev left, Replay center, Next right */
.tutorial-controls {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

/* Equal thirds so center stays centered even if labels differ */
.tutorial-controls > button {
  flex: 1;
}

#btn-prev { text-align: left; }
#btn-replay { text-align: center; }
#btn-next { text-align: right; }

.tbtn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #555;
  background: rgba(0,0,0,0.25);
  color: #fff;
  cursor: pointer;
}

.tbtn:hover { background: rgba(0,0,0,0.35); }

.tbtn-primary {
  background: #2ecc71;
  border-color: #2ecc71;
  color: #fff;
}
.tbtn-primary:hover { background: #27ae60; }

.tutorial-step-indicator {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 10px;
}

.tutorial-text {
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* Hide/show HTML steps */
#tutorial-steps .t-step { display: none; }
#tutorial-steps .t-step.active { display: block; }

/* --- Battle-like columns --- */
.battle-col {
  border: 1px solid #444;
  border-radius: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.04);
  overflow: auto;
}

.battle-col h2 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

/* Cards */
.card {
  border: 1px solid #444;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  background: rgba(0,0,0,0.10);
}

.card-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.portrait {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid #444;
  object-fit: cover;
  background: rgba(0,0,0,0.25);
}

.title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 3px;
}

.sub {
  opacity: 0.85;
  font-size: 12px;
}

.hp-box { margin-top: 8px; }
.hp-line { font-size: 12px; margin-bottom: 4px; }

.hp-bar {
  height: 8px;
  border: 1px solid #333;
  border-radius: 20px;
  overflow: hidden;
}

.hp-fill {
  height: 100%;
  background: #3fa34d;
  transition: width 0.6s linear, background-color 0.2s linear;
}

.section-label {
  margin: 10px 0 6px 0;
  font-weight: bold;
}

.trait-line, .skill-line {
  font-size: 12px;
  margin: 3px 0;
}
