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

body {
    background: #0a0a0a;
    color: #c8c8c8;
    font-family: "Courier New", Consolas, monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.center-col {
    width: 100%;
    min-width: 400px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.logo {
    width: 100%;
    font-family: "VT323", "Courier New", Consolas, monospace;
    font-size: 4rem;
    font-weight: normal;
    letter-spacing: 2px;
    line-height: 1;
}

.logo a {
    color: #b0b0b0;
    text-decoration: none;
    display: block;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

textarea {
    width: 100%;
    background: #111;
    color: #c8c8c8;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 1rem;
    font-family: "Courier New", Consolas, monospace;
    font-size: 1.1rem;
    resize: vertical;
    outline: none;
}

textarea:focus {
    border-color: #666;
}

textarea[readonly] {
    cursor: text;
    background: #0d0d0d;
}

.secret-container {
    position: relative;
    min-height: 200px;
}

.secret-container canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    z-index: 1;
    pointer-events: none;
}

.secret-container textarea {
    visibility: hidden;
}

.secret-container textarea.revealed {
    visibility: visible;
    position: relative;
    z-index: 2;
}

.reveal-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    align-self: center;
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
}

button {
    background: #444;
    color: #ddd;
    border: none;
    padding: 0.6rem 1.5rem;
    font-family: "Courier New", Consolas, monospace;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    align-self: flex-end;
}

button:hover {
    background: #666;
}

.hint, .warning {
    font-size: 1.05rem;
    color: #888;
}

.warning {
    color: #ff6b6b;
}

.link-box {
    display: flex;
    gap: 0.5rem;
}

.link-box input {
    flex: 1;
    background: #111;
    color: #b0b0b0;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    font-family: "Courier New", Consolas, monospace;
    font-size: 0.9rem;
    outline: none;
}

.error-msg {
    font-size: 1rem;
    color: #888;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
    color: #555;
}

footer a {
    color: #999;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .center-col {
        min-width: unset;
        max-width: 100%;
    }

    .logo {
        font-size: 2.4rem;
    }
}
