:root{
  --wheel-size: 380px;
  --card-bg: rgba(10,14,26,.72);
  --stroke: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --gold: #f5c542;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}

.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 14px;
}

.top{
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 8px 2px 14px;
}

.brand-title{
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .3px;
}

.muted{ color: var(--muted); font-size: 13px; }

.card{
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}

.row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.panel{
  padding: 10px 10px 4px;
}
.logo-wrap{
  text-align: center;
  margin-bottom: 12px;
}

.logo-gif{
  max-width: 300px;   /* atur ukuran logo */
  width: 175%;
  height: auto;
  display: inline-block;
}

.lbl{
  display:block;
  font-weight: 800;
  margin-bottom: 8px;
}

.in{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline: none;
}
.in::placeholder{ color: rgba(255,255,255,.45); }
.in:focus{
  border-color: rgba(245,197,66,.55);
  box-shadow: 0 0 0 3px rgba(245,197,66,.18);
}

.btn{
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 0;
  background: var(--gold);
  color: #111;
  font-weight: 900;
  letter-spacing: .5px;
  cursor: pointer;
  transition: transform .08s ease;
}
.btn-login{
  display: block;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: var(--text);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background .15s ease, transform .08s ease;
}

.btn-login:hover{
  background: rgba(255,255,255,.12);
}

.btn-login:active{
  transform: scale(.985);
}

.btn:active{ transform: scale(.985); }
.btn[disabled]{
  opacity: .6;
  cursor: not-allowed;
}

.msg{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  min-height: 18px;
}

.result{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  display:none;
}
.result.show{ display:block; }

.result .title{
  font-weight: 900;
  margin-bottom: 6px;
}
.r-title{
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 6px;
}
.r-meta{
  color: rgba(255,255,255,.85);
  line-height: 1.35;
}

.hint{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  display:flex;
  gap: 10px;
  align-items:flex-start;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}
.hint .dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(245,197,66,.9);
  margin-top: 4px;
  flex: 0 0 auto;
}

.wheel-wrap{
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

.wheel{
  width: var(--wheel-size);
  height: var(--wheel-size);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.25);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  position: relative;
}

.wheel-inner{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  transition: transform 4.2s cubic-bezier(.1,.85,.15,1);
}

/* pointer */
.pointer{
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 26px solid var(--gold);
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.55));
  z-index: 5;
}

/* hub */
.hub{
  position: absolute;
  inset: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe39a, var(--gold));
  border: 2px solid rgba(0,0,0,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  letter-spacing: .8px;
  color: #111;
  z-index: 3;
  box-shadow: 0 12px 20px rgba(0,0,0,.35);
}

.wheel-note{
  font-size: 12px;
  text-align: center;
}

.empty{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  padding: 16px;
  text-align:center;
}

.footer{
  text-align:center;
  padding: 14px 0 6px;
  font-size: 12px;
}

/* responsive */
@media (max-width: 880px){
  :root{ --wheel-size: 330px; }
  .row{ grid-template-columns: 1fr; }
  .wheel{ margin: 0 auto; }
}
@media (max-width: 420px){
  :root{ --wheel-size: 300px; }
  .card{ padding: 12px; }
}
