:root {
  --ink: #171714;
  --mute: #5f5b51;
  --paper: #faf7ef;
  --paper-dark: #ece8dd;
  --grid: #dfe6c8;
  --line: #222;
  --green: #3a8a3a;
  --green-soft: #dcefd6;
  --yellow: #ffd95a;
  --red: #b0352e;
  --shadow: 4px 4px 0 var(--line);
  --radius-sketch: 16px 5px 18px 6px;
  font-family: "Kalam", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, .45), transparent 25%),
    var(--paper-dark);
  font-size: 17px;
}

a {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 52px);
  color: #fff;
  background: #1a1a1a;
  border-bottom: 2px solid #000;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Caveat", cursive;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: clamp(46px, 7vw, 62px);
  max-width: min(48vw, 340px);
  object-fit: contain;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .22));
}

.brand-admin {
  gap: 12px;
}

.brand-admin .brand-logo {
  height: clamp(38px, 5vw, 48px);
  max-width: min(38vw, 250px);
}

.brand-admin-label {
  color: #fff;
  font-family: "Caveat", cursive;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid #000;
  border-radius: 15px 4px 15px 4px;
  box-shadow: 2px 2px 0 #000;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.nav a,
.text-button {
  padding: 7px 13px;
  color: #e8e3d6;
  font: inherit;
  font-family: "Patrick Hand", sans-serif;
  font-size: 1rem;
  text-decoration: none;
  background: transparent;
  border: 1.5px dashed #777;
  border-radius: 7px;
  cursor: pointer;
}

.nav a:hover,
.text-button:hover {
  color: var(--ink);
  background: var(--paper);
  border-style: solid;
  border-color: var(--paper);
}

.nav-user {
  padding: 7px 10px;
  color: #e8e3d6;
  font-family: "Patrick Hand", sans-serif;
  font-size: 1rem;
}

.screen-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px 4px;
  color: #333;
  font-family: "Patrick Hand", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.1;
}

.screen-label em {
  color: #777;
  font-family: "Patrick Hand", sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
}

.screen-group,
.screen-section {
  position: relative;
}

.hero,
.price-section,
.team-section,
.booking-layout,
.own-bookings,
.admin-page {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(240px, .48fr) minmax(620px, 1fr);
  min-height: calc(100svh - 72px);
  padding: 18px clamp(16px, 4vw, 52px) clamp(28px, 5vw, 54px);
  border-bottom: 2px solid var(--line);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}

.hero-media {
  min-height: 520px;
  padding: clamp(10px, 2vw, 18px) clamp(10px, 2vw, 18px) clamp(10px, 2vw, 18px) 0;
}

.hero-img,
.image-placeholder.hero-img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: 24px 6px 24px 6px;
  box-shadow: var(--shadow);
  transform: rotate(-.45deg);
}

.hero-copy {
  display: grid;
  align-content: start;
  max-width: 430px;
  padding: clamp(12px, 2vw, 24px) 0 0;
  position: sticky;
  top: 96px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-family: "Patrick Hand", sans-serif;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 9ch;
  margin: 0;
  font-family: "Patrick Hand", sans-serif;
  font-size: clamp(4.8rem, 8vw, 7rem);
  font-weight: 700;
  line-height: .86;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: clamp(3rem, 6.5vw, 5.6rem);
  font-weight: 700;
  line-height: .86;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: 2rem;
}

.lead {
  max-width: 35ch;
  margin: 16px 0 20px;
  color: #333;
  font-family: "Patrick Hand", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.35;
}

.hero-call {
  display: inline-grid;
  justify-items: start;
  gap: 3px;
  width: fit-content;
  margin: 0 0 18px;
  padding: 12px 16px 11px;
  color: var(--ink);
  text-decoration: none;
  background: #fffdf8;
  border: 2px solid var(--line);
  border-radius: 16px 5px 16px 5px;
  box-shadow: 4px 4px 0 var(--line);
}

.hero-call span {
  color: var(--green);
  font-family: "Patrick Hand", sans-serif;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-call strong {
  font-family: "Patrick Hand", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: .95;
}

.hero-call:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--line);
}

.hero-actions,
.split,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 17px;
  color: var(--ink);
  font: inherit;
  font-family: "Caveat", cursive;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-sketch);
  box-shadow: 2px 2px 0 var(--line);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
}

.button:hover {
  transform: translate(1px, 1px) rotate(-.25deg);
  box-shadow: 1px 1px 0 var(--line);
}

.primary {
  color: #fff;
  background: var(--green);
}

.secondary {
  background: #fffdf8;
}

.danger {
  color: #fff;
  background: var(--red);
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  background: transparent;
  border: 0;
}

.service-art-row {
  transform: rotate(.18deg);
}

.strip-img,
.image-placeholder.strip-img {
  width: 100%;
  height: clamp(170px, 21vw, 300px);
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: 17px 5px 18px 5px;
  box-shadow: 3px 3px 0 var(--line);
}

.strip-img:nth-child(odd) {
  transform: rotate(-.35deg);
}

.strip-img:nth-child(even) {
  transform: rotate(.35deg);
}

.image-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 220px;
  padding: 18px;
  color: #555;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 7px, rgba(0, 0, 0, .07) 7px 8px),
    #fffdf3;
  border: 1.5px dashed #777;
}

.image-placeholder span {
  max-width: 30ch;
  font-family: "Caveat", cursive;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}

.image-placeholder small {
  color: #777;
  font-size: .78rem;
}

.section {
  padding: clamp(42px, 7vw, 88px) clamp(16px, 4vw, 52px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

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

.team-section {
  position: relative;
  overflow: hidden;
}

.team-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  gap: clamp(18px, 4vw, 34px);
  align-items: start;
  justify-content: center;
  max-width: 1080px;
  margin-inline: auto;
  padding: 8px 0 12px;
}

.team-card {
  position: relative;
  display: grid;
  gap: 12px;
  justify-self: center;
  width: min(100%, 300px);
  min-height: 310px;
  padding: 16px 16px 18px;
  background: #fffdf8;
  border: 2px solid var(--line);
  border-radius: 13px 4px 14px 5px;
  box-shadow: 5px 5px 0 var(--line);
  transform: rotate(var(--tilt, -2deg));
}

.team-card:nth-child(even) {
  margin-top: 24px;
}

.team-card:nth-child(3n) {
  margin-top: 8px;
}

.team-card:hover {
  transform: rotate(0deg) translateY(-2px);
}

.team-tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 82px;
  height: 25px;
  background: rgba(255, 217, 90, .78);
  border: 1.5px solid rgba(34, 34, 34, .45);
  transform: translateX(-50%) rotate(-2deg);
}

.team-photo {
  display: grid;
  place-items: center;
  min-height: 170px;
  background:
    linear-gradient(135deg, rgba(58, 138, 58, .18), transparent 42%),
    linear-gradient(45deg, transparent 0 9px, rgba(34, 34, 34, .06) 9px 10px),
    #dcefd6;
  background-position: center;
  background-size: cover;
  border: 2px solid var(--line);
  border-radius: 18px 5px 17px 5px;
  box-shadow: inset 0 0 0 8px rgba(255, 253, 248, .65);
}

.team-card:nth-child(3n+1) .team-photo {
  background-image: linear-gradient(rgba(220, 239, 214, .38), rgba(220, 239, 214, .62)), url("/assets/work-mowing.jpg");
}

.team-card:nth-child(3n+2) .team-photo {
  background-image: linear-gradient(rgba(255, 253, 248, .42), rgba(220, 239, 214, .68)), url("/assets/work-planting.jpg");
}

.team-card:nth-child(3n) .team-photo {
  background-image: linear-gradient(rgba(255, 217, 90, .28), rgba(220, 239, 214, .66)), url("/assets/work-raking.jpg");
}

.team-card.has-user-photo .team-photo {
  place-items: end;
  padding: 10px;
  background-image: linear-gradient(rgba(255, 253, 248, .08), rgba(34, 34, 34, .18)), var(--team-photo);
}

.team-photo span {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border: 2px solid var(--line);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--line);
  font-family: "Patrick Hand", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
}

.team-card.has-user-photo .team-photo span {
  width: 54px;
  height: 54px;
  font-size: 1.55rem;
}

.team-card strong {
  display: block;
  font-family: "Caveat", cursive;
  font-size: 2.4rem;
  line-height: .9;
}

.team-empty {
  width: min(100%, 420px);
  max-width: 420px;
}

.play-section {
  border-top: 2px solid var(--line);
}

.play-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(260px, 320px);
  grid-template-areas:
    "copy side"
    "board side"
    "controls side";
  justify-content: center;
  gap: clamp(18px, 4vw, 34px);
  align-items: start;
}

.tetris-board-wrap,
.tetris-status,
.tetris-next,
.tetris-copy,
.tetris-controls {
  background: #fffdf8;
  border: 2px solid var(--line);
  border-radius: 16px 5px 16px 5px;
  box-shadow: 4px 4px 0 var(--line);
}

.tetris-board-wrap {
  grid-area: board;
  padding: 14px;
}

.tetris-board {
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 18;
  background:
    linear-gradient(rgba(223, 230, 200, .6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(223, 230, 200, .6) 1px, transparent 1px),
    #111614;
  background-size: 10% calc(100% / 18), calc(100% / 10) 10%;
  border-radius: 10px 3px 10px 3px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.tetris-side {
  grid-area: side;
  display: grid;
  gap: 12px;
}

.tetris-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
}

.tetris-status div {
  display: grid;
  gap: 4px;
}

.tetris-status span,
.tetris-next span {
  color: var(--green);
  font-family: "Patrick Hand", sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tetris-status strong {
  font-family: "Patrick Hand", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1;
}

.tetris-next,
.tetris-copy {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.tetris-copy {
  grid-area: copy;
}

.tetris-copy .button-row {
  width: 100%;
}

.tetris-copy .button {
  width: 100%;
}

.tetris-next canvas {
  width: 112px;
  height: 112px;
  background: #111614;
  border-radius: 10px 3px 10px 3px;
}

.tetris-copy p {
  margin: 0;
  font-family: "Patrick Hand", sans-serif;
  font-size: 1.1rem;
}

.tetris-controls {
  grid-area: controls;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  align-items: stretch;
}

.tetris-control {
  min-height: 54px;
  font-family: "Patrick Hand", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.tetris-control.is-pressed,
.tetris-control:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--line);
}

.tetris-control-rotate {
  grid-column: 1;
}

.tetris-control-hard-drop {
  grid-column: 2 / -1;
  font-size: 1.1rem;
}

.tetris-control-down {
  font-size: 1.5rem;
}

.tetris-control-hint {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--mute);
  font-family: "Patrick Hand", sans-serif;
  font-size: 1rem;
  line-height: 1.15;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 15px 16px;
  color: var(--ink);
  text-align: left;
  background: #fffdf8;
  border: 2px solid var(--line);
  border-radius: 12px 4px 13px 4px;
  box-shadow: 2px 2px 0 var(--line);
  cursor: pointer;
  transition: transform .14s ease, background .14s ease;
}

.service-row:hover,
.service-row:focus-visible {
  background: var(--green-soft);
  transform: rotate(-.25deg) translateY(-1px);
}

.service-row strong,
td strong {
  display: block;
  font-family: "Patrick Hand", sans-serif;
  font-size: 1.25rem;
}

small {
  display: block;
  margin-top: 3px;
  color: var(--mute);
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.28;
}

.price {
  color: var(--green);
  font-family: "Caveat", cursive;
  font-size: 1.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(310px, .78fr) minmax(340px, 1fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: start;
  border-top: 2px solid var(--line);
}

.instant-booking {
  grid-column: 2;
  grid-row: 2;
  margin-top: clamp(-34px, -2vw, -18px);
  padding: 0;
  background: transparent;
  background-image: none;
  border-top: 0;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: minmax(340px, .96fr) minmax(320px, .9fr);
}

.booking-intro {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}

.instant-booking .booking-intro {
  position: static;
  align-self: start;
}

.instant-booking .booking-intro h2 {
  font-family: "Patrick Hand", sans-serif;
  font-size: clamp(2.1rem, 3.5vw, 3.2rem);
  line-height: .95;
}

.booking-intro p:not(.kicker) {
  max-width: 38ch;
  color: #333;
  font-family: "Patrick Hand", sans-serif;
  font-size: 1.14rem;
  line-height: 1.38;
}

.calendar-widget,
.booking-form,
.admin-login,
.service-editor,
.user-editor,
.contact-editor,
.table-wrap,
.metrics div {
  background: #fffdf8;
  border: 2px solid var(--line);
  border-radius: 15px 5px 15px 5px;
  box-shadow: var(--shadow);
}

.calendar-widget {
  display: grid;
  gap: 12px;
  padding: 14px;
  transform: rotate(-.3deg);
}

.instant-booking .calendar-widget {
  transform: rotate(-.18deg);
}

.calendar-head,
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.calendar-head {
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
}

.calendar-head strong {
  font-family: "Caveat", cursive;
  font-size: 1.8rem;
  text-align: center;
  text-transform: capitalize;
}

.calendar-nav {
  min-height: 38px;
  color: var(--ink);
  font: inherit;
  font-family: "Caveat", cursive;
  font-size: 1.7rem;
  font-weight: 700;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px 4px 14px 4px;
  box-shadow: 1px 1px 0 var(--line);
  cursor: pointer;
}

.calendar-weekdays span {
  color: #777;
  font-family: "Patrick Hand", sans-serif;
  font-size: .9rem;
  text-align: center;
}

.calendar-day {
  display: grid;
  gap: 1px;
  min-height: 52px;
  padding: 5px 3px;
  color: #999;
  font: inherit;
  background: #f1efe6;
  border: 1.5px dashed #aaa;
  border-radius: 6px;
}

.calendar-day strong {
  color: inherit;
  font-family: "Patrick Hand", sans-serif;
  font-size: 1.05rem;
}

.calendar-day small {
  margin: 0;
  font-size: .68rem;
  line-height: 1.05;
}

.calendar-day.has-slots {
  color: #0f351c;
  background: var(--green-soft);
  border: 1.5px solid var(--line);
  box-shadow: inset 0 -3px 0 rgba(58, 138, 58, .28);
  cursor: pointer;
}

.calendar-day.has-slots:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--line);
}

.calendar-day.is-selected {
  color: #fff;
  background: var(--green);
  border-color: var(--line);
  outline: 2px solid var(--green);
  outline-offset: 2px;
  box-shadow: 3px 3px 0 var(--line);
}

.calendar-day:disabled {
  opacity: .55;
}

.calendar-loading {
  grid-column: 1 / -1;
  padding: 18px;
  color: var(--mute);
  font-family: "Patrick Hand", sans-serif;
  text-align: center;
}

.calendar-help {
  margin: 0;
  color: var(--mute);
  font-family: "Patrick Hand", sans-serif;
  font-size: 1rem;
}

.signin {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--mute);
  font-family: "Patrick Hand", sans-serif;
  font-weight: 700;
}

.avatar {
  width: 38px;
  height: 38px;
  background: #fff center / cover;
  border: 2px solid var(--line);
  border-radius: 50%;
}

.booking-form,
.admin-login,
.service-editor,
.user-editor,
.contact-editor {
  display: grid;
  gap: 13px;
  padding: clamp(18px, 4vw, 28px);
}

.instant-booking .booking-form {
  margin-top: clamp(38px, 5vw, 76px);
  padding: clamp(14px, 2vw, 22px);
}

.booking-form > .screen-label {
  margin-bottom: 2px;
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: grid;
  gap: 13px;
  animation: rise .18s ease both;
}

label {
  display: grid;
  flex: 1 1 180px;
  gap: 5px;
  font-family: "Patrick Hand", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  color: var(--ink);
  font: inherit;
  font-family: "Kalam", system-ui, sans-serif;
  background: #fff;
  border: 1.8px solid var(--line);
  border-radius: 7px 3px 7px 3px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(58, 138, 58, .2);
}

textarea {
  resize: vertical;
}

.choice-group {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 11px;
  background: #fff;
  border: 1.8px dashed #777;
  border-radius: 9px 3px 9px 3px;
}

.choice-group legend {
  padding: 0 6px;
  font-family: "Patrick Hand", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.choice-group label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.choice-group input {
  width: 18px;
  min-height: 18px;
}

.quote-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  padding: 12px;
  background: var(--green-soft);
  border: 1.8px solid var(--line);
  border-radius: 12px 4px 12px 4px;
}

.quote-card div {
  display: grid;
  gap: 1px;
}

.quote-card span {
  color: var(--mute);
  font-family: "Patrick Hand", sans-serif;
  font-size: .92rem;
  font-weight: 700;
  text-transform: uppercase;
}

.quote-card strong {
  color: var(--green);
  font-family: "Caveat", cursive;
  font-size: 2rem;
  line-height: .95;
}

.quote-card small {
  grid-column: 1 / -1;
  margin: 0;
}

.slot-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1.8px dashed #777;
  border-radius: 10px 3px 10px 3px;
}

.selected-slot-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: #fffdf8;
  border-style: solid;
}

.selected-slot-panel span {
  display: block;
  color: var(--green);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.slot-panel strong {
  display: block;
  font-family: "Caveat", cursive;
  font-size: 1.65rem;
  line-height: 1;
}

.slot-panel small {
  display: block;
  margin-top: 4px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
}

.slot-button {
  min-height: 38px;
  color: var(--ink);
  font: inherit;
  font-family: "Patrick Hand", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: #fffdf8;
  border: 1.8px solid var(--line);
  border-radius: 12px 4px 12px 4px;
  cursor: pointer;
}

.slot-button.is-selected {
  color: #fff;
  background: var(--green);
}

.has-open-modal {
  overflow: hidden;
}

.time-modal[hidden] {
  display: none;
}

.time-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.time-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 18, .48);
  border: 0;
  cursor: pointer;
}

.time-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(100%, 520px);
  max-height: min(680px, calc(100svh - 36px));
  overflow: auto;
  padding: clamp(18px, 5vw, 28px);
  background:
    linear-gradient(rgba(229, 238, 204, .62) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 238, 204, .62) 1px, transparent 1px),
    #fffdf8;
  background-size: 18px 18px;
  border: 2px solid var(--line);
  border-radius: 18px 5px 18px 5px;
  box-shadow: 8px 8px 0 var(--line);
}

.time-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.time-modal-card h3 {
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: .92;
  text-transform: capitalize;
}

.time-modal-card p {
  margin: 0;
}

.time-modal-card .slot-grid {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.time-modal-card .slot-button {
  min-height: 48px;
  font-size: 1.12rem;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-family: "Patrick Hand", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1.8px dashed #999;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(16px, 4vw, 52px);
  color: #fff;
  background: #1a1a1a;
  border-top: 2px solid #000;
  font-family: "Patrick Hand", sans-serif;
  font-size: 1.08rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand div {
  display: grid;
  gap: 2px;
}

.footer-logo {
  width: auto;
  height: 44px;
  max-width: 220px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer-admin-link {
  padding: 6px 12px;
  border: 1.5px dashed rgba(255, 255, 255, .5);
  border-radius: 8px;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-admin-link:hover {
  text-decoration: none;
  background: var(--paper);
  color: var(--ink);
  border-style: solid;
  border-color: var(--paper);
}

.admin-body {
  background: var(--paper-dark);
}

.admin-page {
  min-height: calc(100svh - 72px);
  padding: clamp(18px, 3vw, 38px);
}

.admin-login-panel {
  min-height: calc(100svh - 128px);
  display: grid;
  place-items: center;
}

.admin-login {
  width: min(540px, 100%);
}

.admin-login-logo {
  width: auto;
  height: clamp(74px, 10vw, 104px);
  max-width: min(100%, 420px);
  margin-bottom: 6px;
  justify-self: start;
  object-fit: contain;
}

.admin-login h1,
.admin-head h1 {
  max-width: none;
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: .86;
}

.admin-head {
  display: grid;
  grid-template-columns: minmax(180px, .34fr) minmax(460px, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.metrics div {
  padding: 11px 13px;
}

.metrics strong {
  display: block;
  font-family: "Caveat", cursive;
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: .9;
}

.metrics span {
  color: var(--mute);
  font-family: "Patrick Hand", sans-serif;
  font-size: 1rem;
}

.admin-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.admin-tabs button {
  min-height: 42px;
  padding: 7px 18px;
  color: var(--ink);
  font: inherit;
  font-family: "Caveat", cursive;
  font-size: 1.45rem;
  font-weight: 700;
  background: #fffdf8;
  border: 2px solid var(--line);
  border-radius: 16px 5px 16px 5px;
  box-shadow: 2px 2px 0 var(--line);
  cursor: pointer;
}

.admin-tabs button.is-active {
  color: #fff;
  background: var(--green);
}

.admin-tab-panel[hidden] {
  display: none !important;
}

.admin-panel {
  min-width: 0;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-heading h2 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
}

.compact-button {
  min-height: 38px;
  padding: 5px 13px;
  font-size: 1.2rem;
}

.table-wrap {
  overflow-x: auto;
  max-height: none;
  background: #fffdf8;
}

table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

caption {
  padding: 0;
  font-family: "Caveat", cursive;
  font-size: 2rem;
  font-weight: 700;
  text-align: left;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-top: 1.5px dashed #aaa;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--mute);
  font-family: "Patrick Hand", sans-serif;
  font-size: .92rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #fffdf8;
}

.service-admin,
.user-admin,
.contact-admin,
.calendar-admin {
  display: grid;
  grid-template-columns: minmax(420px, .95fr) minmax(320px, .65fr);
  gap: 14px;
  align-items: start;
  position: static;
}

.service-editor,
.user-editor,
.contact-editor,
.hours-editor,
.exception-editor {
  gap: 10px;
  min-width: 0;
}

.contact-admin {
  grid-template-columns: minmax(420px, 720px);
}

.calendar-admin {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .7fr);
  gap: 18px;
}

.calendar-main,
.calendar-side {
  display: grid;
  gap: 14px;
  align-items: start;
}

.calendar-side {
  position: sticky;
  top: 92px;
}

.calendar-callout,
.calendar-tips,
.hours-editor,
.exception-editor,
.exception-list {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 4vw, 28px);
  background: #fffdf8;
  border: 2px solid var(--line);
  border-radius: 15px 5px 15px 5px;
  box-shadow: var(--shadow);
}

.calendar-callout {
  gap: 8px;
}

.calendar-callout h2,
.calendar-tips .kicker,
.exception-list h2 {
  margin: 0;
}

.calendar-callout h2,
.exception-list h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.calendar-tips {
  gap: 10px;
}

.calendar-tips ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
  color: #333;
  font-family: "Patrick Hand", sans-serif;
  font-size: 1.05rem;
}

.hours-grid {
  display: grid;
  gap: 7px;
}

.hours-grid-head,
.hours-row {
  display: grid;
  grid-template-columns: minmax(135px, 1fr) 112px 112px;
  gap: 8px;
  align-items: center;
}

.hours-grid-head {
  color: var(--mute);
  font-family: "Patrick Hand", sans-serif;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 8px;
}

.hours-row {
  padding: 8px;
  border: 1.5px dashed #aaa;
  border-radius: 12px 4px 12px 4px;
}

.hours-row input[type="time"]:disabled {
  opacity: .45;
  background: #f1efe6;
  cursor: not-allowed;
}

.exception-list article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1.5px dashed #aaa;
}

.exception-list article:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.exception-list article span {
  min-width: 0;
}

.exception-list strong {
  display: block;
  font-family: "Patrick Hand", sans-serif;
}

.exception-list small {
  display: block;
  margin-top: 2px;
}

.exception-list button {
  flex: 0 0 auto;
}

.calendar-main .panel-heading,
.calendar-side .panel-heading {
  align-items: center;
}

.service-editor .split {
  gap: 8px;
}

.checkbox {
  align-content: center;
  grid-template-columns: 22px auto;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
}

.service-chips,
.user-list {
  display: grid;
  gap: 7px;
  padding: 12px;
  max-height: 430px;
  overflow: auto;
  background: #fffdf8;
  border: 2px solid var(--line);
  border-radius: 15px 5px 15px 5px;
  box-shadow: var(--shadow);
}

.service-chips button,
.user-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  color: var(--ink);
  font: inherit;
  font-family: "Patrick Hand", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: #fffdf8;
  border: 1.8px solid var(--line);
  border-radius: 9px 3px 9px 3px;
  box-shadow: 1px 1px 0 var(--line);
  cursor: pointer;
  text-align: left;
}

.service-chips button:hover,
.user-list button:hover {
  background: var(--green-soft);
}

.service-chips strong,
.user-list strong {
  display: block;
  font-family: "Patrick Hand", sans-serif;
}

.admin-user-main {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-align: left;
}

.admin-user-thumb {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  background: center / cover #dcefd6;
  border: 2px solid var(--line);
  border-radius: 12px 4px 12px 4px;
  box-shadow: 2px 2px 0 var(--line);
  transform: rotate(-2deg);
}

.empty-note {
  margin: 0;
  color: var(--mute);
  font-family: "Patrick Hand", sans-serif;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .booking-layout,
  .admin-head,
  .service-admin,
  .user-admin,
  .contact-admin,
  .calendar-admin,
  .admin-tools {
    grid-template-columns: 1fr;
  }

  .exception-list {
    grid-column: auto;
  }

  .calendar-side {
    position: static;
    top: auto;
  }

  .hero {
    min-height: 0;
  }

  .hero-media,
  .hero-img,
  .image-placeholder.hero-img {
    min-height: 340px;
  }

  .hero-copy {
    padding: clamp(24px, 6vw, 44px) 0 0;
    position: static;
  }

  .instant-booking {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .booking-intro {
    position: static;
  }

  .instant-booking .booking-form {
    margin-top: 0;
  }

  .booking-form .booking-intro {
    gap: 12px;
    margin: 2px 0;
  }

  .booking-form .booking-intro > div:not(.screen-label):not(.calendar-widget):not(.signin) {
    display: none;
  }

  .booking-form .calendar-widget {
    box-shadow: 4px 4px 0 var(--line);
  }

  .table-wrap {
    max-height: none;
  }

  .service-list,
  .team-board,
  .play-layout,
  .metrics,
  .image-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .brand {
    max-width: 100%;
  }

  .brand-logo {
    max-width: min(74vw, 320px);
  }

  .footer-brand,
  .footer-links {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-logo {
    height: 40px;
    max-width: min(68vw, 210px);
  }

  h1 {
    font-size: clamp(4.1rem, 18vw, 5.4rem);
  }

  .section-heading,
  .service-row,
  .timeline article {
    grid-template-columns: 1fr;
  }

  .selected-slot-panel {
    grid-template-columns: 1fr;
  }

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

  .hours-row .checkbox {
    grid-column: 1 / -1;
  }

  .image-strip,
  .service-list,
  .team-board,
  .play-layout,
  .metrics {
    grid-template-columns: 1fr;
  }

  .play-layout {
    grid-template-areas:
      "copy"
      "board"
      "controls"
      "side";
    gap: 12px;
    justify-items: center;
  }

  .tetris-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tetris-board-wrap,
  .tetris-controls,
  .tetris-copy,
  .tetris-side {
    width: min(100%, 300px);
  }

  .tetris-board-wrap {
    padding: 8px;
  }

  .tetris-next,
  .tetris-copy,
  .tetris-status,
  .tetris-controls {
    padding: 10px;
  }

  .tetris-controls {
    gap: 8px;
    margin-bottom: 0;
    background: #fffdf8;
    border: 2px solid var(--line);
    border-radius: 16px 5px 16px 5px;
    box-shadow: 4px 4px 0 var(--line);
  }

  .tetris-next canvas {
    width: 88px;
    height: 88px;
  }

  .tetris-control {
    min-height: 52px;
    padding: 6px 10px;
    font-size: 1.2rem;
  }

  .tetris-control-hint {
    display: none;
  }

  .tetris-status strong {
    font-size: 1.35rem;
  }

  .tetris-copy p {
    font-size: 1rem;
  }

  .calendar-day {
    min-height: 50px;
  }

  .price {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .tetris-board-wrap,
  .tetris-controls,
  .tetris-copy,
  .tetris-side {
    width: min(100%, 276px);
  }

  .tetris-controls {
    gap: 6px;
  }

  .tetris-control {
    min-height: 48px;
    font-size: 1.05rem;
    padding: 5px 6px;
  }

  .tetris-control-hard-drop {
    font-size: .95rem;
  }

}

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