/*
© 2026 SilentWall.org — All rights reserved.
Proprietary and confidential. Unauthorized use prohibited.
*/

:root {
  --app-height: 100dvh;
}
* {
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background-color: #0a0a0a;
  color: #d1d1d1;
  margin: 0;
  padding: 0;
  position: relative;   
  inset: auto;
  overflow: hidden;
  overscroll-behavior: none;
}
.wall-texture {
  background:
    radial-gradient(circle at 20% 30%, rgba(0,255,180,0.05), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,140,255,0.05), transparent 40%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
  background-attachment: fixed;
}
.app-container {
  height: var(--app-height);
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  overflow: hidden;
  inset: 0;
  padding-bottom: calc(140px + env(safe-area-inset-bottom));
}
@supports (padding-bottom: constant(safe-area-inset-bottom)) {
  .app-container {
    padding-bottom: calc(140px + constant(safe-area-inset-bottom));
  }
}
.fixed-header-section {
  z-index: 50;
  flex-shrink: 0;
  position: relative;
}
.scrollable-area {
  flex: 1;
  overflow-y: hidden;
  position: relative;
}
#lock-screen,
#main-ui {
  overflow: hidden;
}
#lock-screen img {
  width: 96px;
  height: 96px;
  margin: 0.75rem auto;
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
}
textarea,
.read-only-box {
  background: transparent;
  border: none;
  resize: none;                
  outline: none;
  width: 100%;
  height: 100%;
  min-height: 300px;
  line-height: 1.6;
  font-size: 1.1rem;
  color: #e0e0e0;
  overflow-y: auto;             
}
textarea {
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
textarea::-webkit-scrollbar {
  width: 4px;
}
textarea::-webkit-scrollbar-thumb {
  background: #333;
}
#note-input {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  resize: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.read-only-box {
  white-space: pre-wrap;
  word-break: break-word;
}
.btn-brick {
  border: 1px solid #444;
  padding: 0.8rem 1.5rem;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  cursor: pointer;
  background: transparent;
}
.btn-brick:hover {
  background: #d1d1d1;
  color: #0a0a0a;
}
.fade-in {
  animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.key-display {
  font-size: clamp(1.2rem, 5vw, 2rem);
  letter-spacing: 0.3rem;
  color: #fff;
}
.modal-overlay {
  background-color: rgba(0,0,0,0.95);
  backdrop-filter: blur(8px);
  position: fixed;
  inset: 0;
}
#toast {
  transition: transform 0.3s ease-in-out, opacity 0.3s;
  transform: translate(-50%, 100%);
}
#toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.glass-tag {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 4px 12px;
}
#app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
#app-footer button,
#app-footer a {
  pointer-events: auto;
}
.footer-eternal-text {
  font-size: clamp(11px, 2.5vw, 13px);
  color: #ffffff;
  letter-spacing: 0.15em;
}
#generated-key-box {
  max-height: 0;
  overflow: hidden;
}
#generated-key-box.is-visible {
  max-height: 200px;
}
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  .btn-brick {
    padding: 0.6rem 1rem;
    font-size: 0.65rem;
  }
  #lock-screen img {
    width: 72px;
    height: 72px;
  }
}
.ios-safe-bottom {
  padding-bottom: calc(env(safe-area-inset-bottom) + 12px);
}
@supports (padding-bottom: constant(safe-area-inset-bottom)) {
  .ios-safe-bottom {
    padding-bottom: calc(constant(safe-area-inset-bottom) + 12px);
  }
}
