@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0a0a0a;
  font-family: 'Inter', sans-serif;
  color: #e0e0e0;
  overflow: auto;
}
#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
}
.container {
  position: relative;
  z-index: 1;
  width: 320px;
  max-width: 90vw;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 1.5rem 1.25rem;
  margin: 2rem auto;
}
h1 {
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  margin: 0 0 1rem;
  color: #e0e0e0;
  text-align: center;
}
#timer-display {
  font-size: 3rem;
  font-weight: 400;
  color: #e0e0e0;
  margin: 1rem 0 1.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
button {
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d0d0d0;
  font-size: 0.85rem;
  font-family: inherit;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
button:hover:not(:disabled) {
  background: rgba(50, 50, 50, 0.8);
}
button:active:not(:disabled) {
  background: rgba(45, 45, 45, 0.8);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
#buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}
#buttons button {
  flex: 1;
  max-width: 120px;
}
#volume-control {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
  justify-content: center;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d0d0d0;
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d0d0d0;
  cursor: pointer;
  border: none;
}
#volume-control button {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}
.section-title {
  margin: 0.75rem 0 0.5rem;
  color: #b0b0b0;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}
.input-group {
  margin-bottom: 0.75rem;
}
.input-group label {
  display: block;
  font-size: 0.75rem;
  color: #909090;
  margin-bottom: 0.25rem;
}
.input-group input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.5rem;
  color: #e0e0e0;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}
.input-group input:focus {
  border-color: rgba(255, 255, 255, 0.15);
}
.input-group input:read-only {
  opacity: 0.5;
  cursor: not-allowed;
}
.button-row {
  display: flex;
  gap: 0.4rem;
  margin: 0.75rem 0;
  justify-content: center;
}
.button-row button {
  flex: 1;
  padding: 0.45rem 0.5rem;
  font-size: 0.8rem;
}
#habitica-log {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #a0a0a0;
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 0.5rem;
  min-height: 2rem;
  line-height: 1.4;
}
#data-controls {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
#data-controls button {
  flex: 1;
  max-width: 120px;
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
}
@media(max-width: 400px) {
  .container {
    padding: 1.25rem 1rem;
  }
  #timer-display {
    font-size: 2.5rem;
  }
}

/* GitHub */
.github-link {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.github-link:hover {
  color: rgba(255, 255, 255, 0.7);
}
.github-link svg {
  display: block;
}
@media (max-width: 480px) {
  .github-link {
    top: 0.75rem;
    right: 0.75rem;
  }
  .github-link svg {
    width: 18px;
    height: 18px;
  }
}

