:root {
    --bg: #000;
    --fg: #fff;
    --fg-muted: #666;
    --border: #333;
    --border-hover: #999;
    --input-bg: rgba(255, 255, 255, 0.1);
    --scrollbar-track: #111;
    --scrollbar-thumb: #444;
    --scrollbar-hover: #555;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #fff;
        --fg: #000;
        --fg-muted: #999;
        --border: #ddd;
        --border-hover: #666;
        --input-bg: rgba(0, 0, 0, 0.05);
        --scrollbar-track: #f0f0f0;
        --scrollbar-thumb: #ccc;
        --scrollbar-hover: #bbb;
    }
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: Menlo, monospace;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

h1 {
    font-size: 4rem;
    color: hsl(0, 100%, 50%);
    transition: color 0.1s linear;
    user-select: none;
    text-align: center;
}

.visitor-counter {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.visitor-counter p {
    user-select: none;
    margin-bottom: 0.2rem;
}

.cry-section {
    margin-top: 2rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.cry-header {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cry-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.cry-input {
    background: var(--input-bg);
    border: 1px solid var(--fg-muted);
    border-radius: 20px;
    color: var(--fg);
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.85rem;
    width: 180px;
}

.cry-input:focus {
    outline: none;
    border-color: var(--border-hover);
}

.cry-button {
    background: transparent;
    border: 1px solid var(--fg-muted);
    border-radius: 20px;
    color: var(--fg);
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.cry-button:hover {
    border-color: var(--border-hover);
}

.cry-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cry-count {
    font-size: 0.75rem;
    color: var(--fg-muted);
    margin-bottom: 0.5rem;
}

.cry-list {
    max-height: 350px;
    overflow-y: scroll;
    text-align: left;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5rem;
}

.cry-list::-webkit-scrollbar {
    width: 8px;
}

.cry-list::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 4px;
}

.cry-list::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

.cry-list::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-hover);
}

.cry-item {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.cry-item:last-child {
    border-bottom: none;
}

.cry-timestamp {
    color: var(--fg-muted);
    font-size: 0.75rem;
}

.cry-empty {
    color: var(--fg-muted);
    font-size: 0.8rem;
}
