:root {
    --ink: #18202b;
    --muted: #617086;
    --paper: #f7f4ed;
    --panel: #ffffff;
    --line: #ddd6c8;
    --accent: #1f7a8c;
    --accent-strong: #0f4c5c;
    --sun: #f2b84b;
    --rose: #d95d73;
    --green: #4b8f5f;
    --shadow: 0 16px 45px rgba(24, 32, 43, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(31, 122, 140, 0.12), transparent 34%),
        linear-gradient(315deg, rgba(217, 93, 115, 0.12), transparent 34%),
        var(--paper);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(24, 32, 43, 0.1);
    background: rgba(247, 244, 237, 0.92);
    backdrop-filter: blur(14px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--sun);
    box-shadow: 4px 4px 0 var(--ink);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 10px 13px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 700;
    transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: #ffffff;
    color: var(--accent-strong);
    outline: none;
}

.hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 28px;
    max-width: 1180px;
    min-height: 430px;
    margin: 0 auto;
    padding: 56px 20px 34px;
}

.hero-copy,
.hero-board {
    flex: 1 1 0;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.eyebrow {
    width: max-content;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--accent-strong);
    font-size: 0.9rem;
    font-weight: 800;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    max-width: 760px;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.lead {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 800;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn.primary {
    background: var(--accent);
    color: #ffffff;
}

.btn.btn-danger {
    background: var(--rose);
    color: #ffffff;
    border-color: var(--rose);
}

.btn:hover,
.btn:focus-visible {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink);
    outline: none;
}

.button-group {
    display: flex;
    gap: 12px;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--ink);
    padding: 4px;
}

.btn-small {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 0.88rem;
}

.hero-board {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(100%, 430px);
}

.sticky-note {
    padding: 18px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.sticky-note:nth-child(1) {
    transform: rotate(-2deg);
    background: #fff3bf;
}

.sticky-note:nth-child(2) {
    transform: rotate(1.5deg);
    background: #d9f2f0;
}

.sticky-note:nth-child(3) {
    transform: rotate(-1deg);
    background: #f8d7df;
}

main {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 56px;
}

.page-main {
    padding-top: 42px;
}

.section {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 30px rgba(24, 32, 43, 0.07);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-heading p {
    max-width: 520px;
    color: var(--muted);
}

.feature-grid {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.feature-card {
    display: flex;
    flex: 1 1 230px;
    flex-direction: column;
    gap: 8px;
    min-height: 132px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.feature-card:hover,
.feature-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(24, 32, 43, 0.1);
    outline: none;
}

.feature-card strong {
    color: var(--accent-strong);
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--muted);
}

.quote-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
}

.login-layout {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    max-height: calc(100vh - 240px);
}

.form-panel,
.feed-panel,
.login-panel,
.user-panel {
    flex: 1 1 0;
    min-width: 0;
}

.form-panel,
.login-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

label {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #c9c1b2;
    border-radius: 8px;
    background: #fbfaf7;
    color: var(--ink);
}

textarea {
    min-height: 118px;
    resize: vertical;
}

.feed-panel,
.user-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post,
.remark,
.rank-item,
.user-item {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.post-top,
.remark-top,
.rank-item,
.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.meta {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.entry-text {
    margin-bottom: 14px;
    font-size: 1.04rem;
}

.entry-signature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--accent-strong);
}

.entry-signature strong {
    font-style: italic;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border-radius: 8px;
    background: #eef5f6;
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
}

.remark-grid,
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-layout .user-panel {
    overflow-y: auto;
    max-height: 100%;
    padding-right: 8px;
}

.remark {
    border-left: 6px solid var(--accent);
}

.rank-item {
    min-height: 74px;
}

.rank-position {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.place {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--sun);
    font-weight: 900;
}

.score {
    color: var(--accent-strong);
    font-size: 1.25rem;
    font-weight: 900;
}

.status {
    min-height: 22px;
    color: var(--accent-strong);
    font-size: 0.92rem;
    font-weight: 800;
}

.site-footer {
    padding: 24px 20px 36px;
    color: var(--muted);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 700;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
    background: rgba(31, 122, 140, 0.08);
    border-color: var(--accent);
    color: var(--accent-strong);
    transform: translateY(-1px);
    outline: none;
}

.hidden {
    display: none;
}

@media (max-width: 820px) {
    .navbar,
    .hero,
    .quote-layout,
    .login-layout,
    .section-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .hero {
        padding-top: 34px;
    }

    .section {
        padding: 20px;
    }

    .post-top,
    .remark-top,
    .rank-item,
    .user-item {
        align-items: flex-start;
        flex-direction: column;
    }
}
