* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(33, 63, 99, 0.35), transparent 30%),
    #08111d;
  color: #f5e9c8;
  font-family: "Courier New", monospace;
}


.page {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 16px;
}

.panel {
  background: rgba(9, 20, 34, 0.96);
  border: 3px solid #8b5a25;
  box-shadow:
    0 0 0 2px #1a0f08,
    inset 0 0 0 2px rgba(255, 194, 68, 0.15);
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  padding: 22px;
  margin-bottom: 30px;
}

.hero-character img {
  width: 100%;
  image-rendering: pixelated;
}

.hero h1 {
  margin: 0;
  color: #ffcc33;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 #5b3514;
}

.subtitle {
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: white;
}

.hero-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 2px solid #8b5a25;
  border-bottom: 2px solid #8b5a25;
   border-left: 2px solid #8b5a25;
  border-right: 2px solid #8b5a25;
  padding: 12px 0;
  margin: 18px 0;
}

.hero-bars strong {
  color: #ffcc33;
}

.quote {
  color: #53e1ff;
  font-size: 1.1rem;

  border-top: 2px solid #8b5a25;
  border-bottom: 2px solid #8b5a25;
   border-left: 2px solid #8b5a25;
  border-right: 2px solid #8b5a25;



}

/* TIMELINE */

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 44px;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(#e1a52d, #ffe27a, #e1a52d);
  box-shadow: 0 0 12px #e1a52d;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  margin-bottom: 26px;
}

.level-badge {
  position: sticky;
  top: 20px;
  width: 90px;
  height: 90px;
  z-index: 2;
  align-self: start;
}
.level-badge img {
    width: 100%;
    height: 100%;
    display: block;

    image-rendering: pixelated; /* if pixel art */
}
.level-text {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    pointer-events: none;
}

.level-text span {
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
}

.level-text strong {
    color: #ffcc33;
    font-size: 1.2rem;
    line-height: 1;
    text-shadow: 2px 2px 0 #000;
}
.level-text strong {
  font-size: 1rem;
}
.job-card {
  padding: 16px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid #8b5a25;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.job-header h2 {
  margin: 0;
  color: white;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.job-header p {
  margin: 4px 0 0;
  color: #53e1ff;
}

.date {
  text-align: right;
  color: white;
  font-weight: bold;
}

.date span {
  display: block;
}

/* JOB GRID */

.job-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr 0.85fr;
  gap: 12px;
}

.job-image {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  border: 3px solid #8b5a25;
  image-rendering: pixelated;
  grid-row: span 2;
}

.box {
  background: rgba(3, 10, 20, 0.8);
  border: 2px solid #8b5a25;
  padding: 12px;
}

.box h3 {
  margin: 0 0 12px;
  color: #ffcc33;
  text-transform: uppercase;
  font-size: 1rem;
}

/* STATS */

.stat {
  margin-bottom: 10px;
}

.stat span {
  display: block;
  font-size: 0.85rem;
  color: white;
  margin-bottom: 4px;
}

.bar {
  height: 12px;
  background: #2c3038;
  border: 1px solid #5e4930;
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #e1a52d, #ffcc33);
}

/* SKILLS */

.skills ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
}

.skills li {
  margin-bottom: 8px;
  color: white;
  font-size: 0.9rem;
}

.skills li::before {
  content: "✥ ";
  color: #9dff4f;
}

.skills .locked {
  color: #777;
}

.skills .locked::before {
  content: "🔒 ";
}

/* QUESTS */

.quests {
  grid-column: 2 / 4;
}

.quests ul {
  margin: 0;
  padding-left: 20px;
}

.quests li {
  margin-bottom: 8px;
  color: white;
  line-height: 1.35;
}

.quests li::marker {
  color: #ffcc33;
}

/* XP */

.xp {
  text-align: center;
  color: #53e1ff;
  font-size: 1.1rem;
  align-content: center;
}

.xp strong {
  color: #ffcc33;
  font-size: 1.5rem;
}

/* FOOTER */

.footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 30px;
}

.footer a {
  color: white;
  text-decoration: none;
  padding: 16px;
  border-right: 2px solid #8b5a25;
  text-transform: uppercase;
}

.footer a:last-child {
  border-right: none;
}

.footer span {
  color: #cfd8e3;
  text-transform: none;
}

/* MOBILE */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

 .boss-header{
        flex-direction:column;
        align-items:flex-start;
        gap:6px;
    }
  .hero-character img {
    max-width: 220px;
    margin: 0 auto;
    display: block;
  }

 .timeline::before {
    left: 29px;
  }

  .timeline-item {
    grid-template-columns: 70px 1fr;
    gap: 12px;
  }

  .level-badge {
    width: 90px;
    height: 90px;
    padding: 0;
  }

  .level-text span {
    font-size: 0.6rem;
  }

  .level-text strong {
    font-size: 0.9rem;
  }

  .job-header {
    flex-direction: column;
  }

  .date {
    text-align: left;
  }

  .job-grid {
    grid-template-columns: 1fr;
  }

  .job-image {
    grid-row: auto;
    min-height: auto;
  }

  .quests {
    grid-column: auto;
  }

  .footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .page {
    padding: 10px;
  }

  .hero {
    padding: 14px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .hero-bars {
    flex-direction: column;
    gap: 8px;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .level-badge {
  position: relative;
  width: 95px;
  height: 95px;
  margin: 0 auto 10px;
  padding: 0;
}

  .level-text span {
    font-size: 0.7rem;
  }

  .level-text strong {
    font-size: 1rem;
  }

  .job-card {
    padding: 12px;
  }

  .job-header h2 {
    font-size: 1.15rem;
  }

  .skills ul {
    columns: 1;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer a {
    border-right: none;
    border-bottom: 2px solid #8b5a25;
  }

  .footer a:last-child {
    border-bottom: none;
  }
    .class-tag {
    justify-content: center;
    white-space: normal;
  }

  .class-tag img {
    width: 30px;
    height: 30px;
  }
}
.boss-encounter{
    margin-top:16px;
}

.boss-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
    padding-bottom:8px;
    border-bottom:2px solid #8b5a25;
}

.boss-header h3{
    margin:0;
    color:#ffcc33;
}

.boss-header span{
    color:#53e1ff;
}

.battle-scene{
    border:3px solid #8b5a25;
    border-radius:4px;
    overflow:hidden;
    background:#000;
}

.battle-scene video{
    display:block;
    width:100%;
    height:auto;
    object-fit:cover;
    image-rendering:pixelated;
}
.class-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.class-tag img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}
