* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f0f3f8;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Courier New', monospace;
  line-height: 1.5;
  color: #1a1f2b;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }

.marquee-bar {
  background: #274372;
  color: #ffffff;
  padding: 8px 0;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  border-bottom: 3px solid #ffffff;
  box-shadow: 0 2px 0 #1e3254;
  margin-bottom: 4px;
  width: 100%;
  overflow: hidden;
}

.marquee-bar marquee {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.old-header {
  background: #ffffff;
  border-bottom: 6px solid #274372;
  padding: 24px 0 16px;
  margin-bottom: 8px;
  width: 100%;
}

.header-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-area h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
  color: #274372;
  text-transform: uppercase;
  letter-spacing: -2px;
  text-shadow: 3px 3px 0 rgba(39, 67, 114, 0.15);
}

.logo-area h1 span {
  color: #1a1f2b;
}

.logo-area div {
  font-family: 'Courier New', monospace;
  color: #274372;
  font-size: 1.1rem;
  margin-top: 6px;
  letter-spacing: -0.5px;
}

.old-counter {
  background: #f0f3f8;
  padding: 10px 20px;
  border: 2px solid #274372;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 5px 5px 0 #274372;
  white-space: nowrap;
}

.main-grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 30px;
}

main {
  flex: 2;
  min-width: 280px;
}

aside {
  flex: 1;
  min-width: 200px;
}

.gif-banner {
  background: #ffffff;
  border: 3px solid #274372;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: 10px 10px 0 #274372;
  overflow: hidden;
  width: 100%;
}

.gif-banner img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.gif-fallback {
  background: #274372;
  color: #ffffff;
  padding: 40px;
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 700;
}

.glass-panel {
  background: #ffffff;
  border: 2px solid #274372;
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: 12px 12px 0 #274372;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  width: 100%;
}

.glass-panel:hover {
  transform: translate(-2px, -2px);
  box-shadow: 14px 14px 0 #274372;
}

.glass-panel h2 {
  margin-top: 0;
  color: #274372;
  font-size: 2.2rem;
  border-left: 12px solid #274372;
  padding-left: 20px;
  margin-bottom: 20px;
}

.glass-panel p {
  font-size: 1.15rem;
  color: #1a1f2b;
  margin-bottom: 16px;
}

.fingerprint {
  font-family: 'Courier New', monospace;
  background: #f5f7fc;
  padding: 16px;
  border: 1px dashed #274372;
  font-size: 1rem;
  word-break: break-all;
  line-height: 1.4;
}

.validator-section {
  background: #ffffff;
  border: 2px solid #274372;
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: 12px 12px 0 #274372;
  width: 100%;
}

.validator-section h2 {
  margin-top: 0;
  color: #274372;
  font-size: 2rem;
  margin-bottom: 16px;
}

.validator-section p {
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.validator-input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.validator-input-group input {
  flex: 3;
  min-width: 240px;
  padding: 16px 20px;
  border: 2px solid #274372;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  background: #fcfcfc;
  box-shadow: inset 2px 2px 0 rgba(39, 67, 114, 0.1);
  transition: all 0.1s ease;
}

.validator-input-group input:focus {
  outline: none;
  background: #ffffff;
  box-shadow: inset 2px 2px 0 #274372;
}

.validator-input-group button {
  background: #274372;
  color: #ffffff;
  border: 2px solid #274372;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 #1e3254;
  transition: all 0.1s ease;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.validator-input-group button:hover {
  background: #1e3254;
  box-shadow: 2px 2px 0 #0f1a2b;
  transform: translate(2px, 2px);
}

.validation-result {
  margin-top: 24px;
  padding: 16px 20px;
  display: none;
  font-weight: 700;
  border: 2px solid;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.validation-result.success {
  display: block;
  background: #f0f7f0;
  border-color: #274372;
  color: #274372;
}

.validation-result.error {
  display: block;
  background: #fff0f0;
  border-color: #b11f1f;
  color: #b11f1f;
}

.mirrors h2 {
  color: #274372;
  font-size: 2rem;
  border-bottom: 4px solid #274372;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 32px;
  width: 100%;
}

.link-card {
  background: #ffffff;
  border: 2px solid #274372;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 8px 8px 0 #274372;
  transition: all 0.1s ease;
  width: 100%;
}

.link-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 #274372;
}

.link-url {
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: 600;
  word-break: break-all;
  flex: 2;
  min-width: 200px;
  cursor: pointer;
  color: #274372;
  text-decoration: underline dotted #274372;
  text-underline-offset: 4px;
  line-height: 1.3;
}

.link-latency {
  font-family: 'Courier New', monospace;
  background: #274372;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: inset -2px -2px 0 #1e3254;
}

.copy-btn {
  background: #ffffff;
  border: 2px solid #274372;
  color: #274372;
  font-weight: 700;
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 #274372;
  transition: all 0.1s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.copy-btn:hover {
  background: #274372;
  color: #ffffff;
  box-shadow: 2px 2px 0 #1e3254;
  transform: translate(2px, 2px);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  font-family: 'Courier New', monospace;
  margin-top: 16px;
}

.details-grid div {
  padding: 16px;
  background: #f5f7fc;
  border: 1px solid #274372;
  box-shadow: 4px 4px 0 #274372;
}

.details-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #274372;
  font-size: 1.1rem;
}

.news-article {
  margin-bottom: 24px;
  border-bottom: 1px solid #d0d8e8;
  padding-bottom: 20px;
}

.news-article h3 {
  color: #274372;
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.news-article p {
  margin-bottom: 8px;
  color: #1a1f2b;
}

.news-article span {
  font-family: 'Courier New', monospace;
  color: #274372;
  font-size: 0.9rem;
  opacity: 0.8;
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-around;
  font-family: 'Courier New', monospace;
  margin: 20px 0;
}

.stat-item {
  text-align: center;
  min-width: 100px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #274372;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 2px 2px 0 rgba(39, 67, 114, 0.2);
}

.stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

aside > div {
  background: #ffffff;
  border: 2px solid #274372;
  padding: 24px;
  box-shadow: 10px 10px 0 #274372;
  margin-bottom: 32px;
  transition: transform 0.1s ease;
  width: 100%;
}

aside > div:hover {
  transform: translate(-2px, -2px);
  box-shadow: 12px 12px 0 #274372;
}

aside h3 {
  color: #274372;
  margin-top: 0;
  border-bottom: 3px solid #274372;
  padding-bottom: 12px;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

aside ul {
  list-style-type: square;
  padding-left: 24px;
  font-family: 'Courier New', monospace;
  line-height: 2;
  font-size: 1.05rem;
}

aside ul li {
  color: #1a1f2b;
}

aside pre {
  font-size: 0.8rem;
  background: #f5f7fc;
  padding: 16px;
  border: 1px solid #274372;
  font-family: 'Courier New', monospace;
  overflow-x: auto;
  margin: 16px 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

aside a {
  color: #274372;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #274372;
  padding-bottom: 2px;
  transition: all 0.1s ease;
}

aside a:hover {
  background: #274372;
  color: #ffffff;
}

footer {
  margin-top: 60px;
  border-top: 6px solid #274372;
  background: #ffffff;
  padding: 32px 0;
  text-align: center;
  font-family: 'Courier New', monospace;
  box-shadow: 0 -4px 0 #1e3254;
  width: 100%;
}

footer p {
  margin: 8px 0;
  font-size: 1.1rem;
}

footer p:first-child {
  font-weight: 700;
  font-size: 1.3rem;
  color: #274372;
}

footer p:last-child {
  font-size: 0.95rem;
  opacity: 0.8;
}

.notification {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #274372;
  color: white;
  padding: 16px 28px;
  z-index: 10000;
  transform: translateX(150%);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  font-weight: 700;
  font-family: 'Courier New', monospace;
  border: 2px solid #ffffff;
  box-shadow: 8px 8px 0 #1e3254;
  font-size: 1rem;
  max-width: 90%;
  word-break: break-word;
}

.notification.show {
  transform: translateX(0);
}

@media (max-width: 1024px) {
  .page-wrapper {
    padding: 0 20px;
  }
  
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }
  
  .stat-number {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .old-counter {
    white-space: normal;
    width: 100%;
    text-align: center;
  }
  
  .logo-area h1 {
    font-size: 2.6rem;
  }
  
  .link-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .link-latency {
    margin-left: 0;
    align-self: flex-start;
  }
  
  .copy-btn {
    align-self: flex-end;
  }
  
  .glass-panel h2 {
    font-size: 1.8rem;
    padding-left: 16px;
  }
  
  .validator-input-group button {
    width: 100%;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .stats-container {
    gap: 20px;
  }
  
  main, aside {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .page-wrapper {
    padding: 0 16px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  
  .glass-panel, .validator-section, aside > div {
    padding: 20px;
    box-shadow: 8px 8px 0 #274372;
  }
  
  .link-url {
    font-size: 1.1rem;
  }
  
  .copy-btn {
    width: 100%;
    justify-content: center;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
  }
  
  .details-grid div {
    padding: 12px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  .gif-fallback {
    padding: 20px;
    font-size: 1.2rem;
  }
}

input, button {
  border-radius: 0;
  font-family: 'Courier New', Courier, monospace;
}

::selection {
  background: #274372;
  color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #274372;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  padding-left: 20px;
}

p {
  margin-bottom: 1rem;
}

code, pre {
  font-family: 'Courier New', monospace;
}

*:focus {
  outline: 2px solid #274372;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}