/* panels.css — owned by the panels lane. */
.stop { position: relative; }
.hold { min-height: 55vh; }
.s-hero { min-height: 100vh; }
.hero-copy { position: absolute; top: 12vh; left: 0; right: 0; text-align: center; padding: 0 16px; }
.hero-message { width: fit-content; max-width: 100%; margin: 0 auto; }
.hero-message .tagline, .hero-message .hero-sub, .hero-message .hero-explore, .hero-join small { text-shadow: 0 2px 2px #080e0b, 0 0 8px #080e0b; }
.kd-logo { width: clamp(232px, 36vw, 460px); max-width: 100%; margin: 0 auto; line-height: 0; }
.kd-logo img { display: block; width: 100%; height: auto; }
.tagline { margin: 14px 0 0; font: 700 clamp(26px, 3.6vw, 44px)/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.hero-sub { margin: 8px auto 0; max-width: 34ch; color: var(--paper-2); font-size: 16px; }
.hero-actions { display: flex; justify-content: center; align-items: flex-start; gap: 26px; margin-top: 22px; pointer-events: auto; }
.hero-actions .btn { margin-top: 0; min-height: 48px; font-size: 19px; padding: 13px 22px; }
.hero-join { display: grid; justify-items: center; gap: 10px; }
.hero-join small { color: #cbd9cf; font: 11px/1.4 var(--f-mono); }
.hero-explore { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 4px; color: var(--mint); font: 600 19px/1.3 var(--f-pixel); text-decoration: none; }
.hero-explore:hover { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 760px) {
  .hero-copy { top: 18vh; }
  .hero-actions { gap: 18px; margin-top: 20px; }
  .hero-actions .btn, .hero-explore { font-size: 17px; }
  .hero-actions .btn { padding-inline: 16px; }
}
@media (max-height: 600px) and (min-width: 600px) {
  .hero-copy { top: 18vh; }
  .kd-logo { width: 180px; }
  .tagline { font-size: 28px; margin-top: 10px; }
  .hero-sub { max-width: 52ch; font-size: 14px; }
  .hero-actions { margin-top: 16px; }
}
body.ready .hero-copy { animation: rise .7s 2.2s ease both; }
@keyframes rise { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0; } }

.hold:has(.panel) { padding: 54vh 24px 14vh; }
.panel { pointer-events: auto; max-width: 1480px; margin: 0 auto; background: var(--panel); border: 3px solid var(--mint); padding: clamp(18px, 2vw, 28px); position: relative;
  clip-path: polygon(0 12px, 12px 12px, 12px 0, calc(100% - 12px) 0, calc(100% - 12px) 12px, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 12px calc(100% - 12px), 0 calc(100% - 12px)); }
.panel-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.panel-logo { height: 42px; width: auto; max-width: 140px; object-fit: contain; image-rendering: pixelated; }
.panel-head h2 { margin: 0; display: flex; align-items: baseline; gap: 12px; font: 700 clamp(28px, 2.8vw, 42px)/1 var(--f-pixel); color: var(--green); }
.panel-head h2 small { font: 500 clamp(20px, 2vw, 26px)/1 var(--f-pixel); color: var(--paper-2); }
.panel-head h2 small::before { content: '· '; color: var(--muted); }
.panel-intro h3 { margin: 0 0 6px; font: 700 clamp(22px, 2vw, 30px)/1.05 var(--f-display); text-transform: uppercase; }
.panel-intro p { margin: 0 0 18px; max-width: 64ch; color: var(--paper-2); }
.panel-sub { margin: 22px 0 10px; font: 600 15px/1 var(--f-pixel); color: var(--mint); text-transform: uppercase; letter-spacing: .03em; }
.btn { pointer-events: auto; display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; padding: 11px 18px; background: var(--green); color: var(--ink); font: 600 16px/1 var(--f-pixel); text-decoration: none; border: 0; cursor: pointer; box-shadow: 4px 4px 0 var(--forest-700); }
.btn:hover { background: var(--mint); }
.btn:active { translate: 2px 2px; box-shadow: 2px 2px 0 var(--forest-700); }
.btn.ghost { background: transparent; color: var(--mint); border: 2px solid var(--mint); box-shadow: none; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.event { display: flex; flex-direction: column; text-decoration: none; background: var(--panel-2); border: 2px solid var(--line); }
.event:hover, .proj:hover, .lab:hover, .guild:hover, .post:hover { border-color: var(--green); }
.event-banner { aspect-ratio: 16 / 9; background: #0a0d0b; display: grid; place-items: center; overflow: hidden; font: 600 14px var(--f-pixel); color: var(--muted); text-transform: uppercase; }
.event-banner img { width: 100%; height: 100%; object-fit: cover; }
.event-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.event-date { font: 500 12px/1.2 var(--f-mono); color: var(--green); }
.event-body b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.build-cols { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 22px; }
.cork { background: #8a5f34; border: 6px solid #5a3a1e; padding: 12px; display: grid; gap: 10px; }
.pin-note { display: block; background: var(--paper); color: var(--ink); padding: 8px 10px 10px; text-decoration: none; transform: rotate(var(--r)); box-shadow: 2px 3px 0 rgba(0,0,0,.25); position: relative; }
.pin-note::before { content: ''; position: absolute; top: -4px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: #d8342b; }
.pin-note b { display: block; font: 700 18px/1.1 var(--f-pixel); color: #b8322f; }
.pin-note small { display: block; margin: 5px 0 3px; color: #475345; font: 600 11px/1.3 var(--f-mono); text-transform: uppercase; }
.pin-note span { font-size: 14px; font-weight: 500; }
.board-foot { margin: 10px 0 0; font: 500 13px/1.3 var(--f-mono); color: var(--muted); }
.guild, .post { display: flex; gap: 12px; padding: 10px; margin-bottom: 10px; text-decoration: none; background: var(--panel-2); border: 2px solid var(--line); }
.crest { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--forest-700); color: var(--mint); font: 700 18px/1 var(--f-pixel); box-shadow: inset 0 0 0 3px var(--forest-950); }
.guild b, .post b { display: block; font-size: 15px; line-height: 1.3; }
.guild small, .post small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.post { flex-direction: column; gap: 2px; }
.post-kind { font: 600 11px/1 var(--f-pixel); color: var(--orange); text-transform: uppercase; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.proj { display: flex; flex-direction: column; text-decoration: none; background: var(--panel-2); border: 2px solid var(--line); }
.proj-shot { aspect-ratio: 16 / 10; overflow: hidden; background: #0a0d0b; display: grid; place-items: center; color: var(--muted); font: 600 14px var(--f-pixel); }
.proj-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.proj-body { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px 12px; align-items: center; }
.proj-body b { font: 700 20px/1.1 var(--f-display); text-transform: uppercase; }
.proj-by { grid-column: 1; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.proj-by img { width: 20px; height: 20px; object-fit: cover; }
.proj-votes { grid-column: 2; grid-row: 1 / span 2; font: 700 16px/1 var(--f-mono); color: var(--green); border: 2px solid var(--forest-700); padding: 8px 10px; }
.labs-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.lab { display: flex; flex-direction: column; gap: 3px; text-decoration: none; background: var(--panel-2); border: 2px solid var(--line); padding: 0 0 10px; }
.lab img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; margin-bottom: 6px; }
.lab b, .lab small { padding: 0 10px; }
.lab b { font: 600 15px/1.2 var(--f-mono); color: var(--mint); }
.lab small { color: var(--muted); font-size: 13px; line-height: 1.35; }


@media (max-width: 760px) {
  .build-cols { grid-template-columns: 1fr; }
  .panel-head { flex-wrap: wrap; gap: 10px; }
  .panel-logo { height: 40px; }
  .hold:has(.panel) { padding-left: 10px; padding-right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy { opacity: 1 !important; }
}

/* The real screenshots stay crisp inside angular, mint-edged community windows. */
.panel { background: linear-gradient(145deg, rgba(13,25,18,.98), rgba(9,16,12,.98)); box-shadow: inset 0 0 0 5px #142e20; }
.panel::before { content: ''; position: absolute; left: 16px; top: 10px; width: 52px; height: 2px; background: var(--mint); opacity: .7; }
.panel-head { border-bottom: 1px solid #264733; padding: 0 0 14px; }
.panel-logo { image-rendering: auto; }
.panel-intro p { font-size: 14px; line-height: 1.6; max-width: 84ch; }
.panel-sub { font-size: 17px; margin: 25px 0 13px; }
.proj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.event, .proj, .lab { min-width: 0; background: #0b1510; border: 1px solid #488b68; box-shadow: inset 0 0 0 5px #11251b; padding: 9px; transition: border-color .2s, background-color .2s; }
.event:hover, .proj:hover, .lab:hover { background: #163322; }
.proj-shot, .event-banner { border: 1px solid #31513d; border-radius: 6px; }
.proj-shot { aspect-ratio: 16 / 12; }
.proj-body { padding: 11px 3px 3px; gap: 5px 8px; }
.proj-body b { font-size: 25px; overflow-wrap: anywhere; }
.proj-by { color: #a1c8b0; }
.proj-votes { padding: 7px 8px; font: 700 17px/1 var(--f-pixel); border: 1px solid #559273; border-radius: 3px; }
.event-body { padding: 12px 3px 3px; }
.event-date { line-height: 1.4; }
.event-body b { font-size: 15px; }
.labs-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lab { gap: 5px; }
.lab img { border-radius: 4px; }
.lab b, .lab small { padding: 0 2px; }
.cork { background: repeating-linear-gradient(45deg,#8a653b 0 2px,#846039 2px 4px); border-color: #ad8150 #654424 #654424 #ad8150; box-shadow: 3px 4px 0 #040705; }
.guild, .post { border-width: 1px; background: #11251b; padding: 13px; }
.guild { align-items: center; gap: 16px; }
.guild .crest { width: 88px; height: 88px; flex: 0 0 88px; background: #080f0b; border: 1px solid #3e6750; box-shadow: none; padding: 4px; overflow: hidden; }
.guild .crest img { display: block; width: 78px; height: 78px; max-width: 100%; max-height: 100%; object-fit: cover; }
.guild-copy { min-width: 0; overflow-wrap: anywhere; }
.guild small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
@media (max-width: 380px) {
  .guild { gap: 12px; }
  .guild .crest { width: 64px; height: 64px; flex-basis: 64px; }
  .guild .crest img { width: 54px; height: 54px; }
}
.guild small, .post small { color: #acc3b4; }
.btn { min-height: 44px; }
@media (min-width: 1280px) {
  .p-ship .proj-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .p-ship .panel-head { margin-bottom: 12px; }
}
@media (max-width: 760px) {
  .hold:has(.panel) { padding-top: 54vh; }
  .panel-head { gap: 12px; flex-wrap: nowrap; align-items: center; }
  .panel-head h2 { gap: 7px; flex-wrap: wrap; font-size: 29px; }
  .panel-head h2 small { font-size: 20px; }
  .panel-logo { height: 36px; max-width: 95px; }
  .panel-intro h3 { font-size: 26px; }
  .panel-intro p { font-size: 13px; }
  .proj-grid, .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .proj, .event { padding: 6px; }
  .proj-shot { aspect-ratio: 1; }
  .proj-body { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .proj-body b { font-size: 20px; }
  .proj-by { font-size: 10px; overflow-wrap: anywhere; gap: 4px; }
  .proj-by img { width: 17px; height: 17px; }
  .proj-votes { grid-column: 1; grid-row: auto; justify-self: start; font-size: 13px; padding: 4px 7px; }
  .event-date { font-size: 10px; }
  .event-body b { font-size: 12px; }
  .labs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lab b { font-size: 13px; overflow-wrap: anywhere; }
  .lab small { font-size: 11px; }
}
@media (max-width: 350px) { .proj-grid, .event-grid { grid-template-columns: 1fr; } }

.panel-kicker { color: var(--mint); font: 600 17px/1.2 var(--f-pixel); }
.panel-link { margin-left: auto; color: var(--mint); font: 600 17px/1.2 var(--f-pixel); text-decoration: none; padding: 10px 0 10px 16px; white-space: nowrap; }
.panel-link:hover { color: var(--green); text-decoration: underline; }
.p-ship .panel-logo { max-width: 106px; height: 37px; }
.p-ship .panel-head { gap: 14px; }
.p-ship .panel-head h2 { font-size: 36px; }
@media (max-width: 960px) { .panel-kicker { display: none; } }
@media (max-width: 760px) {
  .p-ship .panel-head { flex-wrap: wrap; gap: 8px 12px; }
  .p-ship .panel-head h2 { font-size: 30px; }
  .p-ship .panel-logo { height: 32px; max-width: 100px; }
  .panel-link { width: 100%; margin: 0; padding: 5px 0; font-size: 15px; }
}
