@font-face {
  font-family: Minecraft;
  src: url("assets/fonts/Minecraft-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Minecraft;
  src: url("assets/fonts/Minecraft-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --cream: #fff2d8;
  --muted: #b7b6a1;
  --copper: #f79b60;
  --mint: #83c8a6;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: #151c17; scroll-behavior: smooth; }
body { margin: 0; color: var(--cream); font-family: Minecraft, monospace; font-size: 16px; line-height: 1.4; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img, canvas { image-rendering: pixelated; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid #fff2a6; outline-offset: 6px; }
.world, .world-shade { position: fixed; inset: 0; pointer-events: none; }
.world {
  background: #303728 url("assets/background/panorama_0.png") center 53% / cover no-repeat;
  image-rendering: pixelated;
}
.world-shade { background: linear-gradient(90deg, #101810eb 0%, #152018bd 38%, #19221840 75%), linear-gradient(0deg, #101510ed, #13231c17 68%, #161d16a3); }
.site-shell { position: relative; overflow: hidden; max-width: 1600px; min-height: 100svh; margin: auto; padding: 0 clamp(24px, 5.5vw, 100px); display: flex; flex-direction: column; }
.header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #eee5c420; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; text-shadow: 2px 2px #101910; }
.brand img { flex: none; }
.edition { display: flex; align-items: center; gap: 16px; color: #d2d6c5; font-size: 14px; }
.edition i { font-style: normal; color: #8c9681; }
.edition [data-ticker] { color: var(--copper); }
.hero { flex: 1; display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; min-height: 650px; padding: 55px 0 48px; gap: 0; }
.hero-copy { position: relative; z-index: 2; }
.item-label { display: flex; align-items: center; gap: 12px; color: #b2c6ad; font-size: 12px; letter-spacing: 1.5px; margin-bottom: 24px; }
.item-label img { transform: rotate(-7deg); }
h1 { display: flex; flex-direction: column; align-items: flex-start; font-size: clamp(64px, 8vw, 120px); line-height: 1.1; letter-spacing: -2px; margin: 0 0 22px; font-weight: 700; text-shadow: 0 5px #754b2f, 5px 5px #162013, 7px 9px #101a10; }
h1 span { max-width: 100%; overflow-wrap: anywhere; }
h1 .copper-word { color: var(--copper); text-shadow: 0 5px #8d412c, 5px 5px #162013, 7px 9px #101a10; }
.ticker-row { display: flex; align-items: center; gap: 17px; margin-top: 16px; width: min(410px, 90%); }
.ticker-tag { display: inline-block; color: #b3e1c3; font-size: 27px; line-height: 1.2; }
.ticker-rule { flex: 1; height: 2px; background: #acd7af37; max-width: 122px; }
.intro { font-size: clamp(18px, 1.7vw, 22px); margin: 20px 0 34px; color: #e1dfc7; text-shadow: 2px 2px #101710; }
.links { display: flex; align-items: stretch; gap: 10px; max-width: 510px; }
.game-button {
  image-rendering: pixelated;
  border: 0;
  border-image: url("assets/ui/button.png") 3 fill / 6px / 0 stretch;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 20px;
  font-size: 18px;
  color: #fff;
  text-shadow: 2px 2px #333;
  box-shadow: 0 5px 0 #080d08;
  transition: transform 100ms, filter 100ms;
  white-space: nowrap;
  cursor: pointer;
}
.game-button:hover, .game-button:focus-visible { border-image-source: url("assets/ui/button_highlighted.png"); color: #ffffbd; transform: translateY(-2px); }
.game-button:active { transform: translateY(3px); box-shadow: 0 2px 0 #080d08; }
.game-button[aria-disabled="true"] { cursor: default; }
.game-button[aria-disabled="true"] .link-arrow { opacity: .3; }
.pump-button { flex: 1.75; }
.game-button[data-link="dex"] { flex: 1; }
.x-button { flex: .65; min-width: 76px; }
.link-arrow { font-family: Minecraft, monospace; color: #dddccc; font-size: 15px; margin-left: auto; }
.contract { display: flex; align-items: center; gap: 12px; width: min(510px, 100%); margin-top: 23px; padding: 14px 12px 13px 15px; background: #0a120dc4; border: 2px solid #86937740; box-shadow: inset 0 2px #02070388; min-height: 49px; }
.contract-label { color: #a8b6a0; font-size: 13px; padding-right: 12px; border-right: 1px solid #aab59a40; }
.contract code { font-family: Minecraft, monospace; font-size: 12px; color: #d1d7c7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; user-select: all; }
.contract button { flex: none; border: 0; padding: 3px 0 3px 8px; background: transparent; color: #d3ab80; font-size: 12px; cursor: pointer; }
.contract button:hover { color: #fff2ba; }
.contract button:disabled { color: #71806c; cursor: default; }
.notice { min-height: 18px; margin: 10px 0 0; color: #c9d0bc; max-width: 510px; font-size: 12px; }
.hero-art { position: relative; width: 112%; max-width: 650px; margin-left: -2%; aspect-ratio: 600/640; align-self: center; }
.ore-glow { position: absolute; inset: 8% 4% 12%; background: radial-gradient(ellipse, #fcc77836 0, #d7a0570a 55%, transparent 70%); }
#ore-scene { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 25px 14px #0006); animation: island-float 6s ease-in-out infinite; }
.raw-copper { position: absolute; width: 36%; height: auto; top: 0; left: 32%; filter: drop-shadow(0 15px 8px #10160b50) drop-shadow(0 0 24px #e2c38422); animation: copper-float 5s ease-in-out infinite; }
.floating-piece { position: absolute; animation: item-float 6s ease-in-out infinite reverse; filter: drop-shadow(4px 6px #0005); }
.piece-one { left: 12%; top: 37%; transform: rotate(-15deg); }
.piece-two { right: 3%; top: 17%; animation-delay: -2s; }
.footer { min-height: 80px; border-top: 1px solid #eee5c420; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #8e9e85; font-size: 12px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-ticker { color: #be9c77; margin-left: 5px; }
.footer p { text-align: right; font-size: 10px; }
.noscript { position: fixed; bottom: 0; padding: 12px; background: #111; color: #fff; }
@keyframes item-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -16px; } }
@keyframes copper-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -20px; } }
@keyframes island-float { 0%,100% { translate: 0 0; } 50% { translate: 0 7px; } }
@media (min-width: 1500px) { .hero { min-height: 760px; } }
@media (max-width: 1050px) {
  .site-shell { padding-inline: 32px; }
  .hero { grid-template-columns: 1.1fr 1fr; min-height: 680px; }
  h1 { font-size: clamp(65px, 8vw, 86px); }
  .hero-art { margin-left: -12%; width: 122%; }
  .links { gap: 8px; }
  .game-button { padding-inline: 13px; font-size: 15px; }
  .game-button img { width: 22px; height: 22px; }
  .intro { font-size: 18px; }
}
@media (max-width: 760px) {
  .site-shell { padding-inline: 24px; overflow: hidden; }
  .header { min-height: 80px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .edition { font-size: 12px; gap: 10px; }
  .edition > span:first-child, .edition i { display: none; }
  .world { background-position: 62% center; }
  .world-shade { background: linear-gradient(0deg, #111b13f5 0%, #18221a94 55%, #111b139e); }
  .hero { display: flex; flex-direction: column; min-height: auto; padding: 38px 0 20px; gap: 0; }
  .hero-copy { width: 100%; text-align: center; display: contents; }
  .item-label { justify-content: center; font-size: 10px; letter-spacing: 1px; margin-bottom: 15px; order: 0; }
  .item-label img { width: 22px; height: 22px; }
  h1 { align-items: center; font-size: clamp(50px, 12vw, 86px); line-height: 1.13; letter-spacing: -1px; margin-bottom: 0; order: 1; }
  .ticker-row { justify-content: center; width: 100%; margin-top: 16px; order: 2; }
  .ticker-rule { display: none; }
  .ticker-tag { font-size: 24px; }
  .hero-art { order: 3; width: min(440px, 114%); margin: 16px -7% 12px; flex-shrink: 0; }
  .piece-one { width: 34px; height: 34px; }
  .piece-two { width: 24px; height: 24px; right: 9%; }
  .intro { order: 4; font-size: 17px; margin: 0 0 24px; text-align: center; }
  .links { order: 5; width: 100%; max-width: 480px; }
  .game-button { min-height: 55px; font-size: 16px; padding: 11px 14px; gap: 7px; }
  .x-button { min-width: 64px; }
  .contract { order: 6; margin-top: 23px; max-width: 480px; }
  .notice { order: 7; text-align: center; }
  .footer { padding: 22px 0; min-height: 94px; flex-direction: column; justify-content: center; gap: 12px; }
  .footer p { margin: 0; text-align: center; font-size: 9px; }
}
@media (max-width: 370px) {
  .site-shell { padding-inline: 16px; }
  .game-button { font-size: 14px; padding-inline: 11px; }
  .game-button img { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
