:root{
  --sidebar-width: 300px;
  --sidebar-bg: rgba(17,24,39,0.9);
  --text:#f8fafc;
  --muted:#cbd5e1;
  --accent:#38bdf8;
}

*{box-sizing:border-box}
@font-face {
  font-family: 'slkscrb';
  src: url('./fonts/slkscr.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Helvetica';
  src: url('./fonts/Helvetica.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'RobotoMono-Regular';
  src: url('./fonts/RobotoMono-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


* {
  font-family: 'slkscrb', monospace;
}

html,body{ margin:0; min-height:100%; width:100%; background:#ffffff; overflow-y:auto; font-family:'slkscrb', monospace; cursor: auto; }

#stage{ position:fixed; inset:0; width:100vw; height:100vh; display:block; background:#2D8354; touch-action: none; z-index: 1; }

/* Sidebar */
.sidebar{ position:fixed; top:0; left:0; height:100vh; width:var(--sidebar-width); background:#ffffff; color:#111; transform: translateX(-100%); transition: transform .35s ease; box-shadow: 6px 0 24px rgba(0,0,0,.15); overflow-y:auto; border-right:2px solid #e5e7eb; z-index: 100; pointer-events: auto; }
.sidebar.open{ transform: translateX(0); }
.sidebar[inert]{ pointer-events: none; }
.sidebar-inner{ position:relative; padding:16px 16px 140px; display:flex; flex-direction:column; gap: 25px; }
.control{ display:flex; flex-direction:column; gap:8px; color:#111; pointer-events: auto; }
.control input[type=range]{ 
  width:100%; 
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: #9f9f9f;
  outline: none;
  border-radius: 0;
}

.control input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 20px;
  background: #111;
  cursor: pointer;
  border-radius: 0;
  border: 2px solid #111;
}

.control input[type=range]::-moz-range-thumb {
  width: 10px;
  height: 20px;
  background: #111;
  cursor: pointer;
  border-radius: 0;
  border: 2px solid #111;
}
.button.file{ display:inline-flex; align-items:center; justify-content:center; gap:8px; background:#ffffff; color:#111; border:2px solid #111; border-radius:0; padding:10px 12px; cursor:pointer; font-weight:700; box-shadow:4px 4px 0 #111; }
.control.center{ align-items:center; }
.top-upload{ margin-top:64px; }

/* Sidebar Toggle Container */
.sidebar-toggle{ 
  position: fixed; 
  top: 14px; 
  left: 14px; 
  z-index: 101; 
  width: 40px;
  height: 40px;
}

/* Static Logo - No Button Styling */
.toggle-logo {
  width: 40px;
  height: 40px;
  display: block;
  cursor: default;
  /* Preserve original image appearance - no filters or effects */
  filter: none;
  box-shadow: none;
  border: none;
  background: none;
}

/* Menu Icon Button - Hidden by Default */
.menu-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  display: none;
  background: #ffffff;
  color: #111;
  border: 2px solid #111;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 4px 4px 0 #111;
  transition: transform .15s ease;
  font-family: 'slkscrb', monospace;
  font-size: 18px;
  line-height: 36px;
  text-align: center;
}

.menu-icon:hover {
  transform: translateY(-1px);
}

/* Hover Effect: Show Menu, Hide Logo */
.sidebar-toggle:hover .toggle-logo {
  display: none;
}

.sidebar-toggle:hover .menu-icon {
  display: block;
}

/* Sidebar Close Button - Inside Sidebar */
.sidebar-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: #ffffff;
  color: #111;
  border: 2px solid #111;
  border-radius: 0;
  padding: 6px 10px;
  cursor: pointer;
  box-shadow: 4px 4px 0 #111;
  transition: transform .15s ease;
  font-family: 'slkscrb', monospace;
  font-size: 16px;
}
.sidebar-close:hover { transform: translateY(-1px); }

.sidebar-logo {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  z-index: 1;
  cursor: default;
  pointer-events: none;
}

/* Sidebar Navigation */
.sidebar-nav {
  position: absolute;
  bottom: 24px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-button {
  display: block;
  color: #111;
  cursor: pointer;
  font-family: 'slkscrb', monospace;
  font-weight: 700;
  text-decoration: underline;
  font-size: 14px;
  transition: color .15s ease, text-decoration .15s ease;
}

.nav-button:hover {
  color: #555;
  text-decoration: none;
}

/* Home Logo Navigation */
.home-logo {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10;
  transition: opacity .15s ease, transform .15s ease;
}

.home-logo img {
  width: 40px;
  height: 40px;
  display: block;
}

.home-logo:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* about-container */
.about-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 24px 30px;
  font-family: 'slkscrb', sans-serif;
  color: #111;
  min-height: calc(100vh - 100px);
}

.about-container h1 {
  font-family: 'slkscrb', monospace;
  font-size: 32px;
  font-weight: bold;
  color: #111;
  text-align: left;
  margin-bottom: 20px;
}

.about-container h2 {
  font-family: 'slkscrb', monospace;
  font-size: 18px;
  font-weight: bold;
  color: #111;
  margin-top: 40px;
  margin-bottom: 20px;
}

.about-container p {
  font-family: 'RobotoMono-Regular';
  font-size: 12px;
  color: #111;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* General Page Content for other pages */
.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 24px 30px;
  font-family: 'slkscrb', monospace;
  color: #111;
}

.page-content h1 {
  font-family: 'slkscrb', monospace;
  font-size: 32px;
  font-weight: bold;
  color: #111;
  text-align: left;
  margin-bottom: 20px;
}

.page-content h2 {
  font-family: 'slkscrb', monospace;
  font-size: 18px;
  font-weight: bold;
  color: #111;
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-content h3 {
  font-family: 'slkscrb', monospace;
  font-size: 18px;
  font-weight: bold;
  color: #111;
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-content p {
  font-family:  'RobotoMono-Regular';
  font-size: 12px;
  color: #111;
  line-height: 1.6;
  margin-bottom: 16px;
}

.underline-link {
  font-family:  'RobotoMono-Regular';
  color: #111;        /* 链接颜色，可改为你喜欢的颜色 */
  text-decoration: underline; /* 下划线效果 */
  transition: color 0.2s ease;
}

.underline-link:hover {
  color: #2D8354;        /* 鼠标悬停时变色，可自行调整 */
}

/* Page Navigation */
.page-nav {
  position: fixed;
  bottom: 24px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.page-nav-button {
  display: block;
  color: #111;
  cursor: pointer;
  font-family: 'slkscrb', monospace;
  font-weight: 700;
  text-decoration: underline;
  font-size: 14px;
  transition: color .15s ease, text-decoration .15s ease;
}

.page-nav-button:hover {
  color: #555;
  text-decoration: none;
}

/* BTC Address QR Code Popup */
.btc-address-container {
  position: relative;
  display: inline-block;
}

.btc-address {
  font-family:  'RobotoMono-Regular';
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.qr-popup {
  display: none;
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 10px;
  z-index: 1001;
  background: white;
  padding: 10px;
  border: 2px solid #111;
  box-shadow: 4px 4px 0 #111;
  white-space: nowrap;
}

.qr-popup img {
  width: 100px;
  height: 100px;
  display: block;
}

.btc-address:hover + .qr-popup,
.qr-popup:hover {
  display: block;
}

/* USDT Address QR Code Popup */
.usdt-address-container {
  position: relative;
  display: inline-block;
}

.usdt-address {
  font-family:  'RobotoMono-Regular';
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.usdt-qr-popup {
  display: none;
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 10px;
  z-index: 1001;
  background: white;
  padding: 10px;
  border: 2px solid #111;
  box-shadow: 4px 4px 0 #111;
  white-space: nowrap;
}

.usdt-qr-popup img {
  width: 100px;
  height: 100px;
  display: block;
}

.usdt-address:hover + .usdt-qr-popup,
.usdt-qr-popup:hover {
  display: block;
}

/* Payment QR Codes */
.payment-qrcode {
  width: 100px;
  height: 100px;
  display: block;
  border: 2px solid #111;
  padding: 6px;
  background: #ffffff;
  margin-top: 6px;
}

/* Changelog Entry */
.changelog-entry {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.changelog-date {
  font-family: 'slkscrb', monospace;
  font-size: 12px;
  color: #111;
  font-weight: 700;
  min-width: 120px;
  flex-shrink: 0;
}

.changelog-description {
  font-family:  'RobotoMono-Regular';
  font-size: 12px;
  color: #111;
  line-height: 1;
  flex: 1;
}
.sidebar {
  letter-spacing: -1.5px; /* 增加字与字之间的间隔 */
}
/* Welcome text */
.welcome-text {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'slkscrb', monospace;
  font-size: clamp(18px, 5vw, 36px);
  color: #000000;
  z-index: 10;
  pointer-events: auto;
  text-align: center;
  display: block;
  white-space: nowrap;
  padding: 0 10px;
  max-width: 95vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Custom Name */
.custom-name {
  font-family: 'RobotoMono-Regular', monospace;
  font-size: clamp(14px, 3.6vw, 26px);
  text-decoration: underline;
  cursor: pointer;
  pointer-events: auto;
  display: inline-block;
  min-width: 20px;
  outline: none;
  transition: background .15s ease;
}

.custom-name:hover {
  background: rgba(45, 131, 84, 0.1);
}

.custom-name[contenteditable="true"] {
  background: rgba(45, 131, 84, 0.2);
  padding: 0 4px;
  cursor: text;
}

/* Top-right buttons */
.top-right-buttons{ position:fixed; top:14px; right:14px; display:flex; gap:10px; z-index:10; pointer-events: auto; }
.mini-button{ background:#ffffff; color:#111; border:2px solid #111; border-radius:0; padding:10px 14px; cursor:pointer; font-weight:700; box-shadow:4px 4px 0 #111; transition: transform .15s ease; font-family: 'slkscrb', monospace; }
.mini-button:hover{ transform: translateY(-1px); }

/* Cursor Dropdown */
.cursor-dropdown{ position: relative; }
.dropdown-menu{
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border: 2px solid #111;
  box-shadow: 4px 4px 0 #111;
  min-width: 180px;
  z-index: 100;
  pointer-events: auto;
}
.dropdown-menu.show{ display: block; }
.dropdown-item{
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  color: #111;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  font-family: 'slkscrb', monospace;
  font-weight: 700;
  text-align: left;
  transition: background .15s ease;
}
.dropdown-item:last-child{ border-bottom: none; }
.dropdown-item:hover{ background: #f3f4f6; }

/* Custom Cursor Editor Modal */
.modal{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.modal.show{ display: flex; }
.modal-content{
  background: #ffffff;
  border: 2px solid #111;
  box-shadow: 8px 8px 0 #111;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.modal-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 2px solid #111;
}
.modal-header h2{
  margin: 0;
  font-family: 'slkscrb', monospace;
  font-size: 20px;
  color: #111;
}
.modal-close{
  background: #ffffff;
  color: #111;
  border: 2px solid #111;
  border-radius: 0;
  padding: 6px 12px;
  cursor: pointer;
  font-family: 'slkscrb', monospace;
  font-size: 18px;
  box-shadow: 2px 2px 0 #111;
  transition: transform .15s ease;
}
.modal-close:hover{ transform: translateY(-1px); }
.modal-body{
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* Cursor Library */
.cursor-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
}
.cursor-item{
  width: 80px;
  height: 80px;
  border: 2px solid #111;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
  padding: 8px;
}
.cursor-item:hover{
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #111;
}
.cursor-item.selected{
  border-color: #2D8354;
  box-shadow: 4px 4px 0 #2D8354;
}
.cursor-item img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 768px){
  .sidebar-inner {
    padding-bottom: 160px;
  }
  
  .welcome-text {
    top: 60px;
  }
}

@media (max-width: 520px){
  :root{ --sidebar-width: 86vw; }
  
  .sidebar-inner {
    padding-bottom: 180px;
  }
  
  .sidebar-nav {
    bottom: 12px;
    left: 16px;
    right: 16px;
    gap: 6px;
  }
  
  .nav-button {
    font-size: 13px;
  }
  
  .welcome-text {
    top: 55px;
  }
}

:root{
  --bar-height:64px;
  --bar-bg:rgba(20,22,30,0.65);
  --accent:#111827;
  --text:#f8fafc;
  --muted:#cbd5e1;
  --button-bg:#0ea5e9;
  --button-bg-2:#10b981;
  --button-bg-3:#f59e0b;
}

*{box-sizing:border-box}
/* Duplicate html,body rule removed - using the one at line 36 with overflow-y:auto */

#stage{
  position:fixed; inset:0; width:100vw; height:100vh; display:block;
}

.controls-bar{
  position:fixed; left:0; right:0; bottom:0; height:var(--bar-height); padding:8px 12px; display:flex; gap:12px; align-items:center; justify-content:space-between; color:var(--text); background:var(--bar-bg); backdrop-filter: blur(8px); transform: translateY(100%); opacity:0; transition: opacity .35s ease, transform .35s ease; pointer-events:none;
}
.controls-bar.visible{ transform: translateY(0); opacity:1; pointer-events:auto; }

.sliders{ display:flex; gap:12px; align-items:center; }
.sliders label{ display:flex; align-items:center; gap:8px; color:var(--muted); font-size:14px; }
.sliders input[type=range]{ width:20vw; min-width:140px; }

.buttons{ display:flex; gap:10px; }
.button{ background:var(--button-bg); color:white; border:none; border-radius:999px; padding:10px 14px; cursor:pointer; font-weight:600; box-shadow:0 6px 20px rgba(0,0,0,.25); transition: transform .15s ease, background .2s ease; }
.button:hover{ transform: translateY(-1px); }
#cursorToggle.button{ background:var(--button-bg-2); }
#recordBtn.button.recording{ background:var(--button-bg-3); }

@media (max-width: 720px){
  .sliders input[type=range]{ width:22vw; min-width:110px; }
  :root{ --bar-height:84px; }
}


