/* --------------- General ------------ */

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

body {

    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", sans-serif;
    color: white;

    background-color: #2a0d0d;
    background-image:
        linear-gradient(
            rgba(42, 13, 13, 0.55),
            rgba(25, 8, 8, 0.65)
        ),

        radial-gradient(
            circle, 
            rgba(255,180,120, .10),
            rgba(0,0,0,0)
        ), 

        url("../images/mcc-logo.svg");

    background-blend-mode: soft-light;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto, contain;
    background-attachment: fixed;

}

/* ------------- Logo ---------------- */

.logo{
    font-size:5rem;

    margin-bottom:1rem;

}

/* --------------- Titles --------------*/

h1{

    font-size:2.5rem;

    margin-bottom:.5rem;

}

h2{

    color:#d4b2ff;
    
    margin-bottom:2rem;

    font-weight:normal;

}

#status{

    opacity:.75;

    font-size:1.1rem;

}
.app {
    width: min(1200px, 95vw);
    margin: 0 auto;
    padding: 2%;
}

.hero {
    text-align: center;
    margin-bottom: 1.5rem;
}

.bingo-card {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
}

.bingo-header {
    background: #d4b2ff;
    color: #1f1730;
    font-weight: bold;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-align: center;
}

.bingo-square {
    min-height: 110px;
    padding: 0.75rem;
    border: 2px solid #d4b2ff;
    border-radius: 0.75rem;
    background: #2d2144;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: pre-line;
}

.bingo-square:hover {
    background: #3b2b59;
}

.bingo-square.completed {
    background: #6f35c4;
    border-color: #f7d774;
    transform: scale(0.97);
}

.bingo-square.completed::after {
    content: " 🟣";
}

.bingo-square.locked {
    cursor: not-allowed;
    opacity: 0.8;
    border-style: dashed;
}

.bingo-square.unlocked {
    cursor: pointer;
    opacity: 1;
    border-style: solid;
    background: #3f6f6b;
    border-color: #f7d774;
    animation: pulseUnlock 1s ease-in-out;
}

.bingo-square.opened {

    background: linear-gradient(
        180deg,
        #8c6b2d,
        #6e5221
    );

    border: 2px solid #e7c66d;

    color: #fff7e5;

    box-shadow:
        inset 0 0 10px rgba(255,255,255,.08),
        0 0 10px rgba(231,198,109,.20);

    cursor: pointer;
}



/* --------------- Panels ------------ */
.status-panel {
    width: min(700px, 92vw);
    margin: 1rem auto 1.25rem;
    padding: 1rem 1.25rem;

    display: flex;
    alignitems: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;

    background: rgba(20, 5, 20, 0.75);
    border: 2px solid #d7b46d;
    border-radius: 1rem;

    color: #f7d774;
    font-size: 1.05rem;
    font-weight: bold;
    text-align: left;
}


#detectiveCharacter {
    width: 105px;
    height: auto;
    display: block;
    flex-shrink: 0;
    transition: transform .4s ease;
}

#detectiveHome {
    display: flex;
    align-items: center;
    gap: .2rem;
}

#detectiveStatus {
    margin-left: -4px;
    color: #d7b46d;
    font-style: italic;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

#bingoStatus {
    min-width: 230px;
}

.submission-panel {

    margin-top: 1rem;
    padding-top: 1rem;

    border-top: 1px solid rgba(215,180,109,.35);

    text-align:center;

}

/* --------------- *Button ------------ */

.reset-button {
    flex-basis: 100%;
    max-width: 220px;
    margin: 0 auto;
}

.reset-button:hover {
    background: hsl(121, 89%, 71%);
}


.info-button {
    flex-basis: 100%;
    max-width: 220px;
    margin: 0 auto;
}

.info-button:hover {
    background: hsl(121, 89%, 71%);
}

.submit-button {

    margin-top:.75rem;

    padding:.6rem 1.5rem;

    background:#4c7d3b;

    color:white;

    border:none;

    border-radius:.5rem;

    font-weight:bold;

    cursor:pointer;

}

.submit-button:hover {
    background: hsl(121, 89%, 71%);
}

.submit-button:disabled{

    background:#555;

    opacity:.55;

    cursor:not-allowed;

}

.hidden-button {

    margin-top:.75rem;

    padding:.6rem 1.5rem;

    background:#4c7d3b;

    color:white;

    border:none;

    border-radius:.5rem;

    font-weight:bold;

    cursor:pointer;

}

.hidden-button:hover {
    background: hsl(121, 89%, 71%);
}


.hq-modal-button {
    margin-top:.75rem;

    padding:.6rem 1.5rem;

    background:#4c7d3b;

    color:white;

    border:none;

    border-radius:.5rem;

    font-weight:bold;

    cursor:pointer;
}

.hq-modal-button:hover {
    background: hsl(121, 89%, 71%);
}

/* --------------- Modals ------------ */

.rules-modal-content {
    max-height: 85vh;
    overflow-y: auto;
}

.rules-modal-content p {
    margin-top: 1rem;
    line-height: 1.4;
}

.rules-modal-content hr {
    margin: 1.75rem 0;
    border: none;
    border-top: 1px solid rgba(215,180,109,.4);
}

.rules-modal-content h3 {
    color: #d7b46d;
    margin-bottom: .75rem;
    font-size: 1.1rem;
}

.tips-list {
    text-align: left;
    margin-left: 1.25rem;
    line-height: 1.5;
}

.tips-list li {
    margin-bottom: .5rem;
}


.hqpromotion-modal-content {
    max-height: 85vh;
    overflow-y: auto;
}

.hqpromotion-modal-content p {
    margin-top: 1rem;
    line-height: 1.4;
}

.hqpromotion-modal-content hr {
    margin: 1.75rem 0;
    border: none;
    border-top: 1px solid rgba(215, 180, 109, 0.684);
}

.hqpromotion-modal-content h3 {
    color: #d7b46d;
    margin-bottom: .75rem;
    font-size: 1.1rem;
}

.hqpromotion-modal-content h4 {
    color: #d7b46d;
    margin-bottom: .75rem;
    font-size: 1.1rem;
}

.closeCaseConfirmation-modal-content {
    max-height: 85vh;
    overflow-y: auto;
}

.closeCaseConfirmation-modal-content p {
    margin-top: 1rem;
    line-height: 1.4;
}

.closeCaseConfirmation-modal-content hr {
    margin: 1.75rem 0;
    border: none;
    border-top: 1px solid rgba(215,180,109,.4);
}

.closeCaseConfirmation-modal-content h3 {
    color: #d7b46d;
    margin-bottom: .75rem;
    font-size: 1.1rem;
}

.closeCaseConfirmation-modal-content h4 {
    color: #d7b46d;
    margin-bottom: .75rem;
    font-size: 1.1rem;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 3, 3, 0.75);

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

    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    width: min(90vw, 420px);
    padding: 2rem;

    background: rgba(50, 18, 14, 0.96);
    border: 2px solid #d7b46d;
    border-radius: 1rem;

    color: #f6efe6;
    text-align: center;

    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.modal-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.modal-close {
    float: right;

    background: transparent;
    border: none;
    color: #d7b46d;

    font-size: 1.8rem;
    cursor: pointer;
}

.modal-action {
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;

    background: #d7b46d;
    color: #2a0d0d;

    border: none;
    border-radius: 0.5rem;

    font-weight: bold;
    cursor: pointer;
}
/*==================================================
    FINAL CASE FILE MODAL
==================================================*/

.final-case-file {
    border: 3px solid #8b1e1e;
    background:
        linear-gradient(rgba(24, 18, 18, 0.96), rgba(12, 8, 8, 0.96));
    box-shadow:
        0 0 30px rgba(139, 30, 30, 0.65),
        inset 0 0 18px rgba(255, 220, 160, 0.12);
}

.final-case-file h2 {
    color: #f2c76b;
    letter-spacing: 0.12em;
}

.classified-stamp {
    display: inline-block;
    margin: 8px 0 18px;
    padding: 8px 16px;
    border: 3px solid #b32626;
    color: #b32626;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 0.16em;
    transform: rotate(-3deg);
    text-transform: uppercase;
}

.final-warning {
    color: #ffd27a;
    font-weight: bold;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.danger-button {
    background: #8b1e1e;
    color: #fff3dc;
    border: 2px solid #f2c76b;
}

.danger-button:hover {
    background: #b32626;
}
/* --------------- Mobile ------------ */

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        margin-bottom: 1rem;
    }

    .status-panel {
        flex-direction: column;
        text-align: center;
        padding: .75rem;
        gap: .45rem;
        margin-bottom: 1rem;
    }

    #detectiveHome {
        flex-direction: row;
        justify-content: center;
    }

    #detectiveCharacter {
        width: 80px;
    }

    #detectiveStatus {
        font-size: .95rem;
    }

    #bingoStatus {
        font-size: .95rem;
        line-height: 1.25;
    }

    .reset-button {
        width: 100%;
        max-width: 260px;
    }

    .info-button {
        width: 100%;
        max-width: 260px;
    }
}



@keyframes pulseUnlock {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

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

/* --------------- Animation ------------ */

#detectiveCharacter.unlocking {
    animation: detectiveUnlock 0.9s ease-in-out;
}

@keyframes detectiveUnlock {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(-4deg);
    }

    50% {
        transform: translateY(0) rotate(4deg);
    }

    75% {
        transform: translateY(-4px) rotate(-2deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.case-file-review-panel {
    margin: 18px auto 32px;
    padding: 18px;
    max-width: 760px;
    background: rgba(20, 28, 38, 0.95);
    border: 2px solid #caa94d;
    border-radius: 14px;
    color: #f7f2e8;
}

.case-file-review-panel h2 {
    margin-top: 0;
    text-align: center;
}

.case-file-entry {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #caa94d;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.case-file-entry h3 {
    margin-top: 0;
}

.case-file-entry p {
    margin: 8px 0;
}

.case-file-clue {
    margin-top: 10px;
    padding: 12px;
    border-left: 4px solid #caa94d;
    background: rgba(0, 0, 0, 0.2);
}

.case-file-status.correct {
    color: #9be28f;
    font-weight: bold;
}

.case-file-status.incorrect {
    color: #f5c26b;
    font-weight: bold;
}

.riddle-modal-content {
    max-width: 650px;
}

.riddle-question {
    margin: 18px 0;
    padding: 14px;
    border-left: 4px solid #caa94d;
    background: rgba(0, 0, 0, 0.15);
    line-height: 1.5;
}

.riddle-choices {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.riddle-choice-button {
    padding: 12px;
    border: 2px solid #caa94d;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-weight: bold;
    cursor: pointer;
}

.riddle-choice-button.selected {
    background: #caa94d;
    color: #23303b;
}

.riddle-choice-button:hover {
    background: rgba(202, 169, 77, 0.35);
}

.classified-label {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: #caa94d;
    font-weight: bold;
    margin-bottom: 8px;
}

.classified-question {
    font-weight: bold;
    line-height: 1.4;
}
/*==================================================
    TEASER PAGE - MISSION CONTROL
==================================================*/

body.teaser {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(255, 210, 120, 0.12), transparent 35%),
        linear-gradient(180deg, #120f1f 0%, #090711 100%);
    color: #f7ead0;
    font-family: Georgia, serif;
}

.missionControl {
    max-width: 900px;
    margin: 0 auto;
    padding: 36px 20px 60px;
    text-align: center;
}

.missionControl h1 {
    margin: 0 0 20px;
    color: #f2c76b;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    letter-spacing: 0.12em;
    text-shadow: 0 0 18px rgba(242, 199, 107, 0.35);
}

.detective {
    width: min(320px, 75vw);
    display: block;
    margin: 10px auto 24px;
    filter: drop-shadow(0 0 22px rgba(242, 199, 107, 0.35));
}

.statusBox,
.countdown,
.briefing,
.intel {
    background: rgba(22, 18, 35, 0.88);
    border: 2px solid rgba(242, 199, 107, 0.55);
    border-radius: 18px;
    padding: 20px;
    margin: 18px auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.45);
}

.statusBox h2,
.countdown h2,
.briefing h2,
.intel h2 {
    margin-top: 0;
    color: #f2c76b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#status {
    font-size: 1.2rem;
    font-style: italic;
}

#timer {
    font-family: "Courier New", monospace;
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.briefing p {
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1.1rem;
}

.discordButton {
    display: inline-block;
    margin: 24px auto;
    padding: 16px 28px;
    background: #f2c76b;
    color: #161223;
    border-radius: 999px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 0 18px rgba(242, 199, 107, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discordButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(242, 199, 107, 0.65);
}

.intel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.intel li {
    margin: 10px 0;
    font-family: "Courier New", monospace;
    font-size: 1.05rem;
}

.hidden {
    display: none !important;
}

/* Mobile polish */
@media (max-width: 600px) {
    .missionControl {
        padding-top: 24px;
    }

    .statusBox,
    .countdown,
    .briefing,
    .intel {
        padding: 16px;
        border-radius: 14px;
    }
}

.casefile-clue-modal-content {
    max-width: 620px;
}

#caseFileClueBody {
    text-align: left;
    line-height: 1.5;
}

#caseFileClueBody p {
    margin-bottom: 12px;
}

/*==================================================
    TEASER PAGE - FLOATING ICONS + CLUE MODAL
==================================================*/

.teaser-icons {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 20;
}

.teaser-icon {
    position: absolute;
    pointer-events: auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(242, 199, 107, 0.7);
    background: rgba(22, 18, 35, 0.9);
    color: #f2c76b;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(242, 199, 107, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teaser-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 28px rgba(242, 199, 107, 0.65);
}

.teaser-icon:nth-child(1) {
    top: 18%;
    left: 8%;
}

.teaser-icon:nth-child(2) {
    top: 28%;
    right: 9%;
}

.teaser-icon:nth-child(3) {
    bottom: 18%;
    left: 10%;
}

.teaser-icon:nth-child(4) {
    bottom: 24%;
    right: 12%;
}

.clue-modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 4, 10, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.clue-modal.hidden {
    display: none;
}

.clue-modal-content {
    max-width: 520px;
    background: #161223;
    border: 2px solid #f2c76b;
    border-radius: 18px;
    padding: 28px;
    color: #f7ead0;
    text-align: center;
    box-shadow: 0 0 35px rgba(242, 199, 107, 0.45);
    position: relative;
}

.clue-modal-content h2 {
    margin-top: 0;
    color: #f2c76b;
    letter-spacing: 0.12em;
}

.classified-text {
    font-family: "Courier New", monospace;
    font-size: 1.1rem;
    line-height: 1.6;
}

.clue-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #f2c76b;
    font-size: 2rem;
    cursor: pointer;
}

.case-file-code-panel {
    margin: 12px auto;
    padding: 14px 18px;
    max-width: 600px;

    background: #23303b;
    border: 2px solid #caa94d;
    border-radius: 12px;

    text-align: center;
    color: #f7f2e8;

    box-shadow: 0 3px 8px rgba(0,0,0,.25);
}

.case-file-code-panel label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

.case-file-code-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.case-file-code-row input {
    flex: 1;
    min-width: 220px;
    max-width: 300px;

    padding: 10px;

    border: 2px solid #caa94d;
    border-radius: 6px;

    font-size: 1rem;
    text-transform: uppercase;
}

.case-file-code-row button {
    padding: 10px 18px;

    border: none;
    border-radius: 6px;

    background: #caa94d;
    color: #23303b;

    font-weight: bold;
    cursor: pointer;
}

.case-file-code-row button:hover {
    background: #e0be5b;
}