/*
Theme Name: 123PLUS SEO
Theme URI: https://123-plus.site/
Author: 123PLUS
Description: ธีม WordPress สำหรับเว็บไซต์ 123PLUS พร้อมหน้า SEO ที่แก้ไขได้จากตัวแก้ไขหน้า WordPress
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: 123plus-seo
*/

:root {
  --navy: #07111f;
  --navy-2: #0b1828;
  --navy-3: #101f31;
  --gold: #d9b456;
  --gold-light: #f0d487;
  --gold-dark: #a67a28;
  --red: #ef232d;
  --white: #ffffff;
  --text: #f6f7f8;
  --muted: #9da8b6;
  --line: rgba(217, 180, 86, 0.26);
  --soft-line: rgba(255, 255, 255, 0.09);
  --container: 1180px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 92px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--navy);
  font-family: "Noto Sans Thai", "Leelawadee UI", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.2;
  background-image: radial-gradient(circle at 20% 10%, rgba(217, 180, 86, 0.2), transparent 28%), radial-gradient(circle at 80% 35%, rgba(33, 64, 99, 0.55), transparent 30%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
main:focus { outline: none; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; color: var(--navy); background: var(--gold); border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 12, 22, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 30px; }
.brand { flex: 0 0 175px; }
.brand img { width: 175px; height: auto; }
.main-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 28px; color: #c8cdd4; font-size: 14px; font-weight: 700; }
.main-nav a { position: relative; padding: 27px 0 23px; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 19px; height: 2px; background: var(--gold); transition: right .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: var(--gold); }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 11px; padding: 12px 26px; border: 1px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 850; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #0b1017; background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 12px 30px rgba(217, 180, 86, .18); }
.button-outline { border-color: var(--gold); color: var(--gold-light); background: rgba(217, 180, 86, .03); }
.button-outline:hover { background: rgba(217, 180, 86, .1); }
.header-login { min-height: 44px; padding: 8px 19px; }

.hero { position: relative; min-height: 620px; display: grid; align-items: center; padding: 40px 0 38px; overflow: hidden; background: radial-gradient(circle at 76% 50%, rgba(18, 49, 82, .64), transparent 34%), linear-gradient(180deg, #07111f, #06101c); }
.hero::after { content: ""; position: absolute; width: 760px; height: 760px; right: -280px; top: -290px; border: 1px solid rgba(217, 180, 86, .14); border-radius: 50%; box-shadow: 0 0 0 90px rgba(217,180,86,.025), 0 0 0 180px rgba(217,180,86,.018); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.hero-copy h1 { margin-bottom: 16px; font-size: clamp(44px, 4vw, 57px); line-height: 1.08; letter-spacing: -.055em; font-weight: 900; }
.hero-copy h1 span { display: block; color: var(--white); font-size: .72em; }
.hero-copy h1 { color: var(--gold-light); }
.hero-lede { max-width: 630px; margin-bottom: 22px; color: #c1c8d0; font-size: 16px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .button { min-width: 180px; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 27px; }
.trust-row > div { min-height: 92px; display: flex; flex-direction: column; gap: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.trust-row svg { width: 29px; height: 29px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust-row span { color: #cdd3da; font-size: 12px; line-height: 1.45; }
.hero-media { position: relative; margin: 0; }
.hero-media::before { content: ""; position: absolute; inset: 5% -3% -4% 8%; z-index: -1; border: 1px solid var(--line); border-radius: 24px; transform: rotate(2deg); }
.hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid rgba(240, 212, 135, .5); border-radius: 24px; box-shadow: var(--shadow); }
.hero-media figcaption { position: absolute; left: 18px; right: 18px; bottom: 17px; padding: 8px 12px; color: #c7ced6; background: rgba(3, 8, 15, .74); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; font-size: 11px; backdrop-filter: blur(12px); }

.brand-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0b1624; }
.strip-inner { display: grid; grid-template-columns: .8fr 1.5fr 1.65fr .55fr; }
.strip-inner > div { padding: 22px 24px; border-right: 1px solid var(--soft-line); }
.strip-inner > div:first-child { padding-left: 0; }
.strip-inner > div:last-child { border-right: 0; }
.strip-inner span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.strip-inner strong { color: #ecf0f3; font-size: 14px; }

.section { position: relative; padding: 108px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 38px; }
.section-heading > div { max-width: 690px; }
.section-heading > p { max-width: 470px; color: var(--muted); margin-bottom: 5px; }
.centered-heading { display: block; max-width: 820px; margin: 0 auto 42px; text-align: center; }
.centered-heading p:last-child { max-width: 720px; margin: 0 auto; color: var(--muted); }
.section-kicker { margin-bottom: 8px; color: var(--gold); font-size: 11px; font-weight: 850; letter-spacing: .2em; }
.section h2, .responsible-section h2 { margin-bottom: 12px; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.15; letter-spacing: -.045em; }
.section-lede { color: var(--muted); font-size: 16px; }

.games-section { background: linear-gradient(180deg, #081321 0%, #0b1828 50%, #07111f 100%); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card { position: relative; min-height: 350px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #091523; }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 36%, rgba(4,10,18,.95) 75%); }
.category-card img { width: 100%; height: 100%; object-fit: cover; object-position: left center; opacity: .92; transition: transform .4s ease; }
.category-card:hover img { transform: scale(1.04); }
.category-card > div { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 15px; }
.category-card h3 { margin-bottom: 2px; font-size: 24px; }
.category-card p { margin: 0; color: #aeb8c3; font-size: 12px; }
.game-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--line); }
.game-gallery article { position: relative; overflow: hidden; background: #0b1725; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.game-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.game-gallery span { display: inline-block; margin: 12px 14px 2px; color: var(--gold); font-size: 10px; font-weight: 800; }
.game-gallery h3 { margin: 0 14px 15px; font-size: 15px; }

.security-section { overflow: hidden; background: #06101c; }
.security-section::before { content: ""; position: absolute; width: 520px; height: 520px; left: -260px; top: 20%; border: 1px solid var(--line); border-radius: 50%; }
.split-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 76px; }
.security-media { margin: 0; }
.security-media img { width: 100%; max-width: 510px; margin: 0 auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.46)); }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 34px; border-top: 1px solid var(--line); }
.feature-list article { display: flex; gap: 15px; padding: 24px 24px 22px 0; border-bottom: 1px solid var(--soft-line); }
.feature-list article:nth-child(odd) { border-right: 1px solid var(--soft-line); }
.feature-list article:nth-child(even) { padding-left: 24px; }
.feature-list article > span { color: var(--gold); font-size: 12px; font-weight: 900; }
.feature-list h3 { margin-bottom: 5px; font-size: 16px; }
.feature-list p { margin: 0; color: var(--muted); font-size: 12px; }

.payment-section { background: linear-gradient(180deg, #0c1928, #0a1623); border-top: 1px solid rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.04); }
.payment-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; background: rgba(2,8,15,.28); }
.payment-grid article { min-height: 230px; padding: 31px 26px 26px; border-right: 1px solid var(--soft-line); }
.payment-grid article:last-child { border-right: 0; }
.payment-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 22px; color: var(--gold-light); border: 1px solid var(--gold); border-radius: 12px; font-size: 10px; font-weight: 900; }
.wallet-icon { color: #f3b323; border-color: #f3b323; }
.payment-grid h3 { margin-bottom: 6px; font-size: 18px; }
.payment-grid p { margin: 0; color: var(--muted); font-size: 13px; }

.mobile-section { padding-top: 90px; overflow: hidden; background: radial-gradient(circle at 75% 55%, rgba(217,180,86,.11), transparent 31%), #07111f; }
.mobile-layout { grid-template-columns: 1fr .9fr; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 24px; padding: 0; margin: 28px 0 32px; list-style: none; }
.check-list li { position: relative; padding-left: 29px; color: #c8d0d8; font-size: 14px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 900; }
.mobile-media { max-height: 650px; margin: 0; overflow: hidden; border-radius: 28px 28px 0 0; }
.mobile-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 28px; box-shadow: var(--shadow); }

.steps-section { background: #0a1623; border-top: 1px solid var(--soft-line); }
.steps-list { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; }
.steps-list::before { content: ""; position: absolute; left: 10%; right: 10%; top: 31px; height: 1px; background: var(--gold); opacity: .6; }
.steps-list li { position: relative; z-index: 2; min-height: 235px; padding: 20px 22px 23px; border: 1px solid var(--line); border-radius: 13px; background: #0b1725; }
.steps-list li > span { width: 63px; height: 63px; display: grid; place-items: center; margin-bottom: 38px; color: var(--navy); background: var(--gold); border: 7px solid #0b1725; border-radius: 50%; font-size: 13px; font-weight: 900; }
.steps-list h3 { margin-bottom: 7px; font-size: 20px; }
.steps-list p { color: var(--muted); font-size: 13px; margin-bottom: 0; }

.guide-section { background: #07111f; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #0b1725; }
.article-card > img { width: 100%; height: 230px; object-fit: cover; }
.article-card > div { padding: 23px 23px 26px; }
.article-card span { color: var(--gold); font-size: 11px; font-weight: 850; }
.article-card h3 { margin: 7px 0 10px; font-size: 21px; line-height: 1.4; }
.article-card p { color: var(--muted); font-size: 13px; }
.article-card a { display: inline-flex; min-height: 36px; align-items: center; gap: 8px; padding: 6px 0; color: var(--gold-light); font-size: 13px; font-weight: 800; }

.faq-section { background: radial-gradient(circle at 10% 15%, rgba(217,180,86,.09), transparent 25%), #0a1623; }
.faq-layout { display: grid; grid-template-columns: 1.18fr .82fr; gap: 58px; align-items: start; }
.faq-intro { margin-bottom: 32px; }
.faq-intro > p:not(.section-kicker) { max-width: 650px; color: var(--muted); }
.faq-visual { position: sticky; top: 112px; height: 660px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #050d17; box-shadow: var(--shadow); }
.faq-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.accordion { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button { width: 100%; display: grid; grid-template-columns: 44px 1fr 24px; gap: 12px; align-items: center; padding: 22px 0; border: 0; color: var(--white); background: transparent; text-align: left; font-size: 16px; font-weight: 800; cursor: pointer; }
.faq-item button > span { color: var(--gold); font-size: 11px; }
.faq-item button i { position: relative; width: 18px; height: 18px; }
.faq-item button i::before, .faq-item button i::after { content: ""; position: absolute; left: 2px; right: 2px; top: 8px; height: 1px; background: var(--gold); transition: transform .2s ease; }
.faq-item button i::after { transform: rotate(90deg); }
.faq-item.is-open button i::after { transform: rotate(0); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-answer[hidden] { display: none; }
.faq-answer > p { min-height: 0; overflow: hidden; margin: 0; color: var(--muted); font-size: 14px; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer > p { padding: 0 36px 23px 56px; }

.responsible-section { padding: 42px 0; background: #0e1c2b; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.responsible-inner { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 32px; }
.responsible-inner > img { width: 110px; height: 110px; object-fit: cover; border-radius: 24px; }
.responsible-inner h2 { margin-bottom: 4px; font-size: 34px; }
.responsible-inner p:not(.section-kicker) { max-width: 720px; margin-bottom: 0; color: var(--muted); }

.site-footer { padding: 72px 0 20px; background: #040b13; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .7fr); gap: 56px; }
.footer-brand img { width: 225px; margin-bottom: 20px; }
.footer-brand p { max-width: 340px; color: var(--muted); font-size: 13px; }
.footer-grid h3 { margin-bottom: 17px; color: var(--gold-light); font-size: 14px; }
.footer-grid > div:not(.footer-brand) a { display: flex; min-height: 32px; align-items: center; margin-bottom: 3px; color: #abb4be; font-size: 13px; }
.footer-grid a:hover { color: var(--gold); }
.age-note { margin-top: 20px; color: #7f8994; font-size: 11px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 58px; padding-top: 18px; border-top: 1px solid var(--soft-line); color: #717c88; font-size: 11px; }

.sticky-actions { position: fixed; z-index: 45; right: 22px; bottom: 18px; display: flex; align-items: center; padding: 5px; border: 1px solid var(--gold); border-radius: 14px; background: rgba(5,12,21,.93); box-shadow: 0 18px 50px rgba(0,0,0,.45); backdrop-filter: blur(15px); }
.sticky-actions a { min-width: 150px; padding: 10px 19px; border-radius: 9px; text-align: center; font-size: 13px; font-weight: 850; }
.sticky-actions a:first-child { color: var(--navy); background: var(--gold); }
.sticky-actions a:nth-child(2) { color: var(--gold-light); }
.sticky-actions button { width: 36px; height: 36px; margin-left: 4px; border: 0; border-radius: 50%; color: #aeb7c1; background: rgba(255,255,255,.08); cursor: pointer; }
.sticky-actions.is-hidden { display: none !important; }

@media (max-width: 1040px) {
  .main-nav { gap: 16px; font-size: 12px; }
  .hero { min-height: auto; }
  .hero-grid { gap: 32px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-inner > div:nth-child(2) { border-right: 0; }
  .strip-inner > div:nth-child(n+3) { border-top: 1px solid var(--soft-line); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .game-gallery { grid-template-columns: repeat(3, 1fr); }
  .split-layout { gap: 40px; }
  .footer-grid { grid-template-columns: 1.2fr repeat(3,.8fr); gap: 30px; }
}

@media (max-width: 780px) {
  .container { width: min(100% - 32px, 620px); }
  .header-inner { min-height: 68px; justify-content: space-between; }
  .brand, .brand img { width: 150px; }
  .menu-button { display: block; order: 3; }
  .header-login { display: none; }
  .main-nav { display: none; position: absolute; left: 16px; right: 16px; top: 68px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px; border: 1px solid var(--line); border-radius: 12px; background: #07111f; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--soft-line); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
  .hero { padding: 58px 0 68px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 46px; }
  .hero-media { margin-top: 16px; }
  .trust-row { gap: 8px; }
  .trust-row > div { min-height: 105px; }
  .strip-inner { grid-template-columns: 1fr; }
  .strip-inner > div, .strip-inner > div:first-child { padding: 16px 0; border-right: 0; border-top: 1px solid var(--soft-line); }
  .strip-inner > div:first-child { border-top: 0; }
  .section { padding: 74px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; }
  .section h2 { font-size: 38px; }
  .category-card { min-height: 300px; }
  .game-gallery { grid-template-columns: repeat(2, 1fr); }
  .split-layout, .mobile-layout { grid-template-columns: 1fr; }
  .security-media { order: 2; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-list article:nth-child(odd) { border-right: 0; }
  .feature-list article:nth-child(even) { padding-left: 0; }
  .payment-grid { grid-template-columns: repeat(2, 1fr); }
  .payment-grid article:nth-child(2) { border-right: 0; }
  .payment-grid article:nth-child(n+3) { border-top: 1px solid var(--soft-line); }
  .mobile-media { max-height: 560px; }
  .steps-list { grid-template-columns: repeat(2, 1fr); }
  .steps-list::before { display: none; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card { display: grid; grid-template-columns: 40% 60%; }
  .article-card > img { height: 100%; min-height: 240px; }
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-visual { position: static; height: 560px; }
  .responsible-inner { grid-template-columns: 88px 1fr; }
  .responsible-inner > img { width: 88px; height: 88px; }
  .responsible-inner > .button { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .hero-copy h1 { font-size: 39px; }
  .hero-lede { font-size: 15px; }
  .hero-actions .button { width: 100%; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 330px; }
  .game-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -16px; padding-right: 16px; }
  .game-gallery article { min-width: 210px; scroll-snap-align: start; }
  .payment-grid { grid-template-columns: 1fr; }
  .payment-grid article { min-height: 180px; border-right: 0; border-top: 1px solid var(--soft-line); }
  .payment-grid article:first-child { border-top: 0; }
  .check-list { grid-template-columns: 1fr; }
  .steps-list { grid-template-columns: 1fr; }
  .steps-list li { min-height: 200px; }
  .steps-list li > span { margin-bottom: 22px; }
  .article-card { display: block; }
  .article-card > img { height: 220px; }
  .faq-item button { grid-template-columns: 30px 1fr 20px; font-size: 14px; }
  .faq-item.is-open .faq-answer > p { padding-left: 42px; }
  .responsible-inner { display: block; }
  .responsible-inner > img { margin-bottom: 20px; }
  .responsible-inner > .button { margin-top: 20px; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-bottom: 4px; }
  .sticky-actions { width: calc(100% - 24px); right: 12px; bottom: max(8px, env(safe-area-inset-bottom)); opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .2s ease, transform .2s ease; }
  .sticky-actions.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .sticky-actions a { min-width: 0; flex: 1; }
}

@media (max-width: 360px) {
  .sticky-actions { width: auto; left: 12px; }
  .sticky-actions a:nth-child(2) { display: none; }
  .sticky-actions a:first-child { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
