/*
Theme Name: N98 ไทย
Description: ธีมสำหรับแสดงหน้าและบทความ N98 ที่ย้ายจากเว็บไซต์เดิม
Version: 1.0.0
Text Domain: n98-migrated
*/

:root { color-scheme: light; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f5f6f8; color: #26313b; font-family: Arial, Tahoma, sans-serif; font-size: 16px; line-height: 1.75; }
a { color: #007bc0; }
.n98-header { position: relative; z-index: 10; background: #fff; border-bottom: 3px solid #d9232e; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.n98-header-inner { max-width: 1180px; margin: auto; display: flex; align-items: center; gap: 25px; padding: 8px 20px; }
.n98-brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.n98-brand img { max-width: 160px; width: auto; height: 68px; object-fit: contain; }
.n98-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 18px; }
.n98-menu a { display: inline-block; color: #303030; font-weight: 700; font-size: 14px; text-decoration: none; padding: 10px 0; }
.n98-menu a:hover, .n98-menu a:focus-visible { color: #c8242e; }
.n98-menu-toggle { display: none; background: #d9232e; color: #fff; border: 0; border-radius: 4px; padding: 9px 13px; font-weight: 700; cursor: pointer; }
.n98-main { max-width: 1180px; margin: 0 auto; min-height: 60vh; background: #fff; }
.n98-content { overflow: hidden; padding: 24px 30px 60px; }
.n98-content img { max-width: 100%; height: auto; }
.n98-content h1, .n98-content h2, .n98-content h3 { line-height: 1.35; }
.n98-content h1 { font-size: clamp(27px, 3vw, 38px); }
.n98-content h2 { font-size: clamp(23px, 2.4vw, 30px); }
.n98-content h3 { font-size: clamp(19px, 2vw, 24px); }
.n98-content p, .n98-content ul, .n98-content ol { margin-bottom: 1.25em; }
.n98-content .section { padding-left: 0 !important; padding-right: 0 !important; }
.n98-content .row { max-width: 1100px; }
.n98-content iframe { max-width: 100%; }
.n98-content figure { margin: 1.5em auto; }
.n98-content table { display: block; overflow-x: auto; }
.gwd-banner { margin: 25px 0; }
.gwd-slider-title { font-size: 22px; font-weight: 700; text-align: center; color: #15254c; margin-bottom: 12px; }
.gwd-slider-container { position: relative; padding: 0 32px; }
.gwd-slider-swiper { overflow: hidden; }
.gwd-slider-swiper .swiper-wrapper { display: flex; gap: 12px; transition: transform .35s ease; }
.gwd-slider-swiper .swiper-slide { flex: 0 0 145px; }
.gwd-slider-brand-card { display: grid; place-items: center; width: 100%; min-height: 112px; padding: 10px; background: #f6f6f6; border: 1px solid #e4e4e4; border-radius: 7px; }
.gwd-slider-brand-card img { max-height: 90px; object-fit: contain; }
.gwd-slider-prev, .gwd-slider-next { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 42px; background: #182444; color: #fff; border-radius: 4px; cursor: pointer; }
.gwd-slider-prev { left: 0; }
.gwd-slider-next { right: 0; }
.gwd-slider-prev::after { content: '‹'; font-size: 28px; }
.gwd-slider-next::after { content: '›'; font-size: 28px; }
.n98-generated-title { margin: 0 0 1em; }
.n98-archive { padding: 32px 28px 60px; }
.n98-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.n98-archive-item { border-bottom: 1px solid #e6e6e6; padding-bottom: 20px; }
.n98-archive-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.n98-archive-item h2 { font-size: 20px; line-height: 1.45; margin: 10px 0; }
.n98-archive-item a { text-decoration: none; }
.n98-footer { background: #24272b; color: #f8f8f8; padding: 25px 20px; }
.n98-footer-inner { max-width: 1180px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.n98-footer nav { display: flex; flex-wrap: wrap; gap: 15px; }
.n98-footer a { color: #f8f8f8; font-size: 14px; }
.n98-empty { padding: 50px 30px; }
@media (max-width: 850px) {
  .n98-header-inner { flex-wrap: wrap; justify-content: space-between; }
  .n98-menu-toggle { display: block; }
  .n98-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 7px 0; }
  .n98-menu.is-open { display: flex; }
  .n98-menu a { border-top: 1px solid #eee; padding: 8px 4px; }
  .n98-archive-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .n98-header-inner { padding: 4px 15px; }
  .n98-brand img { height: 54px; max-width: 125px; }
  .n98-main { width: 100%; }
  .n98-content { padding: 18px 15px 45px; }
  .n98-content .section-content > .row { margin-left: 0; margin-right: 0; }
  .n98-archive { padding: 20px 15px 45px; }
  .n98-archive-grid { grid-template-columns: 1fr; }
  .n98-footer-inner { flex-direction: column; align-items: flex-start; }
}

/* N98 game lobby */
:root { color-scheme: light; }
body { background: #160b36; }
.n98-header { background: linear-gradient(100deg,#047747,#0ba765 57%,#07583c); border-bottom: 1px solid #30c68b; box-shadow: 0 6px 22px #08041966; }
.n98-header-inner { max-width: 1500px; flex-wrap: wrap; gap: 8px 24px; padding: 9px 22px; }
.n98-header-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.n98-action { min-width: 112px; border-radius: 8px; padding: 8px 16px; color: #fff; font-weight: 700; text-align: center; line-height: 1.35; text-decoration: none; box-shadow: 0 5px 12px #06382066; }
.n98-action:hover,.n98-action:focus-visible { color: #fff; filter: brightness(1.08); }
.n98-action-login { background: linear-gradient(135deg,#563dff,#2923bc); }
.n98-action-register { background: linear-gradient(135deg,#ffb22f,#ef7800); }
.n98-menu { flex: 1 0 100%; gap: 6px 23px; }
.n98-menu a { color: #f6fff9; padding: 3px 0 7px; }
.n98-menu a:hover,.n98-menu a:focus-visible { color: #ffcb67; }
.n98-menu-toggle { background: #26358a; }
body.home .n98-menu { display: none; }
.n98-main { margin: 26px auto 42px; border-radius: 16px; box-shadow: 0 18px 55px #06031b66; }
.n98-lobby-main { max-width: none; min-height: 60vh; background: radial-gradient(circle at 78% 16%,#4a0c68 0,transparent 32%),radial-gradient(circle at 13% 60%,#272078 0,transparent 38%),#160b36; color: #fff; padding: 24px 22px 54px; }
.n98-lobby-main { background-color: #160b36 !important; }
.n98-lobby-shell { max-width: 1530px; display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 26px; margin: 0 auto; }
.n98-lobby-sidebar { align-self: start; position: sticky; top: 16px; background: #292777; border: 1px solid #5449ad; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 30px #0a062e55; }
.n98-sidebar-title { padding: 15px 19px; background: linear-gradient(90deg,#3734a0,#4130a4); color: #ffcf58; font-weight: 800; font-size: 17px; }
.n98-side-links { display: grid; padding: 8px; }
.n98-side-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; color: #e8e5ff; border-radius: 8px; text-decoration: none; font-size: 14px; }
.n98-side-links a span { color: #a4a5e9; font-size: 20px; }
.n98-side-links a:hover,.n98-side-links a:focus-visible { background: #4b45ae; color: #fff; }
.n98-lobby-content { min-width: 0; }
.n98-shortcuts { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; margin-bottom: 20px; }
.n98-shortcut { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 13px; border-radius: 11px; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.25; text-decoration: none; box-shadow: inset 0 1px #ffffff42,0 8px 18px #08042333; }
.n98-shortcut:hover,.n98-shortcut:focus-visible { color: #fff; transform: translateY(-2px); }
.n98-shortcut span { font-size: 22px; line-height: 1; }
.shortcut-slot { background: linear-gradient(135deg,#5640ff,#251fc1); }.shortcut-casino { background: linear-gradient(135deg,#fe3981,#bf075b); }.shortcut-sport { background: linear-gradient(135deg,#1399e7,#1734c0); }.shortcut-app { background: linear-gradient(135deg,#8752ff,#5111c3); }.shortcut-member { background: linear-gradient(135deg,#ffad32,#d05b04); }.shortcut-guide { background: linear-gradient(135deg,#14a977,#0a6e7e); }
.n98-hero-carousel { position: relative; height: clamp(340px,29vw,445px); overflow: hidden; border-radius: 18px; background: #5500a8; box-shadow: 0 18px 42px #0b052b9e; }
.n98-hero-slides,.n98-hero-slide { position: absolute; inset: 0; }
.n98-hero-slide { display: flex; align-items: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .48s ease,visibility .48s ease; background: linear-gradient(112deg,#6208cf 0%,#4d11b9 45%,#bd075f 100%); }
.n98-hero-slide:nth-child(2) { background: linear-gradient(112deg,#791062 0%,#501180 48%,#da2736 100%); }
.n98-hero-slide:nth-child(3) { background: linear-gradient(112deg,#1426a9 0%,#3b1591 48%,#6212a6 100%); }
.n98-hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.n98-hero-copy { z-index: 3; width: 56%; padding: 42px 7%; }
.n98-hero-eyebrow { display: inline-block; margin-bottom: 16px; padding: 5px 12px; border: 1px solid #f8e9ff77; border-radius: 999px; color: #ffe784; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.n98-hero-copy h2 { margin: 0 0 10px; color: #fff; font-size: clamp(36px,4.5vw,68px); line-height: 1.08; letter-spacing: -.03em; text-shadow: 0 4px 20px #14062c66; }
.n98-hero-copy p { max-width: 480px; margin: 0 0 21px; color: #eee8ff; font-size: clamp(15px,1.4vw,19px); line-height: 1.55; }
.n98-hero-cta { display: inline-flex; gap: 12px; align-items: center; padding: 10px 18px; color: #27123f; background: #ffcd55; font-weight: 800; text-decoration: none; border-radius: 8px; box-shadow: 0 7px 17px #10042155; }
.n98-hero-cta:hover,.n98-hero-cta:focus-visible { color: #27123f; background: #ffe091; }
.n98-hero-art { position: absolute; inset: 0 0 0 47%; }
.n98-hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#5d0fc1 0,transparent 35%); }
.n98-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.n98-hero-arrow { position: absolute; z-index: 5; top: 48%; width: 34px; height: 48px; border: 0; border-radius: 8px; color: #fff; background: #160a48ad; font-size: 30px; line-height: 1; cursor: pointer; }
.n98-hero-prev { left: 11px; }.n98-hero-next { right: 11px; }
.n98-hero-arrow:hover,.n98-hero-arrow:focus-visible { background: #3320a7; }
.n98-hero-arrow,.n98-hero-dot { min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; }
.n98-hero-dots { position: absolute; z-index: 5; bottom: 17px; left: 50%; display: flex; gap: 8px; transform: translateX(-50%); }
.n98-hero-dot { width: 10px; height: 10px; border: 0; border-radius: 999px; background: #ffffff84; cursor: pointer; padding: 0; }
.n98-hero-dot.is-active { width: 28px; background: #ffcb53; }
.n98-lobby-section { margin-top: 34px; }
.n98-lobby-section-head { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 18px; }
.n98-kicker { color: #bc9bff; font-size: 11px; letter-spacing: .12em; font-weight: 800; }
.n98-lobby-section h2 { color: #fff; margin: 3px 0 0; font-size: clamp(23px,2.4vw,31px); line-height: 1.3; }
.n98-lobby-section-head a { color: #fbc967; font-size: 14px; text-decoration: none; }
.n98-game-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; }
.n98-game-card { display: block; min-width: 0; color: #f7f5ff; text-decoration: none; font-size: 14px; line-height: 1.4; text-align: center; }
.n98-game-card:hover,.n98-game-card:focus-visible { color: #ffda74; }
.n98-game-card img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; border: 1px solid #8473cb; border-radius: 14px; box-shadow: 0 8px 20px #0a052c77; transition: transform .2s ease; }
.n98-game-card:hover img,.n98-game-card:focus-visible img { transform: translateY(-4px); }
.n98-game-card span { display: block; padding-top: 9px; }
.n98-lobby-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.n98-lobby-links a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; color: #fff; text-decoration: none; border: 1px solid #6c57ad; border-radius: 13px; background: linear-gradient(100deg,#30227b,#4c2388); }
.n98-lobby-links strong { color: #ffd26e; font-size: 17px; }.n98-lobby-links span { font-size: 13px; }
.n98-home-editorial { margin-top: 50px; max-width: 1180px; color: #26313b; }
.n98-home-editorial .n98-content { padding-top: 32px; }
@media (max-width: 1250px) { .n98-shortcuts { grid-template-columns: repeat(3,minmax(0,1fr)); }.n98-game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.n98-lobby-shell { grid-template-columns: 210px minmax(0,1fr); } }
@media (max-width: 850px) { .n98-header-inner { justify-content: space-between; }.n98-header-actions { margin-left: auto; }.n98-menu { display: none; flex-basis: 100%; }.n98-menu.is-open,body.home .n98-menu.is-open { display: flex; }.n98-menu a { border-color: #ffffff42; }.n98-lobby-shell { display: block; }.n98-lobby-sidebar { display: none; }.n98-hero-carousel { height: 390px; }.n98-hero-copy { width: 68%; } }
@media (max-width: 600px) { .n98-header-inner { gap: 6px; padding: 7px 12px; }.n98-brand img { max-width: 102px; height: 44px; }.n98-header-actions { gap: 5px; }.n98-action { min-width: 0; padding: 8px 9px; font-size: 12px; }.n98-menu-toggle { padding: 7px 9px; font-size: 13px; }.n98-menu-toggle span { display: none; }.n98-lobby-main { padding: 16px 12px 35px; }.n98-shortcuts { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-bottom: 14px; }.n98-shortcut { min-height: 43px; padding: 6px; gap: 3px; justify-content: center; font-size: 11px; }.n98-shortcut span { font-size: 16px; }.n98-hero-carousel { height: 370px; border-radius: 13px; }.n98-hero-art { inset: 0; opacity: .48; }.n98-hero-art::after { background: linear-gradient(90deg,#43149cdf,#4d1698aa 58%,#39118a33); }.n98-hero-copy { width: 100%; padding: 38px 42px 44px; }.n98-hero-copy h2 { font-size: clamp(31px,8vw,44px); }.n98-hero-copy p { font-size: 14px; }.n98-hero-arrow { top: auto; bottom: 12px; width: 29px; height: 31px; font-size: 22px; }.n98-hero-prev { left: 9px; }.n98-hero-next { right: 9px; }.n98-hero-dots { bottom: 22px; }.n98-game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.n98-lobby-links { grid-template-columns: 1fr; }.n98-lobby-links a { padding: 14px 16px; }.n98-home-editorial { margin-top: 30px; }.n98-home-editorial .n98-content { padding: 18px 15px 45px; } }

/* Full banner carousel: image text and art stay unobstructed at every width. */
.n98-hero-carousel.n98-banner-carousel { height: auto; overflow: visible; border-radius: 0; box-shadow: none; background: transparent; }
.n98-banner-carousel .n98-hero-slides { position: relative; inset: auto; width: 100%; aspect-ratio: 1300 / 316; overflow: hidden; border-radius: 16px; background: #1b0e35; box-shadow: 0 16px 35px #09031c8c; }
.n98-banner-carousel .n98-hero-slide { display: block; background: transparent !important; transition: none; }
.n98-banner-carousel .n98-banner-image { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.n98-banner-carousel .n98-hero-controls { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 10px 0 0; }
.n98-banner-carousel .n98-hero-arrow { position: static; display: grid; place-items: center; width: 34px; height: 34px; transform: none; border: 1px solid #7660b9; border-radius: 8px; background: #38246c; font-size: 24px; line-height: 1; }
.n98-banner-carousel .n98-hero-dots { position: static; display: flex; align-items: center; gap: 9px; transform: none; }
.n98-banner-carousel .n98-hero-dot { background: #b3a6d8; }
.n98-banner-carousel .n98-hero-dot.is-active { background: #ffcb53; }
@media (max-width: 600px) { .n98-banner-carousel .n98-hero-slides { border-radius: 8px; }.n98-banner-carousel .n98-hero-controls { min-height: 42px; padding-top: 7px; }.n98-banner-carousel .n98-hero-arrow { width: 32px; height: 32px; font-size: 21px; } }

/* Mobile login and registration shortcuts */
.n98-keyword-note { margin: 1.35em 0; padding-left: 12px; border-left: 3px solid #12a46e; color: #31443a; }
.n98-promo-keyword-link { display: inline; padding: 2px 5px; border-radius: 4px; background: #dff4e8; color: #075e3c; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.n98-promo-keyword-link:hover,.n98-promo-keyword-link:focus-visible { background: #b9eacb; color: #064a31; }
.n98-topic-keyword-link { display: inline; padding: 2px 5px; border-radius: 4px; background: #fff0be; color: #614000; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.n98-topic-keyword-link:hover,.n98-topic-keyword-link:focus-visible { background: #ffdf78; color: #4c3100; }
.n98-context-note { border-left-color: #d89500; }
.n98-keyword-pack { margin: 1.2em 0 1.7em; }
.n98-keyword-expansion { line-height: 1.8; margin: 0 0 1em; }
.n98-keyword-mark { padding: 2px 5px; border-radius: 4px; background: #ffe3a4; color: #583900; font-weight: 700; }
.n98-keyword-legal { margin-top: 2.5em; padding-top: 1em; border-top: 1px solid #d9e8df; }
.n98-archive-intro { margin: 1em 0 1.7em; }
.n98-mobile-cta { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .n98-mobile-cta {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    box-sizing: border-box;
    min-height: 76px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #083a2c;
    border-top: 1px solid #32c68c;
    box-shadow: 0 -5px 20px #08041955;
  }
  .n98-mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 9px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
  }
  .n98-mobile-cta a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
  .n98-mobile-cta-login { background: linear-gradient(135deg, #563dff, #2923bc); }
  .n98-mobile-cta-register { background: linear-gradient(135deg, #ffb22f, #ef7800); }
}
