:root {
  color: #302825;
  background: #f5efe5;
  font: 17px/1.5 system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; }
main {
  width: min(100% - 2rem, 38rem);
  margin: clamp(1rem, 7vh, 4.5rem) auto;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  border: 1px solid #e3d9cb;
  border-radius: 1.35rem;
  background: #fffdf8;
  box-shadow: 0 18px 55px #50312412;
}
header {
  display: flex;
  align-items: center;
  gap: .85rem;
  border-bottom: 1px solid #e9ded1;
  padding-bottom: 1rem;
  margin-bottom: 1.4rem;
}
h1 { font: 600 clamp(1.55rem, 5vw, 2.25rem)/1.05 Georgia, serif; margin: 0; }
h2 { font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1.12; margin: 0; letter-spacing: -.045em; }
p { margin: .55rem 0 1rem; }
.balance { padding: 1.1rem; border-radius: 1rem; background: #f5efe5; }
.balance p { color: #654e47; }
.stamps { display: grid; grid-template-columns: repeat(auto-fit, minmax(2rem, 1fr)); gap: .35rem; }
.stamp {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px dashed #b8a597;
  border-radius: 50%;
  color: #67574f;
  font-weight: 700;
}
.stamp.earned { background: #842c38; border-color: #842c38; color: white; }
.balance .reward { margin: 1rem 0 0; color: #28573e; font-weight: 750; }
button, input, .secondary { font: inherit; }
button, .secondary {
  display: inline-grid;
  place-items: center;
  min-height: 52px;
  width: 100%;
  border-radius: .75rem;
  padding: .75rem 1rem;
  font-weight: 750;
}
button { border: 1px solid #842c38; background: #842c38; color: white; cursor: pointer; }
button:disabled { opacity: .62; cursor: default; }
form { margin: 1rem 0 .7rem; }
input { display: block; width: 100%; padding: .75rem; border-radius: .5rem; border: 1px solid #aa948a; margin: .4rem 0 1rem; }
.secondary { border: 1px solid #d8c7bd; color: #742935; text-decoration: none; }
a { color: #742935; }
video { width: 100%; height: auto; background: #302825; border-radius: 1rem; }
:focus-visible { outline: 3px solid #234f3b; outline-offset: 3px; }
dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem 1.25rem;
  align-items: baseline;
  padding: 1rem;
  background: #f5efe5;
  border-radius: 1rem;
}
dd { margin: 0; font-size: 1.4rem; font-weight: 750; }

/* Owner page (22 Nov 2026): number tiles */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:12px 0 24px}
.tile{display:flex;flex-direction:column;gap:4px;padding:16px;border-radius:14px;background:#fff8ea;border:1px solid #ecd6b6}
.tile b{font-size:34px;line-height:1;color:rgb(67,27,39)}
.tile span{font-weight:600}
.tile small,.note{color:#6b5446;font-size:14px}
