body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: url("../images/kakariki.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================
   Game Container
   ========================= */
.game-container {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  padding: 30px 40px;
  text-align: center;
  width: 90%;
  max-width: 900px;
  margin-top: 40px; /* was 80px */
  animation: fadeInUp 0.6s ease-in-out;
}

.game-container h2 {
  color: #ffe066;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

h1 {
    margin-bottom: 8px;
}

.wrap {
    max-width: 900px;
    margin: 0 auto;
}

.row {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.clock-card {
    width: 280px;
}

svg {
    width: 240px;
    height: 240px;
}

.face {
    fill: #fff;
    stroke: #333;
    stroke-width: 4;
}

.ticks line {
    stroke: #bbb;
    stroke-width: 1;
}

.hand {
    stroke: #333;
    stroke-linecap: round;
}

.hour-hand {
    stroke-width: 6;
}

.minute-hand {
    stroke-width: 3;
}

.center {
    fill: #333;
}

.en-time {
    font-weight: bold;
    margin-top: 12px;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.time-block .label {
  font-weight: 400;
  opacity: 0.8;
  margin-left: 6px;
  font-size: 0.85em;
}

.tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    justify-content: center;
}

.tile {
    background: #005baa;
    border: 2px solid #007bff;
    color: white;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, color 0.2s;
}

.tile:hover {
    background: #007bff;
    color: #fff;
}

.tile.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.builder {
    border: 2px double #ffde59;
    border-radius: 10px;
    min-height: 50px;
    padding: 10px;
    margin-top: 12px;
    text-align: left;
}

.builder .chip {
    display: inline-block;
    margin: 4px 6px 0 0;
    padding: 6px 10px;
    background: #333;
    color: #fff;
    border-radius: 6px;
    font-size: 0.95rem;
}

.controls {
    margin-top: 16px;
}

button {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: bold;
    margin: 0 6px;
    cursor: pointer;
    transition: transform 0.15s;
}

button:hover {
    transform: translateY(-2px);
}

.btn-outline {
    background: #fff;
    color: #007bff;
    border: 2px solid #007bff;
}

.feedback {
    margin-top: 16px;
    font-weight: bold;
}

.ok {
    color: green;
}

.no {
    color: red;
}

@media (max-width: 767px) {
  .game-container {
    margin-top: 50px;
  }
}
