@font-face {
    font-family: 'BlurLight';
    src: url(../fonts/blurlight.ttf);
}

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

html, body {
    background: #0d0d0d;
    color: #c0c0c0;
    font-family: 'BlurLight', monospace;
}

body {
    padding: env(safe-area-inset-top) 28px env(safe-area-inset-bottom);
    overflow-y: auto;
}

.page {
    max-width: 400px;
    margin: 0 auto;
    padding: 48px 0 64px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.top {
    animation: fadeUp 0.4s ease both;
}

.back {
    font-size: 12px;
    color: #c0c0c0;
    text-decoration: none;
    opacity: 0.3;
    letter-spacing: 2px;
    transition: opacity 0.2s;
}

.back:hover { opacity: 0.8; }

.header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: fadeUp 0.5s ease 0.05s both;
}

.title {
    font-size: 13px;
    opacity: 0.35;
    letter-spacing: 3px;
}

.subtitle {
    font-size: 22px;
    letter-spacing: 1px;
    opacity: 0.7;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeUp 0.5s ease 0.1s both;
}

.input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(200, 200, 200, 0.2);
    color: #c0c0c0;
    font-family: 'BlurLight', monospace;
    font-size: 16px;
    letter-spacing: 1px;
    padding: 8px 0;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
}

.input::placeholder {
    opacity: 0.3;
}

.input:focus {
    border-color: rgba(200, 200, 200, 0.5);
}

.textarea {
    line-height: 1.6;
    padding-top: 10px;
}

.submit-btn {
    background: transparent;
    border: 1px solid rgba(200, 200, 200, 0.2);
    color: #c0c0c0;
    font-family: 'BlurLight', monospace;
    font-size: 13px;
    letter-spacing: 3px;
    padding: 9px 0;
    width: 100%;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.5;
    margin-top: 4px;
}

.submit-btn:hover:not(:disabled) {
    border-color: rgba(200, 200, 200, 0.55);
    opacity: 1;
}

.submit-btn:disabled {
    opacity: 0.25;
    cursor: default;
}

.list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 28px;
    animation: fadeUp 0.5s ease 0.15s both;
}

.loading {
    font-size: 13px;
    opacity: 0.25;
    letter-spacing: 2px;
}

.empty {
    font-size: 14px;
    opacity: 0.3;
    letter-spacing: 1px;
}

.msg {
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: fadeUp 0.35s ease both;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.08);
}

.msg:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.msg-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.msg-name {
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.65;
}

.msg-date {
    font-size: 11px;
    opacity: 0.25;
    letter-spacing: 1.5px;
    flex-shrink: 0;
}

.msg-text {
    font-size: 16px;
    letter-spacing: 0.5px;
    line-height: 1.6;
    opacity: 0.8;
    white-space: pre-wrap;
    word-break: break-word;
}

.reactions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.react-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid rgba(200, 200, 200, 0.12);
    border-radius: 20px;
    padding: 3px 10px 3px 8px;
    cursor: pointer;
    font-family: 'BlurLight', monospace;
    color: #c0c0c0;
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.45;
    transition: opacity 0.2s, border-color 0.2s;
}

.react-btn:hover {
    opacity: 0.8;
    border-color: rgba(200, 200, 200, 0.3);
}

.react-btn.reacted {
    opacity: 0.75;
    border-color: rgba(200, 200, 200, 0.35);
}

.react-emoji {
    font-size: 14px;
    line-height: 1;
}

.react-count {
    font-size: 12px;
    opacity: 0.7;
}
