:root {
    --fr-page-bg: #05070d;
    --fr-page-bg-soft: #0c1221;
    --fr-panel: rgba(13, 18, 31, 0.72);
    --fr-panel-strong: rgba(10, 14, 26, 0.9);
    --fr-line: rgba(255, 255, 255, 0.08);
    --fr-line-strong: rgba(255, 255, 255, 0.14);
    --fr-text: #f4ecdd;
    --fr-text-soft: #b7c0ce;
    --fr-accent: #d8a56f;
    --fr-accent-soft: rgba(216, 165, 111, 0.16);
    --fr-cool: #93b4ca;
    --fr-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.focus-room-feature {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 26px;
    margin-top: 28px;
    padding: 34px;
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(216, 165, 111, 0.18), transparent 32%),
        radial-gradient(circle at 80% 22%, rgba(147, 180, 202, 0.18), transparent 30%),
        linear-gradient(150deg, #05070d 0%, #0d1320 54%, #16111d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.24);
}

.focus-room-feature::before,
body.focus-room-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1px),
        radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1px),
        radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.85) 0 1px, transparent 1px);
    background-size: 180px 180px, 220px 220px, 260px 260px;
}

.focus-room-feature-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.focus-room-feature-kicker,
.fr-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(244, 236, 221, 0.88);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.focus-room-feature h3,
.fr-title {
    margin: 18px 0 14px !important;
    color: #f6efe4 !important;
    font-family: "Instrument Serif", "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 0.98;
}

.focus-room-feature p,
.fr-body {
    color: rgba(223, 229, 240, 0.82) !important;
    font-size: 1.08rem !important;
    line-height: 1.85 !important;
}

.focus-room-feature-meta,
.fr-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 20px;
}

.focus-room-feature-meta span,
.fr-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(245, 238, 225, 0.86);
    font-size: 0.95rem;
    font-weight: 600;
}

.focus-room-feature-actions,
.fr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.focus-room-feature-link,
.fr-button,
.fr-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.focus-room-feature-link:hover,
.fr-button:hover,
.fr-link:hover {
    transform: translateY(-2px);
}

.focus-room-feature-link.primary,
.fr-button.primary {
    background: linear-gradient(135deg, rgba(226, 182, 126, 0.94), rgba(186, 129, 84, 0.95));
    color: #180f0d !important;
    box-shadow: 0 16px 28px rgba(206, 154, 101, 0.22);
}

.focus-room-feature-link.secondary,
.fr-button.secondary,
.fr-link {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(244, 236, 221, 0.92) !important;
}

.focus-room-feature-link.secondary:hover,
.fr-button.secondary:hover,
.fr-link:hover {
    border-color: rgba(216, 165, 111, 0.22);
    background: rgba(216, 165, 111, 0.08);
}

.focus-room-feature-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fr-scene {
    position: relative;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 50% 18%, rgba(123, 147, 176, 0.2), transparent 24%),
        linear-gradient(180deg, #0b101a 0%, #101623 38%, #0b0e16 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 48px rgba(0, 0, 0, 0.3);
    --fr-session-progress: 0.16;
    --fr-rain-strength: 0.55;
    --fr-ghost-opacity: 0.64;
    --fr-lamp-warmth: 0.34;
    --fr-note-opacity: 0;
    --fr-bonus-star-opacity: 0;
}

.fr-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 226, 184, calc(0.06 + var(--fr-lamp-warmth) * 0.06)), transparent 38%),
        radial-gradient(circle at 24% 34%, rgba(216, 165, 111, calc(0.08 + var(--fr-session-progress) * 0.08)), transparent 26%),
        linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, calc(0.1 + var(--fr-session-progress) * 0.22)) 100%);
    pointer-events: none;
}

.fr-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 46%, rgba(0, 0, 0, calc(0.3 + var(--fr-session-progress) * 0.18)) 100%);
    pointer-events: none;
}

.fr-scene-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fr-scene-star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 242, 214, 0.85);
    box-shadow: 0 0 12px rgba(255, 224, 169, 0.55);
    animation: fr-star-flicker 6.5s ease-in-out infinite;
}

.fr-scene-star.bonus {
    opacity: var(--fr-bonus-star-opacity);
    transform: scale(1.2);
}

.fr-scene-room {
    position: absolute;
    inset: 8% 7% 12%;
    border-radius: 28px 28px 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(23, 31, 48, 0.92) 0%, rgba(16, 22, 35, 0.86) 44%, rgba(9, 11, 18, 0.96) 100%);
    overflow: hidden;
}

.fr-scene-wall {
    position: absolute;
    inset: 0 0 25%;
    background:
        radial-gradient(circle at 70% 24%, rgba(255, 215, 168, calc(0.04 + var(--fr-lamp-warmth) * 0.08)), transparent 26%),
        linear-gradient(180deg, rgba(38, 48, 72, 0.8), rgba(17, 21, 33, 0.96));
}

.fr-scene-window {
    position: absolute;
    top: 12%;
    left: 50%;
    width: min(38vw, 240px);
    height: min(34vw, 220px);
    transform: translateX(-50%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at 50% 0%, rgba(179, 209, 229, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(27, 43, 61, calc(0.96 - var(--fr-session-progress) * 0.14)), rgba(8, 12, 22, calc(0.92 + var(--fr-session-progress) * 0.06)));
    overflow: hidden;
    box-shadow: 0 24px 38px rgba(0, 0, 0, 0.28), inset 0 0 32px rgba(0, 0, 0, 0.24);
}

.fr-scene-window::before,
.fr-scene-window::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
}

.fr-scene-window::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
}

.fr-scene-window::after {
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
}

.fr-scene-rain {
    position: absolute;
    inset: -10% -8%;
    opacity: calc(0.26 + var(--fr-rain-strength) * 0.48);
    pointer-events: none;
}

.fr-scene-rain span {
    position: absolute;
    width: 1px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(179, 212, 235, 0.72), rgba(179, 212, 235, 0));
    animation: fr-rain-slide linear infinite;
}

.fr-scene-rain span:nth-child(1) { left: 8%; height: 44px; top: -8%; animation-duration: 7.2s; animation-delay: -1.2s; }
.fr-scene-rain span:nth-child(2) { left: 18%; height: 56px; top: -18%; animation-duration: 6.4s; animation-delay: -2.8s; }
.fr-scene-rain span:nth-child(3) { left: 28%; height: 62px; top: -12%; animation-duration: 7.8s; animation-delay: -4.1s; }
.fr-scene-rain span:nth-child(4) { left: 39%; height: 58px; top: -22%; animation-duration: 6.9s; animation-delay: -0.6s; }
.fr-scene-rain span:nth-child(5) { left: 52%; height: 66px; top: -14%; animation-duration: 7.6s; animation-delay: -3.6s; }
.fr-scene-rain span:nth-child(6) { left: 64%; height: 48px; top: -16%; animation-duration: 6.1s; animation-delay: -1.9s; }
.fr-scene-rain span:nth-child(7) { left: 76%; height: 60px; top: -12%; animation-duration: 7.4s; animation-delay: -5.2s; }
.fr-scene-rain span:nth-child(8) { left: 88%; height: 50px; top: -18%; animation-duration: 6.7s; animation-delay: -2.1s; }

.fr-scene-lamp {
    position: absolute;
    right: 17%;
    top: 24%;
    width: 90px;
    height: 90px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 216, 164, calc(0.24 + var(--fr-lamp-warmth) * 0.34)) 0%, rgba(255, 216, 164, 0.05) 36%, transparent 74%);
    filter: blur(4px);
    animation: fr-lamp-breathe 7.6s ease-in-out infinite;
}

.fr-scene-lamp::before {
    content: "";
    position: absolute;
    inset: 26px;
    border-radius: 999px;
    background: rgba(255, 229, 190, 0.9);
    box-shadow: 0 0 26px rgba(255, 215, 156, 0.62);
}

.fr-scene-desk {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 8%;
    height: 22%;
    border-radius: 22px 22px 18px 18px;
    background:
        linear-gradient(180deg, rgba(94, 74, 56, 0.94), rgba(50, 36, 27, 0.98));
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.34);
}

.fr-scene-desk::before {
    content: "";
    position: absolute;
    inset: 12px 10% auto 10%;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.fr-scene-record {
    position: absolute;
    left: 16%;
    bottom: 16%;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle, rgba(235, 215, 190, 0.22) 0 9%, rgba(36, 42, 54, 0.98) 10% 66%, rgba(18, 22, 30, 1) 67% 100%);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.26);
}

.fr-scene-record::after {
    content: "";
    position: absolute;
    top: 11px;
    left: 50%;
    width: 2px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 244, 224, 0.8);
    transform: translateX(-50%);
}

.is-piano-active .fr-scene-record {
    animation: fr-record-spin 18s linear infinite;
}

.fr-scene-book,
.fr-scene-cup {
    position: absolute;
    border-radius: 12px;
    background: rgba(226, 213, 194, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fr-scene-book {
    right: 21%;
    bottom: 18%;
    width: 88px;
    height: 14px;
}

.fr-scene-cup {
    right: 14%;
    bottom: 18%;
    width: 26px;
    height: 30px;
    border-radius: 10px 10px 12px 12px;
}

.fr-scene-note {
    position: absolute;
    right: 15%;
    top: 28%;
    width: 86px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(234, 202, 144, 0.14);
    border: 1px solid rgba(255, 223, 177, 0.16);
    color: rgba(255, 240, 216, 0.82);
    font-size: 0.78rem;
    line-height: 1.45;
    box-shadow: 0 16px 26px rgba(0, 0, 0, 0.24);
    opacity: var(--fr-note-opacity);
    transform: translateY(calc(6px - var(--fr-note-opacity) * 6px));
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fr-scene-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fr-scene-ui {
    position: absolute;
    z-index: 2;
    pointer-events: auto;
    transition: opacity 0.45s ease;
}

.fr-scene-ui.ghost {
    opacity: var(--fr-ghost-opacity, 0.64);
}

.fr-ui-panel {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 10, 18, 0.42);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.22);
}

.fr-scene-timer {
    top: 7%;
    right: 6%;
    width: 178px;
    padding: 18px 18px 16px;
}

.fr-scene-timer-label,
.fr-panel-label {
    color: rgba(191, 203, 220, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fr-scene-timer-shell {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
    align-items: center;
}

.fr-progress-ring {
    position: relative;
    width: 78px;
    height: 78px;
}

.fr-progress-ring svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.fr-progress-ring circle {
    fill: none;
    stroke-width: 5;
}

.fr-progress-ring circle.track {
    stroke: rgba(255, 255, 255, 0.09);
}

.fr-progress-ring circle.progress {
    stroke: url(#frProgressGradient);
    stroke-linecap: round;
    stroke-dasharray: 197;
    stroke-dashoffset: calc(197 - 197 * var(--fr-ring-progress, 0.12));
    transition: stroke-dashoffset 0.45s ease;
}

.fr-scene-clock {
    color: #fbf3e4;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.05em;
}

.fr-scene-status {
    margin-top: 4px;
    color: rgba(191, 203, 220, 0.76);
    font-size: 0.92rem;
}

.fr-scene-mixer {
    left: 6%;
    right: 6%;
    bottom: 7%;
    padding: 16px 18px 18px;
}

.fr-mixer-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.fr-mixer-row {
    min-width: 0;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
}

.fr-mixer-row strong {
    display: block;
    color: #fbf3e4;
    font-size: 0.95rem;
    font-weight: 600;
}

.fr-mixer-row span {
    display: block;
    margin-top: 4px;
    color: rgba(191, 203, 220, 0.76);
    font-size: 0.82rem;
}

body.focus-room-page {
    position: relative;
    margin: 0;
    color: var(--fr-text);
    background:
        radial-gradient(circle at 15% 15%, rgba(216, 165, 111, 0.08), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(147, 180, 202, 0.1), transparent 24%),
        linear-gradient(180deg, var(--fr-page-bg) 0%, #07101b 100%);
    font-family: "Manrope", "Hind", sans-serif;
    line-height: 1.7;
}

body.focus-room-page * {
    box-sizing: border-box;
}

body.focus-room-page a {
    color: inherit;
}

.fr-page {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 80px;
}

.fr-topbar {
    position: sticky;
    top: 18px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 10, 18, 0.56);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.fr-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.fr-brand-mark {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f3d1a1, #b77a4d);
    box-shadow: 0 0 18px rgba(216, 165, 111, 0.48);
}

.fr-topbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fr-topbar-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: rgba(244, 236, 221, 0.82);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.fr-topbar-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.fr-section {
    position: relative;
    margin-bottom: 28px;
    padding: 34px;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 11, 19, 0.56);
    box-shadow: var(--fr-shadow);
    overflow: hidden;
}

.fr-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(216, 165, 111, 0.08), transparent 24%),
        radial-gradient(circle at 88% 8%, rgba(147, 180, 202, 0.08), transparent 20%);
    pointer-events: none;
}

.fr-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    gap: 28px;
    min-height: calc(100vh - 120px);
    align-items: center;
}

.fr-hero-copy,
.fr-panel-copy {
    position: relative;
    z-index: 1;
}

.fr-hero-copy p {
    max-width: 620px;
}

.fr-subtitle {
    margin-top: 14px;
    color: rgba(244, 236, 221, 0.88);
    font-size: clamp(1.12rem, 1.8vw, 1.34rem);
    line-height: 1.8;
}

.fr-note {
    margin-top: 18px;
    color: rgba(191, 203, 220, 0.72);
    font-size: 0.96rem;
}

.fr-threshold-stage {
    position: relative;
    min-height: 620px;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 28% 24%, rgba(216, 165, 111, 0.12), transparent 22%),
        radial-gradient(circle at 74% 26%, rgba(147, 180, 202, 0.14), transparent 22%),
        linear-gradient(180deg, rgba(11, 16, 27, 0.98), rgba(8, 12, 20, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 48px rgba(0, 0, 0, 0.3);
    --fr-hold-progress: 0;
}

.fr-threshold-stage::before {
    content: "";
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(circle at 50% 35%, rgba(126, 149, 179, 0.22), transparent 30%),
        radial-gradient(circle at 48% 50%, rgba(216, 165, 111, calc(0.1 + var(--fr-hold-progress) * 0.18)), transparent 28%);
    filter: blur(calc(26px - var(--fr-hold-progress) * 16px));
    transition: filter 0.28s ease, opacity 0.28s ease;
}

.fr-threshold-backdrop {
    position: absolute;
    inset: 0;
    filter: blur(calc(18px - var(--fr-hold-progress) * 12px));
    transition: filter 0.28s ease;
}

.fr-threshold-shell {
    position: absolute;
    inset: 8%;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(circle at 50% 18%, rgba(110, 137, 166, 0.18), transparent 20%),
        linear-gradient(180deg, rgba(15, 20, 31, 0.96), rgba(7, 11, 18, 0.96));
    overflow: hidden;
}

.fr-threshold-copy {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: min(100% - 40px, 340px);
    text-align: center;
    transform: translate(-50%, -50%);
}

.fr-threshold-copy h2 {
    margin: 18px 0 10px;
    color: #fbf3e4;
    font-family: "Instrument Serif", "Times New Roman", serif;
    font-size: clamp(2.3rem, 4vw, 3.6rem);
    font-weight: 400;
    letter-spacing: -0.04em;
}

.fr-threshold-copy p {
    color: rgba(191, 203, 220, 0.82);
}

.fr-threshold-orb {
    position: relative;
    width: min(48vw, 212px);
    height: min(48vw, 212px);
    margin: 0 auto;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(255, 239, 210, calc(0.2 + var(--fr-hold-progress) * 0.2)) 0 24%, rgba(232, 191, 134, calc(0.15 + var(--fr-hold-progress) * 0.22)) 25% 48%, rgba(150, 167, 194, 0.08) 49% 62%, transparent 63% 100%);
    box-shadow:
        0 0 calc(56px + var(--fr-hold-progress) * 70px) rgba(216, 165, 111, calc(0.18 + var(--fr-hold-progress) * 0.18)),
        inset 0 0 36px rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.fr-threshold-orb::before,
.fr-threshold-orb::after {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fr-threshold-orb::after {
    inset: -24px;
    opacity: 0.7;
}

.fr-threshold-stage.is-holding .fr-threshold-orb {
    transform: scale(1.02);
}

.fr-threshold-trigger {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    margin-top: 18px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fbf3e4;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.fr-threshold-trigger:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06);
}

.fr-threshold-progress {
    margin-top: 14px;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.fr-threshold-progress span {
    display: block;
    width: calc(var(--fr-hold-progress) * 100%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(240, 207, 163, 0.96), rgba(176, 126, 85, 0.96));
    transition: width 0.12s linear;
}

.fr-threshold-footnote {
    margin-top: 12px;
    color: rgba(191, 203, 220, 0.66);
    font-size: 0.9rem;
}

.fr-room-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
    gap: 24px;
    align-items: start;
}

.fr-room-shell {
    position: relative;
    min-height: 720px;
}

.fr-room-shell .fr-scene {
    min-height: 720px;
}

.fr-room-copy {
    display: grid;
    gap: 16px;
}

.fr-card-stack {
    display: grid;
    gap: 14px;
}

.fr-info-card,
.fr-arch-card,
.fr-code-viewer,
.fr-code-sidebar {
    position: relative;
    z-index: 1;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 20, 0.62);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.22);
}

.fr-info-card {
    padding: 20px;
}

.fr-info-card h3,
.fr-section h2 {
    margin: 12px 0 10px;
    color: #fbf3e4;
    font-family: "Instrument Serif", "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 3.3rem);
    font-weight: 400;
    letter-spacing: -0.04em;
}

.fr-info-card p,
.fr-arch-card p,
.fr-code-copy p,
.fr-section p {
    color: rgba(191, 203, 220, 0.82);
}

.fr-feature-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.fr-feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.fr-feature-item strong {
    display: block;
    color: #fbf3e4;
    font-size: 1rem;
}

.fr-feature-item span {
    display: block;
    color: rgba(191, 203, 220, 0.74);
    font-size: 0.92rem;
}

.fr-mini-dot {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f0ce9c, #8fadc5);
    box-shadow: 0 0 14px rgba(216, 165, 111, 0.34);
}

.fr-architecture-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.fr-arch-card {
    padding: 22px;
}

.fr-arch-card h3 {
    margin: 12px 0 8px;
    color: #fbf3e4;
    font-size: 1.3rem;
    font-weight: 700;
}

.fr-arch-card ul {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.fr-arch-card li {
    color: rgba(191, 203, 220, 0.8);
    font-size: 0.98rem;
}

.fr-tree {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.92rem;
    color: rgba(251, 243, 228, 0.82);
}

.fr-code-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 18px;
}

.fr-code-sidebar {
    padding: 18px;
}

.fr-code-sidebar h3 {
    margin: 8px 0 10px;
    color: #fbf3e4;
    font-size: 1.18rem;
    font-weight: 700;
}

.fr-code-button-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.fr-code-button {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(244, 236, 221, 0.86);
    text-align: left;
    transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.fr-code-button:hover {
    transform: translateY(-1px);
    border-color: rgba(216, 165, 111, 0.24);
}

.fr-code-button.is-active {
    background: rgba(216, 165, 111, 0.09);
    border-color: rgba(216, 165, 111, 0.3);
    box-shadow: 0 12px 22px rgba(216, 165, 111, 0.08);
}

.fr-code-button strong {
    color: #fbf3e4;
    font-size: 0.98rem;
}

.fr-code-button span {
    color: rgba(191, 203, 220, 0.72);
    font-size: 0.84rem;
}

.fr-code-viewer {
    display: flex;
    flex-direction: column;
    min-height: 640px;
    overflow: hidden;
}

.fr-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.fr-code-path {
    color: rgba(251, 243, 228, 0.86);
    font-size: 0.95rem;
    font-weight: 700;
}

.fr-code-status {
    color: rgba(191, 203, 220, 0.72);
    font-size: 0.84rem;
}

.fr-code-viewer pre {
    flex: 1;
    margin: 0;
    padding: 22px;
    overflow: auto;
    color: #d9e2ee;
    background:
        linear-gradient(180deg, rgba(5, 8, 15, 0.94), rgba(7, 10, 18, 0.98));
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.91rem;
    line-height: 1.7;
}

.fr-code-viewer code {
    display: block;
    white-space: pre;
}

.fr-section-footer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    color: rgba(191, 203, 220, 0.72);
    font-size: 0.92rem;
}

.fr-footer-note {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    color: rgba(191, 203, 220, 0.72);
    font-size: 0.92rem;
}

.fr-ghost-panel {
    opacity: var(--fr-ghost-opacity, 0.64);
}

.fr-ghost-panel.is-awake {
    opacity: 0.96;
}

.fr-mixer-panel {
    display: grid;
    gap: 12px;
}

.fr-mixer-panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.fr-mixer-panel-header strong {
    color: #fbf3e4;
    font-size: 1.05rem;
    font-weight: 700;
}

.fr-mixer-panel-header span {
    color: rgba(191, 203, 220, 0.72);
    font-size: 0.9rem;
}

.fr-mixer-control {
    display: grid;
    gap: 12px;
}

.fr-mixer-control-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.fr-icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(251, 243, 228, 0.92);
    font-size: 1rem;
    font-weight: 700;
}

.fr-layer-copy strong {
    display: block;
    color: #fbf3e4;
    font-size: 0.96rem;
    font-weight: 700;
}

.fr-layer-copy span {
    display: block;
    color: rgba(191, 203, 220, 0.72);
    font-size: 0.84rem;
}

.fr-switch {
    position: relative;
    display: inline-flex;
    width: 50px;
    height: 30px;
}

.fr-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.fr-switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    transition: background-color 0.22s ease;
}

.fr-switch-track::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fbf3e4;
    transition: transform 0.22s ease;
}

.fr-switch input:checked + .fr-switch-track {
    background: rgba(216, 165, 111, 0.34);
}

.fr-switch input:checked + .fr-switch-track::after {
    transform: translateX(20px);
}

.fr-slider-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.fr-slider {
    width: 100%;
    appearance: none;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.fr-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #efcf9e;
    box-shadow: 0 0 0 4px rgba(239, 207, 158, 0.14);
    cursor: pointer;
}

.fr-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 999px;
    background: #efcf9e;
    box-shadow: 0 0 0 4px rgba(239, 207, 158, 0.14);
    cursor: pointer;
}

.fr-slider-value {
    min-width: 42px;
    color: rgba(191, 203, 220, 0.76);
    font-size: 0.86rem;
    text-align: right;
}

.fr-timer-panel {
    display: grid;
    gap: 16px;
}

.fr-duration-row,
.fr-timer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fr-duration-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(244, 236, 221, 0.8);
    font-size: 0.9rem;
    font-weight: 700;
    transition: border-color 0.22s ease, background-color 0.22s ease;
}

.fr-duration-chip.is-active {
    background: rgba(216, 165, 111, 0.1);
    border-color: rgba(216, 165, 111, 0.28);
    color: #fbf3e4;
}

.fr-completion-note {
    position: absolute;
    right: 6%;
    top: 34%;
    max-width: 240px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 223, 177, 0.16);
    background: rgba(238, 203, 146, 0.08);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.22);
    color: #fbf3e4;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fr-completion-note.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fr-completion-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fr-completion-note p {
    margin: 0;
    color: rgba(251, 243, 228, 0.9);
}

.fr-section {
    scroll-margin-top: 110px;
}

.fr-body {
    max-width: 64ch;
    color: rgba(206, 216, 231, 0.84) !important;
    line-height: 1.8 !important;
}

.fr-section h2 {
    max-width: 16ch;
}

.fr-section p {
    max-width: 66ch;
}

.fr-hero-deck {
    margin: -2px 0 12px;
    color: rgba(248, 239, 224, 0.96);
    font-size: clamp(1.1rem, 1.9vw, 1.42rem);
    line-height: 1.55;
}

.fr-hero-body {
    max-width: 56ch;
}

.fr-hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 18px;
}

.fr-stat-chip {
    display: grid;
    gap: 3px;
    min-width: 116px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
    color: rgba(244, 236, 221, 0.92);
}

.fr-stat-chip strong {
    color: #fbf3e4;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.fr-stat-chip em {
    color: rgba(191, 203, 220, 0.76);
    font-size: 0.78rem;
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fr-actions-hero {
    align-items: center;
}

.fr-button-hero {
    min-width: 188px;
    box-shadow: 0 22px 36px rgba(206, 154, 101, 0.24);
}

.fr-button.tertiary {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.06);
    color: rgba(244, 236, 221, 0.82) !important;
}

.fr-button.tertiary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(216, 165, 111, 0.18);
}

.fr-threshold-trigger,
.fr-duration-chip,
.fr-code-button,
.fr-code-highlight {
    appearance: none;
    font: inherit;
}

.fr-note {
    max-width: 54ch;
    line-height: 1.7;
}

.fr-threshold-stage {
    --fr-hover-energy: 0;
    --fr-demo-progress: 0;
    --fr-session-progress: 0.08;
    --fr-rain-strength: 0.22;
    --fr-lamp-warmth: 0.26;
    --fr-note-opacity: 0;
    --fr-bonus-star-opacity: 0;
    isolation: isolate;
    transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.2, 1), border-color 0.5s ease, box-shadow 0.5s ease;
}

.fr-threshold-stage::before {
    background:
        radial-gradient(circle at 50% 35%, rgba(126, 149, 179, calc(0.16 + var(--fr-hover-energy) * 0.12)), transparent 30%),
        radial-gradient(circle at 48% 50%, rgba(216, 165, 111, calc(0.1 + var(--fr-hold-progress) * 0.18 + var(--fr-hover-energy) * 0.12)), transparent 28%);
    filter: blur(calc(26px - var(--fr-hold-progress) * 16px - var(--fr-hover-energy) * 7px));
}

.fr-threshold-stage.is-awake,
.fr-threshold-stage:hover,
.fr-threshold-stage:focus-within {
    border-color: rgba(216, 165, 111, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 56px rgba(0, 0, 0, 0.34);
}

.fr-threshold-stage.is-awake {
    transform: translateY(-2px);
}

.fr-threshold-backdrop {
    filter: blur(calc(18px - var(--fr-hold-progress) * 12px - var(--fr-hover-energy) * 5px));
}

.fr-threshold-shell {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 26px 48px rgba(0, 0, 0, calc(0.16 + var(--fr-hover-energy) * 0.16));
}

.fr-threshold-trigger.is-holding,
.fr-threshold-trigger:hover {
    border-color: rgba(216, 165, 111, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.fr-threshold-demo-note {
    position: absolute;
    right: 13%;
    top: 24%;
    max-width: 148px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 223, 177, 0.16);
    background: rgba(238, 203, 146, 0.08);
    color: rgba(251, 243, 228, 0.88);
    font-size: 0.78rem;
    line-height: 1.45;
    letter-spacing: 0.02em;
    opacity: var(--fr-note-opacity);
    transform: translateY(calc(10px - var(--fr-note-opacity) * 10px));
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.24);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fr-stage-caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.fr-stage-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 65%;
}

.fr-stage-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(6, 10, 18, 0.42);
    backdrop-filter: blur(12px);
    color: rgba(244, 236, 221, 0.8);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fr-stage-chip-live {
    border-color: rgba(216, 165, 111, 0.18);
    background: rgba(216, 165, 111, 0.1);
    color: rgba(248, 236, 216, 0.94);
}

.fr-stage-loop {
    min-width: 170px;
    display: grid;
    gap: 8px;
    justify-items: end;
}

.fr-stage-loop-label {
    color: rgba(191, 203, 220, 0.7);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fr-stage-loop-track {
    width: min(100%, 180px);
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.fr-stage-loop-track span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0.08);
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(147, 180, 202, 0.9), rgba(240, 207, 163, 0.96));
}

.fr-stage-loop-status {
    color: rgba(244, 236, 221, 0.82);
    font-size: 0.84rem;
}

.fr-threshold-footnote {
    max-width: 31ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.fr-story-rail {
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(8, 12, 20, 0.74), rgba(6, 10, 18, 0.52));
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.2);
    gap: 18px;
}

.fr-rail-intro h3 {
    margin: 12px 0 10px;
    color: #fbf3e4;
    font-family: "Instrument Serif", "Times New Roman", serif;
    font-size: clamp(1.8rem, 2.6vw, 2.7rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.fr-rail-intro p,
.fr-rail-note {
    margin: 0;
}

.fr-rail-metrics {
    margin: 0;
}

.fr-rail-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.fr-rail-section {
    display: grid;
    gap: 14px;
}

.fr-rail-header {
    display: grid;
    gap: 4px;
}

.fr-rail-header strong {
    color: #fbf3e4;
    font-size: 1.02rem;
}

.fr-rail-header span {
    color: rgba(191, 203, 220, 0.74);
    font-size: 0.92rem;
}

.fr-mixer-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.fr-mixer-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(244, 236, 221, 0.72);
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.fr-mixer-pill.is-on {
    border-color: rgba(216, 165, 111, 0.22);
    background: rgba(216, 165, 111, 0.09);
    color: rgba(251, 243, 228, 0.92);
    transform: translateY(-1px);
}

.fr-mixer-pill-name {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fr-mixer-pill-value {
    color: rgba(191, 203, 220, 0.76);
    font-size: 0.78rem;
}

.fr-layer-pill-grid {
    display: grid;
    gap: 12px;
}

.fr-layer-pill {
    padding: 14px 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.35s ease, background-color 0.35s ease, transform 0.35s ease;
}

.fr-layer-pill:hover {
    border-color: rgba(216, 165, 111, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.fr-layer-pill.is-active {
    border-color: rgba(216, 165, 111, 0.2);
    background: rgba(216, 165, 111, 0.06);
    transform: translateY(-1px);
}

.fr-layer-pill-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.fr-layer-pill .fr-icon-chip {
    width: 38px;
    height: 38px;
    font-size: 0.88rem;
}

.fr-rail-note {
    color: rgba(191, 203, 220, 0.72);
    font-size: 0.92rem;
}

.fr-arch-summary-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.fr-arch-summary-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.fr-arch-summary-card strong {
    display: block;
    margin-top: 10px;
    color: #fbf3e4;
    font-size: 1.02rem;
    font-weight: 700;
}

.fr-arch-summary-card p {
    margin: 10px 0 0;
    color: rgba(191, 203, 220, 0.76);
    font-size: 0.92rem;
    line-height: 1.7;
}

.fr-arch-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(340px, 1.06fr);
    gap: 20px;
    margin-top: 22px;
    align-items: start;
}

.fr-arch-spotlight {
    padding: 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(8, 12, 20, 0.72), rgba(8, 12, 20, 0.48));
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.22);
}

.fr-arch-spotlight h3 {
    margin: 14px 0 10px;
    color: #fbf3e4;
    font-family: "Instrument Serif", "Times New Roman", serif;
    font-size: clamp(1.9rem, 2.8vw, 2.8rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.04;
}

.fr-arch-spotlight p {
    margin: 0;
}

.fr-disclosure-stack {
    display: grid;
    gap: 12px;
}

.fr-disclosure {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    background: rgba(8, 12, 20, 0.56);
    overflow: hidden;
}

.fr-disclosure[open] {
    border-color: rgba(216, 165, 111, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.fr-disclosure summary,
.fr-code-drawer summary {
    list-style: none;
    position: relative;
    cursor: pointer;
}

.fr-disclosure summary::-webkit-details-marker,
.fr-code-drawer summary::-webkit-details-marker {
    display: none;
}

.fr-disclosure summary {
    display: grid;
    gap: 6px;
    padding: 18px 48px 18px 20px;
}

.fr-disclosure summary::after,
.fr-code-drawer summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    color: rgba(191, 203, 220, 0.72);
    font-size: 1rem;
    font-weight: 700;
    transform: translateY(-50%);
}

.fr-disclosure[open] summary::after,
.fr-code-drawer[open] summary::after {
    content: "−";
}

.fr-disclosure summary span:first-child {
    color: #fbf3e4;
    font-size: 1rem;
    font-weight: 700;
}

.fr-disclosure summary span:last-child {
    color: rgba(191, 203, 220, 0.72);
    font-size: 0.9rem;
    line-height: 1.6;
}

.fr-disclosure-body {
    padding: 0 20px 18px;
}

.fr-disclosure-body p {
    margin: 0;
    color: rgba(191, 203, 220, 0.82);
}

.fr-disclosure-points {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.fr-disclosure-points span {
    position: relative;
    display: block;
    padding-left: 16px;
    color: rgba(191, 203, 220, 0.74);
    font-size: 0.92rem;
    line-height: 1.7;
}

.fr-disclosure-points span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(240, 207, 163, 0.92), rgba(147, 180, 202, 0.9));
    box-shadow: 0 0 12px rgba(216, 165, 111, 0.22);
}

.fr-source-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, 0.84fr) minmax(0, 1.16fr);
    gap: 18px;
    align-items: start;
}

.fr-source-sidebar {
    display: grid;
    gap: 16px;
}

.fr-source-highlight-grid {
    display: grid;
    gap: 12px;
}

.fr-code-highlight {
    width: 100%;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}

.fr-code-highlight:hover {
    transform: translateY(-1px);
    border-color: rgba(216, 165, 111, 0.18);
}

.fr-code-highlight.is-active {
    border-color: rgba(216, 165, 111, 0.26);
    background: linear-gradient(180deg, rgba(216, 165, 111, 0.12), rgba(255, 255, 255, 0.02));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.fr-code-highlight strong {
    display: block;
    margin-top: 12px;
    color: #fbf3e4;
    font-size: 1.14rem;
    font-weight: 700;
}

.fr-code-highlight p {
    margin: 12px 0 14px;
    color: rgba(191, 203, 220, 0.78);
    font-size: 0.94rem;
    line-height: 1.7;
}

.fr-source-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(6, 10, 18, 0.44);
    color: rgba(244, 236, 221, 0.8);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fr-source-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fr-source-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(191, 203, 220, 0.76);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fr-code-drawer {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(8, 12, 20, 0.56);
    overflow: hidden;
}

.fr-code-drawer summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 48px 18px 20px;
    color: #fbf3e4;
    font-size: 1rem;
    font-weight: 700;
}

.fr-code-drawer summary span:last-child {
    color: rgba(191, 203, 220, 0.72);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fr-code-drawer[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fr-code-button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
    padding: 18px;
}

.fr-source-layout .fr-code-viewer {
    position: sticky;
    top: 106px;
    min-height: 660px;
}

body.focus-room-page :where(a, button, summary, input, [tabindex]):focus-visible {
    outline: none;
}

.fr-brand:focus-visible,
.fr-topbar-nav a:focus-visible,
.fr-topbar-nav button:focus-visible,
.fr-button:focus-visible,
.fr-threshold-trigger:focus-visible,
.fr-duration-chip:focus-visible,
.fr-code-button:focus-visible,
.fr-code-highlight:focus-visible,
.fr-disclosure summary:focus-visible,
.fr-code-drawer summary:focus-visible,
.fr-threshold-stage:focus-visible {
    border-color: rgba(216, 165, 111, 0.34);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 5px rgba(216, 165, 111, 0.16);
}

.fr-slider:focus-visible {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 0 6px rgba(216, 165, 111, 0.14);
}

.fr-switch input:focus-visible + .fr-switch-track {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 0 6px rgba(216, 165, 111, 0.14);
}

html.fr-no-scroll,
body.fr-no-scroll {
    overflow: hidden;
}

.fr-topbar-nav a,
.fr-topbar-nav button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: rgba(244, 236, 221, 0.82);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.fr-topbar-nav button {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.fr-topbar-nav a:hover,
.fr-topbar-nav button:hover {
    background: rgba(255, 255, 255, 0.05);
}

.fr-topbar-enter {
    color: #fbf3e4;
    background: rgba(216, 165, 111, 0.12) !important;
    border: 1px solid rgba(216, 165, 111, 0.18) !important;
}

.fr-experience .fr-section h2,
.fr-experience h2,
.fr-flow-panel h3 {
    max-width: 17ch;
}

.fr-flow-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 20px;
    margin-top: 26px;
    align-items: start;
}

.fr-flow-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.fr-flow-card,
.fr-flow-panel {
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 20, 0.56);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.2);
}

.fr-flow-card {
    padding: 20px;
}

.fr-flow-step {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(191, 203, 220, 0.76);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fr-flow-card strong {
    display: block;
    margin-top: 16px;
    color: #fbf3e4;
    font-size: 1.08rem;
    font-weight: 700;
}

.fr-flow-card p {
    margin: 12px 0 0;
    color: rgba(191, 203, 220, 0.76);
    font-size: 0.94rem;
    line-height: 1.75;
}

.fr-flow-panel {
    padding: 24px;
}

.fr-flow-panel h3 {
    margin: 12px 0 10px;
    color: #fbf3e4;
    font-family: "Instrument Serif", "Times New Roman", serif;
    font-size: clamp(1.9rem, 2.8vw, 2.9rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.fr-flow-panel p {
    margin: 0;
    color: rgba(191, 203, 220, 0.8);
}

.fr-app-shell {
    position: fixed;
    inset: 0;
    z-index: 120;
    padding: 16px;
    overflow: auto;
    opacity: 0;
    pointer-events: none;
    background: rgba(4, 7, 13, 0.78);
    backdrop-filter: blur(18px);
    transition: opacity 0.32s ease;
}

.fr-app-shell.is-open {
    opacity: 1;
    pointer-events: auto;
}

.fr-app-frame {
    min-height: calc(100vh - 32px);
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 16% 14%, rgba(216, 165, 111, 0.1), transparent 22%),
        radial-gradient(circle at 84% 18%, rgba(147, 180, 202, 0.1), transparent 22%),
        linear-gradient(180deg, rgba(5, 9, 16, 0.98), rgba(4, 7, 13, 0.98));
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
    transform: translateY(18px) scale(0.992);
    transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.fr-app-shell.is-open .fr-app-frame {
    transform: translateY(0) scale(1);
}

.fr-app-topbar {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(5, 8, 15, 0.64);
    backdrop-filter: blur(18px);
    border-radius: 34px 34px 0 0;
}

.fr-app-topbar-copy {
    display: grid;
    gap: 6px;
}

.fr-app-topbar-copy strong {
    color: #fbf3e4;
    font-family: "Instrument Serif", "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1;
}

.fr-app-topbar-note {
    color: rgba(191, 203, 220, 0.74);
    font-size: 0.92rem;
}

.fr-app-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.fr-app-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(244, 236, 221, 0.84);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.fr-app-exit {
    min-width: 110px;
}

.fr-app-phase-wrap {
    padding: 18px;
}

.fr-app-phase[hidden] {
    display: none;
}

.fr-app-threshold-layout {
    min-height: calc(100vh - 146px);
    display: grid;
    align-items: center;
}

.fr-app-threshold-stage {
    min-height: min(80vh, 840px);
}

.fr-stage-caption-app .fr-stage-loop {
    min-width: 0;
}

.fr-app-room-layout {
    min-height: calc(100vh - 146px);
    align-items: center;
}

.fr-app-room-layout .fr-room-shell,
.fr-app-room-layout .fr-room-shell .fr-scene {
    min-height: min(78vh, 840px);
}

.fr-app-room-rail {
    max-width: 420px;
}

.fr-app-room-rail .fr-rail-intro h3 {
    max-width: 10ch;
}

.fr-app-shell .fr-threshold-trigger,
.fr-app-shell .fr-duration-chip,
.fr-app-shell .fr-slider,
.fr-app-shell .fr-switch input,
.fr-app-shell .fr-button {
    touch-action: manipulation;
}

@keyframes fr-lamp-breathe {
    0%, 100% { transform: scale(0.98); opacity: 0.84; }
    50% { transform: scale(1.04); opacity: 1; }
}

@keyframes fr-record-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fr-rain-slide {
    from { transform: translate3d(-14px, -120px, 0) rotate(14deg); }
    to { transform: translate3d(18px, 320px, 0) rotate(14deg); }
}

@keyframes fr-star-flicker {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.95; }
}

@media (max-width: 1100px) {
    .focus-room-feature,
    .fr-hero,
    .fr-room-layout,
    .fr-code-shell {
        grid-template-columns: 1fr;
    }

    .fr-arch-summary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fr-arch-layout,
    .fr-source-layout {
        grid-template-columns: 1fr;
    }

    .fr-source-layout .fr-code-viewer {
        position: static;
        min-height: 600px;
    }

    .fr-room-shell,
    .fr-room-shell .fr-scene {
        min-height: 640px;
    }
}

@media (max-width: 860px) {
    .focus-room-feature,
    .fr-section {
        padding: 24px;
        border-radius: 28px;
    }

    .fr-page {
        width: min(100% - 24px, 1280px);
    }

    .fr-topbar {
        top: 10px;
        padding: 12px 14px;
        border-radius: 24px;
    }

    .fr-topbar-nav {
        display: none;
    }

    .fr-threshold-stage {
        min-height: 560px;
    }

    .fr-stage-caption {
        flex-direction: column;
        align-items: flex-start;
    }

    .fr-stage-chip-row {
        max-width: none;
    }

    .fr-room-shell,
    .fr-room-shell .fr-scene {
        min-height: 580px;
    }

    .fr-scene-mixer {
        left: 4%;
        right: 4%;
        bottom: 5%;
    }

    .fr-mixer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fr-architecture-grid {
        grid-template-columns: 1fr;
    }

    .fr-story-rail,
    .fr-arch-spotlight {
        padding: 20px;
    }

    .fr-code-button-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .focus-room-feature h3,
    .fr-title {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }

    .focus-room-feature p,
    .fr-body,
    .fr-subtitle {
        font-size: 1rem !important;
    }

    .fr-scene,
    .fr-room-shell .fr-scene {
        min-height: 520px;
    }

    .fr-scene-timer {
        top: auto;
        left: 4%;
        right: 4%;
        bottom: 33%;
        width: auto;
    }

    .fr-scene-timer-shell {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .fr-mixer-grid {
        grid-template-columns: 1fr;
    }

    .fr-threshold-shell,
    .fr-scene-room {
        inset: 5%;
    }

    .fr-hero-metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fr-stat-chip {
        min-width: 0;
    }

    .fr-threshold-demo-note {
        right: 10%;
        top: 22%;
        max-width: 120px;
    }

    .fr-stage-caption {
        left: 14px;
        right: 14px;
        bottom: 14px;
        gap: 12px;
    }

    .fr-stage-loop {
        width: 100%;
        justify-items: stretch;
    }

    .fr-stage-loop-track {
        width: 100%;
    }

    .fr-code-viewer {
        min-height: 520px;
    }

    .fr-code-viewer pre {
        padding: 18px;
        font-size: 0.84rem;
    }

    .fr-arch-summary-row,
    .fr-hero-metrics {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .focus-room-feature-link,
    .fr-button,
    .fr-link,
    .fr-threshold-trigger,
    .fr-code-button,
    .fr-code-highlight,
    .fr-scene-note,
    .fr-completion-note,
    .fr-progress-ring circle.progress,
    .fr-stage-loop-track span,
    .fr-threshold-demo-note,
    .fr-layer-pill,
    .fr-mixer-pill {
        transition: none !important;
    }

    .fr-scene-rain span,
    .fr-scene.is-piano-active .fr-scene-record,
    .fr-scene-lamp,
    .fr-scene-star {
        animation: none !important;
    }
}

@media (max-width: 1100px) {
    .fr-flow-layout,
    .fr-app-room-layout {
        grid-template-columns: 1fr;
    }

    .fr-app-room-layout .fr-room-shell,
    .fr-app-room-layout .fr-room-shell .fr-scene {
        min-height: 620px;
    }
}

@media (max-width: 860px) {
    .fr-topbar-nav button {
        display: none;
    }

    .fr-flow-steps {
        grid-template-columns: 1fr;
    }

    .fr-app-shell {
        padding: 10px;
    }

    .fr-app-frame {
        min-height: calc(100vh - 20px);
        border-radius: 28px;
    }

    .fr-app-topbar {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 28px 28px 0 0;
    }

    .fr-app-topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .fr-app-phase-wrap {
        padding: 14px;
    }

    .fr-app-threshold-layout,
    .fr-app-room-layout {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .fr-app-shell {
        padding: 0;
    }

    .fr-app-frame {
        min-height: 100vh;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .fr-app-topbar {
        border-radius: 0;
        padding: 16px;
    }

    .fr-app-topbar-copy strong {
        font-size: 1.55rem;
    }

    .fr-app-topbar-actions {
        align-items: stretch;
        gap: 10px;
    }

    .fr-app-chip {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .fr-app-exit {
        width: 100%;
    }

    .fr-app-phase-wrap {
        padding: 12px;
    }

    .fr-app-threshold-stage {
        min-height: 560px;
    }

    .fr-app-room-layout .fr-room-shell,
    .fr-app-room-layout .fr-room-shell .fr-scene {
        min-height: 540px;
    }
}
