 
:root {
  --text: #ffffff;
  --text-dim: rgba(255,255,255,0.72);
  --glass-bg: transparent;
  --glass-border: rgba(255,255,255,0.5);
  --glass-shadow: -4px -4px 16px rgba(144,224,170,0.15), 4px 4px 16px rgba(0,0,0,0.07), inset 2px 2px 6px rgba(255,255,255,0.6);
  --accent: #3a8a55;
  --accent-hover: #2d6a41;
  --body-bg: #12bfa0;    
}
[data-theme="dark"] {
  --text: #eaf6ef;
  --text-dim: rgba(234,246,239,0.6);
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.18);
  --glass-shadow: -6px -6px 20px rgba(64,192,128,0.2), 6px 6px 20px rgba(0,0,0,0.3), inset 2px 2px 6px rgba(255,255,255,0.25);
  --accent: #5fd68f;
  --accent-hover: #4bc97a;
  --body-bg: #12bfa0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
 

[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--body-bg);
  color: var(--text);
  min-height: 100vh;
  transition: color 0.5s;
  -webkit-font-smoothing: antialiased;
}
:root {
  --bg-overlay: rgba(0, 0, 0, 0.15);
   
  --bg-fallback: #12bfa0;
}
 
html[data-theme-id="gold"],
html[data-theme-id="rainbow"],
html[data-theme-id="ny2027"] { --bg-fallback: none; }
[data-theme="dark"] {
  --bg-overlay: rgba(13, 31, 23, 0.45);
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: var(--bg-image, var(--bg-fallback));
  opacity: var(--bg-opacity, 0);
  transition: opacity 0.6s ease-in-out;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--bg-overlay);
  transition: background 0.6s;
}

.liquid-glass {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow); border-radius: 28px;
  transition: transform 0.35s, box-shadow 0.35s, background 0.4s;
}
.liquid-glass:hover { transform: translateY(-3px); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.theme-switch {
  flex: 0 0 auto; cursor: pointer; white-space: nowrap;
  padding: 10px 18px; border-radius: 22px; background: var(--glass-bg);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  font-size: 15px; font-weight: 500; color: var(--text); backdrop-filter: blur(10px); transition: all 0.3s; user-select: none;
}
.theme-switch:hover { transform: scale(1.05); }

 
.theme-switch-icon {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; width: 42px; height: 42px; border-radius: 13px;
  flex: 0 0 auto; box-sizing: border-box;
}
.theme-switch-icon svg { display: block; }
.theme-switch-icon:active { transform: scale(.94); }

.topbar {
  position: sticky; top: 1px; z-index: 99; display: flex; justify-content: flex-start;
  align-items: center; flex-wrap: nowrap; gap: 12px;
  padding: 10px 14px; margin: 8px auto 26px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
#topBlur {
  position: fixed; left: 0; right: 0; top: 0; height: 0;
  z-index: 98; pointer-events: none;
  backdrop-filter: blur(9px) saturate(1.08); -webkit-backdrop-filter: blur(9px) saturate(1.08);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,.10) 20%, rgba(0,0,0,.55) 62%, #000 100%);
  mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,.10) 20%, rgba(0,0,0,.55) 62%, #000 100%);
}
 
.nav-scroll {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  scroll-behavior: smooth; padding: 2px 0;
}
.nav-scroll::-webkit-scrollbar { display: none; }
 
@media (min-width: 721px) { .nav-scroll { justify-content: center; } }
.nav-tab {
  padding: 10px 26px; border-radius: 22px; cursor: pointer;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  font-size: 15px; font-weight: 500; color: var(--text); transition: all 0.3s; user-select: none;
}
.nav-tab:hover, .nav-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.page { display: none; }
.page.active { display: block; }
 
.page.active > section,
.page.active > .card {
  animation: pageIn .3s cubic-bezier(.22, 1.4, .5, 1) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
 
.page.active > section:nth-child(2) { animation-delay: .04s; }
.page.active > section:nth-child(3) { animation-delay: .08s; }
.page.active > section:nth-child(4) { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  .page.active > section, .page.active > .card { animation: none !important; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

header.hero { text-align: center; padding: 52px 28px 44px; border-radius: 38px; margin-bottom: 40px; }
.hero .icon {
  width: 104px; height: 104px; border-radius: 26px; margin: 0 auto 20px;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 54px; overflow: hidden;
}
.hero .icon img { width: 100%; height: 100%; object-fit: cover; }
.hero p.sub { margin-top: 8px; font-size: 18px; color: var(--text-dim); }
.addr-tag {
  display: inline-block; margin-top: 18px; padding: 10px 24px; border-radius: 24px;
  cursor: pointer; user-select: all; background: var(--glass-bg); border: 1px solid var(--glass-border);
  font-family: monospace; font-size: 16px; color: var(--text); transition: 0.25s;
}
.addr-tag:hover { transform: translateY(-2px); }

.sec-title {
  font-size: 27px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left !important;
  justify-content: flex-start !important;
  margin-right: auto !important;
}
.sec-title::before { content: ""; width: 6px; height: 26px; border-radius: 4px; background: linear-gradient(180deg, #5fd68f, #3a8a55); }

.card { padding: 28px; margin-bottom: 24px; }
.intro { line-height: 2; font-size: 16px; padding: 32px 36px; }

.rules-list { list-style: none; padding: 0; }
.rules-list li {
  position: relative; padding: 10px 0 10px 28px; font-size: 15px; line-height: 1.6;
}
.rules-list li::before {
  content: "•"; position: absolute; left: 8px; color: var(--accent); font-size: 20px; line-height: 1.4;
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; margin-bottom: 16px; }
.stat-item { padding: 16px; border-radius: 20px; }
.stat-item .label { font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.stat-item .value { font-size: 17px; font-weight: 600; }
.value.on { color: #22c55e; } .value.off { color: #ef4444; }
.motd { padding: 16px; border-radius: 20px; font-size: 15px; white-space: pre-wrap; margin-bottom: 12px; }
.players-list { padding: 16px; border-radius: 20px; font-size: 15px; margin-bottom: 12px; }

.time-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.time-tab { padding: 7px 18px; border-radius: 18px; cursor: pointer; background: var(--glass-bg); border: 1px solid var(--glass-border); font-size: 14px; color: var(--text); transition: 0.25s; }
.time-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.chart-card { padding: 24px; margin-bottom: 24px; }
.chart-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; display: flex; justify-content: space-between; }
.chart-wrapper { position: relative; height: 250px; }
.chart-wrapper canvas { width: 100% !important; height: 100% !important; }

footer { border-radius: 38px 38px 0 0; padding: 40px 28px 28px; margin-top: 40px; background: var(--glass-bg); border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 18px; margin-bottom: 24px; }
.footer-item { padding: 18px; border-radius: 20px; }
.footer-item h4 { font-size: 15px; margin-bottom: 8px; color: var(--accent); }
.footer-item p, .footer-item a { font-size: 14px; color: var(--text); text-decoration: none; }
.copy { text-align: center; color: var(--text-dim); font-size: 13px; }

@media (max-width: 720px) {
  .wrap { padding: 0 14px; }
   
  .topbar {
    justify-content: flex-start;
    gap: 8px;
    padding: 9px 10px;
    margin: 8px 8px 18px;
    border-radius: 22px;
  }
  .nav-tab {
    flex: 0 0 auto;
    padding: 9px 14px;
    font-size: 13.5px;
    text-align: center;
    border-radius: 16px;
    white-space: nowrap;
  }
  .theme-switch { padding: 8px 13px; font-size: 13px; border-radius: 16px; }
  .theme-switch-icon { width: 38px; height: 38px; border-radius: 12px; padding: 0; }
  .theme-switch-icon svg { width: 18px; height: 13px; }
  header.hero { border-radius: 28px; padding: 36px 18px 28px; }
  .chart-wrapper { height: 200px; }
}

 
#bg-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  transition: opacity 0.6s ease;
  pointer-events: none;
}
#bg-loader.hidden { opacity: 0; pointer-events: none; }
#bg-loader .loader-logo {
  width: 84px; height: 84px; border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(95, 214, 143, 0.55);
  background: rgba(255,255,255,0.08);
}
#bg-loader .loader-text {
  font-size: 18px;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
#bg-loader .loader-steps {
  display: flex; flex-direction: column; gap: 7px;
  margin-bottom: 18px; min-height: 22px;    
}
 
#bg-loader .ls-item {
  display: none;
  align-items: center; gap: 8px;
  font-size: 14px; color: #fff;
  animation: lsIn .28s ease both;    
}
#bg-loader .ls-item.cur { display: flex; }
#bg-loader .ls-item i {
  flex: 0 0 14px; width: 14px; height: 14px; box-sizing: border-box;
  border: 2px solid #2196F3; border-top-color: transparent; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  animation: lsSpin .7s linear infinite;
}
@keyframes lsSpin { to { transform: rotate(360deg); } }
@keyframes lsIn {
  0%   { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

#bg-loader .progress-bar-bg {
  width: 260px;
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
}
#bg-loader .progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #2196F3;
  border-radius: 4px;
  transition: width 0.3s ease;
}

 
#intro-splash {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--body-bg);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;                     
  visibility: hidden;             
  transition: opacity 2s ease;
}
#intro-splash.visible { visibility: visible; opacity: 1; }    
#intro-splash.fading { opacity: 0; }                          
#intro-splash.gone { display: none; }                         
#intro-splash img {
  max-width: min(70vw, 460px);
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
}
#intro-particles { position: absolute; inset: 0; width: 100%; height: 100%; }
 
#intro-splash.fading { transition: opacity 0.8s ease; opacity: 0; }
#intro-splash.gone { display: none; }

 
#float-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  display: block;
}

 
.sec-title { justify-content: space-between; }


 
.visitor-card { margin-bottom: 24px; }
.visitor-card .v-line { font-size: 15px; line-height: 2.1; }
.visitor-card .v-label { color: var(--text-dim); }

 
.eclock {
  background: linear-gradient(160deg, rgba(0,0,0,.42), rgba(0,0,0,.26));
  border: 1px solid rgba(95,214,143,.28);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: inset 0 0 22px rgba(95,214,143,.10);
}
.eclock-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.eclock-date {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dim);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .5px;
  flex: 0 0 auto;
  text-align: left;
}
.eclock-time {
  font-family: "DIN Alternate", "DS-Digital", ui-monospace, Menlo, Consolas, monospace;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  color: #7ee2a8;
  letter-spacing: 2px;
  text-shadow: 0 0 14px rgba(126,226,168,.45);
  font-variant-numeric: tabular-nums;
  flex: 1 1 auto;
  text-align: right;
}
 
.eclock-eve { margin-bottom: 0; border-color: rgba(255,159,67,.32); box-shadow: inset 0 0 22px rgba(255,159,67,.10); }
.eclock-eve .eclock-date { color: #ffb86b; font-weight: 600; }
.eclock-eve-time { color: #ff9f43; text-shadow: 0 0 14px rgba(255,159,67,.4); }
.eclock-ny { border-color: rgba(178,140,255,.34); box-shadow: inset 0 0 22px rgba(178,140,255,.10); }
.eclock-ny .eclock-date { color: #c9a8ff; font-weight: 600; }
.eclock-ny-time { color: #b98cff; text-shadow: 0 0 14px rgba(178,140,255,.42); }
.eclock-ny .eve-days { color: #d0b3ff; text-shadow: 0 0 12px rgba(178,140,255,.38); }
.ny-target { display: inline-block; margin-top: 2px; font-size: 11px; letter-spacing: 1px;
             opacity: .72; font-weight: 400; }
.eve-stack { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column;
             align-items: flex-end; gap: 2px; }
.eve-stack .eclock-time { flex: 0 0 auto; letter-spacing: 1px; min-height: 1.1em; }
.eve-days {
  font-family: "DIN Alternate", "DS-Digital", ui-monospace, Menlo, Consolas, monospace;
  font-size: 24px; font-weight: 700; line-height: 1.1; color: #ffb86b;
  text-shadow: 0 0 12px rgba(255,159,67,.35); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .eclock { padding: 13px 14px; }
  .eclock-time { font-size: 30px; letter-spacing: 1px; }
  .eclock-date { font-size: 13px; }
  .eve-days { font-size: 19px; }
}

 


 
.intro-img {
display: block; width: 100%; margin-top: 16px;
border-radius: 18px; object-fit: cover; max-height: 320px;
box-shadow: 0 8px 26px rgba(0,0,0,.22);
}
 
#decoLayer {
  position: fixed; inset: 0;
  z-index: 0;                   
  overflow: hidden;
  pointer-events: none;
}
 
#decoBlur {
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  z-index: 0;
  opacity: 0;
  transition: opacity .35s ease;
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  -webkit-mask-image: radial-gradient(closest-side, rgba(0,0,0,1) 0%, rgba(0,0,0,.8) 40%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(closest-side, rgba(0,0,0,1) 0%, rgba(0,0,0,.8) 40%, rgba(0,0,0,0) 100%);
  will-change: transform;
}
#decoBlur.on { opacity: 1; }
#cursorDeco {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
 
#decoNoise {
  position: absolute; inset: 0; z-index: 2;
  opacity: .03;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGQ9Ik0wIDBoMzAwdjMwMEgweiIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIuMDUiLz48L3N2Zz4=');
}
 
body.anim-pause #decoBlur { opacity: 0 !important; }

 
#themeWipe {
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  z-index: 9997;                  
  pointer-events: none;
  transform: translateY(-100%);
  opacity: 0;
  background: linear-gradient(180deg, var(--wipe-c1, #5fd68f) 0%, var(--wipe-c2, #0f2027) 100%);
}
#themeWipe.run { animation: themeWipe .72s cubic-bezier(.45, 0, .2, 1) forwards; }
@keyframes themeWipe {
  0%   { transform: translateY(-100%); opacity: 1; }
  42%  { transform: translateY(0);     opacity: 1; }
  58%  { transform: translateY(0);     opacity: 1; }
  100% { transform: translateY(100%);  opacity: 1; }
}

 
.survey-banner {
  max-width: 1100px; margin: 10px auto 0; padding: 0 24px;
  display: flex; align-items: center; gap: 10px;
  position: relative; z-index: 1;
}
.survey-link {
  flex: 1 1 auto; min-width: 0;
  display: block; padding: 11px 14px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(95,214,143,.18), rgba(56,189,248,.18));
  border: 1px solid rgba(95,214,143,.42);
  color: var(--text); text-decoration: none;
  font-size: 13.5px; line-height: 1.5;
  transition: transform .18s ease, box-shadow .18s ease;
}
.survey-link:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.survey-link b { color: #5fd68f; }
.survey-close {
  flex: 0 0 auto;
  background: none; border: 0; cursor: pointer;
  color: var(--text); opacity: .55;
  font-size: 19px; line-height: 1; padding: 6px 8px;
  border-radius: 8px; transition: opacity .18s ease;
}
.survey-close:hover { opacity: 1; background: rgba(255,255,255,.08); }

 
.xbtn.is-busy {
  position: relative; color: transparent !important; pointer-events: none;
}
.xbtn.is-busy::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin .7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

 
.me-points-row { display: flex; gap: 14px; align-items: stretch; }
.me-points-col { flex: 1 1 0; min-width: 0; }
 
.me-points-row { display: flex; gap: 14px; align-items: stretch; }
.me-points-col { flex: 1 1 0; min-width: 0; }

 
.me-fold-title {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--glass-border, rgba(255,255,255,.18));
  font-size: 14px; font-weight: 600;
}
.me-fold-arrow {
  font-size: 12px; opacity: .7;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  display: inline-block;
}
.me-fold-title.open .me-fold-arrow { transform: rotate(180deg); }
 
.me-fold-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s cubic-bezier(.22,1,.36,1);
}
.me-fold-inner { overflow: hidden; min-height: 0; }
.me-fold-body.open { grid-template-rows: 1fr; }

 
.is-hidden { display: none !important; }
.theme-banner {
display: block; width: 100%;
aspect-ratio: 1080 / 360;
object-fit: cover;
border-radius: 18px;
box-shadow: 0 8px 26px rgba(0,0,0,.22);
}
 
.faq-item { border-bottom: 1px solid var(--glass-border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
display: flex; align-items: center; justify-content: space-between; gap: 12px;
padding: 14px 2px; cursor: pointer; font-size: 15px; font-weight: 600; user-select: none;
}
.faq-q:hover { color: var(--accent); }
.faq-arrow { font-style: normal; transition: transform .28s; color: var(--accent); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
max-height: 0; overflow: hidden; font-size: 14px; line-height: 1.9;
color: var(--text-dim); transition: max-height .32s ease, padding .28s; padding: 0 2px;
}
.faq-item.open .faq-a { max-height: 5000px; padding: 0 2px 16px; }
.faq-empty { font-size: 14px; color: var(--text-dim); padding: 8px 0; }
 
.link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .link-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } }
.link-item {
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
padding: 14px 6px; border-radius: 18px; text-decoration: none; color: var(--text);
border: 1px solid var(--glass-border); background: var(--glass-bg);
box-shadow: var(--glass-shadow); transition: transform .25s, box-shadow .25s;
}
.link-item:hover { transform: translateY(-3px); }
.link-icon { font-size: clamp(20px, 5vw, 26px); line-height: 1; }
.link-name { font-size: 12px; text-align: center; word-break: break-all; line-height: 1.3; }
 
.xlabel { display: block; font-size: 13px; color: var(--text-dim); margin: 12px 0 6px; }
.required { color: #ff8a80; }
.xinput {
width: 100%; padding: 11px 13px; border-radius: 14px; font-size: 15px; font-family: inherit;
border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.18); color: var(--text);
outline: none; transition: border .2s, background .2s;
}
.xinput:focus { border-color: var(--accent); background: rgba(0,0,0,.26); }
.xinput::placeholder { color: rgba(255,255,255,.55); }
textarea.xinput { min-height: 150px; resize: vertical; line-height: 1.7; }
.xbtn {
margin-top: 14px; width: 100%; padding: 12px 16px; border: none; border-radius: 14px; cursor: pointer;
font-size: 15px; font-weight: 600; color: #fff; background: var(--accent);
transition: background .25s, transform .2s; font-family: inherit;
}
.xbtn:hover { background: var(--accent-hover); }
.xbtn:active { transform: scale(.98); }
.xbtn:disabled { opacity: .5; cursor: not-allowed; }
.xbtn-sm { width: auto; margin-top: 0; padding: 11px 18px; flex: 0 0 auto; }
.xbtn-gray { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); }
 
.xbtn-oauth { background: linear-gradient(100deg,#2b6cb0,#4c51bf); border: 1px solid rgba(255,255,255,.28); }
.xbtn-oauth:hover { background: linear-gradient(100deg,#3182ce,#5a67d8); }
.xbtn-oauth.is-busy { pointer-events: none; }
.auth-sep { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px;
  color: var(--dim, rgba(255,255,255,.55)); font-size: 12px; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px;
  background: rgba(255,255,255,.16); }
.v-line .auth-tag { color: #9ecbff; }
#meAuthTip { margin-top: 10px; opacity: .8; }

.xmsg { margin-top: 12px; font-size: 14px; min-height: 20px; text-align: center; word-break: break-all; }
.xmsg.ok { color: #7ee2a8; } .xmsg.err { color: #ffb4b0; }
.hint { font-size: 12px; color: var(--text-dim); margin-top: 8px; line-height: 1.7; }
 
 
.xmodal {
position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center;
padding: 20px; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.xmodal.show { display: flex; animation: fadeIn .3s ease; }
.xmodal-box {
width: 100%; max-width: 420px; max-height: 86vh; overflow-y: auto; padding: 24px;
border-radius: 24px; color: #eaf6ef; background: rgba(16,26,21,.96);
border: 1px solid rgba(255,255,255,.18); box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.xmodal-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.xmodal-actions { display: flex; gap: 10px; margin-top: 14px; }
.xmodal-actions .xbtn { flex: 1; margin-top: 0; }
 
.xmodal-actions .xbtn#cfNo {
  background: rgba(255, 255, 255, .14);
  color: #eaf6ef;
  -webkit-text-fill-color: #eaf6ef;
}
.xmodal-body { font-size: 14.5px; line-height: 2; white-space: pre-wrap; word-break: break-word; margin-bottom: 6px; }
.xmodal-tabs { display: flex; gap: 10px; margin-bottom: 16px; }
.xmtab { flex: 1; text-align: center; padding: 9px 0; border-radius: 14px; cursor: pointer; font-size: 14px; background: rgba(255,255,255,.1); }
.xmtab.active { background: var(--accent); color: #fff; font-weight: 600; }
.xmodal-box .xinput { margin-bottom: 10px; }
 
.lock-tip { font-size: 14.5px; line-height: 2; color: var(--text-dim); text-align: center; padding: 10px 0; }
.fb-mine { margin-top: 22px; border-top: 1px solid var(--glass-border); padding-top: 16px; }
.fb-mine-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.fb-card { padding: 14px; border-radius: 16px; background: rgba(0,0,0,.14); border: 1px solid var(--glass-border); margin-bottom: 12px; }
.fb-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); }
.fb-type { padding: 2px 10px; border-radius: 10px; background: rgba(255,255,255,.14); color: var(--text); }
.fb-state { padding: 2px 10px; border-radius: 10px; font-weight: 600; }
.st-new { background: rgba(255,138,128,.2); color: #ffb4b0; }
.st-read { background: rgba(84,160,255,.2); color: #9ecbff; }
.st-ok { background: rgba(95,214,143,.22); color: #7ee2a8; }
.fb-time { margin-left: auto; }
.fb-content { margin-top: 8px; font-size: 14px; line-height: 1.9; word-break: break-word; }
.fb-reply { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.8; background: rgba(95,214,143,.12); border-left: 3px solid var(--accent); word-break: break-word; }
 
.me-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.me-avatar {
width: 56px; height: 56px; border-radius: 18px; flex: 0 0 auto; background: var(--accent); color: #fff;
display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700;
}
.me-basic { flex: 1 1 200px; min-width: 180px; }
.me-block { margin-top: 22px; border-top: 1px solid var(--glass-border); padding-top: 16px; }
.me-block-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.me-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.me-row .xinput { flex: 1 1 180px; width: auto; }
.me-points { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.me-points-num { font-size: 32px; font-weight: 700; color: var(--accent); }
.me-points-label { font-size: 13px; color: var(--text-dim); }
 
 
.nav-user {
  font-weight: 600; border-style: dashed; max-width: 150px;
  overflow: hidden; text-overflow: ellipsis; position: relative;
}
.nav-user.is-me {
  border-style: solid; background: rgba(95,214,143,.18); border-color: rgba(95,214,143,.5);
}
.nav-user.is-me::before { content: "👤 "; }
.nav-tab { flex: 0 0 auto; white-space: nowrap; }
.theme-switch { flex: 0 0 auto; }
@media (max-width: 720px) {
.me-row .xbtn-sm { width: 100%; }
}

 


 
.xmodal { opacity: 0; transition: opacity .28s ease; }
.xmodal.show { opacity: 1; }
.xmodal-box { transform: translateY(24px) scale(.94); opacity: 0; transition: transform .34s cubic-bezier(.22,1,.36,1), opacity .28s ease; }
.xmodal.show .xmodal-box { transform: translateY(0) scale(1); opacity: 1; }
.xmodal.closing { opacity: 0; }
.xmodal.closing .xmodal-box { transform: translateY(12px) scale(.96); opacity: 0; }
 
#paneLogin, #paneReg { animation: paneIn .3s cubic-bezier(.22,1,.36,1); }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
 
.xbtn { position: relative; overflow: hidden; }
.xbtn.loading { color: transparent !important; pointer-events: none; }
.spinner {
position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%;
animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
 
.xbtn.loading::after {
content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 40%;
background: rgba(255,255,255,.9); border-radius: 0 3px 3px 0; animation: slide 1.1s ease-in-out infinite;
}
@keyframes slide { 0% { left: -40%; } 100% { left: 100%; } }
 
.xmsg.success {
display: flex; align-items: center; justify-content: center; gap: 8px;
padding: 10px 14px; border-radius: 14px; background: rgba(95,214,143,.18);
border: 1px solid rgba(95,214,143,.45); color: #7ee2a8; font-weight: 600;
animation: popIn .38s cubic-bezier(.22,1,.36,1);
}
.xmsg.success .ok-icon {
width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto; background: #5fd68f; color: #0d1f17;
font-size: 13px; line-height: 20px; font-weight: 700; animation: popIcon .45s cubic-bezier(.22,1,.36,1);
}
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes popIcon { 0% { transform: scale(0); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
 
.xtoast {
position: fixed; left: 50%; top: 22px; z-index: 999; transform: translate(-50%, -140%);
padding: 12px 20px; border-radius: 20px; color: #fff; font-size: 14.5px; font-weight: 600;
background: rgba(47,122,74,.96); box-shadow: 0 10px 30px rgba(0,0,0,.35);
backdrop-filter: blur(8px); display: flex; align-items: center; gap: 8px;
opacity: 0; transition: transform .48s cubic-bezier(.22,1,.36,1), opacity .35s ease; pointer-events: none;
max-width: 88vw; text-align: center;
}
.xtoast.show { transform: translate(-50%, 0); opacity: 1; }
.xtoast.err { background: rgba(178,58,52,.96); }

 
.link-item-text { min-height: 62px; padding: 16px 10px; }
.link-item-text .link-name { font-size: clamp(13px, 3.4vw, 15px); font-weight: 600; }
.link-icon { display: none !important; }

 
.api-status {
  margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
.api-status-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 8px;
}
.api-status-btn {
  cursor: pointer; font-size: 12px; font-weight: 500; color: var(--accent);
  padding: 3px 9px; border-radius: 8px; border: 1px solid var(--glass-border);
  user-select: none; transition: background .2s;
}
.api-status-btn:hover { background: rgba(95,214,143,.12); }
.api-status-btn:active { opacity: .7; }
.api-status-list { list-style: none; margin: 0; padding: 0; }
.api-status-list li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; font-size: 12.5px; color: var(--text-dim);
  border-top: 1px dashed var(--glass-border);
}
.api-status-list li:first-child { border-top: none; }
.api-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto;
  background: #888; box-shadow: 0 0 0 3px rgba(136,136,136,.18);
  transition: background .3s, box-shadow .3s;
}
.api-dot.ok    { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.22); animation: dotPulse 2s ease-in-out infinite; }
.api-dot.bad   { background: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.22); }
.api-dot.test  { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.22); animation: dotBlink .9s linear infinite; }
@keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes dotBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.api-name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.api-tag  { flex: 0 0 auto; font-size: 11px; padding: 1px 7px; border-radius: 6px; background: rgba(255,255,255,.08); }
.api-ms   { flex: 0 0 auto; font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.api-loading { justify-content: center; color: var(--text-dim); font-size: 12.5px; }
.api-summary { margin-top: 8px; font-size: 12px; color: var(--text-dim); text-align: center; }
 
.side-mask {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,.5);
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.side-mask.show { opacity: 1; pointer-events: auto; }
.sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 401;
  width: min(86vw, 340px);
   
  background: rgba(22, 34, 28, .42);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-left: 1px solid rgba(255, 255, 255, .18);
  box-shadow: -8px 0 32px rgba(0, 0, 0, .34);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22,.8,.28,1);
  display: flex; flex-direction: column;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
 
[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, .38);
  border-left-color: rgba(255, 255, 255, .5);
}
 
.sidebar::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.02));
}
.sidebar.show { transform: translateX(0); }
.side-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 700; margin-bottom: 16px;
}
.side-close { cursor: pointer; padding: 4px 8px; color: var(--text-dim); font-size: 16px; }
.side-close:active { color: var(--text); }
.side-sec { margin-bottom: 18px; }
.side-sec-t { font-size: 12px; color: var(--text-dim); margin-bottom: 9px; letter-spacing: .5px; }
.mode-row { display: flex; gap: 8px; }
.mode-opt {
  flex: 1; text-align: center; padding: 11px 6px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  font-size: 13.5px; transition: background .2s, border-color .2s, transform .12s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.mode-opt:active { transform: scale(.96); }
.mode-opt.on { background: rgba(95,214,143,.32); border-color: rgba(95,214,143,.7); color: #b9f5d0; font-weight: 600; }
.theme-list { display: flex; flex-direction: column; gap: 9px; }
.theme-item {
  padding: 12px 13px; border-radius: 13px; cursor: pointer; text-align: left;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  transition: background .2s, border-color .2s, transform .12s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.theme-item:active { transform: scale(.98); }
.theme-item.on { background: rgba(95,214,143,.30); border-color: rgba(95,214,143,.7); }
.theme-item .ti-n { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.theme-item .ti-d { color: rgba(255,255,255,.75); }
.side-head { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.side-sec-t { color: rgba(255,255,255,.7); }
.side-foot { color: rgba(255,255,255,.7); }
.side-close { color: rgba(255,255,255,.8); }
.theme-item .ti-n { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.theme-item .ti-d { font-size: 11.5px; color: var(--text-dim); line-height: 1.5; }
.theme-swatch { display: flex; gap: 4px; margin-top: 8px; }
.theme-swatch i { width: 22px; height: 10px; border-radius: 3px; display: block; }
 
.theme-item { position: relative; }
 
.theme-item.locked { opacity: .62; }
.theme-item.locked .ti-n::after { content: " 🔒"; font-size: 12px; }
 
.ti-price {
  position: absolute; right: 10px; bottom: 8px;
  font-size: 11.5px; font-weight: 600;
  color: var(--accent); line-height: 1.4;
}
 
.theme-item.off-shelf .ti-n::after { content: " · 已下架"; font-size: 11px; opacity: .75; }
.ti-off { margin-top: 3px; font-size: 11px; color: var(--text-dim); opacity: .8; line-height: 1.5; }
.side-foot { margin-top: auto; padding-top: 14px; font-size: 11px; color: var(--text-dim); line-height: 1.6; }

 
.find-admin {
  padding: 14px; border-radius: 13px;
  background: rgba(95,214,143,.10); border: 1px dashed rgba(95,214,143,.4);
}
.find-admin .fa-t { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: #7ee2a8; }
.find-admin .fa-d { font-size: 12.5px; color: var(--text-dim); line-height: 1.7; }
.find-admin .fa-ways { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.find-admin .fa-way {
  font-size: 12.5px; padding: 8px 10px; border-radius: 9px;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-border);
}
.find-opt {
  display: block; width: 100%; text-align: left; margin-bottom: 10px;
  padding: 13px 14px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-border);
  color: var(--text); font-family: inherit; transition: background .2s, border-color .2s;
}
.find-opt:active { background: rgba(95,214,143,.14); border-color: rgba(95,214,143,.45); }
 
.find-opt { animation: none; }
.find-opt.fo-pick {
  animation: foPick .16s ease forwards;
}
@keyframes foPick {
  0%   { transform: scale(1); }
  60%  { transform: scale(.965); background: rgba(95,214,143,.22); }
  100% { transform: scale(1); }
}
.fo-in { animation: foIn .3s cubic-bezier(.22,.8,.28,1) both; }
@keyframes foIn {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.find-opt .fo-t { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.find-opt .fo-d { display: block; font-size: 11.5px; color: var(--text-dim); line-height: 1.5; }
.find-back {
  font-size: 12.5px; color: var(--text-dim); margin-bottom: 10px; cursor: pointer;
  display: inline-block; padding: 4px 0;
}
.find-back:active { color: #7ee2a8; }
.find-sec .xbtn-sm { width: 100%; margin-bottom: 8px; }


.api-summary.ok  { color: #4ade80; }
.api-summary.bad { color: #f87171; }


 

html.solid-on body::before,
html.solid-on body::after {
  display: none !important; opacity: 0 !important; background: none !important;
}
 

html.solid-on .xbtn:not(.xbtn-oauth) {
  color: var(--solid-btn-text) !important;
  -webkit-text-fill-color: var(--solid-btn-text) !important;
  background: var(--solid-btn-bg) !important;
  border: 1px solid var(--solid-btn-border) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.16);
}
html.solid-on .xbtn:not(.xbtn-oauth):hover { background: var(--solid-btn-hover) !important; }
 
html.solid-on .xmodal-actions .xbtn#cfNo,
html.solid-on .xbtn.xbtn-gray {
  background: transparent !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: none;
}
html.solid-on .nav-tab.active, html.solid-on .nav-tab:hover,
html.solid-on .time-tab.active, html.solid-on .xmtab.active,
html.solid-on .mode-opt.active {
  background: var(--solid-btn-bg) !important;
  color: var(--solid-btn-text) !important;
  border-color: var(--solid-btn-border) !important;
}
 
html.solid-on .topbar {
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
#colorList { display: flex; flex-wrap: wrap; gap: 10px 12px; padding: 4px 2px 2px; }
.color-cell { width: 44px; text-align: center; cursor: pointer; }
.color-cell .color-dot { margin: 0 auto; }
.color-dot {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255,255,255,.55); box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: transform .2s, box-shadow .2s; position: relative;
}
.color-dot:hover { transform: scale(1.12); }
.color-dot.on { box-shadow: 0 0 0 3px var(--text), 0 2px 10px rgba(0,0,0,.25); transform: scale(1.06); }
.color-name { font-size: 11px; opacity: .8; margin-top: 6px; }

 
.showcase { margin-top: 16px; display: grid; gap: 12px; }
.showcase.is-hidden { display: none; }
.marquee {
  overflow: hidden; border-radius: 18px; position: relative;
  cursor: grab;
   
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.marquee.dragging { cursor: grabbing; }
 


.marquee::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.22), transparent 7%, transparent 93%, rgba(0,0,0,.22));
}
.marquee-track {
  display: flex; width: max-content; will-change: transform;
  transform: translate3d(0,0,0); animation: none !important;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.marquee-track img {
  display: block; width: 200px; height: 124px; object-fit: cover;
  border-radius: 14px; margin-right: 12px; flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(0,0,0,.14);
  -webkit-user-drag: none; user-drag: none;
   
  pointer-events: auto; cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-reduced-motion: reduce) { .marquee-track { will-change: auto; } }

 
.img-preview {
  position: fixed; inset: 0; z-index: 10020;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(6,10,9,.90);
  touch-action: none;    
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: ipFade .18s ease;
}
@keyframes ipFade { from { opacity: 0 } to { opacity: 1 } }
.img-preview > img {
  max-width: 92vw; max-height: 78vh; object-fit: contain;
  border-radius: 12px; box-shadow: 0 18px 60px rgba(0,0,0,.6);
  user-select: none; -webkit-user-select: none;
}
.ip-close {
  position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.12);
  color: #fff; font-size: 28px; line-height: 1;
}
.ip-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 64px; cursor: pointer; border: none;
  border-radius: 14px; background: rgba(255,255,255,.12);
  color: #fff; font-size: 34px; line-height: 1;
}
.ip-nav:hover, .ip-close:hover { background: rgba(255,255,255,.24); }
.ip-prev { left: 10px; } .ip-next { right: 10px; }
.ip-count {
  position: absolute; bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.9); font-size: 13px; letter-spacing: .5px;
  background: rgba(0,0,0,.4); padding: 6px 14px; border-radius: 20px;
}
.ip-tip {
  position: absolute; bottom: max(58px, calc(env(safe-area-inset-bottom) + 36px));
  left: 50%; transform: translateX(-50%); color: #ffd0c8; font-size: 12px;
}
@media (max-width: 480px) {
  .ip-nav { width: 38px; height: 56px; font-size: 28px; }
  .ip-prev { left: 4px; } .ip-next { right: 4px; }
}

 
@media (hover: none), (pointer: coarse) {
  .liquid-glass:hover, .link-item:hover { transform: none !important; }
}
html.is-scrolling .liquid-glass { transition: none !important; }


 
.flip-clock { display: inline-flex; align-items: center; justify-content: flex-end; gap: 1px; letter-spacing: 0; }
.flip-cell { position: relative; display: inline-block; width: .62em; height: 1.16em;
             overflow: hidden; vertical-align: top; text-align: center; }
.flip-num { position: absolute; inset: 0; display: flex; align-items: center;
            justify-content: center; will-change: transform; }
.flip-in  { animation: flipIn .42s cubic-bezier(.22,.9,.28,1) both; }
.flip-out { animation: flipOut .42s cubic-bezier(.22,.9,.28,1) both; }
@keyframes flipIn  { from { transform: translateY(100%); opacity: .15 } to { transform: translateY(0); opacity: 1 } }
@keyframes flipOut { from { transform: translateY(0); opacity: 1 } to { transform: translateY(-100%); opacity: 0 } }
.flip-sep { display: inline-block; min-width: .34em; text-align: center; opacity: .78; }
@media (prefers-reduced-motion: reduce) {
  .flip-in, .flip-out { animation-duration: .01s; }
}

 
.scroll-ring {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90; width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(8px) scale(.9); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.scroll-ring.show { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
.scroll-ring.show:hover { transform: translateY(-2px) scale(1.06); }
.scroll-ring.show:active { transform: scale(.94); }
.scroll-ring:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.scroll-ring svg { position: absolute; inset: 3px; width: 44px; height: 44px; transform: rotate(-90deg); }
.scroll-ring circle { fill: none; stroke-width: 3.5; }
.scroll-ring .sr-bg { stroke: rgba(127,127,127,.28); }
.scroll-ring .sr-bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .12s linear; }
.scroll-ring .sr-pct { position: relative; font-size: 11px; font-weight: 700;
  color: var(--text); font-variant-numeric: tabular-nums; }
input[type="date"].xinput { color-scheme: light dark; }

.rt-card { padding: 18px; margin-bottom: 22px; }
.rt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rt-title { font-size: 16px; font-weight: 700; }
.rt-range { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px;
           border-radius: 12px; background: rgba(127,127,127,.14); }
.rt-range button { border: 0; background: transparent; cursor: pointer;
                   font-size: 10.5px; padding: 4px 8px; border-radius: 9px;
                   color: var(--text-dim); transition: .2s; white-space: nowrap; }
.rt-range button.active { background: var(--accent); color: #fff; }
.rt-state { font-size: 12px; padding: 4px 10px; border-radius: 12px;
            background: var(--glass-bg); border: 1px solid var(--glass-border);
            display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rt-state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #9aa4ae; }
.rt-state.ok::before { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.20); }
.rt-state.bad::before { background: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.20); }
.rt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; }
.rt-item { padding: 12px 13px; border-radius: 14px;
           background: var(--glass-bg); border: 1px solid var(--glass-border); min-width: 0; }
.rt-label { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; white-space: nowrap; }
.rt-value { font-family: "DIN Alternate", ui-monospace, Menlo, Consolas, monospace;
            font-size: 20px; font-weight: 700; line-height: 1.2;
            font-variant-numeric: tabular-nums; word-break: break-all; }
.rt-bar { height: 4px; border-radius: 4px; margin-top: 8px; overflow: hidden;
          background: rgba(127,127,127,.24); }
.rt-bar i { display: block; height: 100%; width: 0%; border-radius: 4px;
            background: var(--accent); transition: width .45s ease, background .3s ease; }
.rt-bar i.warm { background: #f5a524; }
.rt-bar i.hot { background: #f87171; }
.rt-err { margin-top: 12px; padding: 10px 12px; border-radius: 10px;
          font-size: 12px; line-height: 1.65; color: #ffb4b4;
          background: rgba(248,113,113,.10); border: 1px solid rgba(248,113,113,.28); }
.rt-beat { margin-top: 12px; font-size: 11.5px; line-height: 1.6;
           color: var(--text-dim); font-variant-numeric: tabular-nums;
           word-break: break-all; }
.rt-beat.stale { color: #f5a524; }
.rt-detail { margin-top: 12px; padding-top: 12px;
             border-top: 1px solid rgba(127,127,127,.22); }
.rt-detail-title { font-size: 11px; color: var(--text-dim); margin-bottom: 8px;
                   letter-spacing: .05em; }
.rt-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 16px; }
.rt-detail-item { display: flex; justify-content: space-between; gap: 10px;
                  font-size: 11.5px; line-height: 1.65; min-width: 0; }
.rt-detail-item span { color: var(--text-dim); white-space: nowrap; }
.rt-detail-item b { font-weight: 600; text-align: right; word-break: break-all; }
@media (max-width: 480px) {
  .rt-card { padding: 14px; }
  .rt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rt-value { font-size: 17px; }
}
