/* =============================================================================
   Tatwar public shell — IBM Plex Sans Arabic, light airy layout
   Gold stays on register / start-village CTAs only.
   ========================================================================== */

html body.tw-auth,
html body.tw-land,
html body.tw-body.tw-auth,
html body.tatwar-body.tw-auth,
html body.tw-auth.v35,
html body.tw-auth.tw-body.v35.webkit {
    --aw-font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    --aw-bg: #ffffff;
    --aw-bg-2: #faf8f4;
    --aw-ink: #241c16;
    --aw-ink-2: #6a5b4d;
    --aw-line: #e6ded1;
    --aw-brand: #a4530e;
    --aw-brand-2: #8c4409;
    --aw-soft: #fdf3e7;
    --aw-radius: 24px;
    --ui-font: var(--aw-font);
    font-family: var(--aw-font) !important;
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(224, 166, 60, .14), transparent 58%),
        radial-gradient(720px 360px at 92% 8%, rgba(164, 83, 14, .08), transparent 52%),
        var(--aw-bg) !important;
    background-image:
        radial-gradient(900px 420px at 12% -10%, rgba(224, 166, 60, .14), transparent 58%),
        radial-gradient(720px 360px at 92% 8%, rgba(164, 83, 14, .08), transparent 52%) !important;
    color: var(--aw-ink) !important;
}

html[data-theme="dark"] body.tw-auth,
html[data-theme="dark"] body.tw-land,
html[data-theme="dark"] body.tw-body.tw-auth,
html[data-theme="dark"] body.tatwar-body.tw-auth {
    --aw-bg: #1a1310;
    --aw-bg-2: #221a15;
    --aw-ink: #efe6d8;
    --aw-ink-2: #a8998a;
    --aw-line: rgba(255, 255, 255, .12);
    --aw-soft: #2c2219;
}

html body.tw-auth #dynamic_header,
html body.tw-auth #msfilter,
html body.tw-auth #header,
html body.tw-auth #side_navi,
html body.tw-auth .news.d-lg-block {
    display: none !important;
}
html body.tw-auth #mid,
html body.tw-auth .wrapper,
html body.tw-auth #content {
    background: transparent !important;
    background-image: none !important;
    float: none !important;
    width: 100% !important;
}

html body.tw-auth,
html body.tw-land,
html body.tw-body.tw-auth,
html body.tw-auth h1,
html body.tw-auth h2,
html body.tw-auth h3,
html body.tw-land h1,
html body.tw-land h2,
html body.tw-land h3,
html body.tw-auth input,
html body.tw-auth button,
html body.tw-auth a,
html body.tw-land .brand,
html body.tw-land .menu a,
html body.tw-land .btn {
    font-family: var(--aw-font) !important;
}

/* Header / public nav */
html body.tw-auth .public-game-nav,
html body.tw-land header.topbar,
html body.tw-auth .tw-header {
    background: rgba(255, 255, 255, .92) !important;
    background-image: none !important;
    border-bottom: 1px solid var(--aw-line) !important;
    box-shadow: none !important;
    color: var(--aw-ink) !important;
    backdrop-filter: blur(16px);
}

html body.tw-auth .public-game-brand,
html body.tw-land header.topbar .brand,
html body.tw-auth .tw-header .logo-text,
html body.tw-auth .tw-header .tw-nav-link,
html body.tw-auth .tw-header a {
    color: var(--aw-ink) !important;
    background: transparent !important;
    border-color: transparent !important;
}

html body.tw-auth .public-game-brand {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--aw-brand) !important;
}

html body.tw-auth .public-game-brand img,
html body.tw-land .brand img,
html body.tw-auth .logo-image,
html body.tw-auth .tw-header .logo-image {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    border: 0 !important;
    box-shadow: none !important;
    object-fit: cover !important;
}

html body.tw-auth .public-game-links a,
html body.tw-land .menu a,
html body.tw-land .icon-btn,
html body.tw-auth .tw-header .tw-nav-link {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    color: var(--aw-ink-2) !important;
    box-shadow: none !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
}

html body.tw-auth .public-game-links a.active,
html body.tw-auth .public-game-links a:hover,
html body.tw-land .menu a:hover,
html body.tw-auth .tw-header .tw-nav-link:hover,
html body.tw-auth .tw-header .tw-nav-link.active {
    background: rgba(164, 83, 14, .14) !important;
    color: var(--aw-brand-2) !important;
    box-shadow: none !important;
}

html body.tw-auth .public-game-nav,
html body.tw-auth .public-game-links a,
html body.tw-auth .public-game-links a.active {
    background-image: none !important;
}

html body.tw-auth .tatwar-lang-btn,
html body.tw-land .tatwar-lang-btn {
    background: var(--aw-bg-2) !important;
    border: 1px solid var(--aw-line) !important;
    color: var(--aw-ink) !important;
    font-family: var(--aw-font) !important;
    border-radius: 999px !important;
}

html body.tw-auth .tatwar-lang-list,
html body.tw-land .tatwar-lang-list {
    background: #fff !important;
    border: 1px solid var(--aw-line) !important;
    box-shadow: 0 16px 40px rgba(36, 28, 22, .12) !important;
}

html body.tw-auth .tatwar-lang-list a,
html body.tw-land .tatwar-lang-list a {
    color: var(--aw-ink) !important;
}

html body.tw-auth .tatwar-lang-list a:hover,
html body.tw-auth .tatwar-lang-list a.is-on,
html body.tw-land .tatwar-lang-list a.is-on {
    background: rgba(164, 83, 14, .14) !important;
    color: var(--aw-brand-2) !important;
}

html body.tw-auth .tw-theme-switch button.tw-theme-btn,
html body.tw-land .tw-theme-switch button.tw-theme-btn {
    background: var(--aw-bg-2) !important;
    border: 1px solid var(--aw-line) !important;
    color: var(--aw-ink-2) !important;
    border-radius: 999px !important;
}

html body.tw-auth .tw-theme-switch button.tw-theme-btn[aria-pressed="true"],
html body.tw-land .tw-theme-switch button.tw-theme-btn[aria-pressed="true"] {
    background: rgba(164, 83, 14, .16) !important;
    color: var(--aw-brand-2) !important;
    border-color: var(--aw-brand) !important;
}

/* Auth cards */
html body.tw-auth .login-container,
html body.tw-auth .register-container {
    min-height: calc(100vh - 72px);
    padding: clamp(1rem, 3vw, 2.4rem) !important;
}

html body.tw-auth .login-wrapper,
html body.tw-auth .register-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    max-width: 1120px !important;
    margin-inline: auto;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    gap: 28px !important;
}

html body.tw-auth .login-form-section,
html body.tw-auth .register-form-section,
html body.tw-auth .login-info-section,
html body.tw-auth .register-info-section {
    background: #fff !important;
    background-image: none !important;
    color: var(--aw-ink) !important;
    border: 1px solid var(--aw-line) !important;
    border-radius: var(--aw-radius) !important;
    box-shadow: 0 18px 50px rgba(36, 28, 22, .06) !important;
}

html body.tw-auth .login-form-section::before,
html body.tw-auth .register-form-section::before {
    display: none !important;
    content: none !important;
}

html body.tw-auth .login-info-section,
html body.tw-auth .register-info-section {
    background:
        radial-gradient(circle at top, rgba(164, 83, 14, .22), transparent 46%),
        #faf8f4 !important;
    border-color: transparent !important;
}

html body.tw-auth .logo-title,
html body.tw-auth .modal-title,
html body.tw-auth .selection-title {
    color: var(--aw-ink) !important;
    font-weight: 700 !important;
    letter-spacing: -.02em;
}

html body.tw-auth .logo-subtitle,
html body.tw-auth .form-label,
html body.tw-auth .checkbox-group label {
    color: var(--aw-ink-2) !important;
}

html body.tw-auth .form-input,
html body.tw-auth .form-group input,
html body.tw-auth .form-group select,
html body.tw-auth input.form-input,
html[data-theme="light"] body.tw-auth input.form-input,
html[data-theme="light"] body.tw-auth input[type="text"],
html[data-theme="light"] body.tw-auth input[type="password"],
html[data-theme="light"] body.tw-auth input[type="email"] {
    background: #ffffff !important;
    border: 1px solid var(--aw-line) !important;
    color: var(--aw-ink) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    color-scheme: light;
}

html[data-theme="dark"] body.tw-auth .form-input,
html[data-theme="dark"] body.tw-auth input.form-input,
html[data-theme="dark"] body.tw-auth input[type="text"],
html[data-theme="dark"] body.tw-auth input[type="password"],
html[data-theme="dark"] body.tw-auth input[type="email"] {
    background: #221a15 !important;
    border-color: rgba(255, 255, 255, .16) !important;
    color: #efe6d8 !important;
    color-scheme: dark;
}

html body.tw-auth .form-input:focus {
    border-color: var(--aw-brand) !important;
    box-shadow: 0 0 0 4px rgba(164, 83, 14, .18) !important;
    transform: none !important;
}

html body.tw-auth .btn {
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-family: var(--aw-font) !important;
}

html body.tw-auth .btn-primary,
html body.tw-auth .btn.btn-primary {
    background: var(--aw-brand) !important;
    background-image: none !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body.tw-auth .btn-primary:hover,
html body.tw-auth .btn.btn-primary:hover {
    background: var(--aw-brand-2) !important;
    color: #fff !important;
}

html body.tw-auth .register-form-section .btn-primary,
html body.tw-auth .btn-gold,
html body.tw-land .btn-gold,
html body.tw-land a.btn-gold {
    background: var(--ui-gold, #e0a63c) !important;
    color: var(--ui-gold-ink, #201408) !important;
    border: 0 !important;
}

html body.tw-auth .btn-outline,
html body.tw-auth .btn.btn-outline,
html body.tw-land .tw-land-cta .btn:not(.btn-gold) {
    background: #fff !important;
    background-image: none !important;
    color: var(--aw-ink) !important;
    border: 1px solid var(--aw-line) !important;
    box-shadow: 0 1px 0 rgba(36, 28, 22, .04) !important;
}

html body.tw-auth .login-info-section .btn-outline {
    background: #fff !important;
    color: var(--aw-ink) !important;
    border: 1px solid var(--aw-line) !important;
}

html body.tw-auth .forgot-password-link,
html body.tw-auth .link-primary,
html body.tw-auth .link-primary:hover,
html body.tw-auth .checkbox-group a,
html body.tw-auth #content a,
html body.tw-auth #content a:link,
html body.tw-auth #content a:visited,
html body.tw-auth #content a:hover,
html body.tw-auth #content a:active,
html body.tw-auth #content a font,
html body.tw-auth .terms-page a,
html body.tw-auth .legal-page a,
html body.tw-auth .tw-side-contact a,
html body.tw-auth #side_info a {
    color: var(--aw-brand) !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: 0 !important;
}

html body.tw-auth .tw-side-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 280px;
    margin: 16px auto 24px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--aw-line);
    border-radius: 16px;
}

html body.tw-auth .tw-side-contact b {
    color: var(--aw-ink) !important;
    font-size: .92rem;
    margin-bottom: 4px;
}

html body.tw-auth .logout-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 28px 18px 32px;
    text-align: center;
}

html body.tw-auth .logout-page .tw-logout-contact {
    margin: 16px 0 8px;
    line-height: 1.9;
}

html body.tw-auth .logout-page .terms-nav {
    justify-content: center;
}

html body.tw-auth .login-battle-item {
    background: #fff !important;
    border: 1px solid var(--aw-line) !important;
    color: var(--aw-ink) !important;
    border-radius: 16px !important;
}

html body.tw-auth .login-battle-item i {
    color: var(--aw-brand) !important;
}

html body.tw-auth .auth-side-hero,
html body.tw-auth .register-info-section .auth-side-hero,
html body.tw-auth .login-info-section .auth-side-hero {
    display: flex !important;
    align-items: flex-end;
    justify-content: center;
    min-height: 0 !important;
    height: auto !important;
    padding: 10px 10px 0 !important;
    overflow: hidden;
    border-radius: 22px !important;
    border: 0 !important;
    box-shadow: none !important;
    background:
        radial-gradient(circle at 28% 16%, rgba(224, 166, 60, .22), transparent 48%),
        linear-gradient(180deg, #faf6ee, #ecd7a6) !important;
    background-image:
        radial-gradient(circle at 28% 16%, rgba(224, 166, 60, .22), transparent 48%),
        linear-gradient(180deg, #faf6ee, #ecd7a6) !important;
}

html body.tw-auth .auth-side-hero img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    object-position: center bottom;
}

html body.tw-auth .auth-side-note {
    margin: 10px 0 14px;
    color: var(--aw-ink-2) !important;
    font-size: .92rem;
    line-height: 1.7;
    font-weight: 600;
}

html body.tw-auth .server-info,
html body.tw-auth .info-card,
html body.tw-auth .auth-world,
html body.tw-auth .tribe-selection,
html body.tw-auth .location-selection,
html body.tw-auth .checkbox-group,
html body.tw-auth .human-verification {
    background: #fff !important;
    border: 1px solid var(--aw-line) !important;
    color: var(--aw-ink) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
}

html body.tw-auth .server-info h3,
html body.tw-auth .info-card h3,
html body.tw-auth .auth-world b,
html body.tw-auth .login-info-section h3 {
    color: var(--aw-ink) !important;
}

html body.tw-auth .auth-world-top span {
    color: var(--aw-brand-2) !important;
    border-color: rgba(164, 83, 14, .35) !important;
    background: rgba(164, 83, 14, .12) !important;
}

html body.tw-auth .auth-world em {
    color: #17693c !important;
}

html body.tw-auth .auth-world.is-locked em {
    color: #d97706 !important;
}

html body.tw-auth .auth-world-events,
html body.tw-auth .auth-world small,
html body.tw-auth .auth-worlds-note,
html body.tw-auth .feature-item,
html body.tw-auth .info-list li,
html body.tw-auth .register-path-item {
    color: var(--aw-ink-2) !important;
}

html body.tw-auth .register-path-item i {
    background: rgba(164, 83, 14, .16) !important;
    color: var(--aw-brand-2) !important;
}

html body.tw-auth .challenge-question,
html body.tw-auth .refresh-btn {
    background: var(--aw-brand) !important;
    color: #fff !important;
    border: 0 !important;
}

html body.tw-auth .modal-content {
    background: #fff !important;
    border: 1px solid var(--aw-line) !important;
    border-radius: 22px !important;
    box-shadow: 0 24px 60px rgba(36, 28, 22, .16) !important;
}

html body.tw-auth .modal-overlay {
    background: rgba(36, 28, 22, .45) !important;
}

/* Landing */
html body.tw-land header.topbar .brand,
html body.tw-land header.topbar .menu a,
html body.tw-land header.topbar .btn,
html body.tw-land header.topbar .icon-btn {
    background: transparent !important;
    color: var(--aw-ink) !important;
    border-color: transparent !important;
}

html body.tw-land header.topbar .brand {
    color: var(--aw-brand) !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] body.tw-land header.topbar,
html[data-theme="dark"] body.tw-auth .public-game-nav,
html[data-theme="dark"] body.tw-auth .tw-header {
    background: rgba(26, 19, 16, .92) !important;
}

html[data-theme="dark"] body.tw-land .tw-land-visual {
    background:
        radial-gradient(circle at 28% 16%, rgba(224, 166, 60, .16), transparent 48%),
        linear-gradient(180deg, #2c2219, #1a1310);
}

html[data-theme="dark"] body.tw-land .tw-land-pulse div,
html[data-theme="dark"] body.tw-land .tw-land-xtra article,
html[data-theme="dark"] body.tw-land .hows article,
html[data-theme="dark"] body.tw-land .world,
html[data-theme="dark"] body.tw-land .lead-story,
html[data-theme="dark"] body.tw-land .card,
html[data-theme="dark"] body.tw-auth .login-form-section,
html[data-theme="dark"] body.tw-auth .register-form-section {
    background: #221a15 !important;
    border-color: rgba(255, 255, 255, .12) !important;
}

html body.tw-land .ticker {
    background: var(--aw-bg-2) !important;
    border-color: var(--aw-line) !important;
    color: var(--aw-ink) !important;
}

html body.tw-land .ticker-track {
    color: var(--aw-ink) !important;
}

html body.tw-land .ticker b {
    background: #a52318 !important;
    color: #fff !important;
    border-radius: 8px;
}

html body.tw-land .tw-land-hero {
    background: transparent !important;
    color: var(--aw-ink) !important;
    padding: 28px 0 12px !important;
}

html body.tw-land .tw-land-hero::after { display: none !important; }

html body.tw-land .tw-land-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: center;
}

html body.tw-land .tw-land-hero .kicker {
    display: inline-flex !important;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--aw-soft) !important;
    color: var(--aw-brand) !important;
    font-size: .78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

html body.tw-land .tw-land-hero h1,
html body.tw-land .tw-land-hero h1.tw-land-title {
    display: grid;
    gap: 8px;
    color: var(--aw-ink) !important;
    font-size: clamp(2.15rem, 5.2vw, 3.35rem) !important;
    font-weight: 700 !important;
    max-width: none !important;
    letter-spacing: -.03em;
    line-height: 1.18 !important;
    margin: 14px 0 14px !important;
}

html body.tw-land .tw-land-hero h1 .tw-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    color: var(--aw-brand) !important;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1;
}

html body.tw-land .tw-land-hero h1 .tw-mark::after {
    display: none !important;
    content: none !important;
}

html body.tw-land .tw-land-hero h1 .tw-land-title-line {
    display: block;
    color: var(--aw-ink) !important;
    font-weight: 800;
    letter-spacing: -.04em;
}

html body.tw-land .tw-land-hero h1 .tw-land-title-sub {
    display: block;
    color: var(--aw-ink-2) !important;
    font-size: .42em;
    font-weight: 600;
    letter-spacing: 0;
    margin-top: 2px;
}

html body.tw-land .tw-land-hero .lead {
    color: var(--aw-ink-2) !important;
    font-size: 1.05rem !important;
    max-width: 38rem !important;
    line-height: 1.85;
}

html body.tw-land .tw-land-visual {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 420px;
    padding: 18px 12px 0;
    border-radius: 28px;
    background:
        radial-gradient(circle at 28% 16%, rgba(224, 166, 60, .22), transparent 48%),
        linear-gradient(180deg, #faf6ee, #ecd7a6);
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(69, 35, 10, .12);
}

html body.tw-land .tw-land-visual img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 360px;
    max-height: 460px;
    object-fit: contain;
    object-position: center bottom;
}

html body.tw-land .tw-land-pulse {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

html body.tw-land .tw-land-pulse div {
    background: #fff !important;
    border: 1px solid var(--aw-line) !important;
    border-radius: 18px !important;
}

html body.tw-land .tw-land-pulse b {
    color: var(--aw-ink) !important;
    font-weight: 600 !important;
    font-size: 1.35rem !important;
}

html body.tw-land .tw-land-pulse span {
    color: var(--aw-ink-2) !important;
}

html body.tw-land .tw-land-xtra article,
html body.tw-land .hows article,
html body.tw-land .world,
html body.tw-land .lead-story,
html body.tw-land .side,
html body.tw-land .guide,
html body.tw-land .faq,
html body.tw-land .card {
    background: #fff !important;
    border: 1px solid var(--aw-line) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(36, 28, 22, .04) !important;
}

html body.tw-land .tw-land-xtra i,
html body.tw-land .hows b {
    color: var(--aw-brand) !important;
}

html body.tw-land .tw-land-langs a.is-on {
    background: var(--aw-soft) !important;
    color: var(--aw-brand) !important;
    border-color: #e8c79b !important;
}

html body.tw-land .sec-h h2,
html body.tw-land .tw-land-xtra h3 {
    color: var(--aw-ink) !important;
}

html body.tw-auth #content.manual,
html body.tw-auth #content.terms,
html body.tw-auth #content.faq,
html body.tw-auth #content.privacy,
html body.tw-auth #content.contact,
html body.tw-auth #content.logout,
html body.tw-auth #content.articles,
html body.tw-auth .terms-page,
html body.tw-auth .manual-page,
html body.tw-auth .legal-page {
    background: #fff !important;
    color: var(--aw-ink) !important;
    border: 1px solid var(--aw-line) !important;
    border-radius: 22px !important;
    font-family: var(--aw-font) !important;
}

html body.tw-auth #content.privacy .legal-page,
html body.tw-auth #content.contact .legal-page {
    border: 0 !important;
    max-width: 820px;
    margin: 0 auto;
    padding: 12px 8px 20px;
    line-height: 1.9;
}

html body.tw-auth footer.tw-site-foot .wrap {
    width: min(1120px, 100%);
    margin-inline: auto;
    padding-inline: 16px;
    box-sizing: border-box;
}

html body.tw-auth .legal-page h1 {
    margin: 0 0 10px;
    font-size: 1.7rem;
    color: var(--aw-ink) !important;
}

html body.tw-auth .legal-page h2 {
    margin: 1.4em 0 8px;
    font-size: 1.12rem;
    color: var(--aw-brand) !important;
}

html body.tw-auth .legal-page .lead,
html body.tw-auth .legal-page p,
html body.tw-auth .legal-page li {
    color: var(--aw-ink-2) !important;
}

html body.tw-auth .legal-page a,
html body.tw-auth .legal-page a:hover,
html body.tw-auth .terms-nav a,
html body.tw-auth .terms-nav a:hover {
    color: var(--aw-brand) !important;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: 0 !important;
}

html body.tw-auth .contact-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 20px;
}

html body.tw-auth .contact-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 14px;
    border: 1px solid var(--aw-line);
    border-radius: 16px;
    background: var(--aw-soft) !important;
    color: var(--aw-ink) !important;
}

html body.tw-auth .contact-card i {
    color: var(--aw-brand) !important;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

html body.tw-auth .contact-card strong {
    color: var(--aw-ink) !important;
}

html body.tw-auth .contact-card span {
    color: var(--aw-ink-2) !important;
    font-weight: 600;
    font-size: .92rem;
}

html body.tw-auth footer.tw-site-foot,
html body.tw-land footer.tw-site-foot {
    background: var(--aw-bg-2) !important;
    border-top: 1px solid var(--aw-line) !important;
    color: var(--aw-ink-2) !important;
    margin-top: 20px;
    padding: 18px 0 16px;
}

html body.tw-auth .tw-site-foot-grid,
html body.tw-land .tw-site-foot-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
    gap: 16px 16px;
    align-items: start;
}

html body.tw-land .tw-site-foot .brand,
html body.tw-auth .tw-site-foot .brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--aw-brand) !important;
    font-weight: 700;
    text-decoration: none !important;
    margin-bottom: 6px;
}

html body.tw-land .tw-site-foot .brand img,
html body.tw-auth .tw-site-foot .brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

html body.tw-auth .tw-site-foot-brand p,
html body.tw-land .tw-site-foot-brand p {
    margin: 0;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--aw-ink-2);
}

html body.tw-auth .tw-site-foot nav,
html body.tw-land .tw-site-foot nav,
html body.tw-land footer.tw-site-foot nav {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    grid-template-columns: none !important;
}

html body.tw-auth .tw-site-foot nav b,
html body.tw-land .tw-site-foot nav b {
    color: var(--aw-ink) !important;
    font-size: .78rem;
    margin: 0 0 2px;
}

html body.tw-auth .tw-site-foot a,
html body.tw-land .tw-site-foot a,
html body.tw-auth .tw-site-foot a:link,
html body.tw-land .tw-site-foot a:link,
html body.tw-auth .tw-site-foot a:visited,
html body.tw-land .tw-site-foot a:visited,
html body.tw-auth .tw-site-foot a:hover,
html body.tw-land .tw-site-foot a:hover,
html body.tw-auth .tw-site-foot a:active,
html body.tw-land .tw-site-foot a:active,
html body.tw-land .tw-site-foot nav a.btn {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

html body.tw-auth .tw-site-foot nav a,
html body.tw-land .tw-site-foot nav a,
html body.tw-land .tw-site-foot nav a.btn {
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 3px 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--aw-ink-2) !important;
    font-weight: 600 !important;
    font-size: .88rem !important;
    justify-content: flex-start !important;
}

html body.tw-auth .tw-site-foot nav a:hover,
html body.tw-land .tw-site-foot nav a:hover {
    color: var(--aw-brand) !important;
    background: transparent !important;
}

html body.tw-auth .tw-site-foot-copy,
html body.tw-land .tw-site-foot-copy {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--aw-line);
    font-size: .8rem;
}

html body.tw-land #faq .sec-h a,
html body.tw-land #faq .sec-h a:hover {
    color: var(--aw-brand) !important;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: 0 !important;
}

html body.tw-land .guides,
html body.tw-land .faqs {
    display: grid;
    gap: 0;
    background: #fff;
    border: 1px solid var(--aw-line);
    border-radius: 16px;
    overflow: hidden;
}

html body.tw-land details.tw-fold {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--aw-line) !important;
    box-shadow: none !important;
    background: #fff !important;
}

html body.tw-land .faqs details.tw-fold:last-child {
    border-bottom: 0 !important;
}

html body.tw-land details.tw-fold > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 10px 14px;
    cursor: pointer;
    list-style: none;
    color: var(--aw-ink) !important;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.45;
}

html body.tw-land details.tw-fold > summary::-webkit-details-marker {
    display: none;
}

html body.tw-land details.tw-fold > summary::after {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-inline-start: 8px;
    border-inline-end: 2px solid var(--aw-ink-2);
    border-bottom: 2px solid var(--aw-ink-2);
    transform: rotate(45deg);
    transition: transform .15s ease;
}

html body.tw-land details.tw-fold[open] > summary::after {
    transform: rotate(-135deg);
}

html body.tw-land details.tw-fold > p {
    margin: 0;
    padding: 0 14px 10px;
    color: var(--aw-ink-2) !important;
    font-size: .9rem;
    line-height: 1.7;
    flex: none !important;
}

html body.tw-land details.tw-fold a.tw-land-file {
    width: calc(100% - 28px) !important;
    max-width: none;
    margin: 0 14px 12px !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    background: var(--aw-ink) !important;
    border-color: var(--aw-ink) !important;
    color: #fff !important;
    font-size: 14px !important;
}

html body.tw-land details.tw-fold a.tw-land-file:hover {
    background: var(--aw-brand) !important;
    border-color: var(--aw-brand) !important;
    color: #fff !important;
}

html body.tw-land .tw-land-more {
    text-align: center;
    margin: 10px 0 0;
}

html body.tw-land .tw-land-more .btn {
    min-height: 42px !important;
}

@media (min-width: 981px) {
    html body.tw-land .guides {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        background: transparent;
        border: 0;
        overflow: visible;
    }
    html body.tw-land .guides details.tw-fold {
        border: 1px solid var(--aw-line) !important;
        border-radius: 16px !important;
        overflow: hidden;
    }
}

html body.tw-auth .reset-card {
    max-width: 460px;
    margin: 72px auto;
    background: #fff;
    border: 1px solid var(--aw-line);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(36, 28, 22, .08);
}

html body.tw-auth .reset-card h1 { color: var(--aw-ink); margin-top: 0; }
html body.tw-auth .reset-card input {
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--aw-line);
    background: #fff;
    color: var(--aw-ink);
    font-family: var(--aw-font);
}
html body.tw-auth .reset-card button,
html body.tw-auth .reset-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--aw-brand);
    color: #fff;
    border: 0;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--aw-font);
}

@media (max-width: 992px) {
    html body.tw-land .tw-land-hero-grid {
        grid-template-columns: 1fr;
    }
    html body.tw-land .tw-land-visual {
        min-height: 240px;
        order: -1;
        padding-top: 12px;
    }
    html body.tw-land .tw-land-visual img {
        min-height: 220px;
        max-height: 300px;
    }
    html body.tw-land .tw-land-hero h1 .tw-land-title-line {
        white-space: normal;
    }
    html body.tw-auth .login-wrapper,
    html body.tw-auth .register-wrapper {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 760px) {
    html body.tw-land .tw-land-pulse {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    html body.tw-land .wrap {
        width: 100% !important;
        padding-inline: 12px;
    }
    html body.tw-land .tw-land-sec {
        padding: 16px 0 !important;
    }
    html body.tw-land .sec-h {
        margin-bottom: 8px;
        text-align: center;
    }
    html body.tw-land .sec-h h2 {
        font-size: 1.15rem !important;
        margin: 0 0 4px;
    }
    html body.tw-land .sec-h p {
        font-size: .86rem;
        margin: 0;
    }
    html body.tw-land .guides,
    html body.tw-land .faqs {
        width: 100%;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        background: #fff;
        border: 1px solid var(--aw-line);
        overflow: hidden;
    }
    html body.tw-land .guides details.tw-fold {
        border: 0 !important;
        border-radius: 0 !important;
        border-bottom: 1px solid var(--aw-line) !important;
    }
    html body.tw-land .guides details.tw-fold:last-child {
        border-bottom: 0 !important;
    }
    html body.tw-land .tw-land-more .btn,
    html body.tw-land .final .tw-land-cta .btn {
        width: 100% !important;
    }
    html body.tw-land .final {
        text-align: center;
        padding: 16px 14px !important;
    }
    html body.tw-auth .tw-site-foot-grid,
    html body.tw-land .tw-site-foot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 10px;
    }
    html body.tw-auth .contact-cards {
        grid-template-columns: 1fr;
    }
    html body.tw-auth .tw-site-foot-brand,
    html body.tw-land .tw-site-foot-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 4px;
    }
    html body.tw-auth .tw-site-foot .brand,
    html body.tw-land .tw-site-foot .brand {
        justify-content: center;
    }
    html body.tw-auth .tw-site-foot-copy,
    html body.tw-land .tw-site-foot-copy {
        text-align: center;
    }
}

html body.tw-land a,
html body.tw-land a:link,
html body.tw-land a:visited,
html body.tw-land a:hover,
html body.tw-land a:active,
html body.tw-auth a,
html body.tw-auth a:link,
html body.tw-auth a:visited,
html body.tw-auth a:hover,
html body.tw-auth a:active,
html body.tw-land .ticker span,
html body.tw-land .tw-land-pulse span {
    text-decoration: none !important;
    text-decoration-line: none !important;
}

html body.tw-land header.topbar .nav {
    flex-wrap: nowrap !important;
}

html body.tw-land header.topbar .icon-btn.mob {
    display: none !important;
}

html body.tw-land .tw-land-tool-login {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    color: var(--aw-ink) !important;
    font-weight: 700;
    font-size: 14px;
    background: transparent !important;
    border: 0 !important;
}

html body.tw-land header.topbar a.btn.tw-land-tool-gold,
html body.tw-land a.btn.tw-land-tool-gold {
    background: #e0a63c !important;
    border-color: #e0a63c !important;
    color: #201408 !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    white-space: nowrap;
}

html body.tw-land .ticker {
    background: var(--aw-bg-2) !important;
    border: 0 !important;
    border-bottom: 0 !important;
}

html body.tw-land .ticker-track span {
    text-decoration: none !important;
    border-bottom: 0 !important;
}

html body.tw-land .tw-land-pulse {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 18px;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

html body.tw-land .tw-land-pulse div {
    min-width: 0;
    background: #fff !important;
    border: 1px solid var(--aw-line) !important;
}

html body.tw-land .tw-land-pulse b {
    font-size: clamp(.95rem, 2vw, 1.2rem) !important;
    overflow-wrap: anywhere;
}

@media (min-width: 981px) {
    html body.tw-land .tw-land-pulse {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    html body.tw-land header.topbar .icon-btn.mob {
        display: inline-flex !important;
    }
    html body.tw-land .tw-land-tool-login,
    html body.tw-land header.topbar a.btn.tw-land-tool-gold {
        display: none !important;
    }
    html body.tw-land .tw-land-pulse {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

