/* =========================================================
   KITSUCHA — "noren door" design
   Mobile dulu, lalu tablet (≥720px) dan desktop (≥1040px)
   ========================================================= */
:root {
  color-scheme: light;

  --cream: #F5EBDF;
  --ivory: #FDF5EC;
  --paper: #FFFBF5;
  --blush: #E3B6AA;
  --blush-tint: #F6E4DC;
  --coral: #DE897E;          /* dekorasi, hem noren */
  --coral-script: #C56B60;   /* tulisan sambung besar */
  --coral-ink: #B9625A;      /* judul besar, noren */
  --coral-deep: #A04D43;     /* teks coral ukuran kecil */
  --matcha: #475F04;
  --matcha-deep: #344C04;
  --matcha-tint: #EEF1DD;
  --gold: #DAB160;
  --gold-ink: #7A5A12;
  --ink: #303030;
  --ink-soft: #5B524C;
  --cocoa: #633829;
  --line: rgba(99, 56, 41, 0.2);
  --field: rgba(99, 56, 41, 0.7);

  --serif: "Fraunces", Georgia, serif;
  --script: "Caveat", "Bilbo", "Segoe Script", cursive; /* Caveat cuma dipakai buat "~" */
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --jp: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;

  --gutter: max(16px, env(safe-area-inset-left));
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .39 0 0 0 0 .22 0 0 0 0 .16 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --squiggle-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8'%3E%3Cpath d='M0 4 Q6 0 12 4 T24 4' fill='none' stroke='%23475F04' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --squiggle-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8'%3E%3Cpath d='M0 4 Q6 0 12 4 T24 4' fill='none' stroke='%238F4239' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--grain), var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--coral-deep); outline-offset: 3px; border-radius: 6px; }
.events :focus-visible { outline-color: var(--ivory); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.s { font-family: var(--script); font-weight: 400; color: var(--coral-script); -webkit-text-stroke: 0.018em currentColor; letter-spacing: 0.01em; }
.ico { width: 20px; height: 20px; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 0.93rem; text-decoration: none; text-align: center; line-height: 1.15;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--matcha); color: var(--ivory); }
.btn-green:hover { background: var(--matcha-deep); }
.btn-line { background: transparent; border-color: var(--cocoa); color: var(--cocoa); }
.btn-line:hover { background: var(--ivory); }
.btn-cream { background: var(--ivory); color: var(--matcha-deep); }
.btn-cream:hover { background: #fff; }
.btn[disabled] { background: #CFC7BC; color: #5f5751; cursor: not-allowed; box-shadow: none; }
.link { background: none; border: 0; padding: 10px 4px; color: var(--coral-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* =========================================================
   1. PINTU / NOREN
   ========================================================= */
.door { position: relative; overflow-x: clip; padding-bottom: 8px; }
.noren { position: relative; z-index: 3; height: 176px; pointer-events: none; }
.rod { position: absolute; top: 10px; left: 16px; right: 16px; height: 5px; border-radius: 3px; background: var(--cocoa); z-index: 2; }
.rod::before, .rod::after { content: ""; position: absolute; top: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--cocoa); }
.rod::before { left: -4px; } .rod::after { right: -4px; }
.panel {
  position: absolute; top: 13px; width: calc(50% - 16px); height: 158px;
  display: flex; align-items: center; justify-content: center; gap: 4px; padding-bottom: 16px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.07), rgba(255,255,255,.04) 18%, rgba(0,0,0,0) 50%, rgba(255,255,255,.05) 82%, rgba(0,0,0,.08)),
    var(--coral-ink);
  box-shadow: 0 10px 18px -12px rgba(80, 30, 20, .6);
  transition: height 0.5s ease, transform 0.5s ease;
}
.panel::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 16px; width: 1.5px; background: rgba(0,0,0,.12); }
.panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: var(--coral); }
.panel span { position: relative; z-index: 1; font-family: var(--jp); font-weight: 700; font-size: 48px; line-height: 1; color: var(--ivory); }
.panel.l { left: 16px; transform-origin: top left; transform: rotate(8deg); animation: sway-l 2.4s ease-out 0.2s 1 both; }
.panel.r { right: 16px; transform-origin: top right; transform: rotate(-8deg); animation: sway-r 2.4s ease-out 0.2s 1 both; }

.door-body {
  display: grid; justify-items: center; text-align: center; padding: 0 var(--gutter);
  grid-template-areas: "fox" "wm" "tag" "status" "again" "closed";
}
.door-fox { grid-area: fox; position: relative; z-index: 2; width: min(252px, 70vw); margin-top: -82px; }
.door-fox .glow { position: absolute; left: 50%; top: 50%; width: 340px; height: 320px; transform: translate(-50%, -46%); background: radial-gradient(closest-side, rgba(255, 247, 236, .95), rgba(250, 230, 214, .55) 55%, rgba(245, 235, 223, 0)); z-index: -1; }
.door-fox .fox { width: 100%; filter: drop-shadow(0 12px 14px rgba(99, 56, 41, .25)); }
.bubble {
  position: absolute; z-index: 4; left: 72%; top: 46%; width: max-content; max-width: min(124px, calc(50vw - 22% - 8px)); text-align: left;
  background: var(--paper); border: 1.5px solid var(--cocoa); border-radius: 18px 18px 18px 4px;
  padding: 7px 12px 8px; font-family: var(--script); font-size: 1.3rem; line-height: 1.02; color: var(--cocoa);
  box-shadow: 0 6px 14px -8px rgba(99, 56, 41, .5);
  animation: pop 0.5s cubic-bezier(.2, .9, .3, 1.4) 0.9s both;
}
.bubble:empty { display: none; }
.door-wm { grid-area: wm; display: block; width: 172px; margin-top: 12px; }
.door-wm img { width: 100%; }
.door-tag { grid-area: tag; margin-top: 10px; font-style: italic; font-weight: 300; font-size: 0.95rem; color: var(--ink-soft); max-width: 290px; line-height: 1.45; }
.door-tag span { display: block; font-style: normal; font-weight: 500; font-size: 0.8rem; margin-top: 4px; text-wrap: balance; }
.door-status { grid-area: status; display: grid; justify-items: center; gap: 2px; margin-top: 14px; }
.status-line {
  position: relative; padding-bottom: 10px; font-family: var(--script); font-size: 1.6rem; line-height: 1; color: var(--matcha-deep);
  -webkit-text-stroke: 0.015em currentColor; text-wrap: balance; text-align: center;
}
.status-line::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: 0; height: 8px; background: var(--squiggle-green) repeat-x left center / 24px 8px; }
.footnote-mark { font-family: var(--script); font-size: 1.15rem; color: var(--coral-deep); text-decoration: none; padding: 6px 4px; }
.footnote-mark:hover { text-decoration: underline; }

.again {
  grid-area: again; position: relative; width: min(340px, 100%); margin-top: 22px; padding: 16px 16px 14px; text-align: left;
  background: var(--paper); border-radius: 6px; transform: rotate(-1.2deg);
  box-shadow: 0 1px 0 rgba(99, 56, 41, .08), 0 10px 22px -16px rgba(99, 56, 41, .45);
}
.again::before { content: ""; position: absolute; top: -9px; left: 50%; width: 70px; height: 18px; transform: translateX(-50%) rotate(2deg); background: rgba(227, 182, 170, .75); }
.again-hi { font-family: var(--script); font-size: 1.3rem; color: var(--coral-deep); line-height: 1; }
.again-q { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; margin-top: 6px; }
.again-items { font-size: 0.84rem; color: var(--ink-soft); margin-top: 2px; text-wrap: pretty; }
.again-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 0.88rem; font-weight: 600; }
.door-closed-note { grid-area: closed; margin-top: 18px; max-width: 340px; padding: 12px 14px; border-radius: 14px; background: var(--blush-tint); font-size: 0.86rem; color: var(--ink-soft); }
.peek-down { display: block; width: max-content; margin: 18px auto 0; padding: 6px 10px; font-family: var(--script); font-size: 1.25rem; color: var(--ink-soft); text-decoration: none; }

/* toko tutup: noren digulung, Kitsu bobo di mangkok */
.is-closed .noren { height: 64px; }
.is-closed .panel { height: 40px; transform: none; animation: none; background: linear-gradient(180deg, #C9776D, var(--coral-ink) 45%, #9E5048); }
.is-closed .panel span, .is-closed .panel::before { display: none; }
.is-closed .panel::after { height: 10px; }
.is-closed .panel.l { border-radius: 0 0 0 8px; } .is-closed .panel.r { border-radius: 0 0 8px 0; }
.is-closed .door-fox { margin-top: 10px; width: min(210px, 60vw); }
.is-closed .bubble { left: 66%; top: 18%; }
.is-closed .status-line { color: #8F4239; }
.is-closed .status-line::after { background-image: var(--squiggle-red); }
.is-closed .footnote-mark, .is-closed .slip-fox, .is-closed .claim-help { display: none; }

/* =========================================================
   2. COUNTER: papan menu + slip
   ========================================================= */
.counter { max-width: 1200px; margin: 0 auto; padding: 34px var(--gutter) 64px; display: grid; gap: 44px; }

.menu-head { text-align: center; display: grid; gap: 6px; }
.menu-head h2 { font-family: var(--serif); font-weight: 800; font-size: 2.6rem; color: var(--coral-ink); line-height: 1; }
.menu-head h2 .s { font-size: 1.3em; }
.menu-head h2:focus { outline: none; }
.menu-head p { font-style: italic; font-weight: 300; font-size: 0.9rem; color: var(--ink-soft); text-wrap: balance; }

.group { display: flex; align-items: center; gap: 10px; padding: 18px 0 2px; font-family: var(--script); font-weight: 400; font-size: 1.55rem; color: var(--cocoa); }
.group::after { content: ""; flex: 1; border-top: 1.5px dashed var(--line); }
.rows { display: grid; }

.item { position: relative; border-bottom: 1.5px dashed var(--line); scroll-margin-top: 16px; }
.item-btn {
  width: 100%; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 2px 10px 4px; background: none; border: 0; text-align: left; border-radius: 16px;
}
.item-btn:hover .item-name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.cup { position: relative; width: 84px; height: 84px; display: grid; place-items: end center; }
.cup::before { content: ""; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 66px; border-radius: 50%; background: var(--tint, var(--ivory)); }
.cup img { position: relative; width: 92px; max-width: none; margin-bottom: -4px; transition: transform 0.35s cubic-bezier(.2, .8, .2, 1); }
.item-btn:hover .cup img { transform: translateY(-3px) rotate(-2deg); }
.item-name { display: block; font-family: var(--serif); font-weight: 750; font-size: 1.08rem; line-height: 1.15; color: var(--coral-deep); }
.item-desc { display: block; margin-top: 3px; font-style: italic; font-weight: 300; font-size: 0.82rem; line-height: 1.35; color: var(--ink-soft); }
.price { text-align: right; line-height: 1.1; white-space: nowrap; }
.price b { display: block; font-family: var(--serif); font-weight: 800; font-size: 1.3rem; }
.price small { font-size: 0.75rem; color: var(--ink-soft); }
.pencil { position: absolute; left: -6px; top: 4px; z-index: 1; font-family: var(--script); font-size: 1.15rem; color: var(--ink-soft); transform: rotate(-8deg); pointer-events: none; }
.pencil.new { color: var(--coral-deep); }
.item.sold .cup { filter: grayscale(0.9); opacity: 0.55; }
.item.sold .item-name, .item.sold .price { opacity: 0.55; }
.item.sold .item-btn { cursor: default; }
.item.sold .pencil { left: auto; right: 4px; top: auto; bottom: 2px; color: var(--coral-deep); }
.added-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 0 4px 10px 100px; font-size: 0.82rem; color: var(--matcha-deep); font-weight: 600; }
.added-note a { color: var(--coral-deep); padding: 4px 0; }

/* minuman yang kebuka */
.item.open { background: var(--ivory); border-radius: 22px; border-bottom-color: transparent; margin: 8px -6px; padding: 0 6px 18px; box-shadow: 0 16px 30px -24px rgba(99, 56, 41, .55); }
.item.open .item-btn .price small { color: var(--matcha-deep); }
.open-grid { display: grid; gap: 14px; }
.anatomy {
  --cup: 168px; --cuptop: 14px;
  position: relative; height: 196px; border-radius: 72px 72px 22px 22px;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 70%), var(--tint, #ECE2EE);
}
.anatomy .big { position: absolute; left: 50%; top: var(--cuptop); width: var(--cup); transform: translateX(-50%); }
.tag {
  position: absolute; display: flex; align-items: center; gap: 5px; max-width: 96px;
  top: calc(var(--cuptop) + var(--cup) * var(--y) / 100); transform: translateY(-50%);
  font-family: var(--script); font-size: 1.14rem; line-height: 0.95; color: var(--cocoa);
}
.tag b { font-weight: 400; background: rgba(253, 245, 236, .85); padding: 2px 6px 3px; border-radius: 8px; }
.tag::after { content: ""; flex: none; width: 14px; border-top: 1.5px solid var(--cocoa); }
.tag i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--cocoa); }
.tag.l { right: calc(50% + var(--cup) * 0.34); justify-content: flex-end; text-align: right; }
.tag.l::after { order: 2; } .tag.l i { order: 3; }
.tag.r { left: calc(50% + var(--cup) * 0.34); }
.tag.r i { order: 0; } .tag.r::after { order: 1; } .tag.r b { order: 2; }
.tag.gold { color: var(--gold-ink); }
.seal {
  position: absolute; left: 50%; top: calc(var(--cuptop) + var(--cup) * 0.16); margin-left: calc(var(--cup) * 0.17);
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #F4DE9F, var(--gold)); box-shadow: 0 4px 10px -4px rgba(140, 100, 30, .6);
  font: 800 0.58rem var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--cocoa);
  transform: rotate(12deg); animation: pop 0.4s cubic-bezier(.2, .9, .3, 1.4) both;
}
.petite-badge {
  position: absolute; left: 50%; margin-left: -32px; bottom: 6px; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--cocoa);
  font: 800 0.7rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; animation: pop 0.4s cubic-bezier(.2, .9, .3, 1.4) both;
}
.salt {
  position: absolute; left: 50%; top: calc(var(--cuptop) + var(--cup) * 0.08); width: calc(var(--cup) * 0.74); height: 20px; transform: translateX(-50%);
  background-image: radial-gradient(circle, #fff 1.4px, transparent 1.6px), radial-gradient(circle, #fff 1px, transparent 1.2px);
  background-size: 14px 9px, 9px 13px; background-position: 0 0, 5px 4px; filter: drop-shadow(0 0 1px rgba(0,0,0,.3));
  animation: sprinkle 0.6s ease-out both;
}

.opts { display: grid; gap: 14px; align-content: start; }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt legend { display: flex; align-items: baseline; gap: 8px; padding: 0; margin-bottom: 8px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.opt legend small { text-transform: none; letter-spacing: 0; font-weight: 400; font-style: italic; }
.tins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.face { display: flex; align-items: center; gap: 6px; height: 100%; border: 1.5px solid var(--line); background: #fff; transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s; }
.pill .face { min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; }
.pill .face small { font-weight: 400; color: var(--ink-soft); font-size: 0.75rem; }
.tin .face { flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 12px; border-radius: 14px; }
.tin .face b { display: flex; width: 100%; justify-content: space-between; gap: 6px; font-family: var(--serif); font-size: 1.05rem; }
.tin .face b em { font: 700 0.75rem var(--sans); font-style: normal; color: var(--gold-ink); }
.tin .face small { font-size: 0.76rem; color: var(--ink-soft); line-height: 1.3; }
.choice:hover .face { border-color: var(--cocoa); }
.choice input:checked + .face { border-color: var(--matcha); background: var(--matcha-tint); box-shadow: inset 0 0 0 1px var(--matcha); }
.tin input:checked + .face.gold { border-color: var(--gold-ink); background: #FFF8E6; box-shadow: inset 0 0 0 1.5px var(--gold-ink); }
.choice input:focus-visible + .face { outline: 3px solid var(--coral-deep); outline-offset: 2px; }
.note-wrap { display: grid; gap: 6px; }
.note-wrap .link { justify-self: start; padding: 6px 0; font-size: 0.84rem; }
.note-input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--field); background: #fff; }
.note-input::placeholder { color: var(--ink-soft); opacity: 0.85; }
.addrow { display: flex; align-items: center; gap: 10px; }
.qty { display: inline-flex; align-items: center; flex: none; height: 50px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; }
.qty button { width: 40px; height: 100%; border: 0; background: none; border-radius: 999px; font-size: 1.2rem; font-weight: 700; color: var(--ink-soft); }
.qty button:hover { background: var(--cream); }
.qty button[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.qty output { min-width: 20px; text-align: center; font-weight: 800; }
.write { flex: 1; min-width: 0; min-height: 52px; flex-direction: column; gap: 0; padding: 6px 14px; }
.write small { font-weight: 500; font-size: 0.75rem; opacity: 0.9; }
.petite-check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px dashed var(--gold-ink); background: #FFF8E6; font-size: 0.86rem; cursor: pointer; }
.petite-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--matcha); }
.petite-check b { color: var(--gold-ink); }
.petite-check small { display: block; color: var(--ink-soft); font-size: 0.78rem; }
.write[disabled] small { opacity: 1; }

/* ---------- slip ---------- */
.slip-col { display: grid; gap: 14px; align-content: start; }
.slip-col h2 { font-family: var(--serif); font-weight: 800; font-size: 2.4rem; color: var(--coral-ink); line-height: 1; text-align: center; }
.slip-col h2 .s { font-size: 1.3em; }
.slip-col h2:focus { outline: none; }
.slip { position: relative; padding: 20px 18px 18px; background: var(--paper); box-shadow: 0 14px 30px -20px rgba(99, 56, 41, .6); }
.slip::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 7px; background: radial-gradient(circle at 6px 0, transparent 5px, var(--paper) 5.5px); background-size: 12px 7px; }
.slip-fox { position: absolute; right: -6px; top: -58px; width: 92px; transform: rotate(8deg); pointer-events: none; }
.slip-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1.5px dashed var(--line); }
.slip-top picture { display: block; }
.slip-top img { width: 104px; }
.slip-top span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.slip-empty { display: grid; justify-items: center; gap: 10px; padding: 18px 8px 6px; text-align: center; color: var(--ink-soft); font-size: 0.92rem; }
.slip-empty img { width: 130px; }
.claim-help { margin-top: 4px; padding: 8px 4px; font-size: 0.84rem; font-weight: 700; color: var(--gold-ink); text-underline-offset: 4px; }

.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line > i { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.line-name { font-family: var(--serif); font-weight: 700; font-size: 1rem; }
.line-opts { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--ink-soft); line-height: 1.4; }
.line-right { display: grid; justify-items: end; gap: 6px; }
.line-price { font-weight: 800; font-size: 0.92rem; white-space: nowrap; }
.line.petite .line-name { color: var(--gold-ink); }
.mini { display: inline-flex; align-items: center; height: 36px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.mini button { width: 34px; height: 100%; border: 0; background: none; border-radius: 999px; font-weight: 800; color: var(--ink-soft); }
.mini button:hover { background: var(--cream); }
.mini button[disabled] { opacity: 0.3; cursor: default; }
.mini output { min-width: 16px; text-align: center; font-weight: 800; font-size: 0.86rem; }
.line-acts { display: flex; gap: 12px; }
.line-acts button { background: none; border: 0; padding: 6px 0; font-size: 0.76rem; font-weight: 700; color: var(--coral-deep); text-decoration: underline; text-underline-offset: 3px; }

.tally { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0 4px; }
.tally b { font-family: var(--serif); font-weight: 800; font-size: 1.55rem; white-space: nowrap; }
.tally-tails { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 0 2px; }
.tally-tails img { width: 22px; transform: rotate(-12deg); }
.tally-tails span { margin-left: 6px; font-size: 0.76rem; color: var(--ink-soft); line-height: 1.25; max-width: 110px; }

.sentence-form { margin-top: 14px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.sentence { font-family: var(--serif); font-weight: 500; font-size: 1.24rem; line-height: 2; }
.blank {
  display: inline-block; max-width: 100%; min-height: 34px; padding: 0 4px; border: 0; border-bottom: 2px solid var(--matcha); border-radius: 0;
  background: transparent; font: 700 1rem var(--sans); color: var(--matcha-deep); line-height: 1.5; vertical-align: baseline;
}
input.blank { width: 8.5em; }
@supports (field-sizing: content) { input.blank:not(.blank-time) { width: auto; field-sizing: content; min-width: 5.5em; } select.blank { field-sizing: content; } }
input.blank::placeholder { color: rgba(52, 76, 4, .85); font-weight: 600; }
.blank:focus { background: var(--matcha-tint); }
.blank:focus-visible { outline-offset: 2px; }
.blank[aria-invalid="true"] { border-bottom-color: var(--coral-deep); background: #FBE9E5; }
.blank-select { position: relative; display: inline-block; }
.blank-select select { appearance: none; -webkit-appearance: none; padding-right: 18px; cursor: pointer; }
.blank-select::after { content: "▾"; content: "▾" / ""; position: absolute; right: 2px; top: 50%; transform: translateY(-40%); font: 700 0.85rem var(--sans); color: var(--matcha-deep); pointer-events: none; }
.blank-time { width: auto; min-width: 6.5em; }
.field-error { margin-top: 4px; font-size: 0.84rem; font-weight: 600; color: var(--coral-deep); }
.courier-hint { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--cream); font-size: 0.82rem; color: var(--ink-soft); }
.note-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 2px 0; border-bottom: 1.5px dashed var(--field); font-size: 0.88rem; color: var(--ink-soft); }
.note-line input { flex: 1; min-width: 0; min-height: 40px; border: 0; background: transparent; padding: 0 2px; color: var(--ink); }
.note-line input::placeholder { color: var(--ink-soft); opacity: 0.85; }
.note-line input:focus { background: var(--cream); }
.fine { margin-top: 14px; font-size: 0.78rem; font-style: italic; color: var(--ink-soft); line-height: 1.45; }

.send { width: 100%; min-height: 56px; border-radius: 18px; font-size: 1rem; box-shadow: 0 12px 24px -14px rgba(52, 76, 4, .8); }
.peek { font-size: 0.86rem; }
.peek summary { width: max-content; margin: 0 auto; padding: 8px 4px; cursor: pointer; font-weight: 700; color: var(--coral-deep); text-decoration: underline; text-underline-offset: 4px; list-style: none; }
.peek summary::-webkit-details-marker { display: none; }
.peek pre { margin: 8px 0 0; padding: 14px; border-radius: 14px; background: var(--ivory); white-space: pre-wrap; word-break: break-word; font: 0.84rem/1.5 var(--sans); }

.slip-sent { display: grid; justify-items: center; gap: 10px; padding: 18px 4px 6px; text-align: center; }
.sent-stamp { padding: 4px 14px; border: 2.5px solid var(--coral-deep); border-radius: 10px; transform: rotate(-6deg); font: 800 1rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-deep); }
.slip-sent h3 { font-family: var(--serif); font-weight: 800; font-size: 1.35rem; }
.slip-sent h3:focus { outline: none; }
.slip-sent p { font-size: 0.9rem; color: var(--ink-soft); }
.sent-actions { display: grid; gap: 8px; width: 100%; max-width: 300px; margin-top: 4px; }

/* =========================================================
   3. EVENTS
   ========================================================= */
.events { background: var(--matcha-deep); color: var(--ivory); }
.events-photo { position: relative; aspect-ratio: 4 / 3; background: url("../assets/photo/lifestyle-ubi-wide.webp") center 45% / cover; }
.events-fox { position: absolute; right: 8px; bottom: -42px; width: 150px; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .35)); }
.events-copy { padding: 56px var(--gutter) 56px; display: grid; gap: 16px; max-width: 620px; }
.events h2 { font-family: var(--serif); font-weight: 800; font-size: 2.2rem; line-height: 1.05; text-wrap: balance; }
.events h2 .s { display: block; color: var(--blush); font-size: 1.25em; }
.events p { color: rgba(253, 245, 236, .9); }
.ev-form { display: grid; gap: 16px; }
.ev-tiles { border: 0; margin: 0; padding: 0; min-width: 0; }
.ev-tiles > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ev-tile { position: relative; display: block; }
.ev-tile input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ev-tile .face { display: grid; gap: 6px; align-content: start; height: 100%; padding: 16px; border-radius: 18px; border: 1.5px solid rgba(253, 245, 236, .35); background: transparent; }
.ev-tile .face b { font-family: var(--serif); font-size: 1.1rem; }
.ev-tile .face span { font-size: 0.82rem; color: rgba(253, 245, 236, .9); line-height: 1.4; }
.ev-tile input:checked + .face { border-color: var(--ivory); background: rgba(253, 245, 236, .1); box-shadow: inset 0 0 0 1px var(--ivory); }
.ev-tile input:focus-visible + .face { outline: 3px solid var(--ivory); outline-offset: 2px; }
.ev-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ev-fields label { display: grid; gap: 4px; font-size: 0.78rem; font-weight: 600; color: rgba(253, 245, 236, .92); }
.ev-fields .wide { grid-column: 1 / -1; }
.ev-fields input { width: 100%; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid rgba(253, 245, 236, .5); background: rgba(253, 245, 236, .08); color: var(--ivory); color-scheme: dark; }
.ev-fields input::placeholder { color: rgba(253, 245, 236, .82); }
.ev-fields input:focus { outline: 2px solid transparent; border-color: var(--ivory); background: rgba(253, 245, 236, .14); }
.ev-form .btn { justify-self: start; }
.ev-closed { font-size: 0.84rem; color: rgba(253, 245, 236, .9); }

/* =========================================================
   4. LOYALTY + FOOTER
   ========================================================= */
.tails-sec { max-width: 1200px; margin: 0 auto; padding: 88px var(--gutter) 64px; display: grid; gap: 36px; }
.cards { position: relative; width: min(440px, 100%); aspect-ratio: 1000 / 720; margin: 0 auto; }
.cards img { position: absolute; width: 86%; border-radius: 16px; box-shadow: 0 22px 40px -26px rgba(99, 56, 41, .7); }
.cards img:first-child { left: 0; top: 0; transform: rotate(-5deg); }
.cards img:last-child { right: 0; bottom: 0; transform: rotate(3deg); }
.tails-copy h2 { font-family: var(--serif); font-weight: 800; font-size: 2.6rem; color: var(--coral-ink); line-height: 1.05; }
.tails-copy h2 .s { font-size: 1.3em; }
.tails-lead { margin-top: 6px; font-family: var(--script); font-size: 1.5rem; color: var(--cocoa); }
.tails-copy ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; color: var(--ink-soft); }
.tails-copy li { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; }
.tails-copy li img { width: 24px; transform: rotate(-12deg); }
.tails-copy li b { color: var(--gold-ink); }

.foot { text-align: center; padding: 26px var(--gutter) calc(48px + env(safe-area-inset-bottom)); border-top: 1.5px dashed var(--line); max-width: 1200px; margin: 0 auto; }
.foot-fox { width: 170px; margin: 0 auto; }
.foot .foot-note { margin: 4px 0 6px; font-family: var(--script); font-size: 1.6rem; color: var(--coral-deep); scroll-margin-top: 40vh; }
.foot-note:target { animation: glow 1.6s ease-out 1; border-radius: 10px; }
.foot p { color: var(--ink-soft); font-size: 0.88rem; text-wrap: balance; }
.foot a { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 2px; font-weight: 700; text-decoration: none; color: var(--ink); }
.foot a .ico { width: 18px; height: 18px; align-self: center; }
.foot-small { margin-top: 8px; font-size: 0.78rem; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 16px);
  max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--cream);
  font-size: 0.9rem; font-weight: 600; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- animasi ---------- */
@keyframes sway-l { 0% { transform: rotate(3deg); } 40% { transform: rotate(10deg); } 70% { transform: rotate(7deg); } 100% { transform: rotate(8deg); } }
@keyframes sway-r { 0% { transform: rotate(-3deg); } 40% { transform: rotate(-10deg); } 70% { transform: rotate(-7deg); } 100% { transform: rotate(-8deg); } }
@keyframes pop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; } }
@keyframes sprinkle { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes glow { 0% { background: rgba(218, 177, 96, .45); } 100% { background: transparent; } }
@keyframes write-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.line.fresh { animation: write-in 0.45s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

@media (forced-colors: active) {
  .choice input:checked + .face, .ev-tile input:checked + .face { border: 3px solid Highlight; }
  .tin input:checked + .face.gold { border-color: Highlight; }
  .choice input:focus-visible + .face, .ev-tile input:focus-visible + .face { outline: 3px solid CanvasText; outline-offset: 3px; }
}

/* =========================================================
   TABLET ≥ 720px
   ========================================================= */
@media (min-width: 720px) {
  .noren { height: 210px; }
  .panel { height: 190px; }
  .panel span { font-size: 64px; }
  .panel.l, .panel.r { animation-name: none; }
  .panel.l { transform: rotate(5deg); } .panel.r { transform: rotate(-5deg); }
  .door-fox { width: 290px; margin-top: -96px; }
  .bubble { top: 54%; max-width: 150px; }
  .counter { max-width: 640px; }
  .slip-top span { margin-right: 70px; }
  .menu-head h2 { font-size: 3rem; }
  .open-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
  .anatomy { --cup: 180px; --cuptop: 24px; height: 256px; border-radius: 90px 90px 22px 22px; }
  .tag { max-width: 104px; }
  .events-photo { aspect-ratio: auto; height: min(56.25vw, 440px); }
  .events-fox { width: 190px; }
  .events-copy { padding: 64px 40px; }
  .tails-sec { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* =========================================================
   DESKTOP ≥ 1040px
   ========================================================= */
@media (min-width: 1040px) {
  .door { max-width: 1280px; margin: 0 auto; }
  .noren { height: 276px; }
  .rod { top: 18px; left: 40px; right: 40px; height: 7px; }
  .rod::before, .rod::after { top: -4px; width: 15px; height: 15px; }
  .panel { top: 22px; width: calc(50% - 40px); height: 232px; padding: 0 40px 20px; justify-content: space-around; }
  .panel::after { height: 20px; } .panel::before { bottom: 20px; }
  .panel span { font-size: 104px; }
  .panel.l { left: 40px; transform: rotate(3.2deg); } .panel.r { right: 40px; transform: rotate(-3.2deg); }
  .door-body {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
    grid-template-columns: 1fr 460px 1fr;
    grid-template-areas: "tag fox again" "tag wm again" ". status ." "closed closed closed";
    align-items: center;
  }
  .door-fox { width: 340px; margin-top: -126px; }
  .bubble { left: auto; right: 86%; top: 56%; border-radius: 22px 22px 4px 22px; font-size: 1.55rem; max-width: 190px; padding: 9px 16px 10px; }
  .door-wm { width: 250px; }
  .door-tag { justify-self: start; align-self: start; margin-top: 160px; text-align: left; font-family: var(--script); font-style: normal; font-weight: 400; font-size: 1.6rem; line-height: 1.1; color: var(--cocoa); max-width: 270px; transform: rotate(-2deg); }
  .door-tag span { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }
  .status-line { font-size: 1.9rem; }
  .again { justify-self: end; align-self: start; margin-top: 70px; width: 280px; transform: rotate(2deg); }
  .again-row { flex-direction: column; align-items: stretch; }
  .door-closed-note { justify-self: center; }
  .is-closed .noren { height: 80px; }
  .is-closed .door-fox { width: 260px; margin-top: 0; }
  .is-closed .bubble { right: 82%; left: auto; top: 22%; }
  .peek-down { display: none; }

  .counter { max-width: 1200px; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; padding: 48px 40px 96px; }
  .menu-head { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; padding-bottom: 12px; border-bottom: 2px solid var(--cocoa); }
  .menu-head h2 { font-size: 3.4rem; }
  .menu-head p { text-align: right; max-width: 260px; font-size: 0.98rem; }
  .group { font-size: 1.8rem; padding-top: 24px; }
  .item.open { margin: 8px -16px; padding: 4px 16px 22px; }
  .item-btn { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .cup { width: 96px; height: 96px; } .cup::before { height: 76px; } .cup img { width: 104px; }
  .pencil { left: -20px; top: -2px; font-size: 1.3rem; white-space: nowrap; }
  .open-grid { grid-template-columns: 340px minmax(0, 1fr); gap: 28px; }
  .anatomy { --cup: 196px; --cuptop: 26px; height: 290px; border-radius: 110px 110px 22px 22px; }
  .tag { font-size: 1.16rem; max-width: 104px; }
  .seal { width: 52px; height: 52px; font-size: 0.62rem; }
  .added-note { padding-left: 114px; }

  .slip-col { position: sticky; top: 0; max-height: 100vh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 82px 12px 20px; margin: -62px -12px 0; }
  .slip-col h2 { text-align: left; font-size: 2.6rem; }
  .slip { transform: rotate(0.6deg); }
  .slip-fox { right: -4px; top: -80px; width: 100px; }
  .slip-col .send { position: sticky; bottom: 14px; z-index: 2; }
  .slip-col .send::before { content: ""; position: absolute; inset: -16px -12px -14px; z-index: -1; border-radius: 0; background: linear-gradient(rgba(245, 235, 223, 0), var(--cream) 45%); pointer-events: none; }

  .events { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
  .events-photo { height: auto; }
  .events-fox { right: -96px; bottom: -28px; width: 250px; z-index: 2; }
  .events-copy { align-content: center; padding: 80px max(72px, calc((100vw - 1200px) / 2 + 40px)) 72px 136px; max-width: none; }
  .events h2 { font-size: 3rem; }

  .tails-sec { grid-template-columns: 520px 1fr; gap: 70px; padding: 110px 40px 80px; }
  .cards { width: 500px; }
  .tails-copy h2 { font-size: 3rem; }
  .foot { padding-top: 30px; }
}

/* HP kecil */
@media (max-width: 359.98px) {
  .slip-fox { width: 76px; top: -48px; }
  .write { padding: 6px 10px; }
  .qty button { width: 34px; }
}

/* noren digulung harus tetap rata di semua ukuran */
.is-closed .panel.l, .is-closed .panel.r { transform: none; }

/* HP lebar / landscape: balon turun biar nggak ketutup hem noren */
@media (min-width: 520px) and (max-width: 719.98px) { .bubble { top: 54%; } }
/* HP: rubah di slip naik dikit biar nggak nutup nomor slip */
@media (min-width: 360px) and (max-width: 719.98px) { .slip-fox { top: -64px; } }
/* desktop sempit: gambar cup di atas opsi, biar opsinya nggak kegencet */
@media (min-width: 1040px) and (max-width: 1219.98px) { .open-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 359.98px) { .tag { max-width: 84px; font-size: 1.05rem; } }

/* nunggu data Google Sheets: rubah & status baru muncul setelah ketahuan buka/tutup */
.door-fox, .status-line { transition: opacity 0.35s ease; }
.is-loading .door-fox, .is-loading .status-line { opacity: 0; }
/* noren yang digantung = buka: tulisannya & "open almost every day" ditahan dulu sampai ketahuan buka/tutup */
.is-loading .panel span, .is-loading .footnote-mark { visibility: hidden; }
.door-closed-note { text-wrap: balance; }

/* kitsucha.id/?cek: panel cek Google Sheets buat owner */
.cek {
  position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 50; max-width: 560px; margin: 0 auto; max-height: 72vh; overflow-y: auto;
  padding: 14px 16px 16px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(48, 48, 48, .25); font-size: 0.86rem; line-height: 1.45;
}
.cek-head { display: flex; align-items: center; gap: 12px; position: sticky; top: -14px; margin: -14px -16px 8px; padding: 12px 16px 8px; background: var(--paper); border-bottom: 1px solid var(--line); }
.cek-head h2 { flex: 1; font-family: var(--serif); font-size: 1.1rem; }
.cek h3 { margin: 12px 0 4px; font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.cek ul { margin: 0; padding-left: 18px; }
.cek table { width: 100%; border-collapse: collapse; }
.cek td { padding: 3px 6px 3px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.cek-now { padding: 8px 10px; border-radius: 10px; background: var(--ivory); }
.cek-warn li { color: var(--coral-deep); margin-bottom: 4px; }
.cek-ok { color: var(--matcha); font-weight: 600; }
.cek-foot { margin-top: 12px; font-size: 0.78rem; color: var(--ink-soft); }
.menu-loading { margin: 24px 0; text-align: center; color: var(--ink-soft); font-style: italic; }

/* omongan Kitsu yang panjang (dari Google Sheets) dikecilin dikit biar nggak nutup logo */
.bubble.long { font-size: 1.1rem; }
@media (min-width: 1040px) { .bubble.long { font-size: 1.3rem; } }
