
@import url('https://fonts.googleapis.com/css2?family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&family=Manrope:wght@300;400;500;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --paper: #e8ddc8;
    --paper-dark: #d4c4a8;
    --ink: #1a1612;
    --red: #a8321e;
    --red-bright: #c0392b;
    --gold: #b8925a;
    --blue: #2c4a6e;
    --olive: #6b6142;
}

body {
    background: #0f0e0b;
    color: #e8e2d6;
    font-family: 'Manrope', sans-serif;
    /* архивная «пыльная» текстура поверх всего */
    background-image:
        radial-gradient(circle at 20% 30%, rgba(184,146,90,0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(168,50,30,0.05) 0%, transparent 40%),
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.012) 0px,
            rgba(255,255,255,0.012) 1px,
            transparent 1px,
            transparent 3px
        );
}

header {
    display: flex;
    justify-content: space-between;
    padding: 30px 7%;
    border-bottom: 1px solid #35332d;
    font-size: 11px;
    letter-spacing: 3px;
}

.logo {
    color: #c7a879;
}

.header-date {
    color: #77736a;
}

.hero {
    min-height: 680px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 7%;
    right: 7%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--gold) 20%,
        var(--gold) 80%,
        transparent 100%);
    opacity: 0.4;
}
.eyebrow {
    color: #b69a70;
    font-size: 10px;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

h1 {
    font-family: 'Old Standard TT', serif;
    font-size: clamp(90px, 16vw, 200px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow:
        2px 2px 0 rgba(0,0,0,0.4),
        0 0 60px rgba(184,146,90,0.15);
}

h1 span {
    color: var(--gold);
    font-style: italic;
}

.subtitle {
    max-width: 390px;
    margin-top: 35px;
    line-height: 1.8;
    font-family: 'Old Standard TT', serif;
    font-size: 23px;
    color: #aaa398;
}

.music-signature {
    margin-top: 35px;
    font-size: 11px;
    letter-spacing: 3px;
    color: #77736a;
}

.music-signature span {
    color: #c7a879;
}

button {
    margin-top: 45px;
    padding: 16px 30px;
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    letter-spacing: 3px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    text-transform: uppercase;
    font-size: 11px;
}

button:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--paper);
    box-shadow: 0 4px 20px rgba(168,50,30,0.4);
    transform: translateY(-2px);
}

.message {
    background: #e9e2d5;
    color: #24221e;
    text-align: center;
    padding: 100px 20px;
}

.message .eyebrow {
    color: #91734d;
}

h2 {
    font-family: 'COld Standard TT', serif;
    font-size: 48px;
    font-weight: 400;
}

.message {
    background: var(--paper);
    color: var(--ink);
    text-align: center;
    padding: 100px 20px;
    /* лёгкая текстура бумаги */
    background-image:
        radial-gradient(circle at 30% 40%, rgba(139,105,80,0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(139,105,80,0.04) 0%, transparent 50%),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 2px,
            rgba(0,0,0,0.012) 2px,
            rgba(0,0,0,0.012) 3px
        );
    border-top: 3px double var(--ink);
    border-bottom: 3px double var(--ink);
}

textarea {
    display: block;
    width: min(500px, 90%);
    height: 110px;
    margin: auto;
    padding: 20px;
    background: transparent;
    border: 1px solid #aaa18f;
    resize: none;
    font-family: inherit;
    font-size: 15px;
}

.message button {
    color: #604b30;
    border-color: #91734d;
}

#result {
    margin-top: 30px;
}

footer {
    display: flex;
    justify-content: space-between;
    padding: 30px 7%;
    color: #77736a;
    font-size: 10px;
    letter-spacing: 3px;
}

.notes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.note {
    position: absolute;
    color: #b69a70;
    opacity: 0.15;
    font-family: serif;
    animation: float 12s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-35px) rotate(15deg); }
}

@media (max-width: 600px) {
    .hero { min-height: 570px; }
    h2 { font-size: 36px; }
    footer { font-size: 8px; }
}


.staff-result {
    width: 100%;
    margin: 30px auto;
    padding: 20px 0;
}

.note-sequence {
    font-family: 'Old Standard TT', serif;
    font-size: 25px;
    color: #725b3d;
    letter-spacing: 4px;
}

.omitted {
    font-size: 12px;
    color: #8b6950;
    line-height: 1.7;
    max-width: 500px;
    margin: 20px auto;
}

/* ===== Кнопки-действия в блоке сообщения ===== */
.message-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.message-actions button { margin-top: 0; }
button.ghost {
    color: #91734d;
    border-color: #c3b8a3;
    background: transparent;
}
button.ghost:hover { background: #91734d; color: #e9e2d5; }

/* ===== Облако нот ===== */
.note-cloud-section {
    padding: 100px 20px;
    text-align: center;
    background: #14130f;
    border-top: 1px solid #2a2822;
}
.note-cloud-section h2 {
    color: #e8e2d6;
    font-size: 42px;
}
.cloud-hint {
    color: #8a8478;
    margin: 15px 0 40px;
    font-family: 'Old Standard TT', serif;
    font-size: 20px;
}
.note-cloud {
    position: relative;
    max-width: 900px;
    height: 420px;
    margin: 0 auto;
    border: 1px solid var(--olive);
    border-radius: 50% / 30%;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(184,146,90,0.08) 0%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(44,74,110,0.15) 0%, transparent 40%),
        #0a0906;
}
.cloud-note {
    position: absolute;
    font-family: serif;
    color: #c7a879;
    opacity: 0.55;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s, color 0.2s;
    user-select: none;
    animation: drift 8s infinite ease-in-out;
}
.cloud-note:hover {
    opacity: 1;
    color: #f0d9a8;
    transform: scale(1.6);
    z-index: 10;
}
@keyframes drift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(8deg); }
}
.note-tooltip {
    position: fixed;
    pointer-events: none;
    background: #e9e2d5;
    color: #24221e;
    padding: 10px 16px;
    border-radius: 4px;
    font-family: 'Old Standard TT', serif;
    font-size: 18px;
    max-width: 260px;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 100;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.note-tooltip.visible { opacity: 1; }
.note-tooltip small {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    color: #91734d;
    letter-spacing: 2px;
    margin-top: 6px;
}

/* ===== Блок фильма ===== */
.film {
    padding: 110px 20px;
    text-align: center;
    background: var(--red);
    color: var(--paper);
    position: relative;
    overflow: hidden;
    border-top: 6px solid var(--ink);
    border-bottom: 6px solid var(--ink);
}

/* концентрические круги как на советских плакатах */
.film::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    border: 1px solid rgba(232,221,200,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 0 80px rgba(232,221,200,0.04),
        0 0 0 160px rgba(232,221,200,0.02);
    pointer-events: none;
}

.film > * { position: relative; z-index: 1; }

.film .eyebrow { color: var(--gold); }
.film h2 {
    font-size: 64px;
    color: var(--paper);
    text-shadow: 3px 3px 0 rgba(0,0,0,0.25);
}
.film-lead {
    max-width: 520px;
    margin: 25px auto 50px;
    color: rgba(232,221,200,0.85);
    line-height: 1.8;
    font-family: 'Old Standard TT', serif;
    font-size: 22px;
}

.posters {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.poster {
    width: 200px;
    height: 290px;
    object-fit: cover;
    display: block;
    border: 4px solid var(--paper);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    filter: sepia(0.15) contrast(1.05);
}

.poster:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 rgba(0,0,0,0.35);
    filter: sepia(0) contrast(1.1);
}
.poster.p1 { background: linear-gradient(135deg, #6b1e10, var(--red-bright)); }
.poster.p2 { background: linear-gradient(135deg, #142a42, var(--blue)); }
.poster.p3 { background: linear-gradient(135deg, #2a2010, #8a6a2a); }
.ticket-btn:hover { background: #b69a70; color: #11110f; }

@media (max-width: 600px) {
    .note-cloud { height: 320px; }
    .film h2 { font-size: 40px; }
    .poster { width: 150px; height: 220px; }
}

.ticket-btn {
    background: var(--ink);
    color: var(--paper);
    border: 2px solid var(--paper);
    font-size: 13px;
    padding: 20px 44px;
    letter-spacing: 4px;
    margin-top: 0;
}
.ticket-btn:hover {
    background: var(--paper);
    color: var(--red);
    border-color: var(--ink);
}