/* Trial Chamber Copper & Oxidized Tuff Voxel Theme — Custom crafted for minecraftthrowingdisc.xyz */
:root {
  --tuff-950: #0b0f13;
  --tuff-900: #11171d;
  --tuff-850: #161f27;
  --tuff-800: #1d2933;
  --tuff-line: #2b3c48;
  --patina-400: #2dd4bf;
  --patina-300: #5eead4;
  --patina-900: #123735;
  --copper-500: #e87d3e;
  --copper-400: #f59e0b;
  --copper-800: #7c2d12;
  --ink-100: #edf6f8;
  --ink-200: #c6dae0;
  --ink-400: #89a3ad;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--tuff-950);
  color: var(--ink-100);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--tuff-950);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(45, 212, 191, 0.09), transparent 38%),
    radial-gradient(circle at 85% 4%, rgba(232, 125, 62, 0.10), transparent 36%),
    linear-gradient(rgba(43, 60, 72, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 60, 72, 0.16) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
  overflow-x: hidden;
}

a { color: var(--patina-300); text-decoration: none; }
a:hover { color: var(--copper-400); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 19, 0.94);
  border-bottom: 2px solid var(--tuff-line);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}
.hdr-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--ink-100);
  text-decoration: none !important;
}
.brand-glyph {
  width: 28px;
  height: 28px;
  background: var(--tuff-850);
  border: 2px solid var(--patina-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -2px 0 #070a0d;
}
.brand-ring {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 4px solid var(--copper-500);
  box-shadow: 0 0 0 1px var(--patina-400);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 5px 10px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-200);
  border: 1px solid transparent;
  text-decoration: none;
}
.main-nav a:hover {
  border-color: var(--patina-400);
  background: var(--patina-900);
  color: var(--patina-300);
}

/* First-Screen Hero & Game Stage */
.hero-wrap {
  padding: 14px 0 24px;
}
.hero-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.hero-head h1 {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-100);
}
.hero-kicker {
  margin: 0;
  font-size: 14px;
  color: var(--ink-400);
}
.hero-kicker strong {
  color: var(--patina-300);
}

/* Chiseled Voxel Frame */
.stage-frame-outer {
  background: var(--tuff-900);
  border: 3px solid var(--patina-400);
  box-shadow:
    0 0 0 3px #090d10,
    0 14px 36px rgba(0, 0, 0, 0.7);
}
.arena-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(74vh, 630px);
  background: #0d1318;
  overflow: hidden;
}

/* Cover */
.stage-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stage-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68) contrast(1.06);
}
.cover-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(11, 15, 19, 0.35) 0%, rgba(11, 15, 19, 0.84) 100%);
}
.cover-card {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px 24px;
  max-width: 520px;
  background: rgba(15, 22, 28, 0.88);
  border: 2px solid var(--tuff-line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}
.cover-tag {
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 10px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--patina-900);
  color: var(--patina-300);
  border: 1px solid var(--patina-400);
}
.cover-lead {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-200);
  line-height: 1.5;
}
.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #101417;
  background: linear-gradient(180deg, #fbbf24 0%, #e87d3e 100%);
  border: 2px solid #fef08a;
  box-shadow: inset 0 -4px 0 var(--copper-800), 0 6px 0 #070a0d;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.12s ease;
}
.play-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}
.play-btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 -2px 0 var(--copper-800), 0 2px 0 #070a0d;
}
.play-tri {
  display: inline-block;
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid #101417;
}
.cover-meta {
  margin: 12px 0 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  color: var(--ink-400);
}

/* Custom In-Place Trial Chamber Ricochet Loader */
.stage-loader {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(rgba(45, 212, 191, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.06) 1px, transparent 1px),
    #0e1419;
  background-size: 32px 32px, 32px 32px, 100% 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px;
  text-align: center;
}
.ricochet-track {
  position: relative;
  width: min(320px, 80vw);
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pillar-node {
  width: 22px;
  height: 52px;
  background: #22323b;
  border: 2px solid var(--patina-400);
  box-shadow: inset 0 0 0 4px var(--copper-500);
}
.flying-disc {
  position: absolute;
  top: 50%;
  left: 26px;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  border: 6px solid var(--patina-400);
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.65), inset 0 0 0 3px var(--copper-500);
  animation: discRicochet 1.05s cubic-bezier(0.42, 0, 0.58, 1) infinite alternate;
}
@keyframes discRicochet {
  0%   { transform: translateX(0) rotate(0deg); border-color: var(--copper-500); }
  50%  { transform: translateX(120px) rotate(360deg); border-color: var(--patina-400); }
  100% { transform: translateX(calc(min(320px, 80vw) - 82px)) rotate(720deg); border-color: #a78bfa; }
}
.loader-title {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 15px;
  font-weight: 800;
  color: var(--patina-300);
}
.loader-sub {
  margin: 0;
  font-size: 13px;
  color: var(--ink-400);
}

/* Action Bar Immediately Below Player */
.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--tuff-850);
  border-top: 2px solid var(--tuff-line);
}
.bar-controls-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  color: var(--ink-200);
}
.kbd {
  display: inline-block;
  padding: 2px 6px;
  background: var(--tuff-950);
  border: 1px solid var(--tuff-line);
  color: var(--patina-300);
  font-size: 11px;
  font-weight: 700;
}
.bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.act-btn {
  min-height: 40px;
  padding: 7px 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-100);
  background: var(--tuff-800);
  border: 2px solid var(--tuff-line);
  box-shadow: inset 0 -2px 0 #090d10;
  cursor: pointer;
}
.act-btn:hover {
  border-color: var(--patina-400);
  color: var(--patina-300);
}
.act-btn.like-btn[aria-pressed="true"],
.act-btn.like-btn[data-gf-liked] {
  background: var(--patina-900);
  border-color: var(--patina-400);
  color: var(--patina-300);
}
.act-btn.like-btn[aria-pressed="true"] .ico-heart,
.act-btn.like-btn[data-gf-liked] .ico-heart {
  color: #fb7185;
}
.act-btn .cnt {
  padding: 1px 6px;
  background: var(--tuff-950);
  color: var(--copper-400);
  font-size: 12px;
}
.act-btn.fs-btn {
  background: #1a3338;
  border-color: var(--patina-400);
  color: var(--patina-300);
}
.share-toast {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  color: var(--copper-400);
}

/* Main Content Layout */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 48px;
}
.voxel-card {
  background: var(--tuff-900);
  border: 2px solid var(--tuff-line);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
  padding: 24px 26px;
}
.voxel-card h2 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tuff-line);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(19px, 2.4vw, 23px);
  color: var(--patina-300);
}
.voxel-card h3 {
  margin: 20px 0 8px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 17px;
  color: var(--copper-400);
}
.voxel-card p {
  margin: 0 0 14px;
  color: var(--ink-200);
}
.voxel-card p:last-child { margin-bottom: 0; }
.voxel-card ul, .voxel-card ol {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--ink-200);
}
.voxel-card li { margin-bottom: 8px; }
.voxel-card strong { color: var(--ink-100); }
.section-more {
  margin-top: 16px !important;
  padding-top: 12px;
  border-top: 1px dashed var(--tuff-line);
  font-size: 14.5px;
}
.table-disclaimer {
  margin: 12px 0 6px !important;
  padding: 8px 12px;
  background: var(--tuff-950);
  border-left: 3px solid var(--copper-500);
  font-size: 13px;
  color: var(--ink-400) !important;
}

/* Screenshot Showcase */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.shot-fig {
  margin: 0;
  background: var(--tuff-950);
  border: 2px solid var(--tuff-line);
  padding: 8px;
}
.shot-fig img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #22303a;
}
.shot-fig figcaption {
  padding: 8px 4px 2px;
  font-size: 13px;
  color: var(--ink-400);
  line-height: 1.45;
}

/* Controls Split Grid */
.ctrl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.ctrl-box {
  background: var(--tuff-950);
  border: 2px solid var(--tuff-line);
  padding: 16px;
}
.ctrl-box h3 { margin-top: 0; }

/* 5 Material Tiers Table & Inner Page Tables */
.table-wrap { overflow-x: auto; margin: 12px 0 6px; }
.tier-table, .prose-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.prose-page table {
  display: block;
  overflow-x: auto;
  margin: 16px 0;
}
.tier-table th, .tier-table td,
.prose-page th, .prose-page td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--tuff-line);
}
.tier-table th, .prose-page th {
  background: var(--tuff-950);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  color: var(--patina-300);
  font-size: 12px;
  text-transform: uppercase;
}
.tier-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}

/* FAQ Accordion */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--tuff-950);
  border: 2px solid var(--tuff-line);
}
.faq-item summary {
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-100);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: ui-monospace, monospace;
  font-size: 18px;
  color: var(--patina-400);
}
.faq-item[open] summary::after { content: "−"; color: var(--copper-400); }
.faq-item[open] { border-color: var(--patina-400); }
.faq-ans {
  padding: 0 16px 14px;
  color: var(--ink-200);
  font-size: 15px;
  border-top: 1px solid #1d2a34;
  padding-top: 12px;
}

/* Comments Section */
.comment-form {
  background: var(--tuff-950);
  border: 2px solid var(--tuff-line);
  padding: 16px;
  margin-bottom: 18px;
}
.reply-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 10px;
  background: var(--patina-900);
  border: 1px solid var(--patina-400);
  font-size: 13px;
  color: var(--patina-300);
}
.comment-form[data-gf-replying] .reply-banner { display: flex; }
.cancel-reply {
  background: transparent;
  border: 1px solid var(--patina-400);
  color: var(--patina-300);
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
}
.form-row {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--tuff-900);
  border: 2px solid var(--tuff-line);
  color: var(--ink-100);
  font: inherit;
  font-size: 14px;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--patina-400);
}
.comment-form textarea { min-height: 86px; resize: vertical; }
.submit-btn {
  padding: 9px 18px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--copper-500);
  color: #101417;
  border: 2px solid #fbbf24;
  box-shadow: inset 0 -2px 0 var(--copper-800);
  cursor: pointer;
}
.submit-btn:hover { background: var(--copper-400); }
.comment-status {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--patina-300);
}

.comment-list { display: grid; gap: 12px; }
.comment-list[data-gf-empty]::after {
  content: "No thrower reports yet — what Trial Wave did you reach, and do you prefer Diamond or Netherite ricochets? Post the first tip!";
  display: block;
  padding: 18px;
  text-align: center;
  background: var(--tuff-950);
  border: 2px dashed var(--tuff-line);
  color: var(--ink-400);
  font-size: 14px;
}
.c-item {
  background: var(--tuff-950);
  border: 2px solid var(--tuff-line);
  padding: 14px 16px;
}
.c-item[data-gf-owner] {
  border-color: var(--copper-500);
  background: #191815;
}
.c-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 6px;
}
.c-author { color: var(--ink-100); font-family: ui-monospace, monospace; }
.c-badge {
  padding: 1px 6px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
  background: var(--copper-500);
  color: #101417;
}
.c-reply-target { color: var(--patina-300); font-size: 12px; }
.c-time { color: var(--ink-400); font-size: 12px; margin-left: auto; }
.c-body { margin: 0 0 8px; color: var(--ink-200); white-space: pre-wrap; word-break: break-word; }
.c-reply-btn {
  background: transparent;
  border: 1px solid var(--tuff-line);
  color: var(--ink-400);
  padding: 3px 9px;
  font-size: 12px;
  cursor: pointer;
}
.c-reply-btn:hover { border-color: var(--patina-400); color: var(--patina-300); }
.c-replies {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 3px solid var(--patina-400);
  display: grid;
  gap: 10px;
}
.c-replies:empty { display: none; }

/* Breadcrumb & Legal Pages */
.crumb {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  color: var(--ink-400);
  margin: 16px 0 10px;
}
.prose-page { padding: 12px 0 56px; }
.prose-page h1 {
  margin: 0 0 16px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(24px, 3.2vw, 32px);
  color: var(--ink-100);
}

/* Footer */
.site-ftr {
  border-top: 2px solid var(--tuff-line);
  background: #080b0e;
  padding: 28px 0 36px;
}
.ftr-inner {
  display: grid;
  gap: 14px;
}
.ftr-title {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 16px;
  color: var(--patina-300);
}
.ftr-note {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-400);
  max-width: 780px;
}
.ftr-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
}
.ftr-copy {
  font-size: 12px;
  color: var(--ink-400);
}


.ftr-inner, .faq-list, .comment-list, .form-row {
  grid-template-columns: minmax(0, 1fr);
}
.voxel-card, .stage-frame-outer, .shell {
  max-width: 100%;
}

@media (max-width: 720px) {
  .shell { padding: 0 12px; }
  .hdr-inner { padding-top: 6px; padding-bottom: 6px; gap: 6px; }
  .main-nav { gap: 2px; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .main-nav a { padding: 4px 8px; font-size: 12px; white-space: nowrap; }
  .hero-wrap { padding: 10px 0 18px; }
  .hero-kicker { font-size: 12px; line-height: 1.4; }
  .arena-stage { aspect-ratio: auto; height: 300px; }
  .cover-card { padding: 14px 12px; width: calc(100% - 20px); max-width: 360px; }
  .cover-tag { font-size: 10px; padding: 2px 7px; margin-bottom: 6px; }
  .cover-lead { font-size: 12.5px; margin-bottom: 10px; line-height: 1.4; }
  .play-btn { padding: 11px 12px; font-size: 13px; width: 100%; gap: 7px; }
  .cover-meta { font-size: 11px; margin-top: 8px; }
  .stage-bar { padding: 10px; gap: 8px; }
  .bar-controls-hint { display: none; }
  .bar-actions { width: 100%; display: grid; grid-template-columns: auto auto auto auto 1fr; gap: 6px; }
  .act-btn { min-height: 42px; padding: 6px 9px; font-size: 12px; justify-content: center; }
  .act-btn.fs-btn { grid-column: 1 / -1; width: 100%; min-height: 44px; font-size: 13px; }
  .shots-grid, .ctrl-grid { grid-template-columns: minmax(0, 1fr); }
  .voxel-card { padding: 16px 14px; }
}
