/* =========================================================
   PORTAL SIAKAD V2
   SMP INSAN KAMIL TANGERANG
========================================================= */


* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
}


body {
    overflow-x: hidden;

    color: #172033;

    transition:
        color .8s ease;
}


/* =========================================================
   SCENE
========================================================= */

.portal-scene {

    position: relative;

    width: 100%;
    min-height: 100vh;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #cceaff 0%,
            #eaf7ff 48%,
            #ffffff 100%
        );

    transition:
        background 1s ease;
}


/* =========================================================
   SKY
========================================================= */

.scene-sky {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.20),
            rgba(255,255,255,0)
        );

    pointer-events: none;
}


/* =========================================================
   SUN
========================================================= */

/* =========================================================
   MATAHARI
========================================================= */

.scene-sun {

    position: absolute;

    left: 50%;
    top: 48%;

    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffd45a;

    box-shadow:
        0 0 30px rgba(255, 210, 70, .45),
        0 0 70px rgba(255, 210, 70, .20);

    transform: translate(-50%, -50%);

    z-index: 2;

    transition:
        left 1.5s ease,
        top 1.5s ease,
        opacity .8s ease;
}


.scene-sun i {

    font-size: 36px;

    color: #ffad00;

}


/* =========================================================
   BULAN
========================================================= */

.scene-moon {

    position: absolute;

    left: 50%;
    top: 48%;

    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff7cf;

    box-shadow:
        0 0 30px rgba(255, 245, 180, .40),
        0 0 70px rgba(255, 245, 180, .15);

    transform: translate(-50%, -50%);

    opacity: 0;

    z-index: 2;

    transition:
        left 1.5s ease,
        top 1.5s ease,
        opacity .8s ease;
}


.scene-moon i {

    font-size: 34px;

    color: #fff;
}




/* =========================================================
   CLOUD
========================================================= */

.scene-cloud {

    position: absolute;

    width: 180px;
    height: 48px;

    border-radius: 50px;

    background:
        rgba(255,255,255,.62);

    filter:
        blur(1px);

    opacity: .85;

    animation:
        cloudMove 40s linear infinite;

    pointer-events: none;
}


.scene-cloud::before,
.scene-cloud::after {

    content: "";

    position: absolute;

    border-radius: 50%;

    background: inherit;
}


.scene-cloud::before {

    width: 70px;
    height: 70px;

    left: 25px;
    bottom: 12px;
}


.scene-cloud::after {

    width: 90px;
    height: 90px;

    right: 25px;
    bottom: 8px;
}


.cloud-1 {

    top: 15%;
    left: -220px;
}


.cloud-2 {

    top: 30%;
    left: -300px;

    transform: scale(.7);

    animation-delay:
        14s;
}


@keyframes cloudMove {

    from {
        transform:
            translateX(0);
    }

    to {
        transform:
            translateX(130vw);
    }

}


/* =========================================================
   STARS
========================================================= */

.scene-stars {

    position: absolute;

    inset: 0;

    opacity: 0;

    transition:
        opacity 1s ease;

    pointer-events: none;
}


.scene-stars span {

    position: absolute;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 0 8px
        rgba(255,255,255,.95);

    animation:
        starTwinkle 3s infinite ease-in-out;
}


.scene-stars span:nth-child(1) {
    top: 11%;
    left: 12%;
}

.scene-stars span:nth-child(2) {
    top: 19%;
    left: 24%;
    animation-delay: .5s;
}

.scene-stars span:nth-child(3) {
    top: 9%;
    left: 39%;
    animation-delay: 1s;
}

.scene-stars span:nth-child(4) {
    top: 25%;
    left: 53%;
    animation-delay: 1.5s;
}

.scene-stars span:nth-child(5) {
    top: 13%;
    left: 66%;
    animation-delay: 2s;
}

.scene-stars span:nth-child(6) {
    top: 30%;
    left: 76%;
    animation-delay: .7s;
}

.scene-stars span:nth-child(7) {
    top: 17%;
    left: 87%;
    animation-delay: 1.4s;
}

.scene-stars span:nth-child(8) {
    top: 35%;
    left: 92%;
    animation-delay: .3s;
}

.scene-stars span:nth-child(9) {
    top: 8%;
    left: 72%;
    animation-delay: 1.7s;
}

.scene-stars span:nth-child(10) {
    top: 27%;
    left: 32%;
    animation-delay: 2.2s;
}

.scene-stars span:nth-child(11) {
    top: 21%;
    left: 59%;
    animation-delay: 1.1s;
}

.scene-stars span:nth-child(12) {
    top: 38%;
    left: 17%;
    animation-delay: .8s;
}


@keyframes starTwinkle {

    0%,
    100% {
        opacity: .25;
        transform: scale(.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }

}


/* =========================================================
   SCHOOL
========================================================= */

.school-scene {

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 210px;

    pointer-events: none;
}


/* GROUND */

.school-ground {

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 75px;

    background:
        linear-gradient(
            180deg,
            #9dc98c,
            #75ad68
        );

    opacity: .75;
}


/* BUILDING */

.school-building {

    position: absolute;

    left: 50%;
    bottom: 48px;

    width: min(850px, 72vw);

    height: 145px;

    transform:
        translateX(-50%);

    border-radius:
        10px
        10px
        0
        0;

    background:
        linear-gradient(
            90deg,
            #e4eef1,
            #ffffff,
            #e0ebef
        );

    box-shadow:
        0 -15px 40px
        rgba(50,90,110,.12);
}


/* ROOF */

.school-roof {

    position: absolute;

    top: -34px;

    left: -20px;
    right: -20px;

    height: 42px;

    background:
        linear-gradient(
            135deg,
            #a94c42,
            #c96858
        );

    clip-path:
        polygon(
            0 100%,
            50% 0,
            100% 100%
        );
}


/* WINDOWS */

.school-floor {

    position: absolute;

    left: 35px;
    right: 35px;

    top: 38px;

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 18px;
}


.school-window {

    height: 55px;

    border:
        6px solid
        #d1dfe6;

    border-radius: 6px;

    background:
        #9dc9dc;

    box-shadow:
        inset 0 0 12px
        rgba(30,90,120,.12);

    transition:
        background .8s ease,
        box-shadow .8s ease;
}


/* DOOR */

.school-door {

    position: absolute;

    left: 50%;

    bottom: 0;

    width: 70px;
    height: 90px;

    transform:
        translateX(-50%);

    border-radius:
        8px
        8px
        0
        0;

    background:
        #527084;
}


/* =========================================================
   TOPBAR
========================================================= */

.portal-topbar {

    position: relative;

    z-index: 20;

    width: min(1180px, 92%);

    margin:
        0 auto;

    padding-top: 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.portal-brand-mini {

    display: flex;

    align-items: center;

    gap: 12px;

    color: #14233c;
}


.portal-brand-mini img {

    width: 46px;
    height: 46px;

    object-fit: contain;

    padding: 4px;

    border-radius: 13px;

    background:
        rgba(255,255,255,.85);

    box-shadow:
        0 8px 22px
        rgba(30,60,90,.10);
}


.portal-brand-mini strong {

    display: block;

    font-size: 14px;

    letter-spacing: .5px;
}


.portal-brand-mini span {

    display: block;

    margin-top: 2px;

    color: #718096;

    font-size: 10px;
}


/* =========================================================
   SCENE BUTTON
========================================================= */

.scene-toggle {

    width: 44px;
    height: 44px;

    border: none;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(255,255,255,.75);

    backdrop-filter:
        blur(12px);

    color: #263a57;

    font-size: 18px;

    box-shadow:
        0 8px 24px
        rgba(30,60,90,.12);

    cursor: pointer;

    transition:
        transform .3s ease,
        background .4s ease;
}


.scene-toggle:hover {

    transform:
        rotate(15deg)
        scale(1.05);
}


/* =========================================================
   MAIN
========================================================= */

.portal-main {

    position: relative;

    z-index: 10;

    width: min(1000px, 92%);

    min-height: calc(100vh - 110px);

    margin:
        0 auto;

    padding:
        25px
        0
        25px;

    display: flex;

    flex-direction: column;

    align-items: center;
}


/* =========================================================
   MAIN LOGO
========================================================= */

.portal-main-logo {

    width: 92px;
    height: 92px;

    margin-top: 5px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 25px;

    background:
        rgba(255,255,255,.82);

    backdrop-filter:
        blur(12px);

    box-shadow:
        0 15px 35px
        rgba(30,60,90,.13);
}


.portal-main-logo img {

    width: 76px;
    height: 76px;

    object-fit: contain;
}


/* =========================================================
   TITLE
========================================================= */

.portal-title {

    text-align: center;

    margin-top: 12px;
}


.portal-title > span {

    display: inline-block;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

    color: #2874db;
}


.portal-title h1 {

    margin:
        5px 0 4px;

    font-size:
        clamp(34px, 5vw, 55px);

    line-height: 1;

    letter-spacing:
        -2px;

    font-weight: 300;

    color: #15243c;
}


.portal-title h1 strong {

    font-weight: 800;
}


.portal-title p {

    margin: 0;

    font-size: 13px;

    color: #687991;
}


/* =========================================================
   STAT CARD
========================================================= */

.portal-stat-card {

    width: min(620px, 100%);

    margin-top: 22px;

    padding:
        18px 22px;

    border:
        1px solid
        rgba(255,255,255,.8);

    border-radius: 23px;

    background:
        rgba(255,255,255,.70);

    backdrop-filter:
        blur(18px);

    box-shadow:
        0 20px 55px
        rgba(35,70,100,.13);
}


/* MAIN STAT */

.stat-main {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;
}


.stat-icon {

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        #e9f2ff;

    color:
        #2375df;

    font-size: 22px;
}


.stat-main > div:last-child span {

    display: block;

    font-size: 10px;

    font-weight: 700;

    color: #718096;

    letter-spacing: .7px;
}


.stat-main strong {

    display: block;

    margin-top: -3px;

    font-size: 38px;

    line-height: 1;

    color: #15243c;
}


/* DIVIDER */

.stat-divider {

    width: 100%;

    height: 1px;

    margin:
        15px 0;

    background:
        rgba(100,120,145,.14);
}


/* GENDER */

.stat-gender {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px;
}


.stat-gender > div {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;
}


.stat-gender > div > i {

    font-size: 24px;

    color: #3787ec;
}


.stat-gender > div:nth-child(2) > i {

    color: #e95898;
}


.stat-gender strong {

    display: block;

    font-size: 18px;

    line-height: 1;

    color: #172033;
}


.stat-gender span {

    display: block;

    margin-top: 3px;

    font-size: 10px;

    color: #718096;
}


/* =========================================================
   ROPE
========================================================= */

.portal-rope-wrapper {

    width: min(900px, 100%);

    margin-top: 21px;

    display: grid;

    grid-template-columns:
        1fr 300px 1fr;

    align-items: center;

    gap: 15px;
}


.rope-action {

    display: flex;
}


.rope-action.left {

    justify-content: flex-end;
}


.rope-action.right {

    justify-content: flex-start;
}


.rope-button {

    min-width: 190px;

    padding:
        11px 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    text-decoration: none;

    border-radius: 15px;

    background:
        rgba(255,255,255,.88);

    color: #26364e;

    font-size: 12px;

    font-weight: 700;

    box-shadow:
        0 9px 24px
        rgba(30,60,90,.10);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.rope-button:hover {

    color: #26364e;

    transform:
        translateY(-2px);

    box-shadow:
        0 14px 28px
        rgba(30,60,90,.15);
}


.rope-button i {

    color: #2076e2;
}


/* ROPE */

.portal-rope {

    position: relative;

    width: 100%;

    height: 54px;

    touch-action: none;

    user-select: none;
}


.rope-line {

    position: absolute;

    top: 50%;
    left: 0;
    right: 0;

    height: 10px;

    transform:
        translateY(-50%);

    border-radius: 20px;

    background:
        repeating-linear-gradient(
            45deg,
            #e7d1a3 0 8px,
            #bd965a 8px 16px
        );

    box-shadow:
        0 4px 8px
        rgba(80,60,30,.16);
}


/* HANDLE */

.rope-handle {

    position: absolute;

    left: 50%;
    top: 50%;

    width: 58px;
    height: 58px;

    transform:
        translate(-50%, -50%);

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border:
        5px solid
        #a8793f;

    background:
        radial-gradient(
            circle at 35% 30%,
            #f4d99d,
            #b27d3f
        );

    color: white;

    font-size: 20px;

    box-shadow:
        0 8px 18px
        rgba(70,50,25,.25);

    cursor: grab;

    z-index: 5;

    transition:
        box-shadow .25s ease;
}


.rope-handle:active {

    cursor: grabbing;

    box-shadow:
        0 12px 25px
        rgba(70,50,25,.35);
}


/* PULL */

.portal-rope.pull-left
.rope-handle {

    box-shadow:
        -8px 8px 25px
        rgba(45,110,220,.25);
}


.portal-rope.pull-right
.rope-handle {

    box-shadow:
        8px 8px 25px
        rgba(45,110,220,.25);
}


/* HINT */

.rope-hint {

    margin-top: 5px;

    font-size: 10px;

    color: #718096;

    text-align: center;
}


.rope-hint i {

    margin-right: 4px;

    color: #437ed0;
}


/* =========================================================
   SYSTEM ACCESS
========================================================= */

.system-access {

    width: min(900px, 100%);

    margin-top: 17px;
}


.access-heading {

    margin-bottom: 9px;

    text-align: center;
}


.access-heading span {

    display: block;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.6px;

    color: #63748a;
}


.access-heading small {

    display: block;

    margin-top: 2px;

    font-size: 9px;

    color: #8a98a9;
}


.access-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}


.access-card {

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        11px 13px;

    text-decoration: none;

    border:
        1px solid
        rgba(255,255,255,.75);

    border-radius: 16px;

    background:
        rgba(255,255,255,.70);

    backdrop-filter:
        blur(12px);

    color: #172033;

    box-shadow:
        0 10px 25px
        rgba(30,60,90,.08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.access-card:hover {

    color: #172033;

    transform:
        translateY(-3px);

    box-shadow:
        0 15px 30px
        rgba(30,60,90,.13);
}


/* ICON */

.access-icon {

    width: 39px;
    height: 39px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        #edf4ff;

    color:
        #2375df;

    font-size: 17px;
}


.access-icon.guru {

    background:
        #ebfaf1;

    color:
        #1aa15a;
}


.access-icon.siswa {

    background:
        #f0f2f6;

    color:
        #26364e;
}


.access-text {

    min-width: 0;
}


.access-text strong {

    display: block;

    font-size: 12px;
}


.access-text span {

    display: block;

    margin-top: 2px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 9px;

    color: #7c899a;
}


.access-card > i {

    margin-left: auto;

    flex-shrink: 0;

    color: #9aa7b8;

    font-size: 12px;
}


/* =========================================================
   FOOTER
========================================================= */

.portal-footer {

    position: relative;

    z-index: 10;

    width: min(900px, 92%);

    margin:
        0 auto;

    padding:
        5px 0 18px;

    display: flex;

    justify-content: center;

    gap: 10px;

    color: #8492a4;

    font-size: 9px;
}


/* =========================================================
   NIGHT MODE
========================================================= */

body.night .portal-scene {

    background:
        linear-gradient(
            180deg,
            #06132c 0%,
            #0b1c3b 50%,
            #111e34 100%
        );
}


body.night .scene-sun {

    opacity: 0;

    transform:
        translateY(30px);
}


body.night .scene-moon {

    opacity: 1;

    transform:
        translateY(0);
}


body.night .scene-stars {

    opacity: 1;
}


body.night .scene-cloud {

    background:
        rgba(102,125,157,.16);
}


body.night .portal-brand-mini {

    color: white;
}


body.night .portal-brand-mini span {

    color: #a8bad3;
}


body.night .scene-toggle {

    background:
        rgba(18,39,74,.82);

    color: #ffe99b;
}


body.night .portal-title > span {

    color: #7fb6ff;
}


body.night .portal-title h1 {

    color: white;
}


body.night .portal-title p {

    color: #a9bad1;
}


body.night .portal-stat-card {

    background:
        rgba(18,39,73,.72);

    border-color:
        rgba(255,255,255,.08);

    box-shadow:
        0 25px 60px
        rgba(0,0,0,.30);
}


body.night .stat-icon {

    background:
        rgba(72,133,218,.15);

    color:
        #81b5ff;
}


body.night .stat-main > div:last-child span,
body.night .stat-gender span {

    color: #a4b5cb;
}


body.night .stat-main strong,
body.night .stat-gender strong {

    color: white;
}


body.night .stat-divider {

    background:
        rgba(255,255,255,.10);
}


body.night .rope-button {

    background:
        rgba(18,39,73,.82);

    color: white;
}


body.night .rope-button:hover {

    color: white;
}


body.night .rope-hint {

    color: #9fb1ca;
}


body.night .access-heading span {

    color: #b6c5d9;
}


body.night .access-heading small {

    color: #8295ae;
}


body.night .access-card {

    background:
        rgba(18,39,73,.78);

    border-color:
        rgba(255,255,255,.08);

    color: white;
}


body.night .access-card:hover {

    color: white;
}


body.night .access-text span {

    color: #91a4bc;
}


body.night .access-card > i {

    color: #7187a5;
}


body.night .school-building {

    background:
        linear-gradient(
            90deg,
            #172a42,
            #203750,
            #172a42
        );

    box-shadow:
        0 -15px 55px
        rgba(0,0,0,.40);
}


body.night .school-roof {

    background:
        linear-gradient(
            135deg,
            #552d31,
            #71383b
        );
}


body.night .school-window {

    background:
        #ffd76b;

    box-shadow:
        0 0 18px
        rgba(255,215,107,.55);
}


body.night .school-door {

    background:
        #263d55;
}


body.night .school-ground {

    background:
        linear-gradient(
            180deg,
            #182d28,
            #101f1d
        );
}


body.night .portal-footer {

    color: #71839c;
}


/* =========================================================
   RESPONSIVE
========================================================= */

/* =========================================================
   RESPONSIVE TABLET
========================================================= */

/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 850px) {

    .portal-main {
        width: 94%;
    }

    .portal-rope-wrapper {
        width: 100%;

        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            120px
            minmax(0, 1fr);

        gap: 7px;

        align-items: center;
    }

    .rope-action.left,
    .rope-action.right {
        justify-content: center;
        min-width: 0;
    }

    .rope-button {
        width: 100%;
        min-width: 0;

        padding: 10px 6px;

        gap: 5px;

        font-size: 10px;
    }

    .rope-button span {
        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;
    }

    .portal-rope {
        width: 120px;

        margin: 0 auto;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 600px) {

    .portal-scene {
        min-height: 100svh;
    }


    /* TOP BAR */

    .portal-topbar {
        width: 92%;
        padding-top: 14px;
    }

    .portal-brand-mini img {
        width: 38px;
        height: 38px;
    }

    .portal-brand-mini strong {
        font-size: 11px;
    }

    .portal-brand-mini span {
        font-size: 8px;
    }

    .scene-toggle {
        width: 38px;
        height: 38px;

        font-size: 15px;
    }


    /* MAIN */

    .portal-main {
        width: 92%;

        min-height: auto;

        padding-top: 15px;
        padding-bottom: 12px;
    }


    /* LOGO */

    .portal-main-logo {
        width: 68px;
        height: 68px;

        margin-top: 3px;

        border-radius: 19px;
    }

    .portal-main-logo img {
        width: 55px;
        height: 55px;
    }


    /* TITLE */

    .portal-title {
        margin-top: 8px;
    }

    .portal-title > span {
        font-size: 8px;

        letter-spacing: 1.5px;
    }

    .portal-title h1 {
        margin-top: 5px;

        font-size: 34px;

        letter-spacing: -1.5px;
    }

    .portal-title p {
        max-width: 290px;

        margin-left: auto;
        margin-right: auto;

        font-size: 10px;

        line-height: 1.4;
    }


    /* STATISTIK */

    .portal-stat-card {
        width: 100%;

        margin-top: 16px;

        padding: 14px 15px;

        border-radius: 19px;
    }

    .stat-main {
        gap: 10px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;

        border-radius: 12px;

        font-size: 18px;
    }

    .stat-main > div:last-child span {
        font-size: 8px;
    }

    .stat-main strong {
        font-size: 30px;
    }

    .stat-divider {
        margin: 11px 0;
    }

    .stat-gender {
        gap: 5px;
    }

    .stat-gender > div {
        gap: 5px;
    }

    .stat-gender > div > i {
        font-size: 19px;
    }

    .stat-gender strong {
        font-size: 15px;
    }

    .stat-gender span {
        font-size: 8px;
    }


    /* TARIK TAMBANG */

    .portal-rope-wrapper {

        width: 100%;

        margin-top: 16px;

        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            76px
            minmax(0, 1fr);

        gap: 7px;

        align-items: center;
    }

    .rope-action {
        min-width: 0;
    }

    .rope-action.left,
    .rope-action.right {
        justify-content: center;
    }

    .rope-button {

    width: 100%;

    min-width: 0;

    height: 42px;

    padding: 8px 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    border-radius: 14px;

    font-size: 9px;

    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;
}

    .rope-button > i:last-child {

    display: none;
}


.rope-button > i:first-child {

    flex-shrink: 0;

    font-size: 11px;
}

    .rope-button span {

    display: block;

    max-width: none;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

    .portal-rope {
        width: 90px;

        height: 45px;
    }

    .rope-line {
        height: 7px;
    }

    .rope-handle {
        width: 47px;
        height: 47px;

        border-width: 4px;

        font-size: 16px;
    }

    .rope-hint {
        margin-top: 3px;

        font-size: 8px;
    }


    /* AKSES SISTEM */

    .system-access {
        width: 100%;

        margin-top: 13px;
    }

    .access-heading {
        margin-bottom: 6px;
    }

    .access-heading span {
        font-size: 8px;

        letter-spacing: 1.2px;
    }

    .access-heading small {
        font-size: 7px;
    }

    .access-grid {
        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 5px;
    }

    .access-card {
        min-width: 0;

        padding: 8px 6px;

        gap: 5px;

        border-radius: 12px;
    }

    .access-icon {
        width: 30px;
        height: 30px;

        border-radius: 9px;

        font-size: 13px;
    }

    .access-text {
        min-width: 0;
    }

    .access-text strong {
        font-size: 9px;
    }

    .access-text span {
        display: none;
    }

    .access-card > i {
        display: none;
    }


    /* SEKOLAH */

    .school-scene {
        height: 130px;
    }

    .school-building {
        width: 135%;

        height: 95px;

        bottom: 30px;
    }

    .school-roof {
        top: -22px;

        height: 28px;
    }

    .school-floor {
        top: 25px;

        left: 18px;
        right: 18px;

        gap: 6px;
    }

    .school-window {
        height: 32px;

        border-width: 3px;
    }

    .school-door {
        width: 42px;

        height: 55px;
    }

    .school-ground {
        height: 40px;
    }


    /* MATAHARI / BULAN */

    .scene-sun {
        width: 58px;
        height: 58px;

        top: 62px;
        right: 5%;

        font-size: 24px;
    }

    .scene-moon {
        top: 64px;

        right: 5%;

        font-size: 34px;
    }


    /* FOOTER */

    .portal-footer {
        width: 92%;

        padding: 5px 0 12px;

        flex-direction: column;

        align-items: center;

        gap: 2px;

        font-size: 8px;
    }

}


/* =========================================================
   RESPONSIVE - HP KECIL
========================================================= */

@media (max-width: 390px) {

    .portal-topbar {
        width: 94%;
    }

    .portal-brand-mini span {
        display: none;
    }

    .portal-main {
        width: 94%;

        padding-top: 10px;
    }

    .portal-title h1 {
        font-size: 31px;
    }

    .portal-title p {
        font-size: 9px;
    }

    .portal-stat-card {
        margin-top: 13px;

        padding: 12px;
    }

    .stat-main strong {
        font-size: 28px;
    }


    /* TALI */

    .portal-rope-wrapper {
        grid-template-columns:
            minmax(0, 1fr)
            76px
            minmax(0, 1fr);

        gap: 3px;
    }

    .portal-rope {
        width: 76px;
    }

    .rope-button {
        font-size: 8.5px;

        padding: 7px 3px;
    }

    .rope-button span {
        max-width: 58px;
    }

    .rope-button > i:last-child {
        display: none;
    }

    .rope-handle {
        width: 43px;
        height: 43px;

        font-size: 14px;
    }


    /* ACCESS */

    .access-grid {
        gap: 4px;
    }

    .access-card {
        padding: 7px 5px;
    }

    .access-icon {
        width: 27px;
        height: 27px;

        font-size: 12px;
    }

    .access-text strong {
        font-size: 8px;
    }

}



/* =========================================================
   PORTAL V2 - FINAL COMPOSITION TUNING
========================================================= */


/* ---------------------------------------------------------
   SCENE
--------------------------------------------------------- */

.portal-scene {
    min-height: 100vh;
    height: 100vh;

    display: flex;
    flex-direction: column;
}


/* ---------------------------------------------------------
   TOP BAR
   Logo kecil kita kecilkan agar fokus utama tetap di tengah
--------------------------------------------------------- */

.portal-topbar {
    padding-top: 18px;
}


/* ---------------------------------------------------------
   MAIN
--------------------------------------------------------- */

.portal-main {

    min-height: 0;

    flex: 1;

    padding:
        10px
        0
        8px;

    justify-content: flex-start;
}


/* ---------------------------------------------------------
   LOGO UTAMA
--------------------------------------------------------- */

.portal-main-logo {

    width: 78px;
    height: 78px;

    margin-top: 2px;

    border-radius: 20px;
}


.portal-main-logo img {

    width: 65px;
    height: 65px;
}


/* ---------------------------------------------------------
   TITLE
--------------------------------------------------------- */

.portal-title {
    margin-top: 8px;
}


.portal-title > span {
    font-size: 9px;
}


.portal-title h1 {

    margin-top: 4px;

    font-size:
        clamp(34px, 4vw, 48px);
}


.portal-title p {

    font-size: 12px;
}


/* ---------------------------------------------------------
   STATISTIK
--------------------------------------------------------- */

.portal-stat-card {

    width: min(600px, 92%);

    margin-top: 15px;

    padding:
        15px 20px;

    border-radius: 20px;
}


.stat-main strong {
    font-size: 34px;
}


.stat-icon {

    width: 43px;
    height: 43px;

    border-radius: 13px;
}


.stat-divider {

    margin:
        11px 0;
}


.stat-gender > div > i {
    font-size: 21px;
}


.stat-gender strong {
    font-size: 16px;
}


/* ---------------------------------------------------------
   TARIK TAMBANG
--------------------------------------------------------- */

.portal-rope-wrapper {

    width: min(850px, 92%);

    margin-top: 14px;

    grid-template-columns:
        1fr 250px 1fr;

    gap: 10px;
}


.rope-button {

    min-width: 175px;

    padding:
        10px 13px;

    border-radius: 13px;

    font-size: 11px;
}


.portal-rope {

    height: 48px;
}


.rope-handle {

    width: 54px;
    height: 54px;

    font-size: 18px;
}


/* ---------------------------------------------------------
   HINT
--------------------------------------------------------- */

.rope-hint {

    margin-top: 1px;

    font-size: 9px;

    position: relative;

    z-index: 20;
}


/* ---------------------------------------------------------
   AKSES SISTEM
--------------------------------------------------------- */

.system-access {

    width: min(850px, 92%);

    margin-top: 10px;

    position: relative;

    z-index: 20;
}


.access-heading {

    margin-bottom: 6px;
}


.access-heading span {
    font-size: 9px;
}


.access-heading small {
    font-size: 8px;
}


.access-grid {
    gap: 9px;
}


.access-card {

    padding:
        9px 11px;

    border-radius: 14px;
}


.access-icon {

    width: 35px;
    height: 35px;

    border-radius: 10px;

    font-size: 15px;
}


.access-text strong {
    font-size: 11px;
}


.access-text span {
    font-size: 8px;
}


/* ---------------------------------------------------------
   SEKOLAH
   Turunkan dan samarkan agar tidak menabrak konten
--------------------------------------------------------- */

.school-scene {

    height: 145px;

    opacity: .55;

    z-index: 1;
}


.school-building {

    bottom: 30px;

    width: min(760px, 65vw);

    height: 105px;

    opacity: .75;
}


.school-roof {

    top: -25px;

    height: 32px;
}


.school-floor {

    top: 27px;

    left: 28px;
    right: 28px;

    gap: 12px;
}


.school-window {

    height: 42px;

    border-width: 4px;
}


.school-door {

    width: 55px;
    height: 65px;
}


.school-ground {

    height: 40px;

    opacity: .6;
}


/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.portal-footer {

    flex-shrink: 0;

    padding:
        3px 0 10px;

    position: relative;

    z-index: 30;
}


/* =========================================================
   NIGHT
========================================================= */

body.night .school-scene {
    opacity: .8;
}


/* =========================================================
   DESKTOP HEIGHT
========================================================= */

@media (min-width: 900px) and (min-height: 700px) {

    .portal-main-logo {
        margin-top: 4px;
    }

    .portal-stat-card {
        margin-top: 17px;
    }

    .portal-rope-wrapper {
        margin-top: 16px;
    }

    .system-access {
        margin-top: 12px;
    }

}


/* =========================================================
   LAPTOP / NOTEBOOK
========================================================= */

@media (min-width: 900px) and (max-height: 700px) {

    .portal-topbar {
        padding-top: 10px;
    }

    .portal-main {
        padding-top: 4px;
    }

    .portal-main-logo {
        width: 62px;
        height: 62px;
    }

    .portal-main-logo img {
        width: 52px;
        height: 52px;
    }

    .portal-title h1 {
        font-size: 36px;
    }

    .portal-title p {
        font-size: 10px;
    }

    .portal-stat-card {
        margin-top: 9px;
        padding: 10px 16px;
    }

    .stat-main strong {
        font-size: 28px;
    }

    .stat-divider {
        margin: 7px 0;
    }

    .portal-rope-wrapper {
        margin-top: 8px;
    }

    .rope-hint {
        display: none;
    }

    .system-access {
        margin-top: 7px;
    }

    .access-card {
        padding: 7px 9px;
    }

    .access-icon {
        width: 31px;
        height: 31px;
    }

    .school-scene {
        height: 115px;
    }

}





/* =========================================================
   JAM PORTAL
========================================================= */

.portal-clock {

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 7px 13px;

    border-radius: 14px;

    background: rgba(255,255,255,.55);

    backdrop-filter: blur(10px);

    box-shadow:
        0 6px 20px rgba(30,60,90,.08);

    color: #243650;

    transition:
        background .5s ease,
        color .5s ease;
}


.clock-time {

    font-size: 14px;

    font-weight: 700;

    letter-spacing: .5px;

    line-height: 1;
}


.clock-date {

    font-size: 10px;

    color: #718096;

    line-height: 1;
}

.prayer-widget {
    width: min(900px, 92vw);
    margin: 14px auto 16px;
    padding: 11px 20px;
    border-radius: 16px;

    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, .65);

    box-shadow:
        0 8px 25px rgba(20, 50, 80, .07);

    position: relative;
    z-index: 6;
}

.prayer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 5px;
}

.prayer-label {
    display: inline-block;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
    opacity: .62;
}

.prayer-label i {
    margin-right: 3px;
}

.prayer-header h3 {
    display: inline-block;

    margin: 0 0 0 8px;

    font-size: 14px;
    font-weight: 800;
}

.prayer-date {
    font-size: 10px;
    opacity: .58;
}

.prayer-times {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.prayer-item {
    padding: 4px 3px;
    text-align: center;
    border-radius: 8px;
}

.prayer-item span {
    display: block;
    font-size: 9px;
    opacity: .55;
    margin-bottom: 0;
}

.prayer-item strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
}

.prayer-next {
    margin-top: 6px;
    padding: 5px 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border-radius: 9px;

    background: rgba(20, 50, 80, .05);
}

.prayer-next-icon {
    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 13px;

    background: rgba(20, 50, 80, .07);
}

.prayer-next small {
    display: inline;
    font-size: 9px;
    opacity: .6;
}

.prayer-next strong {
    display: inline;
    font-size: 13px;
    margin-left: 4px;
}

/* =========================================================
   TARIK TAMBANG - MOBILE COMPACT
========================================================= */

@media (max-width: 600px) {

    .portal-rope-wrapper {
        width: 94vw;
        margin: 8px auto 6px;
    }


    /* AREA TALI */

    .portal-rope {
        height: 42px;
        width: 100%;

        display: flex;
        align-items: center;
    }


    /* TALI */

    .rope-line {
        height: 5px;
        border-radius: 5px;
    }


    /* PEGANGAN */

    .rope-handle {
        width: 42px;
        height: 42px;

        font-size: 0;

        box-shadow:
            0 3px 8px rgba(80, 50, 10, .20);
    }

    .rope-handle i {
        font-size: 14px;
    }


    /* TOMBOL KIRI / KANAN */

    .rope-action {
        width: auto;
    }

    .rope-button {
        min-width: 0;

        height: 36px;

        padding: 0 9px;

        border-radius: 10px;

        gap: 4px;

        font-size: 9px;

        white-space: nowrap;
    }

    .rope-button span {
        font-size: 9px;
    }

    .rope-button i {
        font-size: 10px;
    }


    /* HILANGKAN PETUNJUK DI HP */

    .rope-hint {
        display: none;
    }


    /* AKSES SISTEM NAIK */

    .system-access {
        margin-top: 4px;
    }

}


/* =========================================================
   PORTAL SECTION
========================================================= */

.portal-section {
    min-height: 100vh;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 80px 20px;

    scroll-snap-align: start;
}

.portal-section-inner {
    width: min(900px, 92vw);

    text-align: center;

    position: relative;
    z-index: 5;
}


/* LABEL */

.portal-section-label {
    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.8px;

    opacity: .6;

    margin-bottom: 8px;
}

.portal-section-label i {
    margin-right: 5px;
}


/* JUDUL */

.portal-section h2 {
    margin: 0;

    font-size: clamp(30px, 4vw, 48px);

    font-weight: 300;
}

.portal-section h2 strong {
    font-weight: 800;
}

.portal-section-description {
    margin: 8px auto 28px;

    max-width: 500px;

    font-size: 13px;

    opacity: .65;
}


/* =========================================================
   NAVIGATION ARROW
========================================================= */

.portal-nav-arrow {
    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto;

    cursor: pointer;

    background: rgba(255,255,255,.78);

    color: #17263d;

    box-shadow:
        0 8px 25px rgba(20,50,80,.12);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.portal-nav-arrow:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(20,50,80,.18);
}

.portal-nav-arrow i {
    font-size: 18px;
}

.portal-nav-up {
    margin-bottom: 25px;
}

.portal-nav-down {
    margin-top: 28px;
}

.portal-nav-label {
    display: block;

    margin-top: 7px;

    font-size: 10px;

    opacity: .55;
}


/* =========================================================
   STATISTIK
========================================================= */

.portal-statistik-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;
}

.portal-statistik-card {
    display: flex;

    align-items: center;

    gap: 13px;

    text-align: left;

    padding: 17px;

    border-radius: 16px;

    background: rgba(255,255,255,.78);

    box-shadow:
        0 10px 30px rgba(20,50,80,.08);
}

.portal-statistik-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(37,99,235,.08);

    color: #2563eb;

    font-size: 19px;
}

.portal-statistik-icon.male {
    color: #2563eb;
}

.portal-statistik-icon.female {
    color: #ec4899;
}

.portal-statistik-card span {
    display: block;

    font-size: 11px;

    opacity: .6;
}

.portal-statistik-card strong {
    display: block;

    margin-top: 2px;

    font-size: 25px;

    font-weight: 800;
}


/* TINGKAT */

.portal-tingkat-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    margin-top: 12px;
}

.portal-tingkat-card {
    padding: 13px;

    border-radius: 13px;

    background: rgba(255,255,255,.55);
}

.portal-tingkat-card span {
    display: block;

    font-size: 10px;

    opacity: .55;
}

.portal-tingkat-card strong {
    display: block;

    font-size: 20px;

    margin-top: 2px;
}


/* =========================================================
   CARI SISWA
========================================================= */

.portal-search-box {
    width: min(600px, 100%);

    margin: 0 auto;

    display: flex;

    gap: 8px;
}

.portal-search-input {
    flex: 1;

    height: 48px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 15px;

    border-radius: 14px;

    background: rgba(255,255,255,.82);

    box-shadow:
        0 8px 25px rgba(20,50,80,.08);
}

.portal-search-input i {
    opacity: .5;
}

.portal-search-input input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    font: inherit;

    font-size: 13px;
}

.portal-search-button {
    height: 48px;

    padding: 0 20px;

    border: 0;

    border-radius: 14px;

    background: #17263d;

    color: white;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}

.portal-search-button i {
    margin-left: 5px;
}

.portal-search-result {
    width: min(600px, 100%);

    margin: 15px auto 0;
}


/* =========================================================
   NAVIGASI HOME → STATISTIK
========================================================= */

.portal-home-section {
    position: relative;
}

.home-nav-arrow {
    position: fixed;

    left: 50%;
    bottom: 58px;

    transform: translateX(-50%);

    z-index: 999;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, .92);
    color: #1d4ed8;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(30, 60, 100, .18);
}

.home-nav-arrow:hover {
    transform: translateX(-50%) translateY(3px);
}

.home-nav-arrow i {
    font-size: 20px;
}


/* LABEL DI ATAS PANAH */
.portal-home-section .home-nav-label {
    position: fixed;

    left: 50%;
    bottom: 112px;

    transform: translateX(-50%);

    z-index: 999;

    display: block;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: .08em;

    color: #64748b;

    white-space: nowrap;

    pointer-events: none;
}


/* =========================================================
   MODE MALAM OTOMATIS
========================================================= */
/* =========================================================
   MODE MALAM
========================================================= */

body.night .portal-scene {
    background-image:
        linear-gradient(
            180deg,
            #071a36 0%,
            #0a2347 45%,
            #06152d 100%
        );

    background-color: #071a36;

    transition:
        background-color .8s ease;
}