*{
    box-sizing:border-box;
}

body{

    margin:0;

    font-family:Arial,Helvetica,sans-serif;

    color:#eef7ff;

    background:
        radial-gradient(circle at top,#163b63,#08131f 70%);

    min-height:100vh;

}

.container{

    max-width:900px;

    margin:50px auto;

    padding:30px;

    background:rgba(9,22,38,.78);

    border:1px solid #2d6aa5;

    border-radius:18px;

    box-shadow:0 0 35px rgba(29,143,255,.18);

}

h1{

    margin-top:0;

    color:#7fc8ff;

}

.subtitle{

    color:#b8dfff;

    margin-bottom:30px;

}

label{

    display:block;

    margin-top:20px;

    margin-bottom:8px;

    font-weight:bold;

}

input,
textarea{

    width:100%;

    padding:12px;

    border-radius:10px;

    border:1px solid #3976b2;

    background:#10263e;

    color:white;

    font-size:16px;

}

textarea{

    resize:vertical;

    min-height:250px;

}

button{

    margin-top:30px;

    padding:14px 26px;

    font-size:17px;

    font-weight:bold;

    border:none;

    border-radius:10px;

    background:#1d8fff;

    color:white;

    cursor:pointer;

}

button:hover{

    background:#3aa3ff;

}

/* STUDENT VERSE BUILDER START */

.studentHeader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 30px;
    text-align: left;
}

.teacherLink {
    flex: 0 0 auto;
    text-decoration: none;
}

.dnetMark {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border: 2px solid #54bbff;
    border-radius: 22px;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 800;
    background: linear-gradient(145deg, #168cff, #07589e);
    box-shadow: 0 0 24px rgba(22, 140, 255, .45);
}

.lessonDisplay,
.builderPanel {
    margin-top: 26px;
    padding: 24px;
    border: 1px solid #2d6aa5;
    border-radius: 18px;
    background: rgba(9, 22, 38, .78);
    box-shadow: 0 0 28px rgba(29, 143, 255, .13);
}

.lessonDisplay h2,
.builderPanel h2 {
    margin-top: 0;
    color: #7fc8ff;
}

.translation {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 9px;
    border: 1px solid #3976b2;
    border-radius: 999px;
    font-size: .72em;
    vertical-align: middle;
}

#verseText {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    line-height: 1.7;
}

#verseText p {
    margin: 8px 0;
}

#verseText sup {
    color: #6fc1ff;
    font-weight: 700;
}

.wordArea {
    display: flex;
    min-height: 115px;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
    margin: 12px 0 22px;
    padding: 16px;
    border: 2px dashed #3976b2;
    border-radius: 16px;
    background: rgba(8, 25, 43, .72);
    transition: .2s ease;
}

.wordArea.dragOver {
    border-color: #7fc8ff;
    background: rgba(29, 143, 255, .12);
    box-shadow: inset 0 0 20px rgba(29, 143, 255, .18);
}

.wordCard {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #3976b2;
    border-radius: 11px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(180deg, #18446d, #102f4d);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .22);
    cursor: grab;
    transition: .16s ease;
    user-select: none;
}

.wordCard:hover {
    border-color: #7fc8ff;
    box-shadow: 0 0 18px rgba(29, 143, 255, .55);
    transform: translateY(-2px);
}

.wordCard.dragging {
    opacity: .35;
}

.wordCard.correctWord {
    border-color: #66ffb2;
    background: #217a4d;
}

.wordCard.wrongWord {
    border-color: #ff7a7a;
    background: #8b2d2d;
}

.gameControls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.gameControls button {
    margin-top: 0;
}

#message {
    min-height: 28px;
    margin: 20px 0;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
}

.statusMessage {
    color: #9fd3ff;
}

.successMessage {
    color: #66ffb2;
}

.completeOverlay {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .72);
}

.completeOverlay[hidden] {
    display: none;
}

.completeCard {
    width: min(430px, 100%);
    padding: 36px;
    border: 2px solid #54bbff;
    border-radius: 20px;
    text-align: center;
    background: #102f4d;
    box-shadow: 0 0 38px rgba(84, 187, 255, .5);
}

.completeCard h2 {
    margin-top: 0;
    color: #8fd4ff;
}

@media (max-width: 650px) {
    .container {
        width: calc(100% - 18px);
        margin: 18px auto;
        padding: 18px;
    }

    .studentHeader {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .dnetMark {
        width: 76px;
        height: 76px;
    }

    .lessonDisplay,
    .builderPanel {
        padding: 17px;
    }
}

/* STUDENT VERSE BUILDER END */

/* STARFIELD BACKGROUND START */

html {
    min-height: 100%;
    background: #06111e;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(
            circle at 50% -15%,
            rgba(20, 78, 126, .55),
            transparent 58%
        ),
        linear-gradient(
            180deg,
            rgba(5, 16, 29, .84),
            rgba(7, 25, 43, .92)
        );
}

#starCanvas {
    position: fixed;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
}

/* STARFIELD BACKGROUND END */

/* LIGHTNING ROUND START */

.modeBar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 26px 0;
}

.modeButton {
    margin: 0;
    border: 1px solid #3976b2;
    background: #102f4d;
}

.modeButton.activeMode {
    border-color: #7fc8ff;
    background: #1d72b8;
    box-shadow: 0 0 18px rgba(29, 143, 255, .5);
}

.lightningSetup {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: center;
    gap: 14px;
    margin: 22px 0;
}

.lightningSetup label {
    margin: 0;
}

.lightningSetup select {
    width: auto;
    min-width: 150px;
    padding: 12px;
    border: 1px solid #3976b2;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    background: #10263e;
}

.lightningSetup button {
    margin: 0;
}

.lightningTimer {
    margin: 18px 0 26px;
    color: #8fd4ff;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-shadow: 0 0 26px rgba(84, 187, 255, .55);
}

.lightningMessage {
    min-height: 30px;
    margin: 20px 0;
    text-align: center;
    font-size: 1.08rem;
    font-weight: 700;
}

.wordCard:disabled {
    cursor: default;
    opacity: .72;
}

section[hidden] {
    display: none;
}

/* LIGHTNING ROUND END */
