/* A little envelope beside the drawer, always reachable without a random draw. */
.sticker-envelope { display:flex; align-items:center; gap:22px; margin-top:24px; padding:18px 26px; border:1px solid #e2c9ca; border-radius:12px; background:linear-gradient(115deg,#fffaf5,#faeaf0); box-shadow:0 5px 18px #79525a08; color:var(--ink); text-decoration:none; }
.sticker-envelope:hover { text-decoration:none; background:#fff6f3; }
.sticker-envelope-art { width:110px; height:92px; flex:none; object-fit:contain; transform:rotate(-7deg); }
.sticker-envelope small { display:block; color:var(--rose); font:11px var(--mono); letter-spacing:.12em; margin-bottom:6px; }
.sticker-envelope strong { display:block; font:22px/1.5 var(--serif); }
.sticker-envelope p { font-size:13px; line-height:1.8; color:var(--muted); margin:5px 0 0; }
.sticker-envelope-arrow { margin-left:auto; color:var(--rose); font-size:24px; }
body.stickers-open { overflow:hidden; }
.sticker-dialog { width:min(900px,calc(100% - 28px)); max-width:none; max-height:calc(100dvh - 32px); padding:0; border:1px solid #d7b6bc; border-radius:20px; background:#fffbf6; color:var(--ink); box-shadow:0 24px 80px #482d4a38; overscroll-behavior:contain; }
.sticker-dialog::backdrop { background:#49333c80; backdrop-filter:blur(5px); }
.sticker-dialog [hidden] { display:none!important; }
.sticker-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:16px; position:sticky; top:0; z-index:1; padding:16px 24px; border-bottom:1px solid #e8d5d5; background:#fffbf6f5; }
.sticker-dialog-head h2 { margin:0; font:23px/1.4 var(--serif); }
.sticker-close { width:44px; height:44px; flex:none; border:1px solid #e5cdd2; border-radius:50%; color:#87546b; background:#fff6f3; font:27px/1 sans-serif; cursor:pointer; }
.sticker-intro { padding:22px 28px 0; }
.sticker-intro p { margin:0 0 14px; color:var(--muted); font:15px/1.9 var(--serif); }
.sticker-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.sticker-download,.sticker-back { display:inline-flex; justify-content:center; align-items:center; min-height:44px; padding:9px 18px; border:1px solid #d9b7c3; border-radius:24px; font:14px/1.5 var(--serif); text-decoration:none; background:#f8e8ed; color:#81465f; cursor:pointer; }
.sticker-download:hover,.sticker-back:hover { background:#efd8e2; text-decoration:none; }
.sticker-actions small { color:var(--muted); font-size:11px; }
.sticker-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding:24px 28px; }
.sticker-card { min-width:0; padding:12px 12px 15px; border:1px solid #ead5d7; border-radius:14px; background:#fff7f0; text-align:center; }
.sticker-preview { display:block; width:100%; padding:0; border:0; background:transparent; color:inherit; cursor:zoom-in; border-radius:8px; }
.sticker-preview img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; }
.sticker-preview strong { display:block; margin:4px 0 8px; font:18px/1.5 var(--serif); }
.sticker-card>a { display:inline-block; padding:8px 12px; color:#875068; font-size:12px; text-underline-offset:4px; min-height:40px; }
.sticker-detail { padding:20px 28px 28px; }
.sticker-full { display:block; width:min(100%,550px); aspect-ratio:1; object-fit:contain; margin:4px auto; border-radius:16px; background-color:#fff; background-image:linear-gradient(45deg,#f5edef 25%,transparent 25%),linear-gradient(-45deg,#f5edef 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f5edef 75%),linear-gradient(-45deg,transparent 75%,#f5edef 75%); background-size:24px 24px; background-position:0 0,0 12px,12px -12px,-12px 0; }
.sticker-detail h3 { text-align:center; font:24px/1.5 var(--serif); margin:12px 0; }
.sticker-detail .sticker-actions { justify-content:center; }
.sticker-envelope:focus-visible,.sticker-dialog a:focus-visible,.sticker-dialog button:focus-visible { outline:3px solid #a44769; outline-offset:4px; }
@media(max-width:600px) { .sticker-envelope { padding:16px; gap:12px; }.sticker-envelope-art { width:76px; height:84px; }.sticker-envelope strong { font-size:18px; }.sticker-envelope p { font-size:12px; }.sticker-envelope-arrow { font-size:20px; }.sticker-dialog-head { padding:12px 16px; }.sticker-dialog-head h2 { font-size:21px; }.sticker-intro { padding:18px 16px 0; }.sticker-grid { grid-template-columns:repeat(2,minmax(0,1fr)); padding:18px 16px; gap:10px; }.sticker-card { padding:8px; }.sticker-preview strong { font-size:16px; }.sticker-detail { padding:16px; }}
@media(forced-colors:active) { .sticker-envelope,.sticker-card,.sticker-dialog { border:1px solid CanvasText; } }
