:root {
    --bg: #f4f5fa;
    --surface: rgba(20, 18, 40, 0.04);
    --surface-solid: #ffffff;
    --surface-2: rgba(20, 18, 40, 0.06);
    --border: rgba(20, 18, 40, 0.1);
    --border-glow: rgba(157, 92, 255, 0.35);
    --text: #17162a;
    --text-dim: #62617a;
    --accent: #9d5cff;
    --accent-2: #00e5ff;
    --success: #23e69a;
    --danger: #ff3e8e;
    --warning: #ffb020;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 20px 50px rgba(20, 18, 40, 0.1);
    --glow: 0 0 0 1px rgba(157, 92, 255, 0.25), 0 10px 40px rgba(157, 92, 255, 0.15);
    --bg-wash-1: rgba(157, 92, 255, 0.14);
    --bg-wash-2: rgba(0, 197, 255, 0.1);
    --bg-wash-3: rgba(255, 62, 142, 0.08);
    --accent-2-ink: #0891b2;
    --header-bg: rgba(255, 255, 255, 0.85);
    --fh-bg: #fff6fa;
    --fh-surface: #ffffff;
    --fh-border: #f2eaf3;
    --fh-ink: #1e144f;
    --fh-ink-dim: #7e76a3;
    --fh-pink: #f41b75;
    --fh-pink-light: #ffe6f1;
    --fh-cream: #fff4e6;
    --fh-pink-border: #ffe0ee;
    --fh-yellow: #fff2c2;
}

:root[data-theme="dark"] {
    --bg: #000000;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-solid: #0d0d0d;
    --surface-2: rgba(255, 255, 255, 0.09);
    --border: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(157, 92, 255, 0.5);
    --text: #f5f5f5;
    --text-dim: #9a9a9a;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    --glow: 0 0 0 1px rgba(157, 92, 255, 0.35), 0 10px 40px rgba(157, 92, 255, 0.25);
    --bg-wash-1: rgba(157, 92, 255, 0.16);
    --bg-wash-2: rgba(0, 229, 255, 0.1);
    --bg-wash-3: rgba(255, 62, 142, 0.08);
    --accent-2-ink: var(--accent-2);
    --header-bg: rgba(0, 0, 0, 0.85);
    --fh-bg: #000000;
    --fh-surface: #121212;
    --fh-border: #262626;
    --fh-ink: #f5f5f5;
    --fh-ink-dim: #9a9a9a;
    --fh-pink: #ff4f96;
    --fh-pink-light: #1a1015;
    --fh-cream: #1a1712;
    --fh-pink-border: #2b2b2b;
    --fh-yellow: #2b2712;
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background:
        radial-gradient(900px 500px at 8% -5%, var(--bg-wash-1), transparent 60%),
        radial-gradient(800px 500px at 95% 5%, var(--bg-wash-2), transparent 60%),
        radial-gradient(700px 600px at 50% 100%, var(--bg-wash-3), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    margin: 0;
    padding: 0;
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.1px;
    transition: background-color 0.25s ease, color 0.25s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

a {
    transition: color 0.2s ease;
}

h1,
h2,
h3 {
    letter-spacing: -0.3px;
}

/* header css */
:root {
    --header-h: 68px;
    --rail-w: 260px;
}

header {
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--header-h);
    padding: 0 24px;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(160%);
    /* border-bottom: 1px solid var(--border); */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
}

@media (min-width: 769px) {
    header {
        left: var(--rail-w, 260px);
        width: calc(100% - var(--rail-w, 260px));
        background: transparent;
        backdrop-filter: none;
        justify-content: flex-end;
        padding: 20px 32px 0;
        height: auto;
    }

    header #menu-toggle,
    header .logo {
        display: none;
    }
}

body.is-home header {
    display: none;
}

body.is-home {
    padding-top: 0;
}

.fh-header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Figma-matched header controls, homepage only */
body.is-home .theme-toggle {
    background: var(--fh-surface, #fff);
    border: 1px solid var(--fh-border, #f2eaf3);
    color: var(--fh-ink, #1e144f);
    box-shadow: 0 2px 6px rgba(30, 20, 79, 0.08);
}

body.is-home .dropdown-btn {
    background: var(--fh-surface, #fff);
    border: 1px solid var(--fh-border, #f2eaf3);
    color: var(--fh-ink, #1e144f);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

body.is-home .dropdown-content {
    background: var(--fh-surface, #fff);
    border: 1px solid var(--fh-border, #f2eaf3);
}

body.is-home .dropdown-content a {
    color: var(--fh-ink, #1e144f);
}

body.is-home .dropdown-content a:hover {
    background: var(--fh-bg, #fff6fa);
}

body.is-home .profile {
    background: var(--fh-surface, #fff);
    border: 1px solid var(--fh-border, #f2eaf3);
    box-shadow: 0 2px 6px rgba(30, 20, 79, 0.12);
    color: var(--fh-pink, #f41b75);
}

body.is-home .profile button {
    color: var(--fh-pink, #f41b75);
    font-size: 16px;
}

body {
    padding-top: var(--header-h);
}

body.no-header {
    padding-top: 0;
}

body.is-home,
body.no-header {
    background: var(--fh-bg, #fff6fa);
}

body.no-header main {
    margin-left: 0;
    width: 100%;
}

.logo {
    max-width: 110px;
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.25s ease;
    filter: drop-shadow(0 0 10px rgba(157, 92, 255, 0.4));
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.06);
}

.logo-icon {
    display: none;
    max-width: 36px;
}

@media (max-width: 480px) {
    .logo-full {
        display: none;
    }

    .logo-icon {
        display: block;
    }
}

/* sidebar / nav rail (Figma light design) */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--rail-w);
    height: 100vh;
    background: var(--fh-surface, #fff);
    border-right: 1px solid var(--fh-border, #f2eaf3);
    padding: 32px 20px 20px;
    overflow: hidden;
    z-index: 400;
    transform: none;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
        padding-top: calc(var(--header-h) + 20px);
    }
}

.sidebar::-webkit-scrollbar {
    width: 0;
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 14px;
    right: 14px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--fh-bg, #fff6fa);
    cursor: pointer;
    font-size: 16px;
    color: var(--fh-ink, #1e144f);
    z-index: 5;
    flex-shrink: 0;
}

.sidebar.show .sidebar-close {
    display: flex;
}

.fh-sidebar-logo {
    max-width: 100%;
    cursor: pointer;
    flex-shrink: 0;
}

.options {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    flex: 1;
}

.fh-spotlight-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid var(--fh-pink-border, #ffd5e5);
    background: linear-gradient(180deg, var(--fh-pink-light, #fff3f6), var(--fh-cream, #ffebf1));
    text-align: center;
    flex-shrink: 0;
    text-decoration: none;
    position: relative;
    transition: opacity 0.2s ease;
}

.fh-spotlight-widget.fh-spotlight-fade {
    opacity: 0;
}

.fh-spotlight-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--fh-pink, #f41b75);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.fh-spotlight-img {
    width: 100%;
    height: 90px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-color: var(--fh-border, #f2eaf3);
}

.fh-spotlight-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--fh-ink, #1e144f);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.fh-spotlight-btn {
    padding: 8px 16px;
    border-radius: 12px;
    background: var(--fh-pink, #f41b75);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.fh-spotlight-widget:hover .fh-spotlight-img {
    transform: scale(1.02);
}

.options li {
    margin: 0;
    position: relative;
}

.options a {
    color: var(--fh-ink, #1e144f);
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 16px;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.options a:hover {
    background: var(--fh-bg, #fff6fa);
}

.options a i {
    font-size: 18px;
    color: currentColor;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.options a span {
    display: inline;
}

.options a.active {
    background: var(--fh-pink, #f41b75);
    color: #fff;
}

.options a.active:hover {
    background: var(--fh-pink, #f41b75);
}

input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]::placeholder {
    color: var(--text-dim);
}

input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(157, 92, 255, 0.15);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
    transition: border-color 0.2s ease, transform 0.18s ease;
}

.theme-toggle:hover {
    border-color: var(--accent-2);
    transform: translateY(-1px);
}

.theme-toggle .theme-icon-dark {
    display: none;
}

.theme-toggle .theme-icon-light {
    color: var(--warning);
}

:root[data-theme="dark"] .theme-toggle .theme-icon-light {
    display: none;
}

:root[data-theme="dark"] .theme-toggle .theme-icon-dark {
    display: block;
    color: var(--accent);
}

.profile {
    background: linear-gradient(135deg, var(--accent), #039BE6);
    border: none;
    padding: 8px;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.4px;
    box-shadow: 0 8px 20px rgba(157, 92, 255, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    flex-shrink: 0;
}

.profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(157, 92, 255, 0.5);
}

.profile button {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.4px;
}

/* footer */
footer {
    position: relative;
    bottom: 0;
    width: 100%;
    border-top: 1px solid var(--border);
    background: var(--header-bg);
    backdrop-filter: blur(12px);
}

body.is-home footer {
    background: var(--fh-bg, #fff6fa);
    border-top: 1px solid var(--fh-border, #f2eaf3);
}

body.is-home .foot {
    color: var(--fh-ink-dim, #7e76a3);
}

body.is-home footer a {
    color: var(--fh-ink-dim, #7e76a3);
}

body.is-home footer a:hover {
    color: var(--fh-pink, #f41b75);
}

.foot {
    margin: 0;
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 12.5px;
}

.pptnc p {
    margin: 0;
}

footer a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    color: var(--accent-2-ink);
}

.game-row {
    position: relative;
}

.no-games {
    padding: 40px 28px;
    color: var(--text-dim);
}

/* privacy and terms */
.privacy {
    border: 1.5px solid var(--fh-border, #f2eaf3);
    background: var(--fh-surface, #fff);
    border-radius: 24px;
    margin: 0 auto;
    padding: 32px 36px;
    max-width: 860px;
    width: 100%;
    line-height: 1.7;
    color: var(--fh-ink-dim, #7e76a3);
}

.privacy h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    color: var(--fh-ink, #1e144f);
}

.privacy > p:first-of-type {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--fh-ink-dim, #7e76a3);
}

.privacy hr {
    border: none;
    border-top: 1px solid var(--fh-border, #f2eaf3);
    margin: 0 0 20px;
}

.privacy > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.privacy > ul > li > b {
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 800;
    color: var(--fh-ink, #1e144f);
}

.privacy ul,
.privacy ol {
    padding-left: 22px;
    margin: 8px 0;
}

.privacy li {
    margin: 4px 0;
}

.privacy a {
    color: var(--fh-pink, #f41b75);
}

.login {
    border: 1px solid var(--border);
    border-radius: 16px;
    background-color: var(--surface);
    color: var(--text);
    padding: 12px 16px;
    margin: 16px 0;
}

.login1 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    height: calc(100vh - var(--header-h, 68px));
    overflow: hidden;
    padding: 20px;
    background: var(--fh-bg, #fff6fa);
}

.fh-standalone-main {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-h, 68px));
    overflow: hidden;
}

.fh-standalone-topbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 12px;
    flex-shrink: 0;
    padding: 24px 32px 0;
}

.fh-standalone-main .login1 {
    height: auto;
}

body.no-header .login1 {
    height: 100vh;
}

.fh-login-modal {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    background: var(--fh-surface, #fff);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(30, 20, 79, 0.12);
}

.fh-login-banner {
    position: relative;
    flex-shrink: 0;
    height: 160px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 32px;
    background: linear-gradient(90deg, var(--fh-pink-light, #ffe6f1), var(--fh-cream, #fff4e6));
    border-bottom: 1px solid var(--fh-pink-light, #ffe6f1);
}

.fh-login-star {
    position: absolute;
    color: #ffd166;
}

.fh-login-star-1 {
    top: 30px;
    left: 40px;
    font-size: 20px;
}

.fh-login-star-2 {
    top: 40px;
    right: 40px;
    font-size: 16px;
    color: var(--fh-pink, #f41b75);
}

.fh-login-star-3 {
    top: 70px;
    left: 100px;
    font-size: 14px;
}

.fh-login-star-4 {
    top: 110px;
    right: 100px;
    font-size: 18px;
    color: #ffd166;
}

.fh-login-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fh-surface, #fff);
    border-radius: 16px;
    color: var(--fh-ink, #1e144f);
    text-decoration: none;
    box-shadow: 0 2px 3px rgba(30, 20, 79, 0.06);
}

.fh-login-close:hover {
    color: var(--fh-pink, #f41b75);
}

.fh-login-icon-wrap {
    position: absolute;
    left: 50%;
    bottom: -48px;
    transform: translateX(-50%);
    width: 96px;
    height: 96px;
    padding: 4px;
    background: var(--fh-surface, #fff);
    border-radius: 28px;
    box-shadow: 0 4px 4px rgba(30, 20, 79, 0.1);
    display: flex;
}

.fh-login-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--fh-pink, #f41b75), #ff6ea7);
    color: #fff;
    font-size: 40px;
}

.fh-login-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 56px 32px 32px;
    min-height: 0;
    overflow-y: auto;
}

.fh-login-title {
    margin: 0;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--fh-ink, #1e144f);
}

.fh-login-subtitle {
    margin: 8px 0 0;
    text-align: center;
    color: var(--fh-ink-dim, #7e76a3);
    font-size: 14px;
    font-weight: 600;
}

.fh-login-error {
    margin: 0;
    text-align: center;
    color: var(--fh-pink, #f41b75);
    font-weight: 700;
    font-size: 13px;
}

.fh-login-phone-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    background: var(--fh-bg, #fff6fa);
    border: 1px solid var(--fh-border, #f2eaf3);
    border-radius: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fh-login-phone-group:focus-within {
    border-color: var(--fh-pink, #f41b75);
    box-shadow: 0 0 0 4px rgba(244, 27, 117, 0.12);
}

.fh-login-country {
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    border: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 256 256'%3E%3Cpath fill='%237e76a3' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80A8 8 0 0 1 53.66 90.34L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 18px;
    color: var(--fh-ink, #1e144f);
    font-size: 14px;
    font-weight: 700;
    max-width: 100px;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fh-login-country option {
    background: var(--fh-surface, #fff);
    color: var(--fh-ink, #1e144f);
}

.fh-login-divider-v {
    width: 1px;
    height: 20px;
    background: var(--fh-border, #f2eaf3);
    flex-shrink: 0;
}

.fh-login-input {
    flex: 1 1 auto;
    min-width: 60px;
    outline: none;
    border: none;
    background: transparent;
    color: var(--fh-ink, #1e144f);
    font-size: 12px;
    font-weight: 600;
}

.fh-login-input::placeholder {
    color: var(--fh-ink-dim, #7e76a3);
}

.fh-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    background: linear-gradient(90deg, var(--fh-pink, #f41b75), #ff5294);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 4px rgba(244, 27, 117, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fh-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(244, 27, 117, 0.22);
}

.fh-login-hr {
    width: 100%;
    height: 1px;
    background: var(--fh-border, #f2eaf3);
}

.fh-login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.fh-login-footer a {
    color: var(--fh-ink-dim, #7e76a3);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.fh-login-footer a:hover {
    color: var(--fh-pink, #f41b75);
}

.fh-login-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--fh-border, #f2eaf3);
}

.fh-profile-avatar-wrap {
    position: absolute;
    left: 50%;
    bottom: -48px;
    transform: translateX(-50%);
    width: 96px;
    height: 96px;
    padding: 4px;
    background: var(--fh-surface, #fff);
    border-radius: 50%;
    box-shadow: 0 4px 4px rgba(30, 20, 79, 0.1);
    display: flex;
}

.fh-profile-avatar {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fh-pink, #f41b75), #ff6ea7);
    color: #fff;
    font-size: 36px;
}

.fh-profile-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.fh-profile-details {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 12px;
    background: var(--fh-bg, #fff6fa);
    border: 1px solid var(--fh-border, #f2eaf3);
    border-radius: 20px;
}

.fh-profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 8px;
    border-bottom: 1px solid var(--fh-border, #f2eaf3);
}

.fh-profile-row:last-child {
    border-bottom: none;
}

.fh-profile-row-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--fh-ink, #1e144f);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.fh-profile-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--fh-pink-light, #ffe6f1);
    color: var(--fh-pink, #f41b75);
    font-size: 16px;
}

.fh-profile-row-value {
    color: var(--fh-ink-dim, #7e76a3);
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.fh-profile-status {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: none;
}

.fh-profile-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fh-ink-dim, #7e76a3);
}

.fh-profile-status.is-active {
    color: #28c840;
}

.fh-profile-status.is-active .fh-profile-status-dot {
    background: #28c840;
}

.fh-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.fh-profile-unsub-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    background: var(--fh-surface, #fff);
    border: 2px solid var(--fh-pink, #f41b75);
    border-radius: 16px;
    color: var(--fh-pink, #f41b75);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease;
}

.fh-profile-unsub-btn:hover {
    background: var(--fh-bg, #fff6fa);
}

@media (max-width: 640px) {
    .login1 {
        padding: 16px;
    }

    .fh-login-body {
        padding: 60px 20px 32px;
        gap: 22px;
    }

    .fh-login-title {
        font-size: 22px;
    }

    .fh-login-subtitle {
        font-size: 13px;
    }

    .fh-login-country {
        max-width: 185px;
        font-size: 11px;
    }

    .fh-login-input {
        min-width: 50px;
        font-size: 11px;
    }

    .fh-login-star-2 {
        right: 24px;
    }

    .fh-login-star-4 {
        right: 60px;
    }

    .fh-login-banner {
        height: 120px;
        padding-bottom: 0;
    }

    .fh-login-icon-wrap,
    .fh-profile-avatar-wrap {
        width: 72px;
        height: 72px;
        bottom: -36px;
    }

    .fh-login-icon {
        font-size: 30px;
        border-radius: 20px;
    }

    .fh-profile-avatar {
        font-size: 26px;
    }

    .fh-login-body {
        padding-top: 48px;
        gap: 16px;
    }

    .fh-profile-details {
        padding: 8px;
    }

    .fh-profile-row {
        gap: 8px;
        padding: 10px 6px;
    }

    .fh-profile-row-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .fh-profile-actions {
        gap: 10px;
    }

    .fh-login-btn {
        height: 46px;
    }

    .fh-profile-unsub-btn {
        height: 46px;
    }

    .fh-profile-row-label {
        font-size: 13px;
    }

    .fh-profile-row-value {
        max-width: 130px;
        font-size: 13px;
    }
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 6, 12, 0.6);
    z-index: 998;
}

.sidebar-backdrop.show {
    display: block;
}

@media (min-width: 769px) {
    .sidebar-backdrop {
        display: none !important;
    }
}


.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 40px 48px;
    box-shadow: var(--shadow);
}

.lbutton {
    margin: 24px 8px 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: none;
    color: #06060c;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 12px 28px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(157, 92, 255, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lbutton:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(157, 92, 255, 0.45);
}

.cloud {
    max-width: 40%;
    filter: drop-shadow(0 10px 30px rgba(157, 92, 255, 0.2));
}

/* loader */
.loader-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fh-bg, #fff6fa);
    z-index: 999;
}

.loader-gif {
    width: 100%;
    max-width: 240px;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
}

.hide {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    display: none;
}

#menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    font-size: 20px;
    flex-shrink: 0;
}

.language-selector {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
    transition: border-color 0.2s ease;
}

.dropdown-btn:hover {
    border-color: var(--accent);
}

.dropdown-content {
    display: block;
    position: absolute;
    top: 100%;
    right: -8px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    z-index: 20;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-width: 100%;
    margin-top: 6px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.dropdown-content a {
    color: var(--text-dim);
    padding: 9px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    font-size: 12.5px;
}

.dropdown-content a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.dropdown-content.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


@media only screen and (max-width: 780px) {
    .play {
        width: 90%;
    }

    .cloud {
        max-width: 45%;
    }
}

@media (min-width: 769px) {

    main,
    footer {
        margin-left: var(--rail-w);
        width: calc(100% - var(--rail-w));
    }
}

@media(max-width:768px) {
    header {
        padding: 0 14px;
        gap: 10px;
    }

    .logo {
        max-width: 84px;
    }

    .sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 270px;
        height: 100%;
        background: var(--fh-surface, #fff);
        color: var(--fh-ink, #1e144f);
        overflow-y: auto;
        z-index: 999;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
        border-right: 1px solid var(--fh-border, #f2eaf3);
        box-shadow: var(--shadow);
    }

    .sidebar.show {
        display: flex;
        transform: translateX(0);
    }

    .icon {
        display: block;
        font-size: 22px;
        color: var(--text);
    }
}

@media only screen and (max-width: 430px) {
    .cloud {
        max-width: 80%;
    }

    .foot {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .container {
        padding: 28px 22px;
    }
}

@media only screen and (max-width: 330px) {
    .cloud {
        max-width: 95%;
    }
}

/* site-wide animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (prefers-reduced-motion: no-preference) {
    .privacy {
        animation: fadeInUp 0.5s ease both;
    }
}

.icon,
#menu-toggle i,
.dropdown-btn i {
    transition: transform 0.18s ease;
}

.language-selector:hover #current-language i,
#menu-toggle:hover i {
    transform: scale(1.12);
}

.lbutton:active,
.profile:active,
.row-scroll-btn:active {
    transform: scale(0.96);
}

.options a i {
    transition: transform 0.2s ease, color 0.2s ease;
}

.options a:hover i {
    transform: translateY(-2px) scale(1.1);
}

.options a span {
    transition: transform 0.2s ease;
}

.options a:hover span {
    transform: translateY(-2px) scale(1.06);
    color: var(--text);
}

/* ===== Homepage (Figma light layout) ===== */
.fig-home {
    background: var(--fh-bg);
    border-radius: 28px;
    padding: 24px 32px 40px;
    min-height: calc(100vh - var(--header-h, 68px));
    display: flex;
    flex-direction: column;
    gap: 28px;
    color: var(--fh-ink);
    font-family: "Nunito", sans-serif;
}

.fh-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.fh-topbar-logo {
    display: none;
}

.fh-greeting {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 900;
    color: var(--fh-ink);
}

.fh-sub {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--fh-ink-dim);
}

.fh-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 16px;
    background: var(--fh-yellow);
    color: var(--fh-ink);
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.fh-stars i {
    color: #f5a623;
    font-size: 16px;
}

.fh-hero-row {
    display: flex;
    gap: 24px;
    align-items: stretch;
    flex-wrap: wrap;
}

.fh-hero {
    flex: 1 1 420px;
    position: relative;
    min-height: 280px;
    border-radius: 32px;
    border: 1.5px solid var(--fh-pink-border);
    background: linear-gradient(120deg, var(--fh-pink-light), var(--fh-cream)), #fff;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 32px;
}

.fh-hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(4, 6, 14, 0.94) 0%, rgba(4, 6, 14, 0.82) 38%, rgba(4, 6, 14, 0.35) 62%, rgba(4, 6, 14, 0.05) 85%),
        linear-gradient(to top, rgba(4, 6, 14, 0.55) 0%, transparent 35%);
    pointer-events: none;
}

.fh-hero-content {
    position: relative;
    z-index: 1;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fh-hero-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.fh-hero-desc {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fh-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 12px 24px;
    border-radius: 16px;
    background: var(--fh-pink);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(244, 27, 117, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fh-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(244, 27, 117, 0.35);
}

.fh-minicards {
    flex: 1 1 340px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.fh-hero-body {
    display: contents;
}

.fh-hero-top-row {
    display: contents;
}

.fh-hero-thumb {
    display: none;
}

.fh-minicard {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    padding: 12px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.fh-minicard:hover {
    transform: translateY(-3px);
}

.fh-minicard-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 20, 79, 0.65), rgba(30, 20, 79, 0.15) 60%);
}

.fh-minicard-title {
    position: relative;
    z-index: 1;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

.fh-minicard-arrow {
    position: relative;
    z-index: 1;
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background: var(--fh-surface, #fff);
    color: var(--fh-ink);
    font-size: 11px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.fh-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    content-visibility: auto;
    contain-intrinsic-size: 0 320px;
}

.fh-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fh-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 900;
    color: var(--fh-ink);
    text-decoration: none;
}

.fh-section-title i {
    color: var(--fh-pink);
    font-size: 18px;
}

.fh-section-nav {
    display: flex;
    gap: 8px;
}

.fh-chip-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.fh-chip-row::-webkit-scrollbar {
    display: none;
}

.fh-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--fh-surface, #fff);
    border: 1.5px solid var(--fh-pink-border);
    color: var(--fh-ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.fh-chip i {
    font-size: 13px;
    color: var(--fh-pink);
}

.fh-chip:hover {
    border-color: var(--fh-pink);
}

.fh-chip.active {
    background: var(--fh-pink);
    border-color: var(--fh-pink);
    color: #fff;
}

.fh-chip.active i {
    color: #fff;
}

.fig-home .row-scroll-btn {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background: var(--fh-surface);
    border: 1px solid var(--fh-border);
    color: var(--fh-ink);
    font-size: 14px;
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
    transition: background 0.15s ease;
}

.fig-home .row-scroll-btn:hover {
    background: var(--fh-pink-light, #ffe6f1);
}

.fh-cards-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex: 1;
}

.fh-cards-track::-webkit-scrollbar {
    display: none;
}

.fh-cards-track--grid {
    flex-wrap: wrap;
    overflow-x: visible;
}

.fh-game-card {
    flex: 0 0 200px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.fh-game-card-img {
    width: 100%;
    height: 150px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-color: var(--fh-border);
    box-shadow: 0 4px 8px rgba(30, 20, 79, 0.06);
    transition: transform 0.2s ease;
}

.fh-game-card:hover .fh-game-card-img {
    transform: translateY(-3px);
}

.fh-game-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--fh-ink);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.fh-info-strip {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: 24px;
    background: var(--fh-surface);
    border: 1.5px solid var(--fh-border);
    flex-wrap: wrap;
    margin-top: auto;
}

.fh-info-badge {
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fh-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: var(--fh-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fh-pink);
    font-size: 18px;
}

.fh-info-text {
    min-width: 0;
}

.fh-info-title {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 800;
    color: var(--fh-ink);
}

.fh-info-sub {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--fh-ink-dim);
}

.fh-info-divider {
    width: 1px;
    height: 40px;
    background: var(--fh-border);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .fh-minicards {
        grid-template-columns: repeat(2, 1fr);
    }

    .fh-info-divider {
        display: none;
    }
}

@media (max-width: 640px) {
    .fig-home {
        padding: 18px;
        border-radius: 20px;
    }

    .fh-hero {
        background-image: none !important;
        background: linear-gradient(120deg, var(--fh-pink-light), var(--fh-cream));
        border: 1.5px solid var(--fh-pink-border);
        padding: 20px;
        min-height: auto;
        align-items: stretch;
    }

    .fh-hero-scrim {
        display: none;
    }

    .fh-hero-body {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .fh-hero-top-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .fh-hero-content {
        max-width: 210px;
        gap: 6px;
    }

    .fh-hero-title {
        color: var(--fh-ink);
        font-size: 22px;
        line-height: 1.3;
        text-shadow: none;
    }

    .fh-hero-desc {
        color: var(--fh-ink-dim);
        text-shadow: none;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .fh-hero-thumb {
        display: block;
        width: 110px;
        height: 110px;
        flex-shrink: 0;
        border-radius: 16px;
        background-size: cover;
        background-position: center;
        box-shadow: 0 8px 16px rgba(30, 20, 79, 0.06);
    }

    .fh-cta {
        width: 100%;
        justify-content: center;
    }

    .fh-minicards {
        display: none;
    }

    .fh-section-nav {
        display: none;
    }

    .fh-cards-track {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .fh-game-card {
        flex: 0 0 calc(50% - 8px);
    }

    .fh-cards-track:not(.fh-cards-track--grid):not(#fh-related-row) .fh-game-card:nth-child(n+5) {
        display: none;
    }

    .fh-game-card-img {
        height: 115px;
    }

    .fh-info-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .fh-info-strip::-webkit-scrollbar {
        display: none;
    }

    .fh-info-badge {
        flex: 0 0 260px;
    }

    .fh-topbar-logo {
        display: block;
        height: 32px;
        width: auto;
        order: 1;
        cursor: pointer;
    }

    .fh-header-controls {
        order: 2;
        margin-left: auto;
    }

    .fh-greeting-block {
        order: 3;
        flex-basis: 100%;
    }

    body.is-subpage .fh-greeting-block {
        display: none;
    }

    body.is-home .fh-header-controls .profile {
        display: none;
    }

    .fh-back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        border-radius: 12px;
        background: var(--fh-surface, #fff);
        border: 1px solid var(--fh-border, #f2eaf3);
        color: var(--fh-ink, #1e144f);
        text-decoration: none;
        order: 0;
    }

    body.is-play .fh-topbar-logo {
        order: 1;
        height: 28px;
    }

    body.is-play .fh-header-controls {
        order: 2;
    }

    body.is-play .fh-breadcrumb {
        order: 3;
        flex-basis: 100%;
        font-size: 12px;
    }

    .fh-hero-section-actions {
        width: 100%;
    }

    .fh-play-cta {
        flex: 1;
        min-width: 0;
        padding: 14px 20px;
        justify-content: center;
        text-transform: uppercase;
    }

    .fh-fav-btn {
        flex-shrink: 0;
        width: 52px;
        height: 52px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .fh-fav-btn #favoriteToggleLabel {
        display: none;
    }
}

.fh-mobile-tabbar {
    display: none;
}

@media (max-width: 768px) {
    .fh-mobile-tabbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 72px;
        padding: 8px 16px;
        background: var(--fh-surface, #fff);
        border-top: 1px solid var(--fh-border, #f2eaf3);
        box-shadow: 0 -4px 8px rgba(30, 20, 79, 0.06);
        z-index: 500;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    body:not(.no-header) {
        padding-bottom: 72px;
    }
}

.fh-mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    color: var(--fh-ink-dim, #7e76a3);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
}

.fh-mobile-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.fh-mobile-tab.active {
    color: var(--fh-pink, #f41b75);
}

.fh-mobile-tab.active .fh-mobile-tab-icon {
    padding: 6px;
    border-radius: 12px;
    background: var(--fh-pink-light, #ffe6f1);
}

.fh-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--fh-ink-dim, #7e76a3);
    flex-wrap: wrap;
}

.fh-breadcrumb a {
    color: var(--fh-ink-dim, #7e76a3);
    text-decoration: none;
}

.fh-breadcrumb a:hover {
    color: var(--fh-pink, #f41b75);
}

.fh-breadcrumb-current {
    color: var(--fh-pink, #f41b75);
}

.fh-hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 32px;
    border: 1.5px solid var(--fh-pink-border, #ffe0ee);
    border-radius: 32px;
}

.fh-hero-section-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fh-hero-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.fh-tag {
    background: var(--fh-surface, #fff);
    border: 1px solid var(--fh-border, #f2eaf3);
    color: var(--fh-ink, #1e144f);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 12px;
}

.fh-hero-section-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 44px;
    color: var(--fh-ink, #1e144f);
    margin: 0;
}

.fh-hero-section-desc {
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    color: var(--fh-ink-dim, #7e76a3);
    margin: 0;
}

.fh-hero-section-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.fh-play-cta {
    background: var(--fh-pink, #f41b75);
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 6px 6px rgba(244, 27, 117, 0.16);
}

.fh-fav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--fh-surface, #fff);
    border: 2px solid var(--fh-pink-border, #ffd5e5);
    color: var(--fh-pink, #f41b75);
    font-size: 14px;
    font-weight: 800;
    padding: 14px 24px;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fh-fav-btn.active {
    background: var(--fh-pink, #f41b75);
    color: #fff;
    border-color: var(--fh-pink, #f41b75);
}

.fh-fav-btn.active i {
    animation: fh-fav-heartbeat 0.4s ease;
}

.fh-fav-btn.fh-fav-pop {
    animation: fh-fav-pop 0.35s ease;
}

@keyframes fh-fav-pop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fh-fav-heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.fh-fav-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translate(-50%, 16px);
    background: var(--fh-ink, #1e144f);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(30, 20, 79, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 500;
}

.fh-fav-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.fh-hero-section-image {
    flex-shrink: 0;
    width: 340px;
    height: 280px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    background-color: var(--fh-border, #f2eaf3);
    box-shadow: 0 8px 16px rgba(30, 20, 79, 0.06);
}

.fh-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    color: var(--fh-pink, #f41b75);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.fh-view-all-link:hover {
    text-decoration: underline;
}

.fh-back-btn {
    display: none;
}

#fh-related-row .fh-game-card {
    align-items: flex-start;
}

#fh-related-row .fh-game-card-name {
    text-align: left;
    white-space: normal;
}

.fh-game-card-cat {
    font-size: 12px;
    font-weight: 600;
    color: var(--fh-ink-dim, #7e76a3);
}

.fh-fav-hero {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fh-fav-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 16px;
    background: var(--fh-pink-border, #ffd5e5);
    color: var(--fh-pink, #f41b75);
    font-size: 24px;
}

.fh-fav-hero-title {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: var(--fh-ink, #1e144f);
}

.fh-fav-hero-star {
    color: #ffd166;
    font-size: 0.7em;
    vertical-align: middle;
}

.fh-fav-hero-sub {
    margin: 2px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--fh-ink-dim, #7e76a3);
}

.fh-fav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.fh-fav-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 264px;
    min-width: 0;
    background: var(--fh-surface, #fff);
    border: 1.5px solid var(--fh-border, #f2eaf3);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(30, 20, 79, 0.06);
    content-visibility: auto;
    contain-intrinsic-size: 264px 300px;
}

.fh-fav-card-img-wrap {
    position: relative;
    display: block;
    height: 160px;
}

.fh-fav-card-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.fh-fav-card-img {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--fh-border, #f2eaf3);
}

.fh-fav-card-heart {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 999px;
    background: var(--fh-surface, #fff);
    color: var(--fh-pink, #f41b75);
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, opacity 0.2s ease;
}

.fh-fav-card-heart:hover {
    transform: scale(1.1);
}

.fh-fav-card.fh-fav-card-removing {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.fh-fav-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.fh-fav-card-cat {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--fh-pink, #f41b75);
    text-transform: uppercase;
}

.fh-fav-card-name {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--fh-ink, #1e144f);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fh-fav-card-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--fh-pink, #f41b75);
    border-radius: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.fh-fav-card-play:hover {
    background: #d81463;
}

@media (max-width: 640px) {
    .fh-fav-card {
        flex: 0 0 calc(50% - 10px);
    }

    .fh-fav-card-img-wrap {
        height: 130px;
    }
}

@media (max-width: 420px) {
    .fh-fav-card {
        flex: 0 0 100%;
    }
}

@media (max-width: 640px) {
    .fh-hero-section {
        flex-direction: column-reverse;
        padding: 20px;
        gap: 20px;
    }

    .fh-hero-section-image {
        width: 100%;
        height: 200px;
    }

    .fh-hero-section-title {
        font-size: 24px;
        line-height: 32px;
    }
}