:root {
  --primary: #007bff;
  --success: #28a745;
  --bg: #f0f4f8;
}

* { box-sizing: border-box; }

body {
  font-family: "Mitr", sans-serif;
  background: var(--bg);
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  background: #fff;
  width: 90%;
  max-width: 420px;
  padding: 2.5rem;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-top: 10px solid var(--primary);
}

.logo-img {
  width: 200px;
  height: auto;
  margin-bottom: 15px;
}

.brand { font-size: 0.9rem; color: var(--success); font-weight: 500; }

.display-box {
  background: #1a1a1a;
  padding: 2rem 1rem;
  border-radius: 20px;
  margin: 1.5rem 0;
}

.display-box .label {
  color: #888;
  font-size: 1rem;
  letter-spacing: 2px;
}

.q-number {
  font-size: clamp(7rem, 28vw, 11rem);
  line-height: 1;
  margin: 0;
  color: var(--num-green-bright);
}

.btn {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.5rem;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  margin-bottom: 12px;
  font-weight: 500;
  font-family: inherit;
  transition: transform 0.15s;
}

.btn-next { background: var(--success); color: #fff; }
.btn-next:active { transform: scale(0.95); }

.flex-row { display: flex; gap: 10px; }
.btn-small { flex: 1; font-size: 1rem; padding: 1rem; }
.btn-recall { background: #ffc107; color: #333; }
.btn-back { background: #f8f9fa; color: #666; border: 1px solid #ddd; }

.reset-link {
  color: #ccc;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 15px;
  display: block;
}

.tv-link {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
}

.tv-link:hover { text-decoration: underline; }
