/* STR Home — landlord.cash
   8-bit light theme. White paper. Light green + light blue accents.
   Chunky pixel borders. No dark mode. No glass. No blur. */

:root {
  --paper: #ffffff;
  --ink: #1b1b24;
  --muted: #5c5c6b;
  --green: #8ef5a8;
  --green-2: #b6ffc9;
  --green-deep: #217a3a;
  --blue: #8ec8ff;
  --blue-2: #c6e4ff;
  --blue-deep: #1f5ea8;
  --line: #1b1b24;
  --well: #f4f9ff;
  --well-g: #f1fff5;
  --alert: #e23d3d;
  --gold: #f5d76e;
  --shadow: 6px 6px 0 #1b1b24;
  --shadow-sm: 4px 4px 0 #1b1b24;
  --px: 4px;
  --font-ui: "Press Start 2P", ui-monospace, monospace;
  --font-body: "Silkscreen", "Press Start 2P", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  min-height: 100%;
  color-scheme: light;
  text-transform: uppercase;
}

html {
  scrollbar-width: none;
}
html::-webkit-scrollbar { width: 0; height: 0; display: none; }
body {
  scrollbar-width: none;
}
body::-webkit-scrollbar { width: 0; height: 0; display: none; }

body {
  background-color: #6eac4a;
  background-image: url("../img/village-bg.png?v=t-edit");
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

img.pixel,
.pixel {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
}

a { color: var(--blue-deep); text-decoration: none; }
a:hover { color: var(--green-deep); }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.hero-banner,
.sheet,
.gallery-board {
  background: #ffffff;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 18px 18px 12px;
  margin: 18px 0 22px;
}

.gallery-board {
  padding-bottom: 16px;
}

.gallery-board .section-head {
  margin-top: 0;
  align-items: center;
}

#gallery-range {
  line-height: 1;
  display: flex;
  align-items: center;
  align-self: center;
}

.hero-banner .kicker { margin-top: 0; }
.hero-banner .hud { margin-bottom: 16px; }
.hero-banner .note { margin-bottom: 8px; }

/* ----- header ----- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
.top {
  background: #ffffff;
  border-bottom: 4px solid var(--ink);
}

.top-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  min-width: 0;
}

.brand:hover { color: var(--ink); }

.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
  background: transparent;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; gap: 4px; }

.brand-name {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-dom {
  font-family: var(--font-ui);
  font-size: 7px;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

nav.main {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

nav.main a {
  font-family: var(--font-ui);
  font-size: 9px;
  color: var(--ink);
  border: 4px solid transparent;
  padding: 8px 10px;
  background: transparent;
}

nav.main a:hover {
  background: var(--blue-2);
  border-color: var(--ink);
  color: var(--ink);
}

nav.main a.active {
  background: var(--green);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.wallet-wrap { position: relative; margin-left: auto; }

.btn {
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1.3;
  border: 4px solid var(--ink);
  background: var(--green);
  color: var(--ink);
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: inline-block;
  text-align: center;
}

.btn:hover { background: var(--green-2); color: var(--ink); }

.btn:active,
.btn.is-down {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn-blue {
  background: var(--blue);
}
.btn-blue:hover { background: var(--blue-2); }

.btn-ghost {
  background: #fff;
}
.btn-ghost:hover { background: var(--well); }

.btn[disabled],
.btn.is-disabled {
  background: #e6e6ea;
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  min-width: 240px;
  z-index: 50;
  display: none;
}

.menu.open { display: block; }

.menu button,
.menu a.row {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 4px solid var(--ink);
  font-family: var(--font-ui);
  font-size: 9px;
  padding: 12px 14px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.4;
}

.menu button:last-child,
.menu a.row:last-child { border-bottom: 0; }

.menu button:hover,
.menu a.row:hover { background: var(--blue-2); color: var(--ink); }

.menu .danger:hover { background: #ffd6d6; }

.menu .status {
  margin: 0;
  padding: 10px 14px;
  min-height: 0;
  border-top: 4px solid var(--ink);
}


.addr {
  font-family: var(--font-ui);
  font-size: 9px;
}

/* ----- hero / cards ----- */
.banner-frame {
  margin: 20px 0 18px;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  background: #fff;
  overflow: hidden;
}

.banner-frame img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  background: #fff;
}

.contract-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  background: #fff;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 8px 12px;
  margin: 0 0 18px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--ink);
  user-select: none;
  width: 100%;
  max-width: 100%;
  position: relative;
  box-sizing: border-box;
}
.contract-chip:active {
  transform: none;
  box-shadow: var(--shadow-sm);
}
.contract-chip:hover { background: var(--well-g); }
.contract-chip:focus,
.contract-chip:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 2px;
}
.contract-chip-label {
  flex-shrink: 0;
}
.contract-addr {
  font-size: 8px;
  letter-spacing: 0;
  word-break: break-all;
  min-width: 0;
  flex: 1;
}
.contract-copy-icon {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
}
.contract-copy-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}
.contract-copied {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-ui);
  font-size: 7px;
  color: var(--green-deep);
  letter-spacing: 0.08em;
  pointer-events: none;
  white-space: nowrap;
}
.contract-chip.is-copied .contract-copy-icon { visibility: hidden; }
.contract-chip.is-copied .contract-copied { display: block; }

.kicker {
  font-family: var(--font-ui);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--blue-deep);
  margin: 8px 0 10px;
}

h1, h2, h3 {
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.45;
  margin: 0 0 12px;
}

h1 { font-size: 16px; }
h2 { font-size: 13px; }
h3 { font-size: 11px; }

.lede {
  font-size: 20px;
  max-width: 42em;
}

.hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 16px;
}

.hud-burn {
  grid-column: 1 / -1;
  min-height: 0;
}

.hud-card {
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 14px 14px 12px;
  background: #fff;
  min-height: 118px;
}

.hud-card.g { background: var(--well-g); }
.hud-card.b { background: var(--well); }

.hud-label {
  font-family: var(--font-ui);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
}

.hud-value {
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.3;
  word-break: break-word;
}

.hud-sub {
  font-family: var(--font-ui);
  font-size: 8px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}

.note {
  border: 4px solid var(--ink);
  background: var(--gold);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
  font-size: 16px;
  margin: 8px 0 24px;
}

.note strong {
  font-family: var(--font-ui);
  font-size: 9px;
  display: block;
  margin-bottom: 6px;
}

.progress {
  margin: 6px 0 22px;
  border: 4px solid var(--ink);
  height: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.progress > span,
#mint-bar {
  display: block;
  height: 100%;
  background: var(--green);
  width: 0%;
}

/* ----- gallery ----- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 14px;
  border-bottom: 4px solid var(--ink);
  padding-bottom: 8px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}

.home-card {
  margin: 0;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  background: #fff;
  padding: 3px;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}

.home-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
  background: #fff;
  display: block;
}

.home-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-family: var(--font-ui);
  font-size: 6px;
  text-align: center;
  margin: 0;
  padding: 3px 2px 2px;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.92);
  line-height: 1.2;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 8px;
}

.pager-label {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.06em;
}

/* ----- mint ----- */
.panel {
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 18px;
  max-width: 560px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  border-bottom: 4px solid #e8e8ee;
  padding: 10px 0;
  font-size: 16px;
}

.row:last-child { border-bottom: 0; }

.row .k {
  font-family: var(--font-ui);
  font-size: 9px;
  color: var(--muted);
}

.row .v {
  font-family: var(--font-ui);
  font-size: 11px;
  text-align: right;
}

label.qty {
  display: block;
  font-family: var(--font-ui);
  font-size: 9px;
  margin: 14px 0 8px;
}

input[type="number"],
input[type="text"] {
  font-family: var(--font-ui);
  font-size: 16px;
  border: 4px solid var(--ink);
  padding: 10px 12px;
  width: 100%;
  background: var(--well);
  color: var(--ink);
  box-shadow: inset 3px 3px 0 #d7e8ff;
  outline: none;
}

input:focus { background: #fff; }

.mint-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}

nav.main.mint-docs {
  flex: 0 0 auto;
  align-items: center;
}

nav.main.mint-docs a {
  border: 4px solid var(--ink);
  background: var(--paper);
}

.status {
  font-family: var(--font-ui);
  font-size: 9px;
  line-height: 1.5;
  margin-top: 14px;
  min-height: 1.5em;
}

.status.ok { color: var(--green-deep); }
.status.err { color: var(--alert); }

/* ----- docs ----- */
.docs p { max-width: 46em; }

.docs h2 {
  margin-top: 28px;
  padding: 8px 10px;
  background: var(--blue-2);
  border: 4px solid var(--ink);
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

.docs h3 { margin-top: 18px; color: var(--green-deep); }

table.px {
  width: 100%;
  border-collapse: collapse;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-sm);
  background: #fff;
  margin: 12px 0 22px;
  font-size: 16px;
}

table.px th,
table.px td {
  border: 2px solid var(--ink);
  padding: 8px 10px;
  text-align: left;
}

table.px th {
  font-family: var(--font-ui);
  font-size: 8px;
  letter-spacing: 0.08em;
  background: var(--green);
}

table.px tr:nth-child(even) td { background: var(--well); }

code, .mono {
  font-family: var(--font-ui);
  font-size: 11px;
}

.callout {
  border: 4px solid var(--ink);
  background: var(--well-g);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  margin: 14px 0;
}

.callout.blue { background: var(--well); }

/* ----- holdings empty ----- */
.empty {
  border: 4px dashed var(--ink);
  padding: 36px 18px;
  text-align: center;
  background: var(--well);
}

.empty p { margin: 0 0 16px; }

.share-box {
  border: 4px solid var(--ink);
  background: var(--well-g);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 20px;
}

/* ----- footer ----- */
footer.site {
  margin-top: 48px;
  border-top: 4px solid var(--ink);
  background: #fff;
  padding: 18px 16px 28px;
}

.foot-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.foot-brand {
  display: flex;
  gap: 10px;
  align-items: center;
}

.foot-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}

.foot-socials {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 8px;
}

.foot-social {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  flex-shrink: 0;
}

.foot-social:hover {
  background: var(--green);
  color: var(--ink);
}

.foot-social svg {
  display: block;
  image-rendering: pixelated;
}

.fine {
  font-family: var(--font-ui);
  font-size: 8px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 52em;
}

/* ----- 8-bit corners ----- */
.px-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sq {
  width: 12px;
  height: 12px;
  background: var(--green);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--blue);
  flex-shrink: 0;
}

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

@media (max-width: 780px) {
  .hud { grid-template-columns: 1fr; }
  .hud-value { font-size: 16px; }
  h1 { font-size: 14px; }
  nav.main { order: 3; width: 100%; }
  .wallet-wrap { margin-left: 0; }
  .top-inner { gap: 10px; }
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .brand-name { font-size: 10px; }
}

#account-btn,
.no-caps,
code {
  text-transform: none;
}

/* ----- preview / not-live ----- */
.live-banner {
  background: var(--gold);
  color: var(--ink);
  border-bottom: 4px solid var(--line);
  font-family: var(--font-ui);
  font-size: 10px;
  text-align: center;
  padding: 10px;
  line-height: 1.4;
}

.contract-chip.is-placeholder {
  cursor: default;
  pointer-events: none;
}
.contract-chip.is-placeholder:hover,
.contract-chip.is-placeholder:active,
.contract-chip.is-placeholder:focus,
.contract-chip.is-placeholder:focus-visible {
  background: #fff;
  outline: none;
  box-shadow: var(--shadow-sm);
  transform: none;
}
.contract-chip.is-placeholder .contract-copy-icon {
  display: none;
}
