/* Computer Modern Fonts */
@font-face {
  font-family: 'Computer Modern';
  src: url('fonts/cmunbx.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Computer Modern';
  src: url('fonts/cmunrm.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --font-family: 'Computer Modern', 'Computer Modern Serif', 'CMU Serif', 'Latin Modern Roman', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  color: #000000;
  font-family: var(--font-family);
  font-weight: bold;
  font-size: 18px;
  line-height: 1.4;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

/* Haupt-Container zentriert */
.screen-container {
  width: 100%;
  max-width: 580px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 1. Startseite: Nur "Name?" und Eingabefeld */
.start-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.name-prompt {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.name-input {
  width: 100%;
  max-width: 380px;
  border: 2px solid #000000;
  border-radius: 0;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-family);
  font-weight: bold;
  font-size: 1.4rem;
  padding: 12px 16px;
  text-align: center;
  outline: none;
  margin-bottom: 20px;
}

.name-input:focus {
  outline: 2px solid #000000;
}

/* Schlichter Button */
.btn-submit {
  border: 2px solid #000000;
  border-radius: 0;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-family);
  font-weight: bold;
  font-size: 1.1rem;
  padding: 10px 28px;
  cursor: pointer;
}

.btn-submit:hover,
.btn-submit:active {
  background: #000000;
  color: #ffffff;
}

/* 2. Aufgaben-Ansicht */
.task-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.task-display {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 36px;
  line-height: 1.35;
  text-align: center;
  padding: 0 10px;
}

.confirm-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.btn-confirm {
  border: 2px solid #000000;
  border-radius: 0;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-family);
  font-weight: bold;
  font-size: 1.25rem;
  padding: 14px 36px;
  cursor: pointer;
  min-width: 220px;
}

.btn-confirm:hover,
.btn-confirm:active {
  background: #000000;
  color: #ffffff;
}

/* Bestätigungsabfrage */
.confirm-prompt-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.confirm-question {
  font-size: 1.2rem;
  font-weight: bold;
}

.confirm-btn-group {
  display: flex;
  gap: 14px;
}

.btn-inline {
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-family);
  font-weight: bold;
  font-size: 1.1rem;
  padding: 8px 24px;
  cursor: pointer;
}

.btn-inline:hover {
  background: #000000;
  color: #ffffff;
}

/* Fertig-Meldung */
.completed-all {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
}

/* Verstecken */
.hidden {
  display: none !important;
}

/* ========================================================
   Highscore-Ansicht (/highscore)
   ======================================================== */
.highscore-body {
  display: block;
  padding: 30px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.highscore-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.highscore-subtitle {
  font-size: 1rem;
  margin-bottom: 24px;
}

.highscore-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-family: var(--font-family);
  font-size: 1rem;
}

.highscore-table th,
.highscore-table td {
  border: 1px solid #000000;
  padding: 10px 14px;
  text-align: left;
}

.highscore-table th {
  background: #000000;
  color: #ffffff;
}

.highscore-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.btn-highscore-action {
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-family);
  font-weight: bold;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-highscore-action:hover {
  background: #000000;
  color: #ffffff;
}
