/* ==========================================================================
   SSGAME666 — theme layer on top of Bootstrap 5.3
   Palette and metrics lifted from the original theme stylesheet.
   ========================================================================== */

:root {
  --ss-bg: #181c27;
  --ss-strip: #510a4e;
  --ss-strip-line: #350131;
  --ss-header: #10041a;
  --ss-nav: #140620;
  --ss-nav-hover: #3e1148;
  --ss-nav-text: #eee;
  --ss-nav-text-hover: #fcde4e;
  --ss-marquee: #1b0530;
  --ss-marquee-line: #10041c;
  --ss-panel: #111;
  --ss-panel-line: #222;
  --ss-black: #010101;
  --ss-gold: #fcd23e;
  --ss-gold-mid: #fce75a;
  --ss-gold-light: #fef870;
  --ss-gold-head: #ffcc00;
  --ss-footer-head: #c19c5e;
  --ss-muted: #787878;
  --ss-green: #00c300;
  --ss-shell: 1020px;
}

/* ----- base ------------------------------------------------------------- */

body {
  background-color: var(--ss-bg);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(81, 10, 78, .45), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 115%, rgba(27, 5, 48, .55), transparent 70%);
  background-attachment: fixed;
  font-family: Mitr, "Helvetica Neue", Arial, sans-serif;
  font-weight: 200;
  color: #feffff;
  padding-bottom: 64px; /* clears the fixed action bar */
}

@media (max-width: 800px) {
  body { background-image: none; }
}

a { text-decoration: none; }

/* the original centres everything in a ~1020px shell */
.ss-shell {
  width: 100%;
  max-width: var(--ss-shell);
  margin-inline: auto;
  padding-inline: 10px;
}

img { max-width: 100%; height: auto; }

/* ----- header ----------------------------------------------------------- */

.ss-topstrip {
  min-height: 15px;
  background: var(--ss-strip);
  border-bottom: 1px solid var(--ss-strip-line);
}

.ss-header {
  background: var(--ss-header);
  border-top: 1px solid #000;
}

.ss-header .ss-logo img { width: 100%; display: block; }

/* nav pills — 15px Mitr bold on a near-black plum chip */
.ss-nav { padding: 6px 0; }

.ss-nav .nav {
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.ss-nav .nav-link {
  color: var(--ss-nav-text);
  background: var(--ss-nav);
  border-radius: 5px;
  font-size: 15px;
  line-height: 16px;
  font-weight: 700;
  padding: 12px 20px;
  transition: background-color .18s ease, color .18s ease;
}

.ss-nav .nav-link:hover,
.ss-nav .nav-link:focus-visible,
.ss-nav .nav-link.active {
  color: var(--ss-nav-text-hover);
  background: var(--ss-nav-hover);
}

/* "new" flag on the register item */
.ss-nav .ss-new { position: relative; }

.ss-nav .ss-new::after {
  content: "New";
  position: absolute;
  top: -7px;
  right: -6px;
  background: #e02020;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  padding: 3px 5px;
  border-radius: 3px;
  animation: ss-blink .6s steps(2) infinite;
}

@keyframes ss-blink { 50% { opacity: .25; } }

/* mobile burger */
.ss-burger {
  background: var(--ss-nav);
  border: 1px solid #2b1038;
  color: var(--ss-gold);
}

.ss-burger:focus { box-shadow: none; }

.ss-offcanvas {
  background: var(--ss-header);
  color: var(--ss-nav-text);
}

.ss-offcanvas .nav-link {
  color: var(--ss-nav-text);
  border-bottom: 1px solid #241033;
  padding: 11px 4px;
  font-size: 15px;
}

.ss-offcanvas .nav-link:hover { color: var(--ss-nav-text-hover); }

/* ----- marquee ---------------------------------------------------------- */

.ss-marquee {
  background: var(--ss-marquee);
  border-bottom: 2px solid var(--ss-marquee-line);
  height: 26px;
  overflow: hidden;
}

.ss-marquee-track {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  line-height: 24px;
  color: #eee;
  padding-left: 100%;
  animation: ss-scroll 38s linear infinite;
}

.ss-marquee:hover .ss-marquee-track { animation-play-state: paused; }

@keyframes ss-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ----- hero carousel ---------------------------------------------------- */

.ss-hero .carousel-item img { width: 100%; display: block; }

.ss-hero .carousel-control-prev,
.ss-hero .carousel-control-next { width: 6%; opacity: .65; }

.ss-hero .carousel-control-prev:hover,
.ss-hero .carousel-control-next:hover { opacity: 1; }

.ss-hero .carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: var(--ss-gold);
  opacity: .45;
}

.ss-hero .carousel-indicators .active { opacity: 1; }

/* ----- jackpot ---------------------------------------------------------- */

.ss-jackpot { position: relative; }

.ss-jackpot img { width: 100%; display: block; }

.ss-odometer {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
}

.ss-odometer span {
  display: inline-block;
  min-width: 22px;
  padding: 2px 0;
  text-align: center;
  font-size: 20px;
  line-height: 22px;
  font-weight: 700;
  color: #111;
  background: linear-gradient(to bottom, #fff 0%, #d8d8d8 100%);
  border: 1px solid #8a8a8a;
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767.98px) {
  .ss-odometer span { min-width: 14px; font-size: 13px; line-height: 15px; }
}

/* ----- content panels --------------------------------------------------- */

.ss-panel {
  background: var(--ss-panel);
  border: 1px solid var(--ss-panel-line);
  box-shadow: inset 0 0 7px 0 rgba(0, 0, 0, .54);
  color: #feffff;
  padding: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.ss-panel h1,
.ss-panel h2,
.ss-panel h3 {
  color: var(--ss-gold-head);
  font-weight: 700;
  line-height: 1.3;
}

.ss-panel h1 { font-size: 1.7rem; }
.ss-panel h2 { font-size: 1.4rem; margin-top: .8em; }
.ss-panel h3 { font-size: 1.25rem; }
.ss-panel p { margin: .4em 0; }
.ss-panel a { color: #feffff; }
.ss-panel a:hover { text-decoration: underline; }
.ss-panel video { width: 100%; height: auto; }

/* section heading + animated gold rule */
.ss-section-title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0;
}

.ss-rule {
  height: 2px;
  margin: 10px 0;
  background: linear-gradient(90deg, transparent, var(--ss-gold) 18%, var(--ss-gold-light) 50%, var(--ss-gold) 82%, transparent);
  background-size: 200% 100%;
  animation: ss-rule-slide 2.2s linear infinite;
}

@keyframes ss-rule-slide {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

.ss-camps { background: var(--ss-black); padding: 15px 5px; }

/* ----- tiles ------------------------------------------------------------ */

.ss-tile {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 0 5px 0 rgba(50, 50, 50, .16);
}

.ss-tile img {
  width: 100%;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}

.ss-tile:hover img { transform: scale(1.06); filter: brightness(1.08); }

/* ----- blog cards ------------------------------------------------------- */

.ss-news { background: #000; border-radius: 8px; padding: 12px; margin: 15px 0; }

.ss-news-head h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.ss-news-head a { color: #fff; }
.ss-news-head .ss-more { color: var(--ss-gold); font-size: 14px; }
.ss-news-head .ss-more:hover { text-decoration: underline; }

.ss-post h3 {
  font-size: 16px;
  line-height: 20px;
  font-weight: 200;
  color: #fff;
  padding: 6px 0 10px;
  margin: 0;
}

.ss-post:hover h3 { color: #bb984a; }

/* ----- footer ----------------------------------------------------------- */

.ss-footer {
  background: #000;
  border-top: 5px solid #b8b5b5;
  padding-bottom: 20px;
  font-size: 14px;
}

.ss-footer .ss-col-head {
  display: block;
  font-size: 18px;
  line-height: 21px;
  color: var(--ss-footer-head);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.ss-footer .ss-col-list span {
  display: block;
  font-size: 13px;
  line-height: 20px;
  color: var(--ss-muted);
  text-transform: uppercase;
}

.ss-contact { color: var(--ss-green); text-align: center; font-size: 16px; }
.ss-contact .ss-line-img { max-width: 150px; }

.ss-copyright {
  text-align: center;
  color: var(--ss-muted);
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 0;
  border-top: 1px solid #333;
  margin-top: 30px;
}

.ss-copyright a { color: var(--ss-muted); }

/* ----- fixed action bar ------------------------------------------------- */

.ss-actionbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1040;
  display: flex;
  text-align: center;
  background: linear-gradient(to bottom, var(--ss-gold) 0%, var(--ss-gold-mid) 48%, var(--ss-gold-light) 100%);
  border-top: 2px solid #000;
  border-bottom: 1px solid #000;
}

.ss-actionbar a {
  flex: 1 1 0;
  color: #000;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  padding: 6px 2px 8px;
  border-right: 2px solid #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.ss-actionbar a:last-child { border-right: 0; }

.ss-actionbar a:hover {
  background: linear-gradient(to right, #f9ca2f 0%, #f9e03e 48%, #fcf458 100%);
}

.ss-actionbar svg { width: 18px; height: 18px; }

@media (min-width: 768px) {
  .ss-actionbar a { font-size: 16px; padding: 8px 10px; flex-direction: row; gap: 8px; }
  .ss-actionbar svg { width: 20px; height: 20px; }
}

/* ----- floating side rails ---------------------------------------------- */

.ss-rail {
  position: fixed;
  z-index: 1030;
  transition: transform .4s ease;
}

.ss-rail-right { right: 10px; top: 165px; width: 180px; }
.ss-rail-left  { left: 10px;  top: 195px; width: 100px; }

.ss-rail a { display: block; margin-bottom: 8px; }
.ss-rail img { width: 100%; display: block; }

.ss-rail .ss-rail-cap {
  display: block;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: #fff;
  background: rgba(0, 0, 0, .6);
  padding: 3px 4px;
  border-radius: 0 0 4px 4px;
}

.ss-rail-toggle {
  position: absolute;
  top: -10px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #000;
  background: var(--ss-gold);
  color: #000;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ss-rail.ss-collapsed .ss-rail-body { display: none; }
.ss-rail.ss-collapsed { width: auto; }

@media (max-width: 991.98px) {
  .ss-rail { display: none; }
}

/* ----- back to top ------------------------------------------------------ */

.ss-totop {
  position: fixed;
  right: 14px;
  bottom: 72px;
  z-index: 1035;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #000;
  background: var(--ss-gold);
  color: #000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ss-totop.ss-show { display: flex; }

/* ----- welcome modal ---------------------------------------------------- */

.ss-modal .modal-content {
  background: transparent;
  border: 0;
}

.ss-modal .btn-close {
  position: absolute;
  top: -14px;
  right: -6px;
  z-index: 5;
  opacity: 1;
  background-color: #000;
  border-radius: 50%;
  padding: 8px;
  filter: invert(1) grayscale(100%) brightness(200%);
}

.ss-modal img { width: 100%; border-radius: 6px; display: block; }

/* ==========================================================================
   GATSBY (theme 34) — CMS additions on top of the ssgame666 layer
   ทุกส่วนล่างนี้เพิ่มสำหรับงาน CMS: hero fallback (ยังไม่อัพสไลด์),
   ป้าย jackpot แบบ CSS (แทนรูป gif ต้นทาง), rail ติดต่อแบบ CSS,
   การ์ดค่ายเกมจากคลังรูปกลาง — ไม่มี asset ภายนอก
   ========================================================================== */

/* ----- hero fallback (ไม่มีสไลด์จาก BO) --------------------------------- */

.ss-hero-fallback {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 56px 16px 64px;
  background:
    radial-gradient(ellipse 70% 90% at 50% -20%, rgba(252, 210, 62, .16), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 120%, rgba(81, 10, 78, .65), transparent 75%),
    linear-gradient(180deg, #10041a 0%, #1b0530 55%, #181c27 100%);
  border-bottom: 2px solid var(--ss-marquee-line);
}

.ss-hero-fallback::before,
.ss-hero-fallback::after {
  content: "";
  position: absolute;
  top: -40px;
  bottom: -40px;
  width: 180px;
  background: linear-gradient(115deg, transparent 40%, rgba(252, 231, 90, .07) 50%, transparent 60%);
  pointer-events: none;
}

.ss-hero-fallback::before { left: 4%; transform: rotate(8deg); }
.ss-hero-fallback::after { right: 4%; transform: rotate(-8deg); }

.ss-hero-fallback .ss-hero-kicker {
  display: inline-block;
  color: var(--ss-gold);
  border: 1px solid rgba(252, 210, 62, .55);
  border-radius: 999px;
  font-size: 13px;
  padding: 4px 14px;
  margin-bottom: 14px;
  background: rgba(16, 4, 26, .55);
}

.ss-hero-fallback h1 {
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.ss-hero-fallback h1 span {
  background: linear-gradient(180deg, var(--ss-gold-light) 0%, var(--ss-gold) 60%, #d9a616 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ss-hero-fallback p {
  color: #cfc6da;
  max-width: 640px;
  margin: 0 auto 22px;
  font-size: 15px;
}

.btn-ss-gold {
  background: linear-gradient(to bottom, var(--ss-gold) 0%, var(--ss-gold-mid) 48%, var(--ss-gold-light) 100%);
  color: #10041a;
  font-weight: 700;
  border: 1px solid #b8912a;
  border-radius: 6px;
  padding: 10px 26px;
}

.btn-ss-gold:hover { color: #10041a; filter: brightness(1.06); }

.btn-ss-line {
  background: transparent;
  color: var(--ss-gold);
  font-weight: 700;
  border: 1px solid rgba(252, 210, 62, .65);
  border-radius: 6px;
  padding: 10px 26px;
}

.btn-ss-line:hover { color: #10041a; background: var(--ss-gold); }

/* ----- jackpot strip (CSS แทนรูป gif ต้นทาง) ---------------------------- */

.ss-jackpot-cs {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 26px 12px 30px;
  background:
    radial-gradient(ellipse 55% 120% at 50% 50%, rgba(81, 10, 78, .8), transparent 80%),
    linear-gradient(180deg, #050208 0%, #1b0530 50%, #050208 100%);
  border-top: 2px solid var(--ss-gold);
  border-bottom: 2px solid var(--ss-gold);
}

.ss-jackpot-cs .ss-jp-title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(180deg, var(--ss-gold-light) 0%, var(--ss-gold) 55%, #c78f12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.ss-jackpot-cs .ss-jp-sub {
  color: #cfc6da;
  font-size: 13px;
  margin-bottom: 10px;
}

/* odometer เดิมเป็น absolute ทับรูป — ใน strip ใหม่วางใน flow ปกติ */
.ss-jackpot-cs .ss-odometer {
  position: static;
  transform: none;
  justify-content: center;
}

/* ----- side rails (CSS ล้วน — แทนแบนเนอร์รูปของเว็บต้นทาง) -------------- */

.ss-rail-panel {
  background: rgba(16, 4, 26, .92);
  border: 1px solid rgba(252, 210, 62, .45);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}

.ss-rail-panel .ss-rail-head {
  display: block;
  color: var(--ss-gold);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ss-rail-panel .btn { font-size: 12px; font-weight: 700; }

.ss-rail-left .ss-tile { margin-bottom: 8px; background: #10041a; }

/* ----- camp tiles จากคลังรูปโลโก้ค่ายกลาง ------------------------------- */

.ss-camp-card {
  display: block;
  background: linear-gradient(180deg, #1c0a2e 0%, #10041a 100%);
  border: 1px solid #2b1038;
  border-radius: 6px;
  padding: 10px 8px 8px;
  text-align: center;
  transition: border-color .2s ease, transform .2s ease;
}

.ss-camp-card img {
  width: 100%;
  max-width: 150px;
  display: block;
  margin-inline: auto;
  transition: transform .3s ease;
}

.ss-camp-card span {
  display: block;
  margin-top: 6px;
  color: #eee;
  font-size: 13px;
  line-height: 1.3;
}

.ss-camp-card:hover { border-color: var(--ss-gold); transform: translateY(-3px); }
.ss-camp-card:hover img { transform: scale(1.05); }
.ss-camp-card:hover span { color: var(--ss-gold); }

/* ----- การ์ดบทความหน้า /article ---------------------------------------- */

.ss-news .ss-post img { border-radius: 4px; }
.ss-news .ss-post .btn { font-size: 12px; }
