/* Fox brand. Tokens live on :root in shared.css. This file is the character
   and the SMS-night layout (direction E): cream page, chunky Nunito, pressable
   buttons, the fox in the room. */

.brand-magic-cat,
.brand-magic-fox {
    animation: fox-bob 3.2s ease-in-out infinite;
}

@keyframes fox-bob {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, calc(-50% - 6px)); }
}

.fox-top,
.fox-hero,
.fox-listen,
.fox-rec-idea,
.fox-sounds-toggle,
.fox-stop-label,
.fox-mic-note,
.sent-tuck { display: none; }

body.fox-night {
    background: var(--cream);
    background-image: none;
}

body.fox-night .fox-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
body.fox-night .fox-wordmark {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--fox);
    line-height: 1;
}
body.fox-night .fox-for {
    font-size: 13px;
    font-weight: 800;
    color: var(--mute);
}

body.fox-night .fox-hero {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 2px;
    min-height: 132px;
}
body.fox-night .fox-hero-img {
    width: 148px;
    height: auto;
    display: block;
    transform-origin: 50% 85%;
    animation: fox-idle 2.8s ease-in-out infinite;
    -webkit-user-drag: none;
    user-select: none;
}
@keyframes fox-idle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
body.fox-night .fox-bubble {
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 16px 16px 16px 6px;
    padding: 8px 12px;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.25;
    box-shadow: 0 3px 0 var(--line);
    margin-bottom: 18px;
    max-width: 150px;
}
body.fox-night.fox-recording .fox-bubble,
body.fox-night.fox-review .fox-bubble { display: none; }

body.fox-night.fox-recording .fox-hero-img,
body.fox-night.fox-listen-live .fox-hero-img {
    animation: none;
    transform: scale(calc(1 + var(--fox-level, 0) * 0.07)) rotate(calc(var(--fox-level, 0) * -3deg));
}

body.fox-night .fox-listen {
    display: none;
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    color: var(--fox);
    margin: 0;
}
body.fox-night.fox-recording .fox-listen { display: block; }

body.fox-night .fox-rec-idea {
    display: none;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
body.fox-night.fox-recording .fox-rec-idea { display: block; }
body.fox-night .fox-rec-idea span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 2px;
}

body.fox-night .reminder-idea-card {
    border: 2px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 4px 0 var(--line);
    padding: 14px 14px 12px;
    animation: fox-peek-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes fox-peek-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
body.fox-night .reminder-idea-kicker {
    color: var(--teal);
    letter-spacing: 0.12em;
    font-size: 11px;
}
body.fox-night .reminder-idea-title {
    font-family: Nunito, sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}
body.fox-night .reminder-idea-body {
    font-weight: 700;
    color: var(--mute);
}
body.fox-night .reminder-idea-starter {
    background: var(--cream);
    border-radius: 14px;
    font-weight: 700;
}
body.fox-night .starter-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fox);
    margin-bottom: 3px;
}
body.fox-night .fox-card-peek {
    position: absolute;
    top: -52px;
    right: 12px;
    width: 96px;
    height: 70px;
    overflow: hidden;
    pointer-events: none;
    animation: fox-peek 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.fox-night .fox-card-peek .fox-rig {
    width: 96px;
}
@keyframes fox-peek {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
body.fox-night.fox-recording .reminder-idea-card,
body.fox-night.fox-review .reminder-idea-card { display: none !important; }

body.fox-night .fox-sounds-toggle {
    display: block;
    margin: 2px auto 0;
    background: none;
    border: 0;
    color: var(--mute);
    font-weight: 800;
    font-size: 14px;
    padding: 8px 12px;
    min-height: 44px;
}
body.fox-night .sound-board-back {
    display: flex;
    background: transparent;
    box-shadow: none;
    border: 0;
    min-height: 36px;
    padding: 0 2px;
    color: var(--mute);
}
body.fox-night .sound-board-back-title { display: none; }

body.fox-night:not(.fox-sounds-open) .sound-board-corner,
body.fox-night:not(.fox-sounds-open) .sound-board-pads { display: none !important; }

body.fox-night:not(.fox-sounds-open) .sound-board-stage {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    grid-template-rows: none !important;
    flex: 1 1 auto;
    min-height: 0;
}
body.fox-night:not(.fox-sounds-open) .sound-board-stage .recorder-panel {
    height: auto !important;
    flex: 0 0 auto;
    margin-top: auto;
    padding-bottom: 0;
}
body.fox-night .sound-board-stage .recorder-panel-inner {
    min-height: 64px;
    height: 64px;
    border-radius: 16px !important;
    background: var(--fox) !important;
    background-image: none !important;
    box-shadow: 0 6px 0 var(--fox-lip) !important;
    color: #fff;
}
body.fox-night .sound-board-stage .recorder-idle-mark {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: none;
}
body.fox-night .sound-board-stage .recorder-panel-inner:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--fox-lip) !important;
}
body.fox-night .recorder-panel.recording-active .recorder-panel-inner,
body.fox-night .recorder-panel.counting-down .recorder-panel-inner {
    background: var(--teal) !important;
    box-shadow: 0 6px 0 var(--teal-lip) !important;
    height: auto;
    min-height: 64px;
}
body.fox-night .recorder-panel.recording-active .recorder-panel-inner:active {
    box-shadow: 0 2px 0 var(--teal-lip) !important;
}
body.fox-night .fox-stop-label {
    display: none;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}
body.fox-night.fox-recording .fox-stop-label { display: block; }
body.fox-night .recorder-panel.recording-active .timer {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #fff;
    line-height: 0.95;
}
body.fox-night .fox-mic-note {
    display: none;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--fox);
    margin: 6px 0 0;
}
body.fox-night.fox-mic-denied .fox-mic-note { display: block; }

/* Pressable lip on the shared buttons, everywhere. */
.btn,
.btn-submit,
.btn-generate,
.welcome-btn,
.byb-ready-btn,
.btn-reminder {
    border-radius: var(--radius-btn);
    font-weight: 800;
    box-shadow: 0 5px 0 var(--fox-lip);
    min-height: 48px;
}
.btn:active,
.btn-submit:active,
.btn-generate:active,
.welcome-btn:active,
.byb-ready-btn:active,
.btn-reminder:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 var(--fox-lip);
}
.btn-g {
    background: var(--teal);
    box-shadow: 0 5px 0 var(--teal-lip);
    border-radius: var(--radius-btn);
    font-weight: 800;
}
.btn-g:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--teal-lip); }
.btn-s {
    background: var(--cream);
    color: var(--ink);
    border-radius: 14px;
    box-shadow: 0 3px 0 var(--line);
    font-weight: 800;
}
.btn-s:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.card {
    border: 2px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

#library-list .empty,
#members-list .empty,
#playlists-list .empty,
#gs-items:empty {
    background: url("/fox/parts/mark.png") no-repeat center top / 64px auto;
    padding-top: 78px;
}

.sent-screen { background: var(--cream); }
body.fox-sent .sent-screen-inner { padding-top: 8px; }
.sent-fox {
    width: min(240px, 70vw);
    height: auto;
    display: block;
    margin: 8px auto 4px;
    animation: fox-settle 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes fox-settle {
    from { transform: translateY(-18px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.sent-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-align: center;
    line-height: 1;
    margin: 8px 0 0;
    color: var(--ink);
}
.sent-tuck[hidden] { display: none !important; }
.sent-tuck {
    display: block;
    width: fit-content;
    margin: 14px auto 0;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 8px 14px 9px;
    text-align: center;
    box-shadow: 0 3px 0 var(--line);
    transform: rotate(-4deg);
}
.sent-tuck b { display: block; font-size: 14px; font-weight: 800; }
.sent-tuck span { font-size: 11px; font-weight: 700; color: var(--mute); }
.sent-another {
    display: inline-block;
    margin-top: 18px;
    background: none;
    border: 0;
    color: var(--teal);
    font-size: 15px;
    font-weight: 800;
    min-height: 44px;
    cursor: pointer;
    font-family: inherit;
}

input, select, textarea { font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
    .brand-magic-cat,
    .brand-magic-fox,
    .fox-hero-img,
    .fox-card-peek,
    .reminder-idea-card,
    .sent-fox {
        animation: none !important;
    }
    body.fox-night.fox-recording .fox-hero-img,
    body.fox-night.fox-listen-live .fox-hero-img {
        transform: none;
    }
}
