#bebe-swipe{--sw-paper:light-dark(#f6edda,#2b241b);--sw-edge:light-dark(#d9cdb7,#5a4c37);--sw-page:light-dark(#fbf6e9,#3a3024);--sw-ink:light-dark(#594733,#eadcc5);--sw-muted:light-dark(#766a55,#bdad93);--sw-green:light-dark(#677d56,#adc299);--sw-on-green:light-dark(#fffaf0,#29351e);--sw-shadow:light-dark(#624b2430,#0006);font-family:"Gowun Dodum","Malgun Gothic",sans-serif;color:var(--sw-ink);color-scheme:light dark}
#bebe-swipe .sw-stage{display:flex;justify-content:center;padding:26px 16px 30px}
#bebe-swipe .sw-page{position:relative;isolation:isolate;width:100%;max-width:392px;min-height:790px;border:1px solid var(--sw-edge);border-radius:7px 21px 19px 8px;background:var(--sw-paper);box-shadow:-5px 0 0 var(--sw-page),-6px 0 0 var(--sw-edge),0 15px 42px var(--sw-shadow);padding-bottom:26px}
#bebe-swipe .sw-page::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background-image:linear-gradient(light-dark(#f6edda22,#2b241bde),light-dark(#f6edda22,#2b241bde)),url('assets/paper.jpg');background-size:100% 100%;background-repeat:no-repeat;pointer-events:none}
#bebe-swipe .sw-header{text-align:center;padding:43px 22px 0}
#bebe-swipe .sw-eyebrow{margin:0 0 12px;color:var(--sw-muted);font-size:.8125rem;line-height:1.4;letter-spacing:1.2px}
#bebe-swipe .sw-heading{font-family:"Gaegu",serif;font-size:2.125rem;line-height:1.1;font-weight:700;letter-spacing:-1.6px;margin:0}
#bebe-swipe .sw-caption{font-family:"Gowun Batang",serif;font-size:.875rem;line-height:1.7;color:var(--sw-muted);margin:10px 0 0}
#bebe-swipe .sw-count{font-family:"Gowun Batang",serif;letter-spacing:3px;font-size:.875rem;line-height:1.5;color:var(--sw-muted);text-align:center;margin:26px 0 2px;font-variant-numeric:tabular-nums}
#bebe-swipe .sw-window{--sw-book-width:234px;--sw-gap:16px;position:relative;height:calc(var(--sw-book-width) + 56px);overflow:hidden;touch-action:pan-y;user-select:none;overscroll-behavior-x:contain}
#bebe-swipe .sw-rail{position:absolute;left:50%;top:26px;will-change:transform}
#bebe-swipe .sw-book{flex:0 0 var(--sw-book-width);width:var(--sw-book-width);height:var(--sw-book-width);border:0;padding:0;border-radius:4px;background:transparent;position:absolute;left:0;top:0;transform-origin:center center;color:var(--sw-ink);touch-action:pan-y}
#bebe-swipe .sw-cover{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:contain;border-radius:4px;box-shadow:0 13px 20px var(--sw-shadow),-3px 0 0 var(--sw-page),-4px 0 0 var(--sw-edge);pointer-events:none;-webkit-user-drag:none}
#bebe-swipe .sw-window[data-dragging=true],#bebe-swipe .sw-window[data-dragging=true] .sw-book{cursor:grabbing}
#bebe-swipe .sw-hint{display:flex;align-items:center;justify-content:center;gap:9px;font-family:"Gaegu",serif;font-size:1.0625rem;line-height:1.4;color:var(--sw-muted);margin:-5px 18px 0}
#bebe-swipe .sw-hint svg{width:15px;height:15px}
#bebe-swipe .sw-title{font-family:"Gowun Batang",serif;font-size:1.4375rem;font-weight:700;line-height:1.5;letter-spacing:-.7px;text-align:center;word-break:keep-all;overflow-wrap:anywhere;display:flex;justify-content:center;align-items:center;min-height:56px;margin:18px 25px 0}
#bebe-swipe .sw-number{font-family:"Gaegu",serif;font-size:.9375rem;line-height:1.4;color:var(--sw-muted);text-align:center;margin:0}
#bebe-swipe .sw-watch{display:flex;align-items:center;justify-content:center;gap:8px;width:calc(100% - 102px);min-height:49px;border:0;border-radius:45% 7px 42% 8px / 8px 45% 9px 40%;margin:22px 51px 0;background:var(--sw-green);color:var(--sw-on-green);box-shadow:0 4px 0 color-mix(in srgb,var(--sw-green),var(--sw-ink) 13%);font-family:"Gowun Dodum",sans-serif;font-size:.9375rem;line-height:1.4;letter-spacing:.4px}
#bebe-swipe .sw-watch svg{width:16px;height:16px}
#bebe-swipe .sw-flip{display:flex;align-items:center;justify-content:space-between;margin:15px 47px 0;gap:12px}
#bebe-swipe .sw-flip button{min-height:44px;border:0;padding:0 5px;background:transparent;color:var(--sw-muted);font-family:"Gaegu",serif;font-size:1.125rem;line-height:1.4;text-decoration:underline;text-decoration-color:var(--sw-edge);text-underline-offset:5px}
#bebe-swipe .sw-flip button:disabled{opacity:.4}
#bebe-swipe .sw-progress{height:3px;border-radius:3px;background:var(--sw-edge);margin:16px 65px 0;overflow:hidden}
#bebe-swipe .sw-progress span{display:block;width:2.5%;height:100%;background:var(--sw-green);border-radius:3px;will-change:width}
#bebe-swipe .sw-note{margin:25px 20px 0;color:var(--sw-muted);font-size:.8125rem;line-height:1.7;text-align:center}
#bebe-swipe .sw-result{color:var(--sw-green);font-size:.8125rem;line-height:1.7;text-align:center;margin:8px 20px 0;min-height:0}
#bebe-swipe .sw-result:empty{margin:0}
@media(max-width:420px){#bebe-swipe .sw-stage{padding:19px 9px 26px}#bebe-swipe .sw-heading{font-size:2rem}#bebe-swipe .sw-title{font-size:1.375rem;margin-left:22px;margin-right:22px}#bebe-swipe .sw-watch{width:calc(100% - 84px);margin-left:42px;margin-right:42px}#bebe-swipe .sw-flip{margin-left:33px;margin-right:33px}#bebe-swipe .sw-page{min-height:774px}}

:root{color-scheme:light dark;background:light-dark(#faf5eb,#211c17)}
*{box-sizing:border-box}
body{margin:0;min-width:0;min-height:100svh;font-family:"Gowun Dodum","Malgun Gothic",sans-serif;display:grid;place-items:center;-webkit-font-smoothing:antialiased}
#bebe-swipe{width:100%;max-width:440px}
#bebe-swipe button,#bebe-swipe a{-webkit-tap-highlight-color:transparent}
#bebe-swipe button,#bebe-swipe .sw-watch{cursor:pointer}
#bebe-swipe .sw-watch{text-decoration:none}
#bebe-swipe .sw-play-mark{font-size:1.25rem;line-height:1}
#bebe-swipe .sw-hint span{font-family:system-ui,sans-serif;font-size:1rem}
#bebe-swipe .sw-cover{background:var(--sw-paper)}
#bebe-swipe .sw-note{padding:8px 7px;line-height:1.8;background:light-dark(#f9f3e9ec,#2b241bee);border-radius:6px;margin:22px 22px 0}
#bebe-swipe .sw-credit{text-align:center;margin:0 18px 24px;color:var(--sw-muted);font-size:.75rem;line-height:1.6}
#bebe-swipe .sw-credit a{color:inherit;text-underline-offset:3px}
#bebe-swipe .fallback{padding:0 25px}
#bebe-swipe .fallback h2{font-family:"Gowun Batang",serif;font-size:1rem;margin:22px 0}
#bebe-swipe .fallback ol{list-style:none;padding:0;margin:0;display:grid;gap:5px}
#bebe-swipe .fallback a{display:block;padding:10px 0;color:var(--sw-ink);font-size:.9375rem;text-underline-offset:4px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.skip{position:absolute;left:1rem;top:-5rem;z-index:5;padding:.75rem 1rem;background:light-dark(#677d56,#adc299);color:light-dark(#fffaf0,#29351e);border-radius:6px}
.skip:focus{top:1rem}
.no-js .sw-window,.no-js .sw-hint,.no-js .sw-count,.no-js .sw-title,.no-js .sw-number,.no-js .sw-watch,.no-js .sw-flip,.no-js .sw-progress{display:none}
a:focus-visible,button:focus-visible{outline:3px solid light-dark(#677d56,#adc299);outline-offset:4px}
@media(max-width:420px){#bebe-swipe .sw-credit{font-size:.75rem}}
/* Fit the story and its controls inside the current browser viewport. */
html:not(.no-js){height:100%;overflow:hidden;overscroll-behavior:none}
html:not(.no-js) body{position:fixed;inset:0;height:100vh;height:100dvh;min-height:0;overflow:hidden;overscroll-behavior:none}
#bebe-swipe{height:100%;min-height:0}
#bebe-swipe .sw-stage{height:100%;min-height:0;align-items:center;padding:max(8px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
#bebe-swipe .sw-page{height:100%;max-height:820px;min-height:0;display:flex;flex-direction:column;padding-bottom:clamp(10px,2.4dvh,22px)}
#bebe-swipe .sw-page>*{flex-shrink:0}
#bebe-swipe .sw-header{padding:clamp(14px,3.5dvh,36px) 22px 0}
#bebe-swipe .sw-eyebrow{margin-bottom:clamp(6px,1.5dvh,12px)}
#bebe-swipe .sw-heading{font-size:clamp(1.75rem,4.4dvh,2.125rem)}
#bebe-swipe .sw-count{margin:clamp(10px,2.5dvh,22px) 0 2px}
#bebe-swipe .sw-window{flex:1 1 0;min-height:0;height:auto;touch-action:pinch-zoom}
#bebe-swipe .sw-rail{top:calc((100% - var(--sw-book-width))/2)}
#bebe-swipe .sw-book{touch-action:pinch-zoom}
#bebe-swipe .sw-hint{margin:0 18px;line-height:1.3}
#bebe-swipe .sw-title{min-height:clamp(40px,7dvh,56px);margin-top:clamp(4px,1.5dvh,12px);font-size:clamp(1.125rem,2.9dvh,1.4375rem)}
#bebe-swipe .sw-number{font-size:.875rem;line-height:1.3}
#bebe-swipe .sw-watch{margin-top:clamp(8px,1.8dvh,18px)}
#bebe-swipe .sw-flip{margin-top:clamp(5px,1.2dvh,12px)}
#bebe-swipe .sw-progress{margin-top:clamp(7px,1.8dvh,14px)}
@media(max-height:600px){
  #bebe-swipe .sw-header{padding:12px 18px 0}
  #bebe-swipe .sw-eyebrow{font-size:.6875rem;margin-bottom:4px}
  #bebe-swipe .sw-heading{font-size:1.75rem}
  #bebe-swipe .sw-caption{font-size:.75rem;line-height:1.3;margin-top:5px}
  #bebe-swipe .sw-count{font-size:.75rem;line-height:1.3;margin-top:8px}
  #bebe-swipe .sw-title{font-size:1.125rem;min-height:36px;margin-top:3px}
  #bebe-swipe .sw-number{font-size:.8125rem;line-height:1.1}
  #bebe-swipe .sw-hint{font-size:.875rem;line-height:1.2}
  #bebe-swipe .sw-watch{min-height:44px;margin-top:6px}
  #bebe-swipe .sw-flip{margin-top:4px}
  #bebe-swipe .sw-progress{margin-top:6px}
  #bebe-swipe .sw-page{padding-bottom:10px}
}
@media(max-height:500px) and (min-width:560px){
  #bebe-swipe{max-width:780px}
  #bebe-swipe .sw-page{max-width:740px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto auto minmax(44px,1fr) auto;grid-template-areas:"count header" "window title" "window number" "window watch" "window flip" "hint progress";row-gap:2px}
  #bebe-swipe .sw-header{grid-area:header;padding:14px 18px 0}
  #bebe-swipe .sw-count{grid-area:count;align-self:center;margin:0}
  #bebe-swipe .sw-window{grid-area:window;align-self:stretch}
  #bebe-swipe .sw-hint{grid-area:hint;margin:0 10px;padding-bottom:4px}
  #bebe-swipe .sw-title{grid-area:title;margin:0 16px;min-height:32px}
  #bebe-swipe .sw-number{grid-area:number}
  #bebe-swipe .sw-watch{grid-area:watch;width:calc(100% - 48px);margin:4px 24px 0}
  #bebe-swipe .sw-flip{grid-area:flip;margin:0 24px}
  #bebe-swipe .sw-progress{grid-area:progress;align-self:center;margin:6px 34px 0}
}
/* Without JavaScript, keep the existing forty-link fallback scrollable. */
html.no-js #bebe-swipe,html.no-js #bebe-swipe .sw-stage{height:auto}
html.no-js #bebe-swipe .sw-stage{padding:26px 16px 30px}
html.no-js #bebe-swipe .sw-page{display:block;height:auto;max-height:none}
