/* =====================================================================
   Tema Islami
   Zamrud, emas, dan pola geometris.
   ===================================================================== */

/* ============ TEMA ISLAMI: zamrud, emas, pola geometris ============ */

body {
  background-color: var(--sky);
  background-image: var(--pat);
}

.view {
  padding-top: 28px;
}

.top {
  background: linear-gradient(180deg,#0B3340,#136A66);
  border-bottom: 3px solid var(--sun);
  color: #fff;
}

.top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 9px;
  background: var(--strip) repeat-x center/16px 9px;
  pointer-events: none;
}

.brand b {
  color: #fff;
}

.brand small {
  color: #BFE3DA;
}

.chip,
.icon-btn {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

.hero {
  background: radial-gradient(circle at 88% 12%,rgba(46,170,148,.55) 0,transparent 42%),linear-gradient(165deg,#0B3340 0%,#0F4E52 55%,#146A63 100%);
  padding-bottom: 92px;
  border-color: #fff;
  box-shadow: 0 10px 30px rgba(11,51,64,.3);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pat-w);
  pointer-events: none;
}

.hero .skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 96px;
  pointer-events: none;
}

.hero .lant {
  position: absolute;
  top: 0;
  width: 34px;
  transform-origin: 50% 0;
  animation: sway 4.2s ease-in-out infinite;
  pointer-events: none;
}

.hero .lant.l1 {
  right: 4%;
}

.hero .lant.l2 {
  right: 11%;
  width: 28px;
  animation-delay: -1.4s;
  margin-top: -14px;
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

.lant-glow {
  animation: glow 2.6s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    opacity: .75;
  }
  50% {
    opacity: 1;
  }
}

.hero h2,
.hero p,
.goal,
.hero-cta {
  position: relative;
  z-index: 1;
}

.mascot-box {
  position: relative;
  z-index: 1;
}

.sec-title {
  color: var(--night);
}

.sec-title::after {
  content: "";
  flex: 1;
  height: 10px;
  background: var(--strip2) repeat-x left center/14px 10px;
  opacity: .85;
}

.card {
  border-radius: 22px;
}

.pill.on {
  background: var(--mint);
  border-color: var(--mint-d);
}

.gicon {
  width: 52px;
  height: 60px;
  border-radius: 26px 26px 12px 12px;
  background: #fff;
}

.gcard {
  border-radius: 24px;
}

.gbar {
  display: block;
  height: 8px;
  background: rgba(0,0,0,.09);
  border-radius: 99px;
  overflow: hidden;
}

.gbar>i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg,var(--mint),#46C9A3);
  border-radius: 99px;
}

.gmeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  font-weight: 800;
  color: var(--ink);
}

.mushaf {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50.0,2.0 64.1,16.1 83.9,16.1 83.9,35.9 98.0,50.0 83.9,64.1 83.9,83.9 64.1,83.9 50.0,98.0 35.9,83.9 16.1,83.9 16.1,64.1 2.0,50.0 16.1,35.9 16.1,16.1 35.9,16.1' fill='%23E9C76B'/%3E%3C/svg%3E") left 8px top 8px/15px 15px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50.0,2.0 64.1,16.1 83.9,16.1 83.9,35.9 98.0,50.0 83.9,64.1 83.9,83.9 64.1,83.9 50.0,98.0 35.9,83.9 16.1,83.9 16.1,64.1 2.0,50.0 16.1,35.9 16.1,16.1 35.9,16.1' fill='%23E9C76B'/%3E%3C/svg%3E") right 8px top 8px/15px 15px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50.0,2.0 64.1,16.1 83.9,16.1 83.9,35.9 98.0,50.0 83.9,64.1 83.9,83.9 64.1,83.9 50.0,98.0 35.9,83.9 16.1,83.9 16.1,64.1 2.0,50.0 16.1,35.9 16.1,16.1 35.9,16.1' fill='%23E9C76B'/%3E%3C/svg%3E") left 8px bottom 8px/15px 15px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50.0,2.0 64.1,16.1 83.9,16.1 83.9,35.9 98.0,50.0 83.9,64.1 83.9,83.9 64.1,83.9 50.0,98.0 35.9,83.9 16.1,83.9 16.1,64.1 2.0,50.0 16.1,35.9 16.1,16.1 35.9,16.1' fill='%23E9C76B'/%3E%3C/svg%3E") right 8px bottom 8px/15px 15px no-repeat,linear-gradient(#fff,#FFFDF3);
  border-color: #D9B04A;
  box-shadow: inset 0 0 0 5px #fff,inset 0 0 0 7px #F1DE9C;
}

.mushaf .badge-n {
  background: linear-gradient(180deg,#136A66,#0F3D42);
  border: 2px solid var(--sun);
  padding: 2px 14px;
}

.stage {
  position: relative;
  border-color: var(--sun);
  background: #fff;
}

.stage::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  background: var(--star-w) center/contain no-repeat;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.18));
  z-index: 2;
}

.bsm {
  font-size: 1.35rem;
  text-align: center;
  color: var(--sun-d);
  line-height: 1.9;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.bsm::before,
.bsm::after {
  content: "";
  flex: 1;
  height: 10px;
  background: var(--strip2) repeat-x center/14px 10px;
  opacity: .8;
  max-width: 80px;
}

.med {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--star-g) center/contain no-repeat;
  font-style: normal;
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: .8rem;
  color: #3b2b00;
  line-height: 1;
}

.ayat-top .no {
  background: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--night);
  font-family: var(--f-disp);
  font-weight: 700;
}

.scard .no {
  background: var(--star-e) center/contain no-repeat;
  border-radius: 0;
  min-width: 40px;
  height: 40px;
  color: #fff;
  font-size: .85rem;
}

.lvgrid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 10px;
  margin: 4px 0 12px;
}

.lvnode {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--star-x) center/100% 100% no-repeat;
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: 1.25rem;
  color: #8AA399;
  transition: transform .12s;
}

.lvnode.open {
  background-image: var(--star-e);
  color: #fff;
}

.lvnode.done {
  background-image: var(--star-g);
  color: #3b2b00;
}

.lvnode.sel {
  transform: scale(1.14);
  filter: drop-shadow(0 3px 0 rgba(184,134,11,.6));
}

.lvnode .lvn {
  margin-top: -6px;
}

.lvnode .lvst {
  position: absolute;
  bottom: 13%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: .55rem;
  color: #7a5200;
  line-height: 1;
}

.lvnode.lock .lvn {
  font-size: 1rem;
}

.lvinfo {
  background: #F6FBF8;
  border: 3px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
}

.sticker.t4 {
  --tb: #1FA9BD;
  --tbg: #DDF9FC;
}

.sticker.t4::after {
  content: "✦";
  position: absolute;
  top: 4px;
  left: 8px;
  color: #1FA9BD;
  font-size: 1rem;
}

.stkset {
  margin: 0 0 14px;
}

.stkhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.stkhead small {
  color: var(--muted);
  font-weight: 800;
}

.stkrow {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 8px;
}

@media(min-width:700px) {
  .stkrow {
    grid-template-columns: repeat(10,1fr);
  }
}

.stkrow .sticker {
  padding: 8px 2px 6px;
}

.stkrow .stk-e {
  font-size: 1.9rem;
}

.stkrow small {
  font-size: .66rem;
  line-height: 1.2;
}

.ucapan {
  background: linear-gradient(#FFF8DD,#FFF1BF);
  border: 3px solid var(--sun);
  border-radius: 20px;
  padding: 4px 18px 8px;
  display: grid;
  text-align: center;
  color: var(--night);
  width: 100%;
  max-width: 420px;
}

.ucapan small {
  font-weight: 800;
  color: #6b5200;
}

.bottom {
  border-top: 3px solid var(--sun);
}

.tab.on {
  background: #E3F2EA;
  color: var(--night);
}

#splash {
  background: radial-gradient(circle at 50% 44%,#1D8A78 0,#0F4E52 55%,#082A33 100%);
}

#splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pat-w);
}

.sp-lant {
  position: absolute;
  top: 0;
  width: clamp(34px,9vw,52px);
  transform-origin: 50% 0;
  animation: sway 4s ease-in-out infinite;
  z-index: 1;
}

.sp-lant.l1 {
  left: 9%;
  margin-top: clamp(40px,9vh,72px);
}

.sp-lant.l2 {
  right: 9%;
  animation-delay: -1.5s;
  margin-top: clamp(70px,14vh,110px);
}

.sp-center {
  z-index: 2;
  margin-top: -4vh;
}

.sp-kids {
  background: var(--sun);
  border-bottom-color: var(--sun-d);
}

@media(max-width:560px) {
  .hero h2 {
    padding-right: 44px;
  }
  .hero .lant.l1 {
    right: 6%;
  }
  .hero .lant.l2 {
    display: none;
  }
}

.cert-wrap {
  max-width: 760px;
}

.cert {
  position: relative;
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: #fff;
  display: block;
  color: var(--ink);
}

.cert-frame {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg,#0F3D42,#176A66);
  position: relative;
}

.cert-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: var(--pat-w);
}

.cert-in {
  position: relative;
  background: linear-gradient(#fffefa,#FFF9E6);
  border: 3px solid #D9B04A;
  border-radius: 10px;
  padding: 22px 18px 16px;
  text-align: center;
  display: grid;
  gap: 8px;
  box-shadow: inset 0 0 0 6px #fff,inset 0 0 0 8px #F1DE9C;
}

.cert-in .corner {
  position: absolute;
  width: 34px;
  height: 34px;
  background: var(--star-g) center/contain no-repeat;
}

.cert-in .c1 {
  top: -19px;
  left: -19px;
}

.cert-in .c2 {
  top: -19px;
  right: -19px;
}

.cert-in .c3 {
  bottom: -19px;
  left: -19px;
}

.cert-in .c4 {
  bottom: -19px;
  right: -19px;
}

.cert-bsm {
  font-size: 1.5rem;
  color: #9A6F0B;
  line-height: 2;
}

.cert-emblem {
  display: flex;
  justify-content: center;
}

.cert h3 {
  font-size: 1.9rem;
  color: var(--night);
}

.cert-sub {
  color: var(--mint-d);
  font-weight: 800;
}

.cert-given {
  color: var(--muted);
  font-weight: 700;
}

.cert .nm {
  font-family: var(--f-disp);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--mint-d);
  border-bottom: 3px solid var(--sun);
  display: inline-block;
  padding: 0 22px;
  justify-self: center;
  line-height: 1.3;
}

.cert p {
  margin: 2px 8px;
  font-weight: 700;
}

.cert-quote {
  background: #F1F8F4;
  border-radius: 14px;
  padding: 4px 12px 8px;
  margin: 4px 6px;
}

.cert-quote small {
  font-weight: 700;
  color: var(--muted);
}

.cert-sign {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: end;
  margin-top: 6px;
}

.cert-sign div {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.cert-sign span {
  display: block;
  width: 100%;
  max-width: 170px;
  border-bottom: 2px solid #8A9C95;
  height: 26px;
}

.cert-sign small {
  color: var(--muted);
  font-weight: 800;
}

.cert-date {
  font-weight: 800;
  color: var(--night);
}

@media(max-width:560px) {
  .cert-sign {
    grid-template-columns: 1fr 1fr;
  }
  .cert-date {
    grid-column: 1/-1;
    order: -1;
  }
  .cert h3 {
    font-size: 1.5rem;
  }
  .cert .nm {
    font-size: 1.6rem;
  }
}

.sheet.wide {
  max-width: 780px;
}

.certgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
  gap: 10px;
}

.certcard {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 12px 8px;
  border-radius: 18px;
  border: 3px solid #D9B04A;
  background: linear-gradient(#FFFDF3,#FFF3CF);
  text-align: center;
}

.certcard .e {
  font-size: 1.8rem;
}

.certcard b {
  font-family: var(--f-disp);
  font-size: .98rem;
  line-height: 1.15;
}

.certcard small {
  color: var(--muted);
  font-weight: 800;
}

.certcard.lock {
  border-color: var(--line);
  background: #F4F8F5;
  filter: grayscale(.8);
  opacity: .75;
}

.hero {
  grid-template-columns: minmax(0,1fr) auto;
}

.hero h2 {
  font-size: clamp(1.35rem,6.2vw,2.4rem);
}

@media(max-width:560px) {
  .hero {
    grid-template-columns: minmax(0,1fr);
  }
}

.la::after {
  content: "\00A0" attr(data-a);
  position: relative;
  left: calc(var(--la-left,0) * 1em);
  top: calc(var(--la-up,0) * -1em);
  margin-inline-end: calc(var(--la-w,.25) * -1em);
  pointer-events: none;
}

.ayah-number-icon {
  color: var(--sun-d);
  display: inline-block;
  margin-inline-start: 4px;
  font-size: .85em;
}

.bsm-card {
  background: linear-gradient(#fff,#FFF8DD);
  border-color: #E9C76B;
}

.qari-sel {
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}

.card .qari-sel {
  width: 100%!important;
}

.overlay.center {
  align-items: center;
  padding: 20px;
}

.sheet.dialog {
  max-width: 380px;
  border-radius: 30px;
  text-align: center;
  padding: 34px 22px 22px;
  position: relative;
  border: 4px solid var(--sun);
  overflow: visible;
  background: linear-gradient(#fff,#FBFFFC);
}

.sheet.dialog::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  background: var(--star-g) center/contain no-repeat;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.18));
}

.dlg {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.dlg .mascot {
  width: 92px;
  height: 92px;
  animation: floaty 3.6s ease-in-out infinite;
}

.dlg h3 {
  font-size: 1.45rem;
  color: var(--night);
}

.dlg p {
  margin: 0;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.45;
}

.dlg-info {
  background: #FFF8DD;
  border: 2px solid var(--sun);
  border-radius: 99px;
  padding: 3px 16px;
  font-weight: 800;
  color: #6b5200;
  font-size: .92rem;
}

.dlg-btns {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.dlg-risk {
  color: var(--coral-d);
  border-color: #F1C9BC;
}

.sp-msg {
  margin: 12px 0 0;
  font-weight: 700;
  font-size: .95rem;
  opacity: .85;
  animation: spFade .8s 1.6s both;
}
