/* -- Toast ---------------------------------------- */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(225,112,85,0.3);
}
.toast.show {
    opacity: 1;
    animation: toastSlideUp 0.35s ease-out both;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.beta-gate-page {
    background: #f6f8f7;
    color: #26312f;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 24px;
}
.beta-gate-page::before {
    display: none;
}
.beta-gate-page h1 {
    margin: 13px 0 6px;
    color: #26312f;
    font-size: 34px;
    line-height: 1.05;
}
.beta-gate {
    position: relative;
    z-index: 1;
    width: min(100%, 390px);
    min-height: min(520px, calc(100dvh - 48px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    border: 1px solid #dce7e3;
    border-radius: 18px;
    padding: 30px 26px 24px;
    box-shadow: 0 18px 60px rgba(48,70,65,0.12);
    text-align: center;
}
.beta-gate-mascot {
    width: 82px;
    height: 68px;
    margin: 0 auto 16px;
}
.beta-gate-mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.beta-gate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #edf7f4;
    color: #276c5a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.beta-gate-note {
    color: #66736f;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.45;
    margin: 0 auto 22px;
    max-width: 280px;
}
.beta-gate-form {
    display: grid;
    gap: 0;
}
.beta-gate-label {
    color: #66736f;
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left;
}
.beta-gate-form input {
    width: 100%;
    min-height: 50px;
    border: 1px solid #cbd8d4;
    border-radius: 12px;
    background: #fbfdfc;
    color: #26312f;
    padding: 0 15px;
    font: inherit;
    font-size: 18px;
    font-weight: 750;
    text-align: center;
}
.beta-gate-form input:focus {
    outline: none;
    border-color: #2f8f7d;
    box-shadow: 0 0 0 4px rgba(47,143,125,0.14);
}
.beta-gate-form button,
.feedback-send {
    border: none;
    border-radius: 12px;
    background: #6c5ce7;
    color: #fff;
    padding: 0.75rem 1rem;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(108,92,231,0.25);
}
.beta-gate-form button:hover,
.feedback-send:hover {
    background: #5848c2;
}
.beta-gate-form button {
    width: 100%;
    min-height: 50px;
    margin-top: 12px;
    background: #2f8f7d;
    font-size: 16px;
    font-weight: 850;
    box-shadow: 0 10px 28px rgba(47,143,125,0.2);
}
.beta-gate-form button:hover {
    background: #247464;
}
.beta-gate-error {
    color: #46515c;
    background: #f4f7f8;
    border: 1px solid #d7e2e6;
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    font-size: 0.86rem;
    font-weight: 800;
    margin-top: 10px;
}
.beta-gate-small {
    margin: 14px 0 0;
    color: #87918e;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 650;
}
@media (max-height: 620px) {
    .beta-gate {
        min-height: auto;
    }
}

.feedback-toggle {
    position: fixed;
    left: 8px;
    bottom: 8px;
    z-index: 200;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(48,54,61,0.16);
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #6b7280;
    font: inherit;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    opacity: 0.68;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.feedback-toggle:hover {
    opacity: 0.95;
    color: #6c5ce7;
}
.feedback-modal[hidden] {
    display: none;
}
.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1rem calc(var(--keyboard-inset, 0px) + env(safe-area-inset-bottom, 0px) + 1rem);
    background: rgba(45,52,54,0.28);
    backdrop-filter: blur(3px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.feedback-modal.keyboard-open {
    align-items: flex-start;
}
.feedback-dialog {
    position: relative;
    width: min(92vw, 360px);
    max-height: calc(100dvh - var(--keyboard-inset, 0px) - env(safe-area-inset-top, 0px) - 2rem);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e6dfd6;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 16px 44px rgba(45,52,54,0.18);
}
.feedback-dialog h2 {
    color: #2d3436;
    font-size: 1rem;
    text-align: left;
    margin: 0 2rem 0.75rem 0;
}
.feedback-dialog textarea {
    width: 100%;
    resize: vertical;
    min-height: 6rem;
    max-height: 32dvh;
    border: 2px solid #e8ddd3;
    border-radius: 12px;
    padding: 0.75rem;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #2d3436;
}
.feedback-dialog textarea:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108,92,231,0.14);
}
.feedback-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #f7f2ee;
    color: #8b7e74;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
.feedback-send {
    width: 100%;
    margin-top: 0.75rem;
    min-height: 46px;
}
