:root {
  /* M3 color roles (custom palette, dark scheme) */
  --md-primary: #ffe84d; /* acid yellow */
  --md-on-primary: #1a1a05;
  --md-primary-container: #4d4a10;
  --md-on-primary-container: #fff8d0;
  --md-error: #ff897d; /* alarm red, tone 70 for dark bg */
  --md-on-error: #690005;
  --md-error-container: #93000a;
  --md-on-error-container: #ffdad6;
  --md-surface: #141311; /* ink */
  --md-surface-dim: #0e0d0b;
  --md-surface-container: #221f1b;
  --md-on-surface: #f2efe9; /* paper white */
  --md-on-surface-variant: #d4d0c8;
  --md-outline: #9d978c;
  --md-outline-heavy: #f2efe9;

  /* M3 shape scale */
  --shape-xs: 8px;
  --shape-sm: 16px;
  --shape-md: 28px;
  --shape-full: 999px;

  /* M3 motion (emphasized) */
  --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --dur-med: 250ms;
  --dur-long: 450ms;

  /* M3 type scale, oversized display roles */
  --type-mega: clamp(2.5rem, 15.5vw, 13rem);
  --type-display: clamp(1.9rem, 10vw, 7.5rem);
  --type-headline: clamp(1.75rem, 5vw, 4rem);
  --type-body: clamp(1.125rem, 2.2vw, 1.5rem);
}

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

* {
  margin: 0;
}

html {
  scrollbar-gutter: stable;
}

body {
  background: var(--md-surface);
  color: var(--md-on-surface);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-x: clip;
  min-height: 100dvh;
}

::selection {
  background: var(--md-primary);
  color: var(--md-on-primary);
}

:focus-visible {
  outline: 3px solid var(--md-primary);
  outline-offset: 3px;
  border-radius: var(--shape-xs);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: normal;
  border: 0;
  text-transform: none;
}

main {
  max-width: 74rem;
  margin-inline: auto;
  padding: 0 clamp(1rem, 4vw, 3rem) 4rem;
}

/* ---- caution tape bar ---- */

.tape-wrap {
  overflow: hidden; /* clip rotated tape, no horizontal scroll */
  padding-block: 2px;
}

.tape-bar {
  display: flex;
  gap: clamp(1.5rem, 5vw, 4rem);
  justify-content: center;
  background: var(--md-primary);
  color: var(--md-on-primary);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
  padding: 0.35rem 1rem;
  margin-inline: -2rem; /* bleed past wrapper, clipped clean */
  transform: rotate(-1deg);
  border-block: 3px solid var(--md-surface-dim);
  user-select: none;
}

/* ---- hero ---- */

.hero {
  text-align: center;
  padding-block: clamp(3rem, 10vh, 7rem) clamp(2rem, 6vh, 4rem);
}

.kick {
  display: inline-block;
  background: #e53935;
  color: #ffffff;
  font-size: var(--type-body);
  font-weight: 900;
  padding: 0.5em 1.2em;
  border-radius: var(--shape-full);
  transform: rotate(-2deg);
  border: 3px solid var(--md-surface-dim);
  box-shadow: 6px 6px 0 var(--md-surface-dim);
}

/*
.kick {
  display: inline-block;
  background: var(--md-primary);
  color: var(--md-on-primary);
  font-size: var(--type-body);
  font-weight: 900;
  padding: 0.5em 1.2em;
  border-radius: var(--shape-full);
  transform: rotate(-2deg);
  border: 3px solid var(--md-surface-dim);
  box-shadow: 6px 6px 0 var(--md-surface-dim);
}
*/

.hero-title {
  margin-top: clamp(1.5rem, 4vh, 3rem);
  display: grid;
  gap: 0;
}

.line {
  display: block;
  font-size: var(--type-display);
  line-height: 0.95;
}

.mega {
  font-size: var(--type-mega);
  line-height: 0.85;
  color: var(--md-primary);
  text-shadow: 0.06em 0.06em 0 var(--md-error-container);
}

.tilt-l {
  transform: rotate(-3deg);
}

.tilt-r {
  transform: rotate(2deg);
}

.sub {
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  font-size: var(--type-headline);
  color: var(--md-on-surface-variant);
}

/* ---- crime stickers ---- */

.crimes {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  padding-block: clamp(2rem, 6vh, 4rem);
}

.sticker {
  background: var(--md-on-surface);
  color: var(--md-surface);
  border: 3px solid var(--md-surface-dim);
  border-radius: var(--shape-sm);
  box-shadow: 10px 10px 0 var(--md-surface-dim);
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 3rem);
  width: min(100%, 42rem);
  transition: transform var(--dur-med) var(--ease-emphasized),
    box-shadow var(--dur-med) var(--ease-emphasized);
}

.sticker:nth-child(odd) {
  justify-self: start;
  margin-left: 0;
}

.sticker:nth-child(even) {
  justify-self: end;
}

.sticker:nth-child(3n) {
  border-radius: var(--shape-md);
}

.sticker:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 14px 14px 0 var(--md-surface-dim);
}

.sticker h3 {
  font-size: var(--type-headline);
  line-height: 1;
  letter-spacing: -0.01em;
}

.sticker-red {
  background: var(--md-error-container);
  color: var(--md-on-error-container);
  border-color: var(--md-on-error);
}

.sticker-ban {
  background: var(--md-primary);
  color: var(--md-on-primary);
}

/* washi tape pseudo strip on taped sticker */
.sticker-tape {
  position: relative;
}

.sticker-tape::before {
  content: "";
  position: absolute;
  inset: -0.9rem auto auto 50%;
  translate: -50% 0;
  width: 10rem;
  height: 2.2rem;
  background: color-mix(in srgb, var(--md-primary) 82%, transparent);
  transform: rotate(-4deg);
  border-inline: 2px dashed var(--md-surface-dim);
}

/* ---- stamp verdict ---- */

.stamp {
  text-align: center;
  border: 6px dashed var(--md-outline);
  border-radius: var(--shape-md);
  padding: clamp(2.5rem, 8vh, 5rem) clamp(1rem, 4vw, 3rem);
  margin-block: clamp(2rem, 6vh, 4rem);
  background: var(--md-surface-container);
}

.stamp-word {
  font-size: var(--type-display);
  line-height: 1;
}

.stamp-clip {
  overflow: hidden; /* clip rotated DIE stamp, no horizontal scroll */
  padding-block: 0.1em;
}

.stamp-no {
  display: inline-block;
  color: var(--md-error);
  font-size: var(--type-mega);
  transform: rotate(-3deg) scale(0.9);
  text-shadow: 0.05em 0.05em 0 var(--md-on-error);
  margin-top: 0.15em;
}

/* ---- M3 buttons ---- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  padding-block: 1rem 3rem;
}

.btn {
  position: relative;
  min-height: 56px; /* M3 touch target + */
  padding: 0.9em 2em;
  font: inherit;
  font-size: var(--type-body);
  text-transform: inherit;
  letter-spacing: 0.01em;
  border: 3px solid transparent;
  border-radius: var(--shape-full);
  background: var(--md-primary);
  color: var(--md-on-primary);
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-emphasized),
    box-shadow var(--dur-med) var(--ease-emphasized);
}

/* M3 state layer */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-emphasized);
}

.btn:hover::after {
  opacity: 0.08;
}

.btn:active::after {
  opacity: 0.12;
}

.btn:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 8px 8px 0 var(--md-surface-dim);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-alt {
  background: transparent;
  color: var(--md-primary);
  border-color: var(--md-primary);
}

.btn-alt::after {
  background: var(--md-primary);
}

.thanks {
  width: 100%;
  text-align: center;
  font-size: var(--type-body);
  color: var(--md-on-primary-container);
  background: var(--md-primary-container);
  border-radius: var(--shape-full);
  padding: 0.6em 1.4em;
}

/* ---- footer ---- */

.foot {
  text-align: center;
  padding: 2.5rem 1rem 3.5rem;
  color: var(--md-on-surface-variant);
  font-size: var(--type-body);
  border-top: 3px dashed var(--md-outline);
  margin-inline: clamp(1rem, 8vw, 6rem);
}

/* ---- reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .btn:hover,
  .sticker:hover {
    transform: none;
  }
}
