style.css raw

   1  :root {
   2    --bg: #fff;
   3    --bg2: #eaeaea;
   4    --fg: #111;
   5    --accent: #7b3fe4;
   6    --muted: #666;
   7    --border: #bbb;
   8  }
   9  .dark {
  10    --bg: #000;
  11    --bg2: #111;
  12    --fg: #e0e0e0;
  13    --accent: #f59e0b;
  14    --muted: #666;
  15    --border: #333;
  16  }
  17  * { margin: 0; padding: 0; box-sizing: border-box; }
  18  html { background: var(--bg); }
  19  body {
  20    font-family: 'Fira Code', monospace, 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Twemoji Mozilla', emoji;
  21    background: var(--bg);
  22    color: var(--fg);
  23    overflow: hidden;
  24  }
  25  a { color: var(--accent); text-decoration: none; }
  26  p:last-child { margin-bottom: 0 !important; }
  27  pre {
  28    white-space: pre-wrap;
  29    word-break: break-word;
  30    overflow-wrap: break-word;
  31    padding-left: 2ch;
  32    text-indent: -2ch;
  33  }
  34  a:hover { text-decoration: underline; }
  35  img { max-width: 100%; max-height: 80vh; object-fit: contain; }
  36  
  37  /* Scrollbar — force classic (non-overlay) style */
  38  ::-webkit-scrollbar { width: 18px; }
  39  ::-webkit-scrollbar-track { background: var(--bg); }
  40  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 9px; border: 3px solid var(--bg); }
  41  ::-webkit-scrollbar-thumb:hover { background: var(--muted); }
  42  * { scrollbar-width: auto; scrollbar-color: var(--border) var(--bg); scrollbar-gutter: stable; }
  43  
  44  /* Signer popover panel */
  45  .signer-input {
  46    width: 100%; padding: 8px 12px;
  47    background: var(--bg2); color: var(--fg);
  48    border: 1px solid var(--border); border-radius: 4px;
  49    font-family: inherit; font-size: 13px;
  50    margin-bottom: 8px;
  51  }
  52  .signer-btn {
  53    width: 100%; padding: 8px;
  54    background: var(--accent); color: #fff;
  55    border: none; border-radius: 4px;
  56    font-family: inherit; font-size: 13px;
  57    cursor: pointer;
  58    margin-top: 4px;
  59  }
  60  .signer-btn:hover { opacity: 0.9; }
  61  .signer-btn-secondary {
  62    background: transparent; color: var(--muted);
  63    border: 1px solid var(--border);
  64    margin-top: 16px;
  65  }
  66  .signer-btn-sm {
  67    padding: 4px 12px;
  68    background: var(--bg2); color: var(--fg);
  69    border: 1px solid var(--border); border-radius: 4px;
  70    font-family: inherit; font-size: 12px;
  71    cursor: pointer;
  72  }
  73  .signer-identity {
  74    display: flex; align-items: center; justify-content: space-between;
  75    padding: 8px 0;
  76    border-bottom: 1px solid var(--border);
  77    font-size: 13px;
  78  }
  79  .signer-identity > span:last-child { display: flex; gap: 4px; }
  80  .signer-add {
  81    display: flex; gap: 8px;
  82    margin-top: 16px;
  83  }
  84  .signer-add .signer-input { margin-bottom: 0; flex: 1; }
  85  .signer-add .signer-btn { width: auto; margin-top: 0; }
  86  .signer-sep { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
  87  .signer-msg { color: var(--accent); }
  88  .signer-textarea {
  89    resize: vertical; min-height: 60px;
  90    font-family: monospace;
  91  }
  92  .signer-warn {
  93    color: var(--accent); font-weight: bold; font-size: 12px;
  94    padding: 8px; background: rgba(255,100,50,0.1);
  95    border-radius: 4px; border: 1px solid var(--accent);
  96  }
  97  .signer-mnemonic {
  98    display: grid; grid-template-columns: 1fr 1fr 1fr;
  99    gap: 6px; margin: 12px 0;
 100  }
 101  .signer-word {
 102    background: var(--bg2); padding: 6px 8px;
 103    border-radius: 4px; font-size: 13px;
 104    font-family: monospace;
 105  }
 106  .signer-actions {
 107    display: flex; flex-wrap: wrap; gap: 8px;
 108    margin-top: 16px;
 109  }
 110  .signer-actions .signer-btn-secondary {
 111    flex: 1; margin-top: 0;
 112  }
 113  .signer-btn-danger {
 114    background: transparent; color: var(--accent);
 115    border: 1px solid var(--accent);
 116  }
 117  
 118  /* Donation confetti — one-shot, 17 pieces, pure CSS. */
 119  .confetti {
 120    position: fixed;
 121    inset: 0;
 122    overflow: hidden;
 123    pointer-events: none;
 124    z-index: 10000;
 125    display: none;
 126  }
 127  .confetti.run { display: block; }
 128  .confetti i {
 129    position: absolute;
 130    top: -10px;
 131    width: 10px; height: 14px;
 132    opacity: 0;
 133    transform-origin: center;
 134  }
 135  .confetti.run i {
 136    animation: confetti-fall 1800ms cubic-bezier(.2,.6,.3,1) forwards;
 137    animation-iteration-count: 1;
 138  }
 139  @keyframes confetti-fall {
 140    0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
 141    10%  { opacity: 1; }
 142    100% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 1; }
 143  }
 144  .confetti i:nth-child(1)  { left: 8%;  background: #ff4d6d; --dx: 20px;   --dy: 98vh; --r: 540deg; animation-delay: 0ms;   clip-path: polygon(50% 0,100% 100%,0 100%); }
 145  .confetti i:nth-child(2)  { left: 15%; background: #ffd166; --dx: -30px;  --dy: 102vh; --r: -420deg; animation-delay: 40ms;  clip-path: polygon(0 0,100% 0,100% 100%,0 100%); }
 146  .confetti i:nth-child(3)  { left: 22%; background: #06d6a0; --dx: 10px;   --dy: 100vh; --r: 720deg; animation-delay: 120ms; clip-path: circle(50%); }
 147  .confetti i:nth-child(4)  { left: 30%; background: #118ab2; --dx: -12px;  --dy: 104vh; --r: -300deg; animation-delay: 80ms;  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
 148  .confetti i:nth-child(5)  { left: 37%; background: #ef476f; --dx: 36px;   --dy: 99vh; --r: 480deg; animation-delay: 180ms; }
 149  .confetti i:nth-child(6)  { left: 44%; background: #ffd166; --dx: -20px;  --dy: 106vh; --r: 600deg; animation-delay: 60ms;  clip-path: polygon(50% 0,100% 100%,0 100%); }
 150  .confetti i:nth-child(7)  { left: 50%; background: #9b5de5; --dx: 8px;    --dy: 101vh; --r: -540deg; animation-delay: 220ms; clip-path: circle(50%); }
 151  .confetti i:nth-child(8)  { left: 56%; background: #06d6a0; --dx: -28px;  --dy: 103vh; --r: 360deg; animation-delay: 100ms; clip-path: polygon(0 0,100% 0,100% 100%,0 100%); }
 152  .confetti i:nth-child(9)  { left: 62%; background: #f15bb5; --dx: 16px;   --dy: 97vh; --r: 420deg; animation-delay: 160ms; clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
 153  .confetti i:nth-child(10) { left: 68%; background: #118ab2; --dx: -8px;   --dy: 105vh; --r: -660deg; animation-delay: 40ms;  }
 154  .confetti i:nth-child(11) { left: 73%; background: #ffd166; --dx: 24px;   --dy: 96vh; --r: 480deg; animation-delay: 200ms; clip-path: polygon(50% 0,100% 100%,0 100%); }
 155  .confetti i:nth-child(12) { left: 78%; background: #ff4d6d; --dx: -18px;  --dy: 100vh; --r: -420deg; animation-delay: 140ms; clip-path: circle(50%); }
 156  .confetti i:nth-child(13) { left: 83%; background: #06d6a0; --dx: 12px;   --dy: 104vh; --r: 600deg; animation-delay: 80ms;  }
 157  .confetti i:nth-child(14) { left: 88%; background: #9b5de5; --dx: -30px;  --dy: 99vh; --r: -300deg; animation-delay: 260ms; clip-path: polygon(0 0,100% 0,100% 100%,0 100%); }
 158  .confetti i:nth-child(15) { left: 5%;  background: #118ab2; --dx: 18px;   --dy: 102vh; --r: 540deg; animation-delay: 300ms; clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
 159  .confetti i:nth-child(16) { left: 92%; background: #ef476f; --dx: -10px;  --dy: 106vh; --r: -480deg; animation-delay: 220ms; clip-path: polygon(50% 0,100% 100%,0 100%); }
 160  .confetti i:nth-child(17) { left: 48%; background: #ffd166; --dx: 32px;   --dy: 95vh; --r: 720deg; animation-delay: 340ms; clip-path: circle(50%); }
 161