/* ============================================================================
   Skin lấy đúng theo 4 file CSS gốc của ngocrongonline.com
   (view/static/css/template.css, eff.css, tpstyle.css, tpsk.css):
   nền #b3afaf, cột 630px, thanh cam #fe5604->#ff5601, panel #ffaf4c,
   menu #924C31, tab đang chọn #ffaf4c viền #FFAF4D, link #ff7700, Arial 9pt.
   Phần thêm (bảng xếp hạng, form, flash) ở cuối file, dùng cùng dải màu.
   ========================================================================= */
body {
    background: #b3afaf;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial;
    font-size: 9pt;
}
table { font-family: Arial; font-size: 9pt; }
img { border: none; }
a { color: #ff7700; text-decoration: none; }
h3 { -webkit-margin-before: 0; -webkit-margin-after: 0; }
h4 { -webkit-margin-before: .2em; -webkit-margin-after: .2em; }

.body_body { max-width: 630px; margin: 0 auto 5px; }

.div-12 {
    background: #000;
    color: #fff;
    line-height: 10px;
    font-size: 10px;
    padding-right: 5px;
    margin-bottom: -8px;
    padding-top: 2px;
}

.bg_top {
    background: #f85723;
    background: linear-gradient(to bottom, #fe5604 0%, #fe5604 30%, #ff5601 100%);
    position: relative;
    z-index: 0;
    width: 100%;
    height: 42px;
    margin-top: 10px;
    margin-left: 0;
    border-radius: 15px 15px 0 0;
}

.body-content { background: #ff5601; width: 100%; margin-left: 0; margin-bottom: -27px; }

/* khối logo: bản gốc là <h1 class="a"><img logo height=90> nhô lên khỏi thanh cam */
.a { height: 48px; text-align: center; margin-top: -10px; margin-bottom: 0; z-index: 1; position: relative; }
.a img { margin-top: -32px; z-index: 2; position: relative; }
.a .logo-txt {
    display: inline-block;
    margin-top: -34px;
    position: relative;
    z-index: 2;
    line-height: 1;
    padding: 6px 18px 8px;
    border-radius: 10px;
    background: linear-gradient(#fff6e2, #ffcf9c);
    border: 2px solid #924C31;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}
.a .logo-1 {
    display: block;
    font-size: 12px;
    letter-spacing: 4px;
    font-weight: bold;
    color: #e73d00;
}
.a .logo-2 {
    display: block;
    font-size: 30px;
    font-weight: bold;
    color: #ff5601;
    text-shadow: 1px 1px 0 #fff, 2px 2px 0 #924C31;
}

#top .h { padding-left: 0; padding-top: 5px; }
.h a { color: #ad4105; }
.h img { margin: 0; padding: 0; }
.h .bg_noel { height: 17px; margin-top: -10px; z-index: 10; position: relative; }
.link-more { width: 100%; }
.menu2 { margin: 0; }

/* Bản gốc đặt 25% cho hàng 4 ô; hàng của ta có 5 ô nên phải 20%, không thì ô thứ 5 teo lại. */
.menu td { border: 3px solid #924C31; padding: 2px; width: 20%; }
tr.menu td, tr.menu td a {
    color: #fff;
    text-decoration: none;
    text-align: center;
    vertical-align: bottom;
    padding-left: 0;
}
tr.menu td, td#selected { width: 20%; background-color: #924C31; padding: 2px; }
td#selected { background-color: #ffaf4c; border: 3px solid #FFAF4D !important; }
td#selected a { color: #561d00; padding: 2px; }
tr.menu td a:hover, td#selected a:hover { text-decoration: underline; }

.bg_top_22 { margin-top: 3px; line-height: 0; }
.bg_top_22 img { width: 100%; display: block; }
/* cụm ảnh Cơ Bản / VIP: 3 ảnh một hàng, cùng khổ như bản gốc */
/* GIF 120x90 hiện đúng khổ gốc; ảnh cảnh lớn hơn thì co lại vừa 3 cột như bản gốc */
.content .text-center img.scene { max-width: 32%; vertical-align: middle; }
.banner-txt {
    height: 90px;
    border-radius: 6px;
    border: 2px solid #924C31;
    background: linear-gradient(#ffcf9c, #ff9a3c);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.banner-name { font-size: 20px; font-weight: bold; color: #561d00; text-shadow: 1px 1px 0 #ffe9c6; }
.banner-sub { font-size: 11px; color: #7a3a10; }

.download { width: 100%; text-align: center; }
.download img { text-align: center; }

.bg-content {
    text-align: left;
    padding: 5px;
    padding-top: 3px;
    margin-bottom: 3px;
    margin-top: .2px;
    background: #ffaf4c;
    background-position: right bottom;
    color: #000;
}
.bg-content img { max-width: 100% !important; }
.bg-content .title { font-size: 15px; color: #e73d00; border-bottom: 1px solid #B98A51; }
.bg-content .title h4 { margin: 0; font-size: 15px; color: #e73d00; }
.bg-content .content { padding: 2px 2px 2px 0; line-height: 1.45; }
.content p { margin: 0 0 8px; }
.content-p { color: red; text-align: center; margin-bottom: -10px; }
.text-center { text-align: center; }

/* nút tải: giữ cấu trúc #columns > figure > figcaption của bản gốc */
div#columns figure {
    margin: 0 2px 0;
    transition: opacity .4s ease-in-out;
    display: inline-block;
    /* canh trên: ô NẠP NGỌC có 2 dòng chú thích và không có số phiên bản, để baseline
       mặc định thì nút của nó tụt xuống so với 5 nút còn lại */
    vertical-align: top;
    min-width: 84px;
}
div#columns figure figcaption { font-size: 9px; color: #444; }
.bg_tree { }
.foot_bg {
    width: 300px;
    text-align: center;
    z-index: 11;
    height: 48px;
    position: absolute;
}
.left_b_bottom { width: 100%; margin-top: -1px; position: relative; }
.right_b_bottom { position: relative; z-index: 2; background-position: right; width: 100%; margin-top: -5px; }
.footer {
    background: #ff5601;
    position: absolute;
    width: 100%;
    height: 76px;
    margin-bottom: 10px;
    background-position: center bottom;
    border-radius: 15px;
}
.copyright {
    position: relative;
    z-index: 3;
    width: 95%;
    margin: 0 auto;
    text-align: center;
    color: #000;
    font-size: 10px;
}
.copyright a { color: #000; }
.copyright p { margin: 6px 0; }

input[type="text"], textarea, input[type="password"] {
    border-radius: 4px;
    border: 1px solid #CCC;
    padding: 2px;
    width: 50px;
}

/* ---- thanh thông báo cố định (tpstyle.css) ---- */
.topup-notice-tb {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    transform: translateY(-120%);
    background: linear-gradient(90deg, rgba(11, 18, 32, .98), rgba(18, 24, 40, .98));
    color: rgba(255, 255, 255, .8);
    box-shadow: 0 6px 30px rgba(2, 6, 23, .6);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18px;
    gap: 12px;
    transition: transform .45s cubic-bezier(.2, .9, .3, 1);
}
.topup-notice-tb.show-tb { transform: translateY(0); }
.topup-inner-tb { max-width: 1100px; margin: 0 auto; display: flex; gap: 16px; align-items: center; width: 100%; }
.icon-tb {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 8px;
    background: #ffaf4c;
    display: grid;
    place-items: center;
    color: #111;
    font-weight: 700;
}
.content-tb { flex: 1; }
.content-tb h3 { margin: 0 0 6px; font-size: 16px; }
.content-tb p { margin: 0 0 10px; line-height: 1.35; opacity: .95; }
.links-tb { display: flex; flex-wrap: wrap; gap: 8px; }
.links-tb a {
    background: rgba(255, 255, 255, .06);
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, .8);
    font-weight: 600;
    font-size: 14px;
}
.actions-tb { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.btn-close-tb { background: transparent; border: 0; color: rgba(255, 255, 255, .8); font-size: 18px; cursor: pointer; }
.small-opts-tb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255, 255, 255, .9); }
.small-opts-tb input { transform: scale(1.1); margin-right: 6px; }

/* ---- nút lên đầu trang (eff.css) ---- */
#backTop {
    position: fixed;
    bottom: 60px;
    right: 2px;
    z-index: 9999;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s ease-out;
    opacity: 0;
    border: none;
    background: #924C31;
    color: #fff;
    border-radius: 4px;
    padding: 4px 7px;
    font-weight: 900;
    font-size: 11px;
}
#backTop.show { opacity: 1; }

/* ============================ phần thêm cho web này ===================== */
table.data { width: 100%; border-collapse: collapse; background: #fff6e2; }
table.data th, table.data td { border: 1px solid #d79242; padding: 4px 6px; }
table.data th { background: #ffcf9c; color: #561d00; text-align: left; }
table.data tr:nth-child(even) td { background: #fffaf0; }
table.data td.rank { text-align: center; width: 32px; font-weight: bold; color: #8a3c12; }
table.data tr.top1 td { background: #ffe9b8; }
.on { color: #136b13; font-weight: bold; }
.off { color: #a00; font-weight: bold; }
.note { color: #5b3a1e; font-size: 8.5pt; }
.err-detail { color: #7a0000; font-family: monospace; font-size: 8pt; word-break: break-all; }
code { background: rgba(255, 255, 255, .55); padding: 0 3px; border-radius: 3px; }

.tabs { margin: 3px 0 6px; }
.tabs a {
    display: inline-block;
    border: 2px solid #924C31;
    padding: 2px 8px;
    margin: 0 3px 3px 0;
    background: #924C31;
    color: #fff;
}
.tabs a.sel { background: #ffaf4c; border-color: #FFAF4D; color: #561d00; font-weight: bold; }

.frm { max-width: 340px; margin: 0 auto; }
.frm label { display: block; margin: 6px 0 2px; font-weight: bold; color: #561d00; }
.frm input[type=text], .frm input[type=password] { width: 100%; padding: 4px; font-size: 10pt; }
.frm .btn {
    display: block;
    margin: 10px auto 0;
    background: linear-gradient(#ffd79a, #ff9a3c);
    color: #561d00;
    border: 1px solid #8a3c12;
    border-radius: 4px;
    padding: 5px 16px;
    font-size: 10pt;
    font-weight: bold;
    cursor: pointer;
}
.frm .cap-row { display: flex; align-items: flex-end; gap: 6px; }
.frm .cap-row input { width: 90px !important; }
.frm .cap-row img { border: 1px solid #8a3c12; border-radius: 4px; }

.flash { padding: 5px 8px; margin: 0 0 3px; border: 1px solid; font-weight: bold; }
.flash-ok { background: #e2ffd1; border-color: #52fd2b; color: #175c17; }
.flash-err { background: #ffe0e0; border-color: #d10932; color: #8c1414; }

@media (max-width: 640px) {
    .a .logo-2 { font-size: 22px; }
    tr.menu td, tr.menu td a { font-size: 8pt; }
}
