/* File: Main Styles */

/* Font face declaration */
@font-face {
    font-family: "MontHeavy";
    src: url("/fonts/MontHeavy.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Language-specific font settings */
body[lang="fr"],
body[lang="es"],
body[lang="de"],
body[lang="pt"],
body[lang="cn"],
body[lang="hi"],
body[lang="vi"] {
    font-family: "Noto Sans", sans-serif;
    font-weight: 900;
}

body[lang="ar"] {
    font-family: "Noto Sans Arabic", sans-serif;
    font-weight: 900;
}

body[lang="ja"] {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 900;
}

body[lang="ko"] {
    font-family: "Noto Sans KR", sans-serif;
    font-weight: 900;
}

body[lang="th"] {
    font-family: "Noto Sans Thai", sans-serif;
    font-weight: 900;
}

body[lang="cn"] {
    font-family: "Noto Sans SC", sans-serif;
    font-weight: 900;
}

/* Language-specific element font overrides */
body[lang="fr"] .lunar-day,
body[lang="fr"] .date,
body[lang="fr"] .moon-phase,
body[lang="fr"] .timezone,
body[lang="fr"] .lunar-day-float,
body[lang="fr"] .date-float,
body[lang="fr"] .timezone-float,
body[lang="es"] .lunar-day,
body[lang="es"] .date,
body[lang="es"] .moon-phase,
body[lang="es"] .timezone,
body[lang="es"] .lunar-day-float,
body[lang="es"] .date-float,
body[lang="es"] .timezone-float,
body[lang="de"] .lunar-day,
body[lang="de"] .date,
body[lang="de"] .moon-phase,
body[lang="de"] .timezone,
body[lang="de"] .lunar-day-float,
body[lang="de"] .date-float,
body[lang="de"] .timezone-float,
body[lang="pt"] .lunar-day,
body[lang="pt"] .date,
body[lang="pt"] .moon-phase,
body[lang="pt"] .timezone,
body[lang="pt"] .lunar-day-float,
body[lang="pt"] .date-float,
body[lang="pt"] .timezone-float,
body[lang="hi"] .lunar-day,
body[lang="hi"] .date,
body[lang="hi"] .moon-phase,
body[lang="hi"] .timezone,
body[lang="hi"] .lunar-day-float,
body[lang="hi"] .date-float,
body[lang="hi"] .timezone-float,
body[lang="vi"] .lunar-day,
body[lang="vi"] .date,
body[lang="vi"] .moon-phase,
body[lang="vi"] .timezone,
body[lang="vi"] .lunar-day-float,
body[lang="vi"] .date-float,
body[lang="vi"] .timezone-float,
body[lang="fr"] .content-type-btn,
body[lang="es"] .content-type-btn,
body[lang="de"] .content-type-btn,
body[lang="pt"] .content-type-btn,
body[lang="cn"] .content-type-btn,
body[lang="hi"] .content-type-btn,
body[lang="vi"] .content-type-btn {
    font-family: "Noto Sans", sans-serif;
    font-weight: 900;
}

body[lang="ar"] .lunar-day,
body[lang="ar"] .date,
body[lang="ar"] .moon-phase,
body[lang="ar"] .timezone,
body[lang="ar"] .lunar-day-float,
body[lang="ar"] .date-float,
body[lang="ar"] .timezone-float,
body[lang="ar"] .content-type-btn {
    font-family: "Noto Sans Arabic", sans-serif;
    font-weight: 900;
}

body[lang="ja"] .lunar-day,
body[lang="ja"] .date,
body[lang="ja"] .moon-phase,
body[lang="ja"] .timezone,
body[lang="ja"] .lunar-day-float,
body[lang="ja"] .date-float,
body[lang="ja"] .timezone-float,
body[lang="ja"] .content-type-btn {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 900;
}

body[lang="ko"] .lunar-day,
body[lang="ko"] .date,
body[lang="ko"] .moon-phase,
body[lang="ko"] .timezone,
body[lang="ko"] .lunar-day-float,
body[lang="ko"] .date-float,
body[lang="ko"] .timezone-float,
body[lang="ko"] .content-type-btn {
    font-family: "Noto Sans KR", sans-serif;
    font-weight: 900;
}

body[lang="th"] .lunar-day,
body[lang="th"] .date,
body[lang="th"] .moon-phase,
body[lang="th"] .timezone,
body[lang="th"] .lunar-day-float,
body[lang="th"] .date-float,
body[lang="th"] .timezone-float,
body[lang="th"] .content-type-btn {
    font-family: "Noto Sans Thai", sans-serif;
    font-weight: 900;
}

body[lang="cn"] .lunar-day,
body[lang="cn"] .date,
body[lang="cn"] .moon-phase,
body[lang="cn"] .timezone,
body[lang="cn"] .lunar-day-float,
body[lang="cn"] .date-float,
body[lang="cn"] .timezone-float,
body[lang="cn"] .content-type-btn {
    font-family: "Noto Sans SC", sans-serif;
    font-weight: 900;
}

/* Two-column layout for mobile/tablet landscape */
@media screen and (max-height: 600px) and (orientation: landscape),
    @media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        justify-content: center;
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: env(safe-area-inset-bottom, 0);
        padding-left: env(safe-area-inset-left, 0);
        padding-right: env(safe-area-inset-right, 0);
    }

    .header {
        flex: 0 0 auto;
        top: 20px;
        left: max(20px, env(safe-area-inset-left, 0));
        right: max(20px, env(safe-area-inset-right, 0));
        height: auto;
    }

    .content-wrapper {
        position: absolute;
        width: 100%;
        height: auto;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .left-content,
    .right-content {
        flex: 0 0 50%;
        max-width: 50%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0;
        padding: 0 max(20px, env(safe-area-inset-left, 0));
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: normal;
    }

    .left-content {
        text-align: left;
    }
    .right-content {
        text-align: right;
    }

    body[lang="ar"] .left-content {
        text-align: right;
    }
    body[lang="ar"] .right-content {
        text-align: left;
    }

    .left-content .message,
    .right-content .lunar-day,
    .right-content .date,
    .right-content .moon-phase,
    .right-content .timezone {
        margin: 0;
        padding: 0;
    }

    .right-content .date,
    .right-content .moon-phase,
    .right-content .timezone {
        margin-top: 20px;
    }

    .app-icons,
    .email-form {
        flex: 0 0 auto;
        margin-top: auto;
        bottom: 20px;
    }

    .pagination {
        display: flex;
        top: 50%;
        transform: translateY(-50%);
    }

    .pagination-right {
        display: none;
    }
}

/* Specific adjustments for iPhone XR-16 Pro landscape */
@media screen and (max-height: 500px) and (min-width: 800px) and (max-width: 950px) and (orientation: landscape) {
    .header {
        top: 10px;
    }
    .controls {
        display: flex;
    }
    .left-content,
    .right-content {
        padding: 0 max(20px, env(safe-area-inset-left, 0));
    }
    .email-form {
        bottom: 10px;
    }
}

/* Two-column layout for desktop with narrow window */
@media screen and (min-width: 1025px) and (max-aspect-ratio: 5/4) {
    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        justify-content: center;
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: env(safe-area-inset-bottom, 0);
        padding-left: env(safe-area-inset-left, 0);
        padding-right: env(safe-area-inset-right, 0);
    }

    .header {
        flex: 0 0 auto;
        top: 20px;
        left: max(20px, env(safe-area-inset-left, 0));
        right: max(20px, env(safe-area-inset-right, 0));
        height: auto;
    }

    .content-wrapper {
        position: absolute;
        width: 100%;
        height: auto;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .left-content,
    .right-content {
        flex: 0 0 50%;
        max-width: 50%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0;
        padding: 0 max(20px, env(safe-area-inset-left, 0));
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .left-content {
        text-align: left;
    }
    .right-content {
        text-align: right;
    }

    body[lang="ar"] .left-content {
        text-align: right;
    }
    body[lang="ar"] .right-content {
        text-align: left;
    }

    .left-content .message,
    .right-content .lunar-day,
    .right-content .date,
    .right-content .moon-phase,
    .right-content .timezone {
        margin: 0;
        padding: 0;
    }

    .right-content .date,
    .right-content .moon-phase,
    .right-content .timezone {
        margin-top: 20px;
    }
}

/* Adjustments for ultra-wide screens (2881px+) */
@media screen and (min-width: 2881px) {
    .message {
        font-size: 7rem;
    }
    .lunar-day {
        font-size: 4rem;
    }
    .date,
    .moon-phase,
    .timezone {
        font-size: 2rem;
    }
    .logo-text span,
    .language-selected,
    .legend-button,
    .language-list span,
    .language-list-horizontal span,
    .legend-text {
        font-size: 2rem;
    }
    .email-form input {
        font-size: 1rem;
    }
    .email-form input::placeholder {
        font-size: 1rem;
    }
    .email-form button {
        font-size: 2rem;
    }
    .message-float {
        font-size: 7rem;
    }
    .lunar-day-float {
        font-size: 4rem;
    }
    .date-float,
    .moon-phase-float,
    .timezone-float {
        font-size: 2rem;
    }
    .logo-icon img {
        width: 45px;
        height: 45px;
    }
    .legend-text {
        width: 1200px;
    }
}

/* Color scheme variables */
:root {
    color-scheme: light dark;
    --text-color: #282828;
    --background-color: #ffffff;
    --button-color: #282828;
    --button-text-color: #ffffff;
    --dropdown-background: transparent;
    --dropdown-text: #282828;
    --dropdown-hover: #f0f0f0;
    --status-bar: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #ffffff;
        --background-color: #282828;
        --button-color: #ffffff;
        --button-text-color: #282828;
        --dropdown-background: transparent;
        --dropdown-text: #ffffff;
        --dropdown-hover: #444444;
        --status-bar: #282828;
    }
}

/* Base body styles */
body {
    font-family: "MontHeavy", sans-serif;
    font-weight: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--background-color);
    color: var(--text-color);
    transition:
        background 0.5s ease,
        color 0.5s ease;
    overflow: hidden;
    opacity: 0;
    line-height: 1.2;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Header styling */
.header {
    position: fixed;
    top: 20px;
    left: max(20px, env(safe-area-inset-left, 0));
    right: max(20px, env(safe-area-inset-right, 0));
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition:
        color 0.5s ease,
        top 0.3s ease;
    background: transparent;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-2px);
}

.logo-icon img {
    width: 25px;
    height: 25px;
    transition: filter 0.3s ease;
}

.logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text span {
    font-family: "MontHeavy", sans-serif;
    font-weight: normal;
    font-size: 1rem;
    line-height: 1;
    height: 25px;
    display: flex;
    align-items: center;
}

.logo-text span a {
    color: inherit;
    text-decoration: none;
}

.controls {
    display: none;
    align-items: center;
    gap: 20px;
    position: relative;
    transition: opacity 0.3s ease;
}

/* Language dropdown styling */
.language-dropdown {
    position: relative;
    cursor: pointer;
}

.language-selected {
    opacity: 1;
    transition: opacity 0.3s ease;
    font-size: 1rem;
    line-height: 1.2;
}

.language-selected:hover {
    opacity: 1;
}

.language-list {
    position: absolute;
    top: 100%;
    background: var(--background-color);
    width: 70px;
    right: -10px;
    display: none;
    flex-direction: column;
    text-align: right;
    transition:
        background 0.5s ease,
        color 0.5s ease,
        opacity 0.3s ease;
    border: none;
    padding: 0;
    opacity: 0;
}

.language-list span {
    padding: 5px 10px;
    cursor: pointer;
    opacity: 0.5;
    transition:
        opacity 0.3s,
        background 0.3s ease,
        color 0.3s ease;
    font-size: 1rem;
    background-color: var(--background-color);
    color: var(--dropdown-text);
    font-weight: 900;
    line-height: 1.2;
}

.language-list span:hover {
    opacity: 1;
    background: var(--dropdown-hover);
}

.language-list-horizontal {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--background-color);
    display: none;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: baseline;
    transition:
        background 0.5s ease,
        color 0.5s ease,
        opacity 0.3s ease;
    border: none;
    padding: 15px 0 10px;
    z-index: 999;
    opacity: 0;
}

.language-list-horizontal span {
    padding-left: 15px;
    cursor: pointer;
    opacity: 0.5;
    transition:
        opacity 0.3s,
        background 0.3s ease,
        color 0.3s ease;
    font-size: 1rem;
    background-color: var(--background-color);
    color: var(--dropdown-text);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.language-list-horizontal span:hover {
    opacity: 1;
    background: var(--dropdown-hover);
}

@media screen and (max-height: 600px) and (orientation: landscape),
    @media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .language-list {
        display: none !important;
    }
}

/* Legend container styling */
.legend-container {
    position: relative;
    cursor: pointer;
}

.legend-button {
    opacity: 0.5;
    transition: opacity 0.3s ease;
    font-size: 1rem;
    line-height: 1.2;
}

.legend-button:hover {
    opacity: 1;
}

.legend-text {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: var(--background-color);
    text-align: right;
    font-size: 1rem;
    padding: 15px 0 10px;
    opacity: 0.5;
    transition:
        background 0.5s ease,
        color 0.5s ease;
    line-height: 1.2;
}

@media screen and (min-width: 768px) and (max-width: 2880px) {
    .legend-text {
        width: 500px;
    }
}

/* Main content text styling */
.message {
    font-size: 3rem;
    line-height: 1.2;
    transition: opacity 0.3s ease;
    opacity: 0;
    display: block;
    word-wrap: break-word;
    overflow-wrap: normal;
}

.lunar-day {
    font-size: 2rem;
    margin-top: 50px;
    transition: opacity 0.3s ease;
    line-height: 1.2;
    opacity: 0;
    display: block;
    word-wrap: break-word;
    overflow-wrap: normal;
}

.date,
.moon-phase {
    font-size: 1rem;
    margin-top: 20px;
    transition: opacity 0.3s ease;
    line-height: 1.2;
    opacity: 0;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.timezone {
    font-size: 1rem;
    margin-top: 20px;
    transition: opacity 0.3s ease;
    line-height: 1.2;
    opacity: 0;
    display: block;
    cursor: pointer;
    pointer-events: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.timezone:hover {
    opacity: 1;
}

/* Pagination styling */
.pagination {
    position: fixed;
    right: max(20px, env(safe-area-inset-right, 0));
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5px;
    font-size: 1rem;
    line-height: 1.2;
    font-family: "Arial", sans-serif;
    font-weight: normal;
    transition: opacity 0.3s ease;
    opacity: 1;
    z-index: 1000;
}

.pagination-dot {
    display: block;
    margin: 0;
    padding: 0;
    transition: opacity 0.3s ease;
    font-size: 1rem;
    font-family: "Arial", sans-serif;
    font-weight: normal;
}

.pagination-right {
    font-size: 1rem;
    margin-top: 20px;
    line-height: 1.2;
    transition: opacity 0.3s ease;
    opacity: 1;
    display: none;
}

/* Mobile portrait adjustments */
@media (max-width: 767px) and (orientation: portrait) {
    body {
        justify-content: flex-start;
        padding-top: 20vh;
    }

    .message {
        font-size: 2.2rem;
    }
    .lunar-day {
        font-size: 1.6rem;
    }

    .content-type-btn {
        font-size: 1rem;
        /* opacity задаётся через JS */
    }
}

/* Tablet portrait adjustments */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .content-type-btn {
        font-size: 1rem;
    }
}

/* Desktop adjustments */
@media (min-width: 1025px) {
    .pagination {
        display: flex;
        top: 50%;
        transform: translateY(-50%);
    }
    .pagination-right {
        display: none;
    }
}

@media screen and (max-height: 600px) and (orientation: landscape),
    @media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .pagination {
        right: 20px;
        margin-right: -30px;
    }
}

.pagination-right .pagination-dot {
    display: inline-block;
    margin: 0 1px;
    padding: 0;
    transition: opacity 0.3s ease;
    font-size: 1rem;
    font-family: "Arial", sans-serif;
    font-weight: normal;
}

/* App icons + content-type buttons */
.app-icons {
    position: fixed;
    bottom: 20px;
    left: max(20px, env(safe-area-inset-left, 0));
    right: max(20px, env(safe-area-inset-right, 0));
    display: none;
    justify-content: center;
    gap: 60px;
    background: transparent;
    z-index: 1000;
    transition:
        bottom 0.3s ease,
        opacity 0.3s ease;
}

.content-type-btn {
    display: block;
    text-align: center;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 900;
    line-height: 1.25;
    padding: 0;
    background: transparent;
    border: none;
    white-space: nowrap;
    min-width: 260px;
}

.content-type-btn:hover {
    opacity: 0.8;
}

@media (min-width: 1025px) {
    .app-icons {
        gap: 80px;
    }
}

/* Email form styling */
.email-form {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 340px;
    max-width: 90%;
    margin: 0;
    padding: 0;
    z-index: 1000;
    transition:
        bottom 0.3s ease,
        opacity 0.3s ease;
}

.email-form form {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.email-form input {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: "MontHeavy", sans-serif;
    background: #fff;
    color: rgba(0, 0, 0, 0.5);
    margin: 0 0 10px 0;
    line-height: 1.2;
    box-sizing: border-box;
}

.email-form input::placeholder {
    color: var(--background-color);
    opacity: 0.5;
}

.email-form button {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    font-size: 1rem;
    background: var(--button-color);
    color: var(--background-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "MontHeavy", sans-serif;
    line-height: 1.2;
    box-sizing: border-box;
}

.email-form button:hover {
    background: #333;
}

/* Language-specific email form overrides */
body[lang="fr"] .email-form input,
body[lang="es"] .email-form input,
body[lang="de"] .email-form input,
body[lang="pt"] .email-form input,
body[lang="cn"] .email-form input,
body[lang="hi"] .email-form input,
body[lang="vi"] .email-form input,
body[lang="ar"] .email-form input,
body[lang="ja"] .email-form input,
body[lang="ko"] .email-form input,
body[lang="th"] .email-form input,
body[lang="fr"] .email-form input::placeholder,
body[lang="es"] .email-form input::placeholder,
body[lang="de"] .email-form input::placeholder,
body[lang="pt"] .email-form input::placeholder,
body[lang="cn"] .email-form input::placeholder,
body[lang="hi"] .email-form input::placeholder,
body[lang="vi"] .email-form input::placeholder,
body[lang="ar"] .email-form input::placeholder,
body[lang="ja"] .email-form input::placeholder,
body[lang="ko"] .email-form input::placeholder,
body[lang="th"] .email-form input::placeholder,
body[lang="fr"] .email-form button,
body[lang="es"] .email-form button,
body[lang="de"] .email-form button,
body[lang="pt"] .email-form button,
body[lang="cn"] .email-form button,
body[lang="hi"] .email-form button,
body[lang="vi"] .email-form button,
body[lang="ar"] .email-form button,
body[lang="ja"] .email-form button,
body[lang="ko"] .email-form button,
body[lang="th"] .email-form button {
    font-weight: 900;
}

/* Scheme-specific email form overrides */
body[scheme="contemplative"] .email-form input,
body[scheme="contemplative"] .email-form button {
    background: #282828;
}

body[scheme="active"] .email-form input,
body[scheme="active"] .email-form button {
    background: #ffffff;
}

body[scheme="problematic"] .email-form input,
body[scheme="problematic"] .email-form button {
    background: #ffffff;
}

body[scheme="contemplative"] .email-form button:hover,
body[scheme="active"] .email-form button:hover,
body[scheme="problematic"] .email-form button:hover {
    background: #333;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    body {
        justify-content: flex-start;
        padding-top: 20vh;
    }
    .app-icons {
        gap: 18px;
        flex-direction: column;
        align-items: center;
    }
}

/* Floating text styling */
.floating-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    text-align: center;
    pointer-events: none;
    transition:
        top 0.3s ease,
        opacity 0.3s ease;
}

.message-float {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--text-color);
    transition:
        opacity 0.5s ease,
        color 0.5s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.lunar-day-float {
    font-size: 2rem;
    margin-top: 50px;
    line-height: 1.2;
    color: var(--text-color);
    transition:
        opacity 0.5s ease,
        color 0.5s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.date-float,
.moon-phase-float {
    font-size: 1rem;
    margin-top: 20px;
    line-height: 1.2;
    color: var(--text-color);
    transition:
        opacity 0.5s ease,
        color 0.5s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.timezone-float {
    font-size: 1rem;
    margin-top: 20px;
    line-height: 1.2;
    color: var(--text-color);
    transition:
        opacity 0.5s ease,
        color 0.5s ease;
    opacity: 0.5;
    cursor: pointer;
    pointer-events: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.timezone-float:hover {
    opacity: 1;
}

.content-wrapper {
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    padding: 0;
}

/* Font size reduction for small portrait screens */
@media screen and (max-width: 390px) and (orientation: portrait) {
    .message {
        font-size: 2.2rem;
    }
    .lunar-day {
        font-size: 1.6rem;
    }
    .content-type-btn {
        font-size: 1rem;
    }
}

/* Font size reduction for small landscape screens */
@media screen and (max-height: 360px) and (orientation: landscape) {
    .message {
        font-size: 2.2rem;
    }
    .lunar-day {
        font-size: 1.6rem;
    }
    .content-type-btn {
        font-size: 1rem;
    }
}

/* No-JS fallback styling */
.no-js-message {
    font-size: 2rem;
    font-family: "MontHeavy", sans-serif;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 20px;
}

.no-js-details {
    font-size: 1rem;
    font-family: "MontHeavy", sans-serif;
    line-height: 1.2;
    color: var(--text-color);
}
