/* Tonigrams sticker brand. Loaded after the old layout sheets so the
   room reads as navy, star yellow, and die-cut stickers. */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
    --navy: #1B2A4A;
    --star: #FFD65C;
    --star-lip: #C9A227;
    --sky: #7CC4FA;
    --lavender: #B9A7F5;
    --bubblegum: #FF8FC7;
    --mint: #BFF0DC;
    --cream: #FFF8EC;
    --fox: var(--navy);
    --room-lip: var(--star-lip);
    --ink: var(--navy);
    --gold: var(--star);
    --mute: #3E4E6C;
    --line: #E7DCC8;
    --coral: var(--navy);
    --pink: var(--bubblegum);
    --bg: var(--cream);
    --text: var(--navy);
    --muted: #3E4E6C;
    --light: #5C6B86;
    --border: var(--line);
    --hover: #FFF3D4;
    --gradient: var(--star);
    --shadow-btn: 0 5px 0 var(--star-lip);
    --radius-btn: 18px;
}

html, body {
    background-color: var(--cream);
    color: var(--navy);
    transition: background 1.6s ease, color 1.6s ease;
}

body {
    font-family: 'Nunito', sans-serif;
    background-image: none;
}

h1, h2, h3, .equip-heading, .sent-title, .story-writing-headline,
.phone-auth-sheet-title, .brand-word, .logo span, .brand-magic-word,
.loading-word, .room-wordmark, .lockup-word {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.logo span, .brand-magic-word, .loading-word, .room-wordmark, .lockup,
.lockup-word, .brand-word {
    color: var(--navy) !important;
    -webkit-text-fill-color: var(--navy) !important;
    background: none !important;
    text-transform: lowercase;
}

.logo img, .top-bar .logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* Time of day. Only the backdrop moves. */
html[data-daypart="morning"] body {
    background-color: #F6D2C4;
    background-image: linear-gradient(180deg, #F8C9B4 0%, #F6D5E6 46%, #C9D4F6 100%);
    color: var(--navy);
}
html[data-daypart="day"] body {
    background-color: #B9DFFB;
    background-image: linear-gradient(180deg, #8ECAF8 0%, #C5E6FF 48%, #EAF6FF 100%);
    color: var(--navy);
}
html[data-daypart="night"] body {
    background-color: #0E1A33;
    background-image: radial-gradient(ellipse at 78% 12%, rgba(255, 214, 92, 0.18), transparent 28%),
        linear-gradient(180deg, #121C38 0%, #0C1730 55%, #091226 100%);
    color: var(--cream);
}

body::before, body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 1.6s ease;
}
.app, #welcome, .sent-screen, .loading-screen { position: relative; z-index: 1; }

html[data-daypart="day"] body::before {
    background:
        radial-gradient(ellipse 90px 34px at 16% 14%, rgba(255, 255, 255, 0.9), transparent 70%),
        radial-gradient(ellipse 120px 42px at 74% 18%, rgba(255, 255, 255, 0.82), transparent 72%),
        radial-gradient(ellipse 70px 26px at 42% 8%, rgba(255, 255, 255, 0.7), transparent 70%),
        radial-gradient(ellipse 80px 28px at 88% 42%, rgba(255, 255, 255, 0.55), transparent 70%);
}
html[data-daypart="night"] body::before {
    background-image:
        radial-gradient(circle at 18% 22%, #fff 0 1px, transparent 1.6px),
        radial-gradient(circle at 32% 12%, #fff 0 1.2px, transparent 2px),
        radial-gradient(circle at 62% 28%, #FFD65C 0 1px, transparent 1.8px),
        radial-gradient(circle at 78% 16%, #fff 0 1.4px, transparent 2.2px),
        radial-gradient(circle at 88% 36%, #fff 0 1px, transparent 1.6px),
        radial-gradient(circle at 24% 48%, #fff 0 1px, transparent 1.6px),
        radial-gradient(circle at 48% 8%, #fff 0 1px, transparent 1.6px);
    animation: star-twinkle 4.8s ease-in-out infinite;
}
html[data-daypart="night"] body::after { content: none; }

/* Sky control. A solid round button, not a masked disc. */
.daypart-btn {
    position: fixed;
    z-index: 40;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: 12px;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF8EC;
    color: #1B2A4A;
    box-shadow: 0 2px 8px rgba(27, 42, 74, 0.2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.daypart-btn svg { width: 22px; height: 22px; display: block; }
.daypart-btn:active { transform: scale(0.96); }
.daypart-btn:focus { outline: none; }
.daypart-btn:focus-visible { outline: 2px solid #1B2A4A; outline-offset: 3px; }
html[data-daypart="night"] .daypart-btn:focus-visible { outline-color: #FFF8EC; }
body:has(#loading:not(.hidden)) .daypart-btn,
body:has(#main:not(.hidden)) .daypart-btn {
    visibility: hidden;
    pointer-events: none;
}
@keyframes star-twinkle {
    0%, 100% { opacity: 0.72; }
    50% { opacity: 1; }
}

html[data-daypart="night"] .brand-word,
html[data-daypart="night"] .brand-greet,
html[data-daypart="night"] .logo span,
html[data-daypart="night"] .loading-word,
html[data-daypart="night"] .brand-quiet,
html[data-daypart="night"] .brand-link,
html[data-daypart="night"] .brand-magic-word {
    color: #FFF8EC !important;
    -webkit-text-fill-color: #FFF8EC !important;
}

/* Landing copy sits on the sky. Cards keep navy ink. */
html[data-daypart="night"] #welcome .equip-heading,
html[data-daypart="night"] #welcome .equip-desc,
html[data-daypart="night"] #welcome .section-label,
html[data-daypart="night"] #welcome .welcome-login-wrap,
html[data-daypart="night"] #welcome .welcome-login-wrap a,
html[data-daypart="night"] #welcome .landing-footer,
html[data-daypart="night"] #welcome .landing-footer span,
html[data-daypart="night"] #welcome .footer-links a {
    color: #FFF8EC !important;
    -webkit-text-fill-color: #FFF8EC !important;
    background: none !important;
    background-image: none !important;
}

.card, .credits-sheet, .app-dialog, .bottom-nav, .phone-auth-sheet,
.dialog-animated, .connect-modal-inner {
    color: var(--navy);
}

/* Buttons. Solid star yellow, navy ink, a pressable lip. No holo. */
.btn, .btn-submit, .btn-generate, .welcome-btn.account-btn, .byb-ready-btn,
.btn-another, .btn-reminder, .nav-fab, .credits-tab-buy, .celebrate-done,
.teller-hero, .btn-tell-story, .recorder-keep, button.btn,
.credits-sheet .btn, .pwa-install-banner button, .me-account .btn {
    background: var(--star) !important;
    background-image: none !important;
    color: var(--navy) !important;
    -webkit-text-fill-color: var(--navy) !important;
    border: none !important;
    border-radius: 18px !important;
    box-shadow: 0 5px 0 var(--star-lip) !important;
    font-family: 'Fredoka', 'Nunito', sans-serif !important;
    font-weight: 600 !important;
    min-height: 52px;
}
.btn:active, .btn-submit:active, .btn-generate:active, .nav-fab:active,
.welcome-btn.account-btn:active, .credits-tab-buy:active, .celebrate-done:active {
    transform: translateY(3px) !important;
    box-shadow: 0 2px 0 var(--star-lip) !important;
}
.nav-fab {
    color: var(--navy) !important;
}
.nav-fab .nav-mic rect,
.nav-fab .nav-mic path {
    fill: var(--navy);
    stroke: var(--navy);
}
.bottom-nav {
    background: #FFF8EC !important;
    border-top: 1px solid rgba(27, 42, 74, 0.08);
}
.nav-tab, .nav-tab.active {
    color: var(--navy) !important;
}

.record-tile.tile-primary,
body.room-night .sound-board-stage .recorder-panel-inner,
.recorder-panel-inner {
    background: var(--star) !important;
    color: var(--navy) !important;
    box-shadow: 0 6px 0 var(--star-lip) !important;
}
.recorder-idle-mark, .room-stop-label, .timer, .hint {
    color: var(--navy) !important;
}

/* Home */
.brand-home {
    text-align: center;
    padding: 0.4rem 0.5rem 0.2rem;
}
.brand-logo {
    width: 76px;
    height: auto;
    display: block;
    margin: 0 auto 0.1rem;
    filter: drop-shadow(0 3px 12px rgba(27, 42, 74, 0.16));
}
.loading-mark .brand-logo, .room-mount-hero .brand-logo, .sent-room-mount .brand-logo {
    width: min(168px, 46vw);
    margin: 0 auto;
}
/* Landing lockup. The old puppet box left a tall gap under the mark. */
#welcome .welcome-hero .brand-magic:has(.room-mount) {
    width: min(168px, 46vw);
    height: auto;
    aspect-ratio: auto;
    margin: 0 auto;
}
#welcome .welcome-hero .brand-magic-word {
    margin: 4px 0 0.45rem;
    padding: 0 0.5rem;
    line-height: 1;
}
.brand-word {
    font-size: 2.15rem;
    line-height: 1;
    margin: 0 0 0.45rem;
}
.brand-record {
    width: min(280px, 86%);
    margin: 0 auto;
    display: block;
    font-size: 1.15rem;
}
.brand-greet {
    margin: 0.45rem 0 0.2rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--navy);
}
.brand-quiet {
    margin: 0.1rem 0 0.35rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy);
}
.brand-link {
    background: none;
    border: none;
    color: var(--navy);
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 0.35rem;
}
[data-tab="record"]:has(#record-form.path-hub) .record-header { display: none !important; }
[data-tab="record"]:not(:has(#record-form.path-hub)) .brand-home { display: none !important; }
[data-tab="record"]:has(#record-form.path-hub) .record-chooser { display: none !important; }

.loading-screen {
    background: var(--cream);
}
html[data-daypart="morning"] .loading-screen {
    background: linear-gradient(180deg, #F8C9B4, #C9D4F6);
}
html[data-daypart="day"] .loading-screen {
    background: linear-gradient(180deg, #8ECAF8, #EAF6FF);
}
html[data-daypart="night"] .loading-screen {
    background: #0E1A33;
    color: var(--cream);
}
.loading-text { color: inherit; font-weight: 700; }

/* Story stickers. Cream card so the baked cream background blends. The picture fills the card. */
.record-cover {
    aspect-ratio: auto !important;
    background: #FFF8EC !important;
    box-shadow: 0 3px 0 rgba(27, 42, 74, 0.08) !important;
    border: none !important;
    border-radius: 18px !important;
    padding: 0.25rem 0.25rem 0.4rem !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    overflow: visible !important;
    gap: 0.15rem;
}
.record-cover-art {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1 !important;
    background: #FFF8EC !important;
    background-image: none !important;
    background-size: cover !important;
    filter: none !important;
    border-radius: 14px !important;
    overflow: hidden;
}
.record-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #FFF8EC;
}
.record-cover-art::after { display: none !important; }
.record-cover-title {
    position: static !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    color: var(--navy) !important;
    text-shadow: none !important;
    -webkit-line-clamp: 2;
    margin-top: 0.1rem;
    text-align: center;
}
.record-cover.tint-teal, .record-cover.tint-orange { filter: none !important; }

.library-item {
    background: #fff;
    border-radius: 16px;
}
.lib-sticker {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    background: #FFF8EC;
    border-radius: 18px;
    position: relative;
}
.lib-sticker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    background: #FFF8EC;
}
.library-sent {
    font-weight: 800;
    color: var(--navy);
}

/* Holo lives on the die-cut edge only. The picture and the mark's
   fill stay untouched. Longhands on purpose: the mask shorthand resets
   mask-composite in WebKit, and a content-box keyword in that shorthand
   is ignored on iOS, which paints the shimmer across the whole sticker. */
.holo, .sticker-sent {
    position: relative;
    isolation: isolate;
}
.brand-logo-wrap { position: relative; display: inline-block; line-height: 0; }
.holo-sheen, .holo::after, .sticker-sent::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(
        calc(120deg + var(--holo-tilt, 0) * 48deg),
        #FF8FC7, #FFD65C, #BFF0DC, #7CC4FA, #B9A7F5, #FF8FC7
    );
    mix-blend-mode: normal;
    opacity: 1;
    transform: none;
}
/* The logo ring is the SVG stroke. No overlay, so tilt cannot open a seam. */
.brand-logo-wrap.holo::after,
.holo-sheen {
    content: none;
}
/* Sent stories: a 3px ring. Composite is set AFTER the shorthands.
   WebKit resets mask-composite when the mask shorthand is assigned, and
   that left the shimmer covering the whole sticker on iPhone. */
.sticker-sent::after {
    padding: 3px;
    box-sizing: border-box;
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
html.holo-auto .holo::after,
html.holo-auto .holo-sheen,
html.holo-auto .sticker-sent::after {
    animation: holo-ring 7.5s linear infinite;
}
@keyframes holo-ring {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(360deg); }
}

/* Pre-app shell. The mark sits on the sky; the form is a cream sheet. */
body:has(.brand-shell:not(.hidden)) {
    padding: 0;
    min-height: 100dvh;
    overflow: hidden;
}
body:has(.brand-shell:not(.hidden)) #top-nav { display: none; }
.brand-shell {
    box-sizing: border-box;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    background: transparent;
}
#home-signin.brand-shell {
    position: fixed;
    inset: 0;
    z-index: 80;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}
.brand-shell-hero {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.35rem;
    padding: calc(48px + env(safe-area-inset-top, 0px)) 1.25rem 1.15rem;
    text-align: center;
}
.brand-shell-hero .brand-logo-wrap {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.brand-shell-hero .brand-shell-word,
.brand-shell-hero .phone-screen-word {
    width: 100%;
    text-align: center;
}
.brand-shell-mark,
.phone-screen-logo {
    width: 150px;
    height: auto;
    display: block;
}
.brand-shell-word,
.phone-screen-word {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #1B2A4A;
    -webkit-text-fill-color: #1B2A4A;
    text-transform: lowercase;
}
html[data-daypart="night"] .brand-shell-word,
html[data-daypart="night"] .phone-screen-word {
    color: #FFF8EC;
    -webkit-text-fill-color: #FFF8EC;
}
/* Navy fill disappears on the night sky. Keep the holo stroke and lay a
   cream sticker edge plus a soft glow on top of it. Day stays untouched. */
html[data-daypart="night"] .brand-shell-mark,
html[data-daypart="night"] .brand-logo {
    filter:
        drop-shadow(0 0 1px #FFF8EC)
        drop-shadow(0 0 2px #FFF8EC)
        drop-shadow(0 0 12px rgba(255, 248, 236, 0.8));
}
.brand-shell-sheet {
    position: relative;
    z-index: 1;
    flex: 0 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #FFF8EC !important;
    background-image: none !important;
    color: #1B2A4A;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -12px 32px rgba(27, 42, 74, 0.1);
    padding: 1.05rem 1.2rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
/* WebKit drops a scrolling element's background when the sky behind it
   is a gradient. Paint the cream on its own layer so dawn, day, and
   night all keep the sheet. */
.brand-shell-sheet::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background-color: #FFF8EC;
    background-image: none;
    pointer-events: none;
}
.brand-shell-sheet > * {
    position: relative;
    z-index: 1;
}
.brand-shell-sheet .card {
    box-shadow: none;
}
.phone-screen-title,
.phone-auth-title {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #1B2A4A;
    -webkit-text-fill-color: #1B2A4A;
    text-align: center;
    text-transform: none;
    margin: 0 0 0.3rem;
}
.phone-screen-lead {
    font-family: 'Nunito', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    color: #3E4E6C;
    text-align: center;
    margin: 0 0 0.7rem;
}
.brand-shell .phone-auth-field { margin-bottom: 0.55rem; }
.brand-shell .phone-auth-consent,
.brand-shell .phone-auth-sim,
.brand-shell .phone-auth-sent { margin-bottom: 0.45rem; }
.brand-shell .phone-auth-recovery { margin-top: 0.35rem; margin-bottom: 0.15rem; }
.phone-screen-skip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 0.1rem;
    padding: 0.35rem 0.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #1B2A4A;
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
}
.brand-shell:has(.phone-auth-step:not(.hidden) .phone-auth-code) .brand-shell-sheet > .phone-screen-title,
.brand-shell:has(.phone-auth-step:not(.hidden) .phone-auth-code) .brand-shell-sheet > .phone-screen-lead {
    display: none;
}
html .phone-auth-send {
    min-height: 56px !important;
    font-size: 1.15rem !important;
}
@media (max-width: 389px) {
    .brand-shell-mark, .phone-screen-logo { width: 120px; }
    .brand-shell-hero { padding-bottom: 0.5rem; }
    .brand-shell-sheet { padding-left: 1rem; padding-right: 1rem; }
}
@media (max-height: 640px) {
    .brand-shell-hero {
        flex: 0 0 auto;
        padding-top: calc(0.35rem + env(safe-area-inset-top, 0px));
        padding-bottom: 0.25rem;
    }
    .brand-shell-mark, .phone-screen-logo { width: 56px; }
    .brand-shell-word, .phone-screen-word { font-size: 1.35rem; }
    .brand-shell-sheet { padding-top: 0.65rem; padding-bottom: 0.4rem; }
    .phone-screen-lead { margin-bottom: 0.35rem; }
    .brand-shell .phone-auth-consent,
    .brand-shell .phone-auth-sim { margin-bottom: 0.3rem; }
}

.brand-affiliate {
    margin: 1.25rem 0.5rem 0.25rem;
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.45;
    font-weight: 700;
    color: var(--light);
}
html[data-daypart="night"] .brand-affiliate { color: rgba(255, 248, 236, 0.72); }

.credits-sheet-mark, .celebrate-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}
.credits-balance-num { color: var(--navy) !important; }
.celebrate-burst, .celebrate-confetti { display: none !important; }

.signin-mark {
    width: 96px;
    height: auto;
    display: block;
    margin: 0 auto 0.35rem;
}

.sticker-sheet {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem 0.25rem;
    padding: 0.4rem 0.5rem 1rem;
    background: var(--cream);
}
.sticker-sheet img { width: 100%; height: auto; }
.sticker-sheet figcaption {
    text-align: center;
    font-family: Nunito, sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--navy);
}

.icon-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--cream);
}
.icon-row img { image-rendering: auto; }

/* Beat the old orange recorder. Yellow lip, navy ink. */
html body.sound-board-mode .sound-board-stage .recorder-panel-inner,
html body .recorder-panel .recorder-panel-inner,
html body.sound-board-mode:not(.room-night) .sound-board-stage .recorder-panel:not(.recording-active):not(.counting-down) .recorder-panel-inner {
    background: #FFD65C !important;
    background-image: none !important;
    color: #1B2A4A !important;
    box-shadow: 0 5px 0 #C9A227 !important;
}
html body .recorder-idle-mark,
html body .room-stop-label,
html body.sound-board-mode .recorder-idle-mark {
    color: #1B2A4A !important;
    -webkit-text-fill-color: #1B2A4A !important;
}

html .record-cover .record-cover-title,
html .record-cover.tint-teal .record-cover-title,
html .record-cover.tint-orange .record-cover-title {
    background: transparent !important;
    color: #1B2A4A !important;
    box-shadow: none !important;
}
html[data-daypart="night"] .record-cover .record-cover-title,
html[data-daypart="night"] .record-cover.tint-teal .record-cover-title,
html[data-daypart="night"] .record-cover.tint-orange .record-cover-title {
    color: #1B2A4A !important;
    -webkit-text-fill-color: #1B2A4A !important;
}

html body:has([data-tab="record"]:not(.tab-hidden) #record-form.path-hub) .top-bar .logo {
    visibility: hidden;
}

.credits-pill {
    background: #fff !important;
    color: #1B2A4A !important;
    position: relative;
    z-index: 2;
}

#loading.loading-screen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 5000 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
}
#loading.loading-screen.hidden { display: none !important; }

/* The old orange literals stay in the layout sheet. These win on the
   buttons, stop control, progress, and wordmark so the room stays yellow. */
html #submit-btn,
html body.room-night #submit-btn,
html body.sound-board-mode .sound-board-stage .recorder-keep.btn-submit,
html body.sound-board-mode .sound-board-stage #submit-btn,
html body.room-recording .room-stop-label,
html body.room-night .sound-board-stage .recorder-panel.recording-active:not(.counting-down) .room-stop-label,
html body.sound-board-mode .recorder-panel.recording-active .room-stop-label,
html .recorder-panel.recording-active:not(.counting-down) .room-stop-label,
html .nav-fab,
html .btn-generate,
html #story-helper-input:has(.story-mode.is-own) .btn-generate,
html button[style*="linear-gradient"],
html .btn[style*="linear-gradient"],
html .btn-g[style*="linear-gradient"],
html .record-tile.tile-primary,
html .sent-reminder-bar,
html .btn-tell-story,
html .btn-tell-done,
html .btn-dialog-confirm,
html .teller-hero,
html .teller-play,
html .btn-view-library,
html .btn-retry-producing,
html .btn-trust,
html .celebrate-done,
html .btn-stay-primary,
html .byb-ready-btn,
html .story-writing-orb,
html .admin-avatar-fallback,
html .pricing-free-badge,
html .allset-icon,
html .recorder-panel.counting-down .recorder-panel-inner,
html body.sound-board-mode:not(.room-night) .sound-board-stage .recorder-panel.counting-down .recorder-panel-inner {
    background: #FFD65C !important;
    background-image: none !important;
    color: #1B2A4A !important;
    -webkit-text-fill-color: #1B2A4A !important;
    box-shadow: 0 5px 0 #C9A227 !important;
}
html .landing-footer span,
html .byb-title,
html .celebrate-count,
html .loading-word,
html .record-tile.tile-help .record-tile-art,
html .record-tile.tile-help .record-tile-art svg,
html .teller-sfx-toy,
html .story-output .story-text .story-sfx-clickable,
html .sound-board-corner.is-on,
html .sound-board-corner.is-on.feel-warm,
html .sound-board-corner.is-on.feel-hearth,
html .sound-board-corner.is-on.feel-silly,
html .sound-board-corner.is-on.feel-big {
    color: #1B2A4A !important;
    -webkit-text-fill-color: #1B2A4A !important;
}
html .sound-board-corner.is-on,
html .sound-board-corner.is-on.feel-warm,
html .sound-board-corner.is-on.feel-hearth,
html .sound-board-corner.is-on.feel-silly,
html .sound-board-corner.is-on.feel-big {
    background: #FFF3D4 !important;
    border-color: #1B2A4A !important;
    box-shadow: 0 4px 0 #C9A227 !important;
}
html .story-output .story-text .story-sfx-clickable.story-sfx-playing {
    background: #FFD65C !important;
    color: #1B2A4A !important;
    -webkit-text-fill-color: #1B2A4A !important;
}
html .story-length-fill,
html .produce-progress-bar,
html .contributor-bar-fill,
html .story-mode.is-own .story-length-fill {
    background: #FFD65C !important;
}
html .story-length-slider-wrap input[type="range"]::-webkit-slider-thumb,
html .story-length-slider-wrap input[type="range"]::-moz-range-thumb,
html .story-mode.is-own .story-length-slider-wrap input[type="range"]::-webkit-slider-thumb,
html .story-mode.is-own .story-length-slider-wrap input[type="range"]::-moz-range-thumb,
html body.record-path-teller .teller-progress-knob,
html .record-avatar.has-new::before {
    background: #FFD65C !important;
    box-shadow: 0 2px 0 #C9A227 !important;
}
html .top-bar .logo > img,
html .logo > img {
    display: inline-block !important;
}
html body.sound-board-mode .sound-board-back,
html body.sound-board-mode:not(.room-night) .sound-board-back,
html .sound-board-back,
html .record-path-back,
html body.sound-board-mode:not(.room-night) .sound-board-back-title,
html .sound-board-back-title {
    color: #1B2A4A !important;
    -webkit-text-fill-color: #1B2A4A !important;
}
html[data-daypart="night"] body.sound-board-mode .sound-board-back,
html[data-daypart="night"] .sound-board-back,
html[data-daypart="night"] .sound-board-back-title,
html[data-daypart="night"] .record-path-back {
    color: #FFF8EC !important;
    -webkit-text-fill-color: #FFF8EC !important;
}
html body.record-on-hub #main > [data-tab="record"] {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)) !important;
}
html body.record-on-hub .record-masonry,
html body.record-on-hub .record-masonry-col {
    gap: 0.4rem;
}
html #library-list .empty,
html #members-list .empty,
html #playlists-list .empty,
html #gs-items:empty {
    background-image: none !important;
}

@media (prefers-reduced-motion: reduce) {
    html, body, body::before, body::after { transition: none !important; animation: none !important; }
    .holo-sheen, .holo::after, .sticker-sent::after,
    html.holo-auto .holo::after, html.holo-auto .sticker-sent::after {
        animation: none !important;
    }
    html[data-daypart="night"] body::before { animation: none !important; }
}

/* Topic cards and the record button each get their own row. */
html body.sound-board-mode #sound-board-stage {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
        "c1 c2"
        "pads pads"
        "c3 c4"
        "rec rec" !important;
    grid-template-rows: auto auto auto auto !important;
    height: auto !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    align-content: start !important;
    align-items: stretch !important;
    gap: 12px !important;
    position: relative !important;
    z-index: 2;
}
html body.sound-board-mode #sound-board-stage > .sound-board-corner:nth-child(1) { grid-area: c1; position: relative; z-index: 2; }
html body.sound-board-mode #sound-board-stage > .sound-board-corner:nth-child(2) { grid-area: c2; position: relative; z-index: 2; }
html body.sound-board-mode #sound-board-stage > .sound-board-pads { grid-area: pads; }
html body.sound-board-mode #sound-board-stage > .sound-board-corner:nth-child(4) { grid-area: c3; position: relative; z-index: 2; }
html body.sound-board-mode #sound-board-stage > .sound-board-corner:nth-child(5) { grid-area: c4; position: relative; z-index: 2; }
html body.sound-board-mode #sound-board-stage:not(.has-pads) > .sound-board-pads { display: none !important; }
html body.sound-board-mode #sound-board-stage > #recorder-panel {
    grid-area: rec !important;
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 1 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    transform: none !important;
    opacity: 1 !important;
}
@media (max-height: 700px) {
    html body.sound-board-mode .room-hero-rig { width: min(72px, 22vw) !important; }
    html body.sound-board-mode .room-hero { margin: 0 0 4px !important; }
    html body.sound-board-mode .room-bubble { font-size: 13px !important; padding: 6px 8px !important; margin-bottom: 4px !important; }
    html body.sound-board-mode #sound-board-stage { gap: 8px !important; }
    html body.sound-board-mode .sound-board-corner { min-height: 52px !important; padding: 0.35rem 0.4rem !important; }
}
