:root{
  --accent:#7c3aed;
  --accent-2:#06b6d4;
  --page-text:#f8fafc;
  --page-muted:#b8c0d4;
  --page-max-width:1180px;
  --shadow:0 24px 86px rgba(0,0,0,.35);
  --font:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
}
*{box-sizing:border-box}
html{min-height:100%;scroll-behavior:smooth}
body{min-height:100%;margin:0;font-family:var(--font);color:var(--page-text);background:#070711}
button,input,textarea,select{font:inherit}
button{border:0}
a{color:inherit}
.site-body{min-height:100vh;overflow-x:hidden}
.site-body::before,.editor-canvas::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:58px 58px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.72),transparent 78%);
  z-index:0;
}
.site-app{min-height:100vh;position:relative;z-index:1}
.page-shell{
  width:100%;
  max-width:calc(var(--page-max-width) + 48px);
  margin:0 auto;
  padding:1px 24px 44px;
  position:relative;
}
.page-shell::before,.page-shell::after{
  content:"";
  position:fixed;
  width:380px;
  height:380px;
  border-radius:999px;
  filter:blur(22px);
  opacity:.18;
  pointer-events:none;
  z-index:-1;
}
.page-shell::before{left:-150px;top:70px;background:var(--accent)}
.page-shell::after{right:-150px;bottom:40px;background:var(--accent-2)}
.section{
  width:100%;
  margin-left:auto;
  margin-right:auto;
  position:relative;
  overflow:hidden;
  border:1px solid transparent;
  transition:transform .25s ease,border-color .2s ease,box-shadow .2s ease;
}
.section.has-border{border-color:rgba(255,255,255,.15)}
.section.has-shadow{box-shadow:var(--shadow)}
.section::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(135deg,rgba(255,255,255,.08),transparent 35%,rgba(255,255,255,.035));
  opacity:.65;
  z-index:0;
}
.section-inner{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.section.align-center .section-inner{align-items:center;text-align:center}
.section.align-left .section-inner{align-items:flex-start;text-align:left}
.section.align-right .section-inner{align-items:flex-end;text-align:right}
.section.layout-grid .section-inner{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  align-items:stretch;
}
.section.layout-grid .block-shell{height:100%}
.block-shell{position:relative;max-width:100%}
.block-align-center{align-self:center;text-align:center}
.block-align-left{align-self:flex-start;text-align:left}
.block-align-right{align-self:flex-end;text-align:right}
.eyebrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 14px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:999px;
  letter-spacing:.08em;
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  backdrop-filter:blur(16px);
}
.heading{
  margin:0;
  line-height:1.04;
  letter-spacing:-.04em;
  text-wrap:balance;
}
.heading.h1{
  background:linear-gradient(92deg,#fff 0%,#e0e7ff 36%,#8be9ff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent!important;
  text-shadow:0 18px 60px rgba(124,58,237,.35);
}
.rich-text{margin:0;max-width:760px}
.rich-text a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.button-group{display:flex;flex-wrap:wrap;gap:var(--button-gap,14px)}
.button-group.align-center{justify-content:center}
.button-group.align-left{justify-content:flex-start}
.button-group.align-right{justify-content:flex-end}
.action-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:48px;
  padding:13px 18px;
  border-radius:16px;
  text-decoration:none;
  font-weight:900;
  border:1px solid rgba(255,255,255,.15);
  box-shadow:0 14px 42px rgba(0,0,0,.22);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease, opacity .2s ease;
  cursor:pointer;
  position:relative;
  overflow:hidden;
}
.action-btn:hover{transform:translateY(-2px);box-shadow:0 18px 54px rgba(0,0,0,.32);filter:saturate(1.08)}
.action-btn.primary{background:linear-gradient(135deg,var(--accent),#4f46e5);color:#fff}
.action-btn.secondary{background:linear-gradient(135deg,var(--accent-2),#2563eb);color:#fff}
.action-btn.ghost{color:#eef2ff;background:rgba(255,255,255,.08);backdrop-filter:blur(18px)}
.action-btn.dark{color:#fff;background:rgba(2,6,23,.74)}
.action-btn.no-link{
  cursor:default;
  opacity:.74;
  box-shadow:none;
}
.action-btn.no-link:hover{transform:none;filter:none}
.btn-empty{
  font-size:11px;
  font-weight:800;
  color:rgba(255,255,255,.62);
  margin-left:2px;
}
.notice-card,.info-panel,.feature-card,.custom-html-card,.embed-card,.game-card{
  width:100%;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 18px 60px rgba(0,0,0,.2);
  backdrop-filter:blur(18px);
}
.notice-card{padding:26px}
.notice-card.info{background:rgba(6,182,212,.10)}
.notice-card.success{background:rgba(34,197,94,.10)}
.notice-card.warning{background:rgba(245,158,11,.12)}
.notice-card.danger{background:rgba(239,68,68,.12)}
.notice-title,.info-title,.embed-title{font-size:17px;font-weight:950;color:#dbeafe;margin:0 0 12px}
.notice-text,.info-item{color:var(--page-muted);line-height:1.75;margin:0}
.card-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(var(--columns,3),minmax(0,1fr));
  gap:var(--card-gap,18px);
}
.feature-card{
  display:block;
  min-height:100%;
  padding:26px;
  border-radius:26px;
  background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.045));
  text-decoration:none;
}
.feature-card:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.28)}
.feature-icon{font-size:30px;margin-bottom:14px}
.feature-title{margin:0 0 10px;font-size:20px;font-weight:950}
.feature-text{margin:0;color:var(--page-muted);line-height:1.72}
.media-wrap{
  display:block;
  width:100%;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
}
.media-image{display:block;width:100%;height:auto}
.media-placeholder{
  display:grid;
  place-items:center;
  min-height:260px;
  padding:24px;
  color:#cbd5e1;
  background:
    radial-gradient(circle at 18% 16%,rgba(124,58,237,.35),transparent 34%),
    radial-gradient(circle at 86% 20%,rgba(6,182,212,.28),transparent 30%),
    linear-gradient(135deg,rgba(15,23,42,.92),rgba(30,41,59,.62));
  font-weight:900;
}
.info-panel{padding:26px}
.info-subtitle{margin:0;font-size:34px;font-weight:950;letter-spacing:.04em}
.info-list{padding:0;margin:16px 0 0;list-style:none}
.info-list li::before{content:"•";color:var(--accent-2);margin-right:8px}
.divider{width:100%;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent)}
.spacer{width:100%}
.embed-frame{width:100%;border:0;border-radius:18px;background:#fff}
.custom-html-card{padding:24px;border-radius:24px;background:rgba(255,255,255,.08)}

.game-filter-panel{
  width:100%;
  display:grid;
  gap:12px;
  margin:8px 0 18px;
  padding:14px;
  border-radius:24px;
  background:rgba(2,6,23,.32);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(18px);
}
.game-search-row{
  position:relative;
  width:100%;
}
.search-icon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:#cbd5e1;
  font-size:18px;
  pointer-events:none;
}
.game-search-input{
  width:100%;
  min-height:48px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  outline:none;
  padding:0 16px 0 42px;
  background:rgba(15,23,42,.72);
  color:#fff;
  font-weight:800;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.game-search-input::placeholder{color:rgba(203,213,225,.62)}
.game-search-input:focus{
  border-color:rgba(34,211,238,.72);
  box-shadow:0 0 0 4px rgba(34,211,238,.10), inset 0 1px 0 rgba(255,255,255,.05);
}
.category-filter{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.category-chip{
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  color:#dbeafe;
  background:rgba(255,255,255,.075);
  border:1px solid rgba(255,255,255,.12);
  cursor:pointer;
  font-size:13px;
  font-weight:900;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.category-chip:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.12);
}
.category-chip.active{
  color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  border-color:rgba(255,255,255,.20);
}
.filter-summary{
  color:#94a3b8;
  font-size:12px;
  font-weight:800;
  text-align:left;
}
.section.align-center .filter-summary{text-align:center}

.game-list{
  width:100%;
  display:grid;
  grid-template-columns:repeat(var(--game-columns,3),minmax(0,1fr));
  gap:var(--game-gap,18px);
  align-items:stretch;
}
.game-card{
  min-height:100%;
  position:relative;
  overflow:hidden;
  border-radius:var(--game-card-radius,30px);
  min-height:var(--game-card-min-height,auto);
  background:
    radial-gradient(circle at 16% 12%, color-mix(in srgb, var(--game-a,#7c3aed) 32%, transparent), transparent 34%),
    radial-gradient(circle at 88% 22%, color-mix(in srgb, var(--game-b,#06b6d4) 26%, transparent), transparent 30%),
    linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.045));
  text-align:left;
}
.game-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,.09),transparent 38%,rgba(0,0,0,.12));
  pointer-events:none;
}
.game-card-inner{position:relative;z-index:1;padding:18px;display:flex;flex-direction:column;gap:16px;height:100%}
.game-cover{
  position:relative;
  width:100%;
  aspect-ratio:var(--cover-ratio,16 / 9);
  min-height:80px;
  border-radius:24px;
  overflow:hidden;
  background:
    radial-gradient(circle at 22% 18%, color-mix(in srgb, var(--game-a,#7c3aed) 56%, transparent), transparent 35%),
    radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--game-b,#06b6d4) 50%, transparent), transparent 34%),
    linear-gradient(135deg,rgba(15,23,42,.86),rgba(30,41,59,.62));
  border:1px solid rgba(255,255,255,.14);
}
.game-cover.fixed-height{
  aspect-ratio:auto;
  height:var(--cover-height,180px);
}
.game-cover img{
  display:block;
  width:100%;
  height:100%;
  object-fit:var(--cover-fit,cover);
  object-position:var(--cover-position,center);
}
.game-cover-placeholder{
  height:100%;
  display:grid;
  place-items:center;
  padding:16px;
  color:rgba(255,255,255,.84);
  font-size:18px;
  font-weight:950;
  text-align:center;
}
.game-cover-placeholder small{display:block;font-size:12px;color:rgba(255,255,255,.6);margin-top:6px;font-weight:800}
.game-badge-row{
  position:absolute;
  top:12px;
  left:12px;
  right:12px;
  display:flex;
  gap:8px;
  justify-content:space-between;
  align-items:flex-start;
}
.game-pill{
  display:inline-flex;
  min-height:28px;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  color:#fff;
  background:rgba(2,6,23,.62);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(12px);
  font-size:12px;
  font-weight:900;
}
.game-pill.status{background:linear-gradient(135deg,var(--game-a,#7c3aed),var(--game-b,#06b6d4))}
.game-title{margin:0;font-size:23px;line-height:1.18;font-weight:950;letter-spacing:-.025em}
.game-subtitle{margin:6px 0 0;color:#dbeafe;font-size:14px;font-weight:800}
.game-desc{margin:0;color:var(--page-muted);line-height:1.72;font-size:14px}
.game-tags{display:flex;flex-wrap:wrap;gap:8px}
.game-tag{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  color:#dbeafe;
  background:rgba(255,255,255,.075);
  border:1px solid rgba(255,255,255,.10);
  font-size:12px;
  font-weight:800;
}
.game-meta{
  display:grid;
  gap:8px;
  padding:12px;
  border-radius:18px;
  background:rgba(2,6,23,.34);
  border:1px solid rgba(255,255,255,.10);
}
.game-meta-row{display:flex;justify-content:space-between;gap:12px;color:#cbd5e1;font-size:13px}
.game-meta-row strong{color:#fff;letter-spacing:.03em}
.game-highlights{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.game-highlights li{color:#cbd5e1;font-size:13px;line-height:1.55}
.game-highlights li::before{content:"✓";color:var(--game-b,#06b6d4);font-weight:950;margin-right:8px}
.game-actions{
  margin-top:auto;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.game-actions .action-btn{
  min-height:40px;
  padding:10px 12px;
  border-radius:13px;
  font-size:13px;
  box-shadow:none;
}
.empty-games{
  grid-column:1/-1;
  padding:36px 18px;
  border:1px dashed rgba(255,255,255,.18);
  border-radius:24px;
  color:#cbd5e1;
  text-align:center;
  background:rgba(255,255,255,.05);
}


.game-pagination{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
  padding:12px;
  border-radius:22px;
  background:rgba(2,6,23,.30);
  border:1px solid rgba(255,255,255,.10);
}
.page-nav,.page-num{
  min-height:38px;
  border-radius:999px;
  color:#e5e7eb;
  cursor:pointer;
  font-weight:900;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
}
.page-nav{padding:8px 14px}
.page-num{min-width:38px;padding:8px 11px}
.page-nav:disabled{
  opacity:.42;
  cursor:not-allowed;
}
.page-num.active{
  color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
}
.page-number-list{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  justify-content:center;
}
.page-ellipsis{
  color:#94a3b8;
  padding:0 4px;
  font-weight:900;
}
.page-info{
  color:#cbd5e1;
  font-size:12px;
  font-weight:850;
}

.game-load-row{width:100%;display:flex;justify-content:center;margin-top:18px}
.game-load-more{min-height:44px;padding:10px 18px;border-radius:999px;color:#fff;cursor:pointer;font-weight:900;background:linear-gradient(135deg,var(--accent),var(--accent-2));border:1px solid rgba(255,255,255,.18);box-shadow:0 14px 42px rgba(0,0,0,.24)}
.game-load-more span{margin-left:8px;color:rgba(255,255,255,.72);font-size:12px}
.game-load-more:hover{transform:translateY(-1px);box-shadow:0 18px 54px rgba(0,0,0,.30)}

.footer-mark{
  color:rgba(255,255,255,.62);
  font-size:13px;
  text-align:center;
  padding:24px 0 10px;
}
.editor-entry{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:20;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 14px;
  border-radius:999px;
  background:rgba(15,23,42,.75);
  color:#fff;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(16px);
  box-shadow:0 14px 50px rgba(0,0,0,.28);
  font-size:13px;
  font-weight:900;
}
.toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  z-index:9999;
  background:rgba(15,23,42,.94);
  color:#fff;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  padding:11px 16px;
  box-shadow:0 12px 50px rgba(0,0,0,.35);
}

/* V6 music player */
.music-player{
  position:fixed;
  z-index:40;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:248px;
  max-width:min(360px,calc(100vw - 28px));
  min-height:58px;
  padding:9px 10px;
  border-radius:22px;
  color:#fff;
  background:rgba(15,23,42,.74);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 18px 60px rgba(0,0,0,.32);
  backdrop-filter:blur(18px);
}
.music-player.bottom-left{left:18px;bottom:18px}
.music-player.bottom-right{right:18px;bottom:18px}
.music-player.top-left{left:18px;top:18px}
.music-player.top-right{right:18px;top:18px}
.music-main-btn{
  width:40px;
  height:40px;
  border-radius:999px;
  display:grid;
  place-items:center;
  cursor:pointer;
  color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  box-shadow:0 10px 30px rgba(0,0,0,.28);
  font-weight:950;
}
.music-pause-icon{display:none}
.music-player.is-playing .music-play-icon{display:none}
.music-player.is-playing .music-pause-icon{display:inline}
.music-info{min-width:0;flex:1;display:grid;gap:3px}
.music-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:950}
.music-info small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#cbd5e1;font-size:12px;font-weight:750}
.music-mini-btn{
  width:30px;
  height:30px;
  border-radius:999px;
  color:#e5e7eb;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
  cursor:pointer;
  font-weight:950;
}
.music-player.is-muted .music-mini-btn{color:#fecaca;background:rgba(239,68,68,.16)}
.music-visualizer{display:flex;align-items:end;gap:3px;height:22px;width:22px}
.music-visualizer i{
  width:3px;
  height:7px;
  border-radius:999px;
  background:linear-gradient(to top,var(--accent),var(--accent-2));
  opacity:.55;
}
.music-player.is-playing .music-visualizer i{animation:musicBars .85s ease-in-out infinite alternate}
.music-player.is-playing .music-visualizer i:nth-child(2){animation-delay:.12s}
.music-player.is-playing .music-visualizer i:nth-child(3){animation-delay:.24s}
.music-player.is-playing .music-visualizer i:nth-child(4){animation-delay:.36s}
@keyframes musicBars{from{height:6px;opacity:.55}to{height:22px;opacity:1}}
.music-player.collapsed{min-width:58px;width:58px;padding:9px}
.music-player.collapsed .music-info,
.music-player.collapsed .music-visualizer,
.music-player.collapsed .music-mini-btn{display:none}
.music-player.autoplay-blocked{border-color:rgba(251,191,36,.36)}
@media (max-width:760px){
  .music-player{
    left:12px!important;
    right:12px!important;
    bottom:12px!important;
    top:auto!important;
    min-width:0;
    max-width:none;
  }
  .music-player.collapsed{
    left:auto!important;
    right:12px!important;
    width:58px;
  }
}

/* Editor */
.editor-body{height:100vh;overflow:hidden;background:#080b13;color:#eef2ff}
.editor-topbar{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 16px;
  border-bottom:1px solid rgba(255,255,255,.12);
  background:rgba(2,6,23,.88);
  backdrop-filter:blur(18px);
}
.editor-brand{display:flex;align-items:center;gap:12px;min-width:270px}
.editor-brand strong{display:block;font-size:16px}
.editor-brand small{display:block;color:#9ca3af;margin-top:3px;font-size:12px}
.editor-logo{
  width:42px;height:42px;border-radius:14px;
  display:grid;place-items:center;
  font-weight:950;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#fff;
}
.editor-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.tool-btn,.icon-btn{
  border:1px solid rgba(255,255,255,.14);
  color:#e5e7eb;
  background:rgba(255,255,255,.08);
  border-radius:12px;
  min-height:36px;
  padding:0 12px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:13px;
  font-weight:850;
}
.tool-btn:hover,.icon-btn:hover{background:rgba(255,255,255,.14)}
.tool-btn.primary{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff}
.tool-btn.danger,.icon-btn.danger{background:rgba(239,68,68,.12);color:#fecaca;border-color:rgba(239,68,68,.28)}
.tool-btn.full{width:100%}
.tool-btn.tiny{min-height:30px;font-size:12px;padding:0 9px}
.file-tool{cursor:pointer}
.editor-layout{height:calc(100vh - 72px);display:grid;grid-template-columns:330px minmax(0,1fr) 380px}
.editor-panel{
  overflow:auto;
  background:rgba(15,23,42,.78);
  border-right:1px solid rgba(255,255,255,.10);
}
.right-panel{border-right:0;border-left:1px solid rgba(255,255,255,.10)}
.panel-section{padding:16px;border-bottom:1px solid rgba(255,255,255,.10)}
.panel-section.sticky{position:sticky;top:0}
.panel-section h2{
  margin:0 0 12px;
  font-size:14px;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#c7d2fe;
}
.panel-title-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.canvas-wrap{
  overflow:auto;
  position:relative;
  background:
    radial-gradient(circle at 20% 0,rgba(124,58,237,.18),transparent 30%),
    radial-gradient(circle at 90% 8%,rgba(6,182,212,.14),transparent 32%),
    #090b14;
}
.canvas-hint{
  position:sticky;
  top:0;
  z-index:5;
  margin:12px auto 0;
  width:max-content;
  max-width:calc(100% - 28px);
  padding:8px 12px;
  border-radius:999px;
  background:rgba(15,23,42,.82);
  border:1px solid rgba(255,255,255,.12);
  color:#cbd5e1;
  font-size:12px;
  backdrop-filter:blur(12px);
}
.editor-canvas{min-height:calc(100vh - 120px)}
.editor-canvas .page-shell{padding-top:1px;padding-bottom:70px}
.editor-canvas [data-edit-id]{cursor:pointer}
.editor-canvas [data-edit-id]:hover{outline:2px dashed rgba(56,189,248,.7);outline-offset:4px}
.editor-canvas .is-selected{outline:3px solid rgba(34,211,238,.95)!important;outline-offset:5px}
.inspector-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.mini-actions{display:flex;gap:6px}
.icon-btn{width:30px;height:30px;min-height:30px;padding:0;border-radius:10px}
.field{display:grid;gap:6px;margin-bottom:12px}
.field label,.field > span{color:#cbd5e1;font-size:12px;font-weight:850}
.input,.textarea,.select{
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:rgba(2,6,23,.62);
  color:#fff;
  min-height:38px;
  padding:8px 10px;
  outline:none;
}
.textarea{min-height:86px;resize:vertical}
.input[type=color]{padding:2px;height:40px}
.help{color:#94a3b8;font-size:12px;line-height:1.55;margin:0 0 12px}
.add-row{margin-bottom:10px}
.add-row.two{display:grid;grid-template-columns:1fr auto;gap:8px}
.segment{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.switch-field{display:flex;gap:8px;align-items:center;margin-bottom:12px;color:#cbd5e1;font-size:13px;font-weight:850}
.switch-field input{width:18px;height:18px}
.tree-panel,.game-manager{display:grid;gap:10px}
.tree-section,.game-row{
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  background:rgba(2,6,23,.35);
  overflow:hidden;
}
.tree-section-title,.game-row-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:10px 12px;
  cursor:pointer;
  font-size:13px;
  font-weight:900;
}
.tree-section-title.active,.tree-block.active,.game-row-title.active{background:rgba(34,211,238,.13);color:#a5f3fc}
.tree-block{
  padding:8px 12px 8px 24px;
  border-top:1px solid rgba(255,255,255,.08);
  color:#cbd5e1;
  cursor:pointer;
  font-size:12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.tree-block small,.game-row-title small{color:#94a3b8}
.empty-state{
  padding:28px 14px;
  border:1px dashed rgba(255,255,255,.16);
  border-radius:16px;
  color:#94a3b8;
  line-height:1.7;
}
.array-card{
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:12px;
  margin-bottom:12px;
  background:rgba(255,255,255,.04);
}
.array-card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
  color:#dbeafe;
  font-weight:900;
  font-size:13px;
}
.inline-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.link-audit{
  display:grid;
  gap:7px;
  padding:10px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  color:#cbd5e1;
  font-size:12px;
}
.link-audit strong{color:#fff}

/* V4 text effects and decorations */
.text-solid{
  background:none!important;
  -webkit-background-clip:initial!important;
  background-clip:initial!important;
  color:inherit;
}
.heading.h1.text-solid{
  background:none!important;
  -webkit-background-clip:initial!important;
  background-clip:initial!important;
  color:inherit!important;
}
.text-gradient{
  display:inline-block;
  background-size:200% auto!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  color:transparent!important;
}
.text-rainbow{
  background-size:320% auto!important;
  animation:textRainbow var(--text-speed,8s) linear infinite;
}
.text-neon{
  animation:neonPulse 2.4s ease-in-out infinite alternate;
}
@keyframes textRainbow{
  0%{background-position:0% 50%}
  100%{background-position:320% 50%}
}
@keyframes neonPulse{
  from{filter:brightness(1)}
  to{filter:brightness(1.28)}
}
.page-decoration{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
}
.floating-orbs i{
  position:absolute;
  width:220px;
  height:220px;
  border-radius:999px;
  filter:blur(28px);
  opacity:.18;
  animation:floatOrb 12s ease-in-out infinite alternate;
}
.floating-orbs i:nth-child(1){left:7%;top:18%;background:var(--accent)}
.floating-orbs i:nth-child(2){right:8%;top:28%;background:var(--accent-2);animation-delay:-4s}
.floating-orbs i:nth-child(3){left:44%;bottom:8%;background:#fb7185;animation-delay:-7s}
@keyframes floatOrb{
  from{transform:translate3d(0,0,0) scale(.94)}
  to{transform:translate3d(28px,-34px,0) scale(1.08)}
}
.noise-overlay{
  opacity:.055;
  mix-blend-mode:screen;
  background-image:
    radial-gradient(circle at 20% 30%,#fff 0 1px,transparent 1px),
    radial-gradient(circle at 80% 20%,#fff 0 1px,transparent 1px),
    radial-gradient(circle at 60% 70%,#fff 0 1px,transparent 1px);
  background-size:34px 34px,46px 46px,58px 58px;
}
.corner-glow span{
  position:absolute;
  width:140px;
  height:140px;
  opacity:.22;
  border:1px solid rgba(255,255,255,.25);
  filter:drop-shadow(0 0 16px var(--accent-2));
}
.corner-glow span:nth-child(1){left:18px;top:18px;border-right:0;border-bottom:0;border-radius:24px 0 0 0}
.corner-glow span:nth-child(2){right:18px;top:18px;border-left:0;border-bottom:0;border-radius:0 24px 0 0}
.corner-glow span:nth-child(3){left:18px;bottom:18px;border-right:0;border-top:0;border-radius:0 0 0 24px}
.corner-glow span:nth-child(4){right:18px;bottom:18px;border-left:0;border-top:0;border-radius:0 0 24px 0}
.star-field{
  opacity:.32;
  background:
    radial-gradient(circle at 12% 24%,rgba(255,255,255,.9) 0 1px,transparent 2px),
    radial-gradient(circle at 42% 18%,rgba(255,255,255,.75) 0 1px,transparent 2px),
    radial-gradient(circle at 72% 62%,rgba(255,255,255,.85) 0 1px,transparent 2px);
  background-size:180px 160px,240px 220px,300px 280px;
  animation:starDrift 18s linear infinite;
}
@keyframes starDrift{
  to{background-position:180px 160px,240px 220px,300px 280px}
}
.marquee-wrap{
  width:100%;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  display:flex;
  align-items:center;
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  backdrop-filter:blur(18px);
  box-shadow:0 16px 54px rgba(0,0,0,.18);
}
.marquee-track{
  display:flex;
  align-items:center;
  gap:24px;
  width:max-content;
  min-width:100%;
  white-space:nowrap;
  text-decoration:none;
  animation:marqueeLeft var(--marquee-duration,22s) linear infinite;
}
.marquee-track.reverse{animation-name:marqueeRight}
.marquee-wrap:hover .marquee-track{animation-play-state:paused}
.marquee-item{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:0 4px;
  font-weight:900;
  letter-spacing:.04em;
}
.marquee-item em{
  font-style:normal;
  opacity:.72;
}
@keyframes marqueeLeft{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
@keyframes marqueeRight{
  from{transform:translateX(-50%)}
  to{transform:translateX(0)}
}
.neon-divider{
  width:100%;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.neon-divider::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:2px;
  transform:translateY(-50%);
  background:linear-gradient(90deg,transparent,var(--divider-a),var(--divider-b),transparent);
  box-shadow:0 0 18px var(--divider-a),0 0 30px var(--divider-b);
}
.neon-divider-label{
  position:relative;
  z-index:1;
  padding:7px 16px;
  border-radius:999px;
  background:rgba(2,6,23,.78);
  border:1px solid rgba(255,255,255,.16);
  font-weight:950;
  letter-spacing:.12em;
}
.badge-cloud{
  width:100%;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}
.decor-badge{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 10px 32px rgba(0,0,0,.18);
  font-size:13px;
  font-weight:900;
  animation:badgeFloat 2.8s ease-in-out infinite alternate;
  animation-delay:var(--delay,0s);
}
@keyframes badgeFloat{
  from{transform:translateY(0)}
  to{transform:translateY(-4px)}
}
.palette-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin-bottom:12px;
}
.palette-btn{
  min-height:38px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:13px;
  background:rgba(255,255,255,.06);
  color:#e5e7eb;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 10px;
  cursor:pointer;
  font-size:13px;
  font-weight:850;
}
.palette-btn span{
  width:28px;
  height:18px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
}
.palette-btn.active,
.palette-btn:hover{
  background:rgba(34,211,238,.13);
  border-color:rgba(34,211,238,.35);
}

@media (max-width:1220px){
  .editor-layout{grid-template-columns:300px minmax(0,1fr)}
  .right-panel{position:fixed;right:0;top:72px;bottom:0;width:380px;z-index:30;box-shadow:-20px 0 80px rgba(0,0,0,.45)}
}
@media (max-width:900px){
  .editor-body{height:auto;overflow:auto}
  .editor-topbar{height:auto;align-items:flex-start;flex-direction:column}
  .editor-layout{height:auto;display:block}
  .editor-panel,.right-panel{position:relative;top:auto;bottom:auto;width:auto;max-height:none}
  .canvas-wrap{min-height:600px}
}
.ratio-preview-note{
  color:#94a3b8;
  font-size:12px;
  line-height:1.55;
}
@media (max-width:760px){
  .page-shell{padding-left:16px;padding-right:16px}
  .heading.h1{font-size:42px!important}
  .heading{letter-spacing:-.025em}
  .card-grid,.game-list{grid-template-columns:1fr!important}
  .button-group{width:100%}
  .button-group .action-btn{width:100%}
  .section{border-radius:22px!important}
  .game-cover{height:160px}
}


/* V10 mobile polish and cache-safe layout */
@media (max-width:760px){
  html,body{width:100%;overflow-x:hidden}
  .site-app{min-height:100svh}
  .page-shell{
    max-width:100%;
    padding-left:12px;
    padding-right:12px;
    padding-bottom:96px;
  }
  .section{
    margin-left:0!important;
    margin-right:0!important;
    max-width:100%!important;
  }
  .section-inner{gap:12px}
  .section.layout-grid .section-inner{
    display:flex;
    flex-direction:column;
  }
  .heading.h1{
    font-size:clamp(34px,10vw,46px)!important;
    line-height:1.08;
    word-break:break-word;
  }
  .heading{
    font-size:clamp(24px,7vw,34px)!important;
    line-height:1.12;
  }
  .rich-text{
    font-size:15px!important;
    line-height:1.68!important;
  }
  .game-filter-panel{
    border-radius:20px;
    padding:10px;
    gap:10px;
    margin:6px 0 14px;
  }
  .game-search-input{
    min-height:44px;
    border-radius:15px;
    font-size:16px;
  }
  .category-filter{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .category-filter::-webkit-scrollbar{display:none}
  .category-chip{
    flex:0 0 auto;
    min-height:32px;
    font-size:12px;
    padding:6px 10px;
  }
  .game-list{
    grid-template-columns:repeat(var(--mobile-game-columns,1),minmax(0,1fr))!important;
    gap:12px!important;
  }
  .game-card{
    border-radius:22px!important;
  }
  .game-card-inner{
    padding:12px;
    gap:12px;
  }
  .game-cover{
    border-radius:18px;
    min-height:120px;
  }
  .game-title{
    font-size:20px;
  }
  .game-subtitle{
    font-size:13px;
  }
  .game-desc{
    font-size:13px;
    line-height:1.62;
  }
  .game-tags{gap:6px}
  .game-tag{
    min-height:25px;
    font-size:11px;
    padding:4px 8px;
  }
  .game-meta{
    padding:10px;
    border-radius:15px;
  }
  .game-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .game-actions .action-btn{
    width:100%;
    min-height:38px;
    padding:8px 9px;
    font-size:12px;
    border-radius:12px;
  }
  .game-actions .action-btn:nth-child(odd):last-child{
    grid-column:1 / -1;
  }
  .game-pagination{
    gap:8px;
    padding:10px;
    border-radius:18px;
    margin-top:14px;
  }
  .page-number-list{
    order:3;
    width:100%;
    gap:5px;
  }
  .page-nav{
    flex:1;
    min-height:40px;
    padding:8px 10px;
  }
  .page-num{
    min-width:34px;
    min-height:34px;
    padding:6px 9px;
    font-size:12px;
  }
  .page-info{
    order:2;
    min-width:100%;
    text-align:center;
  }
  .marquee-wrap{
    height:40px!important;
    border-radius:999px!important;
  }
  .marquee-item{
    font-size:12px!important;
  }
  .music-player{
    left:10px!important;
    right:10px!important;
    bottom:10px!important;
    top:auto!important;
    min-width:0!important;
    max-width:none!important;
    min-height:52px;
    border-radius:18px;
  }
  .music-main-btn{width:36px;height:36px}
  .music-info strong{font-size:12px}
  .music-info small{font-size:11px}
  .editor-entry{
    right:10px;
    bottom:72px;
    min-height:36px;
    font-size:12px;
  }
}
@media (max-width:430px){
  .page-shell{padding-left:10px;padding-right:10px}
  .game-actions{
    grid-template-columns:1fr;
  }
  .button-group .action-btn{
    min-height:42px;
  }
}
@media (max-width:900px){
  .editor-actions{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .editor-actions .tool-btn{
    width:100%;
  }
  .panel-section{
    padding:12px;
  }
}


/* V11 stable mobile mode: remove V7-style flicker sources */
@media (max-width:760px){
  .page-decoration,
  .floating-orbs,
  .noise-overlay,
  .corner-glow,
  .star-field,
  .site-body::before,
  .editor-canvas::before{
    display:none!important;
    animation:none!important;
  }
  .section,
  .game-card,
  .game-filter-panel,
  .game-pagination,
  .notice-card,
  .info-panel,
  .feature-card,
  .custom-html-card,
  .embed-card,
  .music-player,
  .editor-entry{
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    transform:none;
  }
  .section::after{
    display:none!important;
  }
  .text-rainbow,
  .text-neon,
  .decor-badge,
  .marquee-track,
  .music-visualizer i{
    animation:none!important;
  }
  .page-shell{
    padding-bottom:110px!important;
  }
  .game-cover-placeholder small{
    display:none;
  }
  .game-cover{
    background:linear-gradient(135deg,rgba(15,23,42,.92),rgba(30,41,59,.72))!important;
  }
  .game-card{
    contain:layout paint;
    will-change:auto!important;
  }
  .game-list{
    content-visibility:visible;
  }
  .category-filter{
    overscroll-behavior-x:contain;
  }
}


/* V12 responsive split: desktop and mobile have independent game cover windows */
.game-cover{
  aspect-ratio:var(--cover-ratio,16 / 9);
  height:auto;
}
.game-cover.fixed-height{
  aspect-ratio:auto!important;
  height:var(--cover-height,220px)!important;
}
.game-cover.ratio-height{
  height:auto!important;
}
.game-cover img{
  object-fit:var(--cover-fit,cover);
  object-position:var(--cover-position,center);
}
@media (max-width:760px){
  .game-list{
    grid-template-columns:repeat(var(--mobile-game-columns,1),minmax(0,1fr))!important;
  }
  .game-card{
    width:100%!important;
    min-width:0!important;
    overflow:hidden;
  }
  .game-card-inner{
    width:100%;
  }
  .game-cover{
    width:100%!important;
    min-height:0!important;
    aspect-ratio:var(--cover-ratio,16 / 9)!important;
    height:auto!important;
    flex:0 0 auto;
  }
  .game-cover.fixed-height{
    aspect-ratio:auto!important;
    height:var(--cover-height,220px)!important;
    min-height:var(--cover-height,220px)!important;
  }
  .game-cover img{
    width:100%!important;
    height:100%!important;
    object-fit:var(--cover-fit,cover)!important;
    object-position:var(--cover-position,center)!important;
  }
  .game-cover-placeholder{
    min-height:100%;
    height:100%;
  }
  .game-card-inner{
    display:flex;
    flex-direction:column;
  }
}
