
:root{font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;--ink:#263e4b;--paper:#fffefa;--bg:#fbf7ed;--line:#e0e4dc;--muted:#738790;--orange:#d76f50;--yes:#b2e5d5;--maybe:#ffe2b2;--no:#ffcebf}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overscroll-behavior:none;background:#e5e6e2;color:var(--ink)}button,input,textarea,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #7aa4d8;outline-offset:2px}.hidden{display:none!important}
.app{width:min(100%,460px);height:100vh;height:100dvh;max-height:100dvh;margin:auto;background:var(--bg);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 0 30px #20323d22}
.header{flex:0 0 54px;min-height:54px;background:var(--ink);display:flex;align-items:center;justify-content:space-between;padding:6px 13px;color:#fff;z-index:4}
.brand{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:930;letter-spacing:-.9px}.seal{display:grid;place-items:center;width:34px;height:34px;background:#ffdb91;border-radius:50%;border:3px double #885c38;color:var(--ink);font-size:18px;transform:rotate(-11deg)}.headRight{display:flex;align-items:center;gap:8px}.app.composing .headRight{visibility:hidden}.net{border:1px solid #82949e;border-radius:20px;font-size:11px;padding:4px 7px;opacity:.8}.iconBtn{height:38px;width:40px;display:grid;place-items:center;background:#425e6e;color:white;border:1px solid #637c8a;border-radius:11px;font-size:22px}
.feedView{flex:1;min-height:0;display:flex;flex-direction:column}.catbar{flex:0 0 44px;display:flex;align-items:center;background:var(--bg);border-bottom:1px solid #e6e6df;padding:3px 10px}.chips{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;white-space:nowrap;width:100%;-webkit-overflow-scrolling:touch}.chips::-webkit-scrollbar{display:none}.chip{background:#fff;border:1px solid #dce1dc;color:#6e7f87;border-radius:30px;padding:7px 12px;font-size:13px;font-weight:820;white-space:nowrap}.chip.active{background:var(--ink);border-color:var(--ink);color:white}
.reel{min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;scroll-padding:0;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-width:none}.reel::-webkit-scrollbar{display:none}.story{height:100%;min-height:100%;width:100%;overflow:hidden;scroll-snap-align:start;scroll-snap-stop:always;display:flex;flex-direction:column;background:var(--bg);padding:4px 11px 6px;gap:7px}.stage{position:relative;flex:0 0 clamp(112px,23dvh,178px);max-height:178px;overflow:hidden;border-radius:14px 14px 7px 7px;border:1px solid #c9dfd9;background:linear-gradient(#d3e9e7 0%,#d4e9e2 72%,#b7d4c5 73%,#b7d4c5 100%)}.stage:before{content:'';position:absolute;left:50%;top:12px;width:92px;height:62px;transform:translateX(-50%);border:6px solid #f7f0e6;border-radius:48px 48px 5px 5px;background:#bbd9df;box-shadow:0 0 0 3px #b1cdc5}.stage:after{content:'';position:absolute;bottom:0;left:0;width:100%;height:19px;background:linear-gradient(#d4a575 0 5px,#b87652 5px 9px,#9e6550 9px);z-index:3}.character{position:absolute;z-index:2;left:50%;bottom:4px;transform:translateX(-50%);width:clamp(115px,23dvh,178px);height:clamp(115px,23dvh,178px);transition:transform .18s ease}.character svg{display:block;width:100%;height:100%}.character.pop{transform:translateX(-50%) scale(1.06)}.verdict{position:absolute;z-index:4;left:10px;top:9px;display:flex;flex-direction:column;max-width:38%;background:#fffefaed;border:1px solid #d8e1d9;box-shadow:0 1px 4px #15353715;padding:6px 8px;border-radius:9px;line-height:1.2}.verdict strong{font-size:11px}.verdict small{font-size:10px;color:#71838a;margin-top:2px}.verdict.yes strong{color:#22886e}.verdict.maybe strong{color:#af7e2f}.verdict.no strong{color:#c05b4d}.verdict.tie strong{color:#5b7283}.number{position:absolute;z-index:4;right:10px;top:10px;color:#506c72;background:#ffffffb8;border-radius:7px;padding:4px 7px;font-weight:800;font-size:11px}
.paper{flex:1;min-height:0;display:flex;flex-direction:column;background:white;border:1px solid #e4e6df;box-shadow:0 3px 12px #29434c0c;border-radius:12px;padding:12px 15px 10px;overflow:hidden}.meta{display:flex;align-items:center;justify-content:space-between;gap:9px;font-weight:800;font-size:12px;color:#82939a}.tag{background:#ffeddc;color:#b46b4a;padding:4px 9px;border-radius:30px}.author{max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.title{font-size:clamp(19px,5vw,23px);line-height:1.33;letter-spacing:-.7px;font-weight:930;margin:10px 0 8px;word-break:keep-all;overflow-wrap:anywhere;flex-shrink:0}.reason{font-size:clamp(15px,3.8vw,17px);line-height:1.52;letter-spacing:-.15px;color:#59717f;overflow:hidden;min-height:0;flex:1;white-space:pre-wrap;overflow-wrap:anywhere;touch-action:none;cursor:default}.paperBottom{flex:0 0 auto;display:flex;justify-content:flex-end;align-items:center;border-top:1px solid #edf0ec;margin-top:9px;padding-top:8px}.commentBtn{background:transparent;color:#47616e;border:0;font-size:14px;font-weight:850;padding:4px 0}
.voteArea{flex:0 0 auto;display:flex;flex-direction:column;gap:5px;padding:0 1px}.votes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.vote{display:flex;align-items:center;justify-content:center;gap:7px;min-height:56px;border-radius:11px;border:2px solid #344e5b;color:#263f4a;font-weight:950;box-shadow:0 3px 0 #243b47;font-size:15px;transition:transform .12s ease,box-shadow .12s ease}.vote:active{transform:translateY(2px);box-shadow:0 1px 0 #243b47}.vote.yes{background:var(--yes)}.vote.maybe{background:var(--maybe)}.vote.no{background:var(--no)}.vote.selected{outline:3px solid #d67d58;outline-offset:-4px}.vote b{font-size:14px;font-variant-numeric:tabular-nums}.scrollHint{display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;color:#84979b;font-weight:750;height:22px;letter-spacing:-.1px}
.bottomNav{flex:0 0 auto;padding:5px 12px calc(5px + env(safe-area-inset-bottom));border-top:1px solid #e3e7df;background:#fff;display:grid;grid-template-columns:1fr 1fr;gap:8px;min-height:60px}.navBtn{border:0;min-height:45px;background:transparent;border-radius:11px;color:#8898a0;font-size:15px;font-weight:900}.navBtn.selected{background:#fce9d8;color:#c8674d}
.writeView{flex:1;min-height:0;display:flex;flex-direction:column}.writeTop{padding:16px 18px 10px;display:flex;align-items:flex-start;gap:10px}.back{border:0;border-radius:10px;background:white;color:var(--ink);width:38px;height:38px;font-size:25px}.writeTitle{font-size:22px;font-weight:950;margin:2px 0 3px;letter-spacing:-.9px}.writeSub{font-size:13px;color:#7b8b90;margin:0}.writeScroll{min-height:0;flex:1;overflow:auto;padding:0 15px 12px}.formBody{background:#fff;border:1px solid #e1e5df;border-radius:15px;padding:15px;display:flex;flex-direction:column;gap:14px}.field label{font-size:14px;font-weight:850;display:block;margin-bottom:7px}.field input,.field textarea,.field select{display:block;background:#fff;color:var(--ink);width:100%;border:1.5px solid #dce2de;border-radius:11px;font-size:16px;padding:12px;line-height:1.45}.field textarea{height:116px;resize:vertical}.count{font-size:12px;text-align:right;color:#82929b;margin-top:5px}.writeNotice{font-size:12px;color:#7b8e92;line-height:1.5;padding:12px 4px}.writeSubmitArea{flex:0 0 auto;padding:10px 15px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e5e7e2}.writeSubmit{height:53px;width:100%;background:var(--ink);color:#fff;font-size:17px;font-weight:950;border:0;border-radius:13px}
.layer{position:fixed;inset:0;z-index:40;background:#162b3b88;display:flex;align-items:flex-end;justify-content:center}.sheet{width:min(100%,460px);background:#fffefa;border-radius:18px 18px 0 0;max-height:min(84dvh,760px);padding:13px 17px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:9px}.sheetGrip{width:45px;height:5px;background:#d7ddd9;border-radius:30px;margin:0 auto 4px}.sheetHeader{display:flex;align-items:center;justify-content:space-between}.sheetHeader strong{font-size:19px}.xBtn{border:0;background:transparent;color:#445d6a;font-size:25px;width:35px;height:35px}.sheet p{font-size:14px;color:#71818a;line-height:1.55}.sheet input,.sheet textarea{font-size:16px;width:100%;border:1.5px solid #dce3de;border-radius:11px;padding:12px;color:var(--ink)}.sheet textarea{min-height:70px;resize:vertical}.primary{background:var(--ink);color:#fff;border:0;border-radius:10px;height:47px;font-weight:900}.secondary{background:white;color:var(--ink);border:1px solid #d7dfdc;border-radius:10px;height:47px;font-weight:900}.sheetBtns{display:grid;grid-template-columns:1fr 1.5fr;gap:8px}.commentList{flex:1;min-height:110px;overflow:auto;display:flex;flex-direction:column;gap:10px;margin:4px 0 2px}.commentItem{padding:11px;background:#f5f7f3;border-radius:11px}.commentItem strong{font-size:13px}.commentItem p{font-size:14px;color:#465f6c;margin:4px 0 0;white-space:pre-wrap}.commentForm{display:flex;align-items:stretch;gap:8px}.commentForm textarea{min-height:54px;max-height:100px;flex:1}.commentForm button{width:65px}.smallNote{font-size:11px;color:#89969c}.checkRow{display:flex;gap:10px;align-items:center;font-size:16px;padding:8px 0}.checkRow input{width:18px;height:18px}
.searchLayer{position:fixed;z-index:30;inset:0;background:var(--bg);display:flex;justify-content:center}.searchContent{width:min(100%,460px);padding:calc(10px + env(safe-area-inset-top)) 14px 20px;display:flex;flex-direction:column;gap:12px}.searchTop{display:flex;gap:9px;align-items:center}.searchTop button{border:0;background:transparent;font-size:25px;color:var(--ink)}.searchTop input{flex:1;min-width:0;border:1px solid #d7dfda;border-radius:12px;padding:12px;font-size:16px}.searchResults{overflow-y:auto;flex:1}.resultBtn{width:100%;border:0;border-bottom:1px solid #e0e4de;background:transparent;text-align:left;padding:15px 4px;display:flex;flex-direction:column;gap:5px}.resultBtn small{font-size:12px;color:#88969d}.resultBtn strong{font-size:17px}.resultBtn span{color:#71828c;font-size:14px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.toast{position:fixed;z-index:50;bottom:calc(82px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:85%;background:#263e4b;color:white;border-radius:30px;padding:10px 15px;opacity:0;pointer-events:none;transition:opacity .15s;font-size:13px;font-weight:850;box-shadow:0 4px 15px #0004;text-align:center;white-space:nowrap}.toast.on{opacity:1}.empty{display:grid;place-items:center;flex:1;padding:30px;gap:15px;text-align:center;color:#677e88}.empty button{background:var(--ink);color:#fff;border:0;padding:12px 18px;border-radius:11px}
@media(max-height:690px){.header{flex-basis:50px;min-height:50px}.catbar{flex-basis:40px}.stage{flex-basis:clamp(101px,19dvh,135px)}.character{width:clamp(105px,20dvh,146px);height:clamp(105px,20dvh,146px)}.paper{padding:9px 13px 8px}.title{font-size:18px;margin:7px 0 5px}.reason{font-size:14px;line-height:1.38}.vote{min-height:49px;font-size:14px}.bottomNav{min-height:52px}.navBtn{min-height:41px}.scrollHint{height:18px}.story{gap:5px;padding-top:3px}.paperBottom{padding-top:4px;margin-top:4px}}
@media(max-height:580px){.stage{flex-basis:100px}.character{width:116px;height:116px}.paperBottom{margin-top:3px}.title{font-size:17px;line-height:1.25}.vote{min-height:44px}.scrollHint{height:16px;font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}

/* v1.9: one continuous vertical story gesture area; no nested scroll stealing swipes. */
.reel { touch-action:none; overscroll-behavior:contain; }
.story, .stage, .character, .paper, .title, .reason, .meta, .paperBottom, .voteArea { touch-action:none; }
.reel .reason { user-select:none;-webkit-user-select:none; }
/* A subtle reading affordance only if a legacy story is too long for the available height. */
.story .reason.isClipped { mask-image:linear-gradient(to bottom,#000 83%,transparent 100%); -webkit-mask-image:linear-gradient(to bottom,#000 83%,transparent 100%);cursor:pointer; }
.story .reason.isClipped:focus-visible {outline:3px solid #7aa4d8;}
.fullStorySheet {gap:12px;}
.fullStoryTitle {font-size:19px;font-weight:900;line-height:1.4;margin:0;word-break:keep-all;}
.fullStoryBody {font-size:16px;line-height:1.7;color:#465f6c;white-space:pre-wrap;overflow-y:auto;min-height:0;max-height:50dvh;overflow-wrap:anywhere;}

/* iPhone Safari / standalone PWA safe areas and input sizing. */
body{-webkit-text-size-adjust:100%;}
.header{flex-basis:calc(54px + env(safe-area-inset-top, 0px));min-height:calc(54px + env(safe-area-inset-top, 0px));padding-top:calc(6px + env(safe-area-inset-top, 0px));}
@media(max-height:690px){.header{flex-basis:calc(50px + env(safe-area-inset-top, 0px));min-height:calc(50px + env(safe-area-inset-top, 0px));}}
.field input,.field textarea,.field select,.searchTop input,.commentForm textarea,.sheet input,.sheet textarea{font-size:16px;}
.writeScroll,.commentList,.sheet,.searchResults,.fullStoryBody{-webkit-overflow-scrolling:touch;}

/* v2.0: discreet menu, progress, and snappy vertical feed */
.headRight .net{display:none}
.header .brand{font-size:clamp(16px,4.8vw,19px);white-space:nowrap}
.header .headRight{gap:6px}
.header .iconBtn{width:38px;height:38px;flex-shrink:0}
.story.nextEnter .stage,.story.nextEnter .paper{animation:storyQuick .15s ease-out both}
@keyframes storyQuick{from{opacity:.7;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.menuSheet{gap:14px;max-height:86dvh}
.menuRank{background:#f3f7f3;border:1px solid #dce9de;border-radius:15px;padding:16px}
.rankRow{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.rankRow strong{font-size:20px;letter-spacing:-.4px}
.rankRow b{font-size:21px;font-variant-numeric:tabular-nums;color:#bb6a48}
.rankBar{height:8px;border-radius:10px;background:#dfe6dc;overflow:hidden;margin:11px 0 7px}
.rankFill{height:100%;width:0;background:#d78358;border-radius:10px;transition:width .3s}
.rankNext{font-size:12px;color:#71858b}
.menuActions{display:flex;flex-direction:column;gap:9px}
.menuAction{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 15px;background:white;border:1px solid #dde5df;color:#283f4a;border-radius:12px;font-size:16px;font-weight:850;text-align:left}
.menuAction em{font-size:13px;color:#8899a0;font-style:normal}
.menuTip{font-size:12px;line-height:1.55;color:#7a898f;margin:0}
.historySheet{max-height:88dvh}
.historyList{display:flex;flex-direction:column;min-height:100px;max-height:55dvh;overflow-y:auto;gap:8px;padding:3px 0}
.historyItem{border:1px solid #e1e7e0;background:white;text-align:left;padding:12px;border-radius:12px;display:flex;flex-direction:column;gap:5px;color:#2e4550}
.historyItem strong{font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.historyItem small{font-size:12px;color:#748791}
.historyItem .stampLabel{font-size:12px;font-weight:900;align-self:flex-start;border-radius:7px;padding:3px 7px}
.stampLabel.yes{color:#167b64;background:#d7f2e7}
.stampLabel.maybe{color:#92621a;background:#fff0c7}
.stampLabel.no{color:#a74940;background:#ffe0d7}
.emptyHistory{padding:24px 12px;text-align:center;color:#7a8990;font-size:14px}
.historyHelp{border-top:1px solid #e2e8e1;padding-top:9px;font-size:12px;color:#74868c;line-height:1.5}
@media(max-width:340px){.header{padding-left:9px;padding-right:9px}.header .brand{gap:5px;font-size:16px}.header .seal{width:30px;height:30px;font-size:16px}.header .iconBtn{width:35px;height:36px}.headRight{gap:4px}}
@media(prefers-reduced-motion:reduce){.story.nextEnter .stage,.story.nextEnter .paper{animation:none}}

/* v2.1/v2.2 | profile, requester avatar on story and fast voting */
.app.composing .playerStrip{display:none}
.playerStrip{flex:0 0 49px;border:0;border-bottom:1px solid #dfebe4;width:100%;background:#fffef9;color:var(--ink);padding:5px 12px;display:flex;align-items:center;text-align:left;gap:9px;position:relative;z-index:5}
.avatarPortrait{position:relative;display:flex;align-items:center;justify-content:center;border-radius:50%;width:43px;height:43px;font-size:28px;flex-shrink:0;box-shadow:inset 0 -4px 0 #0000000d;border:2px solid #fefcf6}
.avatarPortrait .avatarBadge{position:absolute;bottom:-3px;right:-5px;border:1.5px solid white;border-radius:50%;font-size:13px;background:#fff8ea;width:20px;height:20px;display:grid;place-items:center}
.playerStrip .avatarPortrait{width:37px;height:37px;font-size:22px}
.playerStrip .avatarPortrait .avatarBadge{font-size:10px;width:15px;height:15px;right:-3px}
.playerInfo{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}
.playerText{display:flex;justify-content:space-between;align-items:baseline;gap:8px;min-width:0}
.playerLabel{font-size:13px;font-weight:930;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.playerRank{font-size:12px;color:#7a8588;font-weight:800;white-space:nowrap}
.playerTrack{height:6px;background:#e7e9e2;border-radius:20px;overflow:hidden;display:block;width:100%}
.playerFill{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#edbc72,#d98458);transition:width .35s ease}
.playerArrow{color:#bd7b53;font-size:18px;font-weight:900;flex-shrink:0}
.playerStrip.pulse .playerFill{filter:brightness(1.1)}
.playerStrip.pulse .avatarPortrait{animation:miniBounce .3s ease}
@keyframes miniBounce{50%{transform:translateY(-3px)}}
/* Gained points appear by the progress meter, never on top of voting controls. */
.xpFlash{position:absolute;right:12px;top:31px;background:#fff3de;color:#ad6241;border:1px solid #f1d4ad;border-radius:9px;padding:3px 7px;font-size:12px;font-weight:950;opacity:0;pointer-events:none;transform:translateY(7px);transition:opacity .15s,transform .3s;z-index:2}
.xpFlash.on{opacity:1;transform:translateY(-4px)}
.toast{bottom:auto!important;top:calc(106px + env(safe-area-inset-top));max-width:min(78vw,320px);white-space:normal;line-height:1.35;z-index:70}
.stage{flex-basis:clamp(84px,18dvh,134px);max-height:134px}
.character{width:clamp(95px,20dvh,141px);height:clamp(95px,20dvh,141px)}
.scrollHint{height:19px}
/* The previous tap-to-jump animation is removed; real scroll positioning is animated. */
.story.nextEnter .stage,.story.nextEnter .paper{animation:none!important}
.menuIdentity{display:flex;align-items:center;gap:11px}
.menuIdentity .avatarPortrait{width:58px;height:58px;font-size:34px}
.menuIdentity .avatarPortrait .avatarBadge{font-size:16px;width:23px;height:23px}
.menuIdentityName{font-weight:950;font-size:17px;margin-bottom:3px}
.menuIdentityRank{font-size:13px;color:#71868e}
.statusSheet,.profileSheet{max-height:93dvh;gap:10px}
.statusScroll,.profileScroll{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;min-height:0;display:flex;flex-direction:column;gap:12px;padding:4px 0 10px}
.statusHero{display:flex;gap:10px;align-items:center;background:#f5f7f2;border:1px solid #e3e9df;border-radius:14px;padding:12px}
.statusHero .avatarPortrait{width:56px;height:56px;font-size:34px}
.statusHero .avatarPortrait .avatarBadge{width:22px;height:22px;font-size:13px}
.statusHero strong{font-size:18px}
.statusSub{color:#7a8990;font-size:12px;margin-top:3px}
.statusBar{height:8px;background:#e4e9df;overflow:hidden;border-radius:12px;margin-top:6px}
.statusBarInner{background:#d48a62;height:100%;width:0;border-radius:12px;transition:width .25s}
.statTiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.statTile{background:#fff;border:1px solid #e4e8e2;padding:12px 7px;border-radius:12px;display:flex;flex-direction:column;gap:4px;text-align:center}
.statTile strong{font-size:21px;color:#263e4b;font-variant-numeric:tabular-nums}
.statTile span{font-size:12px;color:#75888b;font-weight:800}
.sectionLabel{font-size:14px;font-weight:950;margin:1px 0 0}
.distStrip{height:11px;border-radius:15px;display:flex;overflow:hidden;background:#eef0ec;gap:1px}
.distStrip span{height:100%;min-width:0;transition:width .25s}
.distLegend{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;font-weight:850}
.distLegend span{white-space:nowrap}
.catStatList{display:flex;flex-direction:column;gap:8px}
.catStatRow{display:grid;grid-template-columns:63px 1fr 33px;align-items:center;gap:7px;font-size:12px}
.catStatTrack{height:7px;background:#eef0e9;overflow:hidden;border-radius:10px}
.catStatTrack span{display:block;height:100%;background:#7da8a4;border-radius:10px}
.statusNotice{font-size:11px;color:#81949a;line-height:1.5;padding:3px}
.statusSheet .historyList{max-height:none;overflow:visible;gap:7px}
.statusSheet .historyItem{padding:10px 11px}
.profilePreview{display:flex;align-items:center;gap:13px;background:#f4f7f2;border:1px solid #e3e8df;border-radius:15px;padding:12px}
.profilePreview .avatarPortrait{width:70px;height:70px;font-size:43px}
.profilePreview .avatarPortrait .avatarBadge{font-size:19px;width:27px;height:27px}
.profilePreview strong{font-size:16px}
.profilePreview small{display:block;font-size:12px;color:#738690;margin-top:4px}
.profileField{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:850}
.profileField input{width:100%;height:47px}
.choiceLabel{font-size:13px;font-weight:950;margin:3px 0}
.choiceGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.choiceOption{position:relative;background:#fff;border:1.5px solid #dde5de;min-height:69px;border-radius:11px;padding:7px 4px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:3px}
.choiceOption .emo{font-size:27px;line-height:1.25}
.choiceOption .optionTitle{font-size:10px;color:#657c82;font-weight:800}
.choiceOption.locked{background:#f5f6f2;border-color:#e5e8e2;filter:saturate(.35);opacity:.75}
.choiceOption.locked:after{content:'🔒';position:absolute;top:2px;right:3px;font-size:11px;filter:saturate(2)}
.choiceOption.selected{border-color:#bd7956;background:#fff7ed;box-shadow:0 0 0 1px #cb8a6e}
.themeSwatch{width:28px;height:28px;border-radius:50%;border:1px solid #82969b35}
.profileSave{flex:0 0 auto}
@media(max-height:650px){.playerStrip{flex-basis:43px;padding-top:2px;padding-bottom:2px}.stage{flex-basis:clamp(79px,16.5dvh,106px)}.character{width:clamp(95px,18dvh,120px);height:clamp(95px,18dvh,120px)}.story{gap:5px;padding-top:3px;padding-bottom:3px}.paper{padding:9px 12px 7px}.title{margin:5px 0 4px}.scrollHint{height:15px;font-size:10px}}
@media(max-width:340px){.playerStrip{padding-left:9px;padding-right:9px}.playerRank{font-size:11px}.playerLabel{font-size:12px}.choiceGrid{gap:5px}}
@media(prefers-reduced-motion:reduce){.playerStrip.pulse .avatarPortrait{animation:none}}

/* v2.3: same customizable vector human on the story, HUD and profile. */
.avatarPortrait{overflow:hidden;background:#f2f4ef}
.avatarPortrait svg{width:116%;height:116%;flex:0 0 auto;display:block;transform:translateY(9%)}
.character svg{width:100%;height:100%;display:block}
.stage.humanStage{background:linear-gradient(180deg,var(--human-bg) 0%,var(--human-bg) 72%,#b7d4c5 73%,#b7d4c5 100%)}
.writeOwner{display:flex;width:100%;gap:10px;align-items:center;text-align:left;background:#f7f9f6;border:1.5px solid #d8e3db;border-radius:12px;padding:10px 11px;color:var(--ink);min-height:63px}
.writeOwner .avatarPortrait{width:42px;height:42px}.writeOwnerInfo{display:flex;flex:1;flex-direction:column;min-width:0;gap:3px}.writeOwnerInfo strong{font-size:16px}.writeOwnerInfo small{font-size:12px;color:#798d94}.writeOwnerArrow{color:#aa7655;font-size:12px;font-weight:850;white-space:nowrap}
.sheetHeaderButtons{display:flex;align-items:center;gap:5px}
.helpCircle{width:32px;height:32px;border:1.5px solid #c7d4d2;border-radius:50%;background:#f4faf7;color:#385865;font-size:17px;font-weight:900;display:grid;place-items:center}
.profileSheet{max-height:95dvh}
.profileScroll{gap:10px}
.humanPreviewRow{display:flex;gap:14px;align-items:center;background:#f6f8f4;border:1px solid #e0e8df;border-radius:15px;padding:10px}
.humanPreviewBackdrop{width:112px;height:117px;flex-shrink:0;position:relative;border-radius:12px;background:var(--preview-bg,#ffe8c4);border:1px solid #d5e1d9;overflow:hidden}
.humanPreviewBackdrop:after{content:'';position:absolute;bottom:0;height:9px;background:#c38f70;left:0;right:0}
.humanPreviewHuman{position:absolute;width:127px;height:127px;left:50%;bottom:-11px;transform:translateX(-50%)}
.humanPreviewHuman svg{display:block;width:100%;height:100%}
.profilePreviewDetails{display:flex;flex-direction:column;gap:6px;min-width:0}.profilePreviewDetails strong{font-size:18px;font-weight:900;word-break:break-word}.profilePreviewDetails small{color:#738690;font-size:12px;line-height:1.4}
.profileField input{height:44px}
.humanTabs{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none;flex:0 0 auto;padding-bottom:2px}.humanTabs::-webkit-scrollbar{display:none}
.humanTab{flex:0 0 auto;padding:9px 11px;background:white;border:1px solid #dfe8df;border-radius:9px;font-size:13px;font-weight:850;color:#597078;white-space:nowrap}
.humanTab.active{color:#925a37;background:#fff0e1;border-color:#de9e75}
.humanOptionsTitle{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.humanOptionsTitle strong{font-size:15px}.humanOptionsTitle small{font-size:11px;color:#87989d}
.humanChoices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;align-content:start;min-height:72px}
.humanChoice{position:relative;background:#fff;border:1.5px solid #dfe5df;border-radius:11px;min-height:75px;padding:5px 3px 6px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-width:0}
.humanChoice.selected{border-color:#c78a60;background:#fff6ed;box-shadow:0 0 0 1px #c78a60}
.humanChoice.locked{background:#f5f6f3;opacity:.76;filter:saturate(.45)}
.humanChoice.locked:before{content:'🔒';position:absolute;top:1px;right:2px;font-size:10px;z-index:2}
.humanChoice .humanMini{width:49px;height:49px;overflow:hidden;display:block}.humanMini svg{width:100%;height:100%;transform:scale(1.35) translateY(10%)}
.humanChoice .humanSwatch{width:39px;height:39px;display:block;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #bacbc8}
.humanChoice .humanChoiceName{font-size:11px;line-height:1.1;font-weight:850;color:#526b71;text-align:center}
.humanChoice .unlockTag{position:absolute;top:1px;left:3px;font-size:9px;line-height:1.1;font-weight:900;color:#7d8288}
.profileUnlockInfo{color:#758c8f;font-size:11px;line-height:1.5;margin-top:2px}.profileUnlockInfo button{border:0;background:none;color:#aa6844;font-weight:850;text-decoration:underline;padding:2px 4px}
.rankHelpModal{z-index:85}.rankHelpSheet{max-height:88dvh}.rankHelpIntro{margin:0}.rankHelpList{display:flex;flex-direction:column;gap:6px;overflow:auto;overscroll-behavior:contain;padding:2px 0 8px}
.rankHelpItem{border:1px solid #e0e5df;background:#fcfdfa;border-radius:12px;padding:10px 12px;display:flex;gap:11px;align-items:flex-start}.rankHelpItem.current{background:#fff5e9;border-color:#d9a77f}.rankHelpNum{display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;border-radius:10px;background:#e2eeea;color:#3b6770;font-size:16px;font-weight:950}.rankHelpItem.current .rankHelpNum{background:#f6dbb4;color:#925b3c}.rankHelpText{display:flex;flex-direction:column;gap:3px}.rankHelpText strong{font-size:14px}.rankHelpText small{font-size:12px;color:#668188;line-height:1.45}.rankHelpFoot{font-size:11px;color:#74898b;line-height:1.5;padding:3px 0}
@media(max-width:340px){.humanChoices{gap:5px}.humanChoice{min-height:67px}.humanChoice .humanMini{height:44px;width:44px}.humanTab{padding:9px}}

/* v2.4: quick review-status and unmistakable selected judgment. */
.paperBottom{justify-content:space-between;gap:8px}
.reviewStatus{display:inline-flex;align-items:center;gap:4px;max-width:66%;min-height:27px;border:1px solid #d7e0dc;background:#f3f6f4;color:#647a81;border-radius:8px;padding:4px 7px;font-size:12px;font-weight:900;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reviewStatus.yes{color:#166f56;background:#e5f7ef;border-color:#a8ddc7}
.reviewStatus.maybe{color:#855a0b;background:#fff2cf;border-color:#eecb80}
.reviewStatus.no{color:#a44336;background:#fff0ec;border-color:#ecad9d}
.commentBtn{flex-shrink:0;white-space:nowrap}
.vote{position:relative;isolation:isolate;transition:transform .1s ease,box-shadow .1s ease,border-color .1s ease,filter .1s ease}
.vote.selected{outline:none;transform:translateY(1px);box-shadow:0 1px 0 #243b47,0 0 0 3px #fff,0 0 0 5px #375d70;filter:saturate(1.18)}
.vote.selected.yes{background:#73d5b1;border-color:#117c5d;color:#103f31}
.vote.selected.maybe{background:#f9c76b;border-color:#9e6517;color:#563a13}
.vote.selected.no{background:#f39d8c;border-color:#b44436;color:#622419}
.vote.selected:after{content:'\2713';position:absolute;z-index:2;right:-5px;top:-10px;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#294858;border:2px solid white;color:white;font-size:13px;font-weight:1000;line-height:1;box-shadow:0 1px 4px #20374350}
@media(max-width:340px){.reviewStatus{font-size:11px;padding:4px 6px}.paperBottom{gap:4px}.vote.selected:after{width:19px;height:19px;right:-4px;top:-8px}}

/* v2.5: one final scroll-snap card after the last real story. */
.endStory{height:100%;min-height:100%;scroll-snap-align:start;scroll-snap-stop:always;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px;text-align:center;padding:22px 24px 36px;background:var(--bg);color:var(--ink)}
.endMark{width:76px;height:76px;display:grid;place-items:center;border:2px solid #d7e5dc;border-radius:22px;background:#f0f7f1;color:#387969;font-size:38px;box-shadow:0 4px 0 #dceae0}
.endStory h2{font-size:24px;font-weight:950;letter-spacing:-.6px;line-height:1.35;margin:4px 0 0;word-break:keep-all}
.endStory p{font-size:15px;line-height:1.6;color:#657c85;margin:0;word-break:keep-all}
.endStory button{margin-top:5px;min-height:48px;padding:0 26px;background:var(--ink);color:#fff;border:0;border-radius:12px;font-size:15px;font-weight:900}
.endStory small{font-size:12px;color:#8b9a9f}
@media(max-height:650px){.endStory{gap:11px}.endMark{width:62px;height:62px;font-size:32px}.endStory h2{font-size:21px}}

/* v2.6: same-height feed toolbar with a clear, accessible, saved ON/OFF switch. */
.catbar{gap:7px;padding-right:8px}.chips{min-width:0;flex:1;width:auto}
.reviewToggle{flex:0 0 auto;display:flex;align-items:center;gap:5px;white-space:nowrap;height:31px;min-height:31px;padding:0 7px;border:1px solid #d5dcd6;border-radius:9px;background:#fff;color:#647b84;font-size:11.5px;font-weight:850}
.reviewToggleTrack{display:block;width:27px;height:16px;position:relative;flex-shrink:0;border-radius:100px;background:#c7d0cb;transition:background .12s}
.reviewToggleKnob{position:absolute;width:12px;height:12px;top:2px;left:2px;background:#fff;border-radius:100px;box-shadow:0 1px 2px #12232233;transition:transform .12s}
.reviewToggle.on{border-color:#83bdab;background:#e8f6ee;color:#226e59}.reviewToggle.on .reviewToggleTrack{background:#338e70}.reviewToggle.on .reviewToggleKnob{transform:translateX(11px)}
@media(max-width:350px){.reviewToggle{gap:4px;padding:0 6px;font-size:10.5px}.reviewToggleTrack{width:25px}.reviewToggle.on .reviewToggleKnob{transform:translateX(9px)}}

/* v2.8: Keep a vote on screen so the facial reaction and comments are visible. */
.stage.maybeLead:not(.humanStage){background:linear-gradient(#f5e9d4 0%,#f6e7cf 72%,#d5c6a7 73%,#d5c6a7 100%);border-color:#e4cc9c}
.stage.maybeLead .verdict{background:#fff4daee;border-color:#e5c98d}
.stage.maybeLead .verdict strong{color:#99631e}

/* v3.1: three social sign-ins, explicit guest isolation, and safe callbacks */
.authLayer{z-index:90;align-items:center;padding:15px}.authSheet{border-radius:22px;max-height:94dvh;overflow-y:auto;gap:9px;padding:20px 18px 22px;width:min(100%,420px)}
.authBadge{display:grid;place-items:center;margin:0 auto 1px;width:51px;height:51px;border-radius:50%;background:#ffe0a4;border:3px double #a57742;color:#243d4a;font-size:28px;font-weight:950}.authSheet h2{font-size:23px;text-align:center;margin:4px 0 0}.authSheet p{margin:3px 0 9px;text-align:center;font-size:13px;line-height:1.55}.authOption{height:51px;width:100%;border-radius:11px;border:1px solid #dce2dd;font-size:15px;font-weight:900}.authOption.google{background:#fff;color:#263d49}.authOption.kakao{background:#fee500;color:#352c13;border-color:#f4d900}.authOption.naver{background:#03c75a;color:white;border-color:#03c75a}.authOption.naver small{font-size:11px;font-weight:600}.authOption.guest{background:#e8efeb;color:#334955;margin-top:6px}.authSheet .authFoot{color:#82949a;font-size:12px;text-align:left;line-height:1.5;margin:8px 2px 0}.authError{min-height:17px;color:#bd5246;font-size:12px;text-align:center;line-height:1.5}.menuLogout{display:block;width:100%;min-height:38px;border:1px solid #e3e7e0;border-radius:10px;background:#fff;color:#627c85;font-size:13px;font-weight:850;margin-top:7px}
.menuSheet{overflow-y:auto;overscroll-behavior:contain}.authBack{display:block;width:100%;min-height:37px;border:0;background:transparent;color:#456375;font-size:13px;font-weight:850;text-align:center;margin:2px 0 0}.authBack.hidden{display:none}.authOption:disabled{opacity:.65;cursor:wait}.authError{font-weight:750}.authProviderFlag{font-size:11px;color:#557883}
.net{font-size:10px}.menuSheet .menuActions{gap:5px}


/* v3.2: same visual identity, unobtrusive author tools and readable dialogs. */
.metaActions{display:flex;align-items:center;gap:7px;min-width:0;max-width:75%}
.metaActions .author{max-width:100%;min-width:0}
.storyMore{border:0;background:#f5f7f3;color:#455e6a;border-radius:9px;width:34px;height:32px;flex-shrink:0;font-size:24px;line-height:1}
.paper .meta{min-height:29px}
.discussionTabs{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.discussionTabs button{height:39px;border:1px solid #d9e1d9;border-radius:10px;background:#fff;color:#627b84;font-weight:800}
.discussionTabs button.active{background:#263e4b;color:#fff;border-color:#263e4b}
.commentMeta{display:flex;justify-content:space-between;gap:10px}
.commentMeta small{font-size:11px;color:#6e858c}
.commentActions{display:flex;justify-content:flex-end;gap:6px;margin-top:8px}
.commentActions button{min-width:45px;min-height:34px;border:1px solid #dbe3da;background:#fff;border-radius:8px;color:#425e6e;font-size:13px}
.commentItem p{overflow-wrap:anywhere}
.commentList .secondary{flex-shrink:0}
.actionLayer{z-index:75}
.textLayer{z-index:85}
.confirmLayer{z-index:120;align-items:center;padding:20px}
.confirmSheet{border-radius:18px;max-width:420px}
.confirmSheet p{font-size:15px;line-height:1.6;white-space:pre-line}
.primary.danger{background:#aa4b40}
.dangerText{color:#ac493e!important}
.actionList{display:grid;gap:7px}
.actionList>button{min-height:44px;padding:10px 13px;background:#fff;border:1px solid #dce2db;border-radius:10px;font-size:15px;font-weight:800;text-align:left;color:#354e5a}
.actionList>p{margin:0 3px 3px;font-size:12px}
.actionTitle{font-size:16px!important;font-weight:750;color:#263e4b!important;overflow-wrap:anywhere;margin:2px 0 7px!important}
.accountDetails{margin:0;line-height:1.5;overflow-wrap:anywhere}
.accountDetails dt{font-size:12px;color:#73878e}
.accountDetails dd{margin:2px 0 13px;font-size:15px}
.appVersion{color:#7c8a90;font-size:11px}
.connectionBanner{padding:5px 12px;background:#fff0d1;color:#855d18;font-size:12px;flex-shrink:0;text-align:center}
.statTiles{grid-template-columns:repeat(4,minmax(0,1fr))}
.statTile{padding:10px 4px}.statTile strong{font-size:19px}
#textBody{min-height:110px;max-height:30dvh;resize:vertical}
#commentModal .sheet{height:min(82dvh,700px);min-height:0}
#commentList{flex:1;min-height:65px}
#commentForm{flex-shrink:0}
#commentInput{min-height:52px;resize:none}
#commentNote{line-height:1.4}
.layer .sheet{overflow-y:auto;overscroll-behavior:contain}
#profileModal .sheet,#historyModal .sheet,#commentModal .sheet{overflow:hidden}
#confirmModal .sheet{overflow:auto}

#authNaver:disabled{opacity:.5}
#toast{z-index:130;top:calc(env(safe-area-inset-top) + 66px);width:max-content;max-width:min(88vw,420px);white-space:normal}
@media(max-width:350px){
 .metaActions{max-width:72%;gap:3px}.storyMore{width:30px;height:29px}
 .statTile strong{font-size:16px}.statTile span{font-size:11px}
 .commentActions button{min-height:34px}
}
@media(prefers-reduced-motion:reduce){
 *,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* v3.3: consistent Google/Kakao/Naver buttons; no emoji-only Google 'G'. */
.authOption.google{background:#fff;color:#1f1f1f;border:1px solid #747775;font-weight:750}
.authOption{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;line-height:1.2;cursor:pointer}
.authOption .providerIcon{position:absolute;left:14px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:22px;height:24px;flex-shrink:0}
.authOption.google .googleG{width:20px;height:20px;display:block}
.authOption.kakao{background:#FEE500;color:#191919;border-color:#FEE500}
.authOption.naver{background:#03C75A;color:#FFF;border-color:#03C75A}
.authOption.naver .naverN{font-family:Arial,sans-serif;font-weight:1000;font-size:22px;line-height:1}
.authOption .providerText{font-size:14px;letter-spacing:-.25px;text-align:center;padding:0 20px}
.authOption:focus-visible{outline:3px solid #4285f4;outline-offset:2px}
.authOption:disabled{cursor:not-allowed;opacity:.58}

/* v3.4: browser-local Google logo, next to its label (no third-party image). */
.authOption.google { display:flex; align-items:center; justify-content:center; gap:12px; background:#fff; color:#202124; border:1px solid #747775; }
.authOption.google .providerIcon { position:static; inset:auto; transform:none; display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; min-width:28px; flex:none; }
.authOption.google .googleLogo { display:block; width:28px; height:28px; min-width:28px; object-fit:contain; opacity:1; filter:none; }
.authOption.google .providerText { display:inline-block; padding:0; font-size:15px; font-weight:700; color:#202124; flex:none; }

/* v3.5 provider logo CSS implemented inline in index.html for robustness. */


/* v3.6: friendlier, uncluttered consumer UI. */
#menuModal .menuActions{gap:7px}
#menuModal .menuAction{min-height:49px}
#menuModal .menuRank{padding:13px}
#menuModal .menuTip{font-size:12px;margin:1px 3px 0}
#accountModal .accountDetails dd{font-weight:800;overflow-wrap:anywhere}
#authModal .authFoot{font-size:12px;line-height:1.55;color:#758790;margin-top:8px}
#hideReviewedToggle .reviewToggleText{font-size:11px}
#hideReviewedToggle{min-height:33px}
#reel .empty{line-height:1.55;min-height:200px}
#reel .empty p{margin:0;color:#71838c;font-size:14px}
#reel .empty button{min-height:44px}
@media(max-width:350px){#hideReviewedToggle .reviewToggleText{font-size:10px}#hideReviewedToggle{gap:4px;padding-left:5px;padding-right:5px}}


/* v3.7 release readiness */
.v37DemoTag{align-self:flex-start;margin:0 0 2px;padding:3px 6px;border:1px solid #edd4aa;border-radius:6px;background:#fff6e8;color:#92683d;font-size:10px;font-weight:800;line-height:1.2}
.v37Layer{z-index:100}
.v37Sheet{max-height:90dvh;overflow-y:auto;overscroll-behavior:contain}
.v37Sheet p{line-height:1.55;margin:6px 0}
.v37Danger{min-height:44px;padding:9px 12px;border:1px solid #d4a19b;background:#fff1ee;color:#a04337;border-radius:10px;font-size:14px;font-weight:850}
.v37Danger:disabled{opacity:.45}
#v37AccountDeleteButton{margin-top:12px;width:100%}
.v37Field{display:flex;flex-direction:column;gap:8px;color:#3a5360;font-size:14px}
.v37Toolbar,.v37CaseActions{display:flex;flex-wrap:wrap;gap:7px}
.v37Toolbar button,.v37CaseActions button{min-height:38px;padding:8px 12px;font-size:13px}
.v37Queue{display:flex;flex-direction:column;gap:10px;min-height:90px;overflow-y:auto;max-height:58dvh}
.v37Case{padding:12px;border:1px solid #e3e6df;border-radius:12px;background:#fff;display:flex;flex-direction:column;gap:6px}
.v37Case strong{overflow-wrap:anywhere}
.v37Case small{color:#758890}
.v37Case p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.v37UpdateBanner{position:fixed;z-index:115;left:50%;bottom:calc(70px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(95vw,430px);display:flex;align-items:center;justify-content:space-between;gap:12px;background:#263e4b;color:white;padding:11px 14px;border-radius:12px;box-shadow:0 3px 18px #0004;font-size:13px;font-weight:850}
.v37UpdateBanner button{border:0;background:#ffdfaa;border-radius:8px;padding:9px 12px;color:#263e4b;font-size:13px;font-weight:900}
