* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: #050505;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0, 255, 65, 0.03) 0px,
      rgba(0, 255, 65, 0.03) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(
      ellipse at center,
      rgba(10, 10, 10, 0) 0%,
      rgba(0, 0, 0, 0.65) 100%
    ),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.12  0 0 0 0 0.12  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  background-attachment: fixed;
  background-size: auto, auto, 140px 140px;

  color: #e8e8e8;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  word-wrap: break-word;
  overflow-wrap: break-word;
}


.crawl {
  width: 100%;
  background: #000;
  color: #00ff41;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  border-bottom: 2px double #00ff41;
  overflow: hidden;
  white-space: nowrap;
}
.crawl span {
  display: inline-block;
  padding: 4px 0;
  animation: scroll-left 55s linear infinite;
  will-change: transform;
}
@keyframes scroll-left {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

.top-banner {
  background: #220000;
  color: #ff3344;
  text-align: center;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  border-bottom: 3px double #ff3344;
  padding: 8px 10px;
}
.top-banner-inner {
  display: inline-block;
  max-width: 100%;
}

.blink {
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink {
  to { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .blink { animation: none; }
  .crawl span { animation: none; }
}


.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 18px 16px 40px 16px;
}


.site-header {
  text-align: center;
  padding-top: 10px;
}

.pre-title {
  color: #00b3ff;
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  margin-bottom: 6px;
  text-transform: lowercase;
}

.mega-title {
  font-family: "Times New Roman", Times, Georgia, serif;
  font-weight: 900;
  color: #ffffff;
  font-size: clamp(42px, 10vw, 76px);
  line-height: 0.95;
  margin: 0 0 10px 0;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 2px #fff,
    2px 2px 0 #000,
    0 0 18px rgba(0, 255, 65, 0.35);
  text-transform: uppercase;
}

.glow-red {
  color: #ff2233;
  text-shadow:
    0 0 4px #ff2233,
    0 0 14px rgba(255, 34, 51, 0.7),
    2px 2px 0 #000;
  font-style: italic;
}

.glow-green {
  color: #00ff7a;
  text-shadow:
    0 0 4px #00ff7a,
    0 0 14px rgba(0, 255, 122, 0.55);
}

.sub-title {
  font-family: Arial, Verdana, sans-serif;
  font-size: clamp(15px, 3.8vw, 20px);
  color: #00ff41;
  letter-spacing: 0.05em;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.45);
}

.mini-title {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 14px;
  line-height: 1.4;
}

.byline {
  font-family: Arial, Verdana, sans-serif;
  color: #dddddd;
  font-size: 14px;
  margin-bottom: 14px;
}
.byline .name {
  color: #00b3ff;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-shadow: 0 0 6px rgba(0, 179, 255, 0.55);
}
.tiny { font-size: 12px; color: #999; font-style: italic; }

.warn {
  background: #000;
  color: #ff2233;
  font-family: "Courier New", monospace;
  border: 1px dashed #ff2233;
  padding: 6px 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  margin: 6px auto;
  display: inline-block;
}


.rule {
  border: none;
  border-top: 1px solid #00ff41;
  margin: 20px 0;
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.45);
}
.rule.dashed  { border-top: 2px dashed #ff2233; box-shadow: none; }
.rule.dotted  { border-top: 2px dotted #00b3ff; box-shadow: none; }
.rule.thick   { border-top: 4px double #ffffff; box-shadow: 0 0 8px rgba(255,255,255,0.4); }


.nav-box {
  border: 2px ridge #00ff41;
  background: #0a0f0a;
  padding: 10px 14px;
  margin: 12px 0 20px 0;
  font-family: Arial, Verdana, sans-serif;
}
.nav-title {
  color: #00ff41;
  font-weight: bold;
  letter-spacing: 0.2em;
  font-size: 13px;
  margin-bottom: 6px;
  text-align: center;
}
.nav-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 2;
  column-gap: 14px;
}
.nav-box li {
  padding: 2px 0;
  font-size: 14px;
  break-inside: avoid;
}
.nav-box a {
  color: #00b3ff;
  text-decoration: underline;
}
.nav-box a:visited { color: #c080ff; }
.nav-box a:hover   { color: #ff2233; background: #000; }

@media (max-width: 460px) {
  .nav-box ul { column-count: 1; }
}


.section {
  margin: 18px 0;
}

.h2 {
  font-family: "Arial Black", Arial, sans-serif;
  color: #ffffff;
  background: #000;
  border-top: 2px solid #00ff41;
  border-bottom: 2px solid #00ff41;
  padding: 8px 10px;
  margin: 18px 0 14px 0;
  font-size: clamp(18px, 4.5vw, 24px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.45);
  line-height: 1.25;
}
.h2.small {
  background: transparent;
  color: #00ff41;
  border: 1px dotted #00ff41;
  font-size: 15px;
  letter-spacing: 0.15em;
  text-align: center;
  text-shadow: none;
}

p {
  margin: 0 0 12px 0;
}

.pull {
  font-size: 20px;
  border-left: 4px solid #ff2233;
  padding: 6px 12px;
  background: #110000;
  margin: 16px 0;
}
.pull-center {
  text-align: center;
  font-size: 17px;
  margin: 18px 0;
}

.small-note {
  font-size: 13px;
  color: #bbb;
  font-style: italic;
  font-family: Arial, Verdana, sans-serif;
  margin-bottom: 12px;
}


.note-box {
  border: 1px dashed #00ff41;
  padding: 14px;
  background: rgba(0, 255, 65, 0.03);
}
.sign-off {
  text-align: right;
  font-style: italic;
  color: #00b3ff;
  font-family: Georgia, "Times New Roman", serif;
  margin-top: 8px;
}


.case {
  border: 2px solid #444;
  border-top: 2px solid #00ff41;
  padding: 14px;
  margin: 18px 0;
  background: #0b0b0b;
}

.case-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.case-num {
  font-family: "Arial Black", Arial, sans-serif;
  color: #ff2233;
  font-size: 28px;
  line-height: 1;
  text-shadow: 2px 2px 0 #000, 0 0 10px rgba(255,34,51,0.6);
}
.case-date {
  font-family: "Courier New", monospace;
  color: #00ff41;
  background: #000;
  border: 1px dotted #00ff41;
  padding: 3px 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.case-title {
  font-family: "Arial Black", Arial, sans-serif;
  color: #ffffff;
  font-size: clamp(16px, 4.2vw, 22px);
  margin: 6px 0 10px 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px dotted #ff2233;
  padding-bottom: 4px;
  line-height: 1.2;
}

.case-meta {
  font-family: Arial, Verdana, sans-serif;
  font-size: 13px;
  color: #cccccc;
  background: #000;
  border-left: 3px solid #00b3ff;
  padding: 8px 10px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.symbol-fig {
  margin: 12px 0;
  padding: 8px;
  background: #000;
  border: 1px solid #333;
  box-shadow: 0 0 0 1px #000, 0 0 0 2px #00ff41;
  text-align: center;
}
.symbol-fig img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto 8px auto;
  filter: contrast(1.05) saturate(0.85) blur(0.3px);
  image-rendering: auto;
  border: 1px solid #555;
}
.symbol-fig figcaption {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #00ff41;
  letter-spacing: 0.04em;
  line-height: 1.4;
  padding: 4px 6px 0 6px;
}

/* image links - make anchors behave like blocks so images render correctly */
.img-link {
  display: block;
  line-height: 0;
  text-decoration: none;
  background: transparent;
  color: inherit;
}
.img-link:hover,
.img-link:focus {
  background: transparent;
  outline: 2px solid #00ff41;
  outline-offset: 2px;
  color: inherit;
}
.symbol-fig .img-link {
  margin: 0 auto 8px auto;
}
.symbol-fig .img-link img {
  margin: 0 auto;
}

.quote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 4px solid #ff2233;
  border-right: 1px dashed #ff2233;
  background: rgba(255, 34, 51, 0.04);
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  color: #f5e6c8;
}
.quote cite {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-style: normal;
  color: #ff9aa6;
  font-family: Arial, Verdana, sans-serif;
  text-align: right;
  letter-spacing: 0.04em;
}

.bio-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 10px;
  background: #050505;
  border-top: 1px dashed #666;
  border-bottom: 1px dashed #666;
}
.bio-row-no-portrait { display: block; }

/* portrait-link is now the flex item that wraps the portrait image */
.portrait-link {
  flex: 0 0 130px;
  width: 130px;
  max-width: 40%;
  display: block;
  line-height: 0;
  text-decoration: none;
  background: transparent;
}
.portrait-link:hover,
.portrait-link:focus {
  background: transparent;
  outline: 2px solid #00b3ff;
  outline-offset: 2px;
  color: inherit;
}

.portrait {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 3px double #00b3ff;
  padding: 3px;
  background: #000;
  filter: contrast(1.05) saturate(0.9) blur(0.3px) sepia(0.15);
}

.bio-text {
  flex: 1 1 auto;
  font-size: 14px;
  font-family: Arial, Verdana, sans-serif;
  color: #d8d8d8;
  line-height: 1.5;
  min-width: 0;
}
.bio-text b {
  color: #ffffff;
  letter-spacing: 0.08em;
}
.bio-text.wide { width: 100%; }
.bio-text p { margin: 6px 0 0 0; font-size: 14px; }

@media (max-width: 460px) {
  .bio-row {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
  .portrait-link {
    flex: 0 0 auto;
    width: 70%;
    max-width: 220px;
  }
  .bio-text { width: 100%; }
}


.theory {
  border: 1px dotted #00ff41;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #080c08;
  font-size: 15px;
}
.theory-num {
  color: #ff2233;
  font-size: 22px;
  margin-right: 6px;
  vertical-align: -2px;
}
.theory-last {
  border: 2px dashed #ff2233;
  background: #140000;
  padding: 14px;
  font-size: 16px;
  text-align: center;
}


.submit-box {
  border: 2px dashed #00ff41;
  padding: 14px;
  background: rgba(0, 255, 65, 0.04);
}
.interest-list {
  font-family: "Courier New", monospace;
  background: #000;
  border: 1px solid #00ff41;
  padding: 10px 12px;
  color: #00ff41;
  font-size: 14px;
  line-height: 1.7;
  margin: 10px 0;
}


.closing-box {
  text-align: center;
  border-top: 3px double #ffffff;
  border-bottom: 3px double #ffffff;
  padding: 18px 10px;
  background: #000;
}
.closing-1 { font-size: 18px; }
.closing-2 {
  font-size: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  margin-top: 14px;
}
.closing-3 {
  font-size: clamp(20px, 5vw, 28px);
  margin-top: 10px;
}


.guestbook-box {
  text-align: center;
  border: 3px ridge #ff2233;
  padding: 14px;
  background: #0a0000;
}
.gb-heading {
  font-family: "Arial Black", Arial, sans-serif;
  color: #ffeb3b;
  font-size: clamp(18px, 5vw, 24px);
  letter-spacing: 0.15em;
  text-shadow: 0 0 10px #ff2233, 2px 2px 0 #000;
  margin-bottom: 10px;
}
.gb-link-wrap {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 16px;
  color: #00ff41;
  letter-spacing: 0.08em;
  margin-top: 10px;
  word-break: break-word;
}
.gb-link {
  display: inline-block;
  color: #ffffff !important;
  background: #ff2233;
  padding: 8px 14px;
  text-decoration: none;
  border: 3px outset #ff9aa6;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin: 6px 4px;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(255, 34, 51, 0.55);
}
.gb-link:hover {
  background: #000;
  color: #ff2233 !important;
  border-style: inset;
  border-color: #ff2233;
}


.footnote-box {
  border: 1px dotted #888;
  padding: 10px 12px;
  background: #0a0a0a;
}
.fn-title {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #00b3ff;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 6px;
}
.tiny-fn {
  font-size: 13px;
  color: #aaa;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
  margin: 0;
}


.foot {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 2px dashed #00ff41;
  text-align: center;
  font-family: Arial, Verdana, sans-serif;
  color: #888;
}
.foot a {
  color: #00b3ff;
  text-decoration: underline;
}
.foot a:visited { color: #c080ff; }
.foot a:hover   { color: #ff2233; }
.foot-row {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.foot-sign {
  margin-top: 10px;
  color: #ff2233;
  font-family: "Courier New", monospace;
  letter-spacing: 0.2em;
  font-size: 13px;
}


a {
  color: #00b3ff;
  text-decoration: underline;
}
a:visited { color: #c080ff; }
a:hover, a:focus {
  color: #ff2233;
  background: #ffeb3b22;
  outline: none;
}

@media (hover: none) {
  a:hover { background: transparent; color: #00b3ff; }
  .gb-link:hover {
    background: #ff2233;
    color: #fff !important;
    border-style: outset;
    border-color: #ff9aa6;
  }
}


@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 14px 12px 30px 12px; }
  .case { padding: 12px; }
  .case-meta { font-size: 12.5px; }
  .quote { font-size: 16px; padding: 8px 10px; }
  .nav-box { padding: 10px; }
}
