@font-face{
  font-family:"Hershey";
  src:url("./Hershey.otf") format("opentype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

html, body{
  height:100%;
  margin:0;
}

body{
  font-family:"Hershey", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

  header{
    position:relative;
    padding: 60px;
    background:#ffffff;
    color:#000000;
    display:flex;
    align-items:center;
    gap:12px
  }

  header h1{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0px;
  font-size: 24px;
  text-align: center;
  }

  body{font-family:"Hershey", system-ui, sans-serif;}
  .wrap{padding:16px}

  .choose-text{
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #334155;
  margin: 18px 0 10px 0;
  letter-spacing: 0.5px;
  padding-top: 0px;
  
  }

  @keyframes softBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.choose-text {
  text-align: center;
  font-size: 14px;
  color: #334155;
  margin: 18px 0 10px 0;
  letter-spacing: 0.5px;
  
  animation: softBlink 2s ease-in-out infinite;
}

  .recipes{
   padding-top: 20px;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:12px
  }

  .card{
    background:#fff;border-radius:4px;
    box-shadow:0 2px 4px rgba(0,0,0,.05);
    overflow:hidden;display:flex;
    flex-direction:column
  }

  .card img{width:100%;height:140px;object-fit:cover;display:block}
  .card .meta{padding:16px;flex:1;display:flex;flex-direction:column}
  .card h3{margin:0 0 6px 0;font-size:14px}
  .card p{margin:6px 0 50px 0;color: rgb(0, 0, 0,0.5);font-size:12px;flex:1}



.btn,
.card button {
  font-family: "Hershey", system-ui, sans-serif;
  font-size: 12px;
  padding: 16px 6px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-primary,
.card button {
  background: #ffffff;
  color: rgb(0, 0, 0);

}

.btn-primary:hover,
.card button:hover {
  color: rgb(0, 0, 0,0.5);
}

.btn-primary:active,
.card button:active {
  transform: translateY(0);
}

.btn-secondary {
  background: white;
  color: #0b5cff;
  border: 1px solid #0b5cff;
}

  /* Map */
  .game{position:fixed;inset:0;background:linear-gradient(180deg,#fff,#f7fafc);border-radius:0;padding:16px;box-shadow:none;display:none;z-index:20;overflow:hidden;flex-direction:column;gap:10px}
  .map-wrap{position:absolute;inset:0}
  .map-canvas{position:absolute;inset:0}

  .overlay-layer{
    position:absolute; inset:0;
    pointer-events:auto;
  }
  .map-hint{
    position:absolute; top:16px; left:50%;
    transform:translateX(-50%);
    background:rgba(255,255,255,.7);
    backdrop-filter: blur(6px);
    padding:10px 14px;
    border-radius:999px;
    font-size:12px;
    color:#111;
    box-shadow:0 8px 20px rgba(2,6,23,.18);
    pointer-events:none;
  }


/* Receipt */
.hud.receipt{
  position:absolute;
  left:16px;
  top:16px;
  width:min(320px, 78vw);
  pointer-events:auto;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}

.receipt-paper{
  position:relative;
  background:#fbfbfb;
  color:#111;
  padding:18px 16px 14px;
  border-radius:2px;
  box-shadow:
    0 22px 50px rgba(0,0,0,.28),
    0 6px 18px rgba(0,0,0,.18);
  transform:rotate(-0.5deg);
  filter:contrast(1.02);
}

.receipt-paper::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 240px at 20% 10%, rgba(0,0,0,.05), transparent 60%),
    radial-gradient(900px 220px at 80% 25%, rgba(0,0,0,.035), transparent 60%),
    radial-gradient(700px 200px at 30% 80%, rgba(0,0,0,.03), transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,.02), transparent 35%, rgba(0,0,0,.02));
  mix-blend-mode:multiply;
  opacity:.7;
  pointer-events:none;
  border-radius:2px;
}

.receipt-pin{
  position:absolute;
  left:14px; top:10px;
  width:10px; height:10px;
  border-radius:50%;
  background:#bdbdbd;
  box-shadow:0 1px 0 rgba(0,0,0,.18);
}
.receipt-pin::after{
  content:"";
  position:absolute;
  width:46px; height:2px;
  background:#a8a8a8;
  left:8px; top:4px;
  transform:rotate(-18deg);
  border-radius:2px;
  opacity:.9;
}

.receipt *{
  font-family:"Hershey", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing:.2px;
}

.receipt-brand{
  text-align:center;
  font-size:15px;
  margin-top:18px;
  margin-bottom:6px;
}
.receipt-title{
  text-align:center;
  font-size:15px;
  margin:20px 0 10px;
  letter-spacing:1px;
}

.receipt-meta{
  font-size:9px;
  opacity:.85;
  line-height:1.35;
}

.receipt-rule{
  margin:12px 0;
  border-top:.5px dashed rgba(0,0,0,.35);
}

.receipt-row{
  display:flex;
  justify-content:space-between;
  gap:1px;
  font-size:9px;
}
.receipt-date{
margin-top:24px;
  opacity:.9;
}

.receipt-items{
  display:flex;
  flex-direction:column;
  gap:6.5px;
  margin-top:2px;
}
.receipt-item{
  display:flex;
  justify-content:space-between;
  gap:7px;
  font-size:12px;
}
.receipt-item .name{
  display:flex;
  gap:8px;
  align-items:baseline;
}
.receipt-item .icon{
  width:18px;
  opacity:.9;
}
.receipt-item.collected{
  opacity:.35;
  text-decoration:line-through;
}

.receipt-total{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin:4px 0 10px;
}
.receipt-total-label{
  font-size:14px;
  letter-spacing:.6px;
}
.receipt-total-value{
  font-size:14px;
  letter-spacing:.6px;
}

.receipt-bottom{
  margin-top:20px;
  display:flex;
  flex-direction:column;
  gap:5px;
  align-items:center;
}
.receipt-thanks{
  margin-top:14px;
  font-size:12px;
  letter-spacing:2px;
}

.receipt-exit{
  width:140px;
  padding:4px 6px;
  border:.5px solid rgba(0,0,0,.25);
  background:#fff;
  cursor:pointer;
  font-size:12px;
  border-radius:2px;
}

/* let pins receive clicks even though overlay-layer is pointer-events:none */
.pin { pointer-events: auto; }

.map-wrap { position:absolute; inset:0; }
.map-canvas { position:absolute; inset:0; z-index: 1; }
.overlay-layer { position:absolute; inset:0; z-index: 2; pointer-events:none; }



  .pin, .player{
    position:absolute;
    transform:translate(-50%,-100%); /* pin tip sits at point */
    pointer-events:auto;
    user-select:none;
  }
  .pin{
    width:34px;height:34px;border-radius:12px;
    display:flex;align-items:center;justify-content:center;
    background:rgba(255,255,255,.92);
    box-shadow:0 10px 20px rgba(0,0,0,.18);
    border:1px solid rgba(15,23,42,.08);
    font-size:18px;
    cursor:pointer;
  }
  .pin.collected{opacity:.25; filter:grayscale(1); cursor:default}
  .pin::after{
    content:"";
    position:absolute;
    left:50%; top:100%;
    width:10px;height:10px;
    background:rgba(255,255,255,.92);
    transform:translate(-50%,-50%) rotate(45deg);
    border-right:1px solid rgba(15,23,42,.08);
    border-bottom:1px solid rgba(15,23,42,.08);
  }

  .screen{
    max-width:1100px;margin:0 auto;
  }

  @media (max-width:800px){
    .hud img{height:105px}
  }

  .map-reset{
  position:absolute;
  top:18px;
  right:18px;
  z-index:50;
  pointer-events:auto;

  font-family:"Hershey", system-ui, sans-serif;
  font-size:12px;
  padding:10px 12px;

  background:#fff;
  border:.5px solid rgba(0,0,0,.2);
  border-radius:2px;
  cursor:pointer;

  box-shadow:0 5px 24px rgba(0,0,0,.18);
}
.map-reset:hover{ opacity:.85; }

/* Move Mapbox nav (zoom buttons) to right-middle */
.mapboxgl-ctrl-top-right{
  top:50% !important;
  transform:translateY(-50%);
  right:16px;
}

/* Optional: make it float cleaner */
.mapboxgl-ctrl-group{
  box-shadow:0 2px 8px rgba(0,0,0,.2);
  border-radius:6px;
  overflow:hidden;
}
/* New window under receipt */
.store-window{
  position:relative;
  width: 110%;
  margin-top: 10px;
  max-height: 120px;
  overflow: hidden;
  background: rgba(251,251,251,0.92);
  color:#111;
  border-radius: 2px;
  padding: 14px 14px;
  box-shadow:
    0 6px 18px rgba(0,0,0,.02),
    0 2px 12px rgba(0,0,0,.14);
  backdrop-filter: blur(6px);
}

.store-window *{
  font-family:"Hershey", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: .2px;
}

.store-window-title{
  text-align: center;
  font-size: 13px;
  letter-spacing: 2px;
  opacity: .95;
  margin-bottom: 8px;
}

.store-window-rule{
  border-top: .5px dashed rgba(0,0,0,.35);
  margin: 10px 0;
}

.store-window-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size: 12px;
  opacity: .9;
}

.store-window-list{
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:40px;
  overflow:auto;
  padding-right: 4px;
}

.store-window-item{
  display:flex;
  justify-content:space-between;
  gap:6.5px;
  font-size: 9px;
}

.store-window-item .name{
  max-width: 70%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.store-window-item .meta{
  opacity:.6;
  white-space:nowrap;
}

.store-window-empty{
  font-size: 11px;
  opacity: .55;
  text-align: center;
  padding: 6px 0;
}


.map-controls{
  position:absolute;
  top:18px;
  right:18px;
  z-index:60;
  display:flex;
  gap:10px;
  pointer-events:auto;
  align-items:center;
}

.map-readmore{
  font-family:"Hershey", system-ui, sans-serif;
  font-size:12px;
  padding:10px 12px;
 background:#000;        
  color:#fff;          
  border:1px solid rgba(0,0,0,.25);
  border-radius:2px;
  box-shadow:0 5px 24px rgba(0,0,0,.18);
  user-select:none;
  cursor:help;
  text-decoration: none;  
}
.map-readmore:hover{ opacity:.85; }

.map-reset{
  position:static; /* now controlled by .map-controls */
  z-index:60;
  pointer-events:auto;
  font-family:"Hershey", system-ui, sans-serif;
  font-size:12px;
  padding:10px 12px;
  background:#fff;
  border:1px solid rgba(0,0,0,.25);
  border-radius:2px;
  cursor:pointer;
  box-shadow:0 5px 24px rgba(0,0,0,.18);
}
.map-reset:hover{ opacity:.85; }



.readmore-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.92);
  z-index:55;            
  opacity:0;
  pointer-events:none;
  transition:opacity 180ms ease;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
}

.readmore-overlay.show{
  opacity:1;
  pointer-events:none;   
}

/* Flashing paragraph text */
.readmore-text{
  max-width: 720px;
  font-family:"Hershey", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:16px;
  line-height:1.6;
  letter-spacing:.2px;
  color:rgba(255,255,255,0.92);
  text-align:left;
  opacity:0;
  filter: blur(0.2px);
}

.readmore-text.flash{
  animation: flashFade 20.2s ease-in-out forwards;
}

@keyframes flashFade{
  0%   { opacity:0; transform:translateY(6px); }
  12%  { opacity:1; transform:translateY(0); }
  65%  { opacity:1; }
  100% { opacity:0; transform:translateY(-4px); }
}

.map-readmore::after{
  content:"read more…";
text-decoration: none;
}

.map-readmore:hover::after{
  content:"click for works cited";
}