/*--Tokens--*/
:root {
  --bg:#F2EBE3;
  --ink:#1C1A17;
  --surface:#FFFFFF;
  --teal:#4E8D7C;
  --orange:#F26442;
  --gold:#F2C149;
  --dust:#D8D2C9;
  --red:#C0392B;
}

/*--Reset--*/
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:sans-serif;
}

body{
  background:var(--bg);
  color:var-(--ink);
  min-height:100 vh;
  padding:20 px;
}

/*--NAV--*/
nav a {
text-decoration:none;
  color:var(--ink);
  font-size:14 px;
  padding: 6px 14px;
  border: 1px solid var(--ink);
  border-radius: 4px;
}

nav a.active {
  background: var(--ink);
  color: var(--surface);
}

/*-HEADER-*/
#header {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

#level-display {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

#xp-bar-track {
  background: var(--dust);
  height: 12px;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

#xp-bar {
  background: var(--gold);
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

#stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color:var(--ink);
}

/*--Active quests--*/
#active-quest {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

#active-quest name {
  font-weight: bold;
  font-size: 16px;
  margin-top: 4px;
}

/*--Timer Section--*/
#timer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

#timer-ring {
  width: 200px;
  height: 200px;
  border-radius:50%;
  background: conic-gradient(var(--orange) var(--progress,0%),var(--dust) 0%);
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--ink);
}

#timer-mode {
  font-size: 12px;
  letter-spacing: 2px;
  margin-top: 4px;
  color:var(--ink);
}

#timer-buttons {
  display: flex;
  gap: 12px;
}

button {
  padding: 10px 20px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--surface);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 3px, 3px 0 var(--ink);
}

button:active {
  transform: translateY(2px);
  box-shadow: 1px, 1px 0 var(--ink);
}

/*--Message--*/
#message {
  text-align: center;
  margin-top: 20px;
  font-size: 15px;
  font-weight: bold;
  color: var(--teal);
  min-height: 24px;
}

/*pulse animation *--/
@keyframes pulse {
0% {opacity:1;}
50% {opacity:0.6;}
100% {opacity:1;}
}

.pulsing {
  animation: pulse 1.5s infinite;
}
