/* ============================================================
   VAULT ZERO
   MAIN STYLES
============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {

    --primary: #0f1419;

    --secondary: #1a2332;

    --accent: #e8f0f8;

    --blue: #2563eb;

    --light-blue: #3b82f6;

    --dark-blue: #1e40af;

    --error: #ff4f87;

    --success: #10b981;

}


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;

    background:
        var(--primary);

    color:
        var(--accent);

    overflow: hidden;

    transition:
        background 0.35s ease,
        color 0.35s ease;
}


/* ============================================================
   WRONG ANSWER MODE
============================================================ */

body.wrong-answer {

    background:
        radial-gradient(circle at center,
            rgba(255, 20, 100, 0.18),
            transparent 55%),
        #160a12;
}


body.wrong-answer .main-section {

    background:
        radial-gradient(circle at 80% 50%,
            rgba(255, 20, 100, 0.12),
            transparent 45%),
        linear-gradient(135deg,
            #160a12 0%,
            #28111d 100%);
}


body.wrong-answer .stone-character {

    filter:
        drop-shadow(0 10px 35px rgba(255, 60, 120, 0.65));
}


body.wrong-answer .primary-btn {

    background:
        var(--error);
}


body.wrong-answer .lock-title,
body.wrong-answer .system-header,
body.wrong-answer .security-badge {

    color:
        var(--error);
}


.wrong-shake {

    animation:
        wrongShake 0.42s ease-in-out 2;
}


@keyframes wrongShake {

    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }

    100% {
        transform: translateX(0);
    }
}


/* ============================================================
   INTRO
   ORIGINAL STRUCTURE / VISUAL STYLE PRESERVED
============================================================ */

.intro-section {

    width: 100vw;

    height: 100vh;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(135deg,
            #0a0d14 0%,
            #0f1419 100%);

    overflow: hidden;
}


.canvas-container {

    position: absolute;

    width: 100%;

    height: 100%;

    top: 0;

    left: 0;
}


.canvas-container canvas {

    display: block;

    width: 100% !important;

    height: 100% !important;
}


.intro-overlay {

    position: absolute;

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(0, 0, 0, 0.5);

    z-index: 10;
}


.intro-content {

    text-align: center;

    animation:
        fadeInDown 1.5s ease-out;
}


.intro-content h1 {

    font-size: 4.5rem;

    font-weight: 300;

    letter-spacing: 8px;

    color:
        var(--accent);

    margin-bottom: 20px;

    text-transform: uppercase;
}


.intro-content p {

    font-size: 1.2rem;

    letter-spacing: 3px;

    color:
        var(--light-blue);

    opacity: 0.8;

    text-transform: uppercase;
}


.system-status {

    font-size: 0.9rem;

    color:
        #10b981;

    margin-top: 30px;

    letter-spacing: 2px;

    animation:
        blink 1.5s infinite;
}


@keyframes blink {

    0%,
    49%,
    100% {
        opacity: 1;
    }

    50%,
    99% {
        opacity: 0.5;
    }
}


@keyframes fadeInDown {

    from {

        opacity: 0;

        transform:
            translateY(-30px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}


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

.main-section {

    width: 100vw;

    height: 100vh;

    background:
        linear-gradient(135deg,
            #0f1419 0%,
            #1a2332 100%);

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    transition:
        background 0.4s ease;
}


.container {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 80px;

    width: 90%;

    max-width: 1400px;

    height: 100%;

    align-items: center;

    padding: 60px 0;
}


/* ============================================================
   STONE
============================================================ */

.stone-wrapper {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 30px;

    animation:
        slideInLeft 0.8s ease-out;
}


.stone-character {

    width: 280px;

    height: 280px;

    background:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><filter id="shadow"><feDropShadow dx="0" dy="0" stdDeviation="3" flood-opacity="0.5"/></filter></defs><ellipse cx="100" cy="110" rx="75" ry="85" fill="%23666" filter="url(%23shadow)"/><circle cx="70" cy="75" r="22" fill="%23f5f5f5"/><circle cx="130" cy="75" r="22" fill="%23f5f5f5"/><circle cx="70" cy="75" r="12" fill="%23111"/><circle cx="130" cy="75" r="12" fill="%23111"/><circle cx="72" cy="73" r="4" fill="%23f5f5f5"/><circle cx="132" cy="73" r="4" fill="%23f5f5f5"/><path d="M 55 115 Q 100 135 145 115" stroke="%23111" stroke-width="2.5" fill="none"/><ellipse cx="100" cy="150" rx="18" ry="22" fill="%23c9756c"/></svg>') center / contain no-repeat;

    filter:
        drop-shadow(0 10px 30px rgba(37, 99, 235, 0.3));

    animation:
        stoneFloat 4s ease-in-out infinite;

    transition:
        filter 0.3s ease;
}


@keyframes stoneFloat {

    0%,
    100% {

        transform:
            translateY(0) rotate(-2deg);
    }

    50% {

        transform:
            translateY(-25px) rotate(2deg);
    }
}


.stone-message {

    min-height: 60px;

    text-align: center;

    color:
        var(--light-blue);

    font-size: 1rem;

    font-weight: 500;

    letter-spacing: 0.5px;

    max-width: 320px;

    line-height: 1.5;

    opacity: 1;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


.stone-message.message-success {

    color:
        var(--success);
}


.stone-message.message-error {

    color:
        var(--error);

    animation:
        messagePulse 0.45s ease;
}


@keyframes messagePulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}


.security-badge {

    font-size: 0.9rem;

    color:
        var(--light-blue);

    letter-spacing: 2px;

    text-transform: uppercase;

    opacity: 0.7;
}


@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes slideInLeft {

    from {

        opacity: 0;

        transform:
            translateX(-50px);
    }

    to {

        opacity: 1;

        transform:
            translateX(0);
    }
}


/* ============================================================
   CONTENT
============================================================ */

.content-area {

    position: relative;

    height: 100%;

    display: flex;

    align-items: center;

    min-width: 0;
}


.state {

    opacity: 0;

    pointer-events: none;

    position: absolute;

    width: 100%;

    max-height: 88vh;

    overflow-y: auto;

    overflow-x: hidden;

    padding:
        10px 10px 20px 0;

    scrollbar-width: thin;

    scrollbar-color:
        var(--light-blue) transparent;
}


.state.active {

    opacity: 1;

    pointer-events: all;

    position: relative;

    animation:
        fadeIn 0.6s ease-out forwards;
}


.welcome-content {

    animation:
        slideInRight 0.8s ease-out;
}


@keyframes slideInRight {

    from {

        opacity: 0;

        transform:
            translateX(50px);
    }

    to {

        opacity: 1;

        transform:
            translateX(0);
    }
}


/* ============================================================
   HEADERS
============================================================ */

.system-header {

    font-size: 1.8rem;

    font-weight: 300;

    letter-spacing: 2px;

    color:
        var(--light-blue);

    margin-bottom: 30px;

    text-transform: uppercase;
}


.welcome-content p,
.profile-description {

    font-size: 1.1rem;

    line-height: 1.8;

    color:
        rgba(232, 240, 248, 0.8);

    margin-bottom: 15px;
}


.lock-container {

    animation:
        slideInRight 0.8s ease-out;
}


.lock-title {

    font-size: 1.8rem;

    font-weight: 300;

    letter-spacing: 2px;

    color:
        var(--light-blue);

    margin-bottom: 10px;

    text-transform: uppercase;
}


.lock-subtitle {

    font-size: 0.9rem;

    letter-spacing: 1.5px;

    color:
        rgba(232, 240, 248, 0.6);

    margin-bottom: 25px;

    text-transform: uppercase;
}


.lock-question {

    font-size: 1.2rem;

    line-height: 1.8;

    color:
        rgba(232, 240, 248, 0.85);

    margin-bottom: 25px;

    font-weight: 400;
}


/* ============================================================
   INPUTS
============================================================ */

.input-field {

    width: 100%;

    padding:
        15px 20px;

    background:
        rgba(26, 35, 50, 0.6);

    border:
        1px solid rgba(37, 99, 235, 0.4);

    color:
        var(--accent);

    font-size: 1rem;

    border-radius: 4px;

    margin-bottom: 20px;

    transition:
        all 0.3s ease;

    font-family:
        inherit;
}


.input-field::placeholder {

    color:
        rgba(232, 240, 248, 0.35);
}


.input-field:focus {

    outline: none;

    background:
        rgba(26, 35, 50, 0.9);

    border-color:
        var(--light-blue);

    box-shadow:
        0 0 15px rgba(37, 99, 235, 0.2);
}


/* ============================================================
   BUTTONS
============================================================ */

.primary-btn,
.secondary-btn {

    width: 100%;

    padding:
        15px 30px;

    border-radius: 4px;

    font-size: 1rem;

    font-weight: 600;

    letter-spacing: 1.5px;

    cursor: pointer;

    text-transform: uppercase;

    transition:
        all 0.3s ease;

    font-family:
        inherit;
}


.primary-btn {

    background:
        var(--light-blue);

    color: white;

    border: none;
}


.primary-btn:hover {

    background:
        var(--blue);

    box-shadow:
        0 0 20px rgba(37, 99, 235, 0.3);

    transform:
        translateY(-2px);
}


.primary-btn:active {

    transform:
        translateY(0);
}


.primary-btn:disabled,
.secondary-btn:disabled {

    opacity: 0.45;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


.secondary-btn {

    background:
        rgba(37, 99, 235, 0.1);

    color:
        var(--light-blue);

    border:
        1px solid var(--light-blue);

    margin-top: 15px;
}


.secondary-btn:hover {

    background:
        rgba(37, 99, 235, 0.2);

    box-shadow:
        0 0 15px rgba(37, 99, 235, 0.2);
}


/* ============================================================
   FEEDBACK
============================================================ */

.feedback {

    min-height: 24px;

    margin-top: 15px;

    text-align: center;

    font-size: 0.9rem;

    font-weight: 600;

    letter-spacing: 0.5px;
}


.feedback.error {

    color:
        var(--error);
}


.feedback.success {

    color:
        var(--success);
}


/* ============================================================
   CAPTCHA
============================================================ */

.captcha-grid {

    display: grid;

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

    gap: 10px;

    margin-bottom: 25px;
}


.captcha-item {

    aspect-ratio: 1;

    border:
        1px solid rgba(37, 99, 235, 0.4);

    background:
        rgba(26, 35, 50, 0.6);

    border-radius: 6px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.8rem;

    cursor: pointer;

    transition:
        all 0.2s ease;

    color:
        white;
}


.captcha-item:hover {

    border-color:
        var(--light-blue);

    box-shadow:
        0 0 12px rgba(37, 99, 235, 0.3);

    transform:
        scale(1.03);
}


.captcha-item.selected {

    background:
        var(--light-blue);

    border-color:
        var(--light-blue);

    box-shadow:
        0 0 18px rgba(59, 130, 246, 0.45);

    transform:
        scale(0.96);
}


/* ============================================================
   CAMERA
============================================================ */

.camera-frame {

    position: relative;

    width: 100%;

    min-height: 280px;

    margin:
        20px 0;

    overflow: hidden;

    border:
        1px solid rgba(59, 130, 246, 0.6);

    background:
        #05080c;

    border-radius: 8px;

    box-shadow:
        inset 0 0 30px rgba(37, 99, 235, 0.12),
        0 0 25px rgba(37, 99, 235, 0.08);
}


.camera-frame video {

    width: 100%;

    height: 300px;

    display: block;

    object-fit: cover;

    background:
        #05080c;

    transform:
        scaleX(-1);

    opacity: 0.75;

    transition:
        opacity 0.4s ease;
}


.camera-frame video.camera-active {

    opacity: 1;
}


.camera-frame::before {

    content: '';

    position: absolute;

    inset: 12px;

    border:
        1px solid rgba(59, 130, 246, 0.3);

    pointer-events: none;

    z-index: 3;
}


.scan-line {

    position: absolute;

    left: 8%;

    right: 8%;

    top: 15%;

    height: 2px;

    background:
        linear-gradient(90deg,
            transparent,
            var(--light-blue),
            transparent);

    box-shadow:
        0 0 15px var(--light-blue);

    animation:
        scanMove 2.5s linear infinite;

    z-index: 5;

    pointer-events: none;
}


@keyframes scanMove {

    0% {
        top: 12%;
    }

    50% {
        top: 86%;
    }

    100% {
        top: 12%;
    }
}


.camera-corners {

    position: absolute;

    inset: 30px;

    border:
        2px solid transparent;

    border-left-color:
        var(--light-blue);

    border-right-color:
        var(--light-blue);

    opacity: 0.45;

    pointer-events: none;

    z-index: 4;
}


.camera-status {

    position: absolute;

    left: 18px;

    bottom: 16px;

    padding:
        7px 10px;

    font-size:
        0.7rem;

    letter-spacing:
        1.5px;

    color:
        var(--accent);

    background:
        rgba(0, 0, 0, 0.65);

    border:
        1px solid rgba(59, 130, 246, 0.35);

    z-index: 8;
}


.camera-dot {

    display: inline-block;

    width: 7px;

    height: 7px;

    margin-right: 7px;

    border-radius: 50%;

    background:
        #10b981;

    box-shadow:
        0 0 10px #10b981;

    animation:
        cameraBlink 1s infinite;
}


@keyframes cameraBlink {

    50% {
        opacity: 0.3;
    }
}


.scan-status {

    min-height: 30px;

    margin:
        12px 0 20px;

    text-align: center;

    font-size:
        0.85rem;

    letter-spacing:
        1.5px;

    color:
        rgba(232, 240, 248, 0.7);
}


.scan-status.scanning {

    color:
        var(--light-blue);

    animation:
        statusPulse 0.8s infinite;
}


.scan-status.verified {

    color:
        var(--success);

    font-weight:
        700;
}


.scan-status.denied {

    color:
        var(--error);

    font-weight:
        700;
}


@keyframes statusPulse {

    50% {
        opacity: 0.4;
    }
}


/* ============================================================
   TIMER
============================================================ */

.timer-display {

    font-size:
        3.5rem;

    font-weight:
        bold;

    text-align:
        center;

    color:
        var(--light-blue);

    margin:
        30px 0;

    font-family:
        'Courier New',
        monospace;

    text-shadow:
        0 0 18px rgba(59, 130, 246, 0.4);
}


.timer-verify-btn {

    margin-top: 0;
}


/* ============================================================
   REARRANGE
============================================================ */

.scrambled-words {

    background:
        rgba(26, 35, 50, 0.6);

    border:
        1px solid rgba(37, 99, 235, 0.4);

    padding:
        20px;

    border-radius:
        4px;

    font-size:
        1.1rem;

    color:
        var(--light-blue);

    margin-bottom:
        25px;

    font-style:
        italic;

    word-spacing:
        12px;

    line-height:
        1.8;
}


/* ============================================================
   PATTERN
============================================================ */

.pattern-question {

    background:
        rgba(26, 35, 50, 0.6);

    border:
        1px solid rgba(37, 99, 235, 0.4);

    padding:
        20px;

    border-radius:
        4px;

    font-size:
        1.25rem;

    color:
        var(--light-blue);

    margin-bottom:
        25px;

    font-family:
        'Courier New',
        monospace;

    letter-spacing:
        1px;

    box-shadow:
        inset 0 0 20px rgba(37, 99, 235, 0.04);
}


.pattern-options {

    display:
        grid;

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

    gap:
        12px;

    margin-bottom:
        20px;
}


.pattern-option {

    min-height:
        60px;

    padding:
        15px;

    background:
        rgba(26, 35, 50, 0.6);

    border:
        1px solid rgba(37, 99, 235, 0.4);

    border-radius:
        5px;

    cursor:
        pointer;

    text-align:
        center;

    font-size:
        1.15rem;

    color:
        var(--accent);

    transition:
        all 0.25s ease;
}


.pattern-option:hover {

    border-color:
        var(--light-blue);

    box-shadow:
        0 0 14px rgba(37, 99, 235, 0.2);

    transform:
        translateY(-2px);
}


.pattern-option.selected {

    background:
        var(--light-blue);

    border-color:
        var(--light-blue);

    color:
        white;

    box-shadow:
        0 0 18px rgba(59, 130, 246, 0.35);
}


/* ============================================================
   MEMORY
============================================================ */

.memory-display {

    background:
        rgba(26, 35, 50, 0.6);

    border:
        1px solid rgba(37, 99, 235, 0.4);

    padding:
        25px;

    min-height:
        120px;

    border-radius:
        5px;

    display:
        grid;

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

    gap:
        10px;

    margin-bottom:
        20px;
}


.memory-box {

    aspect-ratio:
        1;

    background:
        rgba(37, 99, 235, 0.2);

    border:
        2px solid rgba(37, 99, 235, 0.4);

    border-radius:
        5px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        1.5rem;

    font-weight:
        700;

    animation:
        memoryFlash 0.6s ease;
}


@keyframes memoryFlash {

    0% {

        background:
            var(--light-blue);

        border-color:
            var(--light-blue);

        transform:
            scale(1.08);
    }

    100% {

        background:
            rgba(37, 99, 235, 0.2);

        border-color:
            rgba(37, 99, 235, 0.4);

        transform:
            scale(1);
    }
}


.memory-instruction {

    margin-bottom:
        15px;

    color:
        rgba(232, 240, 248, 0.7);
}


.memory-buttons {

    display:
        grid;

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

    gap:
        10px;
}


.memory-btn {

    padding:
        17px;

    background:
        rgba(26, 35, 50, 0.6);

    border:
        1px solid rgba(37, 99, 235, 0.4);

    border-radius:
        5px;

    cursor:
        pointer;

    font-size:
        1.15rem;

    font-weight:
        600;

    color:
        var(--accent);

    transition:
        all 0.2s ease;
}


.memory-btn:hover {

    border-color:
        var(--light-blue);

    transform:
        translateY(-2px);
}


.memory-btn.active {

    background:
        var(--light-blue);

    border-color:
        var(--light-blue);

    color:
        white;

    box-shadow:
        0 0 15px rgba(59, 130, 246, 0.4);
}


/* ============================================================
   TRIVIA
============================================================ */

.trivia-options {

    display:
        grid;

    grid-template-columns:
        1fr;

    gap:
        12px;

    margin-bottom:
        20px;
}


.trivia-option {

    padding:
        16px 20px;

    background:
        rgba(26, 35, 50, 0.6);

    border:
        1px solid rgba(37, 99, 235, 0.4);

    border-radius:
        5px;

    cursor:
        pointer;

    color:
        var(--accent);

    text-align:
        left;

    font-size:
        1rem;

    transition:
        all 0.25s ease;
}


.trivia-option:hover {

    border-color:
        var(--light-blue);

    box-shadow:
        0 0 12px rgba(37, 99, 235, 0.2);

    transform:
        translateX(3px);
}


.trivia-option.selected {

    background:
        var(--light-blue);

    border-color:
        var(--light-blue);

    color:
        white;

    box-shadow:
        0 0 18px rgba(59, 130, 246, 0.35);
}


/* ============================================================
   PROFILE
============================================================ */

.info-container {

    animation:
        slideInRight 0.8s ease-out;
}


.form-group {

    margin-bottom:
        20px;
}


.form-group label {

    display:
        block;

    font-size:
        0.85rem;

    letter-spacing:
        1px;

    color:
        var(--light-blue);

    margin-bottom:
        9px;

    text-transform:
        uppercase;
}


/* ============================================================
   CERTIFICATE
============================================================ */

.cert-preview-wrapper {

    animation:
        slideInRight 0.8s ease-out;

    display:
        flex;

    flex-direction:
        column;

    gap:
        20px;

    align-items:
        center;
}


.cert-preview {

    width:
        100%;

    background:
        linear-gradient(135deg,
            rgba(37, 99, 235, 0.05) 0%,
            rgba(26, 35, 50, 0.9) 100%);

    border:
        3px solid var(--light-blue);

    border-radius:
        8px;

    padding:
        40px;

    text-align:
        center;

    animation:
        certScale 0.8s ease-out;

    position:
        relative;

    box-shadow:
        0 10px 40px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}


@keyframes certScale {

    from {

        opacity:
            0;

        transform:
            scale(0.95);
    }

    to {

        opacity:
            1;

        transform:
            scale(1);
    }
}


.cert-preview::before {

    content:
        '';

    position:
        absolute;

    top:
        0;

    left:
        0;

    right:
        0;

    height:
        1px;

    background:
        linear-gradient(90deg,
            transparent,
            var(--light-blue),
            transparent);
}


.cert-preview::after {

    content:
        '';

    position:
        absolute;

    bottom:
        0;

    left:
        0;

    right:
        0;

    height:
        1px;

    background:
        linear-gradient(90deg,
            transparent,
            var(--light-blue),
            transparent);
}


.cert-decorative-top,
.cert-decorative-bottom {

    font-size:
        1.5rem;

    color:
        var(--light-blue);

    letter-spacing:
        10px;

    opacity:
        0.6;
}


.cert-decorative-bottom {

    margin-top:
        20px;
}


.cert-header {

    font-size:
        1.8rem;

    font-weight:
        600;

    letter-spacing:
        2px;

    color:
        var(--light-blue);

    margin-bottom:
        20px;

    text-transform:
        uppercase;
}


.cert-line {

    width:
        80px;

    height:
        2px;

    background:
        linear-gradient(90deg,
            transparent,
            var(--light-blue),
            transparent);

    margin:
        20px auto;
}


.cert-text {

    font-size:
        1rem;

    color:
        rgba(232, 240, 248, 0.8);

    margin:
        15px 0;

    letter-spacing:
        0.5px;
}


.cert-name {

    font-size:
        1.6rem;

    font-weight:
        700;

    color:
        var(--light-blue);

    margin:
        20px 0;

    text-transform:
        uppercase;

    font-style:
        italic;

    overflow-wrap:
        anywhere;
}


.cert-title {

    font-size:
        1.2rem;

    font-weight:
        500;

    color:
        rgba(232, 240, 248, 0.9);

    margin:
        20px 0;

    letter-spacing:
        1px;
}


.cert-details {

    background:
        rgba(0, 0, 0, 0.3);

    padding:
        25px;

    border-radius:
        4px;

    margin:
        25px 0;

    text-align:
        left;

    border-left:
        3px solid var(--light-blue);
}


.cert-detail-item {

    display:
        flex;

    justify-content:
        space-between;

    gap:
        20px;

    margin-bottom:
        15px;

    padding-bottom:
        15px;

    border-bottom:
        1px solid rgba(37, 99, 235, 0.2);
}


.cert-detail-item:last-child {

    border-bottom:
        none;

    margin-bottom:
        0;

    padding-bottom:
        0;
}


.cert-detail-item .label {

    color:
        var(--light-blue);

    font-weight:
        600;

    letter-spacing:
        0.5px;
}


.cert-detail-item .value {

    color:
        rgba(232, 240, 248, 0.9);

    text-align:
        right;

    max-width:
        50%;

    overflow-wrap:
        anywhere;
}


.cert-footer {

    margin-top:
        25px;

    padding-top:
        20px;

    border-top:
        1px solid rgba(37, 99, 235, 0.3);
}


.cert-date {

    font-size:
        0.9rem;

    color:
        rgba(232, 240, 248, 0.7);

    margin:
        10px 0;
}


.cert-signature {

    font-size:
        1rem;

    color:
        var(--light-blue);

    margin:
        15px 0;

    font-weight:
        700;
}


/* ============================================================
   SCROLLBAR
============================================================ */

.state::-webkit-scrollbar {

    width:
        5px;
}


.state::-webkit-scrollbar-track {

    background:
        transparent;
}


.state::-webkit-scrollbar-thumb {

    background:
        var(--light-blue);

    border-radius:
        10px;
}


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

@media (max-width: 1100px) {

    .container {

        gap:
            40px;

        width:
            92%;
    }

    .stone-character {

        width:
            230px;

        height:
            230px;
    }

    .captcha-grid {

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

}


@media (max-width: 900px) {

    body {

        overflow-y:
            auto;
    }

    .main-section {

        min-height:
            100vh;

        height:
            auto;

        overflow-y:
            auto;

        padding:
            30px 0;
    }

    .container {

        grid-template-columns:
            1fr;

        height:
            auto;

        gap:
            30px;

        padding:
            30px 0;
    }

    .stone-wrapper {

        gap:
            15px;
    }

    .stone-character {

        width:
            170px;

        height:
            170px;
    }

    .content-area {

        min-height:
            550px;

        height:
            auto;
    }

    .state {

        max-height:
            none;

        overflow:
            visible;
    }

}


@media (max-width: 650px) {

    .intro-content h1 {

        font-size:
            2.2rem;

        letter-spacing:
            5px;
    }

    .intro-content p {

        font-size:
            0.8rem;

        letter-spacing:
            2px;
    }

    .system-header {

        font-size:
            1.4rem;
    }

    .lock-title {

        font-size:
            1.35rem;
    }

    .lock-question {

        font-size:
            1rem;
    }

    .captcha-grid {

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

    .pattern-options {

        grid-template-columns:
            1fr;
    }

    .memory-display {

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

        padding:
            15px;
    }

    .memory-buttons {

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

    .camera-frame video {

        height:
            230px;
    }

    .cert-preview {

        padding:
            25px 18px;
    }

    .cert-detail-item {

        flex-direction:
            column;

        gap:
            8px;
    }

    .cert-detail-item .value {

        max-width:
            100%;

        text-align:
            left;
    }

}


@media (max-width: 420px) {

    .container {

        width:
            94%;
    }

    .captcha-grid {

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

        gap:
            6px;
    }

    .captcha-item {

        font-size:
            1.35rem;
    }

    .memory-display {

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

    .memory-buttons {

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

    .primary-btn,
    .secondary-btn {

        padding:
            13px 18px;

        font-size:
            0.85rem;
    }

}