:root {
  --ink: #23171f;
  --muted: #725c65;
  --paper: #fff7e8;
  --cream: #fffaf2;
  --pink: #ff7eb6;
  --hot-pink: #ff3f8f;
  --berry: #5b154b;
  --aqua: #67d9ce;
  --green: #4f9d69;
  --lime: #c6e870;
  --orange: #ff9f45;
  --red: #e9303f;
  --purple: #7f4bd4;
  --shadow: 0 18px 45px rgba(74, 31, 53, 0.18);
  --line: rgba(35, 23, 31, 0.16);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 126, 182, 0.22), transparent 26rem),
    radial-gradient(circle at 92% 4%, rgba(103, 217, 206, 0.22), transparent 22rem),
    linear-gradient(135deg, #fff6df 0%, #fef2f8 45%, #eafaf7 100%);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.is-hidden {
  display: none !important;
}

.lock-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(255, 247, 232, 0.74), rgba(255, 247, 232, 0.92)),
    url("assets/floral-pattern.svg");
  background-size: auto, 360px;
}

.lock-card {
  width: min(100%, 520px);
  padding: clamp(24px, 7vw, 44px);
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(-1deg);
}

.lock-badge,
.eyebrow {
  width: fit-content;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lock-card h1,
.hero h1,
.section-heading h2,
.place-card h3,
.place-dialog h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

.lock-card h1 {
  margin-top: 16px;
  font-size: clamp(2.2rem, 12vw, 5rem);
}

.lock-card p,
.hero-text {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.password-form {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.password-form label,
.form-grid label,
.score-grid label,
.notes-label,
.controls label {
  color: var(--berry);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 -3px 0 rgba(35, 23, 31, 0.08);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--hot-pink);
  box-shadow: 0 0 0 4px rgba(255, 63, 143, 0.18);
}

button,
.primary-button,
.secondary-button,
.ghost-button {
  min-height: 46px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hot-pink);
  box-shadow: 5px 5px 0 var(--ink);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--aqua);
  box-shadow: 5px 5px 0 var(--ink);
}

.ghost-button,
.icon-button {
  background: var(--cream);
}

.compact {
  min-width: 150px;
}

.form-error {
  min-height: 24px;
  margin: 0;
  color: #a4102d;
  font-weight: 800;
}

.app-shell {
  position: relative;
}

.site-header {
  position: relative;
  padding: 18px clamp(16px, 5vw, 54px) 34px;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 250, 242, 0.72), rgba(255, 250, 242, 0.4)),
    url("assets/floral-pattern.svg");
  background-size: auto, 420px;
  opacity: 0.64;
  mask-image: linear-gradient(#000 68%, transparent);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 10px 30px rgba(74, 31, 53, 0.12);
  backdrop-filter: blur(12px);
}

.brand,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  min-width: 0;
  padding-left: 4px;
  color: var(--ink);
  font-weight: 950;
  text-decoration: none;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  font-size: 0.86rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.topbar-actions a,
.topbar-actions button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.topbar-actions a {
  background: rgba(255, 255, 255, 0.65);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
  gap: clamp(24px, 6vw, 70px);
  align-items: center;
  max-width: 1180px;
  min-height: calc(100dvh - 106px);
  margin: 0 auto;
  padding: clamp(42px, 8vw, 78px) 0 34px;
}

.hero-copy {
  display: grid;
  gap: 22px;
  align-content: center;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 10vw, 7.4rem);
}

.hero-text {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.03rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.photo-board {
  position: relative;
  min-height: 560px;
}

.tapsi-sticker {
  position: absolute;
  z-index: 4;
  width: min(26vw, 132px);
  height: auto;
  border: 5px solid #fff;
  border-radius: 8px;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(8px 10px 0 rgba(35, 23, 31, 0.86));
}

.tapsi-sticker-hero {
  top: 338px;
  left: 188px;
  transform: rotate(9deg);
}

.tapsi-sticker-ranking {
  right: 14px;
  bottom: -18px;
  width: min(22vw, 104px);
  transform: rotate(-7deg);
}

.tapsi-sticker-note {
  top: 12px;
  right: 12px;
  width: 78px;
  transform: rotate(8deg);
}

.photo-card {
  position: absolute;
  width: min(72vw, 245px);
  padding: 10px 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 10px 10px 0 rgba(35, 23, 31, 0.96);
}

.photo-card p {
  margin: 10px 4px 0;
  font-size: 0.9rem;
  font-weight: 900;
}

.card-louis {
  top: 20px;
  right: 72px;
  transform: rotate(6deg);
}

.card-maike-one {
  top: 205px;
  left: 0;
  transform: rotate(-7deg);
}

.card-tapsi {
  right: 10px;
  bottom: 20px;
  transform: rotate(4deg);
}

.photo-frame {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background-color: #fce3ef;
  background-position: center;
  background-size: cover;
}

.photo-frame img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 18%);
  pointer-events: none;
}

.photo-frame span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  font-size: 0.84rem;
  font-weight: 950;
}

.photo-louis {
  background-image:
    linear-gradient(rgba(255, 126, 182, 0.05), rgba(255, 159, 69, 0.16)),
    url("assets/louis.jpg"),
    radial-gradient(circle at 62% 23%, #ffc1d9 0 12%, transparent 13%),
    linear-gradient(140deg, #67d9ce 0 45%, #ff9f45 45% 100%);
}

.photo-maike-reading {
  background-image:
    linear-gradient(rgba(103, 217, 206, 0.04), rgba(255, 126, 182, 0.18)),
    url("assets/maike-reading.jpg"),
    radial-gradient(circle at 28% 24%, #fffaf2 0 14%, transparent 15%),
    linear-gradient(150deg, #ff7eb6 0 42%, #7f4bd4 42% 100%);
}

.photo-tapsi {
  background-image:
    linear-gradient(rgba(255, 250, 242, 0.1), rgba(91, 21, 75, 0.12)),
    url("assets/tapsi.png"),
    url("assets/tapsi.jpg"),
    radial-gradient(circle at 42% 32%, #23171f 0 18%, transparent 19%),
    linear-gradient(130deg, #c6e870 0 48%, #67d9ce 48% 100%);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 54px) 96px;
}

.stats-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: -22px;
}

.stats-strip article {
  position: relative;
  z-index: 2;
  min-height: 116px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.82);
  box-shadow: 6px 6px 0 rgba(35, 23, 31, 0.96);
}

.stats-strip span {
  display: block;
  overflow: hidden;
  color: var(--berry);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-strip p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.control-panel {
  position: relative;
  margin-top: 62px;
}

.site-photo-sticker {
  position: absolute;
  z-index: 4;
  width: clamp(74px, 10vw, 124px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 8px;
  box-shadow:
    6px 6px 0 var(--ink),
    0 16px 28px rgba(74, 31, 53, 0.18);
  pointer-events: none;
  user-select: none;
}

.sticker-stats-louis {
  right: 12px;
  top: -58px;
  transform: rotate(7deg);
}

.sticker-stats-maike {
  left: 8px;
  bottom: -54px;
  transform: rotate(-8deg);
}

.sticker-ranking-maike {
  right: 110px;
  top: -42px;
  transform: rotate(6deg);
}

.sticker-ranking-louis {
  left: 12px;
  top: 52px;
  transform: rotate(-7deg);
}

.section-heading {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 7vw, 5.3rem);
}

.controls {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.82);
  box-shadow: var(--shadow);
}

.controls label,
.form-grid label,
.notes-label {
  display: grid;
  gap: 8px;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.place-card {
  position: relative;
  display: grid;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.94), rgba(255, 246, 223, 0.88)),
    radial-gradient(circle at 100% 0, rgba(255, 126, 182, 0.22), transparent 14rem);
  box-shadow: 8px 8px 0 rgba(35, 23, 31, 0.95);
}

.place-card > :not(.place-photo-sticker) {
  position: relative;
  z-index: 1;
}

.place-card::before {
  content: attr(data-rank);
  position: absolute;
  z-index: 2;
  top: -14px;
  right: 18px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  font-size: 1.25rem;
  font-weight: 950;
  box-shadow: 4px 4px 0 var(--ink);
}

.place-photo-sticker {
  position: absolute;
  right: -18px;
  bottom: 18px;
  z-index: 0;
  width: clamp(82px, 14vw, 132px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 8px;
  opacity: 0.34;
  transform: rotate(var(--sticker-rotate));
  box-shadow: 6px 6px 0 var(--ink);
  pointer-events: none;
}

.place-card.rank-one {
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(234, 250, 247, 0.92)),
    url("assets/floral-pattern.svg");
  background-size: auto, 280px;
}

.place-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding-right: 52px;
}

.place-card h3 {
  overflow-wrap: anywhere;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
}

.place-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.score-badge {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--lime);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(3deg);
}

.score-badge strong {
  font-size: 2.2rem;
  line-height: 0.9;
}

.score-badge span {
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.score-bars {
  display: grid;
  gap: 9px;
}

.score-row {
  display: grid;
  grid-template-columns: 115px 1fr 34px;
  gap: 9px;
  align-items: center;
  color: var(--berry);
  font-size: 0.86rem;
  font-weight: 900;
}

.bar {
  height: 12px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}

.bar span {
  display: block;
  width: var(--bar-width);
  height: 100%;
  background: linear-gradient(90deg, var(--hot-pink), var(--aqua));
}

.place-notes {
  margin: 0;
  padding: 14px;
  border: 2px dashed rgba(35, 23, 31, 0.48);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  line-height: 1.5;
}

.place-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-button {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 950;
  text-decoration: none;
}

.small-button.danger {
  background: #ffe5e8;
}

.comments {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 2px solid rgba(35, 23, 31, 0.14);
}

.comments h4 {
  margin: 0;
  font-size: 1rem;
}

.comment-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-list li {
  padding: 10px;
  border: 2px solid rgba(35, 23, 31, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.comment-list strong {
  color: var(--berry);
}

.comment-list p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.comment-form {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 8px;
}

.comment-form select,
.comment-form input,
.comment-form button {
  min-height: 42px;
}

.empty-state {
  margin-top: 20px;
  padding: 34px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.72);
  text-align: center;
}

.empty-state h2 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4rem);
}

.empty-state p {
  color: var(--muted);
}

.floating-add {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 12px 16px;
  background: var(--hot-pink);
  box-shadow: 6px 6px 0 var(--ink);
}

.floating-add > span {
  font-size: 0.9rem;
}

.place-dialog {
  width: min(960px, calc(100% - 24px));
  max-height: min(840px, calc(100dvh - 24px));
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 12px 12px 0 rgba(35, 23, 31, 0.96);
}

.place-dialog::backdrop {
  background: rgba(35, 23, 31, 0.52);
  backdrop-filter: blur(6px);
}

.place-dialog form {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 30px);
}

.dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.dialog-header h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 7vw, 4rem);
}

.icon-button {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.score-grid label {
  position: relative;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.score-grid output {
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--hot-pink);
  font-size: 1.1rem;
  font-weight: 950;
}

input[type="range"] {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--hot-pink);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.vespa-scooter,
.passionfruit,
.flying-tapsi,
.roaming-photo-sticker {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  user-select: none;
}

.vespa-scooter {
  left: -310px;
  top: var(--lane);
  z-index: 70;
  width: min(42vw, 270px);
  height: auto;
  object-fit: contain;
  animation: scoot var(--duration) linear forwards;
  filter: drop-shadow(0 14px 10px rgba(35, 23, 31, 0.28));
}

.passionfruit {
  left: var(--start-x);
  top: -70px;
  width: var(--fruit-size);
  animation: fruit-fall var(--duration) linear forwards;
  filter: drop-shadow(0 10px 7px rgba(35, 23, 31, 0.18));
}

.flying-tapsi {
  right: -180px;
  top: var(--lane);
  width: min(32vw, 148px);
  border: 5px solid #fff;
  border-radius: 8px;
  animation: tapsi-flight var(--duration) ease-in-out forwards;
  filter: drop-shadow(10px 12px 0 rgba(35, 23, 31, 0.8));
}

.roaming-photo-sticker {
  left: var(--start-x);
  top: var(--start-y);
  width: var(--sticker-size);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 8px;
  box-shadow:
    7px 7px 0 var(--ink),
    0 18px 30px rgba(74, 31, 53, 0.2);
  animation: sticker-drift var(--duration) ease-in-out forwards;
}

@keyframes scoot {
  0% {
    transform: translateX(0) rotate(-2deg);
  }
  45% {
    transform: translateX(58vw) translateY(-8px) rotate(2deg);
  }
  100% {
    transform: translateX(calc(100vw + 390px)) translateY(0) rotate(-1deg);
  }
}

@keyframes fruit-fall {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--drift), calc(100dvh + 120px)) rotate(var(--spin));
    opacity: 0;
  }
}

@keyframes tapsi-flight {
  0% {
    transform: translateX(0) translateY(0) rotate(8deg) scale(0.92);
  }
  35% {
    transform: translateX(-38vw) translateY(-34px) rotate(-6deg) scale(1);
  }
  70% {
    transform: translateX(-76vw) translateY(28px) rotate(7deg) scale(0.96);
  }
  100% {
    transform: translateX(calc(-100vw - 240px)) translateY(-8px) rotate(-4deg) scale(0.9);
  }
}

@keyframes sticker-drift {
  0% {
    opacity: 0;
    transform: translateY(20px) rotate(var(--rotate-start)) scale(0.72);
  }
  12%,
  74% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift-x), var(--drift-y)) rotate(var(--rotate-end)) scale(0.9);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .photo-board {
    min-height: 460px;
  }

  .tapsi-sticker-hero {
    top: 298px;
    left: 43%;
  }

  .card-louis {
    right: 8%;
  }

  .card-maike-one {
    left: 4%;
    top: 170px;
  }

  .card-tapsi {
    right: 10%;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at 20% 5%, rgba(255, 126, 182, 0.2), transparent 17rem),
      linear-gradient(135deg, #fff7e8 0%, #f5fbf9 100%);
  }

  .site-header {
    padding-inline: 12px;
  }

  .topbar {
    top: 8px;
    align-items: stretch;
    border-radius: 8px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .topbar-actions a {
    display: none;
  }

  .brand span:last-child {
    max-width: 178px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions a,
  .hero-actions button {
    width: 100%;
  }

  .photo-board {
    min-height: 585px;
  }

  .tapsi-sticker {
    width: min(34vw, 108px);
  }

  .tapsi-sticker-hero {
    top: 386px;
    left: 8px;
  }

  .tapsi-sticker-ranking {
    right: 0;
    bottom: -8px;
    width: 82px;
  }

  .tapsi-sticker-note {
    width: 68px;
  }

  .photo-card {
    width: min(82vw, 260px);
  }

  .card-louis {
    top: 0;
    right: 0;
  }

  .card-maike-one {
    top: 188px;
    left: 0;
  }

  .card-tapsi {
    right: 14px;
    bottom: 4px;
  }

  main {
    padding-inline: 12px;
    padding-bottom: 92px;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
  }

  .site-photo-sticker {
    width: 70px;
    border-width: 4px;
    box-shadow:
      4px 4px 0 var(--ink),
      0 12px 18px rgba(74, 31, 53, 0.16);
  }

  .sticker-stats-louis {
    right: 2px;
    top: -42px;
  }

  .sticker-stats-maike,
  .sticker-ranking-louis {
    display: none;
  }

  .sticker-ranking-maike {
    right: 2px;
    top: -28px;
  }

  .stats-strip article {
    min-height: 104px;
    padding: 14px;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .ranking-grid {
    gap: 14px;
  }

  .place-card {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 5px 5px 0 rgba(35, 23, 31, 0.95);
  }

  .place-top {
    grid-template-columns: 1fr;
    padding-right: 48px;
  }

  .score-badge {
    width: 82px;
    height: 82px;
  }

  .score-row {
    grid-template-columns: 96px 1fr 30px;
    font-size: 0.8rem;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .floating-add {
    display: inline-flex;
  }

  .place-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 8px;
  }

  .form-grid,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .password-row {
    grid-template-columns: 1fr;
  }
}

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

  .vespa-scooter,
  .passionfruit,
  .flying-tapsi,
  .roaming-photo-sticker {
    display: none;
  }
}
