@font-face{font-family:Nanum Pen Script;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/nanum-pen-script.woff2) format("woff2")}:root{--bg: #fbf4e6;--surface: #fffdf8;--surface-tint: #f3e7d2;--ink: #40342a;--ink-2: #5c4a38;--muted: #7a6754;--line: rgba(64, 52, 42, .16);--accent: #d96f2c;--accent-strong: #bf5a1d;--accent-soft: rgba(217, 111, 44, .12);--accent-text: #ad5417;--on-accent: #fff8ee;--sky: #7fb3d5;--sky-soft: rgba(127, 179, 213, .16);--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 24px;--space-6: 32px;--space-7: 48px;--space-8: 64px;--radius-sm: 10px;--radius-md: 16px;--radius-lg: 24px;--shadow-sm: 0 1px 2px rgba(64, 52, 42, .06), 0 4px 12px rgba(64, 52, 42, .07);--shadow: 0 1px 2px rgba(64, 52, 42, .06), 0 8px 24px rgba(64, 52, 42, .09), 0 24px 48px -16px rgba(64, 52, 42, .14);--ease-out: cubic-bezier(.22, 1, .36, 1);--font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;--fs-display: 34px;--fs-h1: 26px;--fs-h2: 22px;--fs-body: 20px;--fs-small: 17px;--fs-caption: 15px;--control-height: 60px;--touch-target: 60px}*{box-sizing:border-box;margin:0;padding:0}html{height:100%}body{min-height:100dvh;font-family:var(--font-sans);font-size:var(--fs-body);line-height:1.6;letter-spacing:-.01em;word-break:keep-all;overflow-wrap:anywhere;color:var(--ink);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E"),radial-gradient(640px 420px at 85% -5%,var(--accent-soft),transparent 70%),radial-gradient(520px 400px at -12% 24%,var(--sky-soft),transparent 70%);background-color:var(--bg);background-attachment:fixed;-webkit-font-smoothing:antialiased}button{font:inherit;color:inherit;border:none;background:none;cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed;pointer-events:none}input,select{font:inherit}a{color:var(--accent-text)}img{max-width:100%}::selection{background:#d96f2c40}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.container{width:100%;max-width:480px;margin:0 auto;overflow-x:clip;padding:var(--space-5) var(--space-4) calc(var(--space-7) + env(safe-area-inset-bottom));min-height:100dvh;display:flex;flex-direction:column}.display{font-size:var(--fs-display);font-weight:900;line-height:1.2;letter-spacing:-.02em;text-align:center}h1{font-size:var(--fs-h1);font-weight:800;line-height:1.3;letter-spacing:-.02em}h2{font-size:var(--fs-h2);font-weight:700;line-height:1.35;letter-spacing:-.02em}.overline{display:flex;align-items:center;gap:var(--space-3);font-size:var(--fs-small);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.overline:after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--line),transparent)}.tagline{color:var(--ink-2);font-size:var(--fs-small)}.tnum{font-variant-numeric:tabular-nums}.vstack{display:grid;gap:var(--space-3)}.vstack-lg{display:grid;gap:var(--space-5)}.center-text{text-align:center}.page{animation:page-in .45s var(--ease-out) backwards}@keyframes page-in{0%{opacity:0;transform:translateY(14px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.home-top{display:flex;justify-content:flex-end;margin-bottom:var(--space-2)}.lang-switch{-webkit-appearance:none;-moz-appearance:none;appearance:none;min-height:var(--control-height);padding:0 42px 0 20px;border:1px solid var(--line);border-radius:999px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a6754' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;background-color:var(--surface);color:var(--ink-2);font-size:var(--fs-small);font-weight:600;cursor:pointer}.hero{margin-top:var(--space-4);text-align:center;justify-items:center}.sun-mark{display:block;margin:0 auto var(--space-2)}.app-name-roman{color:var(--muted);font-size:var(--fs-caption);font-weight:700;letter-spacing:.08em;text-transform:uppercase}.hero .tagline{margin-top:var(--space-2);text-align:center}.card-slot{margin-top:var(--space-7);display:grid;gap:var(--space-3)}.card-placeholder{padding:var(--space-7) var(--space-5);text-align:center;background:var(--surface);border:1px dashed var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}.card-placeholder-title{font-size:var(--fs-h2);font-weight:800;letter-spacing:-.02em;color:var(--ink)}.card-placeholder-hint{margin-top:var(--space-2);font-size:var(--fs-caption);color:var(--muted)}.primary-button{display:flex;align-items:center;justify-content:center;min-height:var(--control-height);padding:0 var(--space-6);border-radius:var(--radius-lg);background:var(--accent);color:var(--on-accent);font-size:var(--fs-h2);font-weight:800;letter-spacing:-.01em;text-decoration:none;box-shadow:var(--shadow-sm)}.install-banner{margin-top:var(--space-5);padding:var(--space-4) var(--space-5);display:grid;gap:var(--space-3);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);text-align:center}.install-banner-title{color:var(--ink);font-size:var(--fs-small);font-weight:700}.install-banner-actions{display:grid;gap:var(--space-2)}.install-banner-button{display:flex;align-items:center;justify-content:center;min-height:var(--control-height);padding:0 var(--space-6);border-radius:var(--radius-lg);background:var(--accent);color:var(--on-accent);font-size:var(--fs-body);font-weight:800}.install-banner-dismiss{min-height:44px;padding:var(--space-2) 0;color:var(--muted);font-size:var(--fs-small);font-weight:600;text-decoration:underline}.top-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-4)}.back-link{display:inline-flex;align-items:center;gap:var(--space-1);min-height:44px;padding:var(--space-2) 0;font-size:var(--fs-small);font-weight:600;color:var(--muted);text-decoration:none}.footer{margin-top:auto;padding-top:var(--space-7);display:flex;align-items:center;justify-content:space-between;font-size:var(--fs-caption);color:var(--muted)}.footer a{color:var(--muted);padding:var(--space-2) 0}.footer-links{display:inline-flex;gap:var(--space-4)}.privacy-updated{color:var(--muted);font-size:var(--fs-caption)}.privacy-section h2{color:var(--ink)}.editor-page-title{margin-top:var(--space-2);text-align:center}.card-stage{position:relative;width:100%;aspect-ratio:720 / 828;margin-top:var(--space-4);border-radius:var(--radius-lg);overflow:visible;background:var(--surface);box-shadow:var(--shadow)}.card-canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;touch-action:none;display:block;border-radius:var(--radius-lg)}.effect-overlay-canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none;display:block;border-radius:var(--radius-lg)}.canvas-load-error{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);padding:var(--space-5);text-align:center;background:var(--surface);border-radius:var(--radius-lg)}.canvas-load-error-message{font-size:var(--fs-body);font-weight:700;color:var(--ink)}.canvas-load-error-detail{font-size:var(--fs-caption);color:var(--muted);word-break:break-all}.selection-frame{position:absolute;border:2px solid var(--accent);border-radius:6px;pointer-events:none}.handle{position:absolute;width:var(--touch-target);height:var(--touch-target);margin:calc(var(--touch-target) / -2);display:flex;align-items:center;justify-content:center;background:transparent;pointer-events:auto;touch-action:none}.handle-dot{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface);border:2px solid var(--accent);color:var(--accent-strong);box-shadow:var(--shadow-sm)}.handle-dot svg{width:28px;height:28px}.handle-rotate{top:0;left:50%}.handle-resize{top:100%;left:100%}.handle-delete{top:0;left:100%}.handle-delete .handle-dot{border-color:var(--accent-strong);color:var(--accent-strong)}.handle-flip{top:100%;left:0}.handle-done{top:0;left:0}.handle-done .handle-dot{border-color:var(--accent-strong);color:var(--accent-strong)}.handle-label{position:absolute;white-space:nowrap;padding:3px 10px;border-radius:999px;background:var(--surface);border:1.5px solid var(--line);color:var(--ink-2);font-size:var(--fs-caption);font-weight:700;touch-action:none;box-shadow:var(--shadow-sm)}.handle-rotate .handle-label,.handle-delete .handle-label,.handle-done .handle-label{bottom:100%;left:50%;margin-bottom:6px}.handle-resize .handle-label,.handle-flip .handle-label{top:100%;left:50%;margin-top:6px}.shuffle-button{margin-top:var(--space-3);width:100%;min-height:var(--control-height);display:flex;align-items:center;justify-content:center;gap:var(--space-2);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);color:var(--ink-2);box-shadow:var(--shadow-sm);font-size:var(--fs-body);font-weight:700}.shuffle-button svg{width:24px;height:24px;color:var(--accent-strong)}.editor-toolbar{margin-top:var(--space-5);display:flex;flex-wrap:wrap;gap:var(--space-2);justify-content:center}.toolbar-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:var(--control-height);min-width:76px;padding:var(--space-2) var(--space-3);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);color:var(--ink-2);box-shadow:var(--shadow-sm)}.toolbar-button svg{width:22px;height:22px;color:var(--accent-strong)}.toolbar-button span{font-size:var(--fs-caption);font-weight:700}.editor-sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:#40342a73;display:flex;align-items:flex-end;justify-content:center;padding:var(--space-4)}.editor-sheet{width:100%;max-width:480px;max-height:80dvh;overflow-y:auto;display:grid;gap:var(--space-4);padding:var(--space-5);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow)}.editor-sheet-title{text-align:center}.editor-sheet-actions{display:flex;justify-content:flex-end;gap:var(--space-3)}.sheet-button{min-height:var(--control-height);padding:0 var(--space-5);border-radius:var(--radius-md);font-weight:700}.sheet-button-primary{background:var(--accent);color:var(--on-accent)}.sheet-button-ghost{background:transparent;border:1px solid var(--line);color:var(--ink-2)}.text-input-area{width:100%;min-height:96px;padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--bg);color:var(--ink);font-size:var(--fs-body);line-height:1.5;resize:vertical}.color-swatch-row{display:flex;flex-wrap:wrap;gap:var(--space-3);justify-content:center}.color-swatch{width:var(--touch-target);height:var(--touch-target);border-radius:50%;border:2px solid var(--line);box-shadow:var(--shadow-sm)}.color-swatch[data-selected=true]{border-color:var(--accent);outline:2px solid var(--accent);outline-offset:2px}.picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:var(--space-3)}.picker-tile{aspect-ratio:1;display:flex;align-items:center;justify-content:center;padding:var(--space-2);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--bg);overflow:hidden}.picker-tile-img{width:100%;height:100%;object-fit:contain}.picker-tile-img-bg{object-fit:cover;border-radius:var(--radius-sm)}.phrase-picker-list{display:grid;gap:var(--space-2)}.phrase-picker-tile{min-height:var(--control-height);padding:var(--space-3) var(--space-4);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--bg);color:var(--ink);font-size:var(--fs-body);font-weight:700;line-height:1.5;text-align:left;white-space:pre-line}.picker-tile-effect{aspect-ratio:auto;min-height:var(--control-height);font-size:var(--fs-small);font-weight:700;color:var(--ink-2);text-align:center}.picker-tile-effect[aria-pressed=true]{border-color:var(--accent);outline:2px solid var(--accent);outline-offset:-2px;color:var(--accent-strong);background:var(--accent-soft)}.picker-tile-effect-live{aspect-ratio:1;flex-direction:column;gap:var(--space-1);padding:var(--space-2)}.effect-tile-canvas{width:100%;flex:1;min-height:0;display:block;border-radius:var(--radius-sm);background:#9a8f7d}.effect-tile-label{font-size:var(--fs-small);font-weight:700}.stage-actions{margin-top:var(--space-3);display:flex;gap:var(--space-3)}.stage-actions .shuffle-button,.stage-actions .save-button{margin-top:0;flex:1;min-height:var(--control-height);display:flex;align-items:center;justify-content:center;gap:var(--space-2);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);color:var(--ink-2);box-shadow:var(--shadow-sm);font-size:var(--fs-body);font-weight:700}.stage-actions .save-button svg{width:22px;height:22px;color:var(--accent-strong)}.send-button{margin-top:var(--space-3);width:100%;min-height:var(--control-height);display:flex;align-items:center;justify-content:center;gap:var(--space-2);border-radius:var(--radius-md);background:var(--accent);color:var(--on-accent);font-size:var(--fs-h2);font-weight:800;box-shadow:var(--shadow-sm)}.send-button svg{width:24px;height:24px}.save-error{margin-top:var(--space-3);padding:var(--space-3) var(--space-4);border-radius:var(--radius-md);background:var(--surface);border:1px solid var(--line);color:var(--accent-text);font-size:var(--fs-caption)}.secondary-button{display:flex;align-items:center;justify-content:center;min-height:var(--control-height);padding:0 var(--space-6);border:1px solid var(--line);border-radius:var(--radius-lg);background:transparent;color:var(--ink-2);font-size:var(--fs-body);font-weight:700;text-decoration:none}.card-thumb-canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block}.card-thumb-error{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;padding:var(--space-3);text-align:center;font-size:var(--fs-caption);color:var(--muted);background:var(--surface)}.gallery-grid{margin-top:var(--space-4);display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-3)}.gallery-tile{position:relative;aspect-ratio:720 / 828;min-height:var(--touch-target);border-radius:var(--radius-lg);overflow:hidden;background:var(--surface);box-shadow:var(--shadow-sm)}.gallery-empty{margin-top:var(--space-7);display:grid;justify-items:center;gap:var(--space-3);text-align:center}.gallery-empty p{color:var(--ink-2);font-size:var(--fs-h2);font-weight:700}.gallery-error{margin-top:var(--space-5);display:grid;gap:var(--space-4);padding:var(--space-5);border-radius:var(--radius-lg);background:var(--surface);border:1px solid var(--line);text-align:center}.gallery-error p{color:var(--accent-text);font-weight:700}.gallery-detail-back{margin-bottom:var(--space-2)}.gallery-detail-actions{margin-top:var(--space-4);display:grid;grid-template-columns:1fr 1fr;gap:var(--space-3)}.gallery-detail-button{min-height:var(--control-height);display:flex;align-items:center;justify-content:center;gap:var(--space-2);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);color:var(--ink-2);font-size:var(--fs-body);font-weight:700;box-shadow:var(--shadow-sm)}.gallery-detail-button-primary{border:none;background:var(--accent);color:var(--on-accent);font-weight:800}.gallery-detail-button-danger{color:var(--accent-text)}.done-sheet{justify-items:center;text-align:center}.done-sheet-notice{padding:var(--space-3) var(--space-4);border-radius:var(--radius-md);background:var(--sky-soft);color:var(--ink-2);font-size:var(--fs-small)}.done-sheet-gallery{color:var(--muted);font-size:var(--fs-small);font-weight:600}.done-sheet-gallery-failed{color:var(--accent-text);font-weight:700}.done-sheet-actions{width:100%;display:grid;gap:var(--space-3)}
