/* No body override — inherits the default background from main.css */

.action-bar {
    background: linear-gradient(to bottom, rgba(14, 14, 14, 1), rgba(14, 14, 14, 0));
}

/* ── Page wrapper ─────────────────────────────────────────────── */
.contact-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 14px 24px 20px;
}

/* ── Game-table ambience ─────────────────────────────────────── */
/* Retheme only: a breathing gold table glow + drifting embers behind the
   card. Decorative, absolutely positioned — adds no height, no JS, no sound. */
.contact-board {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 640px;
}

.cboard-glow {
    position: absolute;
    inset: -60px -80px;
    border-radius: 50%;
    background: radial-gradient(ellipse 60% 50% at 50% 50%,
        rgba(255, 191, 0, 0.07), transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: cboard-breathe 6s ease-in-out infinite;
}

@keyframes cboard-breathe {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}

/* Ember motes drifting up the table */
.cboard-ember {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 191, 0, 0.55);
    box-shadow: 0 0 6px rgba(255, 191, 0, 0.6);
    pointer-events: none;
    opacity: 0;
    animation: cember-rise 9s linear infinite;
}

.ce-1 { left: 8%;  bottom: 10%; animation-delay: 0s; }
.ce-2 { left: 88%; bottom: 18%; animation-delay: 2.5s; animation-duration: 11s; }
.ce-3 { left: 22%; bottom: 4%;  animation-delay: 5s;   animation-duration: 8s; }
.ce-4 { left: 70%; bottom: 8%;  animation-delay: 7s;   animation-duration: 10s; }

@keyframes cember-rise {
    0%   { transform: translateY(0) translateX(0) scale(1);     opacity: 0; }
    12%  { opacity: 0.7; }
    60%  { opacity: 0.35; }
    100% { transform: translateY(-340px) translateX(14px) scale(0.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cboard-glow, .cboard-ember {
        animation: none;
    }
    .cboard-ember { display: none; }
}

/* ── Card ─────────────────────────────────────────────────────── */
.contact-card {
    background: rgba(10, 9, 6, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 191, 0, 0.22);
    border-radius: 16px;
    padding: 22px 40px;
    max-width: 560px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 191, 0, 0.05);
}

/* ── Header ───────────────────────────────────────────────────── */
.contact-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 191, 0, 0.18);
}

.contact-heading {
    font-family: 'DragonSlayer', 'HwyGothic', sans-serif;
    font-size: 1.7rem;
    letter-spacing: 0.22em;
    color: #ffbf00;
    text-shadow: 0 0 16px rgba(255, 191, 0, 0.25);
    margin: 0;
}

.contact-subtext {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.95rem;
    color: #b8b0a0;
    line-height: 1.5;
    margin: 0;
}

/* ── Contact methods ──────────────────────────────────────────── */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
/* Hover treatment borrowed from the board's "selectable card" state */
.contact-method:hover {
    background: rgba(255, 191, 0, 0.07);
    border-color: rgba(255, 191, 0, 0.6);
    box-shadow: 0 0 12px rgba(255, 191, 0, 0.15);
    transform: translateY(-2px);
}

.contact-method-icon {
    font-size: 1.3rem;
    color: #c9a96e;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.contact-method-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.contact-method-label {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: #c9a96e;
    text-transform: uppercase;
}

.contact-method-value {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.95rem;
    color: #e8e0ce;
}

.contact-method-arrow {
    font-size: 0.75rem;
    color: rgba(201, 169, 110, 0.4);
    flex-shrink: 0;
    transition: color 0.18s ease;
}
.contact-method:hover .contact-method-arrow {
    color: #c9a96e;
}

/* ── Signed-in message form ───────────────────────────────────── */
.contact-message-section[hidden] {
    display: none;
}

.contact-message-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 191, 0, 0.18);
}

.contact-message-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-message-heading {
    font-family: 'HwyGothic', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.18em;
    color: #c9a96e;
    margin: 0;
}

.contact-message-subtext {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.9rem;
    color: #b8b0a0;
    line-height: 1.6;
    margin: 0;
}

.contact-player-email {
    color: #c9a96e;
    font-weight: 600;
}

.contact-message-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-message-label {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: #c9a96e;
    text-transform: uppercase;
}

.contact-message-textarea {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.95rem;
    color: #e8e0ce;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 16px;
    resize: vertical;
    min-height: 72px;
    line-height: 1.5;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.contact-message-textarea:focus {
    outline: none;
    border-color: rgba(201, 169, 110, 0.6);
    background: rgba(255, 255, 255, 0.06);
}

.contact-message-textarea::placeholder {
    color: #6a6457;
}

.contact-message-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-message-status {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.85rem;
    color: #b8b0a0;
    flex: 1;
    min-width: 0;
}

.contact-message-status.success {
    color: #7bc07b;
}

.contact-message-status.error {
    color: #d96a6a;
}

.contact-message-submit {
    font-family: 'HwyGothic', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    color: #0e0e0e;
    background: #c9a96e;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.18s ease, transform 0.15s ease;
}

.contact-message-submit:hover:not(:disabled) {
    background: #d9b97e;
    transform: translateY(-1px);
}

.contact-message-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Mobile ───────────────────────────────────────────────────── */
@media only screen and (max-width: 767px), only screen and (hover: none) {
    .contact-page {
        padding: 24px 16px 90px;
    }

    .contact-card {
        padding: 28px 24px;
    }


    .action-bar {
        background-color: #0e0e0e;
    }

    .contact-message-submit {
        width: 100%;
        justify-content: center;
    }
}
