@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,300&display=swap');

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

body {
    font-family: 'Roboto', sans-serif;
    background: #14172a;
    color: #e7e9f5;
    min-height: 100vh;
}

.page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.sub {
    color: #9aa0c0;
    margin-bottom: 28px;
    line-height: 1.5;
}

.layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 760px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: #1c2038;
    border: 1px solid #2c3357;
    border-radius: 10px;
    padding: 20px;
}

.settings h2 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #b7bde0;
}

.field {
    display: block;
    margin-bottom: 16px;
    font-size: 13px;
    color: #cfd3ec;
}

.field span {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.field input[type="range"] {
    width: 100%;
}

.field.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.field.checkbox span {
    display: inline;
}

.start-btn {
    width: 100%;
    padding: 12px;
    background: #35406B;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    transition: .15s background;
}

.start-btn:hover {
    background: #465490;
}

.start-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.stats {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #2c3357;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 13px;
}

.stats div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stats span {
    color: #8b91b8;
    font-size: 11px;
}

.stats b {
    font-size: 16px;
}

.game-area {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minigame-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.idle-message {
    color: #6a7099;
    font-size: 15px;
}

.wrap {
    display: none;
    width: 100%;
    max-width: 500px;
    background: #24293C;
    border: 8px solid #35406B;
    padding: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.wrap.active {
    display: flex;
}

.section-1 {
    width: 100%;
}

.section-header {
    text-align: center;
    line-height: 32px;
    margin-bottom: 4px;
}

.section-header .fas {
    font-size: 42px;
}

.header-text {
    font-size: 14px;
    letter-spacing: .3px;
    color: #cfd3ec;
}

.loading-bar {
    display: none;
    background: #1A1D2C;
    height: 20px;
    width: 100%;
    margin-top: 1rem;
}

.loading-bar.active {
    display: block;
}

.timer-bar {
    display: none;
    background: #1A1D2C;
    height: 10px;
    width: 100%;
    margin-top: 1rem;
}

.timer-bar.active {
    display: block;
}

.loading-bar-inner {
    width: 0%;
    height: 100%;
    background: #35406B;
    transition: .3s linear width;
}

.timer-bar-inner {
    width: 0%;
    height: 100%;
    background: #35406B;
    transition: 0s linear width;
}

.decryption-icons {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    font-size: 40px;
    gap: 35px;
}

.decryption-icons.active {
    display: flex;
}

.decryption-icons i {
    transition: .1s linear color;
}

.decryption-minigame {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.decryption-minigame.active {
    display: flex;
}

.currentMinigameIcon {
    font-size: 65px;
}

.text {
    color: #cfd3ec;
    font-size: 14px;
}

.currentMinigameInput {
    display: flex;
    height: 40px;
    width: 250px;
}

.currentMinigameInput input {
    height: 40px;
    width: 250px;
    background: #1f2336;
    border: none;
    outline: none;
    padding: 10px 20px;
    color: white;
    font-size: 16px;
    text-align: center;
    border-bottom: white 2px solid;
}

.result-flash {
    font-size: 15px;
    font-weight: 700;
    margin-top: 10px;
}

.result-flash.success {
    color: #30EC7B;
}

.result-flash.fail {
    color: #EC3030;
}
