/* Shared g_Sketch presentation. Layout and application states stay in styles.css. */
@font-face {
    font-family: SketchText;
    src: url('/media/font/Kreadon-Light.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: SketchText;
    src: url('/media/font/Kreadon-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}
:root {
    color-scheme: dark;
    --bg-header: #000000;
    --border-header: #ffffff;
    --text-primary: #ffffff;
    --text-muted: #b5b5b5;
    --accent-color: #ffffff;
    --sketch-paper: #000000;
    --sketch-ink: #ffffff;
    --sketch-hand: 'Segoe Print', 'Bradley Hand', SketchText, sans-serif;
}
body {
    font-family: SketchText, system-ui, sans-serif;
    color: var(--text-muted);
    background: #000000;
    background-image: none;
}
::selection { color: #000000; background: #ffffff; }
header {
    background: #000000f5;
    border-bottom-color: #ffffff;
    box-shadow: 0 3px 0 #000000, 0 4px 0 #ffffff24;
}
nav a, h1, h2, h3, .home_tagline, .auth-brand, .user-name-title,
.view-user-name, .section-title-profile, .friends-section-title,
.settings-card-title, .product-info h3, .game-info h3 {
    font-family: var(--sketch-hand);
    color: var(--sketch-ink);
    text-shadow: none;
}
nav a::after {
    height: 2px;
    bottom: 2px;
    background: #ffffff;
    box-shadow: 1px 3px 0 #ffffff35;
    rotate: -.8deg;
}
.home_description { color: #b5b5b5; font-family: inherit; }
.why_us_title::after, #team .title::after, .faq_title::after,
.legal_title::after, .auth-form h2::after {
    height: 1px;
    background: #ffffff;
    box-shadow: 2px 3px 0 #ffffff40;
    transform: rotate(-1deg);
}
/* Continuous borders with a faint second stroke; no change to box dimensions. */
:is(.why_us_card, .team_member, .team_member_small, .team_member_lead, .team_lead_card,
.faq_container, .legal_box, .legal_content, .auth-form, .profile-header-info,
.profile-game-card, .product-card, .modal-container, .x86-modal,
.avatar-edit-card, .admin-product-card, .friends-section, .friend-card,
.view-profile-card, .settings-card, .profile-preview-card, .achievement-card,
.ru-seller-box) {
    background-color: var(--sketch-paper);
    background-image: none;
    border-color: #aaaaaa;
    border-image: none;
    outline: 1px solid #ffffff24;
    outline-offset: 2px;
    border-radius: 0;
    box-shadow: none;
}
:is(.why_us_card, .team_member, .team_member_small, .team_member_lead, .team_lead_card,
.faq_container, .auth-form, .profile-game-card, .product-card,
.avatar-edit-card, .friends-section, .friend-card, .view-profile-card,
.settings-card, .achievement-card):hover {
    box-shadow: none;
    border-color: #aaaaaa;
    transform: none;
}
.why_us_card i, .section-title-profile i, .friends-section-title i,
.settings-card-title i, .modal-features-list li i { color: #ffffff; }
.team_member img, .team_member_small img, .team_member_lead img, .team_lead_card img {
    border-radius: 3px 9px 4px 7px;
    border-color: #ffffff;
}
/* Explicit controls preserve icon fonts. */
button, input, select, textarea { font-family: SketchText, system-ui, sans-serif; }
:is(.home_btn, .auth-form button, .logout-btn, .get-loader-btn,
.friends-nav-btn, .back-to-profile-btn, .buy-trigger-btn, .checkout-btn,
.pay-method-btn, .ru-seller-back, .avatar-remove-btn, .admin-btn,
.friend-btn, .search-btn, .profile-social-btn, .settings-tab,
.team_contact_btn, .view-info-btn, .modal-thumb-btn,
.x86-modal-cancel, .x86-modal-proceed) {
    font-family: var(--sketch-hand);
    border-color: #aaaaaa;
    border-image: none;
    outline: 1px solid #ffffff24;
    outline-offset: 2px;
    border-radius: 0;
    background: #000000;
    color: #ffffff;
    box-shadow: none;
    text-shadow: none;
    transition: background-color .15s ease, color .15s ease;
}
:is(.home_btn, .auth-form button, .logout-btn, .get-loader-btn,
.friends-nav-btn, .back-to-profile-btn, .buy-trigger-btn, .checkout-btn,
.pay-method-btn, .ru-seller-back, .avatar-remove-btn, .admin-btn,
.friend-btn, .search-btn, .profile-social-btn, .settings-tab,
.team_contact_btn,
.x86-modal-cancel, .x86-modal-proceed):hover:not(:disabled) {
    background-color: #111111;
    background-image: repeating-linear-gradient(132deg, transparent 0 5px, #ffffff0b 5px 6px);
    color: #ffffff;
    box-shadow: none;
    transform: none;
}
.settings-tab.active, .pay-method-btn[aria-pressed='true'] {
    background: repeating-linear-gradient(132deg, #111111 0 5px, #333333 5px 6px);
    color: white;
}
.product-card:not(.maintenance-mode):not(.coming-soon-mode):hover .buy-trigger-btn {
    background: #111111;
    color: #ffffff;
}
input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='submit']),
select, textarea {
    background-color: #000000;
    color: #ffffff;
    border-color: #777777;
    border-radius: 2px 5px 3px 4px;
    box-shadow: 2px 2px 0 #ffffff12;
}
input::placeholder, textarea::placeholder { color: #969696; opacity: 1; }
input[type='checkbox'], input[type='radio'] { accent-color: #ffffff; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px dashed #ffffff;
    outline-offset: 5px;
}
button:disabled, input:disabled, select:disabled { opacity: .5; cursor: not-allowed; }
.modal-overlay, .x86-modal-overlay { background-color: #000000dc; }
.footer {
    background: #000000;
    border-top-color: #777777;
    box-shadow: 0 -3px 0 #ffffff12;
}
.footer-links a { color: #ffffff; text-decoration-style: dashed; text-underline-offset: 4px; }
.footer-links a:hover { text-decoration: underline; }
.footer-copyright, .footer-disclaimer { color: #a3a3a3; }
/* Preserve user cover images and their contrast overlays. */
.profile-header-info.has-cover, .view-profile-card.has-cover { background-color: #000000; }
/* Monochrome interface states; media retain their original colors. */
.status-badge, .product-status-tag, .account-badge, .admin-game-tag,
.admin-product-tag, .count-badge, .friend-status, .friend-state-label,
.success-message, .error-message, .password-success, .community-ban-notice,
.auth-message, .achievement-icon, .achievement-state {
    color: #fff !important;
    background: #000 !important;
    border-color: #aaa !important;
}
.success-message, .password-success { border-style: solid; }
.error-message, .community-ban-notice { border-style: dashed; }
.admin-game-tag i, .achievement-icon i, .community-ban-notice i {
    color: inherit !important;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
