/* ============ SILOBUR – gaya dasar (mengikuti mockup) ============ */
:root {
  --brand: #0033cc;
  --brand-dark: #00229a;
  --ink: #111;
  --muted: #5b6475;
  --line: #d9dde6;
  --bg: #ffffff;
  --soft: #f3f6fc;
  --input: #00cccc;      /* kotak isian toska di mockup */
  --nav: #66ffcc;        /* tombol Back / Next */
  --yellow: #ffff66;     /* tombol SIMPAN */
  --g1: #0099cc;         /* gantangan 1-6  */
  --g2: #00cc33;         /* gantangan 7-12 */
  --g3: #ff0000;         /* gantangan 13-18 */
  --g4: #0000ff;         /* gantangan 19-24 */
  --ok: #00802b;
  --danger: #d10000;
  --radius: 10px;
  font-family: Arial, Helvetica, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { min-height: 100vh; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- elemen gaya mockup ---------- */
.btn-nav {
  background: var(--nav);
  border: 2px solid #111;
  border-radius: 2px;
  font-size: clamp(22px, 6.5vw, 34px);
  padding: 4px 18px;
  min-width: 120px;
  line-height: 1.15;
}
.btn-nav:active { transform: translateY(1px); filter: brightness(.92); }
.btn-nav[disabled] { opacity: .35; }
.btn-nav.invisible { visibility: hidden; }

.field-teal {
  background: var(--input);
  border: 2px solid #111;
  border-radius: 0;
  height: 52px;
  width: 100%;
  padding: 0 12px;
  font-size: 22px;
  outline: none;
}
.field-teal:focus { box-shadow: 0 0 0 3px rgba(0, 51, 204, .35); }

.btn-simpan {
  background: var(--yellow);
  border: 2px solid #111;
  font-weight: 700;
  font-size: clamp(30px, 9vw, 44px);
  padding: 18px 10px;
  width: min(100%, 300px);
  letter-spacing: 1px;
}
.btn-simpan:active { filter: brightness(.93); }
.btn-simpan[disabled] { opacity: .45; }

.btn-koncer {
  background: #000;
  border: 0;
  color: #000;
  font-size: clamp(30px, 9vw, 46px);
  letter-spacing: 2px;
  padding: 2px 26px;
  -webkit-text-stroke: 1.5px #fff;
  text-stroke: 1.5px #fff;
  font-family: Arial, Helvetica, sans-serif;
}
.btn-koncer.on { background: #ffd600; -webkit-text-stroke: 1.5px #000; color: #ffd600; outline: 3px solid #000; }

.btn {
  border: 1.5px solid #111;
  background: #fff;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.yellow { background: var(--yellow); }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn.danger.solid { background: var(--danger); color: #fff; }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 6px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Warna blok gantangan – TANPA merah & biru (merah = Koncer A/Juara 1, biru = Koncer B/Juara 2) */
.g1 { background: #00b33c; } .g2 { background: #ff8c00; } .g3 { background: #8e24aa; } .g4 { background: #795548; }
.g5 { background: #6d8c00; } .g6 { background: #c79100; } .g7 { background: #00897b; } .g8 { background: #1b5e20; }
.g9 { background: #e65100; } .g10 { background: #4a148c; } .g11 { background: #212121; } .g12 { background: #827717; }
/* warna koncer */
:root { --koncer-a: #e00000; --koncer-b: #0033e0; }

/* ---------- toast & modal ---------- */
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: #111; color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 16px;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 1000; max-width: 92vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--danger); }
#toast.ok { background: var(--ok); }

.modal-back {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center;
  z-index: 900; padding: 16px;
}
.modal {
  background: #fff; border: 2px solid #111; border-radius: 12px; width: min(460px, 100%); padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3); max-height: 92vh; overflow: auto;
}
.modal h3 { margin: 0 0 10px; font-size: 20px; }
.modal p { margin: 0 0 16px; font-size: 17px; line-height: 1.4; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal .actions .btn { font-size: 17px; padding: 10px 18px; }

/* ---------- Login ---------- */
.login-wrap {
  max-width: 460px; margin: 0 auto; padding: 28px 22px 40px; display: flex; flex-direction: column; align-items: center;
}
.login-wrap .logo { width: min(68vw, 290px); height: auto; margin-top: 8px; }
.login-wrap h1 { font-weight: 400; font-size: clamp(38px, 11vw, 54px); margin: 26px 0 26px; letter-spacing: 1px; }
.login-form { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 16px 16px; align-items: center; }
.login-form label { font-size: clamp(22px, 6vw, 28px); }
.login-form .full { grid-column: 1 / -1; }
.login-form .btn-simpan { justify-self: center; margin-top: 18px; font-size: 30px; padding: 12px 10px; }
.login-err { color: var(--danger); font-size: 17px; min-height: 22px; text-align: center; }
.login-foot { margin-top: 30px; font-size: 13px; color: var(--muted); text-align: center; }

.mon-link { margin-top: 26px; font-size: 17px; font-weight: 700; color: var(--brand); text-decoration: none; border: 2px solid var(--brand); border-radius: 10px; padding: 10px 16px; }
