@font-face { font-family: Shop; src: url('/assets/css/fonts/NanumSquareR.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: Shop; src: url('/assets/css/fonts/NanumSquareB.woff') format('woff'); font-weight: 700; font-display: swap; }
:root { color-scheme: light; font-family: Shop, 'Malgun Gothic', sans-serif; font-size: 16px; background: #f5f5f3; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  --ink: #272c2b; --quiet: #626b68; --line: #d9ddda; --paper: #fff;
  --accent: #a53c2c; --wash: #f6f5f1; --ready: #2e7050; --warning: #b53629; --scene: #e8e0ce;
  margin: 0; color: var(--ink); line-height: 1.55; -webkit-tap-highlight-color: transparent;
}
body[data-theme='flower'] { --accent: #3d6852; --scene: #e0e9df; --wash: #f2f6f1; }
body[data-theme='wash'] { --accent: #305f7a; --scene: #dde8ed; --wash: #f1f5f7; }
a { color: inherit; }
button {
  min-height: 44px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 5px;
  background: #fff; color: var(--ink); font: 700 .9rem/1.3 Shop, sans-serif; cursor: pointer; touch-action: manipulation;
}
button:disabled { opacity: .46; cursor: default; }
button:not(:disabled):hover { border-color: var(--accent); }
button:not(:disabled):active { transform: translateY(1px); }
button[aria-pressed='true'] { box-shadow: inset 0 0 0 1px var(--accent); border-color: var(--accent); }
:is(button,a,summary,input):focus-visible { outline: 3px solid #267bad; outline-offset: 3px; }
.primary, .station-main { background: var(--accent); border-color: var(--accent); color: #fff; }
h1,h2,h3,p { margin: 0; }
.skip { position: absolute; top: 8px; left: 8px; padding: 12px; background: white; z-index: 9; transform: translateY(-160%); }
.skip:focus { transform: none; }
.shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 66px; font-size: .84rem; }
.masthead a,footer a { text-decoration: none; }
.brand { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.brand img { object-fit: contain; }
.shop { overflow: clip; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.awning { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 23px 28px; border-bottom: 1px solid var(--line); }
h1 { font-size: clamp(1.35rem, 3.4vw, 2rem); letter-spacing: -.055em; line-height: 1.3; word-break: keep-all; }
.awning p { margin-top: 5px; font-size: .87rem; color: var(--quiet); }
.shop-tools { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; flex-shrink: 0; }
.shop-tools button { padding: 7px 10px; font-size: .76rem; background: #f8f9f7; }
.intro { display: grid; grid-template-columns: .95fr 1.05fr; }
.window { position: relative; display: grid; place-items: center; min-height: 305px; overflow: hidden; background: var(--scene); }
.window::after { content: ''; position: absolute; inset: auto 0 0; height: 48px; background: #4c5149; border-top: 7px solid #c6bba2; }
.display-items { display: flex; justify-content: center; align-items: end; width: 85%; padding-bottom: 20px; }
.display-items img { width: 44%; height: 160px; object-fit: contain; }
[data-theme='flower'] .display-items img { width: 30%; height: 205px; }
.display-items img:nth-child(2) { transform: rotate(8deg) translateY(-5px); }
.shopkeeper { position: absolute; z-index: 1; right: 12px; bottom: 2px; width: 105px; height: 120px; object-fit: contain; }
.intro-copy { display: grid; align-content: center; justify-items: start; gap: 14px; padding: 32px; }
.intro-copy h2 { font-size: clamp(1.25rem, 2.8vw, 1.7rem); letter-spacing: -.04em; word-break: keep-all; }
.intro-copy p { font-size: .94rem; color: var(--quiet); line-height: 1.8; word-break: keep-all; }
.local-best { color: var(--accent); font-size: .8rem; font-weight: 700; }
.local-best:empty { display: none; }
.intro-actions,.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.intro-actions { margin-top: 5px; }
.till { display: grid; grid-template-columns: repeat(3,1fr); background: var(--wash); }
.till div { padding: 13px 24px; min-width: 0; }
.till div+div { border-left: 1px solid var(--line); }
.till span,.till strong { display: block; }
.till span { font-size: .73rem; color: var(--quiet); }
.till strong { margin-top: 2px; font-size: clamp(1.05rem,4vw,1.55rem); line-height: 1.2; font-variant-numeric: tabular-nums; }
.clock-track { height: 3px; background: var(--line); }
.clock-track i { display: block; height: 100%; background: var(--accent); }
.work-area { display: grid; grid-template-columns: 240px minmax(0,1fr); }
.counter { padding: 17px; background: #f0f2ee; border-right: 1px solid var(--line); }
.counter h2,.workbench h2 { margin-bottom: 8px; font-size: .88rem; }
.orders { display: grid; gap: 8px; }
.order { position: relative; width: 100%; padding: 9px 11px 14px; overflow: hidden; text-align: left; }
.order[aria-pressed='true'] { border-color: var(--accent); background: #fff; }
.order:disabled { opacity: .72; }
.customer { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; font-size: .65rem; color: var(--quiet); }
.customer img { width: 26px; height: 28px; object-fit: contain; }
.customer b { margin-left: auto; font-size: .63rem; color: var(--accent); }
.order-top strong { display: block; font-size: .9rem; }
.order small { display: block; margin-top: 3px; font-size: .7rem; font-weight: 400; line-height: 1.4; }
.patience { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--line); }
.patience i { display: block; height: 100%; background: var(--accent); }
.empty-orders { font-size: .8rem; color: var(--quiet); }
.workbench { padding: 17px 20px 20px; }
#feedback { min-height: 24px; margin-bottom: 12px; font-size: .84rem; color: var(--quiet); }
#feedback[data-kind='good'] { color: var(--ready); }
#feedback[data-kind='miss'] { color: var(--warning); }
.stations { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.machine { min-width: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--wash); }
.machine header { min-height: 78px; padding: 13px 13px 6px; }
.machine header span,.machine header strong,.machine header small { display: block; }
.machine header span { font-size: .68rem; color: var(--quiet); }
.machine header strong { margin: 3px 0; font-size: .94rem; line-height: 1.3; word-break: keep-all; }
.machine header small { font-size: .7rem; color: var(--quiet); }
[data-ready='true'] header strong { color: var(--ready); }
[data-stage='burnt'] header strong { color: var(--warning); }
.station-picture { display: grid; place-items: center; height: 150px; padding: 5px 8px; }
.iron { position: relative; width: 100%; height: 145px; }
.iron img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.iron .mould-lid,.iron .pastry,.filling { display: none; }
.iron .pastry { inset: 47% 28% 8% 28%; width: 44%; height: 45%; }
[data-stage='batter'] .pastry,[data-stage='filled'] .pastry,[data-stage='burnt'] .pastry { display: block; }
[data-stage='batter'] .pastry,[data-stage='filled'] .pastry { filter: saturate(.35) brightness(1.45); animation: pour .2s ease-out; }
[data-stage='filled'] .filling { display: block; position: absolute; left: 43%; bottom: 22%; width: 16%; height: 13%; border-radius: 50%; background: #6c3a2b; }
[data-fill='cream'] .filling { background: #efcb6c; }
[data-fill='sweetpotato'] .filling { background: #ce9766; }
[data-stage='front'] .mould-open,[data-stage='back'] .mould-open { display: none; }
[data-stage='front'] .mould-lid,[data-stage='back'] .mould-lid { display: block; }
[data-stage='back'] .iron { animation: flip .3s ease-out; }
[data-stage='back'][data-ready='true'] .mould-lid { display: none; }
[data-stage='back'][data-ready='true'] .mould-open,[data-stage='back'][data-ready='true'] .pastry { display: block; }
[data-stage='burnt'] .pastry { filter: brightness(.36) saturate(.5); }
.steam { position: absolute; inset: 5% 40% 50%; pointer-events: none; }
[data-stage='front'] .steam::before,[data-stage='back'] .steam::before,[data-stage='burnt'] .steam::before { content: ''; position: absolute; inset: 0; background: #fff9; border-radius: 50%; filter: blur(6px); animation: steam 1.6s infinite; }
[data-stage='burnt'] .steam::before { background: #686b6780; }
@keyframes steam { from { opacity: 0; transform: translateY(12px); } 50% { opacity: .8; } to { opacity: 0; transform: translateY(-20px); } }
@keyframes flip { from { transform: perspective(350px) rotateX(-170deg); } to { transform: none; } }
@keyframes pour { from { opacity: 0; scale: .8; } to { opacity: 1; scale: 1; } }
.washer { position: relative; display: grid; justify-items: center; width: 132px; height: 143px; border: 2px solid #b0bec5; border-radius: 6px; background: #fff; box-shadow: 4px 4px 0 #d6e0e3; }
.washer-panel { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 28px; padding: 6px 12px; border-bottom: 1px solid #cfd7d9; }
.washer-panel i { width: 15px; height: 15px; border: 3px solid #91a2ad; border-radius: 50%; }
.washer-panel b { width: 39px; height: 12px; background: #526b73; border-radius: 2px; }
.drum { display: grid; place-items: center; width: 88px; height: 88px; border: 7px solid #9eafb6; border-radius: 50%; overflow: hidden; background: #d7e6e8; box-shadow: inset 0 3px 5px #6c7f8555; }
.drum img { display: block; width: 90%; height: 90%; object-fit: contain; }
[data-stage='empty'] .drum img { visibility: hidden; }
[data-stage='washing'][data-ready='false'] .drum img,[data-stage='drying'][data-ready='false'] .drum img { animation: spin 1.4s linear infinite; }
[data-stage='drying'] .drum { background: #f1e2c9; }
.washer-foot { width: 83%; height: 3px; background: #d7dfe3; }
@keyframes spin { to { transform: rotate(360deg); } }
.timing-label { display: flex; justify-content: space-between; min-height: 23px; margin: 0 12px; font-size: .7rem; color: var(--quiet); font-variant-numeric: tabular-nums; }
[data-ready='true'] .timing-label { color: var(--ready); }
.cook-track { height: 5px; margin: 0 12px; background: var(--line); border-radius: 3px; overflow: hidden; }
.cook-track i { display: block; height: 100%; background: var(--accent); }
[data-ready='true'] .cook-track i { background: var(--ready); }
[data-stage='burnt'] .cook-track i { background: var(--warning); }
.controls { display: grid; align-content: start; gap: 6px; min-height: 112px; padding: 10px; }
.controls button,.clump button { padding: 7px; font-size: .8rem; }
.clump { display: flex; flex-wrap: wrap; gap: 5px; }
.clump button { flex: 1; white-space: nowrap; }
.flower-bench { grid-column: 1/-1; display: grid; grid-template-columns: 175px minmax(0,1fr); min-height: 320px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.bouquet { position: relative; min-height: 220px; overflow: hidden; background: var(--wash); border-right: 1px solid var(--line); }
.bouquet-heads { position: absolute; left: 50%; bottom: 19%; }
.stem { position: absolute; width: 90px; height: 210px; left: -45px; bottom: 0; object-fit: contain; transform-origin: center bottom; transform: rotate(calc(var(--n) * 12deg)); animation: pour .2s ease-out; }
.bouquet-empty { position: absolute; inset: 42% 0 auto; text-align: center; font-size: .8rem; color: var(--quiet); }
.paper { position: absolute; left: calc(50% - 50px); bottom: 9%; width: 100px; height: 100px; clip-path: polygon(0 0,100% 0,65% 100%,35% 100%); }
[data-wrap='cream'] .paper { background: #ddc9a4; }
[data-wrap='pink'] .paper { background: #dfacb8; }
[data-wrap='green'] .paper { background: #a9c4ad; }
.flower-controls { padding: 15px; }
.flower-controls p { margin-bottom: 6px; font-size: .77rem; font-weight: 700; }
.flower-choices button { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; }
.flower-choices img { width: 40px; height: 68px; object-fit: contain; }
.picked { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-height: 54px; padding: 5px 0; }
.picked button { min-height: 32px; padding: 4px 6px; font-size: .68rem; border-style: dashed; }
.picked small { font-size: .72rem; color: var(--quiet); }
.swatch[data-kind='cream'] { background: #f3ead9; }
.swatch[data-kind='pink'] { background: #f5e6eb; }
.swatch[data-kind='green'] { background: #e5efe5; }
.flower-end { margin-top: 13px; }
.receipt-area { width: min(610px,100%); padding: 24px 28px; margin: 0 auto; }
.receipt-head { display: flex; align-items: center; gap: 14px; }
.receipt-head img { width: 108px; height: 108px; flex-shrink: 0; object-fit: contain; }
.receipt-head img.burnt { filter: brightness(.5) saturate(.7); }
.receipt-head img.torn { clip-path: polygon(0 0,60% 0,53% 30%,65% 50%,55% 75%,62% 100%,0 100%); }
.receipt-head p,.receipt-head span { color: var(--quiet); font-size: .8rem; }
.receipt-head h2 { margin: 4px 0; font-size: clamp(1.2rem,4vw,1.7rem); line-height: 1.3; letter-spacing: -.04em; word-break: keep-all; }
.bake-fail { color: var(--warning); font-size: .85rem; }
.totals { margin: 18px 0; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.totals dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.totals .profit { padding: 10px 0; border-bottom-style: solid; color: var(--accent); font-weight: 700; }
.store { margin-bottom: 18px; }
.store h3 { display: flex; flex-wrap: wrap; justify-content: space-between; font-size: .95rem; }
.store h3 span { font-size: .8rem; color: var(--quiet); }
.store button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; margin-top: 7px; text-align: left; }
.store small { display: block; color: var(--quiet); font-size: .75rem; font-weight: 400; }
#share-message { margin-top: 8px; min-height: 22px; font-size: .8rem; color: var(--quiet); }
#share-message input { width: 100%; }
dialog { max-width: calc(100% - 32px); padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }
dialog::backdrop { background: #17261e80; }
dialog p { margin: 6px 0 18px; color: var(--quiet); }
.ad-zone { min-height: 116px; margin: 32px 0; text-align: center; background: #eeefec; }
.ad-zone small { display: block; padding: 4px; color: #727972; font-size: .65rem; }
.ad-zone ins { min-height: 90px; }
.ad-zone:has(ins[data-ad-status='unfilled']) { display: none; }
.notes { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; padding: 8px 0 24px; color: var(--quiet); font-size: .88rem; }
.notes h2,.related h2 { margin-bottom: 10px; color: var(--ink); font-size: 1rem; }
.notes p { line-height: 1.8; }
.notes ol { padding-left: 20px; margin: 12px 0 0; }
.notes li+li { margin-top: 6px; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.faq details p { padding: 8px 0 2px; font-size: .83rem; }
.menu-guide { padding: 15px 0; border-top: 1px solid var(--line); font-size: .86rem; }
.menu-guide p { margin: 10px 0; color: var(--quiet); }
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
th,td { padding: 9px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #e9ede7; }
.related { padding: 18px 0 26px; border-top: 1px solid var(--line); }
.related>div { display: flex; flex-wrap: wrap; gap: 8px; }
.related a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; background: white; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-size: .83rem; }
.related a:hover { border-color: var(--accent); }
footer.shell { display: flex; gap: 16px; padding: 6px 0 25px; font-size: .76rem; color: var(--quiet); }
@media (max-width:750px) {
  .shell { width: calc(100% - 24px); }
  .masthead { min-height: 48px; }
  .awning { padding: 14px; gap: 8px; }
  .awning p { font-size: .75rem; }
  .shop-tools { gap: 4px; }
  .shop-tools button { padding: 6px; font-size: .7rem; }
  .work-area { display: block; }
  .counter { padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .counter h2 { margin-bottom: 4px; font-size: .75rem; }
  .orders { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; min-height: 164px; align-content: start; }
  [data-practice='true'] .orders { min-height: 79px; }
  .order { padding: 5px 7px 8px; min-height: 79px; }
  .customer { margin: 0 0 2px; font-size: .6rem; gap: 2px; }
  .customer img { width: 20px; height: 21px; }
  .customer b { font-size: .58rem; }
  .order-top strong { font-size: .8rem; }
  .order small { margin-top: 2px; font-size: .65rem; }
  .till div { padding: 9px 12px; }
  .workbench { padding: 9px 8px 12px; }
  .workbench h2 { margin-bottom: 3px; font-size: .8rem; }
  #feedback { margin-bottom: 6px; font-size: .75rem; }
  .stations { gap: 7px; }
  .machine header { min-height: 73px; padding: 8px 8px 3px; }
  .machine header strong { font-size: .81rem; }
  .machine header small { font-size: .65rem; }
  .station-picture { height: 110px; padding: 0 4px; }
  .iron { height: 108px; }
  .washer { width: 96px; height: 105px; }
  .washer-panel { height: 23px; padding: 4px 7px; }
  .washer-panel i { width: 13px; height: 13px; }
  .drum { width: 65px; height: 65px; border-width: 5px; }
  .timing-label { margin: 0 7px; font-size: .63rem; min-height: 22px; }
  .cook-track { margin: 0 7px; }
  .controls { min-height: 108px; padding: 7px; }
  .controls button,.clump button { padding: 5px 3px; font-size: .72rem; }
  .flower-bench { grid-template-columns: 24% minmax(0,1fr); min-height: 270px; }
  .flower-controls { padding: 9px; }
  .flower-choices img { width: 32px; height: 52px; }
  .stem { width: 68px; left: -34px; height: 175px; }
  .paper { left: calc(50% - 36px); width: 72px; height: 82px; }
  .bouquet-empty { font-size: .7rem; }
  .flower-end { margin-top: 9px; }
  .notes { gap: 20px; }
}
@media (max-width:460px) {
  .intro { grid-template-columns: 1fr; }
  .window { min-height: 190px; }
  .window::after { height: 30px; border-top-width: 5px; }
  .display-items { width: 70%; padding-bottom: 10px; }
  .display-items img { height: 110px; }
  [data-theme='flower'] .display-items img { height: 155px; }
  .shopkeeper { width: 79px; height: 90px; right: 9px; }
  .intro-copy { padding: 22px 18px; gap: 9px; }
  .intro-copy p { font-size: .86rem; }
  .intro-actions { width: 100%; }
  .intro-actions button { flex: 1; padding: 10px 6px; font-size: .8rem; }
  .awning { align-items: flex-start; }
  .awning p { max-width: 25ch; }
  .shop-tools { max-width: 120px; }
  [data-phase='playing'] .awning,[data-phase='break'] .awning { align-items: center; padding: 11px 10px; }
  [data-phase='playing'] .awning p,[data-phase='break'] .awning p { display: none; }
  [data-phase='playing'] h1,[data-phase='break'] h1 { font-size: 1.1rem; }
  [data-phase='playing'] .shop-tools,[data-phase='break'] .shop-tools { flex-wrap: nowrap; }
  .till span { font-size: .65rem; }
  .receipt-area { padding: 18px 13px; }
  .receipt-head { gap: 8px; }
  .receipt-head img { width: 75px; height: 85px; }
  .receipt-head p,.receipt-head span { font-size: .72rem; }
  .result-actions button { flex: 1; padding: 9px 5px; font-size: .75rem; }
  .notes { grid-template-columns: 1fr; }
  .ad-zone { margin: 24px 0; }
  th,td { padding: 8px 4px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; scroll-behavior: auto !important; } }
