:root { color-scheme: light; --ink: #294d42; --muted: #687a6e; --cream: #fcfaf3; --mint: #deece3; --coral: #e98771; --line: #e3e6da; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f5f3e9; color: var(--ink); font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; }
button { color: inherit; font: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, a { transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
button:focus-visible, a:focus-visible { outline: 3px solid #2b6d58; outline-offset: 4px; }
button:active { transform: translateY(2px); }
svg { display: block; width: 100%; height: 100%; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.game-shell { width: min(1440px, calc(100% - 64px)); margin: 0 auto; }
.game-shell .topbar { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; padding: 22px 0; }
.game-shell .home-link { width: 42px; height: 42px; background: #fffdf7; border: 1px solid #dedfd3; border-radius: 50%; box-shadow: 0 2px 0 #e6e5d9; font-size: 1.3rem; color: var(--ink); }
.brand { display: flex; gap: 13px; align-items: center; }
.brand-mark { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 17px; transform: rotate(-7deg); background: #f1d8c6; }
.brand-mark svg { padding: 3px; }
.eyebrow { margin: 0 0 5px; text-transform: uppercase; letter-spacing: .17em; font-size: 10px; font-weight: 800; }
h1 { margin: 0; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -.055em; line-height: 1.12; font-weight: 850; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.open-sign { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.open-sign i { width: 6px; height: 6px; border-radius: 50%; background: #66967a; box-shadow: 0 0 0 4px #e2ebdc; }


.salon-floor { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 22px; min-height: 590px; height: calc(100svh - 141px); max-height: 900px; }
.stage { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #c7d8c7; border-radius: 28px; background: #dae9dc; box-shadow: 0 10px 25px #26433208; }
.play-area { flex: 1; min-height: 0; position: relative; background: linear-gradient(#e4edde 76%, #bad0b6 76%); }
#salonCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: none; touch-action: none; }
.customer-note { position: absolute; z-index: 1; top: 24px; left: 25px; display: grid; gap: 3px; pointer-events: none; }
.customer-note .eyebrow { font-size: 9px; color: #667e69; margin-bottom: 5px; }
.customer-note strong { font-size: 20px; letter-spacing: -.04em; }
.customer-note > span:last-child { font-size: 10px; color: #516653; max-width: 135px; }
.meter { position: absolute; z-index: 1; right: 23px; top: 24px; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.meter-star { color: #bc8941; font-size: 28px; }
.meter-label { display: flex; justify-content: space-between; font-size: 10px; font-weight: 750; margin-bottom: 6px; gap: 22px; }
.meter-label strong { font-weight: 550; }
.meter-track { width: 85px; height: 5px; border-radius: 10px; overflow: hidden; background: #bdcfb9; }
.meter-fill { width: 0; height: 100%; background: #558770; border-radius: inherit; transition: width 180ms ease; }
.mood-bubble { position: absolute; bottom: 17px; left: 50%; transform: translateX(-50%); margin: 0; background: #fffdf4f5; border: 1px solid #fff; box-shadow: 0 4px 14px #314c4020; padding: 10px 22px; border-radius: 30px; font-size: 12px; font-weight: 650; white-space: nowrap; pointer-events: none; }
.profile-picker { display: flex; min-height: 84px; justify-content: center; align-items: center; gap: 14px; padding: 10px 20px; background: #f7f8ef; border-top: 1px solid #c7d8c7; }
.picker-label { font-size: 10px; color: var(--muted); line-height: 1.5; margin-right: 15px; }
.picker-label strong { color: var(--ink); font-weight: 750; font-size: 12px; }
.profile-arrow { border: 0; background: transparent; border-radius: 50%; width: 30px; height: 36px; font-size: 27px; font-weight: 400; }
.profile-arrow:hover { background: #e2eadd; }
.profile-portraits { display: flex; gap: 12px; }
.portrait-button { position: relative; width: 49px; height: 49px; padding: 2px; border-radius: 50%; background: #e7e6d9; border: 2px solid transparent; }
.portrait-button svg { border-radius: 50%; }
.portrait-button.active { border-color: #4b7862; background: #fffdf5; box-shadow: 0 0 0 3px #e0e9db; }
.portrait-button.active::after { content: ""; position: absolute; bottom: -8px; left: 50%; width: 4px; height: 4px; background: #4b7862; border-radius: 50%; transform: translateX(-50%); }
.portrait-button:hover { transform: translateY(-3px); }
.controls { display: flex; flex-direction: column; gap: 17px; padding: 23px; background: #fffdf7; border: 1px solid #e3e1d4; border-radius: 28px; box-shadow: 0 10px 25px #26433205; }
.toolkit-heading { display: flex; justify-content: space-between; align-items: center; }
.toolkit-heading h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.055em; }
.toolkit-heading > span { color: #cf9c58; font-size: 23px; }
.control-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-button { position: relative; display: grid; justify-items: center; padding: 5px 12px 10px; border: 1px solid #e7e6db; border-radius: 18px; background: #f8f7ee; box-shadow: 0 3px 0 #eae9df; }
.tool-button svg { width: 64px; height: 64px; transition: transform 180ms ease; }
.tool-button strong { font-size: 12px; font-weight: 750; }
.tool-button:hover svg { transform: rotate(-7deg) translateY(-2px); }
.tool-button.active { background: #e4eee3; border-color: #70967b; box-shadow: 0 3px 0 #a9c2ab, inset 0 0 0 1px #70967b; }
.selection-dot { display: none; position: absolute; right: 9px; top: 9px; width: 6px; height: 6px; background: #4a795d; border-radius: 50%; }
.active .selection-dot { display: block; }
.tool-section { padding-top: 14px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-bottom: 10px; }
.section-heading h3 { margin: 0; font-size: 11px; font-weight: 750; }
.section-heading > span { color: var(--muted); font-size: 9px; }
.swatches { display: flex; justify-content: space-between; gap: 7px; padding: 2px; }
.swatch { flex: 1; aspect-ratio: 1; min-width: 0; background: var(--swatch); border-radius: 50%; border: 3px solid #fffdf7; box-shadow: inset 0 -3px 0 #00000013; }
.swatch.active { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch:hover { transform: translateY(-3px); }
.style-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.style-pad button { border: 0; border-radius: 10px; padding: 4px 0; display: grid; justify-items: center; gap: 5px; background: transparent; font-size: 9px; font-weight: 650; }
.style-pad button:hover { background: #f1eee2; }
.look-icon { display: block; width: 35px; height: 26px; }
.rainbow-look { height: 22px; margin-top: 4px; border-radius: 35px 35px 0 0; background: radial-gradient(ellipse at bottom, #fffdf7 0 25%, #b5a2c4 27% 42%, #92b898 44% 59%, #f0cb75 61% 76%, #e7957f 78%); }
.mohawk-look { background: #71a5a8; clip-path: polygon(15% 100%, 21% 57%, 36% 69%, 42% 8%, 57% 43%, 69% 0, 77% 67%, 86% 60%, 89% 100%); }
.mustache-look { color: #775445; font-size: 40px; line-height: 20px; font-weight: 900; }
.silly-look { color: #b19bc8; font-size: 35px; line-height: 24px; }
.accessories { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.accessories button { display: flex; align-items: center; gap: 4px; border: 1px solid #e7e3d9; border-radius: 12px; background: #fcf6ee; padding: 0 6px; font-size: 10px; font-weight: 700; touch-action: none; user-select: none; }
.accessories button:hover { background: #f6e5dd; }
.accessories svg { width: 37px; height: 37px; }
.actions { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; margin-top: auto; padding-top: 3px; }
.actions button { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 41px; border: 1px solid #dddcd0; border-radius: 13px; font-size: 12px; font-weight: 700; background: #f7f5eb; }
.actions svg { width: 19px; height: 19px; }
.actions #growButton { background: #3d6853; color: #fffdf2; border-color: #3d6853; box-shadow: 0 3px 0 #294d3c; }
.actions #growButton:hover { background: #4d7e64; }
.salon-footer { display: flex; justify-content: space-between; padding: 14px 4px; font-size: 10px; color: #758171; }
.salon-footer span:first-child { font-style: italic; }
.floating-bits { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bit { position: absolute; width: 12px; height: 5px; border-radius: 999px; animation: tumble 900ms ease-out forwards; }
@keyframes tumble { to { transform: translate(var(--x), 120px) rotate(430deg); opacity: 0; } }
.accessory-ghost { position: fixed; z-index: 20; width: 75px; height: 75px; pointer-events: none; transform: translate(-50%, -50%) rotate(-8deg); filter: drop-shadow(0 5px 4px #294d4230); }
@media (min-width: 1051px) and (max-height: 780px) {
  .game-shell .topbar { padding: 15px 0; }
  .salon-floor { height: calc(100svh - 117px); min-height: 566px; }
  .controls { gap: 12px; padding: 19px 22px; }
  .tool-button svg { width: 57px; height: 57px; }
  .tool-section { padding-top: 11px; }
  .section-heading { margin-bottom: 8px; }
}
@media (max-width: 1050px) {
  .game-shell { width: calc(100% - 32px); }
  .salon-floor { grid-template-columns: minmax(0, 1fr) 262px; gap: 14px; min-height: 610px; }
  .controls { padding: 20px 16px; gap: 15px; }
  .open-sign { display: none; }
  .customer-note { top: 19px; left: 18px; }
  .customer-note strong { font-size: 17px; }
  .customer-note > span:last-child { max-width: 100px; }
  .meter { top: 19px; right: 18px; }
  .picker-label { display: none; }
  .profile-picker { gap: 9px; padding-inline: 10px; }
  .profile-portraits { gap: 7px; }
  .portrait-button { width: 42px; height: 42px; }
}
@media (max-width: 760px) {
  .game-shell { width: calc(100% - 24px); }
  .game-shell .topbar { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 16px 0; gap: 9px; }
  .game-shell .topbar > .header-actions { grid-column: auto; justify-self: end; }
  .game-shell .home-link { width: 35px; height: 35px; }
  .brand-mark { display: none; }
  h1 { font-size: 17px; letter-spacing: -.035em; }
  .brand .eyebrow { font-size: 8px; letter-spacing: .13em; }

  .salon-floor { display: flex; flex-direction: column; height: auto; max-height: none; gap: 14px; }
  .stage { border-radius: 22px; }
  .play-area { flex: none; height: clamp(400px, 80vw, 560px); }
  .customer-note { top: 16px; left: 16px; }
  .customer-note .eyebrow { font-size: 8px; margin-bottom: 1px; }
  .customer-note > span:last-child { font-size: 9px; }
  .customer-note strong { font-size: 16px; }
  .meter { top: 16px; right: 16px; }
  .meter-track { width: 64px; }
  .meter-star { font-size: 22px; }
  .profile-picker { min-height: 77px; }
  .profile-portraits { gap: 9px; }
  .mood-bubble { font-size: 11px; padding: 9px 16px; max-width: 94%; white-space: normal; text-align: center; }
  .controls { border-radius: 22px; padding: 20px; gap: 17px; }
  .control-group { grid-template-columns: repeat(4, 1fr); }
  .tool-button { padding: 5px 4px 9px; border-radius: 14px; }
  .tool-button svg { width: 54px; height: 54px; }
  .swatch { flex: 0 1 40px; }
  .style-pad button { font-size: 11px; }
  .accessories button { justify-content: center; font-size: 12px; }
  .section-heading h3 { font-size: 12px; }
  .section-heading > span { font-size: 10px; }
  .salon-footer { gap: 10px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
