  /* Reset-ish */
  :root{
    --bg: #fffaf3;
    --paper: #fffaf3;
    --ink: #1f1f1f;
    --accent-1: #3fb3ff; /* sky */
    --accent-2: #ffac40; /* orange */
    --accent-3: #39e062; /* green */
    --accent-4: #ff6161; /* red */
    --accent-5: #ffb7e0; /* pink */
    --accent-6: #ffe166; /* yellow */
    --muted: #efefef;
    --nav-bg: rgba(95,120,255,0.7);
    --glass: rgba(255,255,255,0.2);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    --gap: 18px;
    --border: #1f1f1f;
    --soft-text: #5a5a5a;
    --muted-surface: #efefef;
  }

  /* DARK MODE */
  :root.dark{
    --bg: #0f0f10;
    --paper: #17181b;
    --ink: #ffffff;
    --accent-1: #2a86c9;
    --accent-2: #c57a2b;
    --accent-3: #2fb34f;
    --accent-4: #d55353;
    --accent-5: #c95aa7;
    --accent-6: #d1ab2e;
    --nav-bg: rgba(0, 183, 255, 0.65);
    --muted: #2a2c31;
    --glass: rgba(255,255,255,0.05);
    --border: #ffbf00;
    --soft-text: #9aa1ad;
    --muted-surface: #23252a;
  }
  
  :root.dark .palette-btn:hover{
  background: #ffc400;
  color: var(--ink);
  }
  
  :root.dark .palette-btn{
  color: var(--ink);
  border-color: var(--border);
  background: var(--paper);
 }

  :root.dark .switch{
    background: #fff;
    border-color: var(--border);
  }

  html,body{
    height:100%;
    margin:0;
    background:var(--bg);
    color:var(--ink);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
  }

  /* page layout */
  .wrap{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    align-items:center;
  }

  /* top nav */
  nav.topnav{
    width:100%;
    max-width:1200px;
    box-sizing:border-box;
    padding:12px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    position:sticky;
    top:18px;
    z-index:40;
    background:var(--nav-bg);
    border:3px solid var(--border);
    border-radius:0; /* blocky */
    margin:0 auto 18px;
  }

  .brand{
    display:flex;
    align-items:center;
    gap:12px;
    user-select:none;
    cursor:pointer;
  }

  .logo-block{
    width:44px;height:44px;
    display:grid;place-items:center;
    border:4px solid var(--border);
    background:var(--accent-2);
    box-sizing:border-box;
  }
  .logo-block > span{
    font-weight:900;
    letter-spacing:0.02em;
    font-size:14px;
  }

  .nav-right{
    display:flex;
    gap:12px;
    align-items:center;
  }

  .palette-btn{
    border:3px solid var(--border);
    padding:6px 10px;
    background:transparent;
    font-weight:700;
    cursor:pointer;
    user-select:none;
  }

  /* switch */
  .switch {
    --w:46px;
    --h:26px;
    width:var(--w);
    height:var(--h);
    border:3px solid var(--border);
    display:inline-block;
    box-sizing:border-box;
    background:var(--paper);
    position:relative;
    cursor:pointer;
  }
  .switch .knob{
    position:absolute;
    top:3px;
    left:3px;
    width:20px;height:20px;
    background:var(--ink);
    transform:translateX(0);
    transition:transform .12s steps(1);
  }
  :root.dark .switch .knob{ transform:translateX(18px); background:var(--paper); }

  /* smooth scrolling */
  html { scroll-behavior: smooth; }

  /* nav-link default style (unless you prefer to style globally) */
  .nav-link {
    display:inline-block;
    color:var(--ink);
    background:transparent;
    transition:opacity .15s ease, transform .15s ease;
    border:3px solid var(--border);
    padding:6px 10px;
    box-sizing:border-box;
    text-transform:uppercase;
    user-select:none;
    font-weight:900;
    margin-right:6px;
    text-decoration:none;
  }
  
  .nav-link:hover{
  opacity:0.7;
  }

  /* the quests block — squarish, heavy border, centered content */
  .quests-block{
    width:100%;
    max-width:1200px;
    margin:24px auto 36px;
    box-sizing:border-box;
    padding:18px;
    border:8px solid var(--border);
    background:var(--paper);
    display:flex;
    justify-content:center;
    align-items:center;
  }

  /* inner content keeps the square vibe */
  .quests-inner{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    padding:6px;
    box-sizing:border-box;
  }

  /* title and placeholder */
  .quests-title{
    font-weight:900;
    letter-spacing:0.08em;
    font-size:20px;
    padding:8px 14px;
    border:6px solid var(--border);
    background:linear-gradient(90deg,var(--accent-2),var(--accent-1));
    text-transform:uppercase;
  }

  .quests-desc{
    font-weight:800;
    font-size:13px;
    padding:6px 10px;
    border:4px solid var(--border);
    background:var(--paper);
    text-align:center;
  }

  .quests-placeholder{
    margin-top:8px;
    padding:18px;
    border:4px dashed var(--border);
    min-height:64px;
    width:90%;
    display:grid;
    place-items:center;
    text-transform:uppercase;
    font-weight:800;
  }


/* QUESTS / MESSAGING shared form UI */
.qb-form{
  width:100%;
  max-width:720px;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
}

.qb-row{
  width:100%;
  display:flex;
  gap:8px;
  align-items:center;
}

.qb-input{
  flex:1;
  width:100%;
  padding:10px 12px;
  border:4px solid var(--border);
  background:var(--paper);
  color:var(--ink);
  font-weight:700;
  box-sizing:border-box;
}

.qb-input::placeholder{
  color:color-mix(in srgb, var(--ink) 55%, transparent);
  opacity:1;
}

.qb-input:focus{
  outline:none;
  box-shadow:0 0 0 4px color-mix(in srgb, var(--accent-1) 35%, transparent);
}

.qb-evm{
  font-family: "Courier New", Courier, monospace;
}

.quest-buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.quest-btn{
  padding:10px 14px;
  border:4px solid var(--border);
  background:linear-gradient(90deg,var(--accent-2),var(--accent-1));
  color:var(--ink);
  font-weight:900;
  text-transform:uppercase;
  cursor:pointer;
  position:relative;
}

.quest-btn[disabled]{
  opacity:0.6;
  cursor:default;
}

.quest-check{
  display:inline-block;
  margin-left:8px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:var(--muted);
  vertical-align:middle;
  border:2px solid var(--border);
  box-sizing:border-box;
}

.quest-check.ok{
  background:#2ecc71;
  box-shadow:0 0 6px rgba(46,204,113,0.55);
}

.countdown{
  font-weight:800;
  font-size:12px;
  margin-left:8px;
  color:var(--ink);
  opacity:0.8;
}

.submit-btn{
  padding:10px 16px;
  border:4px solid var(--border);
  background:var(--paper);
  color:var(--ink);
  font-weight:900;
  cursor:pointer;
}

.submit-btn:hover,
.quest-btn:hover{
  filter:brightness(1.03);
}

.msg{
  padding:10px 12px;
  border:3px solid var(--border);
  background:color-mix(in srgb, var(--paper) 88%, var(--ink) 12%);
  color:var(--ink);
  font-weight:800;
  text-align:center;
  width:100%;
  box-sizing:border-box;
}

.small-muted{
  font-size:12px;
  opacity:0.8;
  text-align:center;
  margin-top:6px;
  color:var(--ink);
}

  /* hero area with blocky stripes */
  .hero{
    width:100%;
    max-width:1200px;
    box-sizing:border-box;
    padding:20px;
    display:flex;
    flex-direction:column;
    gap:18px;
    align-items:stretch;
  }

  .stripes{
    display:grid;
    grid-template-rows: 110px 80px 90px 90px 80px 140px 120px;
    gap:8px;
    border-left:6px solid var(--border);
    border-right:6px solid var(--border);
    border-top:6px solid var(--border);
    border-bottom:6px solid var(--border);
    box-sizing:border-box;
    background:transparent;
  }

  .stripe{
    box-sizing:border-box;
    border:4px solid rgba(0,0,0,0.25);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    font-size:clamp(16px,4vw,22px);
    letter-spacing:0.06em;
  }

  .s1{ background:var(--accent-1); border-color:var(--border);}
  .s2{ background:var(--accent-2); border-color:var(--border);}
  .s3{ background:var(--accent-3); border-color:var(--border);}
  .s4{ background:var(--accent-4); border-color:var(--border);}
  .s5{ background:var(--accent-5); border-color:var(--border);}
  .s6{ background:var(--accent-6); border-color:var(--border);}
  .s7{ background:var(--paper); border-color:var(--ink); }

  /* title block — big, blocky letters made with heavy stroke */
  .title-wrap{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
    margin-top:-32px; /* visually sit over stripes */
  }
  .title{
    font-weight:900;
    font-size:clamp(36px,9.5vw,96px);
    padding:18px 40px;
    border:8px solid var(--border);
    background:linear-gradient(90deg,var(--accent-2) 0 40%, var(--accent-1) 40% 100%);
    color:var(--ink);
    text-transform:uppercase;
    letter-spacing:0.08em;
    box-shadow:none;
    box-sizing:border-box;
    line-height:1;
    user-select:none;
  }
  .subtitle{
    font-weight:900;
    font-size:14px;
    padding:8px 12px;
    border:6px solid var(--border);
    background:var(--paper);
  }

  /* eyeballs row (easter egg). square eyes with square pupils */
  .eyes-row{
    display:flex;
    gap:28px;
    justify-content:center;
    align-items:center;
    margin:6px 0 18px;
  }
  .eye{
    width:86px;height:86px;
    border:6px solid var(--ink);
    background: #ffffff;
    display:grid;
    place-items:center;
    box-sizing:border-box;
    position:relative;
  }
  .pupil{
    width:28px;height:28px;
    background:var(--ink);
    position:absolute;
    left:50%; top:50%;
    transform:translate(-50%,-50%);
    transition: transform .05s steps(1);
    box-sizing:border-box;
  }

  /* footer / callout */
  .cta{
    margin:28px auto;
    padding:18px 22px;
    border:6px solid var(--border);
    display:inline-block;
    background:var(--paper);
    font-weight:800;
    letter-spacing:0.08em;
  }

  /* responsive */
  @media (max-width:640px){
    nav.topnav{ padding:8px 12px; margin-top:8px; }
    .title { padding:14px 20px; font-size:28px; }
    .stripes{ grid-template-rows: 86px 64px 80px 80px 64px 100px 80px; gap:6px; border-width:4px; }
    .eye{ width:64px;height:64px; }
    .pupil{ width:18px;height:18px; }
    .title-wrap{ margin-top:-22px; gap:10px; }
    .cta{ padding:12px 14px; font-size:14px; }
  }

  /* purely decorative square outlines inside stripe (to mimic blokies mouth boxes) */
  .row-boxes{
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:center;
  }
  .row-boxes .box{
    width:48px;height:48px;border:4px solid var(--ink);background:var(--paper);
  }
  /* tiny credit-ish button in lower-right */
  .credit{
    position:fixed;
    right:12px;bottom:12px;
    border:3px solid var(--border);
    padding:6px 8px;
    font-size:12px;
    background:var(--paper);
    user-select:none;
  }
  
  /* -------------------------
  BLOKIES burn UI additions
  (append to your root style.css)
   - preserves original blokies design
   - adds form / card / buttons / spinner / pills
------------------------- */

/* layout wrapper for the new content */
.app .content{
  max-width:1200px;
  margin:6px auto 60px;
  padding:0 18px;
  box-sizing:border-box;
}

/* grid layout that mirrors original max-width */
.grid{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap: var(--gap);
  align-items:start;
}

/* Card: keep blocky heavy border look */
.card{
  background: var(--paper);
  padding: 14px;
  border: 6px solid var(--border);
  box-sizing: border-box;
  border-radius: 6px;
  box-shadow: none;
}

/* section title in the existing heavy style */
.section-title{
  font-weight:900;
  font-size:13px;
  padding:8px 10px;
  border:4px solid var(--border);
  display:inline-block;
  background:var(--paper);
  margin-bottom:10px;
}

/* rows to display labels/values, using same blocky feel */
.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
  border-bottom: 0;
}
.row-label{
  color:var(--ink);
  font-weight:800;
  font-size:13px;
  width:180px;
}
.row-value{
  font-weight:900;
  font-size:15px;
  color:var(--ink);
  text-align:right;
  min-width:0;
}

/* monospaced style for addresses / numbers */
.mono{
  font-family: "Courier New", Courier, monospace;
  font-weight:800;
  font-size:13px;
  color:var(--ink);
}

/* pill (network / small badges) - blocky with border */
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border:4px solid var(--border);
  background:var(--paper);
  border-radius:6px;
  font-weight:900;
  font-size:13px;
}

/* Burn status pill — gradient using existing accents */
.mint-status-pill{
  display:inline-block;
  padding:6px 10px;
  border-radius:6px;
  font-weight:900;
  font-size:13px;
  color:var(--ink);
  border:4px solid var(--border);
  background: linear-gradient(90deg, var(--accent-2) 0 45%, var(--accent-1) 45% 100%);
  box-sizing:border-box;
}

/* primary button - match the blocky theme (bold, thick border) */
button.primary{
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition:opacity .15s ease, transform .15s ease;
  color: var(--ink);
  font-weight:900;
  padding:8px 12px;
  border:6px solid #fff;
  border-radius:6px;
  cursor:pointer;
  box-sizing:border-box;
  text-transform:uppercase;
}
button.primary[disabled]{
  opacity:0.6;
  cursor:not-allowed;
}

button.primary:hover{
  opacity:0.85;
  transform:translateY(-1px);
}

/* secondary button style */
button.secondary{
  background:var(--paper);
  color:var(--ink);
  font-weight:900;
  padding:8px 10px;
  border:6px solid var(--border);
  border-radius:6px;
  cursor:pointer;
  box-sizing:border-box;
}

/* input fields — keep them chunky and bold */
input[type="number"], input[type="text"]{
  padding:8px 10px;
  border-radius:6px;
  border:6px solid var(--border);
  background:var(--paper);
  font-weight:900;
  min-width:140px;
  box-sizing:border-box;
  -moz-appearance: textfield;
}

/* small status area */
#statusMessage{
  margin-top:10px;
  font-weight:800;
  color: var(--ink);
}

/* error style */
.status-error{
  color:var(--accent-4);
  font-weight:900;
}

/* small footer text */
.footer{
  margin-top:18px;
  color:var(--ink);
  font-weight:800;
  font-size:13px;
}

/* spinner used inside buttons (keeps blocky feel by thicker border) */
.spinner{
  display:inline-block;
  width:14px;
  height:14px;
  border-radius:50%;
  border:3px solid rgba(0,0,0,0.12);
  border-top-color: var(--border);
  margin-right:8px;
  animation: spin 0.9s linear infinite;
  box-sizing:border-box;
}
@keyframes spin{ to{ transform:rotate(360deg) } }

/* responsive fallback for small screens */
@media (max-width:980px){
  .grid{ grid-template-columns: 1fr; }
  .row-label{ width:130px; font-size:12px; }
}

/* tiny tweaks to match original nav look when used inside burn page */
.header{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:12px;
}
.header .title{
  font-weight:900;
  font-size:20px;
  letter-spacing:0.06em;
  border:6px solid var(--border);
  padding:8px 12px;
  background:linear-gradient(90deg,var(--accent-2) 0 40%, var(--accent-1) 40% 100%);
  color:var(--ink);
}
.header .subtitle{
  font-weight:900;
  font-size:12px;
  padding:6px 10px;
  border:4px solid var(--border);
  background:var(--paper);
  margin-top:6px;
}

/* keep credit button matching root theme */
.credit{ border:6px solid var(--ink); background:var(--paper); padding:6px 8px; font-weight:900; }

/* make each section act like a full block */
#dappSection{
  display:flex;
  flex-direction:column;
}

/* each direct child becomes a section */
#dappSection > div{
  width:100%;
  padding:18px 0;
  position:relative;
}

/* blokies separator */
#dappSection > div:not(:last-child)::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:10px;
  background: linear-gradient(90deg,var(--accent-2) 0 50%, var(--accent-1) 50% 100%);
  border-top:4px solid var(--border);
  border-bottom:4px solid var(--border);
}

/* Owned modal styles (blocky) */
.owned-modal-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,0.35);
  z-index:1000;
}
.owned-modal{
  position:fixed;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:min(860px,94%);
  max-height:80vh;
  overflow:auto;
  z-index:1001;
  padding:16px;
  border:8px solid var(--border);
  background:var(--paper);
  box-sizing:border-box;
  border-radius:6px;
}

/* grid item */
.owned-item{
  border:6px solid var(--border);
  padding:8px;
  background:var(--paper);
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  user-select:none;
  font-weight:900;
}
.owned-item:hover{
  transform:translateY(-2px);
}

/* token id chip */
.owned-token{
  font-family: "Courier New", monospace;
  font-size:13px;
  padding:6px 8px;
  border:4px solid var(--border);
  background:linear-gradient(90deg,var(--accent-2) 0 45%, var(--accent-1) 45% 100%);
  color:var(--ink);
  border-radius:6px;
}

.special-box {
  font-size: 0.85em; /* shrink everything inside */
}

.special-link {
  color: #ffbf00;
  font-size: 1em; /* same as surrounding text */
  text-decoration: none;
  transition: filter 0.1s ease, color 0.1s ease;
}

.special-link:hover {
  color: #057cab;
}