:root {
    --ink: #2b1a10;
    --ink-soft: #6d4b2a;
    --night: #160d08;
    --brown-950: #231207;
    --brown-900: #351b0c;
    --brown-800: #4a2712;
    --bronze: #8f5a1d;
    --gold-700: #b97812;
    --gold-500: #e7a829;
    --gold-300: #f6d56f;
    --cream-100: #fff9df;
    --cream-200: #fff1bd;
    --cream-300: #f5dda0;
    --emerald: #218a58;
    --danger: #a73c2f;
    --line: rgba(103, 59, 17, .3);
    --shadow: 0 18px 45px rgba(29, 14, 5, .26);
    --panel-radius: 22px;
    --card-radius: 17px;
    --control-radius: 11px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--night);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 450;
    line-height: 1.45;
    background:
        linear-gradient(rgba(23, 12, 6, .44), rgba(23, 12, 6, .74)),
        url("/images/backgrounds/game-card2.webp") center / cover fixed;
}

a {
    color: #74440f;
    text-decoration: none;
}

a:hover {
    color: #a46510;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid #f0b62f;
    outline-offset: 2px;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -.025em;
}

p {
    color: var(--ink-soft);
}

.site-shell {
    width: min(1440px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 16px 0 24px;
}

.user-page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.user-page .site-shell {
    display: grid;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 12px 0;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    padding: 10px 18px;
    border: 1px solid #9b641f;
    border-radius: 18px;
    background: linear-gradient(145deg, #3e210f, #251208);
    box-shadow: var(--shadow);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffe69b;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .04em;
}

.site-brand:hover {
    color: #fff3c5;
}

.site-brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.public-nav a {
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: var(--control-radius);
    color: #f8dda0;
    font-weight: 700;
}

.public-nav a:hover {
    border-color: #81511c;
    background: #4d2a13;
}

.account-summary {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.account-summary > span,
.account-summary > a,
.account-summary > button {
    display: flex;
    min-width: 128px;
    flex-direction: column;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #80501b;
    border-radius: var(--control-radius);
    color: #fff0bd;
    background: rgba(255, 230, 151, .06);
}

.account-summary > button {
    align-items: flex-start;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.account-summary small {
    color: #d6b56a;
    font-size: 11px;
    font-weight: 600;
}

.account-summary strong {
    font-size: 15px;
}

.mine-sidebar {
    position: sticky;
    top: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    padding: 10px;
    border: 1px solid #9a6420;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(69, 37, 14, .98), rgba(31, 17, 9, .98));
    box-shadow: var(--shadow);
}

.mine-sidebar-brand {
    display: flex;
    height: 86px;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.mine-sidebar-brand img {
    width: 108px;
    height: 86px;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .32));
}

.mine-sidebar-account {
    display: grid;
    gap: 6px;
    margin: 0 2px 10px;
}

.mine-sidebar-user {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 8px;
    border: 1px solid #684017;
    border-radius: 9px;
    color: #f5d98b;
    font: inherit;
    font-size: 11px;
    background: rgba(255,255,255,.025);
}

.mine-sidebar-user strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mine-sidebar-account > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.mine-sidebar-account > div a {
    display: grid;
    min-width: 0;
    padding: 7px 6px;
    border: 1px solid #684017;
    border-radius: 9px;
    color: #f5d98b;
    background: rgba(255,255,255,.025);
}

.mine-sidebar-account small {
    overflow: hidden;
    color: #d6b56a;
    font-size: 8px;
    text-overflow: ellipsis;
}

.mine-sidebar-account > div strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
}

.mine-sidebar-account a:hover,
.mine-sidebar-account button:hover {
    border-color: #f4c75b;
    color: #2d190b;
    background: linear-gradient(#ffd76f, #eda51f);
}

.mine-sidebar-title {
    display: block;
    margin: 6px 5px 7px;
    color: #e3bd61;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.mine-navigation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.mine-navigation a {
    position: relative;
    grid-column: 1 / -1;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    min-height: 47px;
    padding: 8px 10px;
    border: 1px solid #684017;
    border-radius: 10px;
    color: #f5d98b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.mine-navigation a:hover,
.mine-navigation a.is-active {
    color: #2d190b;
    border-color: #f4c75b;
    background: linear-gradient(#ffd76f, #eda51f);
}

.mine-navigation img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.mine-news-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 8px;
    color: #fff;
    background: #b02d24;
    font-size: 10px;
    line-height: 17px;
    text-align: center;
}

.user-layout,
.public-content {
    margin-top: 12px;
}

.user-layout {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    height: 100%;
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
}

.user-content,
.public-content {
    min-width: 0;
    padding: 14px;
    border: 1px solid #a9752d;
    border-radius: var(--panel-radius);
    background:
        radial-gradient(circle at 14% 0, rgba(255, 255, 255, .68), transparent 27%),
        linear-gradient(145deg, #fff5ca, #edcf77);
    box-shadow: var(--shadow);
}

.user-content {
    display: flex;
    overflow: hidden;
    min-height: 0;
    height: 100%;
    flex-direction: column;
}

.user-content-scroll {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
    flex: 1;
    padding-right: 4px;
    scrollbar-color: #b97812 rgba(82, 44, 15, .14);
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    overscroll-behavior: contain;
}

.user-content-scroll::-webkit-scrollbar {
    width: 9px;
}

.user-content-scroll::-webkit-scrollbar-track {
    border-radius: 9px;
    background: rgba(82, 44, 15, .14);
}

.user-content-scroll::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 9px;
    background: #b97812;
    background-clip: padding-box;
}

.user-topbar {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.user-topbar-balance {
    display: grid;
    min-width: 0;
    flex: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.user-topbar-balance a,
.user-topbar-account {
    display: grid;
    min-width: 0;
    align-content: center;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: rgba(255, 250, 229, .84);
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.user-topbar-balance a:hover,
.user-topbar-balance a:focus-visible,
.user-topbar-balance a.is-active,
.user-topbar-account:hover,
.user-topbar-account:focus-visible {
    border-color: #a9660a;
    background: #fff7d4;
}

.user-topbar-balance a:active,
.user-topbar-account:active {
    transform: translateY(1px);
}

.user-topbar-balance small {
    color: var(--ink-soft);
    font-size: 10px;
}

.user-topbar-balance strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
}

.user-topbar-balance strong i {
    margin-right: 3px;
    font-size: 10px;
}

.user-topbar-account {
    grid-auto-flow: column;
    align-items: center;
    gap: 7px;
    border-color: #b3781e;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.live-activity {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 38px;
    margin-bottom: 9px;
    padding: 6px 10px;
    border: 1px solid rgba(99, 57, 17, .26);
    border-radius: 10px;
    background: rgba(255, 249, 224, .8);
}

.live-activity > small {
    color: #81501a;
    font-size: 10px;
    font-weight: 800;
}

.live-activity > div {
    position: relative;
    overflow: hidden;
    min-width: 0;
    height: 20px;
}

.live-activity-track {
    display: flex;
    width: max-content;
    animation: live-activity-marquee 28s linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.live-activity-sequence {
    display: flex;
    flex: none;
    align-items: center;
    gap: 20px;
    padding-right: 20px;
}

.live-activity span {
    flex: none;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.live-activity i {
    flex: none;
    color: #b97812;
    font-size: 10px;
    font-style: normal;
}

@keyframes live-activity-marquee {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

.public-content {
    min-height: 620px;
}

.page-title {
    display: flex;
    align-items: center;
    min-height: 66px;
    margin-bottom: 12px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 250, 225, .74);
}

.page-title h1 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
}

.card,
.text-page,
.partner-summary,
.how-system,
.mine-page-head,
.how-cta {
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: rgba(255, 250, 229, .9);
    box-shadow: 0 8px 20px rgba(76, 42, 8, .1);
}

.card {
    overflow: hidden;
}

.card-body {
    padding: 18px;
}

.form-control,
.form-select {
    min-height: 45px;
    border: 1px solid #b8955f;
    border-radius: var(--control-radius);
    color: var(--ink);
    background: #fffdf3;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gold-700);
    box-shadow: 0 0 0 3px rgba(231, 168, 41, .22);
}

.btn {
    min-height: 42px;
    border-radius: var(--control-radius);
    font-weight: 750;
}

.btn-warning {
    color: #2b190c;
    border-color: #bd7913;
    background: linear-gradient(#ffd66c, #efa61f);
    box-shadow: 0 3px 0 #a96a0c;
}

.btn-warning:hover {
    color: #211208;
    border-color: #a8650a;
    background: linear-gradient(#ffe18c, #f4b532);
}

.alert {
    border-radius: 13px;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(310px, .7fr);
    gap: 14px;
}

.home-game-card,
.auth-card {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: rgba(255, 249, 222, .94);
}

.home-game-card {
    color: #fce8aa;
    border-color: #8e5a1d;
    background: #160d08;
}

.home-game-card h1 {
    margin: 10px 8px;
    color: #fff0bd;
    font-size: clamp(19px, 2.3vw, 31px);
    text-align: center;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.home-stats span {
    padding: 10px;
    border-radius: 11px;
    color: #5b3d1c;
    background: #fff9df;
}

.home-stats strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
}

.auth-card {
    align-self: stretch;
}

.auth-card > img {
    display: block;
    width: 92px;
    height: 92px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.auth-card h2,
.auth-card p {
    text-align: center;
}

.auth-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.feature-grid article {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: rgba(255, 251, 232, .9);
}

.feature-grid article img {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.feature-grid h2,
.feature-grid h3 {
    margin-bottom: 5px;
    font-size: 19px;
    text-align: center;
}

.feature-grid p {
    margin: 0;
    text-align: center;
}

.seo-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: center;
    gap: 24px;
    padding: 22px 20px;
    border-bottom: 1px solid var(--line);
}

.seo-hero small,
.seo-cta small {
    color: #7c4b13;
    font-size: 12px;
    font-weight: 800;
}

.seo-hero h1 {
    max-width: 760px;
    margin: 6px 0 8px;
    font-size: clamp(29px, 4vw, 46px);
}

.seo-hero p {
    max-width: 790px;
    margin-bottom: 16px;
    font-size: 17px;
}

.seo-hero > img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.seo-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 20px 0;
}

.seo-feature-grid article {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: rgba(255, 251, 232, .86);
}

.seo-feature-grid img {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.seo-feature-grid h2 {
    margin: 0 0 5px;
    font-size: 19px;
}

.seo-feature-grid p {
    margin: 0;
}

.seo-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 20px;
    border-top: 1px solid var(--line);
    background: rgba(255, 247, 207, .66);
}

.seo-cta h2 {
    margin: 3px 0 0;
    font-size: 22px;
}

.roadmap-grid article {
    text-align: left;
}

.roadmap-grid h2 {
    text-align: left;
}

.roadmap-grid ul {
    margin: 10px 0 0;
    padding-left: 19px;
}

.roadmap-grid li + li {
    margin-top: 6px;
}

.how-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 16px 18px;
}

.how-cta small,
.how-system > header small,
.mine-page-head small,
.partner-summary small {
    color: #85551c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
}

.how-cta h2 {
    margin: 3px 0 0;
}

.mine-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.mine-metrics > div,
.mine-stage-summary > div,
.mine-head-stat,
.balance-box {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 250, 230, .92);
}

.mine-metrics small,
.mine-stage-summary small,
.mine-head-stat small,
.balance-box small {
    display: block;
    color: var(--ink-soft);
    font-size: 11px;
}

.mine-metrics strong,
.mine-stage-summary strong,
.mine-head-stat strong,
.balance-box strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
}

.mine-stage {
    overflow: hidden;
    padding: 6px;
    border: 1px solid #8d5a1d;
    border-radius: 17px;
    background: #100a06;
}

.mine-stage-summary {
    position: absolute;
    top: 6px;
    right: 6px;
    left: 6px;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(255, 222, 135, .28);
    border-radius: 10px;
    background: rgba(29, 16, 7, .82);
    backdrop-filter: blur(4px);
}

.mine-stage-summary > div {
    min-width: 0;
    padding: 4px 7px;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 249, 224, .93);
}

.mine-storage-track {
    position: absolute;
    top: 58px;
    right: 10px;
    left: 10px;
    z-index: 5;
    overflow: hidden;
    height: 7px;
    border: 1px solid #72501f;
    border-radius: 8px;
    background: #261608;
}

.mine-storage-track span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #d68b1b, #ffe174, #2d9a66);
    transition: width .45s ease;
}

.mine-playfield {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3.15 / 1;
    border-radius: 11px;
    background: #090705;
}

.mine-background {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 57%;
    transform: scale(1.09);
    filter: saturate(1.12) contrast(1.05) brightness(1.05);
}

.mine-worker {
    position: absolute;
    bottom: 25.5%;
    z-index: 2;
    width: 10.4%;
    margin: 0;
    transform: translateX(-50%);
}

.mine-worker-1 { left: 8.7%; width: 10.2%; }
.mine-worker-2 { left: 27.9%; width: 10.3%; }
.mine-worker-3 { left: 47.1%; width: 10.5%; }
.mine-worker-4 { left: 66.4%; width: 10.5%; }
.mine-worker-5 { left: 85.7%; width: 10.8%; }

.mine-worker button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.mine-worker button:disabled {
    cursor: default;
}

.mine-worker img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    filter: drop-shadow(0 7px 5px rgba(0, 0, 0, .5));
}

.mine-worker.is-active button {
    animation: mine-worker-idle 2.8s ease-in-out infinite;
    transform-origin: 50% 100%;
}

.home-playfield .mine-worker.is-active img {
    animation: mine-worker-idle 2.8s ease-in-out infinite;
    transform-origin: 50% 100%;
}

.mine-worker-2 button,
.mine-worker-4 button,
.home-playfield .mine-worker-2 img,
.home-playfield .mine-worker-4 img {
    animation-delay: -.9s;
}

.mine-worker-3 button,
.mine-worker-5 button,
.home-playfield .mine-worker-3 img,
.home-playfield .mine-worker-5 img {
    animation-delay: -1.7s;
}

.mine-production-float {
    position: absolute;
    top: 4%;
    left: 50%;
    z-index: 3;
    color: #fff2a4;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    opacity: 0;
    text-shadow: 0 2px 3px #261306;
    transform: translate(-50%, 0);
    pointer-events: none;
}

.mine-production-float.is-floating {
    animation: mine-production-rise 1.15s ease-out;
}

@keyframes mine-worker-idle {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-4%) rotate(1deg); }
}

@keyframes mine-production-rise {
    0% { opacity: 0; transform: translate(-50%, 8px) scale(.85); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -32px) scale(1.05); }
}

.mine-worker span {
    position: absolute;
    right: -2px;
    bottom: 2px;
    padding: 3px 6px;
    border: 1px solid #a9711e;
    border-radius: 8px;
    color: #fff4c5;
    font-size: 11px;
    font-weight: 800;
    background: rgba(31, 18, 8, .9);
}

.mine-worker.is-empty {
    opacity: .78;
}

.mine-worker.is-empty img {
    filter: saturate(.72) brightness(.88) drop-shadow(0 7px 5px rgba(0, 0, 0, .5));
}

.mine-worker.is-empty.can-hire img {
    animation: mine-empty-pulse 2.4s ease-in-out infinite;
}

.mine-hire-float {
    position: absolute;
    top: -8%;
    left: 50%;
    z-index: 4;
    min-width: max-content;
    color: #fff1a4;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 0 #3b1d08, 0 0 8px rgba(255, 235, 143, .8);
    transform: translateX(-50%);
    pointer-events: none;
    animation: mine-hire-rise 2.6s ease-in-out infinite;
}

.mine-worker-2 .mine-hire-float,
.mine-worker-4 .mine-hire-float {
    animation-delay: -1.2s;
}

@keyframes mine-empty-pulse {
    0%, 100% { transform: translateY(0) scale(.98); filter: brightness(.88) saturate(.72); }
    50% { transform: translateY(-3%) scale(1.03); filter: brightness(1.06) saturate(.94); }
}

@keyframes mine-hire-rise {
    0%, 100% { opacity: 0; transform: translate(-50%, 10px) scale(.92); }
    18%, 68% { opacity: 1; }
    78% { opacity: 0; transform: translate(-50%, -20px) scale(1.04); }
}

.mine-collect {
    position: absolute;
    bottom: 2.5%;
    left: 50%;
    z-index: 4;
    transform: translateX(-50%);
}

.mine-collect button,
.mine-tier-card button {
    min-height: 42px;
    padding: 8px 17px;
    border: 1px solid #be7b13;
    border-radius: var(--control-radius);
    color: #2f1c0b;
    font-weight: 800;
    background: linear-gradient(#ffd66d, #eea21c);
    box-shadow: 0 3px 0 #8e5609;
}

.mine-collect button {
    white-space: nowrap;
}

.mine-upgrade-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.mine-upgrade-card {
    min-height: 76px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 249, 222, .9);
}

.mine-upgrade-card button {
    display: grid;
    width: 100%;
    min-height: 74px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border: 0;
    color: inherit;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.mine-upgrade-card:hover {
    border-color: #c58218;
    background: #fff4c7;
}

.mine-upgrade-card button:disabled {
    cursor: default;
}

.mine-upgrade-card img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.mine-upgrade-card small,
.mine-upgrade-card strong {
    display: block;
}

.mine-upgrade-card strong {
    color: var(--ink);
    font-size: 14px;
}

.mine-upgrade-card em {
    color: #895817;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.mine-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 15px 18px;
}

.mine-page-head h2,
.mine-page-head p {
    margin: 2px 0;
}

.mine-head-stat {
    min-width: 150px;
}

.mine-tier-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}

.mine-shop-head {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--line);
}

.mine-shop-head > div {
    min-width: 0;
    padding: 10px 12px;
    background: rgba(255, 250, 228, .96);
}

.mine-shop-head small,
.mine-shop-head strong {
    display: block;
}

.mine-shop-head small {
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.mine-shop-head strong {
    overflow-wrap: anywhere;
    font-size: 15px;
}

.mine-tier-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 13px 10px 11px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 250, 228, .92);
}

.mine-tier-card[data-submit-card] {
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mine-tier-card[data-submit-card]:hover {
    border-color: #b77d28;
    box-shadow: 0 9px 20px rgba(76, 42, 10, .13);
    transform: translateY(-2px);
}

.mine-tier-card.is-owned {
    border-color: rgba(33, 138, 88, .55);
    background: linear-gradient(#fffbe9, #f6dc87);
}

.mine-tier-card.is-locked {
    opacity: .64;
}

.mine-tier-card > img {
    width: min(152px, 90%);
    aspect-ratio: 1;
    object-fit: contain;
}

.mine-tier-card h3 {
    min-height: 42px;
    margin: 4px 0 2px;
    font-size: 14px;
    text-align: center;
}

.mine-tier-card > strong {
    font-size: 20px;
}

.mine-tier-card > small {
    margin-bottom: 10px;
    color: var(--ink-soft);
}

.mine-tier-meter {
    width: 100%;
    height: 5px;
    margin: 0 0 10px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(86, 55, 20, .15);
}

.mine-tier-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #288b5c, #d2a12c);
}

.mine-tier-card form {
    width: 100%;
    margin-top: auto;
}

.mine-tier-card button {
    width: 100%;
    min-width: 0;
    font-size: 12px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    white-space: normal;
}

.mine-tier-card button:disabled {
    color: #6e6049;
    border-color: #ad9e77;
    background: #ddd2b0;
    box-shadow: none;
}

.mine-shop-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin-top: 10px;
    padding: 9px 12px;
    border-top: 1px solid rgba(110, 75, 29, .2);
    color: var(--ink-soft);
    font-size: 11px;
}

.mine-shop-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mine-shop-legend i {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #8c806b;
}

.mine-shop-legend i.is-owned {
    background: #288b5c;
}

.mine-shop-legend i.is-available {
    background: #d2a12c;
}

.mine-status,
.mine-count,
.mine-roi {
    position: absolute;
    z-index: 2;
    top: 8px;
    padding: 4px 7px;
    border-radius: 8px;
    color: #fff9db;
    font-size: 10px;
    font-weight: 800;
    background: rgba(42, 52, 43, .85);
}

.mine-status,
.mine-roi {
    right: 8px;
}

.mine-count {
    left: 8px;
}

.mine-roi {
    background: rgba(33, 138, 88, .9);
}

.partner-summary,
.how-system,
.text-page {
    padding: 20px;
}

.home-hero + .feature-grid + .how-system {
    margin-top: 14px;
}

.partner-summary {
    display: grid;
    grid-template-columns: 1.1fr 1fr auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.partner-link label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.partner-link > div {
    display: flex;
}

.partner-link input {
    min-width: 0;
    flex: 1;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #b8955f;
    border-radius: 10px 0 0 10px;
    background: #fffdf3;
}

.partner-link button {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #9e6411;
    border-radius: 0 10px 10px 0;
    background: var(--gold-500);
}

.promo-intro {
    margin-bottom: 12px;
}

.promo-intro h1,
.promo-gallery-head h2 {
    margin: 5px 0 7px;
}

.promo-gallery {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: rgba(255, 250, 229, .94);
    box-shadow: 0 8px 20px rgba(76, 42, 8, .1);
}

.promo-gallery-head {
    margin-bottom: 15px;
}

.promo-gallery-head small,
.promo-intro small {
    color: #7c4b13;
    font-size: 12px;
    font-weight: 800;
}

.promo-gallery-head p {
    margin: 0;
}

.promo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 12px;
}

.promo-banner-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: rgba(255, 249, 222, .92);
}

.promo-banner-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    border-bottom: 1px solid var(--line);
}

.promo-banner-meta span {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
}

.promo-banner-preview {
    display: grid;
    min-height: 190px;
    flex: 1;
    place-items: center;
    overflow: auto;
    padding: 12px;
    background-color: #e8d7ae;
    background-image:
        linear-gradient(45deg, rgba(78, 47, 17, .07) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(78, 47, 17, .07) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(78, 47, 17, .07) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(78, 47, 17, .07) 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
}

.promo-banner-preview img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
}

.promo-embed-code {
    width: calc(100% - 22px);
    min-height: 60px;
    margin: 10px 11px 0;
    padding: 8px;
    resize: vertical;
    border: 1px solid #b8955f;
    border-radius: 9px;
    color: var(--ink-soft);
    background: #fffdf3;
    font: 11px/1.35 Consolas, monospace;
}

.promo-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 11px;
}

.promo-banner-actions .btn {
    flex: 1 1 120px;
}

.promo-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    border: 1px solid #b8955f;
    background: #fff9df;
}

.partner-metrics {
    display: flex;
    gap: 8px;
}

.partner-metrics span {
    min-width: 92px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cream-100);
}

.partner-metrics strong {
    display: block;
}

.partner-share {
    display: flex;
    gap: 7px;
    margin-top: 8px;
}

.partner-share a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--cream-100);
}

.partner-level-grid {
    display: grid;
    grid-template-columns: 1.25fr .8fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.partner-level-grid > article,
.partner-tier-strip,
.partner-history {
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: rgba(255, 250, 229, .94);
    box-shadow: 0 8px 20px rgba(76, 42, 8, .08);
}

.partner-level-grid > article {
    min-width: 0;
    padding: 16px;
}

.partner-level-grid small,
.partner-tier-strip small {
    color: #7c4b13;
    font-size: 11px;
    font-weight: 800;
}

.partner-level-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.partner-level-card > img {
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
    object-fit: contain;
}

.partner-level-card h3 {
    margin: 3px 0;
    font-size: 18px;
}

.partner-level-card p {
    margin: 4px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
}

.partner-xp-bar {
    width: 100%;
    height: 7px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 8px;
    background: #ddcfaa;
}

.partner-xp-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2e9364, #d69b21);
}

.partner-rate-card dl {
    margin: 8px 0 0;
}

.partner-rate-card dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(157, 112, 47, .22);
}

.partner-rate-card dl > div:last-child {
    border-bottom: 0;
}

.partner-rate-card dt {
    color: var(--ink-soft);
    font-weight: 600;
}

.partner-rate-card dd {
    margin: 0;
    font-weight: 800;
}

.partner-network-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 8px 0 10px;
}

.partner-network-metrics span {
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(157, 112, 47, .28);
    border-radius: 10px;
    color: var(--ink-soft);
    background: var(--cream-100);
    font-size: 11px;
}

.partner-network-metrics strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    text-overflow: ellipsis;
}

.partner-network-card button {
    width: 100%;
    min-height: 40px;
    border: 1px solid #9e6411;
    border-radius: 10px;
    background: var(--gold-500);
    font-weight: 800;
}

.partner-network-card button:disabled {
    opacity: .55;
}

.partner-tier-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
}

.partner-tier-strip article {
    display: grid;
    min-width: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid rgba(157, 112, 47, .24);
    border-radius: 11px;
    background: var(--cream-100);
}

.partner-tier-strip article.is-current {
    border-color: #2e9364;
    box-shadow: inset 0 0 0 1px rgba(46, 147, 100, .28);
}

.partner-tier-strip img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.partner-tier-strip strong,
.partner-tier-strip article > span {
    display: block;
}

.partner-tier-strip article > span {
    grid-column: 1 / -1;
    color: var(--ink-soft);
    font-size: 11px;
}

.partner-history {
    margin-bottom: 12px;
    overflow: hidden;
}

.partner-history summary {
    display: flex;
    justify-content: space-between;
    padding: 13px 16px;
    cursor: pointer;
    font-weight: 800;
}

.partner-history .table-responsive {
    max-height: 280px;
    border-top: 1px solid var(--line);
}

.partner-promo-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: rgba(255, 250, 229, .94);
    box-shadow: 0 8px 20px rgba(76, 42, 8, .08);
}

.partner-promo-cta small {
    color: #7c4b13;
    font-size: 11px;
    font-weight: 800;
}

.partner-promo-cta h3 {
    margin: 3px 0;
    font-size: 18px;
}

.partner-promo-cta p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 12px;
}

.partner-promo-cta .btn {
    flex: 0 0 auto;
    min-width: 175px;
}

.partner-guide {
    padding: 20px;
}

.partner-guide > header {
    text-align: center;
}

.partner-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.partner-guide-grid article {
    position: relative;
    min-width: 0;
    padding: 16px 16px 16px 54px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cream-100);
}

.partner-guide-grid article > span {
    position: absolute;
    top: 16px;
    left: 14px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    font-weight: 800;
    background: var(--gold-300);
}

.partner-guide-grid h3,
.partner-guide-grid p {
    margin: 0;
}

.partner-guide-grid p {
    margin-top: 5px;
}

.how-system > header {
    text-align: center;
}

.how-steps,
.level-grid {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.how-steps {
    grid-template-columns: repeat(4, 1fr);
}

.level-grid {
    grid-template-columns: repeat(5, 1fr);
}

.how-steps article,
.level-grid article {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--cream-100);
}

.how-steps article > strong {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--gold-300);
}

.how-steps h3,
.level-grid h3 {
    margin: 8px 0 4px;
    font-size: 16px;
}

.how-steps p,
.level-grid p {
    margin: 0;
    font-size: 13px;
}

.level-grid {
    text-align: center;
}

.level-grid img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.level-grid span {
    display: block;
    color: #d48a11;
    font-size: 15px;
}

.payment-card img {
    object-fit: contain;
}

.page-hero,
.reward-hero,
.task-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: rgba(255, 250, 229, .92);
    box-shadow: 0 8px 20px rgba(76, 42, 8, .1);
}

.page-hero small,
.reward-hero small,
.task-summary small {
    color: #85551c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
}

.page-hero h1,
.reward-hero h2,
.task-summary h2 {
    margin: 3px 0 5px;
}

.page-hero p,
.reward-hero p,
.task-summary p {
    margin: 0;
}

.faq-list,
.legal-content,
.news-list {
    display: grid;
    gap: 10px;
}

.faq-list details,
.legal-content article,
.news-list article,
.empty-state,
.support-options article,
.creator-guide article,
.reward-submit,
.reward-guidelines,
.reward-history {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: rgba(255, 250, 229, .9);
}

.faq-list summary {
    color: var(--ink);
    font-weight: 750;
    cursor: pointer;
}

.faq-list p,
.legal-content p,
.news-list p {
    margin: 8px 0 0;
}

.legal-content h2,
.support-options h2,
.creator-guide h2 {
    margin: 0;
    font-size: 18px;
}

.news-list article {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: start;
    gap: 12px;
}

.news-list time {
    color: #85551c;
    font-size: 12px;
    font-weight: 750;
}

.news-list h3 {
    margin: 0;
    font-size: 16px;
}

.support-options,
.creator-guide {
    display: grid;
    gap: 12px;
}

.support-options {
    grid-template-columns: repeat(2, 1fr);
}

.creator-guide {
    grid-template-columns: repeat(4, 1fr);
}

.creator-guide article > strong {
    display: grid;
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    place-items: center;
    border-radius: 10px;
    color: #2f1b0b;
    background: var(--gold-300);
}

.task-summary-metrics,
.reward-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 8px;
}

.task-summary-metrics span,
.reward-stats span {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cream-100);
}

.task-summary-metrics strong,
.reward-stats strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.task-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(42px, 1fr) auto;
    gap: 6px 11px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: rgba(255, 250, 229, .92);
}

.task-card > small {
    grid-column: 2 / 4;
    grid-row: 1;
    color: var(--ink-soft);
}

.task-card > img {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.task-card > div {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
}

.task-card h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.2;
}

.task-card .progress {
    overflow: hidden;
    height: 7px;
    margin-top: 7px;
    border-radius: 7px;
    background: #ded3af;
}

.task-card .progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--emerald), var(--gold-500));
}

.task-card > strong {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
}

.task-card > a,
.task-card > .task-action,
.task-card > .task-claim-form {
    grid-column: 3;
    grid-row: 2 / 4;
    align-self: center;
    justify-self: end;
    font-weight: 750;
}

.task-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 7px 11px;
    border: 1px solid #b87413;
    border-radius: var(--control-radius);
    color: #2f1b0b;
    text-align: center;
    background: linear-gradient(#ffd66d, #eea21c);
    box-shadow: 0 2px 0 #925b0d;
}

.task-claim-form {
    margin: 0;
}

.task-action.is-claimed {
    border-color: #4d8565;
    color: #234832;
    background: #d9eadf;
    box-shadow: none;
}

.task-action:hover {
    color: #241308;
    background: linear-gradient(#ffe08a, #f4b331);
}

.reward-hero img {
    width: 118px;
    height: 118px;
    object-fit: contain;
}

.reward-stats {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 12px;
}

.reward-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr);
    gap: 12px;
}

.reward-source-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.reward-source-grid legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
}

.reward-source {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 112px;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255,255,255,.35);
}

.reward-source input { position: absolute; opacity: 0; pointer-events: none; }
.reward-source strong { color: var(--ink); }
.reward-source small { flex: 1; color: var(--ink-soft); line-height: 1.35; }
.reward-source b { color: #9d5e09; font-size: 12px; }
.reward-source.is-selected { border-color: #d89823; box-shadow: inset 0 0 0 1px rgba(216, 152, 35, .22); }

.reward-fields {
    display: grid;
    grid-template-columns: minmax(260px, 1.7fr) minmax(150px, .7fr) minmax(145px, .55fr) auto;
    align-items: end;
    gap: 9px;
    margin-top: 12px;
}

.reward-fields label span,
.reward-estimate small { display: block; margin-bottom: 5px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.reward-estimate { display: flex; min-height: 45px; flex-direction: column; justify-content: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; }
.reward-estimate small { margin: 0; font-size: 9px; }
.reward-estimate strong { color: var(--ink); font-size: 13px; }
.reward-fields .btn { min-height: 45px; }

.reward-submit h2,
.reward-guidelines h2,
.reward-history h2 {
    margin-top: 0;
    font-size: 20px;
}

.reward-guidelines ul {
    padding-left: 20px;
    color: var(--ink-soft);
}

.reward-guidelines a {
    font-weight: 750;
}

.reward-history {
    margin-top: 12px;
}

.reward-history article {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(130px, .6fr) auto auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.reward-history article span strong,
.reward-history article span small {
    display: block;
}

.reward-history article span small {
    color: var(--ink-soft);
}

.ticket-message,
.ticket-row {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cream-100);
}

.ticket-message + .ticket-message,
.ticket-row + .ticket-row {
    margin-top: 8px;
}

.ticket-message p {
    margin: 5px 0 0;
}

.ticket-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ticket-row span strong,
.ticket-row span small {
    display: block;
}

.support-route-hero {
    min-height: 104px;
}

.support-route-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.support-route-actions a {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: rgba(255, 250, 228, .92);
    font-size: 12px;
    font-weight: 700;
}

.support-layout {
    display: grid;
    grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
    gap: 10px;
}

.support-compose,
.support-list,
.support-thread {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 250, 228, .94);
    box-shadow: 0 8px 20px rgba(75, 43, 12, .07);
}

.support-compose h2,
.support-list h2,
.support-thread h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.support-thread > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.support-thread > form {
    margin-top: 12px;
}

.support-closed-note {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
}

.support-upload {
    display: grid;
    gap: 5px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
}

.support-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.support-attachments a {
    display: block;
    width: 72px;
    height: 58px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}

.support-attachments img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-modal .modal-content {
    position: relative;
    padding: 26px;
    border: 1px solid #a9752d;
    border-radius: 20px;
    color: var(--ink);
    background: linear-gradient(145deg, #fff9df, #f2d680);
    box-shadow: var(--shadow);
}

.auth-modal .modal-content > img {
    display: block;
    width: 94px;
    height: 94px;
    margin: 0 auto 6px;
    object-fit: contain;
}

.auth-modal h2,
.auth-modal p {
    text-align: center;
}

.auth-form-error {
    margin: -4px 0 12px;
    padding: 9px 11px;
    border: 1px solid rgba(167, 60, 47, .45);
    border-radius: 10px;
    color: #79271e;
    font-size: 13px;
    font-weight: 650;
    background: rgba(255, 225, 215, .82);
}

.auth-form.is-invalid .form-control:invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 2px rgba(167, 60, 47, .12);
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-bottom: 14px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(91, 54, 18, .08);
}

.auth-tabs button {
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    color: var(--ink-soft);
    font-weight: 800;
    background: transparent;
}

.auth-tabs button[aria-selected="true"] {
    color: #2f1c0b;
    background: #f3bf42;
    box-shadow: 0 2px 7px rgba(77, 44, 11, .16);
}

.auth-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    color: #f5dda0;
    font-size: 25px;
    line-height: 1;
    background: #3d210f;
}

.payment-intro,
.payment-result,
.cashout-form,
.payment-history,
.cashout-limit-panel {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--panel-radius);
    background: rgba(255, 249, 224, .94);
    box-shadow: 0 8px 20px rgba(75, 43, 12, .08);
}

.cashout-limit-panel {
    display: grid;
    gap: 9px;
}

.cashout-limit-disclosure summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.cashout-limit-disclosure summary::-webkit-details-marker {
    display: none;
}

.cashout-limit-disclosure summary span,
.cashout-limit-disclosure summary small,
.cashout-limit-disclosure summary strong {
    display: block;
}

.cashout-limit-disclosure summary b {
    flex: 0 0 auto;
    color: #8a5517;
    font-size: 12px;
}

.cashout-limit-disclosure summary b::after {
    content: " +";
}

.cashout-limit-disclosure[open] summary b::after {
    content: " −";
}

.cashout-limit-details {
    display: grid;
    gap: 9px;
    padding-top: 10px;
    border-top: 1px solid #d7bd7d;
}

.cashout-limit-panel h2,
.cashout-limit-panel p {
    margin: 0;
}

.cashout-limit-panel > div > small {
    color: #81501a;
    font-size: 11px;
    font-weight: 800;
}

.cashout-limit-track {
    overflow: hidden;
    height: 9px;
    border: 1px solid #bd964d;
    border-radius: 8px;
    background: #eadab0;
}

.cashout-limit-track span {
    display: block;
    height: 100%;
    background: #2d915f;
}

.cashout-tier-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.cashout-tier-list span {
    padding: 8px;
    border: 1px solid #d1bd84;
    border-radius: 9px;
    background: #f6e9c3;
}

.cashout-tier-list span.is-unlocked {
    border-color: #69a77e;
    background: #e3f0d8;
}

.cashout-tier-list small,
.cashout-tier-list strong {
    display: block;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.settings-card,
.settings-wallets {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--panel-radius);
    background: rgba(255, 249, 224, .94);
}

.settings-card h3,
.settings-card p {
    margin: 0 0 8px;
}

.settings-wallets-head {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.settings-wallets-head span,
.settings-wallets-head strong,
.settings-wallets-head small {
    display: block;
}

.settings-wallets-head small {
    color: var(--ink-soft);
}

.settings-wallet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.settings-wallet-card {
    min-width: 0;
    padding: 11px;
    border: 1px solid #d3bd80;
    border-radius: 11px;
    background: #fff8df;
}

.settings-wallet-card.is-saved {
    border-color: #6ca881;
}

.settings-wallet-card form {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.settings-wallet-card img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.settings-wallet-card div strong,
.settings-wallet-card div small {
    display: block;
}

.settings-wallet-card div small {
    color: var(--ink-soft);
}

.settings-wallet-card .form-control {
    grid-column: 1 / -1;
}

.settings-wallet-card .btn {
    grid-column: 3;
    grid-row: 1;
}

.payment-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, rgba(255, 249, 224, .98), rgba(245, 215, 126, .9));
}

.payment-intro small {
    color: #81501a;
    font-weight: 800;
    letter-spacing: .05em;
}

.payment-intro h2,
.payment-result h2,
.payment-history h2 {
    margin: 2px 0 4px;
}

.payment-intro p,
.payment-result p {
    margin: 0;
    color: var(--ink-soft);
}

.payment-intro > span {
    color: #5c3816;
    font-size: 13px;
    font-weight: 750;
    text-align: right;
}

.balance-box {
    min-width: 170px;
    padding: 11px 13px;
    border: 1px solid rgba(117, 76, 27, .28);
    border-radius: 12px;
    background: rgba(255, 252, 237, .78);
}

.balance-box small,
.balance-box strong {
    display: block;
}

.balance-box strong {
    margin-top: 2px;
    font-size: 18px;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.payment-method-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-content: start;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: rgba(255, 250, 229, .94);
}

.payment-method-card > img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.payment-method-card h3,
.payment-method-card p {
    margin: 0;
}

.payment-method-card p {
    color: var(--ink-soft);
    font-size: 12px;
}

.payment-method-card form {
    grid-column: 1 / -1;
}

.payment-result label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 700;
}

.payment-copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 8px;
}

.payment-copy-row button {
    min-width: 72px;
    min-height: 42px;
    border: 1px solid #b77a17;
    border-radius: 10px;
    background: #f5b632;
    color: #2b180a;
    font-weight: 700;
}

.deposit-address-card {
    background: linear-gradient(135deg, rgba(255, 249, 224, .98), rgba(238, 226, 178, .96));
}

.deposit-address-card > header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 58px;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.deposit-address-card > header img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.deposit-address-card > header small {
    color: #3f7653;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
}

.payment-choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.payment-choice {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cream-100);
    cursor: pointer;
}

.payment-choice:has(input:checked) {
    border-color: #9c691f;
    background: #f7dc8b;
    box-shadow: inset 0 0 0 1px rgba(156, 105, 31, .2);
}

.payment-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-choice img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.payment-choice span,
.payment-choice strong,
.payment-choice small {
    display: block;
    min-width: 0;
}

.payment-choice strong {
    overflow-wrap: anywhere;
}

.payment-choice small {
    color: var(--ink-soft);
}

.route-hero {
    display: flex;
    min-height: 118px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(255, 250, 229, .96), rgba(239, 202, 91, .88));
    box-shadow: 0 8px 20px rgba(75, 43, 12, .08);
}

.route-hero h1,
.route-hero h2,
.route-hero p {
    margin: 0;
}

.route-hero h1 {
    font-size: 28px;
}

.route-hero img {
    width: 108px;
    height: 88px;
    object-fit: contain;
}

.payment-method-panel,
.payment-checkout,
.balance-convert-panel {
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255, 250, 229, .94);
    box-shadow: 0 8px 20px rgba(75, 43, 12, .08);
}

.payment-method-panel > header,
.payment-checkout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.payment-method-panel > header small,
.payment-checkout-head small {
    color: #81501a;
    font-size: 10px;
    font-weight: 800;
}

.payment-method-panel h2,
.payment-method-group h3,
.payment-checkout-head h2,
.payment-checkout-head p {
    margin: 0;
}

.payment-method-panel > header > span {
    color: var(--ink-soft);
    font-size: 12px;
}

.payment-recommended {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 9px 11px;
    border: 1px solid #c19036;
    border-radius: 11px;
    color: var(--ink);
    background: #f7df96;
}

.payment-recommended img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.payment-recommended span,
.payment-recommended small,
.payment-recommended strong {
    display: block;
}

.payment-recommended small {
    color: var(--ink-soft);
}

.payment-recommended b {
    color: #70430f;
    font-size: 12px;
}

.payment-method-group + .payment-method-group {
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--line);
}

.payment-method-group h3 {
    margin-bottom: 7px;
    font-size: 13px;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.payment-provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-method-grid > a {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 70px;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid #ceb472;
    border-radius: 11px;
    color: var(--ink);
    background: #fff8df;
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.payment-method-grid > a:hover {
    color: var(--ink);
    border-color: #b4771a;
    box-shadow: 0 7px 15px rgba(74, 40, 8, .12);
    transform: translateY(-1px);
}

.payment-method-grid > a.is-saved {
    border-color: #66a47a;
    background: #edf3d7;
}

.payment-method-grid img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
}

.payment-method-grid span,
.payment-method-grid strong,
.payment-method-grid small {
    display: block;
    min-width: 0;
}

.payment-method-grid strong {
    overflow-wrap: anywhere;
}

.payment-method-grid small {
    color: var(--ink-soft);
    font-size: 10px;
}

.payment-method-grid > a > b {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 5px;
    border-radius: 6px;
    color: #f4ffe9;
    font-size: 8px;
    background: #39815a;
}

.payment-checkout-head {
    justify-content: flex-start;
}

.payment-checkout-head > a {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid #bd8734;
    border-radius: 9px;
    color: var(--ink);
    background: #f6d376;
}

.payment-checkout-head > img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.payment-amount-form {
    display: grid;
    gap: 10px;
}

.payment-address-start {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #d2bd83;
    border-radius: 12px;
    background: #fff9e6;
}

.payment-address-start span,
.payment-address-start strong,
.payment-address-start small {
    display: block;
}

.payment-address-start small {
    margin-top: 2px;
    color: var(--ink-soft);
}

.payment-address-start .btn {
    min-width: 132px;
}

.payment-amount-form > label {
    font-weight: 750;
}

.payment-converter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
}

.payment-converter article {
    display: grid;
    min-width: 0;
    min-height: 84px;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 8px;
    border: 1px solid #d2bd83;
    border-radius: 11px;
    background: #fff9e6;
}

.payment-converter article > img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.payment-converter article > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    font-size: 20px;
    font-weight: 800;
    background: #f5cf65;
}

.payment-converter strong,
.payment-converter small {
    display: block;
    min-width: 0;
    text-align: center;
}

.payment-converter small {
    color: var(--ink-soft);
    font-size: 10px;
}

.payment-converter > i {
    color: #8c5a18;
    text-align: center;
}

.payment-converter input {
    width: 100%;
    min-height: 34px;
    border: 1px solid #b69053;
    border-radius: 8px;
    text-align: center;
    background: #fffdf5;
}

.balance-convert-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
    gap: 10px;
}

.balance-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.balance-pair article {
    display: grid;
    align-content: center;
    padding: 9px 11px;
    border: 1px solid #d1b977;
    border-radius: 11px;
    background: #fff8dd;
}

.balance-pair span,
.balance-pair small {
    color: var(--ink-soft);
    font-size: 10px;
}

.balance-pair strong {
    display: flex;
    align-items: center;
    gap: 5px;
}

.balance-pair img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.balance-convert-panel form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    gap: 6px;
}

.balance-convert-panel form > label {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 750;
}

.balance-convert-panel form > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid #b69053;
    border-radius: 9px;
    background: #fffdf5;
}

.balance-convert-panel input {
    width: 100%;
    min-height: 39px;
    padding: 6px 8px;
    border: 0;
    background: transparent;
}

.balance-convert-panel form > div span {
    padding-right: 9px;
    color: var(--ink-soft);
    font-size: 11px;
}

.balance-convert-panel button,
.cashout-submit-row button {
    min-height: 42px;
    padding: 7px 13px;
    border: 1px solid #b87413;
    border-radius: 9px;
    color: var(--ink);
    font-weight: 800;
    background: linear-gradient(#ffd66d, #eea21c);
}

.balance-convert-panel button:disabled,
.cashout-submit-row button:disabled {
    opacity: .55;
}

.cashout-form {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.payout-preview {
    margin-bottom: 10px;
}

.cashout-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(180px, .65fr);
    gap: 8px;
}

.cashout-fields.has-memo {
    grid-template-columns: minmax(0, 1.2fr) minmax(150px, .8fr) minmax(150px, .65fr);
}

.cashout-fields label {
    display: grid;
    gap: 5px;
    font-size: 11px;
    font-weight: 750;
}

.cashout-fields input {
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #b69053;
    border-radius: 9px;
    background: #fffdf5;
}

.cashout-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 9px;
}

.cashout-submit-row > span {
    color: var(--ink-soft);
    font-size: 11px;
}

.cashout-submit-row > div {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
}

.cashout-submit-row .payout-wallet-save {
    background: #fff8df;
}

.payment-history {
    overflow: hidden;
}

.payment-history .table {
    margin-bottom: 0;
}

.offerwall-intro {
    margin-bottom: 9px;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: var(--panel-radius);
    background: linear-gradient(135deg, rgba(255, 249, 224, .98), rgba(241, 207, 108, .9));
}

.offerwall-intro small {
    color: #81501a;
    font-weight: 800;
    letter-spacing: .05em;
}

.offerwall-intro h2,
.offerwall-intro p {
    margin: 2px 0 0;
}

.offerwall-intro p {
    color: var(--ink-soft);
}

.offerwall-tabs {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 6px;
    overflow-x: auto;
    margin-bottom: 9px;
    padding: 7px;
    border: 1px solid #7b4c18;
    border-radius: 13px;
    background: #301809;
}

.offerwall-tabs a {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid #6e4519;
    border-radius: 9px;
    color: #eed696;
    font-weight: 700;
}

.offerwall-tabs a:hover,
.offerwall-tabs a.is-active {
    color: #2f1b0b;
    border-color: #f2bd3d;
    background: #f2bd3d;
}

.offerwall-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.offerwall-task {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: rgba(255, 250, 229, .94);
}

.offerwall-task small {
    color: var(--ink-soft);
}

.offerwall-task h3 {
    margin: 2px 0 0;
    font-size: 16px;
}

.offerwall-task > strong {
    color: #755016;
}

.offerwall-task > a {
    grid-column: 1 / -1;
}

.offerwall-empty {
    grid-column: 1 / -1;
    padding: 25px;
    border: 1px dashed #c2a45f;
    border-radius: 14px;
    color: var(--ink-soft);
    text-align: center;
    background: rgba(255, 250, 229, .84);
}

.offerwall-frame {
    overflow: hidden;
    min-height: 680px;
    border: 1px solid var(--line);
    border-radius: var(--panel-radius);
    background: #fff;
}

.offerwall-frame iframe {
    display: block;
    width: 100%;
    min-height: 680px;
    border: 0;
}

.admin-body {
    min-height: 100vh;
    color: #2f1b0b;
    background: #211107 url("/images/backgrounds/1.webp") center / cover fixed;
}

.admin-shell {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    padding: 16px 12px;
    border-right: 1px solid #70461a;
    background: rgba(38, 18, 7, .97);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 9px;
    color: #f2d887;
}

.admin-brand:hover {
    color: #fff0bb;
}

.admin-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.admin-brand span,
.admin-brand strong,
.admin-brand small {
    display: block;
}

.admin-brand small {
    color: #bda36d;
}

.admin-sidebar nav {
    display: grid;
    gap: 5px;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #e4cb8e;
    font-weight: 700;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.is-active {
    color: #2f1b0b;
    border-color: #e3aa32;
    background: #f3c24c;
}

.admin-sidebar nav b {
    min-width: 22px;
    max-width: 105px;
    padding: 2px 6px;
    border-radius: 8px;
    color: #fff5d4;
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    background: #8f2d1e;
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #d3b56f;
    background: rgba(255, 246, 207, .96);
}

.admin-topbar div,
.admin-topbar strong,
.admin-topbar small {
    display: block;
}

.admin-topbar small {
    color: #88591d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.admin-topbar nav {
    display: flex;
    gap: 8px;
}

.admin-topbar nav a {
    padding: 8px 10px;
    border: 1px solid #c69a47;
    border-radius: 9px;
    color: #543114;
    font-weight: 700;
    background: #fff9e2;
}

.admin-content {
    padding: 18px;
}

.admin-content .card,
.admin-card {
    border: 1px solid #d4b66d;
    border-radius: 15px;
    background: rgba(255, 250, 230, .97);
    box-shadow: 0 8px 22px rgba(27, 12, 4, .12);
}

.admin-card {
    padding: 16px;
}

.admin-card h2,
.admin-card h3 {
    margin-top: 0;
}

.admin-card p {
    color: #75522c;
}

.admin-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid #d4b66d;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff9e2, #efd17b);
}

.admin-page-head small {
    color: #82531a;
    font-weight: 800;
    letter-spacing: .05em;
}

.admin-page-head h2 {
    margin: 1px 0 0;
}

.admin-page-head form {
    display: flex;
    gap: 7px;
}

.admin-page-head form .form-control {
    min-width: 240px;
}

.admin-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-data-list {
    margin: 0;
}

.admin-data-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e3d3a7;
}

.admin-data-list dt {
    color: #7a572d;
}

.admin-data-list dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-metrics span {
    padding: 10px;
    border: 1px solid #dcc78f;
    border-radius: 11px;
    background: #fff9e7;
}

.admin-metrics small,
.admin-metrics strong {
    display: block;
}

.admin-metrics small {
    color: #7a572d;
}

.admin-page-heading,
.admin-inline-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.admin-page-heading {
    justify-content: space-between;
    margin-bottom: 14px;
}

.admin-page-heading h2 {
    margin: 2px 0 0;
}

.admin-inline-filter select {
    min-height: 39px;
    padding: 7px 30px 7px 10px;
    border: 1px solid #c79b55;
    border-radius: 8px;
    color: #34200f;
    background: #fff9e8;
}

.admin-settings-form {
    display: grid;
    gap: 14px;
}

.admin-settings-form > *,
.admin-card .table-responsive {
    min-width: 0;
    max-width: 100%;
}

.admin-card .table-responsive {
    overflow-x: auto;
}

.admin-settings-form .table .form-control {
    min-width: 96px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-form-grid > *,
.admin-form-grid .form-control,
.admin-form-grid .form-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.admin-form-grid label {
    display: grid;
    align-content: start;
    gap: 5px;
    color: #4d3218;
    font-weight: 700;
}

.admin-form-grid label small {
    color: #80613b;
    font-weight: 500;
}

.admin-form-wide {
    grid-column: 1 / -1;
}

.admin-news-list {
    display: grid;
    gap: 8px;
}

.admin-news-list details {
    border: 1px solid #d4b77f;
    border-radius: 9px;
    background: #fff9e8;
}

.admin-news-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
}

.admin-news-list summary span strong,
.admin-news-list summary span small {
    display: block;
}

.admin-news-list summary small {
    color: #80613b;
}

.admin-news-list details > form {
    padding: 12px;
    border-top: 1px solid #d4b77f;
}

.table-responsive:focus-visible {
    outline: 2px solid #a76818;
    outline-offset: 2px;
}

.admin-card td a strong,
.admin-card td a small {
    display: block;
}

.admin-card td a small {
    color: #80613b;
}

.admin-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid #d7bd79;
    border-radius: 12px;
    background: #fff9e6;
}

.admin-switch input {
    width: 20px;
    height: 20px;
}

.admin-switch span,
.admin-switch strong,
.admin-switch small {
    display: block;
}

.admin-switch small {
    color: #75522c;
}

.admin-review-form {
    display: grid;
    grid-template-columns: 90px minmax(130px, 1fr) auto auto;
    gap: 5px;
    min-width: 470px;
}

.admin-reward-campaigns { margin-bottom: 14px; }
.admin-reward-campaign-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-reward-campaign-grid form { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.admin-reward-campaign-grid form > strong,
.admin-reward-campaign-grid .is-wide { grid-column: 1 / -1; }
.admin-reward-campaign-grid label { color: var(--ink-soft); font-size: 11px; }
.admin-reward-campaign-grid button { justify-self: start; }

.admin-pagination {
    display: flex;
    gap: 5px;
    margin-top: 12px;
}

.admin-pagination a {
    min-width: 36px;
    padding: 7px;
    border: 1px solid #b38639;
    border-radius: 8px;
    color: #4c2c12;
    text-align: center;
    background: #fff7dc;
}

.admin-pagination a.is-active {
    background: #f2be42;
}

.admin-login {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 18px;
}

.admin-login form {
    width: min(100%, 420px);
    padding: 25px;
    border: 1px solid #bf8d37;
    border-radius: 20px;
    background: linear-gradient(145deg, #fff9df, #efd078);
    box-shadow: 0 22px 50px rgba(13, 6, 2, .45);
}

.admin-login img {
    display: block;
    width: 94px;
    height: 94px;
    margin: 0 auto 5px;
    object-fit: contain;
}

.admin-login > form > small,
.admin-login h1 {
    display: block;
    text-align: center;
}

.admin-login > form > small {
    color: #81501a;
    font-weight: 800;
}

.admin-login h1 {
    margin: 2px 0 18px;
}

.mobile-more-panel {
    display: none;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 16px 18px;
    border: 1px solid #674017;
    border-radius: 16px;
    color: #d9bd7c;
    background: #211107;
}

.site-footer nav {
    display: flex;
    gap: 14px;
}

.site-footer a {
    color: #eed796;
}

.mobile-navigation {
    display: none;
}

@media (max-width: 1100px) {
    .user-layout {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .mine-sidebar {
        padding: 8px;
    }

    .mine-sidebar-brand {
        height: 72px;
    }

    .mine-sidebar-brand img {
        width: 92px;
        height: 72px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-feature-grid {
        grid-template-columns: 1fr;
    }

    .mine-tier-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .partner-summary {
        grid-template-columns: 1fr;
    }

    .partner-metrics {
        grid-column: auto;
    }

    .partner-guide-grid {
        grid-template-columns: 1fr;
    }

    .partner-level-grid {
        grid-template-columns: 1fr 1fr;
    }

    .partner-level-card {
        grid-column: 1 / -1;
    }

    .partner-tier-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .payment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payment-choice-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body {
        background-attachment: scroll;
    }

    .site-shell {
        width: min(100% - 12px, 720px);
        padding-top: 6px;
        padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    }

    .user-page .site-shell {
        padding: 6px 0 calc(78px + env(safe-area-inset-bottom, 0px));
    }

    .user-page .site-footer {
        display: none;
    }

    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: static;
        padding: 8px;
        border-right: 0;
        border-bottom: 1px solid #70461a;
    }

    .admin-brand {
        margin-bottom: 7px;
    }

    .admin-brand img {
        width: 42px;
        height: 42px;
    }

    .admin-sidebar nav {
        display: flex;
        overflow-x: auto;
    }

    .admin-sidebar nav a {
        flex: 0 0 auto;
        padding: 8px 10px;
    }

    .admin-topbar,
    .admin-page-head,
    .admin-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-content {
        padding: 8px;
    }

    .admin-page-head form,
    .admin-page-head form .form-control {
        width: 100%;
        min-width: 0;
    }

    .admin-two-column,
    .admin-metrics,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-inline-filter,
    .admin-inline-filter select {
        width: 100%;
    }

    .site-header {
        min-height: 64px;
        padding: 7px 10px;
        border-radius: 14px;
    }

    .site-brand img {
        width: 46px;
        height: 46px;
    }

    .site-brand span {
        display: none;
    }

    .public-nav a:not(:first-child):not(:last-child) {
        display: none;
    }

    .public-nav a {
        padding: 8px 10px;
    }

    .account-summary > span {
        min-width: 86px;
        padding: 6px 8px;
    }

    .account-summary > span:nth-child(2),
    .account-summary > a {
        display: none;
    }

    .mine-sidebar {
        display: none;
    }

    .user-layout {
        display: block;
        height: 100%;
    }

    .user-topbar {
        gap: 5px;
    }

    .user-topbar-balance {
        gap: 4px;
    }

    .user-topbar-balance a,
    .user-topbar-account {
        padding: 6px 7px;
    }

    .user-topbar-account span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .user-content,
    .public-content {
        margin-top: 7px;
        padding: 7px;
        border-radius: 17px;
    }

    .user-content {
        height: calc(100% - 7px);
    }

    .user-content-scroll {
        padding-right: 2px;
    }

    .mobile-navigation {
        position: fixed;
        right: 6px;
        bottom: max(6px, env(safe-area-inset-bottom, 0px));
        left: 6px;
        z-index: 100;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        padding: 5px;
        border: 1px solid #8b581a;
        border-radius: 15px;
        background: rgba(31, 15, 6, .97);
        box-shadow: 0 -10px 28px rgba(20, 9, 3, .35);
    }

    .mobile-navigation a,
    .mobile-navigation button {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 5px 2px;
        border: 1px solid #654018;
        border-radius: 10px;
        color: #f5dc96;
        font-size: 10px;
        font-weight: 700;
        background: transparent;
    }

    .mobile-navigation a.is-active,
    .mobile-navigation button.is-active,
    .mobile-navigation button[aria-expanded="true"] {
        color: #2f1b0b;
        border-color: #f6c657;
        background: var(--gold-500);
    }

    .mobile-navigation img {
        width: 27px;
        height: 27px;
        object-fit: contain;
    }

    .mobile-more {
        min-height: 27px;
        font-size: 19px;
        line-height: 22px;
    }

    .mobile-more-panel {
        position: fixed;
        right: 6px;
        bottom: calc(82px + env(safe-area-inset-bottom, 0px));
        left: 6px;
        z-index: 99;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 10px;
        border: 1px solid #8b581a;
        border-radius: 16px;
        background: rgba(31, 15, 6, .98);
        box-shadow: 0 -14px 34px rgba(20, 9, 3, .45);
    }

    .mobile-more-panel[hidden] {
        display: none;
    }

    .mobile-wallet {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding-bottom: 4px;
    }

    .mobile-wallet > a,
    .mobile-wallet > button {
        display: flex;
        min-width: 0;
        min-height: 48px;
        justify-content: center;
        padding: 7px 8px;
        border: 1px solid #654018;
        border-radius: 10px;
        color: #f5dc96;
        background: rgba(255, 255, 255, .03);
    }

    .mobile-wallet-user {
        align-items: center;
        gap: 7px;
        overflow: hidden;
    }

    .mobile-wallet-user strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-wallet-balance {
        flex-direction: column;
    }

    .mobile-wallet-balance small {
        font-size: 8px;
        letter-spacing: .04em;
    }

    .mobile-wallet-balance strong {
        font-size: 12px;
    }

    .mobile-more-panel a {
        position: relative;
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 6px;
        padding: 8px;
        border: 1px solid #654018;
        border-radius: 10px;
        color: #f5dc96;
        font-size: 11px;
        font-weight: 700;
    }

    .mobile-more-panel a.is-active {
        color: #2f1b0b;
        border-color: #f6c657;
        background: var(--gold-500);
    }

    .mobile-more-panel img {
        width: 30px;
        height: 30px;
        object-fit: contain;
    }

    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-game-card {
        order: 1;
    }

    .auth-card {
        order: 2;
    }

    .home-stats,
    .mine-metrics,
    .mine-stage-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-stats span:last-child,
    .mine-stage-summary > div:last-child {
        grid-column: 1 / -1;
    }

    .mine-metrics {
        gap: 5px;
    }

    .mine-metrics > div,
    .mine-stage-summary > div {
        padding: 7px 8px;
    }

    .mine-playfield {
        aspect-ratio: 1.72 / 1;
        border-radius: 9px;
    }

    .mine-background {
        object-position: center 64%;
        transform: none;
    }

    .mine-stage-summary {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2px;
        padding: 3px;
    }

    .mine-stage-summary > div {
        padding: 3px 2px;
        text-align: center;
    }

    .mine-stage-summary small {
        overflow: hidden;
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mine-stage-summary strong {
        overflow: hidden;
        font-size: 12px;
        text-overflow: ellipsis;
    }

    .mine-storage-track {
        top: 44px;
    }

    .mine-worker-1 { left: 9%; bottom: 31%; width: 14%; }
    .mine-worker-2 { left: 29.5%; bottom: 31%; width: 14.2%; }
    .mine-worker-3 { left: 50%; bottom: 31%; width: 14.4%; }
    .mine-worker-4 { left: 70.5%; bottom: 31%; width: 14.3%; }
    .mine-worker-5 { left: 91%; bottom: 31%; width: 14.6%; }

    .mine-worker span {
        right: -2px;
        bottom: 0;
        padding: 2px 4px;
        font-size: 10px;
    }

    .mine-hire-float {
        top: -14%;
        font-size: 10px;
    }

    .mine-collect {
        bottom: 2.5%;
    }

    .mine-collect button {
        min-height: 42px;
        padding: 7px 11px;
        font-size: 11px;
        box-shadow: 0 2px 0 #8e5609;
    }

    .mine-upgrade-strip {
        gap: 6px;
    }

    .mine-upgrade-card {
        min-height: 64px;
    }

    .mine-upgrade-card button {
        min-height: 62px;
        grid-template-columns: 45px minmax(0, 1fr);
        gap: 6px;
        padding: 6px;
    }

    .mine-upgrade-card img {
        width: 45px;
        height: 45px;
    }

    .mine-upgrade-card strong {
        font-size: 11px;
        line-height: 1.2;
    }

    .mine-upgrade-card em {
        grid-column: 2;
        font-size: 10px;
        white-space: normal;
    }

    .feature-grid,
    .how-steps,
    .level-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .seo-hero {
        grid-template-columns: minmax(0, 1fr) 112px;
        gap: 10px;
        padding: 16px 12px;
    }

    .seo-hero h1 {
        font-size: 30px;
    }

    .seo-hero p {
        font-size: 15px;
    }

    .seo-hero > img {
        width: 112px;
        height: 112px;
    }

    .seo-feature-grid {
        padding: 14px 0;
    }

    .seo-feature-grid article {
        grid-template-columns: 72px minmax(0, 1fr);
        padding: 13px;
    }

    .seo-feature-grid img {
        width: 72px;
        height: 72px;
    }

    .seo-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px 12px;
    }

    .level-grid article:last-child {
        grid-column: 1 / -1;
    }

    .mine-tier-grid,
    .partner-summary,
    .partner-level-grid,
    .task-grid,
    .support-options,
    .creator-guide,
    .reward-layout {
        grid-template-columns: 1fr;
    }

    .reward-source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reward-fields { grid-template-columns: 1fr 1fr; }
    .admin-reward-campaign-grid { grid-template-columns: 1fr; }

    .partner-level-card {
        grid-column: auto;
    }

    .partner-promo-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .partner-promo-cta .btn {
        width: 100%;
    }

    .partner-tier-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .partner-tier-strip article:last-child {
        grid-column: 1 / -1;
    }

    .partner-network-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-hero,
    .reward-hero,
    .task-summary,
    .payment-intro {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px;
    }

    .payment-intro > span {
        text-align: left;
    }

    .balance-box {
        width: 100%;
    }

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

    .route-hero {
        min-height: 88px;
        padding: 10px 12px;
    }

    .route-hero h1 {
        font-size: 23px;
    }

    .route-hero h2 {
        font-size: 21px;
    }

    .route-hero p {
        font-size: 12px;
    }

    .route-hero img {
        width: 76px;
        height: 66px;
    }

    .payment-method-panel,
    .payment-checkout,
    .balance-convert-panel {
        padding: 10px;
    }

    .payment-method-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payment-provider-grid {
        grid-template-columns: 1fr;
    }

    .payment-method-grid > a {
        min-height: 62px;
        padding: 7px;
    }

    .payment-method-grid img {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .payment-converter {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .payment-converter > i {
        display: none;
    }

    .payment-converter article {
        min-height: 76px;
        padding: 6px 3px;
    }

    .payment-address-start {
        grid-template-columns: 1fr;
    }

    .payment-address-start .btn {
        width: 100%;
    }

    .deposit-address-card > header {
        grid-template-columns: 42px minmax(0, 1fr) 48px;
    }

    .deposit-address-card > header img {
        width: 48px;
        height: 48px;
    }

    .balance-convert-panel,
    .cashout-fields,
    .cashout-fields.has-memo {
        grid-template-columns: 1fr;
    }

    .cashout-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .cashout-submit-row > div {
        width: 100%;
    }

    .cashout-submit-row button {
        min-height: 44px;
        flex: 1 1 0;
    }

    .balance-convert-panel form {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .payment-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cashout-tier-list,
    .settings-grid,
    .settings-wallet-grid,
    .support-layout {
        grid-template-columns: 1fr;
    }

    .settings-wallet-card form {
        grid-template-columns: 38px minmax(0, 1fr) auto;
    }

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

    .offerwall-frame,
    .offerwall-frame iframe {
        min-height: 560px;
    }

    .reward-hero img {
        display: none;
    }

    .reward-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .reward-source-grid {
        position: relative;
        grid-template-columns: repeat(10, minmax(148px, 72vw));
        grid-auto-flow: column;
        gap: 7px;
        overflow-x: auto;
        padding-top: 27px;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .reward-source-grid legend {
        position: absolute;
        inset: 0 auto auto 0;
    }

    .reward-source {
        min-height: 112px;
        scroll-snap-align: start;
    }

    .reward-fields {
        grid-template-columns: 1fr;
    }

    .reward-history article {
        grid-template-columns: 1fr auto;
    }

    .reward-history article > a,
    .reward-history article > b {
        justify-self: start;
    }

    .news-list article {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .mine-tier-grid {
        gap: 7px;
    }

    .mine-shop-head {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mine-tier-card {
        display: grid;
        grid-template-columns: 90px 1fr;
        grid-template-rows: auto auto auto;
        min-height: 124px;
        align-items: center;
        padding: 10px;
    }

    .mine-tier-card > img {
        grid-row: 1 / 4;
        width: 86px;
    }

    .mine-tier-card h3 {
        min-height: 0;
        margin: 8px 0 0;
        padding: 0 44px 0 0;
        text-align: left;
    }

    .mine-tier-card > strong,
    .mine-tier-card > small {
        justify-self: start;
    }

    .mine-tier-meter {
        grid-column: 2;
        margin-bottom: 5px;
    }

    .mine-tier-card form,
    .mine-tier-card > button {
        grid-column: 2;
    }

    .mine-page-head,
    .how-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .partner-metrics {
        grid-column: auto;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}
