.dropcap {
  float: left;
  font-family: 'Russo One', sans-serif;
  font-size: 4.5rem;
  line-height: 0.75;
  padding-top: 0.4rem;
  padding-right: 0.5rem;
  padding-bottom: 0.2rem;
  color: #ff5500;
  text-transform: uppercase;
}

.dropcap + * {
  clear: both;
}

.terminal-box {
  background: #06110d;
  border: 1px solid #14382c;
  border-left: 4px solid #34d399;
  padding: 1.25rem;
  margin: 2rem 0;
  font-family: 'Courier New', Courier, monospace;
  color: #34d399;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: inset 0 0 15px rgba(52, 211, 153, 0.05);
}

.term-line {
  position: relative;
  padding-left: 1.5rem;
}

.term-line::before {
  content: ">";
  position: absolute;
  left: 0;
  color: #14382c;
  font-weight: bold;
}

.vcr-text {
  display: inline-block;
  position: relative;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  color: #e2e8f0;
  text-shadow: 
    -1.5px 0 0 rgba(255, 40, 40, 0.75), 
     1.5px 0 0 rgba(0, 240, 255, 0.75);
  animation: 
    vcr-jitter 3s steps(1) infinite,
    vcr-flicker 0.15s infinite alternate;
}

@keyframes vcr-jitter {
  0%, 100% {
    transform: translate(0, 0) skew(0deg);
    text-shadow: -1.5px 0 0 rgba(255, 40, 40, 0.75), 1.5px 0 0 rgba(0, 240, 255, 0.75);
  }
  14% {
    transform: translate(-1.5px, 0.5px) skew(-1.5deg);
    text-shadow: -2.5px 0 0 rgba(255, 40, 40, 0.9), 2px 0 0 rgba(0, 240, 255, 0.9);
  }
  28% {
    transform: translate(1px, -0.5px) skew(1deg);
    text-shadow: -1px 0 0 rgba(255, 40, 40, 0.6), 1px 0 0 rgba(0, 240, 255, 0.6);
  }
  42% {
    transform: translate(0, 0) skew(0deg);
  }
  70% {
    transform: translate(2px, 0.5px) skew(2.5deg);
    text-shadow: -3px 0 0 rgba(255, 40, 40, 1), 3px 0 0 rgba(0, 240, 255, 1);
  }
  72% {
    transform: translate(-2px, 0) skew(-1deg);
    text-shadow: -1px 0 0 rgba(255, 40, 40, 0.8), 2.5px 0 0 rgba(0, 240, 255, 0.8);
  }
  74% {
    transform: translate(0, 0) skew(0deg);
  }
}

@keyframes vcr-flicker {
  0% {
    opacity: 0.92;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.15);
  }
  100% {
    opacity: 0.84;
    filter: brightness(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vcr-text {
    animation: none;
    text-shadow: -1px 0 0 rgba(255, 40, 40, 0.5), 1px 0 0 rgba(0, 240, 255, 0.5);
  }
}

.pull-quote {
  float: right;
  width: 40%;
  margin: 1rem 0 1rem 1.5rem;
  padding: 1rem;
  border-left: 4px solid #ff5500;
  background: #111115;
  font-family: 'Russo One', sans-serif;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #fff;
  box-shadow: 4px 4px 0px rgba(255, 85, 0, 0.2);
}

@media (max-width: 600px) {
  .pull-quote {
    float: none;
    width: 100%;
    margin: 1.5rem 0;
  }
}

.redacted-text {
  background-color: #000;
  color: #000;
  padding: 0 4px;
  border-radius: 2px;
  cursor: help;
  transition: background-color 0.2s, color 0.2s;
}

.redacted-text:hover {
  background-color: #222;
  color: #ff5500;
}

.neon-mark {
  background-color: #34d399;
  color: #06110d;
  font-weight: bold;
  padding: 0 4px;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.lead-text-inline {
  font-variant: small-caps;
  font-weight: bold;
  font-size: 1.1em;
  letter-spacing: 0.5px;
  color: #cbd5e1;
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: #151518;
  border-left: 4px solid #666;
}

.callout-note {
  border-left-color: #60a5fa;
}

.callout-ruling {
  border-left-color: #34d399;
}

.callout-warning {
  border-left-color: #ff5500;
}

.callout-design {
  border-left-color: #a78bfa;
}

.callout-label {
  font-family: 'Russo One', sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.callout-note .callout-label { color: #60a5fa; }
.callout-ruling .callout-label { color: #34d399; }
.callout-warning .callout-label { color: #ff5500; }
.callout-design .callout-label { color: #a78bfa; }

.callout p:last-child {
  margin-bottom: 0;
}

.editorial-details {
  background: #111115;
  border: 1px solid #222;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.editorial-details summary {
  font-family: 'Russo One', sans-serif;
  color: #ff5500;
  cursor: pointer;
  text-transform: uppercase;
  list-style: none;
}

.editorial-details summary::-webkit-details-marker {
  display: none;
}

.editorial-details summary::before {
  content: "► ";
  color: #fff;
  font-size: 0.8em;
  display: inline-block;
  transition: transform 0.2s;
}

.editorial-details[open] summary::before {
  transform: rotate(90deg);
}

.card-ref-btn {
  background: none;
  border: none;
  padding: 0;
  color: #ff5500;
  font-family: inherit;
  font-size: inherit;
  font-weight: bold;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(255, 85, 0, 0.5);
  cursor: pointer;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.card-ref-btn:hover {
  color: #fff;
  text-decoration-color: #34d399;
}

.native-inline-btn {
  background: #0e0e12;
  color: #fff;
  border: 2px solid #34d399;
  font-family: 'Russo One', sans-serif;
  text-transform: uppercase;
  padding: 4px 12px;
  cursor: pointer;
  box-shadow: 2px 2px 0 #34d399;
  transition: all 0.15s;
  margin: 0 4px;
  font-size: 0.9em;
  display: inline-block;
}

.native-inline-btn:hover {
  background: #34d399;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px rgba(52, 211, 153, 0.4);
}

.margin-note {
  float: right;
  width: 30%;
  clear: right;
  margin-right: -35%;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
  border-left: 2px solid #444;
  padding-left: 1rem;
  line-height: 1.4;
}

@media (max-width: 1000px) {
  .margin-note {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #ff5500;
    opacity: 0.9;
    color: #a1a1aa;
  }
}

.secret-text {
  color: transparent;
  user-select: text;
}

.secret-text::selection {
  color: #ffffff;
  background-color: #2b6cb0;
}

.editorial-block {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: #111115;
  border-left: 4px solid #34d399;
  border-top: 1px solid #222;
  border-right: 1px solid #222;
  border-bottom: 1px solid #222;
  animation: fadeIn 0.25s ease-out;
}

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

.is-hidden {
  display: none !important;
}

.inline-die {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  background: url('/assets/icons/Die.png') no-repeat center / contain;
  position: relative;
  vertical-align: -0.2em;
  margin: 0 0.1em;
  white-space: nowrap;
}

.inline-die.long,
.inline-die:has(.long) {
  width: 1.42em;
  height: 1.42em;
  vertical-align: -0.28em;
}

.inline-val {
  position: absolute;
  bottom: 5%;
  left: 5%;
  width: 71%;
  height: 71%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Russo One', sans-serif;
  font-size: 0.72em;
  line-height: 1;
  color: #000;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.inline-val.med {
  font-size: 0.58em;
  letter-spacing: -0.02em;
}

.inline-val.long {
  font-size: 0.46em;
  letter-spacing: -0.04em;
  transform: scaleX(0.85);
  transform-origin: center;
}

.article-utility-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #222;
  gap: 1rem;
}

.article-utility-bar .breadcrumbs {
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-utility-bar .breadcrumbs a {
  color: #888;
  text-decoration: none;
}

.article-utility-bar .breadcrumbs a:hover {
  color: #ff5500;
}

.article-utility-bar .breadcrumbs span {
  color: #34d399;
}

.utility-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.util-icon {
  color: #777;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.15s, transform 0.15s;
}

.util-icon:hover {
  color: #ff5500;
  transform: translateY(-1px);
}

@media print {
  #navbar,
  .hero-banner,
  .sidebar-rail,
  .site-footer,
  #card-modal,
  .article-utility-bar,
  .native-inline-btn {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .layout-wrapper,
  .content-area,
  .blog-post {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  h1, h2, h3, h4, p, span, li {
    color: #000 !important;
  }

  .terminal-box,
  .callout,
  .editorial-block {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}