/*! 4P3X AI™ · Clean Kyzel Kreates™ Code · Public Showcase · © 2026 Kyzel Kreates™ */
* {
  box-sizing: border-box;
}

body {
  --bg: #101921;
  --panel: #192a32;
  --ink: #f0f3eb;
  --muted: #b7c7c8;
  --gold: #e4c285;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 system-ui,sans-serif;
  margin: 0;
}

button,select,input {
  font: inherit;
}

button,select,.import {
  border: 1px solid #537079;
  border-radius: 8px;
  background: #263b45;
  color: var(--ink);
  min-height: 44px;
  padding: 9px 14px;
  cursor: pointer;
}

button:hover {
  border-color: var(--gold);
}

button:focus-visible,select:focus-visible,.import:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

button:disabled {
  opacity: .5;
  cursor: default;
}

.primary {
  background: var(--gold);
  color: #12242b;
  font-weight: 650;
}

.subtle {
  background: transparent;
}

.tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

header,main,footer {
  max-width: 1320px;
  margin: auto;
  padding: 24px;
}

header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #354850;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--gold);
  text-transform: uppercase;
}

h1 {
  font-size: 32px;
  margin: 6px 0;
}

h1 span {
  display: block;
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--muted);
}

h2 {
  font-size: 26px;
  margin: 9px 0;
}

p {
  margin: 10px 0 18px;
}

.intro {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}

.intro p {
  font-weight: 600;
}

.intro span {
  font-size: 13px;
  color: var(--gold);
}

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  gap: 24px;
}

aside {
  background: var(--panel);
  padding: 20px;
  border: 1px solid #344851;
  border-radius: 12px;
  font-size: 14px;
  align-self: start;
}

aside select {
  display: block;
  width: 100%;
  margin: 10px 0;
}

.steps {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid #41535a;
  color: var(--muted);
}

.storage {
  margin-top: 22px;
}

.storage h2 {
  font-size: 19px;
}

.storage button,.import {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 13px;
  margin: 9px 0;
}

.import input {
  display: block;
  width: 100%;
  font-size: 11px;
  margin-top: 8px;
}

details {
  border-top: 1px solid #41535a;
  padding-top: 18px;
  margin-top: 20px;
}

summary {
  cursor: pointer;
  color: var(--gold);
}

article {
  border: 1px solid #41555d;
  border-radius: 12px;
  padding: 25px;
  background: #14232c;
  min-width: 0;
}

.scene {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  padding: 22px;
  background: linear-gradient(150deg,#31434e,#1a3034);
  border: 1px solid #566660;
  border-radius: 12px;
  min-height: 260px;
}

.object {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 115px;
  background: #293843;
  border-bottom: 7px solid #657166;
  box-shadow: 0 5px 0 #111d24;
  text-align: center;
  overflow-wrap: anywhere;
}

.object .tile {
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  color: #f6deab;
  min-height: 44px;
}

.object small {
  font-size: 13px;
  color: #d6dfdc;
}

.object[aria-pressed=true] {
  background: #21483e;
  border-color: #84c4ad;
}

.object[aria-pressed=true] small {
  color: #bce0c6;
}

.build {
  margin-top: 22px;
}

.tray {
  min-height: 65px;
  border: 1px dashed #70928f;
  border-radius: 9px;
  padding: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 9px 0 14px;
}

.token {
  border: 1px solid #ccb37e;
  background: #39433d;
  color: #f7e6c3;
  border-radius: 6px;
  padding: 6px 14px;
  font-weight: 600;
}

.hint {
  min-height: 28px;
  color: #e2ceac;
  font-size: 14px;
}

#understand {
  margin-top: 24px;
  padding: 20px;
  background: #203c34;
  border: 1px solid #6b9b85;
  border-radius: 12px;
}

.answers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.answers button {
  background: #254a3c;
}

.answers button[aria-pressed=true] {
  outline: 2px solid var(--gold);
}

#feedback,#apply-feedback {
  min-height: 25px;
  color: #cae5d2;
}

footer {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin-top: 20px;
}

footer small {
  font-size: 11px;
}

.skip {
  position: absolute;
  left: -10000px;
}

.skip:focus {
  left: 10px;
  top: 10px;
  background: #fff;
  color: #000;
  padding: 15px;
  z-index: 10;
}

dialog {
  background: #132730;
  color: var(--ink);
  border: 1px solid #6a8b8b;
  max-width: 480px;
  border-radius: 14px;
  padding: 28px;
}

dialog::backdrop {
  background: #000b;
}

[hidden] {
  display: none !important;
}

.large {
  font-size: 21px;
}

.quiet .scene {
  background: #18282f;
}

.quiet .object {
  box-shadow: none;
  border-bottom-width: 1px;
}

.quiet .steps {
  display: none;
}

@media (max-width:850px) {
  .layout {
    grid-template-columns: 1fr;
  }

  aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }

  .steps {
    display: none;
  }

  .storage,details {
    margin: 0;
  }

  .storage p,.storage h2 {
    display: none;
  }

  header {
    align-items: flex-start;
  }

  article {
    padding: 18px;
  }

}

@media (max-width:540px) {
  header,main,footer {
    padding: 15px;
  }

  header {
    display: block;
  }

  header .tools {
    margin-top: 15px;
  }

  .intro {
    display: block;
  }

  .scene {
    grid-template-columns: repeat(2,minmax(0,1fr));
    padding: 12px;
    gap: 10px;
  }

  .object {
    min-height: 100px;
  }

  .object .tile {
    font-size: 26px;
  }

  aside {
    display: block;
  }

  .storage {
    margin-top: 10px;
  }

  .storage button,.import {
    display: inline-block;
    width: auto;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 23px;
  }

  .layout {
    gap: 15px;
  }

}

@media (prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto;
  }

}

.find-showcase header {
  position: static;
}

.back-link {
  color: #fff;
}

.find-brandmark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.find-brandmark img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 13px;
  border: 1px solid #75643a;
  box-shadow: 0 10px 28px #0007;
}

.find-brandcopy strong,.find-brandcopy small {
  display: block;
}

.find-brandcopy strong {
  font-size: 18px;
  color: #fff;
}

.find-brandcopy small {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width:850px) {
  .find-brandmark {
    margin-bottom: 12px;
  }

}
