:root {
    --font-heading: "Cinzel", serif;
    --font-body: "Poppins", system-ui, sans-serif;

    --forest-black: #020b07;
    --forest-deep: #061b12;
    --forest-dark: #0a2c1d;
    --forest-mid: #0f4a31;
    --forest-glow: #24c98f;

    --dayak-red: #d93131;
    --dayak-gold: #ffd86b;
    --dayak-orange: #ff9f2e;
    --dayak-cream: #fff4d0;
    --dayak-black: #101009;

    --leaf: #7cffc7;
    --text-soft: #f8fff7;
    --text-muted: rgba(255, 244, 208, 0.78);

    --glass-card: rgba(7, 35, 24, 0.72);
    --glass-input: rgba(255, 244, 208, 0.74);
    --glass-border: rgba(255, 216, 107, 0.34);

    --shadow-hard: rgba(0, 0, 0, 0.54);
    --shadow-soft: rgba(0, 0, 0, 0.26);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    font-family: var(--font-body);
    background: var(--forest-black);
    color: var(--text-soft);
}

body {
    overflow-x: hidden;
}

.login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 10%, rgba(36, 201, 143, 0.22), transparent 30%),
        radial-gradient(circle at 84% 84%, rgba(255, 216, 107, 0.14), transparent 28%),
        radial-gradient(circle at 50% 50%, rgba(217, 49, 49, 0.08), transparent 42%),
        linear-gradient(135deg, #020b07 0%, #082418 42%, #03120c 100%);
}

.bg-dayak-watermark {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("../assets/bg-dayak.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: min(980px, 120vw) auto;
    opacity: 0.30;
    filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.18));
    transform: scale(1.04);
}

.bg-dayak-watermark::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 0%, rgba(2, 11, 7, 0.18) 48%, rgba(2, 11, 7, 0.82) 100%),
        linear-gradient(to bottom, rgba(2, 11, 7, 0.26), rgba(2, 11, 7, 0.72));
}

.forest-glow {
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(18px);
    animation: floatGlow 6s ease-in-out infinite;
}

.glow-left {
    top: 8%;
    left: -90px;
    background: rgba(36, 201, 143, 0.18);
}

.glow-right {
    right: -95px;
    bottom: 8%;
    background: rgba(255, 216, 107, 0.13);
    animation-delay: 1.5s;
}

.forest-mist {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.84;
    filter: blur(2px);
    background:
        radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.12), transparent 44%),
        linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.045) 45%, transparent 76%);
}

.forest-floor {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    pointer-events: none;
}

.forest-back {
    height: 34%;
    opacity: 0.55;
    background:
        linear-gradient(135deg, transparent 0 48%, rgba(5, 32, 21, 0.9) 49% 58%, transparent 59%) 0 100% / 120px 100% repeat-x,
        linear-gradient(225deg, transparent 0 48%, rgba(5, 32, 21, 0.9) 49% 58%, transparent 59%) 55px 100% / 140px 90% repeat-x;
}

.forest-front {
    bottom: -4px;
    height: 25%;
    opacity: 0.88;
    background:
        linear-gradient(135deg, transparent 0 46%, rgba(1, 18, 12, 0.98) 47% 60%, transparent 61%) 0 100% / 86px 100% repeat-x,
        linear-gradient(225deg, transparent 0 46%, rgba(1, 18, 12, 0.98) 47% 60%, transparent 61%) 42px 100% / 104px 92% repeat-x;
}

.login-card {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 520px;
    animation: boardPop 0.55s cubic-bezier(.2,.9,.2,1) both;
}

.quest-board {
    position: relative;
    padding: 30px 30px 26px;
    border-radius: 34px;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(13, 74, 48, 0.78), rgba(5, 28, 19, 0.86)),
        radial-gradient(circle at top, rgba(255, 216, 107, 0.14), transparent 34%);
    border: 1px solid rgba(255, 216, 107, 0.28);
    box-shadow:
        0 24px 80px var(--shadow-hard),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.quest-board::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 26px;
    pointer-events: none;
    border: 2px solid rgba(255, 216, 107, 0.34);
    z-index: 0;
}

.quest-board::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 34px;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(217, 49, 49, 0.34), transparent 15%, transparent 85%, rgba(217, 49, 49, 0.34)),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 38%);
    opacity: 0.54;
    z-index: 0;
}

.quest-board > * {
    position: relative;
    z-index: 2;
}

.card-ornament {
    position: absolute;
    width: 150px;
    height: 150px;
    z-index: 4;
    pointer-events: none;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.32));
}

.ornament-top-left {
    top: -42px;
    left: -42px;
    transform: rotate(-5deg);
}

.ornament-bottom-right {
    right: -44px;
    bottom: -44px;
    transform: rotate(5deg);
}

.dayak-header {
    width: 100%;
    height: 62px;
    margin-bottom: 18px;
    overflow: hidden;
    filter: drop-shadow(0 11px 20px rgba(0, 0, 0, 0.3));
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.dayak-header svg {
    width: 100%;
    height: 100%;
    display: block;
}

.quest-pin {
    position: absolute;
    top: 18px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 34% 28%, #fff2ad 0 18%, transparent 19%),
        linear-gradient(180deg, var(--dayak-gold), #f0a72e);
    border: 4px solid #9a5b17;
    box-shadow: 0 6px 0 rgba(45, 28, 8, 0.72);
    z-index: 6;
}

.pin-left {
    left: 42px;
}

.pin-right {
    right: 42px;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 14px;
}

.mini-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-bottom: 9px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--leaf);
    background: rgba(124, 255, 199, 0.11);
    border: 1px solid rgba(124, 255, 199, 0.28);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.login-logo h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(27px, 6.4vw, 39px);
    line-height: 1;
    letter-spacing: -1px;
    font-weight: 900;
    color: var(--text-soft);
    text-shadow:
        0 3px 0 rgba(0, 0, 0, 0.32),
        0 0 24px rgba(124, 255, 199, 0.15);
}

.login-logo h1 span {
    color: var(--dayak-gold);
}

.login-logo p {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}

.login-badge {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 20px;
    padding: 10px 16px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, #ffcf5f 0%, #ff9f2e 100%);
    border: 2px solid rgba(255, 255, 255, 0.72);
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: 0.42px;
    text-align: center;
    box-shadow:
        0 7px 0 rgba(119, 71, 15, 0.84),
        0 14px 24px rgba(0, 0, 0, 0.24);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.login-badge i {
    margin-right: 6px;
    color: #8a100f;
}

.quest-title {
    text-align: center;
    margin-bottom: 24px;
}

.quest-label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(217, 49, 49, 0.22);
    border: 1px solid rgba(255, 216, 107, 0.44);
    color: var(--dayak-gold);
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: 1.2px;
}

.quest-title h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(24px, 5.7vw, 32px);
    font-weight: 900;
    color: var(--dayak-cream);
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

.login-desc {
    margin: 11px auto 0;
    max-width: 390px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.first-input {
    margin-top: 5px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    padding-left: 8px;
    font-size: 13px;
    font-weight: 900;
    color: var(--leaf);
    letter-spacing: 0.3px;
}

.input-box {
    position: relative;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 16px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 244, 208, 0.72), rgba(246, 230, 184, 0.58));
    border: 2px solid rgba(255, 216, 107, 0.58);
    box-shadow:
        0 7px 0 rgba(48, 31, 11, 0.68),
        0 14px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        filter 0.18s ease;
}

.input-box::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 17px;
    pointer-events: none;
    border: 1px solid rgba(90, 50, 24, 0.12);
}

.input-box i {
    flex: 0 0 auto;
    width: 23px;
    color: var(--dayak-red);
    font-size: 18px;
    text-align: center;
    text-shadow: 0 0 12px rgba(217, 49, 49, 0.35);
}

.input-box input,
.input-box select {
    width: 100%;
    height: 52px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #173024;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
}

.input-box input::placeholder {
    color: rgba(23, 48, 36, 0.48);
}

.input-box select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.select-box::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 18px;
    color: rgba(90, 50, 24, 0.78);
    pointer-events: none;
    font-size: 13px;
}

.input-box:focus-within {
    transform: translateY(-3px);
    border-color: var(--dayak-gold);
    background:
        linear-gradient(180deg, rgba(255, 244, 208, 0.86), rgba(246, 230, 184, 0.72));
    filter: brightness(1.05);
    box-shadow:
        0 8px 0 rgba(48, 31, 11, 0.74),
        0 0 0 5px rgba(255, 216, 107, 0.20),
        0 0 28px rgba(255, 216, 107, 0.32),
        0 0 22px rgba(217, 49, 49, 0.18),
        0 18px 30px rgba(0, 0, 0, 0.26);
}

#errorMessage {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 226, 214, 0.95);
    border: 2px solid #ffb39b;
    color: #7a1b0c;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 0 rgba(90, 23, 10, 0.45);
}

#errorMessage.hidden {
    display: none;
}

#errorMessage i {
    font-size: 17px;
}

.login-btn {
    width: 100%;
    min-height: 62px;
    margin-top: 4px;
    border: 0;
    border-radius: 24px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 1000;
    color: #160d04;
    background:
        linear-gradient(180deg, #fff4b8 0%, #ffd86b 38%, #ff9f2e 100%);
    border: 2px solid rgba(255, 255, 255, 0.78);
    box-shadow:
        0 9px 0 rgba(112, 57, 11, 0.92),
        0 18px 34px rgba(0, 0, 0, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        filter 0.16s ease;
}

.login-btn i {
    font-size: 20px;
    color: #8a100f;
}

.login-btn:hover {
    transform: translateY(-3px) scale(1.015);
    filter: brightness(1.08);
    box-shadow:
        0 11px 0 rgba(112, 57, 11, 0.92),
        0 24px 38px rgba(0, 0, 0, 0.32),
        0 0 28px rgba(255, 216, 107, 0.22);
}

.login-btn:active {
    transform: translateY(5px) scale(0.985);
    box-shadow:
        0 4px 0 rgba(112, 57, 11, 0.92),
        0 10px 18px rgba(0, 0, 0, 0.24);
}

.reset-wrap {
    text-align: center;
    margin-top: 14px;
}

.reset-session {
    display: inline-block;
    font-size: 12px;
    color: rgba(255, 244, 208, 0.6);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: 0.15s ease;
}

.reset-session:hover {
    color: var(--leaf);
}

@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-18px) scale(1.06);
    }
}

@keyframes boardPop {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardExit {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
}

@media (max-width: 430px) {
    .login-page {
        padding: 16px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .bg-dayak-watermark {
        background-size: 760px auto;
        opacity: 0.08;
    }

    .quest-board {
        margin-top: 16px;
        border-radius: 28px;
        padding: 24px 18px 22px;
    }

    .quest-board::before {
        inset: 8px;
        border-radius: 22px;
    }

    .quest-board::after {
        border-radius: 28px;
    }

    .dayak-header {
        height: 50px;
        margin-bottom: 15px;
    }

    .quest-pin {
        top: 15px;
        width: 27px;
        height: 27px;
        border-width: 3px;
    }

    .pin-left {
        left: 30px;
    }

    .pin-right {
        right: 30px;
    }

    .card-ornament {
        width: 112px;
        height: 112px;
        opacity: 0.86;
    }

    .ornament-top-left {
        top: -30px;
        left: -32px;
    }

    .ornament-bottom-right {
        right: -34px;
        bottom: -34px;
    }

    .login-badge {
        font-size: 10px;
        padding: 8px 12px;
    }

    .quest-title {
        margin-bottom: 22px;
    }

    .login-desc {
        font-size: 13px;
    }

    .first-input {
        margin-top: 4px;
    }

    .input-box {
        min-height: 55px;
        border-radius: 20px;
        padding-inline: 14px;
    }

    .input-box input,
    .input-box select {
        height: 49px;
        font-size: 14px;
    }

    .login-btn {
        min-height: 59px;
        border-radius: 22px;
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .login-page {
        padding: 38px;
    }

    .login-card:hover {
        transform: translateY(-2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

.form-hint {
    display: block;
    padding-left: 8px;
    margin-top: -2px;
    color: rgba(255, 244, 208, 0.78);
    font-size: 11.5px;
    line-height: 1.45;
    font-weight: 700;
}

.hidden { display: none !important; }
.landing-panel,
.biodata-panel {
    display: grid;
    gap: 16px;
    align-items: center;
    text-align: center;
}
.landing-copy h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(27px, 7vw, 38px);
    line-height: 1.05;
    color: var(--dayak-cream);
    text-shadow: 0 3px 0 rgba(0,0,0,.28);
}
.landing-jenta {
    width: min(158px, 42vw);
    max-height: 178px;
    object-fit: contain;
    justify-self: center;
    filter: drop-shadow(0 16px 20px rgba(0,0,0,.34));
    margin: -4px 0 -2px;
}
.landing-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}
.landing-points span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--dayak-cream);
    font-size: 11px;
    font-weight: 900;
    background: rgba(124,255,199,.10);
    border: 1px solid rgba(124,255,199,.30);
}
.landing-start-btn { margin-top: 2px; }
.captcha-row {
    display: grid;
    grid-template-columns: 1fr minmax(110px, 150px);
    gap: 10px;
    align-items: stretch;
}
.captcha-question {
    min-height: 58px;
    display: grid;
    place-items: center;
    padding: 0 16px;
    border-radius: 22px;
    color: #160d04;
    font-weight: 1000;
    letter-spacing: .5px;
    background: linear-gradient(180deg, #fff4b8 0%, #ffd86b 42%, #ff9f2e 100%);
    border: 2px solid rgba(255,255,255,.78);
    box-shadow: 0 7px 0 rgba(112,57,11,.82), 0 14px 24px rgba(0,0,0,.18);
}
.captcha-input { min-height: 58px; }
.consent-check {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    text-align: left;
    padding: 12px;
    border-radius: 18px;
    color: rgba(255,244,208,.86);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
    background: rgba(124,255,199,.08);
    border: 1px solid rgba(124,255,199,.24);
}
.consent-check input { width: 18px; height: 18px; accent-color: var(--dayak-gold); }

.school-load-status {
    display: block;
    margin-top: 7px;
    padding: 0 8px;
    color: rgba(255, 244, 208, 0.78);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
}

.school-load-status.is-ready { color: var(--leaf); }
.school-load-status.is-fallback { color: var(--dayak-gold); }

.tester-settings {
    overflow: hidden;
    border: 1px solid rgba(255, 216, 107, 0.24);
    border-radius: 18px;
    background: rgba(255, 216, 107, 0.06);
    text-align: left;
}

.tester-settings summary {
    padding: 12px 14px;
    color: rgba(255, 244, 208, 0.84);
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    list-style-position: inside;
}

.tester-settings summary i { margin-right: 7px; color: var(--dayak-gold); }
.tester-settings-body { display: grid; gap: 12px; padding: 0 12px 12px; }
.tester-check { margin: 0; }

.code-mode-note {
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    color: #173024;
    background: rgba(154, 255, 217, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.45;
}
@media (max-width: 430px) {
    .login-page { padding: 18px 14px 26px; align-items: flex-start; }
    .quest-board { padding: 24px 18px 22px; border-radius: 28px; }
    .dayak-header { height: 48px; margin-bottom: 12px; }
    .login-badge { font-size: 10px; margin-bottom: 16px; }
    .landing-jenta { width: min(135px, 38vw); max-height: 150px; }
    .captcha-row { grid-template-columns: 1fr; }
}

.hidden{display:none!important}
.landing-panel{gap:20px;padding-top:2px}
.landing-copy{display:grid;gap:12px;justify-items:center}
.landing-copy h2{max-width:420px}
.landing-copy .login-desc{max-width:410px}
.landing-points{margin-top:4px}
.landing-points span{box-shadow:inset 0 0 0 1px rgba(255,216,107,.08)}
.biodata-panel .form-group label{text-align:left;justify-content:flex-start;align-self:flex-start}
.biodata-panel .form-hint{display:none}
@media(max-width:430px){.landing-panel{gap:17px}.landing-copy h2{font-size:clamp(25px,7vw,34px)}}

/* Participant code and resume flow */
.landing-actions,
.resume-panel {
    width: 100%;
    display: grid;
    gap: 12px;
}

.secondary-login-btn {
    color: var(--dayak-cream);
    background: linear-gradient(180deg, rgba(15, 74, 49, 0.96), rgba(6, 35, 23, 0.98));
    border-color: rgba(124, 255, 199, 0.72);
    box-shadow: 0 7px 0 rgba(3, 22, 14, 0.9), 0 14px 24px rgba(0, 0, 0, 0.24);
}

.text-action-btn {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 16px;
    color: var(--leaf);
    background: rgba(124, 255, 199, 0.08);
    font: 800 13px/1.3 var(--font-body);
    cursor: pointer;
}

.text-action-btn:hover {
    background: rgba(124, 255, 199, 0.14);
}

.device-switch-button {
    color: var(--dayak-gold);
    background: rgba(255, 216, 107, 0.1);
    border: 1px solid rgba(255, 216, 107, 0.3);
    animation: deviceSwitchReveal 0.25s ease both;
}

.device-switch-button:hover {
    background: rgba(255, 216, 107, 0.17);
}

.device-switch-success {
    width: 100%;
    padding: 13px 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 11px;
    align-items: start;
    border-radius: 18px;
    color: #173024;
    background: rgba(154, 255, 217, 0.92);
    border: 2px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 7px 0 rgba(5, 67, 43, 0.58);
    text-align: left;
}

.device-switch-success > i {
    margin-top: 2px;
    color: #08784d;
    font-size: 21px;
}

.device-switch-success strong,
.device-switch-success span {
    display: block;
}

.device-switch-success strong {
    font-size: 13px;
    font-weight: 950;
}

.device-switch-success span {
    margin-top: 3px;
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.45;
}

.device-switch-card {
    gap: 15px;
}

.device-switch-card strong {
    color: var(--dayak-cream);
}

.device-switch-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #171006;
    background: linear-gradient(180deg, #fff4b8, #ffd86b 52%, #ff9f2e);
    border: 3px solid #fff2b2;
    box-shadow: 0 7px 0 rgba(112, 57, 11, 0.84);
    font-size: 27px;
}

.device-switch-assurance {
    width: 100%;
    padding: 13px 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 11px;
    align-items: start;
    border-radius: 18px;
    color: rgba(255, 244, 208, 0.92);
    background: rgba(124, 255, 199, 0.09);
    border: 1px solid rgba(124, 255, 199, 0.3);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
    text-align: left;
}

.device-switch-assurance i {
    margin-top: 2px;
    color: var(--leaf);
    font-size: 19px;
}

.device-switch-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 10px;
    align-items: stretch;
}

.device-switch-actions .text-action-btn,
.device-switch-actions .login-btn {
    min-height: 54px;
    margin: 0;
}

.device-switch-confirm-btn {
    padding-inline: 13px;
    border-radius: 18px;
    font-size: 13px;
}

@keyframes deviceSwitchReveal {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.participant-code-input input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 22px;
    font-weight: 900;
}

.inline-notice {
    padding: 12px 14px;
    border-radius: 16px;
    color: #fff4d0;
    background: rgba(217, 49, 49, 0.2);
    border: 1px solid rgba(255, 126, 126, 0.48);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
}

.participant-code-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px;
    overflow-y: auto;
    background: rgba(2, 11, 7, 0.82);
    backdrop-filter: blur(12px);
}

.participant-code-card {
    width: min(100%, 470px);
    padding: 30px 26px;
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
}

.participant-code-card h2 {
    margin: 0;
    color: var(--dayak-gold);
    font-family: var(--font-heading);
    font-size: clamp(23px, 6vw, 32px);
}

.participant-code-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.code-success-icon {
    color: var(--leaf);
    font-size: 46px;
    filter: drop-shadow(0 8px 18px rgba(36, 201, 143, 0.28));
}

.participant-code-value {
    width: 100%;
    padding: 15px 18px;
    border-radius: 20px;
    color: #171006;
    background: linear-gradient(180deg, #fff4b8, #ffd86b 48%, #ff9f2e);
    border: 3px solid #fff2b2;
    box-shadow: 0 7px 0 rgba(112, 57, 11, 0.84);
    font-size: clamp(34px, 11vw, 52px);
    font-weight: 1000;
    letter-spacing: 9px;
    line-height: 1;
}

.copy-code-btn {
    min-height: 46px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 2px solid rgba(124, 255, 199, 0.62);
    border-radius: 16px;
    color: var(--leaf);
    background: rgba(124, 255, 199, 0.1);
    font: 850 13px/1 var(--font-body);
    cursor: pointer;
}

.copy-code-btn.copied {
    color: #171006;
    background: var(--leaf);
}

.code-instruction {
    width: 100%;
    padding: 13px 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 11px;
    align-items: start;
    text-align: left;
    border-radius: 18px;
    color: rgba(255, 244, 208, 0.9);
    background: rgba(255, 216, 107, 0.09);
    border: 1px solid rgba(255, 216, 107, 0.3);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.code-instruction i {
    margin-top: 2px;
    color: var(--dayak-gold);
    font-size: 18px;
}

.login-btn:disabled {
    opacity: 0.68;
    cursor: wait;
    filter: saturate(0.72);
}

@media (max-width: 430px) {
    .participant-code-card { padding: 25px 18px; }
    .participant-code-value { letter-spacing: 7px; }
    .device-switch-actions { grid-template-columns: 1fr; }
}
