:root {
    --page-bg: #f7f1e8;
    --surface: #fffdf8;
    --ink: #30241d;
    --accent: #b94c20;
    --border: #ead8c6;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.6; background: var(--page-bg); color: var(--ink); }
body img { max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #d98a38; outline-offset: 3px; }
body .body_body { position: relative; z-index: 1; width: min(960px, calc(100% - 32px)); max-width: none; margin: 16px auto 28px; }
.snowEffect { z-index: 0 !important; pointer-events: none; }
.body_body .div-12 { margin: 0 0 10px; padding: 0 4px; font-size: 12px; line-height: 1.5; color: #645448; text-align: center; }
.body_body .bg_top { height: 20px; margin: 0; background: #a94120; border-radius: 20px 20px 0 0; }
.body_body .body-content { background: var(--surface); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 20px 20px; margin: 0; padding: 0 22px 22px; box-shadow: 0 12px 36px #55351a12; }
.body_body h1.a { height: auto; margin: 0; padding: 10px; background: transparent; }
.body_body h1.a img { display: block; width: min(100%, 360px); max-width: 100%; height: auto; margin: 0 auto; object-fit: contain; }
.body_body .h, .body_body .bg_noel { padding: 0; margin: 0; }
.body_body .bg_noel { height: 0; }
.menu2 { margin: 0 0 12px; }
.menu2 table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 5px; margin: 0; }
.menu2 tr.menu td, .menu2 tr.menu td#selected { width: 25% !important; height: auto; padding: 0 !important; border: 0 !important; border-radius: 10px; background: #f2e4d5; text-align: center; vertical-align: middle; }
.menu2 tr.menu td a { display: flex; min-height: 44px; align-items: center; justify-content: center; padding: 6px; font: 600 14px/1.3 "Segoe UI", Arial, sans-serif; color: #643c25; white-space: normal; text-decoration: none; }
.menu2 tr.menu td#selected { background: var(--accent); }
.menu2 tr.menu td#selected a { color: white; }
.menu2 tr.menu td a:hover { background: #b94c201a; border-radius: inherit; }
.body_body .bg_top_22 img { display: block; width: 100%; height: auto; border-radius: 14px; }
.body_body .bg-content { margin: 16px 0 0; padding: clamp(14px, 3vw, 24px); color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow-wrap: anywhere; }
.body_body .bg-content .title { margin: 0 0 12px; padding-bottom: 8px; color: var(--accent); border-bottom: 1px solid var(--border); font-size: 19px; font-weight: 700; }
.body_body .bg-content .content { padding: 0; line-height: 1.75; }
.body_body .bg-content .content img { object-fit: contain; }
.body_body .content-p { margin: 16px 0 8px; font-weight: 700; }
.body_body .download .bg-content { background: #fff6e9; padding: 14px; }
.body_body #columns { gap: 12px !important; flex-wrap: wrap !important; }
.body_body #columns figure { margin: 0; max-width: 100%; vertical-align: middle; }
.body_body #columns figure:empty, .body_body #columns:empty { display: none; }
.body_body #columns figure a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px; }
.body_body #columns figure img { display: block; height: 35px; width: auto; }
.body_body .copyright { font-size: 12px; line-height: 1.6 !important; color: #645448; margin: 14px auto; }
.body_body .copyright a { color: var(--accent); }
.body_body .footer { position: relative; height: 8px; margin: 0; background: transparent; }
.body_body .foot_bg { display: none; }
.body_body table { max-width: 100%; font: inherit; }
.body_body td.current-blog { width: auto; min-width: 0; overflow-wrap: anywhere; }
.body_body #box_forums { max-width: none; padding: 0; }
.body_body .forum-post-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; box-shadow: none; gap: 6px; }
.body_body #stick .forum-post-item { background: #fff0d9; border-color: #e4b777; box-shadow: none; }
.body_body .forum-post-item a { color: #773719; overflow-wrap: anywhere; }
.body_body .forum-post-item .post-info { min-width: 0; }
.body_body #user-info { background: #773719; border: 0; border-radius: 14px; padding: 16px; width: 100%; max-width: 440px; min-width: 0; }
.body_body .box_inputboxx { flex-wrap: wrap; gap: 8px; }
.body_body .w3-button { border-radius: 8px; min-height: 40px; font-size: 14px !important; }
body .register-page, body .login-page { max-width: 760px; width: calc(100% - 32px); margin: 24px auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 12px 36px #55351a12; }
body .register-header, body .login-header { background: #fff1df; padding: 20px 12px; }
body .register-page .menu2, body .login-page .menu2 { padding: 0 12px; background: transparent; }
body .register-card, body .login-card { background: white; border: 1px solid var(--border); max-width: 470px; box-shadow: 0 8px 24px #55351a0e; }
body .register-card input, body .login-card input { font-size: 16px; min-height: 46px; }
@media (max-width: 640px) {
    body .body_body { width: calc(100% - 16px); margin: 8px auto 20px; }
    .body_body .body-content { padding: 0 10px 12px; }
    .menu2 table { border-spacing: 3px; }
    .menu2 tr.menu td a { font-size: 12px; padding: 5px 2px; }
    .body_body #columns { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; }
    .body_body #columns:empty { display: none !important; }
    body .register-page, body .login-page { width: calc(100% - 16px); margin: 8px auto; border-radius: 14px; min-height: auto; }
    .body_body .forum-post-item { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) { .snowEffect { display: none; } }

.body_body .forum-post-item .post-content { min-width: 0; flex: 1; }
body:has(.register-page), body:has(.login-page) { background: var(--page-bg); }

body .register-header img[src*='new-logo.png'], body .login-header img[src*='new-logo.png'] { display: block; width: min(100%, 320px); max-width: 100%; height: auto; margin: 0 auto; object-fit: contain; }
