/* NEAR Shrimps — shared tokens and components.
   Tokens come from the brand kit (Part 3). Do not add colours, fonts or radii. */

:root {
  --abyss: #06222E;
  --tank: #0B3A47;
  --shallows: #12596A;
  --foam: #E8F6F3;
  --shrimp: #FF6B4A;
  --buoy: #FFC93C;
  --glow: #7FE3D6;
  --kelp: #4CC27A;
  --boil: #FF4D5E;
  --pearl: linear-gradient(135deg, #F1EBFF 0%, #D9F5F2 50%, #FFE4EE 100%);
  --deep: #03161D; /* sticker shadow */

  --radius: 18px;
  --outline: 2px;
  --shadow: 4px 4px 0 var(--deep);

  --display: "Bagel Fat One", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }

a { color: var(--shrimp); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--foam); }

:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons: chunky stickers. Shrimp is the only button colour. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.7rem 1.5rem;
  border: var(--outline) solid var(--deep);
  border-radius: 14px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--deep); }

.btn-primary { background: var(--shrimp); color: var(--abyss); }
.btn-primary:hover { color: var(--abyss); background: #ff7d60; }

.btn-outline {
  background: rgba(6, 34, 46, 0.72);
  color: var(--foam);
  border-color: var(--foam);
}
.btn-outline:hover { color: var(--foam); border-color: var(--shrimp); }

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* Die-cut sticker panel */
.sticker {
  background: var(--tank);
  border: var(--outline) solid var(--shallows);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Receipt stub with a torn bottom edge: "guaranteed back".
   The shadow sits on the wrapper because the mask would clip it. */
.receipt-wrap { filter: drop-shadow(4px 4px 0 var(--deep)); }
.receipt {
  --tear: 9px;
  position: relative;
  background: var(--tank);
  border: var(--outline) solid var(--shallows);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  padding: 0.8rem 1.1rem calc(0.8rem + var(--tear));
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tear)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tear) * 2) var(--tear) repeat-x;
          mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tear)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tear) * 2) var(--tear) repeat-x;
}
.receipt-num {
  font-family: var(--display);
  font-weight: 400;
  color: var(--kelp);
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
