/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: optional;
  src: url(../fonts/pxiByp8kv8JHgFVrLDz8Z11lFc-K.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: optional;
  src: url(../fonts/pxiByp8kv8JHgFVrLDz8Z1JlFc-K.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: optional;
  src: url(../fonts/pxiByp8kv8JHgFVrLDz8Z1xlFQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/pxiEyp8kv8JHgFVrJJbecmNE.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/pxiEyp8kv8JHgFVrJJnecmNE.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(../fonts/pxiByp8kv8JHgFVrLGT9Z11lFc-K.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(../fonts/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(../fonts/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(../fonts/pxiByp8kv8JHgFVrLEj6Z11lFc-K.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(../fonts/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(../fonts/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}



:root {
    --primary: #CF2448;
    --primary-dark: #8F1630;
    --secondary: #F0B34F;
    --accent: #3F5862;
    --bg-color: #1E1D1E;
    --card-bg: #302A2B;
    --text-color: #F5F1E8;
    --cream: #E8DCC8;
    --cream-light: #F5F1E8;
    --frame: #F0E8D8;
    --muted-bg: #4E4442;
    --header-bg: rgba(24, 22, 23, 0.88);
    --paw-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%23000000' opacity='.34' transform='rotate(-45 90 90)'%3E%3Cg transform='translate(42 34)'%3E%3Cellipse cx='28' cy='42' rx='16' ry='13'/%3E%3Ccircle cx='13' cy='22' r='6'/%3E%3Ccircle cx='24' cy='13' r='6'/%3E%3Ccircle cx='36' cy='13' r='6'/%3E%3Ccircle cx='47' cy='22' r='6'/%3E%3C/g%3E%3Cg transform='translate(94 92)'%3E%3Cellipse cx='28' cy='42' rx='16' ry='13'/%3E%3Ccircle cx='13' cy='22' r='6'/%3E%3Ccircle cx='24' cy='13' r='6'/%3E%3Ccircle cx='36' cy='13' r='6'/%3E%3Ccircle cx='47' cy='22' r='6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --paw-trail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='520' viewBox='0 0 720 520'%3E%3Cdefs%3E%3Cg id='paw' fill='%23000000'%3E%3Cellipse cx='0' cy='30' rx='24' ry='20'/%3E%3Cellipse cx='-29' cy='-1' rx='10' ry='13'/%3E%3Cellipse cx='-10' cy='-18' rx='10' ry='14'/%3E%3Cellipse cx='12' cy='-18' rx='10' ry='14'/%3E%3Cellipse cx='31' cy='-1' rx='10' ry='13'/%3E%3Cpath d='M-42 -38l12 23-22-5zM-16 -61l9 25-21-10zM18 -61l-9 25 21-10zM44 -38L32 -15l22-5z'/%3E%3C/g%3E%3C/defs%3E%3Cg opacity='.38' transform='rotate(-45 360 260)'%3E%3Cuse href='%23paw' x='92' y='414' transform='rotate(-8 92 414)'/%3E%3Cuse href='%23paw' x='170' y='346' transform='rotate(9 170 346)'/%3E%3Cuse href='%23paw' x='254' y='292' transform='rotate(-6 254 292)'/%3E%3Cuse href='%23paw' x='344' y='232' transform='rotate(8 344 232)'/%3E%3Cuse href='%23paw' x='430' y='176' transform='rotate(-7 430 176)'/%3E%3Cuse href='%23paw' x='526' y='116' transform='rotate(10 526 116)'/%3E%3Cuse href='%23paw' x='618' y='58' transform='rotate(-6 618 58)'/%3E%3C/g%3E%3C/svg%3E");
    --button-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 46%), linear-gradient(135deg, var(--primary), var(--primary-dark));
    --button-bg-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.20), transparent 46%), linear-gradient(135deg, #F03D62, var(--primary-dark));
    --button-border: 2px solid rgba(255, 247, 236, 0.54);
    --button-shadow: 0 12px 24px rgba(143, 22, 48, 0.36), 5px 5px 0 rgba(0, 0, 0, 0.28);
    --button-shadow-hover: 0 18px 34px rgba(207, 36, 72, 0.50), 5px 5px 0 rgba(0, 0, 0, 0.28);
}

/* The Serena Villa Files visual system */
:root {
    --primary: #ff6847;
    --primary-dark: #c63f2f;
    --secondary: #ffc857;
    --accent: #66d0c3;
    --bg-color: #071a20;
    --card-bg: #102b31;
    --text-color: #f5f0df;
    --cream: #e9dfc4;
    --cream-light: #fff4d5;
    --frame: #163a3e;
    --muted-bg: #18383c;
    --header-bg: rgba(5, 22, 28, 0.82);
    --button-bg: linear-gradient(135deg, #ff7a4f, #ec4f39);
    --button-bg-hover: linear-gradient(135deg, #ff9166, #ff5b42);
    --button-border: 1px solid rgba(255, 200, 87, 0.5);
    --button-shadow: 0 14px 34px rgba(236, 79, 57, 0.27);
    --button-shadow-hover: 0 20px 44px rgba(255, 104, 71, 0.38);
}

html {
    background: #06171c;
}

body,
body.download-page {
    color: var(--text-color);
    background:
        radial-gradient(circle at 8% 4%, rgba(255, 200, 87, 0.09), transparent 27%),
        radial-gradient(circle at 88% 16%, rgba(102, 208, 195, 0.1), transparent 30%),
        linear-gradient(160deg, #06171c 0%, #0a252a 46%, #071a20 100%);
}

body::before {
    background:
        radial-gradient(circle at 18% 23%, rgba(255, 200, 87, 0.16) 0 1px, transparent 2px),
        radial-gradient(circle at 74% 16%, rgba(102, 208, 195, 0.12) 0 1px, transparent 2px),
        linear-gradient(115deg, transparent 0 48%, rgba(255, 244, 213, 0.025) 48% 49%, transparent 49% 100%),
        radial-gradient(circle at 50% 45%, transparent 0 48%, rgba(2, 12, 15, 0.4) 100%);
    background-size: 76px 76px, 112px 112px, 220px 220px, auto;
}

h1, h2, h3, h4,
.logo-main, .logo-sub,
.footer-logo-main, .footer-logo-sub {
    font-family: 'Montserrat', sans-serif;
}

header {
    padding: 13px 0;
    background: linear-gradient(180deg, rgba(5, 22, 28, 0.94), rgba(5, 22, 28, 0.78));
    border-bottom: 1px solid rgba(255, 200, 87, 0.14);
    box-shadow: 0 12px 40px rgba(0, 10, 13, 0.26);
    backdrop-filter: blur(18px) saturate(1.25);
}

.logo-text,
.footer-logo-text {
    flex-direction: row;
    align-items: baseline;
    gap: 0.34em;
}

.logo-main,
.logo-sub,
.footer-logo-main,
.footer-logo-sub {
    margin: 0;
    max-width: none;
    font-size: clamp(1.1rem, 1.6vw, 1.48rem);
    line-height: 1;
    letter-spacing: -0.045em;
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--cream-light);
}

.logo-main,
.footer-logo-main {
    color: var(--secondary);
}

.nav-links {
    gap: clamp(14px, 2vw, 27px);
}

.nav-links a {
    color: rgba(245, 240, 223, 0.82);
    font-size: 0.88rem;
    letter-spacing: 0.025em;
}

.nav-links a::after,
.scroll-progress {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.language-selector {
    margin-left: 18px;
}

.language-btn {
    padding: 8px 13px;
    border-color: rgba(255, 200, 87, 0.35);
    background: rgba(255, 244, 213, 0.035);
}

.language-btn:hover {
    background: rgba(255, 200, 87, 0.1);
    border-color: var(--secondary);
}

.language-dropdown {
    background: rgba(7, 29, 34, 0.98);
    border: 1px solid rgba(255, 200, 87, 0.18);
    box-shadow: 0 22px 55px rgba(0, 8, 10, 0.55);
}

.language-option:hover,
.language-option.active {
    background: rgba(255, 104, 71, 0.14);
    color: var(--secondary);
}

.hero {
    min-height: 106vh;
    padding-top: 126px;
    background: #071a20;
}

.hero::before {
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 16, 20, 0.34) 0%, rgba(3, 18, 22, 0.58) 48%, #071a20 100%),
        linear-gradient(90deg, rgba(5, 23, 28, 0.58), rgba(5, 23, 28, 0.12) 50%, rgba(5, 23, 28, 0.48)),
        url('../images/hero-background-optimized.jpg') center 18% / cover no-repeat;
    filter: saturate(1.08) contrast(1.02);
}

.hero::after {
    height: 48%;
    background: linear-gradient(to bottom, transparent, #071a20 94%);
}

.hero-content {
    gap: 20px;
}

.hero-title {
    max-width: 1060px;
    margin-bottom: 0;
    padding: 10px 26px 12px;
    line-height: 0.92;
    text-wrap: balance;
}

.title-main,
.title-sub {
    display: inline;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3.1rem, 8vw, 6.9rem);
    font-weight: 700;
    letter-spacing: -0.075em;
    line-height: 0.92;
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--cream-light);
    text-shadow: 0 12px 42px rgba(0, 13, 16, 0.58);
}

.title-main {
    color: var(--secondary);
}

.title-sub::before {
    content: ' ';
}

.title-season {
    width: fit-content;
    margin: 20px auto 0;
    padding: 7px 16px;
    border: 1px solid rgba(255, 200, 87, 0.3);
    border-radius: 999px;
    color: var(--cream-light);
    background: rgba(6, 29, 34, 0.58);
    backdrop-filter: blur(12px);
    font-size: clamp(0.76rem, 1.5vw, 0.98rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-description {
    max-width: 850px;
    margin-bottom: 20px;
    color: rgba(245, 240, 223, 0.84);
    font-size: clamp(1rem, 1.65vw, 1.16rem);
    line-height: 1.8;
    text-wrap: balance;
}

.trailer-container {
    width: min(980px, 100%);
    padding: 8px;
    border: 1px solid rgba(255, 200, 87, 0.26);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 200, 87, 0.13), rgba(102, 208, 195, 0.06));
    box-shadow: 0 34px 85px rgba(0, 10, 13, 0.46);
    overflow: hidden;
}

.local-video,
.local-video video {
    border-radius: 17px;
}

.local-video {
    background: #041015;
}

.local-video video {
    filter: saturate(1.05) contrast(1.03) brightness(0.98);
}

.video-btn,
.social-link,
.close-lightbox,
.lightbox-nav {
    background: rgba(5, 30, 34, 0.78);
    border-color: rgba(255, 200, 87, 0.34);
}

.video-btn:hover,
.social-link:hover,
.close-lightbox:hover,
.lightbox-nav:hover {
    background: var(--primary);
    border-color: var(--secondary);
}

.btn,
.download-btn,
.download-card-btn,
.mirror-btn {
    border-radius: 999px;
    border-width: 1px;
    letter-spacing: 0.07em;
    box-shadow: var(--button-shadow);
}

.btn-secondary {
    background: rgba(7, 32, 37, 0.78);
    border-color: rgba(255, 200, 87, 0.44);
}

.section {
    padding: 106px 0;
}

.section::after,
footer::before {
    height: 95px;
    background: linear-gradient(to bottom, rgba(2, 15, 18, 0.33), transparent);
}

.section-title {
    margin-bottom: 28px;
    padding-bottom: 20px;
    color: var(--cream-light);
    font-size: clamp(2.25rem, 5vw, 4.15rem);
    letter-spacing: -0.055em;
    text-shadow: 0 10px 34px rgba(0, 9, 11, 0.44);
}

.section-title::after {
    width: 94px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

#about {
    background:
        radial-gradient(circle at 9% 18%, rgba(255, 200, 87, 0.08), transparent 30%),
        radial-gradient(circle at 94% 84%, rgba(102, 208, 195, 0.08), transparent 28%),
        linear-gradient(180deg, #071a20, #0a2428);
}

.features {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    min-height: 240px;
    padding: 30px;
    border: 1px solid rgba(255, 244, 213, 0.1);
    border-left: 1px solid rgba(255, 244, 213, 0.1);
    border-radius: 18px;
    background:
        linear-gradient(150deg, rgba(255, 244, 213, 0.055), transparent 48%),
        rgba(10, 38, 42, 0.82);
    box-shadow: 0 22px 52px rgba(0, 10, 12, 0.24);
}

.feature-card:hover {
    border-color: rgba(255, 200, 87, 0.38);
    border-left-color: rgba(255, 200, 87, 0.38);
    box-shadow: 0 26px 58px rgba(0, 10, 12, 0.38);
}

.feature-icon {
    width: 54px;
    height: 54px;
    color: #092228;
    background: linear-gradient(135deg, var(--secondary), #ff9c4a);
    box-shadow: 0 12px 28px rgba(255, 200, 87, 0.18);
}

.feature-title {
    color: var(--secondary);
}

.characters {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 104, 71, 0.12), transparent 35%),
        linear-gradient(180deg, #0a2428, #071c21);
}

.characters::before {
    background:
        radial-gradient(circle at 14% 24%, rgba(255, 200, 87, 0.12) 0 2px, transparent 3px),
        radial-gradient(circle at 78% 18%, rgba(102, 208, 195, 0.11) 0 2px, transparent 3px),
        linear-gradient(118deg, transparent 0 49%, rgba(255, 244, 213, 0.027) 49% 50%, transparent 50%);
    background-size: 90px 90px, 130px 130px, 260px 260px;
    opacity: 0.8;
}

.characters-grid {
    gap: 16px;
}

.character-card {
    min-height: 430px;
    border: 1px solid rgba(255, 200, 87, 0.2);
    border-radius: 20px;
    overflow: hidden;
    background: #0a2025;
    box-shadow: 0 24px 54px rgba(0, 9, 11, 0.34);
}

.character-card::before {
    content: none;
}

.character-card::after {
    background: linear-gradient(to top, rgba(2, 15, 18, 0.94) 0%, rgba(2, 15, 18, 0.1) 62%, transparent 100%);
}

.character-card:hover {
    border-color: rgba(255, 200, 87, 0.62);
    box-shadow: 0 34px 70px rgba(0, 9, 11, 0.52), 0 0 0 1px rgba(255, 200, 87, 0.14);
}

.character-img {
    height: 430px;
    filter: saturate(1.02) contrast(1.03);
}

.character-info {
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 146px;
    padding: 64px 16px 16px;
    background: linear-gradient(to top, rgba(3, 20, 24, 0.96), transparent);
}

.character-name {
    color: var(--cream-light);
    font-size: clamp(1.35rem, 1.75vw, 1.75rem);
}

.character-role {
    color: var(--secondary);
    font-size: 0.72rem;
}

.character-meter {
    height: 5px;
    background: rgba(255, 244, 213, 0.12);
    border: 0;
}

.character-meter span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 12px rgba(255, 104, 71, 0.35);
}


#screenshots {
    background:
        radial-gradient(circle at 85% 18%, rgba(102, 208, 195, 0.09), transparent 32%),
        linear-gradient(180deg, #071c21, #06171c);
}

#screenshots::before {
    background: repeating-linear-gradient(112deg, transparent 0 96px, rgba(255, 244, 213, 0.022) 96px 97px);
}

.screenshot-gallery {
    gap: 18px;
}

.screenshot-item {
    border: 1px solid rgba(255, 244, 213, 0.11);
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(0, 8, 10, 0.3);
}

.screenshot-item img {
    height: 220px;
}

.screenshot-item:hover {
    border-color: rgba(255, 200, 87, 0.5);
    box-shadow: 0 28px 60px rgba(0, 8, 10, 0.48);
}

.lightbox {
    background: rgba(2, 14, 17, 0.96);
}

.download {
    background:
        radial-gradient(circle at 50% 10%, rgba(255, 104, 71, 0.12), transparent 38%),
        linear-gradient(180deg, #071a20, #0a2428);
}

.requirement-card,
.download-card,
.mirror-card,
.locked-release-card,
.download-warning-box,
.faq-item {
    border: 1px solid rgba(255, 244, 213, 0.11);
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(255, 244, 213, 0.05), transparent 45%), rgba(8, 33, 38, 0.88);
    box-shadow: 0 20px 50px rgba(0, 9, 11, 0.26);
}

.requirement-title,
.download-card-title,
.mirror-card h2,
.locked-release-title,
.faq-question {
    color: var(--secondary);
}

.requirement-list li {
    border-bottom-color: rgba(255, 200, 87, 0.13);
}

.requirement-value,
.download-card-tagline,
.mirror-tagline {
    color: var(--accent);
}

#faq {
    background: linear-gradient(180deg, #06171c, #081f24);
}

.faq-item:hover {
    border-color: rgba(255, 200, 87, 0.32);
}

footer {
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 200, 87, 0.07), transparent 30%),
        linear-gradient(160deg, #071c21, #031115);
    border-top: 1px solid rgba(255, 200, 87, 0.1);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-heading {
    color: var(--secondary);
}

.footer-heading::after {
    background: var(--primary);
}

.footer-links a:hover {
    color: var(--secondary);
}

html body.download-page .download-hero {
    background:
        linear-gradient(180deg, rgba(3, 18, 22, 0.5), rgba(3, 18, 22, 0.92)),
        url('../images/hero-background-optimized.jpg') center 28% / cover no-repeat;
}

html body.download-page .download-main-title {
    color: var(--cream-light);
    text-shadow: 0 12px 42px rgba(0, 10, 13, 0.55);
}

html body.download-page .download-main-title::after {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

html body.download-page .mirror-card::before,
html body.download-page .locked-release-card::before {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

html body.download-page .download-section {
    background: transparent;
}

html body.download-page {
    background:
        radial-gradient(circle at 8% 4%, rgba(255, 200, 87, 0.09), transparent 27%),
        linear-gradient(160deg, #06171c, #0a252a 52%, #071a20);
}

html body.download-page footer {
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 200, 87, 0.07), transparent 30%),
        linear-gradient(160deg, #071c21, #031115);
}

html body.download-page .mirrors-grid {
    gap: 24px;
}

html body.download-page .mirror-card,
html body.download-page .locked-release-card,
html body.download-page .download-warning-box {
    border: 1px solid rgba(255, 244, 213, 0.12);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 244, 213, 0.055), transparent 46%),
        rgba(7, 31, 36, 0.91);
    box-shadow: 0 26px 60px rgba(0, 8, 10, 0.38);
    backdrop-filter: blur(16px);
}

html body.download-page .mirror-card:hover {
    border-color: rgba(255, 200, 87, 0.34);
    box-shadow: 0 34px 72px rgba(0, 8, 10, 0.5);
}

html body.download-page .mirror-icon {
    color: var(--secondary);
}

html body.download-page .mirror-card h2,
html body.download-page .download-warning-title,
html body.download-page .locked-release-title {
    color: var(--secondary);
}

html body.download-page .mirror-tagline {
    color: var(--accent);
}

html body.download-page .mirror-btn {
    border: 1px solid rgba(255, 200, 87, 0.45);
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7a4f, #ec4f39);
    box-shadow: 0 14px 34px rgba(236, 79, 57, 0.28);
}

html body.download-page .mirror-btn:hover {
    background: linear-gradient(135deg, #ff9166, #ff5b42);
    box-shadow: 0 20px 44px rgba(255, 104, 71, 0.36);
}

html body.download-page .download-warning-box {
    border-left: 3px solid var(--primary);
}

@media (max-width: 1050px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-main,
    .logo-sub {
        font-size: 1.12rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: 116px;
    }

    .hero-title {
        padding-inline: 0;
    }

    .title-main,
    .title-sub {
        font-size: clamp(2.75rem, 15vw, 4.8rem);
    }

    .title-season {
        max-width: 94%;
        line-height: 1.5;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 78px 0;
    }

    .trailer-container {
        padding: 5px;
        border-radius: 15px;
    }

    .local-video,
    .local-video video {
        border-radius: 11px;
    }

    .character-card,
    .character-img {
        height: 520px;
        min-height: 520px;
    }
}

@media (max-width: 480px) {
    .logo-main,
    .logo-sub {
        font-size: 0.98rem;
    }

    .hero-description {
        line-height: 1.7;
    }

    .character-card,
    .character-img {
        height: 470px;
        min-height: 470px;
    }

    .screenshot-item img {
        height: 190px;
    }
}


@layer legacy {
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background:
        radial-gradient(circle at 18% 0%, rgba(207, 36, 72, 0.12), transparent 34%),
        radial-gradient(circle at 84% 10%, rgba(63, 88, 98, 0.18), transparent 30%),
        linear-gradient(160deg, #141414 0%, #232323 46%, #303030 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(rgba(255, 247, 236, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 247, 236, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 50% 35%, transparent 0 45%, rgba(0, 0, 0, 0.36) 100%);
    background-size: 100% 3px, 4px 100%, auto;
    mix-blend-mode: normal;
}
body > * {
    position: relative;
    z-index: 1;
}
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-img {
    width: 50px;
    height: 50px; 
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 247, 236, 0.08);
}
.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
.logo-main,
.title-main,
.footer-logo-main {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: 0;
    background: linear-gradient(180deg, #FFEAF1 0%, #F04B6B 54%, #CF2448 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}
.logo-main,
.footer-logo-main {
    max-width: 280px;
}
.logo-main,
.logo-sub,
.footer-logo-main,
.footer-logo-sub {
    overflow-wrap: anywhere;
}
.logo-sub,
.title-sub,
.footer-logo-sub {
    font-size: 1.04rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 3px;
    background: linear-gradient(180deg, #FFF7EC 0%, #F3C168 58%, #F0B34F 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: nowrap;
    align-items: center;
}
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    font-size: 0.95rem;
}
.nav-links a:hover {
    color: var(--secondary);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: all 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}
.language-selector {
    margin-left: 30px;
    position: relative;
    display: inline-block;
}
.language-btn {
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 8px 15px;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.language-btn:hover {
    background: rgba(214, 68, 85, 0.1);
}
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 150px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    display: block;
}
.language-dropdown::-webkit-scrollbar {
    width: 6px;
}
.language-dropdown::-webkit-scrollbar-track {
    background: rgba(214, 68, 85, 0.1);
    border-radius: 3px;
}
.language-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}
.language-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}
.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.language-option {
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
}
.language-option:hover {
    background: rgba(214, 68, 85, 0.2);
    color: var(--secondary);
}
.language-option.active {
    background: rgba(214, 68, 85, 0.3);
    color: var(--secondary);
    font-weight: 600;
}
.lang-flag img {
    width: 20px;
    height: 14px;
    object-fit: contain;
    border-radius: 2px;
    display: block;
}
.lang-name {
    font-size: 0.9rem;
}
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 18% 0%, rgba(207, 36, 72, 0.22), transparent 34%),
        radial-gradient(circle at 78% 12%, rgba(240, 179, 79, 0.10), transparent 28%),
        linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(36, 36, 36, 0.96) 48%, rgba(18, 18, 18, 0.98) 100%);
    z-index: -1;
}
.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}
.hero-title {
    font-size: 4rem;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s;
}
.title-main {
    font-size: 5rem;
    line-height: 1.1;
    display: block;
}
.title-sub {
    font-size: 5rem;
    line-height: 1.2;
    display: block;
    margin-top: 5px;
}
.title-season {
    color: var(--cream-light);
    font-size: 1.8rem;
    font-weight: 600;
    display: block;
    margin-top: 5px;
}
html[lang="ko"] .logo-main,
html[lang^="zh"] .logo-main,
html[lang="ja"] .logo-main {
    font-size: 1.18rem;
    line-height: 1.12;
}
html[lang="ko"] .footer-logo-main,
html[lang^="zh"] .footer-logo-main,
html[lang="ja"] .footer-logo-main {
    font-size: 1.28rem;
    line-height: 1.14;
}
html[lang="ko"] .title-main,
html[lang^="zh"] .title-main,
html[lang="ja"] .title-main {
    max-width: 980px;
    margin: 0 auto;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 1.14;
    overflow-wrap: anywhere;
}
.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.8s;
}
.section .hero-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.download-layout {
    max-width: 1100px;
    margin: 0 auto;
}

.download-subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 35px;
}

.download-card {
    background: linear-gradient(160deg, rgba(48, 48, 48, 0.96), rgba(24, 24, 24, 0.98));
    border-radius: 6px;
    padding: 26px 22px 22px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 410px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.download-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.download-card-header {
    text-align: center;
    margin-bottom: 16px;
}

.download-card-title {
    font-size: 1.35rem;
    margin-top: 10px;
    margin-bottom: 4px;
}

.download-card-tagline {
    font-size: 0.9rem;
    opacity: 0.85;
}

.download-card-size {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
}

.download-card-footer {
    margin-top: 18px;
}

.download-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    padding: 16px 30px;
    border-radius: 4px;
    border: var(--button-border);
    background: var(--button-bg);
    color: #F5F1E8;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--button-shadow);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    min-height: 58px;
}
}

@layer legacy {

.download-card-btn:hover {
    transform: translateY(-3px);
    background: var(--button-bg-hover);
    box-shadow: var(--button-shadow-hover);
}

.download-card-btn-outline {
    background: var(--button-bg);
    border: var(--button-border);
    color: var(--cream-light);
    box-shadow: var(--button-shadow);
}

.download-warning-box {
    margin-top: 46px;
    border-radius: 6px;
    padding: 22px 24px;
    background: linear-gradient(160deg, rgba(48, 48, 48, 0.96), rgba(24, 24, 24, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.download-warning-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.download-warning-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .download-layout {
        padding: 0 4px;
    }
}
.trailer-container {
    width: 100%;
    max-width: 900px;
    border-radius: 4px;
    overflow: visible;
    padding: 12px;
    background: var(--frame);
    border: 1px solid rgba(255, 247, 236, 0.88);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.58), 12px 12px 0 rgba(143, 22, 48, 0.36);
    position: relative;
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 1s ease forwards 1s;
}
.local-video {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    background: #0F0E0F;
}
.local-video::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.30), transparent 38%),
        radial-gradient(circle at 50% 50%, transparent 0 58%, rgba(0, 0, 0, 0.28) 100%);
    z-index: 2;
}
.local-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    filter: saturate(1.08) contrast(1.06) brightness(0.94);
}
.video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
}
.video-btn {
    background: rgba(107, 91, 86, 0.78);
    border: 1px solid rgba(240, 232, 216, 0.35);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--cream-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.video-btn:hover {
    background: rgba(214, 68, 85, 0.86);
    transform: scale(1.1);
}
.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 1.2s;
}
.btn {
    padding: 16px 30px;
    border-radius: 4px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border: var(--button-border);
    background: var(--button-bg);
    color: var(--cream-light);
    box-shadow: var(--button-shadow);
    text-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    min-height: 58px;
}

.btn,
.download-btn,
.download-card-btn,
.mirror-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 4px;
    min-height: 58px;
    border: var(--button-border);
    background: var(--button-bg);
    color: var(--cream-light);
    box-shadow: var(--button-shadow);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.btn:hover,
.download-btn:hover,
.download-card-btn:hover,
.mirror-btn:hover {
    transform: translateY(-3px);
    background: var(--button-bg-hover);
    box-shadow: var(--button-shadow-hover);
    color: var(--cream-light);
}
.btn-primary {
    background: var(--button-bg);
    color: var(--cream-light);
    box-shadow: var(--button-shadow);
}
.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--button-bg-hover);
    box-shadow: var(--button-shadow-hover);
}
.btn-secondary {
    background: var(--button-bg);
    color: var(--cream-light);
    border: var(--button-border);
    box-shadow: var(--button-shadow);
}
.btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--button-bg-hover);
    box-shadow: var(--button-shadow-hover);
}
.section {
    padding: 80px 0;
    position: relative;
}

.section::after,
footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 72px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.44), transparent);
}

.section > .container,
footer > .container {
    position: relative;
    z-index: 2;
}
.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 38px;
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 18px;
    background: transparent;
    border: 0;
    color: var(--cream-light);
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.54);
    box-shadow: none;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(180px, 62%);
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    border-radius: 2px;
}
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin-top: 46px;
}
.feature-card {
    background: linear-gradient(160deg, rgba(48, 42, 43, 0.94), rgba(28, 27, 28, 0.95));
    border-radius: 6px;
    padding: 28px;
    border: 1px solid rgba(255, 247, 236, 0.18);
    border-left: 4px solid var(--primary);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
    transition: all 0.6s ease;
    opacity: 0;
    transform: translateY(20px);
}
.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(240, 179, 79, 0.42);
    border-left-color: var(--secondary);
    box-shadow: 0 22px 38px rgba(0, 0, 0, 0.36);
}
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 18px;
    color: var(--cream-light);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 10px 22px rgba(207, 36, 72, 0.28);
}
.feature-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--secondary);
}
.characters {
    background:
        linear-gradient(135deg, rgba(240, 232, 216, 0.055), transparent 26%),
        radial-gradient(circle at 65% 18%, rgba(201, 51, 79, 0.16), transparent 38%),
        linear-gradient(to bottom, #181617, #261D1F);
    position: relative;
    overflow: hidden;
}
.characters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(-18deg, transparent 0 18px, rgba(240, 232, 216, 0.045) 18px 20px),
        radial-gradient(circle at 22% 16%, rgba(207, 36, 72, 0.12), transparent 28%),
        radial-gradient(circle at 78% 10%, rgba(240, 179, 79, 0.08), transparent 24%);
    background-size: 260px, auto, auto;
    background-position: 0 0, center, center;
    background-repeat: repeat, no-repeat, no-repeat;
    opacity: 0.6;
    z-index: 0;
}
.characters-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(170px, 1fr));
    gap: 24px;
    margin-top: 56px;
    position: relative;
    z-index: 1;
}
.character-card {
    background: #F0E8D8;
    border-radius: 0;
    overflow: visible;
    border: 8px solid rgba(240, 232, 216, 0.78);
    box-shadow: 12px 18px 24px rgba(34, 28, 27, 0.34);
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 420px;
}
.character-card::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    width: 88px;
    height: 28px;
    transform: translateX(-50%) rotate(-4deg);
    background: rgba(240, 232, 216, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    z-index: 3;
}
.character-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 28%, transparent 0 40%, rgba(0, 0, 0, 0.34) 100%);
    pointer-events: none;
    z-index: 1;
}
.character-card:nth-child(2n) {
    --tilt: -1.2deg;
    transform: rotate(var(--tilt)) translateY(20px);
}
.character-card:nth-child(3n) {
    --tilt: 1deg;
    transform: rotate(var(--tilt)) translateY(20px);
}
.character-card.visible {
    opacity: 1;
    transform: translateY(0) rotate(var(--tilt, 0deg));
}
.character-card:hover {
    transform: translateY(-12px) rotate(0deg) scale(1.035);
    border-color: rgba(245, 168, 51, 0.62);
    box-shadow: 0 18px 36px rgba(82, 45, 42, 0.45);
}
.character-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: 50% 25%;
    display: block;
    filter: saturate(0.9) contrast(0.96);
}
.character-info {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    min-height: 136px;
    padding: 62px 12px 12px;
    background: linear-gradient(to top, rgba(22, 20, 20, 0.74), transparent);
    display: grid;
    grid-template-rows: 42px 12px 38px;
    align-items: center;
    row-gap: 14px;
}
.character-name {
    font-size: clamp(1.45rem, 1.85vw, 1.95rem);
    margin-bottom: 0;
    color: var(--cream-light);
    text-align: center;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.75);
    transition: all 0.3s ease;
    line-height: 1.05;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.character-role {
    font-style: normal;
    color: var(--cream);
    margin-bottom: 0;
    font-size: 0.78rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.86;
    line-height: 1.25;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}
}

@layer legacy {
.character-info p:not(.character-role) {
    display: none;
}
.character-meter {
    height: 12px;
    border-radius: 999px;
    background: rgba(240, 232, 216, 0.35);
    overflow: hidden;
    border: 1px solid rgba(240, 232, 216, 0.24);
    margin-bottom: 0;
}
.character-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 4px, transparent 4px 8px),
        linear-gradient(90deg, #E8A14F, #F5A833);
    box-shadow: 0 0 12px rgba(245, 168, 51, 0.34);
}
.character-card:nth-child(1) .character-meter span { width: 46%; }
.character-card:nth-child(2) .character-meter span { width: 30%; }
.character-card:nth-child(3) .character-meter span { width: 100%; }
.character-card:nth-child(4) .character-meter span { width: 34%; }
.character-card:nth-child(5) .character-meter span { width: 8%; }
#screenshots {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(240, 179, 79, 0.08), transparent 22%),
        radial-gradient(circle at 12% 18%, rgba(207, 36, 72, 0.18), transparent 30%),
        radial-gradient(circle at 88% 72%, rgba(63, 88, 98, 0.24), transparent 32%),
        linear-gradient(180deg, #151516 0%, #0D0E10 100%);
}

#screenshots::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0 46%, rgba(240, 232, 216, 0.04) 46% 47%, transparent 47% 100%),
        repeating-linear-gradient(90deg, rgba(255, 247, 236, 0.026) 0 1px, transparent 1px 86px);
    background-size: 220px 220px, 86px 100%;
    opacity: 0.58;
}

#screenshots .container {
    position: relative;
    z-index: 1;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}
.screenshot-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
}
.screenshot-item.visible {
    opacity: 1;
    transform: scale(1);
}
.screenshot-item:hover {
    transform: scale(1.03);
}
.screenshot-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}
.screenshot-item:hover img {
    filter: brightness(0.7);
}
.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.44);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}
.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}
.zoom-icon {
    display: none;
}
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 46, 43, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox.show {
    opacity: 1;
    pointer-events: all;
}
.lightbox-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 100px;
    box-sizing: border-box;
}
.lightbox-content img {
    max-width: calc(100vw - 200px);
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: scale(1);
}
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: var(--cream-light);
    background: rgba(107, 91, 86, 0.82);
    border: 2px solid rgba(240, 232, 216, 0.38);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1002;
}
.close-lightbox:hover {
    background: rgba(214, 68, 85, 0.8);
    border-color: var(--secondary);
    transform: scale(1.1);
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    color: var(--cream-light);
    background: rgba(107, 91, 86, 0.82);
    border: 2px solid rgba(240, 232, 216, 0.38);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1002;
}
.lightbox-nav:hover {
    background: rgba(214, 68, 85, 0.8);
    border-color: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}
.lightbox-nav.prev {
    left: 20px;
}
.lightbox-nav.next {
    right: 20px;
}
.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}
.download {
    text-align: center;
    background:
        radial-gradient(circle at 12% 0%, rgba(207, 36, 72, 0.14), transparent 34%),
        linear-gradient(180deg, #242424 0%, #171717 100%);
    padding: 100px 0 60px 0;
}
.requirements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
    text-align: left;
}
.requirement-card {
    background: linear-gradient(160deg, rgba(48, 42, 43, 0.92), rgba(24, 22, 23, 0.94));
    padding: 30px;
    border-radius: 6px;
    border: 1px solid rgba(255, 247, 236, 0.18);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}
.requirement-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
}
.requirement-list {
    list-style: none;
}
.requirement-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(214, 68, 85, 0.2);
    display: flex;
    justify-content: space-between;
}
.requirement-list li:last-child {
    border-bottom: none;
}
.requirement-value {
    font-weight: 600;
    color: var(--secondary);
    margin-left: 4px;
}
.download-options {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 50px;
}
.download-btn {
    flex-direction: row;
    min-width: 190px;
    width: auto;
    position: relative;
    overflow: hidden;
}
.download-btn.btn-primary {
    background: var(--button-bg);
    color: var(--cream-light);
    box-shadow: var(--button-shadow);
    overflow: hidden;
}
.download-btn.btn-primary::after {
    content: none;
}
.download-btn.btn-primary:hover::after {
    width: 0;
}
.download-btn.btn-primary:hover {
    background: var(--button-bg-hover);
    box-shadow: var(--button-shadow-hover);
    color: var(--cream-light);
}
.download-btn:hover {
    background: var(--button-bg-hover);
    box-shadow: var(--button-shadow-hover);
    color: var(--cream-light);
}
.download-btn::after {
    content: none;
}
.download-btn:hover::after {
    width: 0;
}
.download-icon {
    font-size: 1.55rem;
    margin-bottom: 0;
}
footer {
    background: linear-gradient(135deg, #202020 0%, #151515 100%);
    color: var(--text-color);
    padding: 70px 0 30px;
    position: relative;
    overflow: hidden;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-about {
    display: flex;
    flex-direction: column;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    text-decoration: none;
}
.footer-logo-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 247, 236, 0.08);
}
.footer-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.footer-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-logo-main {
    font-size: 1.95rem;
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: 0;
    background: linear-gradient(180deg, #FFEAF1 0%, #F04B6B 54%, #CF2448 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}
.footer-logo-sub {
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 4px;
    background: linear-gradient(180deg, #FFF7EC 0%, #F3C168 58%, #F0B34F 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}
.footer-description {
    margin-bottom: 25px;
    line-height: 1.7;
    opacity: 0.9;
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--cream-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}
.social-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(214, 68, 85, 0.4);
}
.footer-heading {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--secondary);
    position: relative;
    padding-bottom: 10px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    opacity: 0.9;
}
.footer-links a:hover {
    color: var(--secondary);
    padding-left: 8px;
    opacity: 1;
}
}

@layer legacy {
.footer-links a i {
    margin-right: 8px;
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}
.copyright {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@media (max-width: 1920px) {
    header {
        padding: 20px 0;
    }
    .hero {
        min-height: 100vh;
        padding: 120px 0 40px;
    }
    .hero-title {
        font-size: 3.8rem;
        margin-bottom: 10px;
    }
    .title-main {
        font-size: 4.5rem;
    }
    .title-sub {
        font-size: 4.5rem;
    }
    .title-season {
        font-size: 1.7rem;
    }
    .hero-description {
        font-size: 1.1rem;
        max-width: 750px;
        margin-bottom: 20px;
    }
    .trailer-container {
        max-width: 800px;
    }
    .cta-buttons {
        gap: 15px;
        margin-top: 15px;
    }
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 1600px) {
    header {
        padding: 18px 0;
    }
    .hero {
        padding: 110px 0 35px;
    }
    .hero-title {
        font-size: 3.2rem;
    }
    .title-main {
        font-size: 3.8rem;
    }
    .title-sub {
        font-size: 3.8rem;
    }
    .hero-description {
        font-size: 1rem;
        max-width: 700px;
        margin-bottom: 18px;
    }
    .trailer-container {
        max-width: 750px;
    }
}

@media (max-width: 992px) {
    .characters-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
    .character-card {
        min-height: 390px;
    }
    .character-img {
        height: 390px;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }
    .footer-about {
        grid-column: 1 / -1;
    }
}
@media (max-width: 768px) {
    .hero {
        padding-top: 160px;
    }
    .hero-title {
        font-size: 3rem;
        margin-top: 20px;
    }
    .title-main {
        font-size: 3rem;
    }
    .title-sub {
        font-size: 3rem;
    }
    .title-season {
        font-size: 1.5rem;
    }
    .nav-links {
        display: none;
    }
    .language-selector {
        margin-left: 15px;
    }
    .characters-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
    .character-card {
        min-height: 430px;
    }
    .character-img {
        height: 430px;
    }
    .features-grid,
    .screenshots-grid,
    .download-grid,
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .download-options {
        flex-direction: column;
        align-items: center;
    }
    .footer-logo-main {
        font-size: 1.8rem;
    }
    .footer-logo-sub {
        font-size: 1.1rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .requirement-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .requirement-value {
        display: block;
        text-align: left;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 135px;
    }
    .hero-title,
    .title-main,
    .title-sub {
        font-size: 2.25rem;
    }
    .title-season {
        font-size: 1.2rem;
    }
    .hero-description {
        font-size: 0.95rem;
    }
    .language-dropdown {
        right: 0;
        left: auto;
        min-width: min(230px, calc(100vw - 30px));
    }
}
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    z-index: 1000;
    transition: width 0.2s ease;
}
body.rtl {
    direction: rtl;
    text-align: right;
}
body.rtl .nav-links,
body.rtl .footer-links,
body.rtl .requirement-list {
    text-align: right;
}
		
		
		
		

      .volume-container {
    display: flex;
    align-items: center;
    position: relative;
}

.volume-slider-container {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 8px;
    border-radius: 25px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-container:hover .volume-slider-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.volume-slider-wrapper {
    position: relative;
    width: 4px;
    height: 80px;
    background: rgba(102, 102, 102, 0.5);
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.volume-slider-wrapper:hover {
    background: rgba(102, 102, 102, 0.8);
}

.volume-slider-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #D64455, #F5A833);
    border-radius: 2px;
    transition: height 0.15s ease;
    pointer-events: none;
}

.volume-slider-thumb {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #D64455;
    border: 2px solid var(--cream-light);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    cursor: grab;
    z-index: 2;
    transition: all 0.1s ease;
    user-select: none;
}

.volume-slider-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    cursor: grab;
    z-index: -1;
}

.volume-slider-thumb:hover {
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.volume-slider-thumb.dragging {
    cursor: grabbing;
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 4px 10px rgba(214, 68, 85, 0.6);
}

.volume-slider-thumb.dragging::before {
    cursor: grabbing;
}

#volumeSlider {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.video-error {
    display: none !important;
}
.local-video video::after,
.local-video video::-webkit-media-controls,
.local-video video::-webkit-media-controls-panel {
    display: none !important;
}

#faq {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 0%, rgba(207, 36, 72, 0.10), transparent 30%),
        radial-gradient(circle at 82% 100%, rgba(63, 88, 98, 0.16), transparent 32%),
        linear-gradient(180deg, #131313 0%, #0B0B0C 100%);
}

#faq::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(-18deg, transparent 0 18px, rgba(240, 232, 216, 0.025) 18px 20px);
    background-size: 260px;
    background-position: 0 0;
    opacity: 0.34;
    z-index: 0;
}

#faq .container {
    position: relative;
    z-index: 1;
}

#faq .faq-container {
    max-width: 900px;
    margin: 0 auto;
}

#faq .faq-item {
    background: linear-gradient(160deg, rgba(34, 34, 34, 0.96), rgba(13, 13, 13, 0.98));
    border-radius: 6px;
    padding: 26px 28px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 247, 236, 0.15);
    border-left: 4px solid rgba(207, 36, 72, 0.78);
    display: block;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
    position: relative;
    overflow: hidden;
}

#faq .faq-item::after {
    content: none;
}

#faq .faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.46);
    border-color: rgba(240, 179, 79, 0.38);
    border-left-color: var(--secondary);
}

#faq .faq-question {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 15px;
    font-weight: 600;
    display: block;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    z-index: 1;
}

#faq .faq-answer {
    font-size: 1rem;
    color: rgba(245, 241, 232, 0.82);
    line-height: 1.8;
    display: block;
    margin: 0;
    position: relative;
    z-index: 1;
}
}

@layer legacy {

@media (max-width: 768px) {
    .volume-slider-wrapper {
        height: 60px;
    }
    
    .volume-slider-thumb {
        width: 14px;
        height: 14px;
    }
    
    #faq .faq-item {
        padding: 20px;
    }
    
    #faq .faq-question {
        font-size: 1.1rem;
    }
}

}

/* The Serena Villa Files release palette. */
:root {
    --primary: #ff9a45;
    --primary-dark: #d9682f;
    --secondary: #dce98d;
    --accent: #59c99c;
    --accent-light: #a8df75;
    --accent-dark: #28775f;
    --olive: #667858;
    --brown: #493428;
    --brown-deep: #211815;
    --bg-color: #17231c;
    --card-bg: #2b392d;
    --text-color: #edf0d7;
    --cream: #dfdcbb;
    --cream-light: #f4f0d8;
    --frame: #bccc91;
    --muted-bg: #53614d;
    --header-bg: rgba(20, 30, 24, 0.92);
    --button-bg: linear-gradient(135deg, #ffb44f, #ff873f 54%, #e86d32);
    --button-bg-hover: linear-gradient(135deg, #ffc568, #ff984d 54%, #ef7840);
    --button-border: 1px solid rgba(255, 224, 151, 0.68);
    --button-shadow: 0 14px 34px rgba(131, 67, 34, 0.34);
    --button-shadow-hover: 0 20px 44px rgba(219, 112, 50, 0.42);
}
html,
body,
body.download-page {
    background: #17231c;
}
body,
html body.download-page {
    background:
        radial-gradient(circle at 8% 5%, rgba(168, 223, 117, 0.11), transparent 30%),
        radial-gradient(circle at 92% 16%, rgba(89, 201, 156, 0.13), transparent 28%),
        linear-gradient(155deg, #111b16 0%, #243328 48%, #343724 100%);
}
body::before {
    background:
        radial-gradient(circle at 18% 23%, rgba(234, 209, 127, 0.14) 0 1px, transparent 2px),
        radial-gradient(circle at 74% 16%, rgba(85, 185, 154, 0.11) 0 1px, transparent 2px),
        linear-gradient(115deg, transparent 0 48%, rgba(243, 236, 216, 0.025) 48% 49%, transparent 49% 100%),
        radial-gradient(circle at 50% 45%, transparent 0 48%, rgba(22, 15, 12, 0.46) 100%);
    background-size: 76px 76px, 112px 112px, 220px 220px, auto;
}
header {
    background: linear-gradient(180deg, rgba(18, 29, 22, 0.97), rgba(25, 38, 28, 0.9));
    border-bottom-color: rgba(168, 223, 117, 0.22);
    box-shadow: 0 12px 40px rgba(11, 22, 16, 0.38);
}
.logo-main,
.footer-logo-main {
    color: #72d2a5;
    background: linear-gradient(180deg, #d9ef91, #70d4a5 58%, #3aa27f);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-sub,
.footer-logo-sub {
    color: var(--cream-light);
}
.nav-links a {
    color: rgba(243, 236, 216, 0.84);
}
.nav-links a:hover,
.footer-links a:hover {
    color: var(--secondary);
}
.nav-links a::after,
.scroll-progress {
    background: linear-gradient(90deg, var(--accent), var(--secondary), var(--primary));
}
.language-btn {
    border-color: rgba(85, 185, 154, 0.55);
    background: rgba(85, 185, 154, 0.08);
}
.language-btn:hover {
    border-color: var(--accent);
    background: rgba(85, 185, 154, 0.16);
}
.language-dropdown {
    border-color: rgba(234, 209, 127, 0.22);
    background: rgba(44, 34, 28, 0.98);
    box-shadow: 0 22px 55px rgba(25, 16, 12, 0.58);
}
.language-option:hover,
.language-option.active {
    color: var(--cream-light);
    background: rgba(85, 185, 154, 0.2);
}
.language-dropdown::-webkit-scrollbar-thumb {
    background: var(--accent);
}
.hero::before {
    background:
        linear-gradient(180deg, rgba(22, 39, 27, 0.2) 0%, rgba(24, 39, 29, 0.56) 50%, #1b291f 100%),
        linear-gradient(90deg, rgba(22, 37, 27, 0.64), rgba(64, 73, 39, 0.08) 50%, rgba(27, 43, 31, 0.5)),
        url('../images/hero-background-optimized.jpg') center 18% / cover no-repeat;
}
.hero::after {
    background: linear-gradient(to bottom, transparent, #1b291f 94%);
}
.title-main {
    color: #75d1a4;
    background: linear-gradient(180deg, #e4f2a0 0%, #7ed7a9 48%, #3ca681 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.title-sub {
    color: #eef0cf;
    text-shadow: 0 12px 42px rgba(8, 24, 15, 0.72), 0 0 28px rgba(89, 201, 156, 0.13);
}
.title-season {
    border-color: rgba(168, 223, 117, 0.48);
    background: rgba(37, 55, 36, 0.72);
    color: #eff1c8;
}
.hero-description {
    color: rgba(243, 236, 216, 0.86);
}
@media (max-width: 600px) {
    .hero-title {
        width: 100%;
        max-width: 100%;
    }
    .title-main,
    .title-sub {
        font-size: clamp(2rem, 10vw, 2.75rem);
        letter-spacing: -0.065em;
        overflow-wrap: anywhere;
    }
}
.trailer-container {
    border-color: rgba(234, 209, 127, 0.38);
    background: linear-gradient(135deg, rgba(234, 209, 127, 0.16), rgba(85, 185, 154, 0.1));
    box-shadow: 0 34px 85px rgba(28, 18, 13, 0.5);
}
.local-video {
    background: #1d1713;
}
.video-btn,
.social-link,
.close-lightbox,
.lightbox-nav {
    color: var(--cream-light);
    border-color: rgba(234, 209, 127, 0.44);
    background: rgba(54, 44, 34, 0.86);
}
.video-btn:hover,
.social-link:hover,
.close-lightbox:hover,
.lightbox-nav:hover {
    color: #fff9e7;
    border-color: #f3daa0;
    background: var(--accent-dark);
}
.btn,
.download-btn,
.download-card-btn,
.mirror-btn,
html body.download-page .mirror-btn {
    color: #fff8e8;
    border-color: rgba(255, 224, 151, 0.7);
    background: var(--button-bg);
    box-shadow: var(--button-shadow);
}
.btn:hover,
.download-btn:hover,
.download-card-btn:hover,
.mirror-btn:hover,
html body.download-page .mirror-btn:hover {
    color: #fffdf3;
    background: var(--button-bg-hover);
    box-shadow: var(--button-shadow-hover);
}
.btn-secondary {
    border-color: rgba(145, 222, 196, 0.62);
    background: linear-gradient(135deg, #63c6a6, #419d84 58%, #307966);
    box-shadow: 0 14px 34px rgba(36, 102, 84, 0.3);
}
.btn-secondary:hover {
    background: linear-gradient(135deg, #78d4b5, #4dad91 58%, #378773);
    box-shadow: 0 20px 44px rgba(36, 102, 84, 0.38);
}
.section::after,
footer::before {
    background: linear-gradient(to bottom, rgba(40, 28, 21, 0.4), transparent);
}
.section-title {
    color: var(--cream-light);
}
.section-title::after,
html body.download-page .download-main-title::after {
    background: linear-gradient(90deg, var(--accent), var(--secondary), var(--primary));
}
#about {
    background:
        radial-gradient(circle at 9% 18%, rgba(234, 209, 127, 0.09), transparent 30%),
        radial-gradient(circle at 94% 84%, rgba(85, 185, 154, 0.09), transparent 28%),
        linear-gradient(180deg, #1b291f, #2c382a);
}
.feature-card,
.requirement-card,
.download-card,
.faq-item {
    border-color: rgba(234, 209, 127, 0.18);
    background:
        linear-gradient(150deg, rgba(243, 236, 216, 0.06), transparent 48%),
        rgba(43, 57, 45, 0.9);
    box-shadow: 0 22px 52px rgba(13, 25, 17, 0.34);
}
.feature-card:hover,
.faq-item:hover {
    border-color: rgba(85, 185, 154, 0.48);
    box-shadow: 0 28px 58px rgba(30, 19, 14, 0.42);
}
.feature-icon {
    color: #3e2f24;
    background: linear-gradient(135deg, #f4dc8d, #ff9f48);
    box-shadow: 0 12px 28px rgba(184, 106, 48, 0.24);
}
.feature-card:nth-child(2n) .feature-icon {
    color: #f7efd9;
    background: linear-gradient(135deg, #68c8a9, #3c917a);
    box-shadow: 0 12px 28px rgba(49, 130, 108, 0.24);
}
.feature-title,
.requirement-title,
.faq-question,
.footer-heading,
.download-card-title {
    color: var(--secondary);
}
.characters {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 154, 69, 0.11), transparent 36%),
        linear-gradient(180deg, #2c382a, #24362a);
}
.characters::before {
    background:
        radial-gradient(circle at 14% 24%, rgba(234, 209, 127, 0.12) 0 2px, transparent 3px),
        radial-gradient(circle at 78% 18%, rgba(85, 185, 154, 0.12) 0 2px, transparent 3px),
        linear-gradient(118deg, transparent 0 49%, rgba(243, 236, 216, 0.025) 49% 50%, transparent 50%);
    background-size: 90px 90px, 130px 130px, 260px 260px;
}
.character-card {
    border-color: rgba(234, 209, 127, 0.38);
    background: #2b392d;
    box-shadow: 0 24px 54px rgba(28, 18, 13, 0.38);
}
.character-card::after {
    background: linear-gradient(to top, rgba(31, 47, 35, 0.97) 0%, rgba(31, 47, 35, 0.08) 64%, transparent 100%);
}
.character-card:hover {
    border-color: rgba(85, 185, 154, 0.78);
    box-shadow: 0 34px 70px rgba(28, 18, 13, 0.54), 0 0 0 1px rgba(234, 209, 127, 0.18);
}
.character-info {
    background: linear-gradient(to top, rgba(31, 47, 35, 0.98), transparent);
}
.character-role {
    color: #f2d985;
}
.character-meter {
    background: rgba(243, 236, 216, 0.15);
}
.character-meter span {
    background: linear-gradient(90deg, var(--accent), var(--secondary), var(--primary));
    box-shadow: 0 0 12px rgba(85, 185, 154, 0.35);
}
#screenshots {
    background:
        radial-gradient(circle at 85% 18%, rgba(85, 185, 154, 0.1), transparent 32%),
        linear-gradient(180deg, #24362a, #17231c);
}
.screenshot-item {
    border-color: rgba(234, 209, 127, 0.22);
    box-shadow: 0 20px 48px rgba(28, 18, 13, 0.34);
}
.screenshot-item:hover {
    border-color: rgba(85, 185, 154, 0.64);
    box-shadow: 0 28px 60px rgba(28, 18, 13, 0.5);
}
.lightbox {
    background: rgba(31, 23, 18, 0.97);
}
.download,
#faq {
    background:
        radial-gradient(circle at 50% 10%, rgba(255, 154, 69, 0.1), transparent 38%),
        linear-gradient(180deg, #17231c, #2a3628);
}
.requirement-list li {
    border-bottom-color: rgba(85, 185, 154, 0.18);
}
.requirement-value,
.download-card-tagline,
.mirror-tagline,
html body.download-page .mirror-tagline {
    color: #70c8aa;
}
footer,
html body.download-page footer {
    border-top-color: rgba(234, 209, 127, 0.16);
    background:
        radial-gradient(circle at 12% 0%, rgba(234, 209, 127, 0.07), transparent 30%),
        linear-gradient(160deg, #202b21, #111713);
}
html body.download-page .download-hero {
    background:
        linear-gradient(180deg, rgba(31, 49, 35, 0.48), rgba(24, 39, 29, 0.92)),
        url('../images/hero-background-optimized.jpg') center 28% / cover no-repeat;
}
html body.download-page .mirror-card,
html body.download-page .locked-release-card,
html body.download-page .download-warning-box {
    border-color: rgba(234, 209, 127, 0.2);
    background:
        linear-gradient(145deg, rgba(243, 236, 216, 0.065), transparent 46%),
        rgba(43, 57, 45, 0.94);
    box-shadow: 0 26px 60px rgba(28, 18, 13, 0.42);
}
html body.download-page .mirror-card:hover {
    border-color: rgba(85, 185, 154, 0.5);
    box-shadow: 0 34px 72px rgba(28, 18, 13, 0.54);
}
html body.download-page .mirror-icon,
html body.download-page .mirror-card h2,
html body.download-page .download-warning-title,
html body.download-page .locked-release-title {
    color: var(--secondary);
}
html body.download-page .mirror-card::before,
html body.download-page .locked-release-card::before {
    background: linear-gradient(90deg, var(--accent), var(--secondary), var(--primary));
}
html body.download-page .download-warning-box {
    border-left-color: var(--primary);
}
.volume-slider-fill {
    background: linear-gradient(to top, var(--accent), var(--secondary));
}
.volume-slider-thumb {
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(36, 102, 84, 0.4);
}
@media (max-width: 768px) {
    header {
        background: rgba(19, 31, 23, 0.96);
    }
    .section:not(.hero) {
        content-visibility: auto;
        contain-intrinsic-size: 780px;
    }
    .btn,
    .language-btn,
    .video-btn,
    .social-link,
    .lightbox-nav,
    .close-lightbox {
        min-height: 44px;
    }
}
@media (max-width: 520px) {
    .container {
        width: 100%;
        padding-inline: 16px;
    }
    .header-content {
        gap: 10px;
    }
    .language-selector {
        margin-left: auto;
    }
    .language-btn {
        min-width: 48px;
        padding: 8px 11px;
    }
    .language-btn #currentLang {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    .hero {
        min-height: 100svh;
        padding-top: 112px;
    }
    .hero-title {
        margin-top: 0;
    }
    .hero-description {
        line-height: 1.65;
    }
    .character-card,
    .character-img {
        height: min(520px, 135vw);
        min-height: 430px;
    }
    .lightbox-nav {
        width: 44px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:root {
    --primary: #c9453e;
    --primary-dark: #7f2428;
    --secondary: #d9b36c;
    --accent: #7aa5a1;
    --bg-color: #11191b;
    --card-bg: #1b292b;
    --text-color: #f4efe4;
    --cream: #ded2bc;
    --cream-light: #fff8e9;
    --frame: #354b4d;
    --muted-bg: #243638;
    --header-bg: rgba(13, 24, 25, 0.92);
}

html {
    background: #0d1517;
}

body,
body.download-page {
    background:
        radial-gradient(circle at 14% 3%, rgba(201, 69, 62, 0.12), transparent 30%),
        radial-gradient(circle at 90% 22%, rgba(122, 165, 161, 0.1), transparent 28%),
        linear-gradient(160deg, #0d1517, #142326 50%, #10191b);
}

header {
    padding: 13px 0;
    background: var(--header-bg);
    border-bottom-color: rgba(217, 179, 108, 0.2);
}

.header-content {
    gap: clamp(14px, 2vw, 28px);
}

.logo,
.footer-logo {
    min-width: 0;
}

.logo-text,
.footer-logo-text {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.3em;
    white-space: nowrap;
}

.logo-main,
.logo-sub,
.footer-logo-main,
.footer-logo-sub {
    font-size: clamp(0.94rem, 1.55vw, 1.38rem);
    letter-spacing: -0.045em;
}

.primary-navigation {
    margin-left: auto;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 11px;
    border: 1px solid rgba(217, 179, 108, 0.38);
    border-radius: 12px;
    color: var(--cream-light);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero::before {
    background:
        linear-gradient(180deg, rgba(4, 12, 14, 0.32), rgba(7, 18, 20, 0.68) 58%, #10191b 100%),
        linear-gradient(90deg, rgba(8, 20, 22, 0.54), transparent 48%, rgba(8, 20, 22, 0.44)),
        url('../images/hero-background-optimized.jpg') center 20% / cover no-repeat;
}

.hero {
    isolation: isolate;
}

.hero-title {
    max-width: 1150px;
}

.title-main,
.title-sub {
    font-size: clamp(2.8rem, 7.1vw, 6.5rem);
    letter-spacing: -0.065em;
}

.title-main {
    color: #e3bb72;
}

.case-preview {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 17px;
}

.local-video {
    position: relative;
}

.case-preview-label {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 248, 233, 0.24);
    border-radius: 999px;
    color: var(--cream-light);
    background: rgba(9, 20, 22, 0.78);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.section-eyebrow {
    margin: 0 0 10px;
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
}

.residents-portrait {
    margin: 42px 0 24px;
    overflow: hidden;
    border: 1px solid rgba(217, 179, 108, 0.34);
    border-radius: 24px;
    background: #10191b;
    box-shadow: 0 28px 68px rgba(0, 7, 8, 0.42);
}

.residents-portrait img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    max-width: none;
}

.character-card {
    min-height: 100%;
    overflow: visible;
    border: 1px solid rgba(217, 179, 108, 0.2);
    border-radius: 18px;
    background:
        linear-gradient(150deg, rgba(255, 248, 233, 0.055), transparent 50%),
        rgba(20, 40, 42, 0.9);
    box-shadow: 0 18px 42px rgba(0, 8, 9, 0.28);
}

.character-card::before,
.character-card::after {
    content: none;
}

.character-info {
    position: static;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 22px 18px;
    color: var(--text-color);
    background: none;
    text-align: left;
}

.character-route {
    margin: 0 0 8px;
    color: var(--secondary);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.character-name {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.character-role {
    min-height: 0;
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.78rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.character-info .character-description {
    display: block;
    margin: 0 0 18px;
    color: rgba(244, 239, 228, 0.78);
    font-size: 0.88rem;
    line-height: 1.65;
}

.character-quote {
    margin: auto 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(217, 179, 108, 0.16);
    color: rgba(255, 248, 233, 0.9);
    font-size: 0.8rem;
    font-style: italic;
    line-height: 1.55;
}

.screenshot-item {
    appearance: none;
    width: 100%;
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: zoom-in;
}

.lightbox[aria-hidden='true'] {
    visibility: hidden;
}

.lightbox-open {
    overflow: hidden;
}

:where(a, button, input):focus-visible {
    outline: 3px solid #f3c873;
    outline-offset: 4px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.footer-links a,
.footer-legal a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
}

@media (max-width: 1180px) {
    .characters-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .primary-navigation {
        position: absolute;
        top: calc(100% + 10px);
        right: 5%;
        left: 5%;
        display: none;
        padding: 12px;
        border: 1px solid rgba(217, 179, 108, 0.25);
        border-radius: 16px;
        background: rgba(12, 27, 29, 0.98);
        box-shadow: 0 20px 48px rgba(0, 5, 6, 0.48);
    }

    .primary-navigation.is-open {
        display: block;
    }

    .primary-navigation .nav-links {
        display: grid;
        gap: 2px;
    }

    .primary-navigation .nav-links a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 8px 12px;
        border-radius: 10px;
    }

    .characters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }
}

@media (max-width: 600px) {
    .header-content {
        width: 100%;
        padding-inline: 14px;
    }

    .logo-main,
    .logo-sub {
        font-size: clamp(0.77rem, 3.5vw, 0.98rem);
    }

    .language-selector {
        margin-left: 0;
    }

    .title-main,
    .title-sub {
        font-size: clamp(2.2rem, 12vw, 3.15rem);
    }

    .hero-title {
        overflow-wrap: anywhere;
    }

    .case-preview-label {
        right: 10px;
        bottom: 10px;
        left: 10px;
        font-size: 0.65rem;
        text-align: center;
    }

    .residents-portrait {
        margin-top: 30px;
        border-radius: 16px;
    }

    .residents-portrait img {
        aspect-ratio: 4 / 3;
        object-position: 50% center;
    }

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

    .character-card {
        min-height: 0;
    }

    .character-info {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-toggle span {
        transition: none;
    }
}

/* Palette sampled from the official Steam header artwork. */
:root {
    --primary: #f3aa4e;
    --primary-dark: #df7d3f;
    --secondary: #f9d06e;
    --accent: #5c67c6;
    --accent-light: #9fd7e9;
    --accent-dark: #324aa7;
    --bg-color: #10172d;
    --card-bg: #1c2748;
    --text-color: #f8f4eb;
    --cream: #e4d89d;
    --cream-light: #fff7dc;
    --frame: #4b5ca4;
    --muted-bg: #2b3761;
    --header-bg: rgba(12, 20, 43, 0.92);
    --button-bg: linear-gradient(135deg, #ffd873, #f3aa4e 52%, #e58743);
    --button-bg-hover: linear-gradient(135deg, #ffe49a, #ffc15d 52%, #f0984c);
    --button-border: 1px solid rgba(255, 232, 161, 0.76);
    --button-shadow: 0 14px 34px rgba(231, 139, 63, 0.3), 0 0 0 1px rgba(50, 74, 167, 0.22);
    --button-shadow-hover: 0 20px 44px rgba(243, 170, 78, 0.4), 0 0 24px rgba(159, 215, 233, 0.18);
}

html,
body,
body.download-page {
    background: #10172d;
}

body,
html body.download-page {
    background:
        radial-gradient(circle at 10% 3%, rgba(92, 103, 198, 0.18), transparent 31%),
        radial-gradient(circle at 91% 15%, rgba(249, 208, 110, 0.12), transparent 26%),
        radial-gradient(circle at 70% 72%, rgba(159, 215, 233, 0.08), transparent 32%),
        linear-gradient(155deg, #0c1328 0%, #17213f 48%, #252649 100%);
}

body::before,
.characters::before {
    content: none;
    display: none;
    background: none;
}

header {
    background: linear-gradient(180deg, rgba(12, 20, 43, 0.98), rgba(22, 31, 65, 0.93));
    border-bottom-color: rgba(249, 208, 110, 0.26);
    box-shadow: 0 12px 40px rgba(4, 8, 24, 0.42);
}

.logo-main,
.footer-logo-main {
    color: #ffc83d;
    background: none;
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 0;
    filter: none;
    text-shadow: 0 2px 0 #17265e, 0 0 12px rgba(255, 200, 61, 0.24);
}

.logo-sub,
.footer-logo-sub {
    color: #78dcff;
    background: none;
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 0;
    filter: none;
    text-shadow: 0 2px 0 #17265e, 0 0 12px rgba(120, 220, 255, 0.24);
}

.nav-links a {
    color: rgba(248, 244, 235, 0.88);
}

.nav-links a:hover,
.footer-links a:hover,
.footer-legal a:hover {
    color: var(--secondary);
}

.footer-content {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
    align-items: start;
}

.footer-link-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(24px, 4vw, 64px);
}

.footer-link-groups .footer-links {
    margin: 0;
    padding: 0;
}

.footer-link-groups li {
    min-width: 0;
}

.footer-link-groups a {
    align-items: flex-start;
    padding-left: 0;
}

.footer-link-groups a:hover {
    padding-left: 0;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-about {
        grid-column: auto;
    }
}

.nav-links a::after,
.scroll-progress {
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-light), var(--secondary), var(--primary));
}

.language-btn,
.menu-toggle {
    border-color: rgba(159, 215, 233, 0.4);
    background: rgba(92, 103, 198, 0.12);
}

.language-btn:hover,
.menu-toggle:hover {
    border-color: var(--secondary);
    background: rgba(92, 103, 198, 0.24);
}

.language-dropdown,
.primary-navigation {
    border-color: rgba(249, 208, 110, 0.24);
    background: rgba(17, 25, 54, 0.98);
    box-shadow: 0 22px 55px rgba(4, 8, 24, 0.62);
}

.language-option:hover,
.language-option.active {
    color: var(--cream-light);
    background: rgba(92, 103, 198, 0.28);
}

.language-dropdown::-webkit-scrollbar-thumb {
    background: var(--accent);
}

.hero::before {
    background:
        linear-gradient(180deg, rgba(8, 14, 34, 0.18) 0%, rgba(13, 21, 47, 0.55) 52%, #111a35 100%),
        linear-gradient(90deg, rgba(12, 21, 49, 0.62), rgba(73, 86, 158, 0.08) 50%, rgba(15, 24, 54, 0.5)),
        image-set(
            url('../images/hero-background-optimized.webp') type("image/webp"),
            url('../images/hero-background-optimized.jpg') type("image/jpeg")
        ) center 18% / cover no-repeat;
}

.hero::after {
    background: linear-gradient(to bottom, transparent, #111a35 94%);
}

.title-main {
    color: var(--secondary);
    background: none;
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 0;
    filter: none;
    text-shadow: 0 3px 0 #17265e, 0 0 18px rgba(255, 200, 61, 0.2);
}

.title-sub {
    color: #78dcff;
    background: none;
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 0;
    filter: none;
    text-shadow: 0 3px 0 #17265e, 0 0 18px rgba(120, 220, 255, 0.2);
}

@media (max-width: 600px) {
    html[lang="ko"] .hero-title .title-main,
    html[lang="ja"] .hero-title .title-main,
    html[lang="ja"] .hero-title .title-sub,
    html[lang^="zh"] .hero-title .title-main,
    html[lang^="zh"] .hero-title .title-sub {
        display: block;
        font-size: clamp(2.15rem, 10vw, 2.45rem);
        letter-spacing: -0.045em;
        line-height: 1.05;
    }

    html[lang="ja"] .hero-title .title-sub::before,
    html[lang^="zh"] .hero-title .title-sub::before {
        content: none;
    }
}

.title-season {
    border-color: rgba(249, 208, 110, 0.52);
    background: rgba(38, 48, 95, 0.76);
    color: #fff2b5;
}

.hero-description {
    color: rgba(248, 244, 235, 0.9);
}

.trailer-container,
.residents-portrait {
    border-color: rgba(249, 208, 110, 0.42);
    background: linear-gradient(135deg, rgba(249, 208, 110, 0.13), rgba(92, 103, 198, 0.18));
    box-shadow: 0 30px 76px rgba(4, 8, 24, 0.54), 0 0 0 1px rgba(159, 215, 233, 0.1);
}

.local-video,
.case-preview-label {
    background: rgba(12, 18, 42, 0.9);
}

.case-preview-label {
    border-color: rgba(159, 215, 233, 0.3);
}

.btn-primary,
.download-btn,
.download-card-btn,
.mirror-btn,
html body.download-page .mirror-btn {
    color: #17214b;
    border-color: rgba(255, 238, 179, 0.8);
    background: var(--button-bg);
    box-shadow: var(--button-shadow);
}

.btn-primary:hover,
.download-btn:hover,
.download-card-btn:hover,
.mirror-btn:hover,
html body.download-page .mirror-btn:hover {
    color: #111a3d;
    background: var(--button-bg-hover);
    box-shadow: var(--button-shadow-hover);
}

.btn-secondary {
    color: #fff;
    border-color: rgba(159, 215, 233, 0.64);
    background: linear-gradient(135deg, #6574d2, #4057b6 58%, #2f4395);
    box-shadow: 0 14px 34px rgba(40, 58, 143, 0.34);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7887df, #5068c6 58%, #3b50a8);
    box-shadow: 0 20px 44px rgba(50, 74, 167, 0.42);
}

.section-title,
.section-eyebrow,
.download-card-title,
.character-name,
html body.download-page .mirror-icon,
html body.download-page .mirror-card h2,
html body.download-page .download-warning-title,
html body.download-page .locked-release-title {
    color: var(--secondary);
}

.section-title::after,
html body.download-page .download-main-title::after {
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-light), var(--secondary));
}

#about,
.characters,
#screenshots,
.download,
#faq {
    background:
        radial-gradient(circle at 10% 18%, rgba(92, 103, 198, 0.11), transparent 30%),
        radial-gradient(circle at 92% 82%, rgba(249, 208, 110, 0.08), transparent 28%),
        linear-gradient(180deg, #111a35, #202b52);
}

.feature-card,
.faq-item,
.character-card,
.screenshot-item,
.download-card,
.requirement-card,
html body.download-page .mirror-card,
html body.download-page .locked-release-card,
html body.download-page .download-warning-box {
    border-color: rgba(159, 215, 233, 0.2);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.055), transparent 50%),
        rgba(27, 39, 77, 0.92);
    box-shadow: 0 20px 48px rgba(4, 8, 24, 0.36);
}

.feature-card:hover,
.faq-item:hover,
.character-card:hover,
.screenshot-item:hover,
html body.download-page .mirror-card:hover {
    border-color: rgba(249, 208, 110, 0.55);
    box-shadow: 0 28px 62px rgba(4, 8, 24, 0.5), 0 0 28px rgba(92, 103, 198, 0.14);
}

.feature-icon {
    color: #16214b;
    background: linear-gradient(135deg, #fff0a0, #f3aa4e);
    box-shadow: 0 12px 28px rgba(231, 139, 63, 0.26);
}

.feature-card:nth-child(2n) .feature-icon {
    color: #fff;
    background: linear-gradient(135deg, #9fd7e9, #5c67c6);
    box-shadow: 0 12px 28px rgba(50, 74, 167, 0.3);
}

.character-card {
    height: 100%;
    min-height: 410px;
    border-color: rgba(112, 137, 235, 0.42);
    background: #121d3e;
    transform: none;
}

.character-card:nth-child(2n),
.character-card:nth-child(3n),
.character-card.visible {
    transform: none;
}

.character-card:hover {
    transform: translateY(-6px);
}

.character-card::after,
.character-info {
    background: none;
}

.character-info {
    height: 100%;
    padding: 24px 20px;
}

.character-name,
.character-role,
.character-route {
    text-align: center;
}

.character-name {
    color: var(--secondary);
}

.character-role {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: #78dcff;
}

.character-info .character-description {
    color: rgba(247, 249, 255, 0.92);
}

.character-route {
    color: #fff;
    border-color: rgba(159, 215, 233, 0.34);
    background: linear-gradient(135deg, rgba(92, 103, 198, 0.88), rgba(50, 74, 167, 0.9));
}

.character-role,
.character-quote,
.requirement-value,
.download-card-tagline,
.mirror-tagline,
html body.download-page .mirror-tagline {
    color: #9fe6ff;
}

.character-quote {
    box-sizing: border-box;
    min-height: 114px;
    border-top-color: rgba(255, 200, 61, 0.42);
    color: #d9f5ff;
}

.character-meter {
    background: rgba(255, 255, 255, 0.13);
}

.character-meter span,
.volume-slider-fill {
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--secondary));
}

.volume-slider-thumb {
    box-shadow: 0 0 12px rgba(159, 215, 233, 0.46);
}

.lightbox {
    background: rgba(5, 9, 23, 0.97);
}

.lightbox-nav {
    border-color: rgba(159, 215, 233, 0.46);
    background: rgba(24, 35, 74, 0.9);
}

.lightbox-nav:hover {
    color: #17214b;
    border-color: var(--secondary);
    background: var(--secondary);
}

footer,
html body.download-page footer {
    border-top-color: rgba(249, 208, 110, 0.18);
    background: linear-gradient(160deg, #17213f, #0c1228);
}

.requirement-list li {
    border-bottom-color: rgba(120, 220, 255, 0.18);
}

html body.download-page .download-hero {
    background:
        linear-gradient(180deg, rgba(15, 23, 51, 0.48), rgba(20, 31, 67, 0.93)),
        url('../images/hero-background-optimized.jpg') center 24% / cover no-repeat;
}

html body.download-page .mirror-card::before,
html body.download-page .locked-release-card::before {
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-light), var(--secondary));
}

html body.download-page .download-warning-box {
    border-left-color: var(--secondary);
}

:where(a, button, input):focus-visible {
    outline-color: #ffe17d;
}

@media (max-width: 900px) {
    .primary-navigation {
        background: rgba(15, 23, 51, 0.98);
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-wrap: nowrap;
    }

    .logo {
        order: 1;
    }

    .language-selector {
        order: 2;
        margin-left: auto;
    }

    .menu-toggle {
        order: 3;
        flex: 0 0 46px;
        margin-left: 0;
    }

    .primary-navigation {
        order: 4;
    }

    .hero-content,
    .hero-title,
    .hero-description,
    .trailer-container,
    .cta-buttons {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .hero-title {
        padding-inline: 0;
    }

    .hero-title .title-main,
    .hero-title .title-sub {
        display: block;
        width: 100%;
        font-size: clamp(2.15rem, 11vw, 2.75rem);
        line-height: 1.02;
        overflow-wrap: normal;
    }

    .hero-title .title-sub::before {
        content: none;
    }

    .trailer-container {
        box-sizing: border-box;
    }
}

