:root {
--bg: #1d1c21;
--surface: #1d1c21;
--footer: #1d1c21;
--line: #1e5c38;
--text: #f8f4e8;
--muted: #c5d5c0;
--gold: #f0c14b;
--green: #3dcc6e;
}
* { box-sizing: border-box; }
body {
margin: 0;
background: var(--bg);
color: var(--text);
font: 17px/1.75 "Noto Sans Thai", "Sarabun", "Leelawadee UI", "Thonburi", Tahoma, sans-serif;
}
a { color: var(--gold); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.site { background: var(--surface); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.logo { flex: none; position: relative; overflow: hidden; }
.logo img { display: block; height: 64px; width: auto; }
.logo::after, .login-btn::after {
content: "";
position: absolute; inset: 0;
background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%);
transform: translateX(-120%);
animation: tbs-shine 7s ease-in-out infinite;
pointer-events: none;
}
.logo::after {
-webkit-mask: url("/images/tbs555-logo.webp?v=3") center / 100% 100% no-repeat;
mask: url("/images/tbs555-logo.webp?v=3") center / 100% 100% no-repeat;
}
.login-btn::after { animation-delay: 2.4s; }
.nav { flex: 1; min-width: 0; }
.nav ul { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; padding: 0; list-style: none; font-size: .92rem; line-height: 1.6; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.login-btn {
position: relative; overflow: hidden;
flex: none; margin-left: auto;
display: inline-flex; align-items: center; justify-content: center;
padding: 8px 18px; border-radius: 10px;
background: #f5c518; color: #1a1a1a;
font-weight: 700; font-size: .92rem; line-height: 1.2;
letter-spacing: .03em; text-decoration: none;
}
.login-btn:hover, .login-btn[aria-current="page"] { background: #ffd84a; color: #1a1a1a; }
@keyframes tbs-shine {
0%, 68% { transform: translateX(-120%); }
84%, 100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
.logo::after, .login-btn::after { animation: none; opacity: 0; }
}
.login-note { margin: 20px 0 0; color: var(--muted); font-size: .95rem; }
.login-form { margin-top: 22px; }
.login-field {
display: flex; align-items: center; gap: 10px;
margin: 0 0 14px; padding: 12px 14px;
background: #141418; border: 1px solid #3a3a44; border-radius: 14px;
}
.login-ico { flex: none; color: #9a9aa6; display: flex; }
.login-code { flex: none; padding-right: 12px; border-right: 1px solid #3a3a44; color: var(--text); }
.login-field input {
flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
color: var(--text); font: inherit;
}
.login-field input::placeholder { color: #8d8d98; }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 18px; }
.login-save { display: flex; align-items: center; gap: 8px; }
.login-save input { width: 18px; height: 18px; accent-color: #f5c518; }
.login-submit {
display: block; width: 100%; border: 0; border-radius: 12px; cursor: pointer;
background: #f5c518; color: #1a1a1a; font: 700 1.05rem/1.2 inherit; padding: 14px 16px;
}
.login-submit:hover { background: #ffd84a; }
.login-register {
display: flex; align-items: center; justify-content: space-between; gap: 12px;
margin-top: 18px; padding: 16px; border: 1px solid #3a3a44; border-radius: 14px;
}
.login-register p { margin: 0; color: #bdbdc7; }
.login-register-btn {
display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 12px;
border: 1px solid #3a3a44; background: #1c1c22; color: var(--text);
text-decoration: none; font-weight: 600;
}
.login-register-btn:hover { color: var(--text); border-color: #6a6a76; }
.banner-slider { position: relative; overflow: hidden; background: #000; }
.home h1 { color: #f7f4ee; }
.home h1 .brand-en { color: var(--green); }
.home h2, .home h3 { color: var(--green); }
.home h1 { font-size: 2rem; font-weight: 700; margin-top: 28px; }
.home h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.home .banner-slider { border-radius: 16px; margin: 4px 0 28px; }
.toc { margin: 8px 0 36px; padding: 16px 22px 8px; border: 1px solid #2c2c34; border-radius: 16px; background: #17171d; }
.toc p { margin: 0; font-weight: 700; color: var(--gold); }
.toc ol { margin: 10px 0 12px; padding-left: 1.4rem; }
.toc a { color: var(--green); }
.banner-track { display: flex; transition: transform .6s ease; }
.banner-track img { flex: 0 0 100%; width: 100%; height: auto; display: block; }
.banner-arrow {
position: absolute; top: 50%; transform: translateY(-50%);
width: 36px; height: 36px; border: 0; border-radius: 50%;
background: rgba(13, 12, 16, .72); color: var(--gold);
font: 700 22px/1 Tahoma, sans-serif; cursor: pointer;
}
.banner-arrow:hover { background: rgba(13, 12, 16, .9); }
.banner-prev { left: 10px; }
.banner-next { right: 10px; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 8px; }
.banner-dots button {
width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
background: rgba(248, 244, 232, .45); cursor: pointer;
}
.banner-dots button[aria-current="true"] { background: var(--gold); }
@media (prefers-reduced-motion: reduce) {
.banner-track { transition: none; }
}
.brand-figure { margin: 4px 0 20px; }
.brand-figure img { display: block; width: min(100%, 480px); height: auto; }

.crumbs { margin: 20px 0 0; color: var(--muted); font-size: .9rem; }
.crumbs a { color: var(--muted); }

h1 { font-size: 1.75rem; line-height: 1.35; margin: 12px 0 16px; color: var(--gold); }
h2 { font-size: 1.35rem; line-height: 1.4; margin: 44px 0 12px; color: var(--green); }
h1 + h2 { margin-top: 0; }
strong { color: var(--gold); }
li { margin-bottom: 6px; }
.game-list { margin: 8px 0 0; padding: 0; list-style: none; }
.game-list a { font-size: 1.15rem; }
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 8px 0 0; padding: 8px 0 12px; list-style: none; }
.game-grid li { position: relative; }
.game-grid a {
display: block; border-radius: 16px; line-height: 0; cursor: pointer;
transform: translateY(0) scale(1);
transition: transform .22s ease, box-shadow .22s ease;
}
.game-grid a:hover,
.game-grid a:focus-visible {
position: relative; z-index: 2;
transform: translateY(-12px) scale(1.05);
box-shadow: 0 18px 36px rgba(0, 0, 0, .55), 0 0 0 2px var(--gold);
}
.game-grid img { display: block; width: 100%; height: auto; border-radius: 16px; }
.game-row { display: flex; flex-wrap: nowrap; gap: 12px; margin: 4px 0 18px; padding: 10px 0 14px; list-style: none; }
.game-row li { flex: 1 1 0; min-width: 0; margin: 0; }
.game-row a {
display: block; border-radius: 10px; line-height: 0; cursor: pointer;
transform: translateY(0) scale(1);
transition: transform .22s ease, box-shadow .22s ease;
}
.game-row a:hover,
.game-row a:focus-visible {
position: relative; z-index: 2;
transform: translateY(-8px) scale(1.06);
box-shadow: 0 12px 24px rgba(0, 0, 0, .5), 0 0 0 2px var(--gold);
}
.game-row img { display: block; width: 100%; height: auto; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) {
.game-grid a { transition: none; }
.game-grid a:hover, .game-grid a:focus-visible,
.game-row a:hover, .game-row a:focus-visible { transform: none; }
.game-row a { transition: none; }
}
@media (max-width: 520px) {
.game-grid { grid-template-columns: 1fr; }
}

footer.site { margin-top: 56px; padding: 24px 0 32px; background: var(--footer); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }
.trust-title { margin: 0 0 12px; color: var(--text); font-weight: 600; }
.trust { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 40px; }
.trust p { margin: 0 0 6px; font-size: .8rem; }
.trust img { display: block; max-width: 100%; height: auto; }
.footer-bottom { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.age { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border: 2px solid #e5484d; border-radius: 50%; color: #e5484d; font-size: .8rem; font-weight: 700; }
