/*
 * Halaman peserta Tebak atau Tanya. CSS polos dan konservatif supaya jalan di HP lama
 * (syarat mutlak 5): tanpa variabel CSS, tanpa grid, tanpa font dari luar.
 */
html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  background: #f5f5f7;
  color: #1d1d1f;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

.view {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 96px;
}
.center {
  text-align: center;
}
.view.center {
  padding-top: 15vh;
}
.fill {
  padding-top: 18vh;
}

.brand {
  margin: 0 0 16px;
  color: #0f766e;
  font-size: 28px;
  line-height: 1.15;
}
.big {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}
.lead {
  margin: 0 0 20px;
  font-size: 20px;
}
.strong {
  font-size: 26px;
  font-weight: 700;
}
.hint {
  margin: 12px 0 0;
  color: #515154;
  font-size: 15px;
}

.stack > * {
  display: block;
  width: 100%;
  margin: 0 0 12px;
}
label {
  font-weight: 600;
  text-align: left;
}

.btn {
  display: block;
  width: 100%;
  min-height: 60px;
  padding: 14px 16px;
  border: 2px solid #c7c7cc;
  border-radius: 14px;
  background: #ffffff;
  color: #1d1d1f;
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.btn:active {
  background: #e8e8ed;
}
.btn:disabled {
  opacity: 0.5;
}
.btn.primary {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
  text-align: center;
}
.btn.primary:active {
  background: #0b5d57;
}
.btn.team {
  min-height: 96px;
  border: 0;
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}
.btn.anak {
  background: #0f766e;
}
.btn.ortu {
  background: #6d28d9;
}
/* Pilihan yang sedang dipilih: tebal, berbingkai, dan bertanda centang (tidak hanya warna). */
.btn.on {
  border-color: #0f766e;
  background: #e6f4f2;
  color: #0b5d57;
}
.btn.on:before {
  content: '\2713\00a0';
  font-weight: 800;
}
:focus {
  outline: 3px solid #0d9488;
  outline-offset: 2px;
}

.field {
  display: block;
  width: 100%;
  padding: 12px;
  border: 2px solid #c7c7cc;
  border-radius: 10px;
  background: #ffffff;
  color: #1d1d1f;
  font-family: inherit;
  /* 16 px ke atas supaya Safari iPhone tidak memperbesar halaman saat mengetik. */
  font-size: 18px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.field.code {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
textarea.field {
  resize: none;
}

.top {
  margin: 0 0 16px;
  overflow: hidden;
}
.badge {
  float: left;
  padding: 6px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.badge.anak {
  background: #0f766e;
}
.badge.ortu {
  background: #6d28d9;
}
.link {
  float: right;
  min-height: 34px;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: #0b5d57;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.prompt {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.quote {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-left: 4px solid #86868b;
  background: #ffffff;
  border-radius: 0 10px 10px 0;
  font-size: 19px;
}
.status {
  min-height: 28px;
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}
.status.ok {
  color: #0b5d57;
}
.status.warn {
  color: #9f1239;
}

.tabs {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid #d2d2d7;
  background: #ffffff;
  padding-bottom: 0;
  padding-bottom: env(safe-area-inset-bottom);
  font-size: 0;
  text-align: center;
}
.tab {
  display: inline-block;
  width: 50%;
  max-width: 260px;
  height: 60px;
  border: 0;
  border-top: 4px solid transparent;
  background: none;
  color: #515154;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.tab.on {
  border-top-color: #0f766e;
  color: #0b5d57;
}

.net {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  padding: 4px 8px;
  background: #b45309;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
