/* ฟุรินคาซัน สยาม landing site - one stylesheet for every page; colours / panels follow the game login page */
:root {
  --bg: #0a0807;
  --bg2: #120d0b;
  --card: rgba(18, 12, 10, .82);
  --card2: rgba(40, 28, 22, .85);
  --line: rgba(227, 179, 92, .26);
  --line2: #3a2e25;
  --fg: #efe6d8;
  --mut: #a8998a;
  --gold: #e3b35c;
  --gold2: #f6d48f;
  --red: #b8321f;
  --red2: #e2604c;
  --blue: #4f8fe0;
  --ok: #5fbf7a;
  --r: 4px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font: 'Sarabun', 'Noto Sans Thai', Tahoma, sans-serif;
  --head: 'Kanit', 'Sarabun', Tahoma, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 var(--font);
  background-image: radial-gradient(1100px 600px at 85% -10%, rgba(184, 50, 31, .22), transparent 60%),
                    radial-gradient(800px 500px at -10% 20%, rgba(184, 50, 31, .12), transparent 60%),
                    radial-gradient(900px 500px at 50% 110%, rgba(227, 179, 92, .06), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; }
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 5vw, 46px); }
h2 { font-size: clamp(22px, 3.4vw, 30px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.mut { color: var(--mut); }
.small { font-size: 14px; }
.gold { color: var(--gold); }

/* ---------- header / nav */
.top {
  position: sticky; top: 0; z-index: 50; background: rgba(13, 11, 10, .88);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 22px; color: var(--fg); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo b { color: var(--gold); letter-spacing: 1px; }
.logo small { font-size: 12px; color: var(--mut); font-family: var(--font); }
.logo .seal { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--red), #7a1d12);
  display: grid; place-items: center; font-size: 18px; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { color: var(--fg); padding: 8px 10px; border-radius: 8px; font-size: 15px; white-space: nowrap; }
.nav a:hover { background: var(--card2); text-decoration: none; }
.nav a.on { color: var(--gold2); background: var(--card); }
.nav a.play { background: linear-gradient(180deg, var(--red2), var(--red)); color: #fff; font-weight: 600; margin-left: 6px; padding: 8px 16px; }
.nav a.play:hover { filter: brightness(1.1); }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--fg);
  border-radius: 8px; width: 42px; height: 38px; font-size: 20px; cursor: pointer; }
@media (max-width: 1180px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .nav a.play { margin: 8px 0 0; text-align: center; }
}

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px;
  font: 600 16px var(--head); border: 1px solid var(--line); background: var(--card2); color: var(--fg); cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.15); }
.btn.red { background: linear-gradient(180deg, var(--red2), var(--red)); border-color: #e9765f; color: #fff; }
.btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); border-color: #ffe2a6; color: #2a1a05; }
.btn.big { padding: 16px 30px; font-size: 19px; border-radius: 12px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero */
.hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: 70% 30%; transform: scale(1.03); }
.hero::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,11,10,.97) 0%, rgba(13,11,10,.85) 35%, rgba(13,11,10,.2) 70%, rgba(13,11,10,.35) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 60px; width: 100%; }
.hero h1 { max-width: 640px; text-shadow: 0 2px 12px #000; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { max-width: 560px; font-size: 18px; color: #dcd0bf; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.45);
  border: 1px solid var(--line); font-size: 14px; color: var(--fg); }
.tag b { color: var(--gold); }
@media (max-width: 700px) {
  .hero { min-height: 520px; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(13,11,10,.8) 55%, rgba(13,11,10,.35) 100%); }
  .hero .bg { background-position: 65% 20%; }
}
.pagehead { position: relative; padding: 56px 0 30px; border-bottom: 1px solid var(--line); overflow: hidden; }
.pagehead .bg { position: absolute; inset: 0; background-size: cover; background-position: 70% 30%; opacity: .35; }
.pagehead::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 25%, rgba(13,11,10,.55)), linear-gradient(0deg, var(--bg), transparent 60%); }
.pagehead .wrap { position: relative; z-index: 2; }
.pagehead p { max-width: 720px; color: #d6cab9; }
.crumb { font-size: 14px; color: var(--mut); margin-bottom: 8px; }

/* ---------- sections, cards */
section { padding: 48px 0; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-title h2 { margin: 0; }
.sec-title h2::before { content: ''; display: inline-block; width: 6px; height: .9em; background: var(--red); border-radius: 2px; margin-right: 10px; vertical-align: -2px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card h3 { margin-bottom: .35em; }
.card.link { display: block; color: var(--fg); transition: transform .15s, border-color .15s; }
.card.link:hover { transform: translateY(-3px); border-color: var(--gold); text-decoration: none; }
.card .ico { font-size: 28px; line-height: 1; margin-bottom: 10px; }
.note { background: rgba(227,179,92,.08); border: 1px solid rgba(227,179,92,.35); border-radius: 10px; padding: 12px 16px; font-size: 15px; }
.note.red { background: rgba(200,65,47,.1); border-color: rgba(200,65,47,.45); }
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1em; }
ol.steps > li { counter-increment: s; position: relative; padding: 2px 0 12px 44px; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--card2); border: 1px solid var(--gold); color: var(--gold2); display: grid; place-items: center; font: 600 15px var(--head); }
ul.dots { padding-left: 20px; margin: 0 0 1em; }
ul.dots li { margin-bottom: 4px; }
kbd { display: inline-block; min-width: 26px; padding: 1px 7px; border-radius: 6px; background: #2b231d; border: 1px solid #4a3b30;
  border-bottom-width: 3px; font: 600 14px var(--font); text-align: center; color: var(--gold2); }

/* ---------- tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--card2); font-family: var(--head); font-weight: 500; color: var(--gold2); white-space: nowrap; position: sticky; top: 0; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:nth-child(even) td { background: rgba(255,255,255,.015); }

/* ---------- toolbar (search, filters) */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--fg); min-width: 0; }
.toolbar input[type=search] { flex: 1 1 260px; }
.toolbar input:focus, .toolbar select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.count { color: var(--mut); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; font: 15px var(--font); }
.chip.on { background: var(--red); border-color: var(--red2); color: #fff; }
.more { display: block; margin: 18px auto 0; }

/* ---------- item icon chips */
.icon { width: 36px; height: 36px; border-radius: 6px; background: #000 center/cover no-repeat; border: 1px solid #5a4a3c; flex: none; image-rendering: auto; }
.icon.sm { width: 28px; height: 28px; border-radius: 5px; }
.icon.lg { width: 48px; height: 48px; }
.icon.eq { border-color: #ff8c1a; box-shadow: 0 0 0 1px rgba(255,140,26,.35); }
.ichip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 8px; background: var(--card2);
  border: 1px solid var(--line); font-size: 14px; margin: 0 6px 6px 0; vertical-align: middle; color: var(--fg); max-width: 100%; }
.ichip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ichip b { color: var(--gold2); font-weight: 600; }
a.ichip:hover { border-color: var(--gold); text-decoration: none; }

/* ---------- screenshots */
.shot { margin: 0 0 16px; }
.shot .frame { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.shot figcaption { font-size: 13px; color: var(--mut); margin-top: 6px; }
.shots { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.shots.one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .shots { grid-template-columns: minmax(0, 1fr); } }
.devtag { display: inline-block; font-size: 12px; padding: 0 8px; border-radius: 6px; background: var(--card2); border: 1px solid var(--line); margin-right: 6px; color: var(--gold2); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 8px; }

/* ---------- side menu pages (systems / guide) */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.side { position: sticky; top: 78px; max-height: calc(100vh - 96px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.side a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--fg); font-size: 15px; }
.side a:hover { background: var(--card2); text-decoration: none; }
.side a.on { background: var(--card2); color: var(--gold2); }
.side h4 { font-size: 13px; color: var(--mut); margin: 12px 10px 4px; font-family: var(--font); font-weight: 600; }
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 4px; }
  .side h4 { width: 100%; margin: 6px 4px 0; }
  .side a { background: var(--card2); padding: 6px 10px; font-size: 14px; }
}
.topic { padding: 6px 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 36px; scroll-margin-top: 80px; }
.topic:last-child { border-bottom: 0; }
.topic h2 { display: flex; align-items: center; gap: 10px; }
.topic h2 .em { font-size: 26px; }
.where { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }

/* ---------- footer */
footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--mut); font-size: 14px; background: var(--bg2); margin-top: 30px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
footer a { color: var(--mut); }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* ---------- misc */
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 13px; background: var(--card2); border: 1px solid var(--line); color: var(--mut); white-space: nowrap; }
.pill.red { color: #fff; background: var(--red); border-color: var(--red2); }
.pill.blue { color: #fff; background: #2f5e9e; border-color: var(--blue); }
.pill.gold { color: #2a1a05; background: var(--gold); border-color: var(--gold2); }
.pill.ok { color: #08240f; background: var(--ok); border-color: #8fe0a6; }
.empty { padding: 40px; text-align: center; color: var(--mut); }
.cls { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cls img { height: 120px; object-fit: contain; margin-bottom: 8px; image-rendering: auto; }
.countdown { font: 600 28px var(--head); color: var(--gold2); letter-spacing: 1px; }
.hide { display: none !important; }


/* ================================================================ login-page look (2026-11-01) */
.kj { font-family: 'Yuji Syuku', serif; font-style: normal; font-weight: 400; }
.top { background: linear-gradient(rgba(10, 8, 7, .92), rgba(10, 8, 7, .78)); border-bottom: 1px solid var(--line); }
.logo img { width: 46px; height: 46px; border-radius: 50%; clip-path: circle(48.5%); flex: none;
  filter: drop-shadow(0 0 10px rgba(220, 40, 20, .55)); }
.logo b { background: linear-gradient(#fff3d6, var(--gold) 70%, #a5772b); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: .5px; }
.nav a.on { background: linear-gradient(90deg, #6d1414, #9b2617 60%, #6d1414); color: #fff3d6; box-shadow: inset 0 -1px 0 var(--gold); }
.nav a { border-radius: 3px; }
.btn { border-radius: 3px; border-color: #5a4636; background: rgba(0, 0, 0, .4); }
.btn:hover { border-color: var(--gold); filter: none; }
.btn.red, .nav a.play { position: relative; overflow: hidden; border: 1px solid #ffe7a8; color: #2a1606 !important;
  background: linear-gradient(#f6d48f, #e3a64a 55%, #a86f1e); box-shadow: 0 6px 18px rgba(227, 166, 74, .25), inset 0 1px 0 #fff6d8; letter-spacing: .5px; }
.btn.red::after, .nav a.play::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); animation: shine 3.2s infinite; }
@keyframes shine { 60%, 100% { left: 130%; } }
.btn.red:hover, .nav a.play:hover { filter: brightness(1.08); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; backdrop-filter: blur(6px); }
.card.link:hover { border-color: var(--gold); box-shadow: 0 0 24px rgba(227, 166, 74, .18); }
.corners { position: relative; }
.corners::before, .corners::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid var(--gold); pointer-events: none; }
.corners::before { left: -4px; top: -4px; border-right: 0; border-bottom: 0; }
.corners::after { right: -4px; bottom: -4px; border-left: 0; border-top: 0; }
.sec-title { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.sec-title h2::before { background: linear-gradient(#e2604c, #9b2617); }
.tbl th { background: linear-gradient(90deg, #4a1010, #7a1d12 60%, rgba(40, 20, 14, .9)); color: #fff3d6; }
.side, .tbl-wrap { border-color: var(--line); }
.side a.on { background: linear-gradient(90deg, #6d1414, #9b2617); color: #fff3d6; }
.chip { border-radius: 3px; border-color: var(--line2); }
.chip.on { background: linear-gradient(90deg, #6d1414, #9b2617 60%, #6d1414); border-color: var(--gold); color: #fff3d6; }
.pill.gold { background: linear-gradient(#f6d48f, #e3a64a); }
.toolbar input, .toolbar select { border-radius: 3px; background: rgba(0, 0, 0, .45); border-color: var(--line2); }
.toolbar input:focus, .toolbar select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 179, 92, .15); }
.icon { border-color: #6d5640; }
footer { background: linear-gradient(rgba(10, 8, 7, .6), #070505); border-top: 1px solid var(--line); }
.pagehead { border-bottom: 1px solid var(--line); }
.pagehead .bg { opacity: .45; }
.pagehead h1 { background: linear-gradient(#fff3d6, var(--gold) 70%, #a5772b); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #000); display: inline-block; }
.hero .bg { background-position: right 8% center; background-size: auto 125%; background-repeat: no-repeat; transform: none;
  animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { from { background-position: right 6% center; } to { background-position: right 10% 46%; } }
.hero::after { background:
  linear-gradient(90deg, var(--bg) 0%, rgba(10, 8, 7, .97) 34%, rgba(10, 8, 7, .6) 50%, rgba(10, 8, 7, .05) 72%),
  linear-gradient(0deg, var(--bg) 0%, transparent 30%),
  radial-gradient(600px 400px at 18% 40%, rgba(184, 50, 31, .2), transparent 70%); }
.brand { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.brand .biglogo { width: 220px; height: 220px; border-radius: 50%; clip-path: circle(48.5%);
  filter: drop-shadow(0 0 24px rgba(220, 40, 20, .55)); animation: glow 4s ease-in-out infinite alternate; }
@keyframes glow { to { filter: drop-shadow(0 0 40px rgba(255, 80, 30, .75)); } }
.brand h1 { margin: 0; background: linear-gradient(#fff3d6, var(--gold) 70%, #a5772b); -webkit-background-clip: text; background-clip: text;
  color: transparent; filter: drop-shadow(0 2px 0 #000); }
.brand h1 span { font-size: .7em; letter-spacing: 8px; }
.brand .sub { color: var(--mut); letter-spacing: 2px; font-size: 14px; }
.motto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-width: 520px; margin: 18px 0 22px; }
.motto div { text-align: center; padding: 6px 0 5px; border-top: 1px solid var(--line); }
.motto i { display: block; font: 500 22px/1.3 var(--head); color: var(--gold2); font-style: normal; }
.motto span { font-size: 12px; color: var(--mut); }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(0deg, var(--bg) 10%, rgba(10, 8, 7, .82) 55%, rgba(10, 8, 7, .45) 100%); }
  .hero .bg { background-size: cover; background-position: 70% 20%; }
  .brand { justify-content: center; text-align: center; }
  .brand .biglogo { width: 170px; height: 170px; }
  .motto { margin-left: auto; margin-right: auto; }
}
