/* normalize.css v8.0.1 + Typebase.less v0.1.0 | MIT License | compress csso | add .lead **/
html{line-height:1.15;-webkit-text-size-adjust:100%;font-family:serif;font-size:137.5%;-webkit-font-smoothing:antialiased}body{margin:0}details,main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline dotted}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{color:inherit;display:table;max-width:100%;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio],legend{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}[hidden],template{display:none}table{border-spacing:0;border-collapse:collapse}table td,table th{padding:0;line-height:33px}code{vertical-align:bottom}.hug{margin-top:0}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 115%;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #2d3c96;
  background-image: linear-gradient(to bottom right, #2d3c96, #d53392);
  color: #ffd700;
  min-height: 100vh;
  margin: 0;
}

header {
  width: 100%;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem 1rem;
}

header > * {
  flex: 0 0 auto;
  text-align: center;
}

#logo {
  display: block;
  height: auto;
  flex: 0 0 auto;
  align-self: center;
}

#logo img {
  width: 348px;
  max-width: 100%;
  max-height: 60px;
  height: auto;
  object-fit: cover;
}

header a:not(#logo) svg {
  width: 16px;
  height: 16px;
  display: block;
}

header span {
  flex: 1 1 14rem;
  min-width: 0;
}

#connect-wallet {
  margin-left: auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p {
  margin: 0;
  line-height: 1.7;
}

ol,
ul {
  margin: 0;
  padding-left: 1.4rem;
}

li {
  line-height: 1.6;
  margin-bottom: 0;
}

blockquote {
  margin: 0;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 800;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 3vw + 1.2rem, 3.6rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2.1rem, 2.5vw + 1rem, 2.8rem);
  line-height: 1.2;
}

.article-page h2,
.personalize-page h2,
.mint-page h2 {
  margin-top: 2rem;
}

h3 {
  font-size: clamp(1.6rem, 1.5vw + 1rem, 2rem);
  line-height: 1.3;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.35;
}

h5 {
  font-size: 1.05rem;
  line-height: 1.4;
}

h6 {
  font-size: 0.95rem;
  line-height: 1.4;
}

.lead {
  font-size: 1.414rem;
}

.btn {
  background: none;
  border-radius: 0.5rem;
  border: 2px solid #ffd700;
  box-shadow: 4px 6px 4px rgba(255, 255, 255, 0.2);
  color: #ffd700;
  padding: 10px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  box-shadow: 3px 6px 10px #999;
}

.btn:active {
  position: relative;
  left: 2px;
  top: 2px;
  box-shadow: 1px 4px 10px #555;
}

.btn-lg {
  font-size: 2rem;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

input[type="text"] {
  font-size: 115%;
  width: 100%;
}

input[type="number"],
input[type="url"],
input[type="file"],
textarea,
select {
  font-size: 115%;
  max-width: 100%;
}

input[type="text"],
input[type="number"],
input[type="url"],
input[type="file"],
textarea,
select {
  width: 100%;
}

textarea {
  min-height: 10rem;
  resize: vertical;
}

input#square-number,
input#top-left-square-number {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  max-width: 10rem;
}

article {
  margin: 1rem auto;
  width: 100%;
  max-width: 1004px;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

footer {
  width: min(90%, 1200px);
  margin: 3rem auto 1rem;
  padding: 2rem;
  text-align: center;
}

hr {
  width: min(100%, 95%);
  border: none;
  border-top: 2rem solid rgba(0, 0, 0, 0.2);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

#tooltip,
.map-tooltip {
  background: rgba(255, 255, 255, 0.8);
  width: min(220px, calc(100% - 1rem));
  min-width: min(150px, calc(100% - 1rem));
  position: absolute;
  pointer-events: none;
  display: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 12px;
  border-radius: 10px;
  padding: 10px;
  color: black;
  z-index: 20;
}

a:link,
a:visited,
a:active {
  color: #ffd700;
}

.map-shell {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.map-container {
  width: 100%;
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.map-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.map-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
}

.map-image {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  user-select: none;
  -webkit-user-drag: none;
}

.map-position {
  background: pink;
  opacity: 0.8;
  width: 10px;
  height: 10px;
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
  display: none;
  z-index: 10;
}

.map-stage--touch {
  touch-action: none;
  will-change: transform;
}

.map-shell--touch .map-position {
  background: rgba(74, 163, 255, 0.06);
  border: 2px solid rgba(132, 203, 255, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 0 10px rgba(74, 163, 255, 0.35),
    0 0 10px rgba(74, 163, 255, 0.55),
    0 0 18px rgba(74, 163, 255, 0.3);
  filter: drop-shadow(0 0 8px rgba(74, 163, 255, 0.55));
  opacity: 1;
  transform-origin: center center;
  animation: map-position-touch-pulse 1.2s ease-in-out infinite;
}

.map-fence {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-stage .map-tooltip {
  --map-tooltip-base-scale: 1;
  transform: scale(var(--map-tooltip-base-scale));
  transform-origin: top left;
  z-index: 20;
}

@keyframes map-position-touch-pulse {
  0%,
  100% {
    background: rgba(74, 163, 255, 0.04);
    border-color: rgba(74, 163, 255, 0.68);
    transform: scale(0.96);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.18),
      inset 0 0 6px rgba(74, 163, 255, 0.16),
      0 0 6px rgba(74, 163, 255, 0.22),
      0 0 12px rgba(74, 163, 255, 0.1);
    filter: drop-shadow(0 0 5px rgba(74, 163, 255, 0.18));
  }

  50% {
    background: rgba(74, 163, 255, 0.1);
    border-color: rgba(132, 203, 255, 1);
    transform: scale(1.12);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.9),
      inset 0 0 12px rgba(74, 163, 255, 0.55),
      0 0 16px rgba(74, 163, 255, 1),
      0 0 30px rgba(74, 163, 255, 0.82),
      0 0 46px rgba(74, 163, 255, 0.46);
    filter: drop-shadow(0 0 14px rgba(74, 163, 255, 0.9));
  }
}

.map-panzoom-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 15;
  width: min(80%, 420px);
  max-width: 80%;
  padding: 2.4vw 3.2vw;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  color: #ffd700;
  font-size: 3.7vw;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.map-panzoom-hint.is-hidden {
  opacity: 0;
}

.map-panzoom-reset {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  z-index: 15;
  margin: 0;
  padding: 2vw 3.7vw;
  background: rgba(0, 0, 0, 0.78);
  border: 2px solid #ffd700;
  border-radius: 0.75rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  display: block;
  cursor: pointer;
  font-size: 3.3vw;
  color: #ffd700;
  opacity: 1;
  pointer-events: none;
}

.map-panzoom-reset.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.map-panzoom-reset:not(.is-visible) {
  opacity: 0;
}

.map-panzoom-reset:hover {
  background: rgba(0, 0, 0, 0.9);
}

.newly-feed {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.newly-feed__section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.newly-feed__heading {
  font-size: 1.1rem;
}

.newly-feed__items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newly-feed__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  min-width: 0;
}

.newly-feed__thumb {
  display: inline-block;
  width: 10px;
  height: 10px;
  zoom: 5;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-size: 1000px 1000px;
  image-rendering: pixelated;
}

#mint-selected-square,
#pick-a-square,
#receipts {
  width: 100%;
}

.mint-page p,
.personalize-page p {
  margin: 0;
}

.personalize-page article {
  gap: 0.6rem;
}

.personalize-page #receipts,
.mint-page #receipts {
  overflow-wrap: anywhere;
}

#preflight-output {
  min-height: 12rem;
}

#image-preview {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.square-page {
  align-items: center;
}

.square-page h1,
.square-page h2 {
  text-align: center;
}

.square-page #image {
  display: inline-block;
}

.square-metadata {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  border: 1px solid #ffd700;
}

.square-metadata dt,
.square-metadata dd {
  margin: 0;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #ffd700;
}

.square-metadata dt {
  border-right: 1px solid #ffd700;
  font-weight: 700;
}

.square-metadata dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.square-metadata dt:last-of-type,
.square-metadata dd:last-of-type {
  border-bottom: none;
}

.square-location-map {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.square-location-map__image {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.square-location-map__arrow {
  position: absolute;
}

.square-emojified {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  text-align: center;
  line-height: calc(1em + 0.25rem);
}

#copy-emojified {
  width: 150px;
  margin: 0 auto;
  font-size: 1rem;
}

#mint-selected-square,
#pick-a-square,
#receipts {
  width: 100%;
}

.mint-page p,
.personalize-page p {
  margin: 0;
}

.personalize-page article {
  gap: 0.6rem;
}

.personalize-page #receipts,
.mint-page #receipts {
  overflow-wrap: anywhere;
}

#preflight-output {
  min-height: 12rem;
}

#image-preview {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.square-page {
  align-items: center;
}

.square-page h1,
.square-page h2 {
  text-align: center;
}

.square-page #image {
  display: inline-block;
}

.square-metadata {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  border: 1px solid #ffd700;
}

.square-metadata dt,
.square-metadata dd {
  margin: 0;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #ffd700;
}

.square-metadata dt {
  border-right: 1px solid #ffd700;
  font-weight: 700;
}

.square-metadata dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.square-metadata dt:last-of-type,
.square-metadata dd:last-of-type {
  border-bottom: none;
}

.square-location-map {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.square-location-map__image {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.square-location-map__arrow {
  position: absolute;
}

.square-emojified {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  text-align: center;
  line-height: calc(1em + 0.25rem);
}

#copy-emojified {
  width: 150px;
  margin: 0 auto;
  font-size: 1rem;
}

@media (min-width: 900px) {
  .newly-feed__items {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

@media (max-width: 1007px) {
  html,
  body {
    overflow-x: hidden;
  }

  article {
    gap: 1.75rem;
  }

  article * {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  article table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }

  article pre,
  article code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
  }

  h1 {
    font-size: 2.8rem;
    line-height: 3.1rem;
  }

  h2 {
    font-size: 2.3rem;
    line-height: 2.6rem;
  }

  h3,
  .lead {
    font-size: 1.3rem;
  }
}

@media (max-width: 760px) {
  header {
    justify-content: center;
  }

  header span {
    flex-basis: 100%;
  }

  h1 {
    font-size: 2.6rem;
    line-height: 2.9rem;
  }

  h2 {
    font-size: 2.1rem;
    line-height: 2.4rem;
  }
}

@media (max-width: 520px) {
  html.article-page,
  html.personalize-page,
  html.mint-page {
    font-size: 100%;
  }

  article {
    gap: 2rem;
    padding: 0 0.875rem;
  }

  header {
    padding: 0.875rem;
  }

  #connect-wallet {
    margin-left: 0;
  }

  #logo {
    display: block;
    margin: 0 auto;
  }

  h1 {
    font-size: 2.5rem;
    line-height: 2.8rem;
  }

  h2 {
    font-size: 1.8rem;
    line-height: 2.1rem;
  }

  h3,
  .lead {
    font-size: 1.2rem;
  }

  .btn-lg {
    font-size: 1.5rem;
  }

  .square-metadata dt,
  .square-metadata dd {
    padding: 0.85rem 1rem;
  }

  footer {
    width: min(100%, 1004px);
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 450px) {
  .newly-feed {
    grid-template-columns: 1fr;
  }

  .map-tooltip {
    min-width: 0;
  }
}

@media (min-width: 701px) {
  .map-panzoom-hint {
    padding: 0.55rem 0.8rem;
    font-size: 1rem;
  }

  .map-panzoom-reset {
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 2.2rem;
    line-height: 2.5rem;
  }

  h2 {
    font-size: 1.6rem;
    line-height: 1.9rem;
  }
}
