﻿* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0f1115;
  color: #e6e8ec;
  min-height: 100vh;
}

/* ---------- header ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid #1f242c;
  background: #13161c;
}

header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #1a1e26;
  border: 1px solid #1f242c;
  user-select: none;
}

.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0506e;
  transition: background 0.2s ease;
}

.status.connected .dot {
  background: #30c97a;
  box-shadow: 0 0 0 4px rgba(48, 201, 122, 0.15);
}

/* ---------- layout ---------- */
main {
  max-width: 720px;
  margin: 28px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: #13161c;
  border: 1px solid #1f242c;
  border-radius: 14px;
  padding: 24px;
}

.card h2 {
  margin: 0 0 16px 0;
  font-size: 13px;
  font-weight: 600;
  color: #cfd2d9;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- buttons (base) ---------- */
button {
  background: #4a7cff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}

button:hover:not(:disabled) { background: #3a6df0; }
button:active:not(:disabled) { transform: scale(0.985); }

/* ---------- hero punishment ---------- */
.punishment {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
}

.image-wrap {
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: #0f1115;
  border: 1px solid #1f242c;
  border-radius: 16px;
  overflow: hidden;
}

.image-wrap img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  transition: transform 0.12s ease;
  user-select: none;
  pointer-events: none;
}

.image-wrap img.kick-anim { transform: scale(0.92) rotate(-3deg); }

.kicks {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #cfd2d9;
}

#kicks {
  color: #ffb84a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#kick-btn {
  background: #e54b5e;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(229, 75, 94, 0.25);
}

#kick-btn:hover:not(:disabled) {
  background: #d23a4d;
  box-shadow: 0 4px 20px rgba(229, 75, 94, 0.35);
}

/* ---------- ignore timer ---------- */
.ignore-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px;
}

.ignore-value {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 4px 0 22px 0;
  min-height: 88px;
  align-items: center;
}

.time-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #0f1115;
  border: 1px solid #1f242c;
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 72px;
}

.time-num {
  font-size: 38px;
  font-weight: 700;
  color: #ffb84a;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -1px;
  display: inline-block;
}

.time-num.tick {
  animation: tick 0.22s ease-out;
}

@keyframes tick {
  0%   { transform: translateY(-3px); opacity: 0.55; }
  100% { transform: translateY(0);    opacity: 1; }
}

.time-unit {
  font-size: 11px;
  color: #8a90a0;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 8px;
  font-weight: 600;
}

.reset-btn {
  background: #2a2e38;
  color: #cfd2d9;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 8px;
}

.reset-btn:hover:not(:disabled) {
  background: #353a46;
  color: #fff;
}

.hidden { display: none !important; }
