@font-face {
    font-family: "CinzelLocal";
    src: url("../fonts/cinzel-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "CinzelLocal";
    src: url("../fonts/cinzel-900.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "MedievalSharpLocal";
    src: url("../fonts/medievalsharp-400.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "OrbitronLocal";
    src: url("../fonts/orbitron-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "OrbitronLocal";
    src: url("../fonts/orbitron-900.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SpaceGroteskLocal";
    src: url("../fonts/space-grotesk-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "BaskervvilleLocal";
    src: url("../fonts/baskervville-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "StoneAgeLocal";
    src: url("../fonts/Stone Age.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "ErasaurLocal";
    src: url("../fonts/Erasaur.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --shared-header-height: 92px;
    --shared-bottom-nav-height: 64px;
    --shared-header-bg: transparent;
    --shared-header-line: transparent;
    --shared-header-fg: #f4f4ef;
    --shared-header-muted: rgba(244, 244, 239, 0.66);
    --shared-header-accent: #8ec8f5;
    --shared-header-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --shared-header-display: "SpaceGroteskLocal", Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", "Helvetica Neue", Arial, sans-serif;
    --shared-era-accent: #5eb6ff;
    --reac-era-bg: linear-gradient(180deg, rgba(67, 108, 148, 0.84) 0%, rgba(44, 65, 89, 0.8) 36%, rgba(17, 23, 33, 0.9) 74%, rgba(9, 12, 18, 1) 100%);
    --reac-era-texture: repeating-linear-gradient(90deg, rgba(104, 197, 255, 0.042) 0 1px, transparent 1px 42px), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 42px);
    --reac-era-accent: #5eb6ff;
    --reac-era-image: none;
}

.shared-page {
    margin: 0;
    min-height: 100vh;
    font-family: var(--shared-header-body);
    overscroll-behavior-x: none;
}

.shared-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    height: var(--shared-header-height);
    padding: 18px 22px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: nowrap;
    color: var(--shared-header-fg);
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: box-shadow 180ms ease, border-color 180ms ease;
    font-family: var(--shared-header-body);
    pointer-events: auto;
}

.shared-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

.shared-header,
.shared-header * {
    pointer-events: auto;
}

.shared-header > * {
    position: relative;
    z-index: 1;
}

.shared-header.is-scrolled {
    box-shadow: none;
}

.shared-header__left {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 100%;
    flex: 1 1 auto;
}

.shared-header__brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.shared-header__home {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.shared-header__eyebrow {
    color: var(--shared-header-accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.shared-header__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.shared-header__nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shared-header__link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 4px;
    color: var(--shared-header-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 140ms ease, background 140ms ease;
}

.shared-header__link--reac {
    position: relative;
    gap: 8px;
}

.shared-header__link:hover,
.shared-header__link.is-active {
    color: var(--shared-header-fg);
    background: rgba(255, 255, 255, 0.08);
}

.shared-lock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(6, 10, 15, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 140ms ease, transform 140ms ease;
    pointer-events: none;
}

.shared-lock-badge i {
    font-size: 0.52rem;
    line-height: 1;
}

[data-shared-link="reac"].is-locked .shared-lock-badge {
    opacity: 1;
    transform: scale(1);
}

[data-shared-link="reac"].is-locked {
    cursor: default;
}

[data-shared-link="reac"].is-locked::after {
    content: attr(data-lock-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(6px);
    min-width: 168px;
    max-width: 220px;
    padding: 9px 11px;
    border-radius: 12px;
    color: #f4f4ef;
    background: rgba(6, 10, 15, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    font-family: var(--shared-header-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-transform: none;
    white-space: normal;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    z-index: 40;
}

[data-shared-link="reac"].is-locked:hover::after,
[data-shared-link="reac"].is-locked.is-showing-lock-tooltip::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.shared-header__link[data-shared-link="reac"].is-locked {
    color: rgba(244, 244, 239, 0.44);
}

.shared-header__link[data-shared-link="reac"].is-locked:hover {
    color: rgba(244, 244, 239, 0.44);
    background: rgba(255, 255, 255, 0.04);
}

.shared-header__right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 100%;
    flex: 0 1 auto;
}

.shared-header__status {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.shared-header__panel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.shared-header__panel-label {
    color: var(--shared-header-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.shared-header__panel-value {
    color: var(--shared-header-fg);
    font-size: 0.84rem;
    font-weight: 800;
}

.shared-header .profile-chip {
    display: none;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: min(100%, 22rem);
    min-height: 52px;
    padding: 9px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--shared-header-body);
    cursor: pointer;
    box-sizing: border-box;
}

.shared-header .profile-chip.is-visible {
    display: inline-flex;
}

.shared-header .profile-chip.is-unknown {
    cursor: pointer;
    border-color: color-mix(in srgb, var(--shared-era-accent, #5eb6ff) 24%, rgba(255, 255, 255, 0.08));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--shared-era-accent, #5eb6ff) 10%, rgba(255, 255, 255, 0.04)), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 20px color-mix(in srgb, var(--shared-era-accent, #5eb6ff) 12%, transparent);
}

.shared-header .profile-chip.is-context-active {
    border-color: color-mix(in srgb, var(--shared-context-accent, var(--shared-era-accent, #5eb6ff)) 38%, rgba(255, 255, 255, 0.12));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--shared-context-accent, var(--shared-era-accent, #5eb6ff)) 14%, rgba(255, 255, 255, 0.04)), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.04);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--shared-context-accent, var(--shared-era-accent, #5eb6ff)) 22%, rgba(255, 255, 255, 0.08)),
        0 0 22px color-mix(in srgb, var(--shared-context-accent, var(--shared-era-accent, #5eb6ff)) 18%, transparent);
}

.shared-header .profile-chip.is-context-active .profile-era {
    color: color-mix(in srgb, var(--shared-context-accent, var(--shared-era-accent, #5eb6ff)) 64%, white);
}

.shared-header .profile-chip.is-unknown:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--shared-era-accent, #5eb6ff) 58%, white);
    outline-offset: 2px;
}

.shared-header .profile-thumb {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    flex: 0 0 auto;
}

.shared-header .profile-chip.is-unknown .profile-thumb {
    background:
        radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--shared-era-accent, #5eb6ff) 30%, rgba(255,255,255,0.14)), transparent 58%),
        rgba(255, 255, 255, 0.08);
}

.shared-header .profile-meta {
    min-width: 0;
    display: grid;
    gap: 4px;
    font-family: var(--shared-header-body);
}

.shared-header .profile-name {
    font-size: 1rem;
    font-weight: 800;
    font-family: var(--shared-header-body);
    line-height: 1.05;
    color: var(--shared-header-fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.shared-header .profile-era {
    color: var(--shared-header-muted);
    font-size: 0.66rem;
    font-family: var(--shared-header-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shared-header .clock-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    max-width: min(100%, 24rem);
    min-height: 52px;
    border-radius: 4px;
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}

.shared-header .clock-chip > * {
    position: relative;
    z-index: 1;
}

.shared-header .clock {
    text-align: right;
    margin-left: 0;
    width: auto;
    max-width: none;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}

.shared-header .clock-stack {
    display: block;
    position: relative;
    min-height: 1em;
    font-size: clamp(1.55rem, 2.8vw, 2.1rem);
    line-height: 0.9;
    overflow: hidden;
    font-family: var(--shared-header-display);
}

.shared-header .clock-face {
    display: block;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.86;
    transition: color 140ms ease;
    color: var(--clock-accent, var(--shared-header-fg));
    font-family: var(--shared-header-display);
}

.shared-header .clock-year {
    display: inline-block;
    margin-top: 4px;
    color: rgba(244, 244, 239, 0.76);
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--shared-header-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.shared-header .clock-era {
    display: inline-block;
    margin-top: 4px;
    margin-left: 8px;
    color: var(--clock-accent, var(--shared-header-fg));
    font-size: 0.72rem;
    font-weight: 800;
    font-family: var(--shared-header-body);
    letter-spacing: 0.08em;
    white-space: nowrap;
    opacity: 0.92;
}

.shared-page--timeline .app,
.shared-page--timeline .shell {
    min-height: 100vh;
    height: 100vh;
}

.shared-page--timeline .shell {
    padding-top: var(--shared-header-height);
    padding-bottom: calc(var(--shared-bottom-nav-height) + 18px);
}

.shared-page--reac .reac-stage {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background: var(--reac-era-bg);
}

.shared-page--reac .reac-stage::before,
.shared-page--reac .reac-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shared-page--reac .reac-stage::before {
    background-image:
        linear-gradient(180deg, rgba(7, 11, 16, 0.24), rgba(7, 11, 16, 0.18)),
        var(--reac-era-image),
        var(--reac-era-bg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    mix-blend-mode: soft-light;
    opacity: 0.82;
    transform: scale(1.03);
    filter: saturate(0.88) contrast(1.04) brightness(0.72);
    z-index: 1;
}

.shared-page--reac .reac-stage::after {
    background:
        var(--reac-era-texture),
        linear-gradient(180deg, rgba(255,255,255,0.03), transparent 20%, transparent 72%, rgba(0,0,0,0.08));
    opacity: 0.74;
    transform: scale(1.04);
    transform-origin: center center;
    animation: sharedReacTextureFloat 24s ease-in-out infinite alternate;
    z-index: 2;
}

.shared-page--reac .reac-stage iframe {
    display: block;
    width: 100%;
    height: 100vh;
    border: 0;
    position: relative;
    z-index: 0;
}

.shared-page--reac #reactions {
    bottom: 0;
    height: calc(50% + var(--shared-bottom-nav-height) + 28px);
    z-index: 21;
}

.shared-page--reac #reactions td {
    vertical-align: bottom;
    padding-bottom: calc(var(--shared-bottom-nav-height) + 30px);
}

.shared-page--reac .container_emoji {
    margin-bottom: 0;
}

@keyframes sharedReacTextureFloat {
    0% {
        transform: scale(1.04) translate3d(-0.8%, -0.6%, 0);
        opacity: 0.68;
    }

    100% {
        transform: scale(1.08) translate3d(0.9%, 0.7%, 0);
        opacity: 0.8;
    }
}

.shared-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    width: min(244px, calc(100vw - 48px));
    padding: 8px;
    border-radius: 999px;
    background: rgba(8, 12, 18, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
    transform: translateX(-50%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
}

.shared-pride-strip {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    z-index: 29;
    pointer-events: none;
    background:
        linear-gradient(90deg, #e40303 0%, #e40303 16.66%, transparent 16.66%, transparent 100%),
        linear-gradient(90deg, transparent 0%, transparent 16.66%, #ff8c00 16.66%, #ff8c00 33.33%, transparent 33.33%, transparent 100%),
        linear-gradient(90deg, transparent 0%, transparent 33.33%, #ffed00 33.33%, #ffed00 50%, transparent 50%, transparent 100%),
        linear-gradient(90deg, transparent 0%, transparent 50%, #008026 50%, #008026 66.66%, transparent 66.66%, transparent 100%),
        linear-gradient(90deg, transparent 0%, transparent 66.66%, #004dff 66.66%, #004dff 83.33%, transparent 83.33%, transparent 100%),
        linear-gradient(90deg, transparent 0%, transparent 83.33%, #750787 83.33%, #750787 100%);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
}

.shared-bottom-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 44px;
    min-width: 0;
    width: 100%;
    padding: 0;
    border-radius: 999px;
    color: rgba(244, 244, 239, 0.74);
    text-decoration: none;
    font-family: var(--shared-header-body);
    line-height: 1;
    transition: background 140ms ease, color 140ms ease, transform 140ms ease;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    position: relative;
}

.shared-bottom-nav__link i {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.05rem;
}

.shared-bottom-nav__label {
    display: none;
}

.shared-bottom-nav__link:hover,
.shared-bottom-nav__link.is-active {
    color: #f4f4ef;
    background: rgba(255, 255, 255, 0.1);
}

.shared-bottom-nav__link.is-context-active {
    color: color-mix(in srgb, var(--shared-context-accent, var(--shared-era-accent, #5eb6ff)) 38%, white);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--shared-context-accent, var(--shared-era-accent, #5eb6ff)) 22%, rgba(255, 255, 255, 0.08)), rgba(255, 255, 255, 0.08)),
        rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--shared-context-accent, var(--shared-era-accent, #5eb6ff)) 44%, rgba(255, 255, 255, 0.1)),
        0 0 22px color-mix(in srgb, var(--shared-context-accent, var(--shared-era-accent, #5eb6ff)) 26%, transparent);
}

.shared-bottom-nav__link.is-context-active i {
    text-shadow: 0 0 12px color-mix(in srgb, var(--shared-context-accent, var(--shared-era-accent, #5eb6ff)) 42%, transparent);
}

.shared-bottom-nav__link:active {
    transform: translateY(1px);
}

.shared-bottom-nav__link[data-shared-link="reac"].is-locked {
    color: rgba(244, 244, 239, 0.42);
    background: rgba(255, 255, 255, 0.04);
}

.shared-bottom-nav__link[data-shared-link="reac"].is-locked:hover,
.shared-bottom-nav__link[data-shared-link="reac"].is-locked.is-active {
    color: rgba(244, 244, 239, 0.42);
    background: rgba(255, 255, 255, 0.04);
}

.shared-bottom-nav__link[data-shared-link="reac"].is-locked.is-context-active {
    color: color-mix(in srgb, var(--shared-context-accent, var(--shared-era-accent, #5eb6ff)) 30%, white);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--shared-context-accent, var(--shared-era-accent, #5eb6ff)) 18%, rgba(255, 255, 255, 0.05)), rgba(255, 255, 255, 0.05)),
        rgba(255, 255, 255, 0.05);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--shared-context-accent, var(--shared-era-accent, #5eb6ff)) 36%, rgba(255, 255, 255, 0.08)),
        0 0 18px color-mix(in srgb, var(--shared-context-accent, var(--shared-era-accent, #5eb6ff)) 20%, transparent);
}

.shared-bottom-nav__link[data-shared-link="reac"] .shared-lock-badge {
    position: absolute;
    top: 6px;
    right: 8px;
}

.shared-bottom-nav__link[data-shared-link="reac"].is-locked::after {
    left: auto;
    right: 0;
    bottom: calc(100% + 16px);
    transform: translateY(6px);
    transform-origin: bottom right;
    text-align: center;
}

.shared-bottom-nav__link[data-shared-link="reac"].is-locked:hover::after,
.shared-bottom-nav__link[data-shared-link="reac"].is-locked.is-showing-lock-tooltip::after {
    transform: translateY(0);
}

.shared-page-transition {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(520px 220px at 50% 50%, color-mix(in srgb, var(--shared-era-accent, var(--reac-era-accent)) 10%, transparent), transparent 72%),
        rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 260ms ease, visibility 260ms ease;
}

.shared-page-transition.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.shared-page-transition__loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.shared-page-transition__ring,
.shared-page-transition__core {
    position: absolute;
    inset: 0;
    border-radius: 999px;
}

.shared-page-transition__ring {
    border: 2px solid rgba(244, 244, 239, 0.16);
    border-top-color: color-mix(in srgb, var(--shared-era-accent, var(--reac-era-accent)) 78%, white 22%);
    animation: sharedPageSpin 900ms linear infinite;
}

.shared-page-transition__core {
    inset: 17px;
    background: color-mix(in srgb, var(--shared-era-accent, var(--reac-era-accent)) 80%, white 20%);
    box-shadow: 0 0 28px color-mix(in srgb, var(--shared-era-accent, var(--reac-era-accent)) 38%, transparent);
    opacity: 0.9;
    animation: sharedPagePulse 980ms ease-in-out infinite alternate;
}

@keyframes sharedPageSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes sharedPagePulse {
    from {
        transform: scale(0.86);
        opacity: 0.62;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.session-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 9, 14, 0.66);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 320;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.session-modal,
.session-modal * {
    box-sizing: border-box;
}

.session-modal.is-visible {
    display: flex;
}

.shared-overlay-close {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 222;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(10, 14, 22, 0.82);
    color: rgba(244, 244, 239, 0.88);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.26);
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.shared-overlay-close:hover,
.shared-overlay-close:focus-visible {
    background: rgba(14, 18, 28, 0.94);
    color: #ffffff;
}

.profile-pass-modal {
    position: fixed;
    inset: 0;
    z-index: 330;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    background: rgba(6, 9, 14, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.profile-pass-modal.is-visible {
    display: flex;
}

.profile-pass-sheet {
    --profile-pass-accent: var(--shared-era-accent, #5eb6ff);
    --profile-pass-title-face: var(--shared-header-display);
    position: relative;
    width: min(100%, 760px);
    margin: auto 0;
}

.profile-pass-card {
    display: grid;
    gap: 22px;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(13, 18, 26, 0.98), rgba(9, 13, 20, 0.98));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

body.shared-modal-open {
    overflow: hidden;
}

.profile-pass-card__media {
    min-height: 168px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(6, 10, 15, 0.06), rgba(6, 10, 15, 0.42)),
        rgba(255, 255, 255, 0.05);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.profile-pass-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 244px;
    gap: 28px;
    align-items: start;
    min-width: 0;
}

.profile-pass-card__intro {
    display: grid;
    gap: 16px;
    min-width: 0;
    align-content: center;
    height: 100%;
}

.profile-pass-card__eyebrow {
    color: color-mix(in srgb, var(--profile-pass-accent) 56%, white);
    font-family: var(--shared-header-body);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.profile-pass-card__title {
    margin: 0;
    font-family: var(--profile-pass-title-face, var(--shared-header-display));
    font-size: clamp(1.9rem, 4.1vw, 3.2rem);
    line-height: 0.92;
    font-weight: 900;
    text-wrap: balance;
    color:white;
}

.profile-pass-sheet[data-era-id="prehistory"] .profile-pass-card__title {
    font-size: clamp(1.56rem, 3.35vw, 2.52rem);
    line-height: 1.06;
    letter-spacing: 0.012em;
    font-weight: 700;
}

.profile-pass-card__text {
    margin: 0;
    color: rgba(244, 244, 239, 0.82);
    font-family: var(--shared-header-body);
    font-size: 1.02rem;
    line-height: 1.48;
}

.profile-pass-card__footer {
    display: grid;
    gap: 14px;
    justify-items: center;
    align-content: start;
    padding: 16px 14px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.profile-pass-card__qr-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--profile-pass-accent) 68%, rgba(255, 255, 255, 0.96));
    color: #091018;
    font-size: 0.7rem;
}

.profile-pass-card__qr-label-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.profile-pass-card__qr-label {
    color: rgba(244, 244, 239, 0.7);
    font-family: var(--shared-header-body);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.profile-pass-card__qr-frame {
    position: relative;
    width: 176px;
    aspect-ratio: 1;
    padding: 10px;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 242, 234, 0.94));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.42),
        0 14px 28px rgba(0, 0, 0, 0.24);
}

.profile-pass-card__qr-frame::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 6px;
    border: 1px dashed color-mix(in srgb, var(--profile-pass-accent) 34%, rgba(9, 16, 24, 0.16));
    pointer-events: none;
}

.profile-pass-card__qr-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    background: #ffffff;
}

.profile-pass-card__qr-caption {
    margin: 0;
    color: rgba(244, 244, 239, 0.6);
    font-family: var(--shared-header-body);
    font-size: 0.74rem;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-align: center;
}

.profile-pass-card__actions {
    display: grid;
    justify-items: center;
    width: 100%;
    min-width: 0;
}

.profile-pass-card__button {
    width: 100%;
    min-width: 0;
    padding: 12px 20px;
    border: 0;
    border-radius: 10px;
    background: color-mix(in srgb, var(--profile-pass-accent) 72%, #e3d1bc);
    color: #ffffff;
    font-family: var(--shared-header-body);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    color: #091018;
}

.session-dialog {
    --session-accent: #9aa9c8;
    --session-accent-soft: rgba(154, 169, 200, 0.22);
    --session-preview-image: none;
    --session-title-face: var(--shared-header-display);
    width: min(100%, 760px);
    margin: auto 0;
    padding: 18px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(13, 18, 26, 0.98), rgba(9, 13, 20, 0.98));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
    color: #f4f4ef;
    font-family: var(--shared-header-body);
    line-height: 1.2;
}

.session-dialog,
.session-dialog button,
.session-dialog input,
.session-dialog label,
.session-dialog p,
.session-dialog div,
.session-dialog h2,
.session-dialog h3,
.session-dialog span {
    font-family: var(--shared-header-body);
    font-weight: inherit;
}

.session-hero {
    padding: 0;
}

.session-hero-content {
    display: grid;
    gap: 10px;
    max-width: 100%;
}

.session-eyebrow {
    color: color-mix(in srgb, var(--session-accent) 78%, white);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.session-title {
    margin: 10px 0;
    font-size: clamp(1.5rem, 3vw, 2.45rem);
    font-weight: 900;
    line-height: 0.88;
    text-transform: uppercase;
    font-family: var(--shared-header-display);
    letter-spacing: 0;
}

.session-copy {
    margin: 0 0 20px;
    color: rgba(244, 244, 239, 0.88);
    line-height: 1.52;
    font-size: 1rem;
}

.session-preview-panel {
    position: relative;
    min-height: 182px;
    padding: 24px 24px 22px;
    border-radius: 4px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(6, 10, 15, 0.78) 0%, rgba(6, 10, 15, 0.58) 42%, rgba(6, 10, 15, 0.26) 100%),
        var(--session-preview-image),
        linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
    background-size: cover;
    background-position: center center;
    box-shadow: inset 0 -80px 120px rgba(0, 0, 0, 0.24);
}

.session-preview-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 14px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--session-accent) 72%, white), transparent 82%);
    opacity: 0.92;
    pointer-events: none;
}

.session-preview-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0 58%, color-mix(in srgb, var(--session-accent) 8%, transparent) 100%);
    pointer-events: none;
}

.session-preview-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    max-width: 100%;
    padding-left: 18px;
}

.session-preview-title {
    margin: 10px 0;
    font-size: clamp(1.5rem, 3vw, 2.45rem);
    font-weight: 900;
    line-height: 0.88;
    text-transform: uppercase;
    font-family: var(--session-title-face);
    letter-spacing: 0;
}

.session-preview-copy {
    margin: 0;
    color: rgba(244, 244, 239, 0.88);
    line-height: 1.52;
    font-size: 1rem;
}

.session-selected-wrap {
    display: grid;
    gap: 12px;
}

.session-selected-era {
    display: grid;
    gap: 2px;
    width: 100%;
    min-height: 56px;
    align-content: center;
    padding: 11px 14px;
    border-radius: 2px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--session-accent) 16%, rgba(255,255,255,0.02)) 0%, rgba(255,255,255,0.03) 100%);
    color: rgba(244, 244, 239, 0.92);
}

.session-selected-era-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(244, 244, 239, 0.56);
}

.session-selected-era-label::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--session-accent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--session-accent) 42%, transparent);
}

.session-selected-era-value {
    max-width: 26rem;
    color: rgba(244, 244, 239, 0.92);
    font-size: 0.82rem;
    line-height: 1.34;
    text-wrap: pretty;
}

.session-form {
    display: grid;
    gap: 20px;
    margin-top: 18px;
}

.session-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.session-field {
    display: grid;
    gap: 12px;
}

.session-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(244, 244, 239, 0.7);
}

.session-label-error {
    color: #ffb0a0;
    letter-spacing: 0.04em;
    text-transform: none;
    font-weight: 700;
}

.session-input {
    width: 100%;
    padding: 15px 16px;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.05);
    color: #f4f4ef;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 500;
    outline: none;
    box-shadow: inset 0 -2px 0 rgba(255,255,255,0.08);
    box-sizing: border-box;
}

.session-input::placeholder {
    color: rgba(244, 244, 239, 0.42);
}

.session-input:focus {
    box-shadow:
        inset 0 -2px 0 color-mix(in srgb, var(--session-accent) 64%, rgba(255,255,255,0.08)),
        0 8px 22px color-mix(in srgb, var(--session-accent) 8%, transparent);
}

.session-choice-wrap {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.session-random-wrap {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.session-random {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: #f4f4ef;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--session-accent) 88%, white 12%) 0%, color-mix(in srgb, var(--session-accent) 48%, #09111d 52%) 100%);
    box-shadow:
        0 14px 26px color-mix(in srgb, var(--session-accent) 18%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    font-family: var(--shared-header-body);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.session-random::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
    opacity: 0.6;
    pointer-events: none;
}

.session-random:hover {
    transform: translateY(-1px) scale(1.01);
    filter: saturate(1.08);
}

.session-random:active {
    transform: translateY(1px) scale(0.995);
}

.session-random[disabled] {
    opacity: 0.72;
    cursor: default;
}

.session-random__spark,
.session-random__text {
    position: relative;
    z-index: 1;
}

.session-random__spark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(6, 10, 15, 0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

.session-random__spark i {
    font-size: 0.9rem;
}

.session-step-two {
    display: none;
    gap: 16px;
}

.session-dialog.is-step-two .session-choice-wrap {
    display: none;
}

.session-dialog.is-step-two .session-step-two {
    display: grid;
}

.session-era-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 138px), 1fr));
    gap: 14px;
    padding: 0;
}

.session-era-card {
    position: relative;
    display: grid;
    gap: 0;
    align-content: start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(244, 244, 239, 0.94);
    cursor: pointer;
    overflow: hidden;
    opacity: 0.82;
    transform: none;
    transition: transform 160ms ease, opacity 160ms ease, filter 160ms ease;
}

.session-era-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--card-accent, #5eb6ff) 14%, transparent), transparent 55%);
    z-index: 1;
    opacity: 0;
    transition: opacity 160ms ease;
    pointer-events: none;
}

.session-era-card:hover {
    opacity: 0.94;
}

.session-era-card.is-selected {
    opacity: 1;
    transform: translateY(-3px);
    filter: saturate(1.08);
}

.session-era-card.is-roulette-active {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
    filter: saturate(1.12) brightness(1.04);
}

.session-era-thumb,
.session-era-meta {
    position: relative;
    z-index: 1;
}

.session-era-thumb {
    display: flex;
    align-items: flex-end;
    aspect-ratio: 1 / 1;
    border-radius: 2px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 -64px 90px rgba(0, 0, 0, 0.18);
    transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.session-era-thumb::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 44%;
    background: linear-gradient(180deg, transparent, rgba(5, 8, 14, 0.82));
    pointer-events: none;
    transition: opacity 160ms ease;
}

.session-era-meta {
    position: absolute;
    inset: auto 0 0 0;
    display: grid;
    gap: 4px;
    padding: 12px 12px 10px;
    text-align: center;
    transition: transform 160ms ease, opacity 160ms ease;
}

.session-era-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    padding: 6px 8px 5px;
    background: linear-gradient(90deg, rgba(7, 10, 16, 0.72), color-mix(in srgb, var(--card-accent, #5eb6ff) 16%, rgba(7,10,16,0.68)));
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.16;
    text-transform: uppercase;
    text-wrap: pretty;
    white-space: normal;
    word-break: normal;
    hyphens: auto;
    transition: color 160ms ease, background 160ms ease, padding 160ms ease, opacity 160ms ease;
}

.session-dialog .session-title,
.session-dialog .session-preview-title {
    font-family: var(--session-title-face, var(--shared-header-display));
}

.session-dialog .session-eyebrow,
.session-dialog .session-label,
.session-dialog .session-selected-era-label,
.session-dialog .session-era-title,
.session-dialog .session-back,
.session-dialog .session-submit {
    font-family: var(--shared-header-body);
}

.session-era-years {
    display: none;
    color: rgba(244, 244, 239, 0.54);
    font-size: 0.62rem;
    line-height: 1.28;
}

.session-era-badge {
    position: absolute;
    top: 10px;
    left: 8px;
    z-index: 2;
    width: 1.6rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    border-radius: 1px;
    background: rgba(8, 12, 18, 0.58);
    color: rgba(244, 244, 239, 0.86);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.session-era-card.is-selected::before {
    opacity: 1;
}

.session-era-card.is-roulette-active::before {
    opacity: 1;
}

.session-era-card.is-selected .session-era-thumb {
    transform: scale(1.015);
    filter: saturate(1.06) contrast(1.02);
    box-shadow: inset 0 -52px 80px rgba(0, 0, 0, 0.1), 0 16px 28px rgba(0, 0, 0, 0.18);
}

.session-era-card.is-roulette-active .session-era-thumb {
    transform: scale(1.028);
    filter: saturate(1.12) contrast(1.03);
    box-shadow: inset 0 -52px 80px rgba(0, 0, 0, 0.08), 0 18px 32px rgba(0, 0, 0, 0.22);
}

.session-era-card:hover .session-era-thumb::after,
.session-era-card:hover .session-era-meta,
.session-era-card:focus-visible .session-era-thumb::after,
.session-era-card:focus-visible .session-era-meta {
    opacity: 0;
}

.session-era-card.is-selected .session-era-meta {
    transform: translateX(4px);
    opacity: 1;
}

.session-era-card.is-roulette-active .session-era-meta {
    transform: translateX(2px);
    opacity: 1;
}

.session-era-card.is-selected .session-era-title {
    color: color-mix(in srgb, var(--card-accent, #5eb6ff) 64%, white);
    background: linear-gradient(90deg, rgba(7, 10, 16, 0.78), color-mix(in srgb, var(--card-accent, #5eb6ff) 24%, rgba(7,10,16,0.72)));
    padding: 6px 10px 6px 8px;
}

.session-era-card.is-roulette-active .session-era-title {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(7, 10, 16, 0.82), color-mix(in srgb, var(--card-accent, #5eb6ff) 28%, rgba(7,10,16,0.7)));
}

.session-era-card.is-selected .session-era-badge {
    background: color-mix(in srgb, var(--card-accent, #5eb6ff) 26%, rgba(8, 12, 18, 0.78));
    color: rgba(255, 255, 255, 0.96);
    transform: translateY(-2px);
}

.session-footer {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 8px;
}

.session-dialog.is-step-two .session-footer {
    display: flex;
}

.session-error {
    display: block;
    min-height: 1.2em;
    color: #ffb0a0;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.session-error:empty {
    visibility: hidden;
}

.session-actions {
    display: flex;
    justify-content: stretch;
    width: 100%;
    gap: 10px;
}

.session-back {
    padding: 12px 18px;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(244, 244, 239, 0.9);
    font: inherit;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.session-submit {
    width: 100%;
    padding: 12px 18px;
    border: 0;
    border-radius: 2px;
    background: color-mix(in srgb, var(--session-accent) 72%, #e3d1bc);
    color: #091018;
    font: inherit;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: none;
}

@media (max-width: 980px) {
    :root {
        --shared-header-height: 88px;
        --shared-bottom-nav-height: 60px;
    }

    .shared-header {
        padding: 14px 16px;
    }
}

@media (max-width: 720px) {
    :root {
        --shared-header-height: 86px;
        --shared-bottom-nav-height: 56px;
    }

    .shared-header {
        padding: 12px 12px;
        gap: 10px;
    }

    .shared-header__brand {
        gap: 10px;
    }

    .shared-header__right,
    .shared-header__status {
        justify-content: flex-end;
        flex-wrap: nowrap;
        min-width: 0;
    }

    .shared-header .profile-chip,
    .shared-header .clock,
    .shared-header .clock-chip {
        max-width: none;
    }

    .shared-header .profile-chip {
        max-width: calc(100vw - 10.75rem);
        min-height: 44px;
        padding: 7px 10px;
        gap: 8px;
    }

    .shared-header .clock-chip {
        min-height: 44px;
        padding: 7px 10px;
        max-width: calc(100vw - 10.75rem);
    }

    .shared-header .profile-thumb {
        width: 38px;
        height: 38px;
    }

    .shared-header .profile-name {
        font-size: 0.92rem;
    }

    .shared-header .profile-era {
        font-size: 0.62rem;
        letter-spacing: 0.14em;
    }

    .shared-header .clock-stack {
        font-size: 1.35rem;
    }

    .shared-header .clock-year {
        font-size: 0.68rem;
    }

    .shared-header__panel {
        display: none;
    }

    .shared-bottom-nav {
        left: 12px;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: auto;
        transform: none;
        gap: 5px;
        padding: 5px;
    }

    .shared-bottom-nav__link {
        min-width: 0;
        min-height: 44px;
        padding: 0;
    }

    .shared-bottom-nav__link i {
        font-size: 0.82rem;
    }

    .shared-bottom-nav__link[data-shared-link="reac"] .shared-lock-badge {
        top: 5px;
        right: unset;
        margin-left: 40px;
    }

    .shared-page--reac #reactions {
        bottom: 0;
        height: calc(50% + var(--shared-bottom-nav-height) + 20px);
    }

    .shared-page--reac #reactions td {
        padding-bottom: calc(var(--shared-bottom-nav-height) + 30px);
    }

    .session-dialog {
        padding: 12px;
        border-radius: 16px;
    }

    .profile-pass-modal {
        padding: 12px;
    }

    .shared-overlay-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }

    .profile-pass-card {
        gap: 14px;
        padding: 14px;
    }

    .profile-pass-card__media {
        min-height: 144px;
    }

    .profile-pass-card__body {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .profile-pass-card__button {
        width: 100%;
        min-width: 0;
    }

    .profile-pass-card__footer {
        width: 100%;
        max-width: none;
        padding: 14px;
    }

    .profile-pass-card__qr-frame {
        width: min(100%, 156px);
    }

    .profile-pass-card__qr-caption {
        max-width: none;
    }

    .profile-pass-card__title {
        max-width: none;
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .profile-pass-card__text {
        max-width: none;
    }

    .session-hero {
        padding: 0;
    }

    .session-title {
        max-width: none;
        font-size: clamp(1.45rem, 9vw, 2rem);
    }

    .session-copy,
    .session-preview-copy {
        font-size: 0.88rem;
    }

    .session-preview-panel {
        min-height: 0;
        padding: 14px 14px 12px;
    }

    .session-preview-title {
        font-size: clamp(1.45rem, 9vw, 2rem);
    }

    .session-selected-wrap {
        gap: 10px;
    }

    .session-selected-era {
        width: 100%;
        min-height: 58px;
        padding: 10px 12px;
    }

    .session-era-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding-bottom: 0;
    }

    .session-era-title {
        font-size: 0.68rem;
    }

    .session-footer,
    .session-actions {
        flex-direction: column;
        width: 100%;
    }

    .session-footer {
        align-items: stretch;
    }

    .session-back,
    .session-submit {
        width: 100%;
    }
}
