/*
Theme Name: SNS Online Games 3D
Theme URI: https://example.com/
Author: SNS Online Games
Description: Responsive WordPress HTML5 gaming theme with 20 playable WebGL game modes.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: sns-online-games
*/
:root{--bg:#0b1220;--panel:#111c2e;--line:#26364e;--text:#eef4ff;--muted:#a9bad2;--accent:#27c2a5}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
a{color:#7ee7d3;text-decoration:none}a:hover{text-decoration:underline}.site-header,.site-footer{background:#080e19;border-bottom:1px solid var(--line);padding:18px max(18px,calc((100% - 1180px)/2))}
.site-brand{font-size:1.45rem;font-weight:800;letter-spacing:.3px}.site-nav{display:flex;gap:18px;flex-wrap:wrap;margin-top:10px}.site-nav a{color:var(--muted)}
.wrap{max-width:1180px;margin:auto;padding:28px 18px}.hero{padding:30px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(130deg,#13283b,#111827 65%,#0c1828);margin-bottom:26px}
.hero h1{font-size:clamp(2rem,5vw,3.3rem);line-height:1.1;margin:0 0 12px}.hero p{color:var(--muted);max-width:720px}
.game-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.game-card,.content-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px}
.game-card h2{font-size:1.1rem;margin:4px 0}.game-card p,.muted{color:var(--muted)}.game-type{font-size:.75rem;text-transform:uppercase;color:var(--accent);letter-spacing:1px}
.play-link,.button{display:inline-block;background:var(--accent);color:#061b19;padding:9px 15px;border-radius:9px;font-weight:750;margin-top:8px}
.game-shell{background:#050a12;border:1px solid var(--line);border-radius:16px;overflow:hidden}.game-top{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 16px;background:#101b2c}
#sns-game{display:block;width:100%;height:min(68vh,650px);min-height:360px;touch-action:none}.game-hud{display:flex;gap:18px;flex-wrap:wrap;color:var(--muted);font-weight:700}
.game-controls{padding:12px 16px;color:var(--muted);font-size:.9rem}.game-actions{display:flex;gap:10px;flex-wrap:wrap}
.game-actions button{border:0;border-radius:8px;padding:10px 16px;background:#23354d;color:white;font-weight:700;cursor:pointer}
.entry-content{color:#d5e0ef}.entry-content h2,.entry-content h3{color:white}.site-footer{border-top:1px solid var(--line);border-bottom:0;margin-top:45px;color:var(--muted)}
@media(max-width:600px){.wrap{padding:18px 12px}.hero{padding:22px 18px}#sns-game{min-height:330px;height:55vh}.game-top{align-items:flex-start;flex-direction:column}}

/* SNS gaming hub refresh */
.site-header{padding:0 18px;background:#080f1e;border-bottom:1px solid #1e3455;position:relative;z-index:5}
.sns-header-inner{max-width:1240px;margin:auto;min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.sns-brand{display:flex;align-items:center;gap:10px;color:#f2f7ff;font-size:1.35rem;font-weight:850;white-space:nowrap}
.sns-brand:hover{text-decoration:none}.sns-brand b{color:#2ec9f0}.sns-brand-mark{font-size:2rem}.sns-brand small{display:block;font-size:.68rem;color:#9aabc4;font-weight:500;letter-spacing:1px}
.sns-menu{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sns-menu li{margin:0;padding:0}.sns-menu a{display:block;color:#d8e5fa;padding:10px 13px;border-radius:9px;font-size:.93rem}.sns-menu a:hover{background:#152b49;text-decoration:none;color:#fff}
.sns-header-play,.sns-hero-cta,.sns-play-button{display:inline-block;background:linear-gradient(135deg,#16b8ee,#0879e8);color:white;padding:10px 17px;border-radius:9px;font-weight:800}.sns-header-play:hover,.sns-hero-cta:hover,.sns-play-button:hover{color:white;text-decoration:none;filter:brightness(1.1)}
.sns-hero{display:flex;align-items:center;justify-content:space-between;gap:25px;min-height:255px;padding:34px;border:1px solid #23446c;border-radius:18px;background:radial-gradient(circle at 80% 40%,#174c78 0,#142c4c 32%,#101b30 72%);overflow:hidden}
.sns-hero-copy{max-width:640px}.sns-eyebrow{color:#27c5ef;font-size:.76rem;font-weight:850;letter-spacing:1.8px}.sns-hero h1{font-size:clamp(2rem,4vw,3.3rem);margin:8px 0;line-height:1.08}.sns-hero p{color:#c0cde0;max-width:560px}.sns-hero-art{display:flex;align-items:center;gap:8px;font-size:clamp(2.4rem,6vw,5rem);filter:drop-shadow(0 10px 20px #0008)}
.sns-section-heading{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:34px 0 16px}.sns-section-heading h2{margin:4px 0 0;font-size:1.65rem}.sns-section-heading>a{color:#58d8f4;font-weight:700}
.sns-game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.sns-game-card{overflow:hidden;background:#111f34;border:1px solid #253d5c;border-radius:13px;transition:transform .18s,border-color .18s}
.sns-game-card:hover{transform:translateY(-4px);border-color:#2bbde9}
.sns-game-thumb{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;background:#1b2b43}
.sns-game-thumb img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s}.sns-game-card:hover img{transform:scale(1.05)}
.sns-play-overlay{position:absolute;inset:auto 10px 10px auto;background:#087fe9;color:white;padding:6px 10px;border-radius:7px;font-size:.75rem;font-weight:900}
.sns-game-card-body{padding:13px}.sns-game-category{font-size:.72rem;text-transform:uppercase;letter-spacing:1px;color:#47c9ed;font-weight:800}.sns-game-card h3{font-size:1.05rem;margin:4px 0}.sns-game-card h3 a{color:#f4f7ff}.sns-game-card p{font-size:.85rem;color:#aabbd2;min-height:42px;margin:5px 0 9px}.sns-play-button{padding:8px 12px;font-size:.83rem}
.sns-info-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:28px}.sns-info-strip>div{display:flex;align-items:center;justify-content:center;gap:10px;padding:15px;background:#101e32;border:1px solid #233b59;border-radius:10px}.sns-info-strip b{font-size:1.25rem;color:#32c9ef}.sns-info-strip span{color:#b4c4d9;font-size:.88rem}
.site-footer .sns-menu{justify-content:center}.site-footer .sns-menu a{padding:6px 10px}
@media(max-width:950px){.sns-game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sns-header-inner{flex-wrap:wrap;padding:12px 0}.sns-main-nav{order:3;width:100%}.sns-menu{justify-content:center}}
@media(max-width:650px){.sns-game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.sns-hero{padding:23px;min-height:220px}.sns-hero-art{display:none}.sns-game-card-body{padding:10px}.sns-game-card p{display:none}.sns-info-strip{grid-template-columns:1fr}.sns-header-inner{justify-content:center}.sns-brand{width:100%;justify-content:center}.sns-menu{gap:2px}.sns-menu a{padding:8px;font-size:.83rem}.sns-header-play{display:none}}


/* v1.1 layout hardening: prevents unstyled menus and oversized thumbnails */
html,body{max-width:100%;overflow-x:hidden}
.site-header{width:100%;padding:0 20px!important}
.sns-header-inner{width:100%;max-width:1240px;margin:0 auto;display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:82px}
.sns-main-nav{display:block!important;flex:1}
.sns-main-nav ul,.sns-menu,.site-nav ul{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;list-style:none!important;margin:0!important;padding:0!important}
.sns-main-nav li,.sns-menu li,.site-nav li{list-style:none!important;margin:0!important;padding:0!important}
.sns-main-nav li:before,.sns-menu li:before{content:none!important}
.sns-main-nav a,.sns-menu a{display:inline-flex!important;align-items:center;white-space:nowrap}
.wrap{width:100%;max-width:1240px!important;margin-left:auto!important;margin-right:auto!important}
.sns-game-grid{width:100%;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;align-items:stretch}
.sns-game-card{min-width:0!important;width:100%!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
.sns-game-thumb{display:block!important;position:relative!important;width:100%!important;height:auto!important;aspect-ratio:16/9!important;overflow:hidden!important;line-height:0!important}
.sns-game-thumb img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;margin:0!important}
.sns-game-card-body{display:flex!important;flex-direction:column!important;align-items:flex-start!important;flex:1}
.sns-game-card-body p{min-height:0!important;flex:1}
.sns-game-card-body .sns-play-button{margin-top:8px}
.game-shell{width:100%;max-width:100%;overflow:hidden}
#sns-game{width:100%!important;height:min(72vh,720px)!important;min-height:420px!important;display:block!important;touch-action:none!important;background:#8aaebe}
.game-top{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap}
.game-controls{display:flex;flex-direction:column;gap:10px}
.game-actions{display:flex;flex-wrap:wrap;gap:10px}
.game-actions button{min-height:42px}
.sns-game-playbar{display:flex;gap:9px;flex-wrap:wrap;align-items:center;padding:10px 14px;background:#0b1422;border-top:1px solid #26364e}
.sns-game-playbar button{background:#087fe9;color:#fff;border:0;border-radius:8px;padding:10px 14px;font-weight:800;cursor:pointer}
.sns-game-playbar button.secondary{background:#253a55}
.sns-mobile-pad{display:none;gap:12px;justify-content:center;padding:10px}
.sns-mobile-pad button{width:58px;height:48px;border:1px solid #49627f;border-radius:10px;background:#1a2b42;color:#fff;font-size:1.2rem;font-weight:900;touch-action:none}
.sns-article-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.sns-article-links a{display:block;background:#101f34;border:1px solid #2a4261;border-radius:10px;padding:14px;color:#eaf3ff}
.sns-article-links small{display:block;color:#42c9ed;margin-bottom:5px}
@media(max-width:900px){.sns-game-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.sns-header-inner{flex-wrap:wrap;padding:12px 0}.sns-main-nav{order:3;flex-basis:100%}.sns-main-nav ul,.sns-menu{justify-content:center!important;flex-wrap:wrap!important}}
@media(max-width:600px){.sns-game-grid{grid-template-columns:repeat(1,minmax(0,1fr))!important}.sns-game-thumb{aspect-ratio:16/9!important}.sns-hero{padding:20px!important}.sns-article-links{grid-template-columns:1fr}.sns-mobile-pad{display:flex}#sns-game{height:58vh!important;min-height:340px!important}.sns-header-play{display:none}}

/* Gameplay HUD and mission styling */
.sns-mission-bar{padding:11px 16px;background:linear-gradient(90deg,#073d68,#102b48);color:#eaf7ff;font-weight:900;letter-spacing:.04em;border-bottom:1px solid #2678ad;text-transform:uppercase;font-size:.88rem}
.game-hud{align-items:center;gap:12px}.game-hud span{white-space:nowrap}.game-hud b{color:#fff}
#sns-game{background:#8fc7ed}

/* Web Games brand, footer and consent notice */
.web-site-footer{margin-top:54px;background:#071d31;color:#eaf2ff;padding:42px max(18px,calc((100% - 1240px)/2)) 18px;border-top:1px solid #183653}
.web-footer-grid{max-width:1240px;margin:0 auto;display:grid;grid-template-columns:1.25fr 1fr 1.35fr;gap:42px}
.web-footer-brand{font:800 2.1rem Georgia,serif;color:#f4f7ff;letter-spacing:-1px}
.web-footer-brand span{color:#d59a32}
.web-footer-about p{color:#c4d3e5;max-width:560px;margin:12px 0;line-height:1.7}
.web-footer-column h2{font-size:.95rem;letter-spacing:.08em;color:#fff;border-bottom:2px solid #d59a32;padding-bottom:12px;margin:4px 0 16px}
.web-footer-column ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.web-footer-column a{color:#e2edfa}.web-footer-column a:hover{color:#ffd27a}
.web-legal-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:20px!important}
.web-footer-bottom{max-width:1240px;margin:30px auto 0;padding-top:16px;border-top:1px solid #23415d;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;color:#aebfd2;font-size:.86rem}
.web-cookie-notice{position:fixed;z-index:99999;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap;background:#101820;color:#fff;border-top:1px solid #46515b;padding:13px 18px;box-shadow:0 -8px 24px #0004}
.web-cookie-notice[hidden]{display:none}
.web-cookie-notice p{margin:0;max-width:980px}.web-cookie-notice a{color:#ffad43;text-decoration:underline}
.web-cookie-notice button{border:0;border-radius:3px;padding:10px 22px;background:#f2f2f2;color:#111;font-weight:700;cursor:pointer}
.web-cookie-notice button.web-cookie-dismiss{background:transparent;color:#fff;border:1px solid #718093}
.web-ad-slot{margin:24px auto;padding:12px;max-width:100%;text-align:center;color:#8da0b8;border:1px dashed #42546a;border-radius:8px;font-size:.8rem}
.web-ad-slot:empty{display:none}
@media(max-width:800px){.web-footer-grid{grid-template-columns:1fr 1fr;gap:28px}.web-footer-about{grid-column:1/-1}}
@media(max-width:560px){.web-footer-grid{grid-template-columns:1fr;gap:22px}.web-footer-about{grid-column:auto}.web-footer-bottom{flex-direction:column}.web-cookie-notice{gap:9px}.web-cookie-notice p{width:100%;text-align:center}}


/* v1.4: footer layout matched to the supplied reference screenshot */
.site-footer.web-site-footer,
footer.web-site-footer{
  box-sizing:border-box!important;width:100%!important;max-width:none!important;
  margin:54px 0 0!important;background:#071d31!important;color:#eaf2ff!important;
  padding:42px max(18px,calc((100% - 1240px)/2)) 18px!important;
  border-top:1px solid #183653!important;
}
.web-site-footer *{box-sizing:border-box}
.web-site-footer .web-footer-grid{
  width:100%!important;max-width:1240px!important;margin:0 auto!important;
  display:grid!important;grid-template-columns:1.25fr 1fr 1.35fr!important;
  align-items:start!important;gap:42px!important;
}
.web-site-footer .web-footer-about,
.web-site-footer .web-footer-column{display:block!important;min-width:0!important;float:none!important;width:auto!important}
.web-site-footer .web-footer-brand{display:inline-block!important;font:800 2.1rem Georgia,serif!important;color:#f4f7ff!important;letter-spacing:-1px!important;text-decoration:none!important}
.web-site-footer .web-footer-brand span{color:#d59a32!important}
.web-site-footer .web-footer-about p{display:block!important;color:#c4d3e5!important;max-width:560px!important;margin:12px 0!important;line-height:1.7!important}
.web-site-footer .web-footer-column h2{
  display:block!important;font-size:.95rem!important;letter-spacing:.08em!important;color:#fff!important;
  border:0!important;border-bottom:2px solid #d59a32!important;padding:0 0 12px!important;margin:4px 0 16px!important;
}
.web-site-footer .web-footer-column ul{
  display:grid!important;grid-template-columns:1fr!important;gap:12px!important;
  list-style:none!important;margin:0!important;padding:0!important;
}
.web-site-footer .web-footer-column ul li{
  display:block!important;list-style:none!important;margin:0!important;padding:0!important;
}
.web-site-footer .web-footer-column ul li:before{content:none!important;display:none!important}
.web-site-footer .web-footer-column a{display:inline!important;padding:0!important;color:#e2edfa!important;text-decoration:none!important}
.web-site-footer .web-footer-column a:hover{color:#ffd27a!important}
.web-site-footer .web-footer-column ul.web-legal-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:20px!important;row-gap:12px!important;
}
.web-site-footer .web-footer-bottom{
  width:100%!important;max-width:1240px!important;margin:30px auto 0!important;padding:16px 0 0!important;
  border-top:1px solid #23415d!important;display:flex!important;justify-content:space-between!important;
  gap:15px!important;flex-wrap:wrap!important;color:#aebfd2!important;font-size:.86rem!important;
}
.web-cookie-notice{
  position:fixed!important;z-index:99999!important;left:0!important;right:0!important;bottom:0!important;
  display:flex!important;justify-content:center!important;align-items:center!important;gap:18px!important;
  flex-wrap:wrap!important;background:#101820!important;color:#fff!important;
  border-top:1px solid #46515b!important;padding:13px 18px!important;box-shadow:0 -8px 24px #0004!important;
}
.web-cookie-notice[hidden]{display:none!important}
.web-cookie-notice p{margin:0!important;max-width:980px!important;color:#fff!important}
.web-cookie-notice a{color:#ffad43!important;text-decoration:underline!important}
.web-cookie-notice button{border:0!important;border-radius:3px!important;padding:10px 22px!important;background:#f2f2f2!important;color:#111!important;font-weight:700!important;cursor:pointer!important}
@media(max-width:800px){
 .web-site-footer .web-footer-grid{grid-template-columns:1fr 1fr!important;gap:28px!important}
 .web-site-footer .web-footer-about{grid-column:1/-1!important}
}
@media(max-width:560px){
 .web-site-footer .web-footer-grid{grid-template-columns:1fr!important;gap:22px!important}
 .web-site-footer .web-footer-about{grid-column:auto!important}
 .web-site-footer .web-footer-bottom{flex-direction:column!important}
 .web-cookie-notice{gap:9px!important}
 .web-cookie-notice p{width:100%!important;text-align:center!important}
}
