@font-face {
  font-family: 'Patrick Hand';
  src: url('/assets/fonts/patrick-hand-v25-latin.woff2') format('woff2');
  font-display: swap;
}

.playable-home {
  --kh-paper: #e8eee3;
  --kh-spruce: #1c332b;
  --kh-app: #fff8f4;
  --kh-ink: #211a13;
  --kh-line: #d4c4b5;
  --kh-wait: #f4e6da;
  --kh-olive: #55633c;
  --kh-error: #a22421;
  display: flex;
  min-height: 100vh;
  background: var(--kh-paper);
  color: var(--kh-spruce);
  letter-spacing: normal;
}

.playable-home .kh-wrap { width: min(1100px, calc(100% - 80px)); margin-inline: auto; }
.playable-home .kh-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(38px, 6.3vw, 92px);
  padding-block: clamp(40px, 7vh, 106px);
}
.playable-home .kh-intro { padding-block: 12px; }
.playable-home .kh-kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 20px;
  font-size: .81rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.playable-home .kh-kicker span { width: 9px; height: 9px; border-radius: 50%; background: #956219; box-shadow: 0 0 0 4px #f0d5a7; }
.playable-home .kh-stage h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(2.55rem, 4.9vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.073em;
  text-wrap: balance;
}
.playable-home .kh-prompt {
  display: block;
  margin-top: .32em;
  color: #66491f;
  font-family: 'Patrick Hand', cursive;
  font-size: .74em;
  font-weight: 400;
  letter-spacing: -.018em;
}
.playable-home .kh-fallback { max-width: 33ch; margin: 16px 0 0; }

.playable-home .kh-app {
  border: 1px solid #bbae9c;
  border-radius: 22px;
  background: var(--kh-app);
  color: var(--kh-ink);
  box-shadow: 0 16px 48px -30px #3440339e, 0 2px 0 #8899853d;
}
.playable-home .kh-appbar {
  display: grid;
  grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 76px;
  padding: 11px 22px;
  border-bottom: 1px solid var(--kh-line);
  border-radius: 21px 21px 0 0;
  background: #fbefe5;
}
.playable-home .kh-appbar h2 {
  margin: 0;
  color: inherit;
  font: 400 clamp(1.4rem, 2.5vw, 2rem)/1.1 'Patrick Hand', cursive;
  text-align: center;
}
.playable-home .kh-app svg { display: block; flex: 0 0 auto; width: 22px; height: 22px; }
.playable-home .kh-appmark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #ffddba; color: #664015; }
.playable-home .kh-booking {
  justify-self: end;
  padding: .24em .55em;
  border-radius: 6px;
  background: #e6ebd9;
  color: #3d4929;
  font-size: .74rem;
  font-weight: 700;
  text-align: center;
}
.playable-home .kh-appbody { padding: 21px 24px 23px; }
.playable-home .kh-details {
  display: grid;
  gap: 5px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: .9rem;
}
.playable-home .kh-details li { display: flex; align-items: center; gap: 8px; }
.playable-home .kh-details li:last-child svg { color: #835415; }
.playable-home .kh-action-slot { display: grid; min-height: 66px; align-items: center; }
.playable-home .kh-cancel-row, .playable-home .kh-notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid var(--kh-line);
  border-radius: 10px;
  background: #fbefe5;
  font-size: .82rem;
  line-height: 1.22;
}
.playable-home .kh-cancel-row p, .playable-home .kh-notice p { margin: 0; font-size: inherit; line-height: inherit; }
.playable-home .kh-cancel-row p strong { white-space: nowrap; }
.playable-home .kh-app button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 10px;
  background: transparent;
  font: 700 .875rem/1.15 'Nunito', sans-serif;
  cursor: pointer;
}
.playable-home .kh-app button:focus, .playable-home .kh-wrap a:focus-visible { outline: 2px solid #22594c; outline-offset: 3px; }
.playable-home button.kh-cancel { border-color: #dfb3a6; background: var(--kh-app); color: var(--kh-error); }
.playable-home button.kh-cancel:hover { background: #fae0d9; }
.playable-home .kh-notice { background: #ffddba; border-color: #bd966d; }
.playable-home .kh-notice p strong, .playable-home .kh-notice p span { display: block; }
.playable-home .kh-notice p strong { font-size: .95rem; }
.playable-home .kh-notice p span { margin-top: 2px; }
.playable-home button.kh-hop { color: #fff; background: #835415; white-space: nowrap; }
.playable-home button.kh-hop:hover { background: #64400d; }
.playable-home .kh-outcome {
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 0;
  padding: 8px 12px;
  border-left: 4px solid var(--kh-olive);
  border-radius: 3px 8px 8px 3px;
  background: #e6ebd9;
  color: #303e22;
  font-weight: 700;
}
.playable-home .kh-roster { margin-top: 17px; }
.playable-home .kh-roster-title, .playable-home .kh-roster-title h3 { display: flex; align-items: center; }
.playable-home .kh-roster-title { justify-content: space-between; }
.playable-home .kh-roster-title h3 { gap: 7px; margin: 0; font: 700 .94rem/1.25 'Nunito', sans-serif; }
.playable-home .kh-count { font-weight: 700; font-variant-numeric: tabular-nums; }
.playable-home .kh-capacity { height: 9px; margin-top: 5px; overflow: hidden; border-radius: 4px; background: #eee0d5; }
.playable-home .kh-capacity span { display: block; width: 100%; height: 100%; background: var(--kh-olive); }
.playable-home .kh-people { display: flex; align-content: start; flex-wrap: wrap; gap: 5px; min-height: 33px; margin: 6px 0 0; padding: 0; list-style: none; }
.playable-home .kh-person {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 3px 6px 3px 4px;
  border: 1px solid #c5b3a1;
  border-radius: 8px;
  background: var(--kh-app);
  font-size: .875rem;
  line-height: 1.2;
}
.playable-home .kh-you { background: #eee0d5; font-weight: 700; }
.playable-home .kh-wait-title { margin: 16px 0 0; font: 400 .94rem/1.25 'Nunito', sans-serif; }
.playable-home .kh-waiting { margin-top: 4px; }
.playable-home .kh-waiting .kh-person { border-color: transparent; border-radius: 5px; background: var(--kh-wait); }
.playable-home .kh-person.kh-promoted { background: #e6ebd9; border-color: #89956e; font-weight: 700; }
.playable-home .kh-avatar {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #634e3e;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
}
.playable-home .kh-nina { background: #735468; }
.playable-home .kh-sam { background: #476346; }
.playable-home .kh-noah { background: #85562f; }
.playable-home .kh-lea { background: #763965; }
.playable-home .kh-max { background: #2d5b72; }
.playable-home .kh-scene-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-height: 66px;
  margin: 0;
  background: transparent;
  padding: 9px 14px 9px 24px;
  border-top: 1px solid var(--kh-line);
}
.playable-home .kh-scene-footer p { margin: 0; color: #67574a; font-size: .79rem; }
.playable-home .kh-replay-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; gap: 2px; }
.playable-home button.kh-reset { color: #5b4c3f; }
.playable-home button.kh-replay { color: #303e22; border-color: #b3bda0; background: #f1f3e8; }
.playable-home button.kh-reset:hover, .playable-home button.kh-replay:hover { background: #e6ebd9; }
.playable-home .kh-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.playable-home [data-karl-demo] [hidden] { display: none; }

@media (max-width: 780px) {
  .playable-home .kh-wrap { width: min(490px, calc(100% - 36px)); }
  .playable-home .kh-stage { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 18px; padding-block: 24px 28px; }
  .playable-home .kh-intro { padding: 0; }
  .playable-home .kh-kicker { margin-bottom: 10px; }
  .playable-home .kh-stage h1 { font-size: clamp(2rem, 7.8vw, 3.4rem); text-wrap: initial; letter-spacing: -.055em; }
  .playable-home .kh-prompt { margin-top: .19em; font-size: .82em; }
  .playable-home .kh-appbar { min-height: 57px; padding: 7px 12px; }
  .playable-home .kh-appmark { width: 30px; height: 30px; }
  .playable-home .kh-appbody { padding: 12px 13px 15px; }
  .playable-home .kh-roster { margin-top: 10px; }
  .playable-home .kh-wait-title { margin-top: 12px; }
  .playable-home .kh-scene-footer { min-height: 56px; padding: 5px 12px; }
}

@media (max-width: 440px) {
  .playable-home .kh-wrap { width: calc(100% - 28px); }
  .playable-home .kh-scene-footer p { flex: 1 1 100%; padding-top: 3px; }
}

@media (max-width: 440px) and (max-height: 640px) {
  .playable-home .kh-stage { gap: 12px; padding-top: 14px; }
  .playable-home .kh-kicker { margin-bottom: 6px; }
  .playable-home .kh-stage h1 { font-size: 1.9rem; }
  .playable-home .kh-appbar { min-height: 49px; }
  .playable-home .kh-appbody { padding-top: 9px; }
  .playable-home .kh-details { gap: 3px; margin-bottom: 6px; }
  .playable-home .kh-details svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .playable-home { scroll-behavior: auto; }
}

/* Jaydaptif frames the experience; the demo retains Karl's own controls. */
.playable-home { background: white; }
.playable-home .top-header, .playable-home > footer { letter-spacing: .01em; }
.jd-pattern { background: #f0f4f8 url('/assets/hero-pattern.svg'); }
.jd-pattern .kh-intro { color: #2a2d34; }
.playable-home .kh-booking.kh-canceled { background: #f9deda; color: #8a2825; }
.jd-previews { padding: 32px 20px 44px; text-align: center; }
.jd-previews h2 { margin: 0 0 24px; font-size: clamp(1.625rem, 4vw, 2.375rem); }
.jd-choices { max-width: 840px; margin-inline: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.jd-choices a { color: #00698c; font-weight: 700; text-underline-offset: .2em; }
.jd-choices img { display: block; width: 100%; height: auto; border: 1px solid #d8e1e5; border-radius: 6px; margin-bottom: 10px; }
.jd-choices a:focus-visible { outline: 3px solid #0090ce; outline-offset: 3px; }
@media (max-width: 600px) {
  .playable-home .top-header { padding-block: 8px !important; }
  .playable-home .top-logo { margin: 0 !important; }
  .playable-home .logo-img { width: 91px; }
  .playable-home .tagline { display: none; }
  .jd-choices { grid-template-columns: 1fr; }
}
