*{box-sizing:border-box} :root{font-family:Arial,Helvetica,sans-serif;color:#fff;background:#101010;font-synthesis:none}body{margin:0}main{max-width:1440px;margin:0 auto}header{padding:28px 5vw 32px;background:#101010}.masthead{display:flex;align-items:center;justify-content:space-between;font-size:14px;letter-spacing:.14em;font-weight:900}.masthead span{font-size:30px;line-height:1}h1{font-size:clamp(22px,4.9vw,68px);letter-spacing:-.045em;margin:24px 0 0;line-height:1.12;white-space:nowrap;font-weight:900}#panel{--paper:#eaff00;--ink:#171717;--accent:#9b003e;background:var(--paper);color:var(--ink);min-height:64svh;padding:5vw 6vw 22px;display:flex;flex-direction:column;justify-content:center}#quote{font-size:clamp(38px,7.5vw,104px);line-height:.98;letter-spacing:-.055em;text-transform:uppercase;font-weight:900;margin:auto 0;max-width:1220px;text-wrap:balance;padding:20px 0 48px;overflow-wrap:break-word}#quote em{font-style:normal;color:var(--accent)}#quote.short{font-size:clamp(58px,10.5vw,148px)}#quote.serif{font-family:Georgia,'Times New Roman',serif;letter-spacing:-.055em;line-height:1.01}.edition{display:flex;justify-content:space-between;gap:20px;font-size:12px;letter-spacing:.1em;font-weight:800;border-top:2px solid currentColor;padding-top:16px}footer{padding:24px 5vw;display:flex;align-items:center;justify-content:space-between;gap:20px}footer>span{color:#a9a9a9;font-size:14px}button{font:700 16px Arial,sans-serif;border:1px solid #555;background:#fff;color:#101010;padding:15px 21px;cursor:pointer;border-radius:0}button:hover{background:#eaff00}button:focus-visible{outline:3px solid #ff549f;outline-offset:5px}#shareFortune{display:flex;align-items:center;gap:20px}dialog{background:#171717;color:white;border:1px solid #555;padding:24px;width:min(480px,calc(100% - 24px));max-height:90svh}dialog::backdrop{background:#000c;backdrop-filter:blur(6px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:12px}h2{font-size:24px;letter-spacing:-.04em;margin:0}#closeShare{background:transparent;color:white;border:0;font-size:30px;padding:0 6px}#sharePreview{width:100%;height:auto;margin-top:20px}#shareStatus,.hint{font-size:14px;line-height:1.5;color:#ccc}.actions{display:flex;gap:12px}.actions button{flex:1}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}@media(max-width:600px){header{padding:20px 22px 25px}.masthead{font-size:12px;letter-spacing:.08em}h1{font-size:clamp(20px,5.3vw,32px);margin-top:22px}#panel{min-height:65svh;padding:24px 24px 20px}#quote{font-size:clamp(40px,10.5vw,64px);padding-bottom:35px}#quote.short{font-size:clamp(56px,15vw,88px)}.edition{font-size:12px;letter-spacing:0}.edition span:last-child{max-width:140px;text-align:right}footer{padding:22px;gap:12px}footer>span{font-size:12px}button{padding:14px 16px}}@media(prefers-reduced-motion:no-preference){#panel{animation:arrive .45s ease-out}@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}

/* Snizzlepop family chrome: reserve room so fixed controls never cover content. */
body{padding-top:calc(52px + env(safe-area-inset-top));padding-bottom:calc(64px + env(safe-area-inset-bottom))}
.snz-home{position:fixed;top:calc(8px + env(safe-area-inset-top));left:calc(8px + env(safe-area-inset-left));z-index:100;font:12px monospace;color:#fff;background:rgba(0,0,0,.85);padding:4px 10px;border-radius:4px;text-decoration:none;border:1px solid rgba(255,255,255,.25);min-height:36px;display:flex;align-items:center}
.snz-about{position:fixed;bottom:calc(6px + env(safe-area-inset-bottom));right:calc(6px + env(safe-area-inset-right));z-index:99;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;width:340px;max-width:calc(100vw - 12px)}
.snz-about details{background:rgba(0,0,0,.9);color:#f4ecd8;border:1px solid rgba(255,255,255,.18);border-radius:6px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,.35)}
.snz-about summary{cursor:pointer;padding:12px;font-size:12px;list-style:none;user-select:none;text-align:right;min-height:44px}.snz-about summary::-webkit-details-marker{display:none}.snz-about details[open] summary{border-bottom:1px solid rgba(255,255,255,.15);background:#000}
.snz-about-body{padding:10px 14px 12px;font-size:14px;line-height:1.45;max-height:55svh;overflow:auto;overscroll-behavior:contain}.snz-about-body h2{font-size:15px;margin:0 0 6px;color:#f2c14e;font-weight:600;letter-spacing:normal}.snz-about-body h3{font-size:12px;margin:10px 0 4px;color:#f2c14e;text-transform:uppercase;letter-spacing:1px;font-weight:600}.snz-about-body p{margin:0 0 6px;color:#f4ecd8}.snz-about-body ul{margin:0;padding-left:16px}.snz-about-body li{margin:3px 0}.snz-about-body a{color:#7fd4e8;text-decoration:none;display:inline-block;padding:5px 0}.snz-about-body a:hover{text-decoration:underline}.snz-back{margin-top:10px!important}a:focus-visible,summary:focus-visible{outline:3px solid #ff549f;outline-offset:-3px}
.actions{flex-wrap:wrap}.actions button{min-height:48px}#installApp{flex-basis:100%;background:#252525;color:#fff}#installApp:hover{background:#383838}.install-help{font-size:15px;line-height:1.6;color:#f4ecd8;border:1px solid #555;padding:14px;margin-top:14px}dialog{overscroll-behavior:contain}#closeShare{min-width:44px;min-height:44px}#sharePreview{max-height:42svh;object-fit:contain}#quote{overflow-wrap:anywhere}
@media(max-width:360px){footer{flex-wrap:wrap}footer>span{width:100%}#shareFortune{width:100%;justify-content:center}dialog{padding:16px}.dialog-top h2{font-size:22px}}
.snz-about{max-width:calc(100% - 12px - env(safe-area-inset-left) - env(safe-area-inset-right))}
/* A single viewport with dedicated rows; no floating brand controls. */
html,body{height:100%;overflow:hidden}body{padding:0;overscroll-behavior:none}main{height:100svh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overflow:hidden}
header{padding:10px clamp(18px,4vw,60px) 18px}.snz-home{position:static;display:inline-flex;min-height:32px;margin-bottom:8px;font-size:12px;padding:4px 9px}.masthead{font-size:12px}.masthead span{font-size:22px}h1{margin-top:10px;font-size:clamp(20px,4.5vw,58px)}#panel{min-height:0;padding:12px clamp(20px,4vw,60px);overflow:hidden;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px}#quote,#quote.short{margin:0;padding:0;align-self:center;font-size:60px;line-height:1.02;overflow-wrap:normal;word-break:normal}#quote.serif{line-height:1.02}.edition{padding-top:10px;font-size:11px}.edition span:last-child{max-width:none}footer{padding:12px clamp(18px,4vw,60px);flex-wrap:nowrap}footer>span{width:auto}#shareFortune{width:auto;min-height:44px;padding:11px 16px}.about-toggle{justify-self:end;margin:0 clamp(18px,4vw,60px) 10px;padding:8px 12px;min-height:36px;background:#191919;color:#f4ecd8;border:1px solid #444;border-radius:6px;font-size:12px}.about-toggle:hover{background:#303030}
#aboutDialog{width:min(480px,calc(100% - 24px))}#closeAbout{min-width:44px;min-height:44px;background:transparent;color:white;border:0;font-size:30px;padding:0}.snz-about-body{max-height:none;overflow:visible;padding:10px 0 0}.snz-about-body h3{margin-top:12px}.snz-about-body a{padding:3px 0}.snz-about-body li{margin:3px 0}dialog{max-height:calc(100dvh - 24px);padding:18px}.actions button{font-size:14px;padding:10px;min-height:44px}#sharePreview{display:block;width:auto;max-width:100%;max-height: min(38dvh,360px);margin:12px auto}.hint{margin-bottom:0}#shareStatus:empty{display:none}
@media(max-width:600px){header{padding:6px 18px 12px}.snz-home{margin-bottom:5px;min-height:30px}.masthead{font-size:11px;letter-spacing:.08em}.masthead span{display:none}h1{margin-top:9px;font-size:clamp(19px,5.3vw,31px)}#panel{padding:14px 20px 12px;gap:10px}.edition{font-size:10px;letter-spacing:0;gap:10px}.edition span:last-child{max-width:145px}footer{padding:10px 18px}footer>span{font-size:11px}.about-toggle{margin:0 18px 8px;min-height:34px}#aboutDialog .dialog-top h2{font-size:21px}.snz-about-body{font-size:13px;line-height:1.35}.snz-about-body h3{font-size:11px}.install-help{font-size:13px;line-height:1.35;padding:10px}dialog:has(#installHelp:not([hidden])) #sharePreview{display:none}}
@media(max-height:500px){header{padding-top:2px;padding-bottom:8px}.snz-home{margin:0;min-height:26px}.masthead{display:none}h1{margin-top:2px;font-size:22px}footer{padding-top:5px;padding-bottom:5px}.about-toggle{margin-bottom:4px;min-height:28px;padding:4px 10px}.edition{display:none}#panel{padding-top:6px;padding-bottom:6px}#aboutDialog .snz-about-body{font-size:12px;line-height:1.2;columns:2;column-gap:18px}#aboutDialog .snz-about-body h3{margin-top:6px}#sharePreview{max-height:24dvh}.hint{font-size:12px}.dialog-top h2{font-size:20px}dialog{padding:12px}}
/* Keep intrinsic word widths from widening either grid on narrow Safari screens. */
main{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}
main>*,#panel>*{min-width:0;max-width:100%}
#panel{width:100%;grid-template-columns:minmax(0,1fr)}
#quote,#quote.short{width:100%;min-width:0;max-width:100%;overflow-wrap:anywhere}
.edition{min-width:0;width:100%}.edition>span{min-width:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Keep words intact; the fitter reduces type until the longest word fits. */
#quote,#quote.short{overflow-wrap:normal;word-break:normal}
