:root {
  color-scheme: light;
  font-family: "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: #522f33;
  background: #fff4e8;
  --ink: #522f33;
  --subtle: #79514f;
  --pink: #a74557;
  --line: #edcec2;
  --paper: #fffaf3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 15%, #fffaf2 8%, transparent 75%),
    repeating-linear-gradient(90deg, #f8e7db8c 0 25px, transparent 25px 50px),
    #fff4e8;
}
button { font: inherit; cursor: pointer; }
button:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid #754337; outline-offset: 3px; }
button:disabled { cursor: default; }
h1, h2, p { margin: 0; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell {
  width: min(100%, 468px);
  margin-inline: auto;
  padding: max(15px, env(safe-area-inset-top)) 17px max(20px, env(safe-area-inset-bottom));
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 15px;
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  background: #f5d6cd;
  border: 1px solid #ecc0b5;
  border-radius: 14px;
}
.brand-mark svg { width: 32px; height: 28px; }
.brand-name { font-size: clamp(16px, 4.7vw, 20px); font-weight: 900; letter-spacing: -.065em; }
.test-tag {
  padding: 6px 9px;
  white-space: nowrap;
  color: #7c494e;
  background: #fff9f1;
  border: 1px solid #efd2c7;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}
.topbar-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.topbar-actions .test-tag { padding: 5px 7px; font-size: 10px; }
.sound-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: #86505a;
  font-size: 23px;
  line-height: 1;
}
.shop-card, .result-card, .order-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 26px;
  box-shadow: 0 6px 0 #eec9b63b, 0 16px 34px #865a3c12;
}
.shop-card { overflow: hidden; }
.awning {
  height: 19px;
  border-bottom: 1px solid #e6b0a4;
  background: repeating-linear-gradient(90deg, #df8b91 0 33px, #f7c8ba 33px 66px);
}
.shop-art { padding: 10px 13px 0; background: linear-gradient(#f9ded2, #fcece0); }
.shop-art > svg { width: min(100%, 340px); margin-inline: auto; }
.shop-copy { padding: 19px 21px 23px; text-align: center; }
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #925357;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .055em;
}
.eyebrow > span { width: 6px; height: 6px; border-radius: 2px; background: #cc7784; transform: rotate(45deg); }
h1 { font-weight: 900; letter-spacing: -.075em; line-height: 1.16; }
.shop-copy h1 { margin: 8px 0 10px; font-size: clamp(33px, 9vw, 45px); }
.description { color: var(--subtle); font-size: 14px; line-height: 1.58; word-break: keep-all; }
.button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 49px;
  padding: 9px 32px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 850;
  letter-spacing: -.03em;
}
.button > span { position: absolute; right: 16px; font-size: 20px; }
.primary {
  color: white;
  background: linear-gradient(#b14e60, #9e4052);
  border-color: #943a4d;
  box-shadow: 0 4px 0 #803348;
}
.primary:active { translate: 0 2px; box-shadow: 0 2px 0 #803348; }
.secondary { color: #7c4349; background: #faeae1; border-color: #edcdc2; }
.secondary:active { background: #f5dbd4; }
.shop-copy .button, .result-card .primary { margin-top: 17px; }
.shop-copy .secondary { margin-top: 12px; }
.home-note {
  margin: 20px 7px 0;
  color: #805750;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  word-break: keep-all;
}
.home-note span { color: #ad5364; margin-right: 4px; }
.orders-section { margin-top: 18px; }
.chapter-label { width: fit-content; margin: 0 auto 10px; padding: 5px 10px; border-radius: 999px; background: #f7e6dc; color: #825252; font-size: 11px; font-weight: 800; }
#play > .chapter-label { margin-left: 2px; }
.chapter-list { display: grid; gap: 13px; list-style: none; margin: 0; padding: 0; }
.chapter-group { padding: 12px; border: 1px solid var(--line); border-radius: 19px; background: #fffaf3c9; }
.chapter-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; flex-wrap: wrap; }
.chapter-heading h3 { margin: 0; font-size: 14px; letter-spacing: -.04em; }
.chapter-progress { color: #815450; font-size: 10px; white-space: nowrap; }
.chapter-materials, .chapter-coming { margin: 6px 0 10px; color: #805d53; font-size: 11px; line-height: 1.5; }
.chapter-coming { margin: 10px 0 0; text-align: center; }
.chapter-group.lemon { background: #f9f7e8d9; border-color: #d6dbc1; }
.chapter-reward { margin-top: 15px; padding: 12px; background: #f6e9ca; border: 1px solid #e5d29f; border-radius: 13px; font-size: 13px; line-height: 1.6; word-break: keep-all; }
body.theme-lemon { background: radial-gradient(ellipse at 50% 15%, #fffdf3 8%, transparent 75%), repeating-linear-gradient(90deg, #eee9ce80 0 25px, transparent 25px 50px), #fcf8e7; }
.theme-lemon .awning { background: repeating-linear-gradient(90deg, #dfc477 0 33px, #f4e4ae 33px 66px); border-color: #d3bd81; }
.theme-lemon .shop-art { background: linear-gradient(#f0e9c9, #faf3dc); }
.theme-lemon .chapter-label { background: #e6ecd9; color: #536b4d; }
.theme-lemon .tray { background: linear-gradient(147deg, #94a58b, #72866f); border-color: #687c63; box-shadow: 0 4px 0 #5b7058, 0 8px 16px #58764723, inset 0 2px 0 #ffffff24; }
.chapter-group.tea { background: #eff4e8; border-color: #b9ccb6; }
.chapter-group summary { min-height: 48px; padding: 7px 4px; cursor: pointer; }
.chapter-group summary .chapter-heading { display: inline-flex; width: calc(100% - 24px); vertical-align: middle; }
.chapter-group details[open] summary { margin-bottom: 9px; border-bottom: 1px solid var(--line); }
.chapter-group summary:focus-visible { outline: 3px solid #a54f66; outline-offset: 3px; border-radius: 8px; }
.tile.banana, .goal.banana { background: #f4e3a7; }
.tile.hazelnut, .goal.hazelnut { background: #e1cdbb; }
.tile.cherry, .goal.cherry { background: #f3ccd6; }
.tile.yogurt, .goal.yogurt { background: #ded8ed; }
.tile.whipping-star::before { content: "★"; position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; color: #ffe79d; font-size: clamp(24px,8vw,37px); text-shadow: -1px -1px #9b6a2c,1px 1px #9b6a2c,0 2px 2px #845422; background: #fff0c744; border-radius: inherit; }
.tile.double-coat .honey-mark { border-width: 5px; border-color: #a46c20; background: repeating-linear-gradient(135deg,#f2bd4430 0 4px,transparent 4px 8px); }
body.theme-cocoa { background: repeating-linear-gradient(90deg,#eddfd380 0 25px,transparent 25px 50px),#faf0e5; }
.theme-cocoa .awning { background: repeating-linear-gradient(90deg,#a98b70 0 33px,#edd8b8 33px 66px); }
body.theme-berry { background: repeating-linear-gradient(90deg,#ecdced80 0 25px,transparent 25px 50px),#fcf2f6; }
.theme-berry .awning { background: repeating-linear-gradient(90deg,#bc90ad 0 33px,#f0d9e7 33px 66px); }
.chapter-group.cocoa { background: #f4e9dc; }
.chapter-group.berry { background: #f8eaf2; }
.tile.peach, .goal.peach { background:#f7c8b8; }
.tile.jelly, .goal.jelly { background:#e2c9ef; }
.tile.ice, .goal.ice { background:#c9e8ee; }
body.theme-cooling { background:repeating-linear-gradient(90deg,#dcefea80 0 25px,transparent 25px 50px),#f2faf5; }
.theme-cooling .awning { background:repeating-linear-gradient(90deg,#8fbdba 0 33px,#e3f2df 33px 66px); }
.theme-cooling .shop-art { background:linear-gradient(#e5f2e9,#fff4e3); }
.theme-cooling .chapter-label { background:#e0eeea; color:#507b76; }
.theme-cooling .tray { background:linear-gradient(147deg,#9bbab1,#799d94); border-color:#668a82; box-shadow:0 4px 0 #5d8279,0 8px 16px #58764723,inset 0 2px 0 #ffffff24; }
.chapter-group.cooling { background:#edf7f0; border-color:#bbd6cc; }
.tile.chestnut, .goal.chestnut { background:#dec1a1; }
.tile.pumpkin, .goal.pumpkin { background:#f5d0a0; }
.tile.cinnamon, .goal.cinnamon { background:#e3cdc1; }
body.theme-autumn { background:repeating-linear-gradient(90deg,#eed8bb70 0 25px,transparent 25px 50px),#fff5e7; }
.theme-autumn .awning { background:repeating-linear-gradient(90deg,#c6a078 0 33px,#f4dfbb 33px 66px); }
.theme-autumn .shop-art { background:linear-gradient(#f0ddc6,#fff1dc); }
.theme-autumn .chapter-label { background:#f1e1c7; color:#88633f; }
.theme-autumn .order-card > div:first-child { padding-right:76px; }
.theme-autumn .order-card h1 { word-break:keep-all; overflow-wrap:break-word; }
.theme-autumn .tray { background:linear-gradient(147deg,#b69a79,#93775d); border-color:#88674f; box-shadow:0 4px 0 #775d48,0 8px 16px #886d4723,inset 0 2px 0 #ffffff24; }
.chapter-group.autumn { background:#faf0df; border-color:#dec7a3; }
.tile.mint, .goal.mint { background:#c1dfcb; }
.tile.vanilla, .goal.vanilla { background:#f5e6bf; }
.tile.rice, .goal.rice { background:#eee6d9; }
.tile.sesame, .goal.sesame { background:#d4c9dc; }
.tile.caramel, .goal.caramel { background:#edcda1; }
body.theme-celebration { background:repeating-linear-gradient(90deg,#f1d9bf70 0 25px,transparent 25px 50px),#fff7e8; }
.theme-celebration .awning { background:repeating-linear-gradient(90deg,#d0a279 0 33px,#f4dcb3 33px 66px); }
.theme-celebration .shop-art { background:radial-gradient(ellipse at top,#fff4cb,#f4ddc8); }
.theme-celebration .chapter-label { background:#f2dfb5; color:#956b3f; }
.theme-celebration .tray { background:linear-gradient(147deg,#c4a17d,#a28062); border-color:#926e51; box-shadow:0 4px 0 #7e5e45,0 8px 16px #926e5123,inset 0 2px 0 #ffffff24; }
.chapter-group.celebration { background:#fbf0dd; border-color:#dec89f; }
.theme-celebration .order-card > div:first-child { padding-right:76px; }
.theme-celebration .order-card h1 { word-break:keep-all; overflow-wrap:break-word; }
.hundred-celebration { margin:18px 0; padding:15px 11px; background:radial-gradient(ellipse at top,#fff9dd,#f5e4bd); border:1px solid #dbbd7f; border-radius:20px; color:#8d643c; }
.hundred-celebration svg { width:77px; height:64px; margin:0 auto 5px; }
.hundred-celebration strong { display:block; font-size:20px; letter-spacing:-.06em; }
.hundred-celebration p { margin-top:7px; font-size:12px; line-height:1.8; }
.result-card[data-milestone="true"] { border-color:#d7b46d; box-shadow:0 5px 0 #d8b97a44,0 8px 24px #cfaa5720; }
.theme-celebration .result-card h1 { word-break:keep-all; overflow-wrap:break-word; font-size:clamp(25px,7.4vw,33px); }
body.theme-icecream { background:repeating-linear-gradient(90deg,#d6ece180 0 25px,transparent 25px 50px),#f6faf0; }
.theme-icecream .awning { background:repeating-linear-gradient(90deg,#99c7b1 0 33px,#f4eacb 33px 66px); }
.theme-icecream .shop-art { background:linear-gradient(#dcefe4,#fff5da); }
.theme-icecream .chapter-label { background:#e0eee1; color:#5a8065; }
.theme-icecream .tray { background:linear-gradient(147deg,#a2bfa6,#7fa286); border-color:#6c8e72; box-shadow:0 4px 0 #5e8063,0 8px 16px #5e806323,inset 0 2px 0 #ffffff24; }
.chapter-group.icecream { background:#f0f6e9; border-color:#bdd6be; }
body.theme-flower { background:repeating-linear-gradient(90deg,#efdde580 0 25px,transparent 25px 50px),#fff7f0; }
.theme-flower .awning { background:repeating-linear-gradient(90deg,#d4a6b6 0 33px,#f6e5d9 33px 66px); }
.theme-flower .shop-art { background:linear-gradient(#f4e1e5,#fff4df); }
.theme-flower .chapter-label { background:#f2dfe5; color:#996378; }
.theme-flower .tray { background:linear-gradient(147deg,#ba9cae,#9a7b90); border-color:#8b687e; box-shadow:0 4px 0 #795d70,0 8px 16px #795d7023,inset 0 2px 0 #ffffff24; }
.chapter-group.flower { background:#faf0f3; border-color:#dfc3cf; }
.theme-icecream .order-card > div:first-child, .theme-flower .order-card > div:first-child { padding-right:76px; }
.theme-icecream .order-card h1, .theme-flower .order-card h1 { word-break:keep-all; overflow-wrap:break-word; }
.theme-flower #play-order { font-size:10px; line-height:1.6; }
.choice-heading { text-align:center; padding:20px 12px 0; }
.choice-heading .eyebrow { justify-content:center; }
.choice-heading h1 { font-size:clamp(23px,6.5vw,30px); letter-spacing:-.06em; margin:12px 0 0; }
.choice-heading svg { width:110px; height:85px; margin:6px auto; }
.choice-heading h2 { font-size:19px; letter-spacing:-.04em; }
.choice-note { font-size:12px; line-height:1.8; color:var(--subtle); text-align:center; margin:12px 0 16px; }
.guest-orders { display:grid; gap:12px; }
.guest-order { display:grid; position:relative; gap:8px; width:100%; min-height:145px; padding:17px 91px 17px 16px; text-align:left; border:1px solid #dfbdc9; border-radius:21px; color:#754b5e; background:#fffaf4; box-shadow:0 3px 0 #e8d0d638; }
.guest-order:nth-child(2) { border-color:#c4cdb0; background:#fbfcf2; color:#62764f; }
.guest-order strong { font-size:14px; letter-spacing:-.05em; }
.guest-order > span:not(.guest-goals):not(.guest-pattern) { font-size:11px; line-height:1.6; }
.guest-goals > span { display:flex; align-items:center; gap:6px; font-size:16px; font-weight:800; }
.guest-goals svg { width:31px; height:31px; }
.guest-order small { font-size:12px; font-weight:800; }
.guest-pattern { display:grid; grid-template-columns:repeat(8,1fr); gap:2px; width:66px; position:absolute; top:45px; right:15px; }
.guest-pattern i { aspect-ratio:1; border-radius:2px; background:#eadfda; }
.guest-pattern .marked { background:#d7ab5d; box-shadow:inset 0 0 0 1px #b98f4c; }
#choice-back { width:100%; min-height:48px; border-radius:16px; }
.tile.suggested.star-spot::after { content:"★"; display:grid; place-items:center; position:absolute; width:17px; height:17px; top:1px; right:1px; color:#996727; background:#fff1bf; border:1px solid #a97b40; border-radius:50%; font-size:12px; z-index:4; }
.collection-entry { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 13px; margin-bottom: 13px; border: 1px solid #e4c99f; border-radius: 17px; background: #fff2d6; color: #705044; text-align: left; }
.collection-entry > span:first-child { flex: 1; }
.collection-entry strong, .collection-entry small { display: block; }
.collection-entry strong { font-size: 15px; letter-spacing: -.04em; }
.collection-entry small { margin-top: 3px; font-size: 11px; color: #8a6c5b; }
.new-reward-badge { padding: 4px 7px; border-radius: 12px; background: #aa4b63; color: #fff9ef; font-size: 10px; white-space: nowrap; }
.home-shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 3px 16px 9px; background: linear-gradient(#fff3df 75%, #e2bc9699 76%, #f4d8b6 89%, #b78c6944 90%); }
.home-shelf-slot { display: flex; min-width: 0; flex-direction: column; align-items: center; padding: 0 1px; color: #806454; border: 0; background: transparent; }
.home-shelf-slot svg { width: 85px; max-width: 100%; height: 63px; }
.slot-caption { display: block; font-size: 10px; line-height: 1.5; white-space: nowrap; }
.empty-shelf-mark { display: grid; place-items: center; height: 63px; color: #c9ad8e; font-size: 30px; }
#open-lab { margin-top: 16px; }
.collection-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.collection-heading .eyebrow { justify-content: flex-start; font-size: 9px; color: #a46e65; letter-spacing: .12em; }
.collection-heading h1 { margin-top: 5px; font-size: clamp(27px, 7.6vw, 35px); }
.back-button { min-height: 44px; padding: 5px 11px; flex: none; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: #7e5551; font-size: 11px; font-weight: 750; }
.collection-summary { margin: 12px 0; font-size: 12px; color: #8c6b5b; }
.collection-tabs { display: flex; gap: 7px; margin-bottom: 17px; }
.collection-tabs button { flex: 1; min-height: 44px; border: 1px solid #e4c7b9; border-radius: 13px; background: #fff7eb; color: #845e55; font-size: 13px; font-weight: 800; }
.collection-tabs [aria-pressed="true"] { background: #a94e63; border-color: #994156; color: #fffaf0; }
.display-card { padding: 18px 13px 13px; background: #fffaf0; border: 1px solid #e7c9b2; border-radius: 22px; box-shadow: 0 4px 0 #d9bda526; text-align: center; }
.display-card .eyebrow { font-size: 10px; letter-spacing: .02em; color: #a07666; }
.display-card h2 { margin: 5px 0 15px; font-size: 20px; letter-spacing: -.05em; }
.decor-shelf { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; padding-bottom: 12px; border-bottom: 8px solid #d4ae87; box-shadow: 0 4px 0 #b7906c33; }
.decor-slot { display: flex; min-width: 0; flex-direction: column; align-items: center; padding: 7px 2px 6px; border: 1px solid #e1ccac; border-radius: 12px 12px 5px 5px; background: #f9f0df; color: #795c50; }
.decor-slot[aria-pressed="true"] { border: 2px solid #a44660; padding: 6px 1px 5px; background: #fff1eb; box-shadow: 0 0 0 2px #efd0d699; }
.slot-number { font-size: 10px; color: #997b68; }
.decor-slot svg { width: 100%; height: 77px; }
.decor-slot .empty-shelf-mark { height: 77px; }
.decor-help { margin: 15px 0 10px; color: #8e6e60; font-size: 12px; line-height: 1.65; text-align: center; word-break: keep-all; }
.clear-decor { min-height: 44px; padding: 4px 13px; border: 1px solid #e5c9ba; border-radius: 12px; color: #92675a; background: #fff5ea; font-size: 11px; }
.clear-decor:disabled { opacity: .5; }
.souvenir-list { display: grid; gap: 14px; margin-top: 16px; }
.souvenir-option { padding: 15px; border: 1px solid #e6cebc; border-radius: 19px; background: #fffbf4; }
.souvenir-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; }
.souvenir-heading .eyebrow { font-size: 10px; letter-spacing: 0; justify-content: flex-start; }
.reward-status { color: #9b7a5a; font-size: 9px; }
.souvenir-option h3 { margin: 8px 0 10px; font-size: 18px; letter-spacing: -.045em; }
.souvenir-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.souvenir-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 128px; padding: 5px 8px 9px; border: 1px solid #e5d4bf; border-radius: 14px; color: #805b52; background: #fff7e9; font-size: 12px; }
.souvenir-choice svg { width: 112px; max-width: 100%; height: 91px; }
.souvenir-choice[aria-pressed="true"] { border: 2px solid #a64f65; padding: 4px 7px 8px; background: #fce8e3; box-shadow: inset 0 0 0 2px #fff9f0; }
.locked-souvenir { background: #f7f1e8; }
.locked-souvenir .souvenir-choice { background: #f5eee2; color: #a18c79; }
.locked-souvenir svg, .recipe-locked svg { filter: grayscale(.85); opacity: .35; }
.souvenir-condition { margin-top: 9px; color: #97765f; font-size: 11px; line-height: 1.6; text-align: center; }
.recipe-book-heading { text-align: center; padding: 12px 0 20px; }
.recipe-book-heading h2 { margin: 6px 0; font-size: 22px; letter-spacing: -.045em; }
.recipe-book-heading p:last-child { color: #97725f; font-size: 12px; }
.menu-book { display: grid; gap: 20px; }
.recipe-page { position: relative; padding: 21px 24px; border: 1px solid #ddc6a8; border-left: 7px solid #dab899; border-radius: 5px 20px 20px 5px; background: repeating-linear-gradient(0deg,#fffaf0 0 27px,#e8d8be66 27px 28px); box-shadow: 3px 4px 0 #d2b68c33; text-align: center; }
.recipe-chapter { font-size: 11px; color: #9a755b; }
.recipe-page > svg { width: 175px; max-width: 100%; height: 140px; margin: 9px auto 3px; }
.recipe-page h3 { margin: 4px 0 12px; font-size: 22px; letter-spacing: -.06em; }
.recipe-stamp { display: inline-block; padding: 5px 12px; border: 2px solid #b37f65; border-radius: 8px; color: #a76c55; font-size: 12px; font-weight: 800; rotate: -5deg; }
.recipe-letter { margin-top: 18px; color: #8b6555; font-size: 13px; line-height: 1.8; word-break: keep-all; }
.recipe-sender { margin-top: 7px; color: #a67b60; font-size: 11px; }
.recipe-locked .recipe-stamp { color: #a49682; border-color: #c7b9a4; font-weight: 500; }
.decor-notice { min-height: 20px; margin: 18px 3px; color: #917460; font-size: 11px; line-height: 1.7; text-align: center; word-break: keep-all; }
.chapter-keepsake { display: grid; grid-template-columns: 88px 1fr; gap: 6px 10px; margin: 19px 0 5px; padding: 15px; border: 1px solid #debc83; border-radius: 18px; background: #fff2d8; text-align: left; }
.chapter-keepsake > .eyebrow { grid-column: 1/-1; margin-bottom: 3px; font-size: 11px; }
.chapter-keepsake > svg { width: 88px; height: 78px; grid-row: 2/4; grid-column: 1; }
.chapter-keepsake > strong { align-self: end; font-size: 18px; letter-spacing: -.04em; }
.chapter-keepsake > p:not(.eyebrow) { color: #9c7355; font-size: 11px; line-height: 1.65; word-break: keep-all; }
.chapter-keepsake .keepsake-letter { grid-column: 1/-1; margin-top: 6px; }
.chapter-keepsake .button { grid-column: 1/-1; margin-top: 7px; font-size: 12px; }
.newly-earned { animation: welcome-keepsake 600ms ease-out; }
@keyframes welcome-keepsake { from { opacity: .3; translate: 0 7px; } to { opacity: 1; translate: 0; } }
@media (prefers-reduced-motion: reduce) { .newly-earned { animation: none; } }
.update-note { margin: 0 0 12px; padding: 10px; border: 1px solid #c7d9bc; border-radius: 14px; background: #edf5df; color: #49684b; font-size: 13px; font-weight: 850; text-align: center; line-height: 1.6; }
.update-note span { font-size: 11px; font-weight: 650; }
body.theme-tea { background: radial-gradient(ellipse at 50% 15%, #fcfff4 8%, transparent 75%), repeating-linear-gradient(90deg, #dce8d480 0 25px, transparent 25px 50px), #f3f7e8; }
.theme-tea .awning { background: repeating-linear-gradient(90deg, #8eac80 0 33px, #e0e9c9 33px 66px); border-color: #9cb28b; }
.theme-tea .shop-art { background: linear-gradient(#e4edda, #f7f5dd); }
.theme-tea .chapter-label { background: #dfebe2; color: #4c7364; }
.theme-tea .tray { background: linear-gradient(147deg, #7da69a, #5c8277); border-color: #52796b; box-shadow: 0 4px 0 #45695c, 0 8px 16px #416c5823, inset 0 2px 0 #ffffff24; }
.tile.matcha, .goal.matcha { background: #d1e2b1; }
.tile.milk, .goal.milk { background: #cee5ed; }
.tile.redbean, .goal.redbean { background: #efc8d5; }
.tile.delivery, .goal.delivery-goal { background: #fff3d7; border-color: #4e8d80; }
.tile.delivery { box-shadow: inset 0 0 0 2px #6b9c89, inset 0 0 0 4px #fff6dd; }
.delivery-lanes { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--gap, 4px); height: 18px; margin-top: 2px; color: #b7d5c5; text-align: center; font-size: 14px; line-height: 18px; }
.delivery-exit.active { background: #eef7da; color: #356f60; border-radius: 4px; font-weight: 900; }
.delivery-exit.arrived { color: #fff9d8; font-weight: 900; }
.orders-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin: 0 2px 7px;
}
.orders-heading h2 { font-size: 15px; letter-spacing: -.04em; }
.orders-heading span { color: #815450; font-size: 11px; font-weight: 750; }
.order-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.order-item {
  display: flex;
  width: 100%;
  min-height: 61px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  padding: 7px 8px;
  border: 1px solid #edcec2;
  border-radius: 13px;
  background: #fffaf3;
  color: #663e43;
  text-align: left;
  word-break: keep-all;
}
.order-item strong { font-size: clamp(11px, 3.2vw, 13px); }
.order-item span { color: #875353; font-size: 10px; }
.order-item.available { border-color: #c78488; background: #fbe7df; }
.order-item:disabled { color: #795955; background: #f5e7dc; }
.order-item:active:not(:disabled) { background: #f4d9d1; }
.order-card {
  position: relative;
  padding: 13px 13px 11px;
  overflow: hidden;
}
.order-card .eyebrow { justify-content: start; }
.order-card h1 { position: relative; z-index: 1; margin: 6px 0 12px; font-size: clamp(25px, 7.8vw, 34px); }
.order-art { position: absolute; right: 14px; top: 1px; width: 80px; }
.order-art g > use { opacity: 0; }
.order-art g > use.added { opacity: 1; }
.goals { display: grid; grid-template-columns: 1fr 1fr minmax(59px, .68fr); gap: 6px; }
.goal, .moves {
  min-height: 49px;
  display: flex;
  align-items: center;
  border-radius: 11px;
}
.goal { gap: 5px; padding: 4px 6px; border: 1px solid #ebcec2; color: #6c3e44; }
.goal.berry { background: #f9e0df; }
.goal.cream { background: #fbefcf; }
.goal.choco { background: #f1ddce; }
.goal.cookie { background: #e9eed9; }
.goal.blueberry { background: #ebe4f7; }
.goal.lemon { background: #e0ede5; }
.goal.honey { background: #ece3f4; }
.goal > svg { width: clamp(22px, 6.6vw, 30px); flex: none; }
.goal-name, .moves span { display: block; font-size: 11px; font-weight: 750; line-height: 1.2; }
.goal strong { font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.goal.complete { background: #e8eddc; border-color: #cfd9bd; color: #456044; }
.moves { flex-direction: column; justify-content: center; background: #78474a; color: #fff9ee; }
.moves strong { line-height: 1.12; font-size: 22px; font-variant-numeric: tabular-nums; }
.moves.low { background: #a04453; }
.board-hint {
  min-height: 24px;
  margin: 12px 1px 4px;
  padding: 2px 0;
  text-align: center;
  color: #86505a;
  font-size: clamp(11px, 3.35vw, 13px);
  font-weight: 750;
  line-height: 1.4;
  word-break: keep-all;
}
.tray {
  padding: clamp(6px, 2vw, 10px);
  border-radius: 21px;
  background: linear-gradient(147deg, #ac776f, #8a5654);
  border: 1px solid #8f5b57;
  box-shadow: 0 4px 0 #764948, 0 8px 16px #80524823, inset 0 2px 0 #ffffff24;
}
.board {
  --gap: clamp(4px, 1.18vw, 6px);
  display: grid;
  grid-template-columns: repeat(var(--board-size, 6), minmax(0, 1fr));
  gap: var(--gap);
  border-radius: 13px;
  overflow: hidden;
}
.tile {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #84585672;
  border-radius: clamp(6px, 2.2vw, 12px);
  background: #8b5956;
  box-shadow: inset 0 2px 0 #ffffff6d, inset 0 -3px 0 #713d392b;
  color: var(--ink);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.tile.berry { background: #f4bcc2; }
.tile.cream { background: #fce9b8; }
.tile.choco { background: #e7b59d; }
.tile.cookie { background: #d8dfbd; }
.tile.lemon { background: #d4e8e3; }
.tile.honey { background: #e1d9f0; }
.tile.blueberry { background: #ddd8f4; }
.tile.joker { background: #e8d5f2; }
.honey-mark { position: absolute; inset: 1px; border: 3px solid #aa6b10; border-radius: inherit; box-shadow: inset 0 0 0 2px #ffe89a; pointer-events: none; }
.honey-mark::after { content: ""; position: absolute; width: 7px; height: 9px; left: calc(50% - 3.5px); bottom: -2px; border: 1px solid #9c6211; border-radius: 65% 65% 65% 15%; background: #f8c64c; rotate: -45deg; }
.goal.honey-floor-goal { background: #fff0bf; border-color: #d8b16a; }
.tile svg { width: 76%; height: 76%; pointer-events: none; filter: drop-shadow(0 2px 0 #6f423526); }
.tile:active { filter: brightness(.95); }
.tile:focus-visible { z-index: 2; outline: 3px solid #633a44; outline-offset: -4px; }
.tile.suggested { box-shadow: inset 0 0 0 2px #fff5e3, inset 0 0 0 4px #a8415c; }
.tile.suggested::after {
  content: "✦";
  position: absolute;
  top: 0;
  right: 3px;
  z-index: 1;
  font-size: clamp(10px, 3vw, 15px);
  color: #7e364c;
  pointer-events: none;
}
.tile.popping { animation: pop 155ms ease-in both; }
@keyframes pop { 0% { scale: 1; } 30% { scale: 1.06; } 100% { scale: .45; opacity: .1; } }
.play-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 11px; }
.play-footer p { color: #815450; font-size: 11px; line-height: 1.4; word-break: keep-all; }
.pause-button {
  width: 44px;
  height: 44px;
  flex: none;
  color: #874a4c;
  background: #fff7ec;
  border: 1px solid #e7c4b8;
  border-radius: 13px;
  font-size: 20px;
  font-weight: 900;
}
.result-card { padding: 23px 20px; text-align: center; }
.result-art { position: relative; width: min(76%, 204px); margin: 17px auto 13px; }
.result-art svg { width: 100%; }
.result-art .spark { position: absolute; font-size: 25px; color: #c56778; }
.result-art .left { left: 1%; top: 28%; }
.result-art .right { right: 2%; top: 15%; }
.result-card[data-outcome="lost"] .result-art { opacity: .67; }
.result-card h1 { font-size: clamp(31px, 8.6vw, 42px); }
.result-card .description { margin: 10px 0; }
.result-card .secondary { margin-top: 13px; }
.lab-entry { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 72px; margin-bottom: 14px; padding: 11px 13px; text-align: left; color: #68461e; background: #fff1c7; border: 1px solid #dfbd76; border-radius: 19px; box-shadow: 0 3px 0 #d5aa5838; }
.lab-entry > svg { width: 39px; flex: none; }
.lab-entry > span { flex: 1; }
.lab-entry strong, .lab-entry small { display: block; }
.lab-entry strong { font-size: 15px; }
.lab-entry small { margin-top: 4px; font-size: 11px; }
.lab-entry > b { font-size: 22px; }
.lab-legend { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 15px 0; color: #6d532b; font-size: 12px; line-height: 1.5; }
.lab-legend > svg { width: 38px; flex: none; }
.trial-card { position: relative; margin: 15px 0; padding: 15px; background: #fff6df; border: 1px solid #e2c88e; border-radius: 18px; }
.trial-heading { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.trial-heading > span { color: #8a602f; font-size: 11px; font-weight: 800; }
.trial-heading > svg { width: 69px; height: 54px; position: absolute; top: 10px; right: 10px; }
.trial-card h2 { margin: 2px 0 7px; padding-right: 40px; font-size: 22px; letter-spacing: -.06em; }
.trial-card p { color: #785435; font-size: 12px; }
.trial-card .primary { margin: 14px 0 10px; }
.trial-card .secondary { min-height: 44px; font-size: 12px; }
.lab-note { margin: 17px 0; text-align: center; color: #79574c; font-size: 12px; line-height: 1.6; }
dialog {
  width: min(calc(100% - 38px), 370px);
  padding: 23px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 17px 50px #4529304f;
  text-align: center;
}
dialog::backdrop { background: #4c2a3570; }
dialog h2 { font-size: 23px; letter-spacing: -.07em; }
dialog p { margin: 9px 0 16px; color: var(--subtle); font-size: 14px; }
dialog .secondary { margin-top: 12px; }
.sound-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 13px;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff4e8;
  font-weight: 800;
  cursor: pointer;
}
.sound-option input { width: 24px; height: 24px; margin: 0; accent-color: #a74557; cursor: pointer; }
#sound-dialog .sound-note { margin: 12px 0 0; font-size: 12px; }
#sound-dialog .primary { margin-top: 12px; }
#preview-sound:disabled { opacity: .5; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.compare-card {
  padding: 22px 19px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 6px 0 #eec9b63b, 0 16px 34px #865a3c12;
}
.compare-card h1 { margin: 8px 0; text-align: center; font-size: clamp(31px, 8.6vw, 42px); }
.compare-card .description { text-align: center; }
#compare-form { margin-top: 17px; }
#compare-form fieldset { min-inline-size: 0; padding: 0; border: 0; margin: 0 0 13px; }
#compare-form legend { margin-bottom: 6px; padding: 0; color: #6b4145; font-size: 13px; font-weight: 800; }
.compare-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.compare-options label { position: relative; cursor: pointer; }
.compare-options input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.compare-options span {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 6px 5px;
  border: 1px solid #ebcec2;
  border-radius: 11px;
  background: #fff6ec;
  text-align: center;
  color: #794d4b;
  font-weight: 750;
  font-size: 12px;
  word-break: keep-all;
}
.compare-options input:checked + span { border: 2px solid #a74557; color: #803348; background: #f9dfdc; }
.compare-options input:focus-visible + span { outline: 2px solid #754337; outline-offset: 2px; }
.compare-card .secondary { margin-top: 12px; }
.compare-history { margin: 16px 2px 0; }
.compare-history h2 { font-size: 16px; }
.compare-history ul { list-style: none; padding: 0; margin: 7px 0; }
.compare-history li {
  display: grid;
  gap: 3px;
  margin-bottom: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 12px;
}
.compare-history li span, .compare-history p { color: var(--subtle); font-size: 11px; }
.board-settings {
  margin-top: 8px;
  color: #86505a;
  text-align: center;
  font-size: 11px;
  font-weight: 750;
}
.play-compact .tray {
  margin-inline: -8px;
  padding: 5px;
  border-radius: 16px;
}
.play-compact .board { --gap: clamp(2px, .7vw, 4px); border-radius: 10px; }
.play-compact .tile { border-radius: clamp(4px, 1.5vw, 8px); }
.play-compact .tile svg { width: 82%; height: 82%; }
.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 13px 0 0;
}
.result-stats div { background: #f8e6dc; border: 1px solid var(--line); border-radius: 9px; padding: 7px 3px; }
.result-stats dt { color: #815450; font-size: 11px; }
.result-stats dd { margin: 4px 0 0; font-weight: 850; font-size: 13px; }
@media (min-width: 540px) {
  .shell { padding-top: 25px; }
  .shop-copy { padding-inline: 31px; }
}
@media (max-width: 350px) {
  .shell { padding-inline: 12px; }
  .order-art { width: 67px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile, .button { animation: none !important; }
}


.tile.star-range { outline: 2px dashed #d5aa52; outline-offset: -3px; }
.help-tools { margin-top: 12px; }
.help-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.help-item { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 58px; padding: 8px 5px; border: 1px solid var(--line); border-radius: 15px; background: #fffaf3; color: var(--ink); }
.help-item svg { width: 33px; height: 33px; flex: none; }
.help-item strong, .help-item small { display: block; text-align: left; }
.help-item strong { font-size: 13px; }
.help-item small { margin-top: 3px; font-size: 10px; color: var(--subtle); }
.help-item[aria-pressed="true"] { outline: 2px solid #a74557; background: #fbe4df; }
.help-item:disabled { opacity: .55; }
.help-ticket { background: #fff6e1; }
.help-allowance, .chapter-help { margin: 7px 0 0; text-align: center; font-size: 10px; line-height: 1.5; color: var(--subtle); word-break: keep-all; }
.chapter-help { margin: 0 0 10px; font-size: 11px; }
.tile.spoon-target { outline: 2px solid #fff4d1; outline-offset: -3px; }
.tile.spoon-blocked { opacity: .45; }
.help-continue { margin: 15px 0; gap: 8px; color: #785038; background: #fff0c8; border: 1px solid #dbb77a; box-shadow: 0 3px 0 #caa36c55; font-size: 15px; }
.help-continue svg { width: 29px; height: 29px; }
.help-continue:disabled { opacity: .6; }
#help-dialog .help-limit { padding: 11px; margin-bottom: 17px; background: #f9eadc; border-radius: 12px; font-size: 12px; line-height: 1.65; }
.shop-entry { display:flex; align-items:center; gap:10px; width:100%; padding:12px 14px; margin-bottom:12px; color:var(--ink); background:#fff7df; border:1px solid #e4c78c; border-radius:18px; text-align:left; box-shadow:0 3px 0 #e2bd7630; }
.shop-entry > span:nth-child(2) { flex:1; }
.shop-entry strong, .shop-entry small { display:block; }
.shop-entry strong { font-size:15px; }
.shop-entry small { margin-top:4px; font-size:11px; color:var(--subtle); }
.shop-entry > b { font-size:13px; white-space:nowrap; }
.coin-mark { display:grid; place-items:center; width:33px; height:33px; flex:none; border:2px solid #d3aa5f; border-radius:50%; color:#a57836; background:#f8df9d; box-shadow:inset 0 0 0 3px #fff0c9; }
.wallet-notice { padding:11px 14px; margin:0 0 12px; color:#785338; background:#fff1c9; border:1px solid #e3c383; border-radius:14px; font-size:12px; line-height:1.6; text-align:center; }
.coin-purse { display:flex; align-items:center; justify-content:center; gap:14px; padding:20px; margin:18px 0 14px; border:1px solid #e5c890; border-radius:22px; background:#fff4d7; font-size:12px; color:#85613d; }
.coin-purse .coin-mark { width:47px; height:47px; font-size:24px; }
.coin-purse strong { display:block; margin-top:3px; font-size:30px; color:var(--ink); }
.coin-purse small { font-size:13px; }
.shop-intro { text-align:center; color:var(--subtle); font-size:13px; line-height:1.7; margin-bottom:16px; }
.tool-card { display:grid; grid-template-columns:54px 1fr; gap:10px 12px; margin:12px 0; padding:18px 16px; background:var(--paper); border:1px solid var(--line); border-radius:21px; box-shadow:0 4px 0 #edc8b52b; }
.tool-card > svg { width:52px; height:52px; padding:6px; border-radius:15px; background:#f8e6d9; }
.tool-card h2 { font-size:18px; letter-spacing:-.05em; }
.tool-card p { margin:7px 0; font-size:12px; line-height:1.65; color:var(--subtle); word-break:keep-all; }
.tool-card strong { font-size:12px; color:#98644e; }
.tool-card .button { grid-column:1/-1; min-height:44px; margin-top:3px; font-size:14px; }
.tool-card .button:disabled { opacity:.6; }
.shop-message { min-height:20px; text-align:center; font-size:12px; color:#8e5943; }
.shop-rules { margin:13px 0; padding:15px; border:1px dashed #dfc4ad; border-radius:17px; background:#fff6e9; }
.shop-rules h2 { font-size:14px; }
.shop-rules p { margin-top:9px; font-size:12px; line-height:1.8; color:var(--subtle); }
.shop-save-note { margin:12px 0; text-align:center; font-size:11px; line-height:1.6; color:var(--subtle); }
.exchange-balance { padding:12px; border-radius:12px; background:#fff0cd; font-weight:800; line-height:1.7; }
.play-shop { display:block; margin:8px auto 0; min-height:36px; padding:5px 18px; border:1px solid var(--line); border-radius:999px; color:var(--subtle); background:var(--paper); font-size:11px; }
.play-shop:disabled { opacity:.5; }
