:root{color-scheme:dark;--bg:#101216;--surface:#191c22;--line:#30343d;--gold:#e3bc70;--text:#ececf0;--muted:#a8adb8;--red:#e78e8e}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.7 'Malgun Gothic',system-ui,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,.button{cursor:pointer;border:1px solid var(--line);border-radius:9px;padding:10px 17px;background:#242831;color:var(--text);display:inline-block}button:hover,.button:hover{border-color:var(--gold)}button:disabled{cursor:default;opacity:.5}button.primary,.primary{background:var(--gold);color:#1b170f;border-color:var(--gold);font-weight:700}.plain{background:none;border:0;color:var(--muted)}header{height:95px;padding:18px max(24px,calc((100vw - 1240px)/2));display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:#14161b}.brand{display:flex;align-items:center;gap:12px;font-size:25px;font-weight:800;letter-spacing:-1px;white-space:nowrap}.brand img{width:49px;height:49px;border-radius:12px}.brand small{display:block;font-size:10px;font-weight:400;color:var(--gold);letter-spacing:2px}.header-right{display:flex;align-items:center;gap:15px}.private{color:var(--gold);font-size:12px;border:1px solid #685637;border-radius:20px;padding:3px 10px}.layout{max-width:1240px;display:grid;grid-template-columns:265px minmax(0,1fr);gap:50px;margin:auto;padding:40px 24px 110px}aside{padding-top:14px}aside h2{font-size:27px;line-height:1.5;letter-spacing:-1.3px}aside p{color:var(--muted)}.eyebrow{color:var(--gold)!important;letter-spacing:2px;font-size:11px;font-weight:bold}.side-note{font-size:12px;color:var(--muted);padding:26px 0;margin:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}aside>a:last-child{font-size:12px;color:var(--gold)}h1,h2,h3,p{margin-top:0}h1{font-size:29px;line-height:1.4;letter-spacing:-1px}h2{font-size:20px}h3{font-size:16px}main{min-width:0}.hero{padding:27px 30px;background:linear-gradient(110deg,#342b1f,#1a1d23 75%);border:1px solid #5a4931;border-radius:15px;margin-bottom:24px;position:relative}.hero h1{margin:6px 0 10px}.hero p{color:#c6beb0;font-size:13px;margin:0}.hero .eyebrow{margin:0}.chips{display:flex;gap:7px;overflow-x:auto;padding-bottom:12px;margin-bottom:18px}.chip{white-space:nowrap;font-size:12px;padding:7px 13px;border-radius:20px}.chip.active{background:var(--gold);color:#151515}.section{margin-bottom:26px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.section-head h2{margin:0;font-size:18px}.section-head a{color:var(--muted);font-size:12px}.accent{color:var(--gold)}.panel{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:22px;margin-bottom:18px}.list{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}.row{display:block;border-bottom:1px solid var(--line);padding:16px 20px}.row:last-child{border:0}.row:hover{background:#21252d}.row .title{font-size:15px;margin:3px 0;overflow-wrap:anywhere}.row .meta{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--muted)}.tag{font-size:10px;color:var(--gold);border:1px solid #635338;border-radius:4px;padding:1px 5px}.comment-count{font-size:12px;color:var(--gold);margin-left:5px}.empty{padding:25px;color:var(--muted);text-align:center;font-size:13px;border:1px dashed var(--line);border-radius:10px}.muted{color:var(--muted);font-size:12px}.note{padding:12px 15px;background:#22232a;border-left:3px solid var(--gold);font-size:12px;color:#c3c1b9;margin-bottom:20px}.subjective{text-align:right;font-size:12px;color:#b4b7bf;margin:15px 0 25px}.body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.95}.columns{display:grid;grid-template-columns:1fr 1fr;gap:15px}label{display:block;font-size:13px;margin-bottom:17px}input,select,textarea{display:block;width:100%;border:1px solid #414650;border-radius:7px;background:#12151b;color:var(--text);padding:11px;margin-top:7px}textarea{min-height:160px;resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid var(--gold);outline-offset:1px}.actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.choice{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid var(--line);border-radius:8px;margin-bottom:9px}.choice input{width:auto;margin:0;accent-color:var(--gold)}.choice:has(input:checked){border-color:var(--gold);background:#302a21}.result-row{margin:14px 0}.result-label{display:flex;justify-content:space-between;font-size:13px;margin-bottom:5px}.bar{height:9px;background:#333945;border-radius:8px;overflow:hidden}.bar>span{height:100%;display:block;background:var(--gold);transition:width .5s}.stack{height:15px;display:flex;background:#353b47;border-radius:4px;overflow:hidden}.stack span:nth-child(1){background:var(--gold)}.stack span:nth-child(2){background:#7f9fcd}.stack span:nth-child(3){background:#a38fbf}.legend{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--muted)}.legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:4px}.comment{padding:16px 0;border-bottom:1px solid var(--line)}.comment.reply{margin-left:25px;border-left:2px solid var(--line);padding-left:15px}.comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0}.comment textarea{min-height:70px}.shield{width:33px;height:39px;vertical-align:middle;filter:drop-shadow(0 2px 3px #000)}.profile-head{display:flex;align-items:center;gap:16px}.profile-head .shield{width:70px;height:80px}.profile-head h1{margin:0}.profile-stats{display:flex;gap:20px;margin:24px 0}.stat strong{font-size:23px;display:block}.stat span{color:var(--muted);font-size:11px}.error{color:var(--red);font-size:13px}.check{display:flex;align-items:flex-start;gap:8px;font-size:12px}.check input{width:auto;margin-top:6px}nav{position:fixed;bottom:0;left:0;right:0;height:73px;padding-bottom:env(safe-area-inset-bottom);background:#181b21f5;backdrop-filter:blur(15px);border-top:1px solid var(--line);display:flex;justify-content:center;gap:55px;z-index:10}nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;width:70px;font-size:23px;color:#9ca3af;line-height:1.35}nav span{font-size:11px}nav a.active{color:var(--gold)}dialog{background:#1b1e25;color:var(--text);border:1px solid #6c5836;border-radius:15px;width:min(540px,95vw);max-height:92vh;padding:26px}dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}dialog h2{font-size:22px}dialog summary{cursor:pointer;font-size:13px;margin:15px 0}dialog .close:first-child{float:right;font-size:12px;padding:3px 9px}.provider{display:block;width:100%;margin-bottom:8px}.kakao{background:#fee500;color:#191919}.provider:disabled{opacity:.7}#toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);max-width:90%;background:#292722;border:1px solid var(--gold);border-radius:10px;padding:13px 22px;display:none;z-index:50;font-size:14px}#splash{position:fixed;inset:0;background:#08090a;z-index:100;display:flex;align-items:center;justify-content:center}#splash img{max-height:100%;max-width:100%;object-fit:contain}#splash button{position:absolute;bottom:5%;background:#17140ee8;border-color:var(--gold);color:var(--gold)}table{border-collapse:collapse;width:100%;font-size:12px}td,th{padding:10px;text-align:left;border-bottom:1px solid var(--line)}.table-wrap{overflow-x:auto}.admin-user{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.badge{display:inline-block;padding:3px 8px;background:#3a3021;color:var(--gold);border-radius:6px;font-size:11px}.search{margin-bottom:20px}.preview-label{font-size:11px;color:var(--gold);letter-spacing:2px}#connection{font-size:11px;color:var(--muted)}@media(max-width:900px){aside{display:none}.layout{grid-template-columns:1fr;max-width:820px;padding-top:24px;gap:0}}@media(max-width:540px){header{height:77px;padding:12px 16px}.brand{font-size:21px}.brand img{width:40px;height:40px}.brand small{font-size:8px;letter-spacing:1px}.private{font-size:9px;padding:2px 6px}.header-right{gap:6px}#account{font-size:11px;padding:7px 9px}.layout{padding:18px 14px 100px}.hero{padding:22px}.hero h1{font-size:24px}h1{font-size:24px}.row{padding:13px 15px}.columns{grid-template-columns:1fr;gap:0}.panel{padding:17px}nav{gap:0;justify-content:space-around}nav a{width:20%}.profile-stats{gap:16px}.actions button{font-size:13px}.subjective{font-size:12px}.admin-user{align-items:flex-start}.admin-user button{font-size:11px;padding:6px}}

#demo-banner{position:fixed;top:0;left:0;right:0;z-index:300;background:#684719;color:#fff1cf;text-align:center;padding:7px 12px;font-size:12px;font-weight:700}.demo-mode header{margin-top:35px}.demo-mode #splash{padding-top:35px}.demo-tools{max-width:1240px;margin:auto;padding:12px 24px;display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:#24201a;font-size:12px}.demo-tools button{padding:5px 10px;font-size:12px}.demo-person{display:block;width:100%;text-align:left;margin:8px 0}.demo-person small{display:block;color:#b8bdc7}.demo-person span{font-size:12px}#demo-accounts{width:min(720px,95vw)}#demo-search{position:sticky;top:0}#read-reward button{font-size:11px;margin-left:10px;padding:5px 8px}#rank-up{text-align:center;border-color:#e3bc70;min-width:300px}#rank-up h2{font-size:32px;color:#e3bc70}.header-right #notice-button{font-size:11px;padding:6px 9px}@media(max-width:540px){#demo-banner{font-size:10px;padding:8px}.demo-tools{padding:9px 14px;gap:8px}.header-right .private{display:none}}

.support-menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:16px 0}.support-menu .button{display:block;overflow-wrap:anywhere}#all-menu{font-size:20px;padding:6px 12px}@media(max-width:540px){.header-right #notice-button{display:none}.support-menu{grid-template-columns:1fr}}
/* v4.4 light theme. v4.3 assets preserved in design-backup-v4.3. */
:root{color-scheme:light;--bg:#faf9f6;--surface:#fff;--line:#e8e5df;--gold:#c89b3c;--text:#252525;--muted:#737373;--red:#a83c37;--gold-ink:#8c631e;--selection:#fff3d8;--shadow:0 4px 20px #45351706}
body{background:var(--bg);color:var(--text)}header{background:#fff;border-color:var(--line)}.brand img{box-shadow:0 3px 9px #77541025}.brand small{color:var(--gold-ink)}button,.button{background:#fff;color:var(--text);border-color:#d8d3c9;min-height:44px}button:hover,.button:hover{background:#fffaf0}button.primary,.primary{background:#c89b3c;color:#3a2910;border-color:#b78b30}.plain{background:transparent;color:#68625b;border:0}.private{color:var(--gold-ink);border-color:#dcc594;background:#fffaf0}.eyebrow,.accent{color:var(--gold-ink)!important}.hero{background:linear-gradient(110deg,#fff3d8,#fffdf8 75%);border-color:#e8d7ae;box-shadow:var(--shadow)}.hero p{color:#6e614b}.hero h1{font-size:30px}.panel,.list{background:#fff;border-color:var(--line);box-shadow:var(--shadow)}.list{background:transparent;border:0;box-shadow:none;overflow:visible}.row{background:#fff;border:1px solid var(--line)!important;border-radius:12px;margin:10px 0;padding:18px 20px;box-shadow:var(--shadow)}.row:hover{background:#fffcf6;border-color:#d4bc85!important}.row .title{font-weight:650;font-size:16px}.row .meta{font-size:12px;color:#737373}.tag{color:#88601c;background:#fff7e5;border-color:#e6d6b5;font-size:11px}.comment-count{color:#91651d}.chip{background:#fff}.chip.active{background:#fff3d8;color:#805a17;border-color:#c89b3c}.empty{background:#fffdf9;border-color:#d8d3c9;color:#737373}.note{background:#fff6e4;color:#685630;border-left-color:#c89b3c;font-size:13px}.subjective{color:#737373;font-size:12px}.body{font-size:16px;line-height:2;color:#30302f}input,select,textarea{background:#fff;color:#252525;border-color:#d2cdc3;font-size:16px}.choice{background:#fff;border-color:#d8d3c9;min-height:56px;font-size:16px}.choice:has(input:checked){background:#fff3d8;border-color:#a87924;box-shadow:inset 3px 0 #c89b3c}.choice input{accent-color:#a87924}.bar{background:#f0ece5;height:10px}.bar>span{background:#b58a2d}.stack{background:#f0ece5}.stack span:nth-child(1){background:#b58a2d}.stack span:nth-child(2){background:#5688b3}.stack span:nth-child(3){background:#9174b0}.legend{color:#68635b}.comment{background:#fff;padding:18px 0;border-color:var(--line)}.comment strong{vertical-align:middle}.comment .shield{width:26px;height:31px;margin-right:5px;filter:none}.comment p{font-size:15px;line-height:1.85}.comment.reply{background:#faf9f6;padding:14px;border-radius:10px;margin-top:8px;border-color:#e5d8ba}.shield{width:36px;height:43px;filter:drop-shadow(0 2px 2px #76571c22)}.profile-head .shield{width:86px;height:102px}.profile-head .profile-avatar{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff3d8;color:#88601c;font-size:20px;border:1px solid #e8d5a9}.profile-head{flex-wrap:wrap}.badge{background:#fff3d8;color:#805b1c}.prisoner-label{background:#eef0f3;color:#505a69}.profile-stats{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0}nav{background:#ffffffed;border-color:var(--line);box-shadow:0 -5px 25px #4b391008}nav a{color:#737373;min-height:48px}nav a.active{color:#93691e}nav a[data-nav=write]{position:relative;color:#3a2910;font-weight:bold}nav a[data-nav=write]::before{content:'';position:absolute;top:5px;left:50%;transform:translateX(-50%);width:38px;height:38px;border-radius:50%;background:#d2aa54;z-index:-1}dialog{background:#fff;color:#252525;border-color:#e4d1a3;box-shadow:0 20px 90px #3a291030}dialog::backdrop{background:#30271f50;backdrop-filter:blur(3px)}#toast{background:#fff8e8;color:#4f3e1e;border-color:#c89b3c;box-shadow:0 5px 22px #513c1920}#connection{color:#737373}.side-note{color:#737373}aside>a:last-child{color:#8c631e}#splash{background:#faf9f6;flex-direction:column;text-align:center;padding:25px 20px;overflow:auto}#splash .splash-content{width:min(440px,100%);margin:auto 0 25px}#splash .splash-gavel{width:min(320px,78vw);height:auto;filter:drop-shadow(0 12px 18px #b68c3020)}#splash h1{font-size:44px;color:#8e661f;font-weight:850;letter-spacing:-2px;margin:0 0 14px}.splash-slogan{font-size:19px;color:#5f4a24;letter-spacing:2px}#splash button{position:static;margin:0 0 auto;min-width:240px;background:#c89b3c;color:#3a2910}.demo-tools{background:#f4eddf;color:#68532e;border-bottom:1px solid #e8d7b8}.demo-person small{color:#737373}.demo-person span{color:#5e5a53}#rank-up{background:radial-gradient(ellipse at top,#fff1cd,#fff 65%)}#rank-up h2{color:#90641c}hr{border:0;border-top:1px solid var(--line);margin:24px 0}.podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.podium-card{background:#fff;border:1px solid #e8e5df;border-radius:14px;display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px 8px;gap:7px;min-width:0}.podium-card strong{overflow-wrap:anywhere}.podium-card .shield{width:62px;height:74px}.podium-card span,.podium-card small{font-size:12px;color:#69645b}.podium-card .placement{border-radius:20px;padding:3px 14px;background:#fff3d8;color:#825e1d;font-weight:800}.place-1{border-color:#d5b56a;background:linear-gradient(#fff7df,#fff)}.place-2 .placement{background:#edf0f3;color:#56616d}.place-3 .placement{background:#f4e6d7;color:#865529}.table-wrap{max-width:100%}table .shield{width:24px;height:29px;filter:none}#account{max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#all-menu{color:#5e5034}.status-open{color:#826021}.profile-head h1{overflow-wrap:anywhere}@media(max-width:540px){header{padding:10px 12px}.header-right{gap:5px}.brand{gap:8px;font-size:20px}.brand img{width:38px;height:38px}.brand small{letter-spacing:0}.header-right #account{max-width:72px}.hero h1{font-size:24px}.hero{padding:23px 20px}.row{padding:16px}.podium{gap:6px}.podium-card{padding:15px 5px}.podium-card strong{font-size:12px}.podium-card .shield{width:50px;height:62px}.podium-card span,.podium-card small{font-size:10px}.profile-head .shield{width:70px;height:84px}.profile-head h1{font-size:23px}.profile-head .profile-avatar{display:none}table{font-size:11px}td,th{padding:9px 6px}#splash h1{font-size:39px}.splash-slogan{font-size:17px}.body{font-size:16px}.support-menu .button{min-height:48px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

.ranking-table tbody tr:nth-child(-n+3){display:none}

.header-search{font-size:22px;padding:3px 11px;line-height:36px}@media(max-width:540px){.brand{font-size:18px}.brand img{width:34px;height:34px}.header-search{padding:2px 9px}#all-menu{padding:5px 10px}.header-right{gap:4px}}
/* v4.5 crest growth: same canvas, deliberately different silhouettes. */
.rank-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:28px 0}.rank-tile{display:flex;flex-direction:column;align-items:center;text-align:center;background:#fff;border:1px solid #e8e5df;border-radius:16px;padding:14px 12px 22px;min-width:0;box-shadow:0 5px 20px #503d0d05}.rank-tile:hover{border-color:#bda169;background:#fffefa}.rank-tile.current-crest{border:2px solid #ae822b}.crest-stage{height:190px;width:100%;display:flex;align-items:center;justify-content:center}.crest-stage .shield{width:168px;height:188px;max-width:100%;filter:none}.rank-tile h2{font-size:18px;margin:4px 0}.rank-tile p{font-size:12px;color:#6e6555;margin:0 0 7px}.rank-tile small{font-size:11px;min-height:35px;color:#737373}.crest-index{font-size:10px;letter-spacing:2px;color:#a18b63}.next-rank{display:flex;align-items:center;justify-content:space-between;gap:12px}.next-rank h2{font-size:18px}.next-rank p{font-size:13px}.next-crest{display:flex;flex-direction:column;align-items:center;flex-shrink:0}.next-crest .shield{width:108px;height:122px;filter:none}.profile-head .shield{width:124px;height:140px;filter:none}.podium-card .shield{width:108px;height:122px;filter:none}.comment .shield{width:30px;height:34px;filter:none}.comment .crest-detail{animation:none!important}.crest-expanded{height:340px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse,#fffdf7,#fff 70%);margin:15px 0}.crest-expanded .shield{width:300px;height:336px;filter:none}#crest-detail{width:min(540px,95vw)}.crest-close{float:right}.crest-size-samples{display:flex;justify-content:center;align-items:flex-end;gap:35px;margin:16px 0 24px}.crest-size-samples>span{display:flex;align-items:center;flex-direction:column;font-size:12px;color:#737373;gap:8px}.crest-size-samples .shield{width:105px;height:118px;filter:none}.crest-size-samples .crest-compact{width:30px;height:34px}.promotion-art{position:relative;width:min(300px,70vw);height:320px;margin:auto;display:flex;align-items:center;justify-content:center}.promotion-art .shield{width:280px;height:314px;filter:none}#rank-up.royal-celebration{border:2px solid #c09a40;background:radial-gradient(ellipse at 50% 35%,#fff1b8,#fffdf7 56%,#fff)}#rank-up.emperor-first{box-shadow:0 0 0 6px #d1af5e25,0 0 100px #c89b3c50}#rank-up{width:min(540px,95vw)}#rank-up .promotion-art{animation:crest-arrival .65s ease-out both}#rank-up.royal-celebration .promotion-art{animation:royal-arrival 1s ease-out both}.promotion-glint{position:absolute;color:#bd8b29;font-size:27px;pointer-events:none;animation:crest-glint 2.3s ease-in-out 2}.glint-one{left:3%;top:24%}.glint-two{right:1%;top:48%;animation-delay:.5s}.profile-head .prisoner-shield{width:90px;height:102px}.tier-0,.tier-1{filter:none!important}@keyframes crest-arrival{from{transform:translateY(12px) scale(.88);opacity:0}to{transform:none;opacity:1}}@keyframes royal-arrival{from{transform:scale(.65);opacity:0}60%{transform:scale(1.05);opacity:1}to{transform:scale(1);opacity:1}}@keyframes crest-glint{0%,100%{opacity:.2;transform:scale(.75)}50%{opacity:1;transform:scale(1.1)}}@media(max-width:540px){.rank-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.crest-stage{height:158px}.crest-stage .shield{width:142px;height:159px}.rank-tile{padding:10px 7px 15px}.rank-tile small{font-size:10px}.rank-tile h2{font-size:17px}.podium-card .shield{width:84px;height:95px}.profile-head{gap:10px;flex-wrap:nowrap}.profile-head .shield{width:105px;height:118px;flex-shrink:0}.profile-head h1{font-size:21px}.next-crest .shield{width:88px;height:100px}.next-rank{gap:8px}.next-rank h2{font-size:16px}.crest-expanded{height:290px}.crest-expanded .shield{width:255px;height:285px}.promotion-art{height:285px}.promotion-art .shield{width:245px;height:275px}#rank-up h2{font-size:28px}}
@media(prefers-reduced-motion:reduce){.promotion-art,.promotion-glint{animation:none!important}}

.row-author{display:inline-flex;align-items:center;gap:4px}.row-author .shield{width:24px;height:27px;filter:none}.row .meta{align-items:center}.rank-guide-link{font-size:12px;color:#805b1c}

/* Reference-based 3D raster crests, transparent alpha retained. */
.raster-crest{object-fit:contain;object-position:center;filter:none!important}.profile-head .raster-crest{width:124px;height:140px}.comment .raster-crest{width:30px;height:34px}.crest-stage .raster-crest{width:168px;height:188px}.promotion-art .raster-crest{width:280px;height:314px}.crest-expanded .raster-crest{width:300px;height:336px}@media(max-width:540px){.crest-stage .raster-crest{width:142px;height:159px}.profile-head .raster-crest{width:105px;height:118px}.promotion-art .raster-crest{width:245px;height:275px}.crest-expanded .raster-crest{width:255px;height:285px}}

.crest-stage .raster-crest.tier-11,.crest-expanded .raster-crest.tier-11,.promotion-art .raster-crest.tier-11,.profile-head .raster-crest.tier-11,.podium-card .raster-crest.tier-11{transform:scale(1.15)}

.support-receipt{display:block;overflow-wrap:anywhere;color:var(--muted);font-size:12px;margin:8px 0}#support-refresh{margin-bottom:10px}#admin-support .primary{white-space:normal}#support-pending-count{color:var(--gold-ink)}

/* Restore the original dark courtroom splash only. */
#splash{background:#080807;padding:18px 16px max(20px,env(safe-area-inset-bottom));gap:16px;justify-content:center}#splash .classic-splash-art{display:flex;align-items:center;justify-content:center;min-height:0;flex:0 1 auto;width:100%;max-width:520px}#splash .classic-splash-art img{display:block;position:static;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 150px);object-fit:contain;border-radius:0;box-shadow:none}#splash button{flex:none;position:static;margin:0;min-height:48px;max-width:100%;background:#c89b3c;color:#3a2910}@media(max-height:500px){#splash{flex-direction:row}#splash .classic-splash-art{width:auto}#splash .classic-splash-art img{max-height:calc(100dvh - 48px)}#splash button{min-width:180px}}
/* v4.9 accessible donut statistics, independent of level progress bars. */
.donut-figure{margin:20px 0 24px;display:grid;grid-template-columns:minmax(160px,210px) minmax(0,1fr);gap:24px;align-items:center}.donut-stage{position:relative;width:100%;max-width:220px;aspect-ratio:1;margin:auto}.donut-svg{display:block;width:100%;height:auto;overflow:visible}.donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;line-height:1.4}.donut-center strong{font-size:32px;font-variant-numeric:tabular-nums;color:#252525}.donut-center span{font-size:12px;color:#737373}.donut-legend{padding:0;margin:0;list-style:none;display:grid;gap:12px}.donut-legend li{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;font-size:13px;font-variant-numeric:tabular-nums}.donut-legend li>span:last-child{white-space:nowrap}.donut-key{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}.donut-key i{display:inline-block;width:12px;height:12px;min-width:12px;border-radius:4px;margin-top:5px;border:1px solid #25252520}.statistics-tabs{display:flex;gap:8px;margin:16px 0 22px}.statistics-tabs button{flex:1;min-height:46px}.statistics-tabs [aria-pressed=true]{background:#FFF3D8;color:#705019;border-color:#A87924;font-weight:700}#stat-group{min-height:48px}#results .donut-svg{animation:donut-arrive .18s ease-out}#results h3{margin-top:20px}@keyframes donut-arrive{from{opacity:.5}to{opacity:1}}@media(max-width:540px){.donut-figure{grid-template-columns:minmax(0,1fr);gap:14px}.donut-stage{width:min(210px,70vw)}.donut-center strong{font-size:30px}.donut-legend{gap:11px}.donut-legend li{font-size:13px}.donut-figure figcaption{width:100%}}@media(prefers-reduced-motion:reduce){#results .donut-svg{animation:none}}
.booster-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.booster-comparison .panel{min-width:0;margin:0}.booster-comparison h2{font-size:1.1rem}.booster-comparison button{white-space:normal;width:100%}@media(max-width:440px){.booster-comparison{gap:8px}.booster-comparison .panel{padding:12px}.booster-comparison h2{font-size:1rem}.booster-comparison .shop-price{font-size:1.2rem}}

/* Official UI/UX v1.1 review. Earlier styles/assets remain recoverable. */
:root{--bg:#FAF7F0;--text:#242424;--gold:#D5A63E;--gold-ink:#65451D;--brown:#65451D;--red:#F05252;--blue:#4389F5;--surface:#fff;--line:#E9E2D6;--selection:#F7EEDB;--muted:#6D695F;--shadow:0 5px 22px #65451D08;--card-radius:18px;--card-gap:14px;color-scheme:light}
body{background:var(--bg);color:var(--text);font-size:15px;line-height:1.75}h1{font-size:26px}h2{font-size:21px}h3{font-size:17px}p{overflow-wrap:anywhere}.muted,.row .meta,.subjective{color:var(--muted)}
button,.button{min-width:44px;min-height:44px;border-radius:12px;border-color:var(--line);background:#fff;color:var(--text);touch-action:manipulation}button.primary,.primary{background:var(--gold);color:#242424;border-color:#B78B30}.plain{background:transparent;border-color:transparent;color:var(--brown)}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--brown);outline-offset:4px}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--brown);outline-offset:2px}input,textarea,select{border-radius:12px;min-height:48px}input[type=radio],input[type=checkbox]{min-height:0}.error{color:#AE2929}
.ui-icon{width:24px;height:24px;flex:0 0 auto;vertical-align:middle}header{height:auto;min-height:84px;background:#fffdf9;padding-top:14px;padding-bottom:14px}.brand{color:var(--text);gap:10px}.brand small{color:var(--brown);letter-spacing:.2px}.brand img{border-radius:13px}.header-right{gap:8px}.header-search,#all-menu{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:9px;color:var(--brown)}.header-right .private{display:none}#account{max-width:360px;overflow:visible;text-overflow:clip;white-space:normal;font-size:14px;padding:8px 12px;text-align:left}#account .honor-title{font-size:11px}#account .honor-identity{justify-content:flex-start}.layout{padding-bottom:calc(114px + env(safe-area-inset-bottom));gap:32px}.demo-mode #demo-banner{background:#F2E8D5;color:var(--brown);border-bottom:1px solid #E4D5B9;font-weight:600}.demo-tools{background:#fff;border:0;padding:0;display:grid;gap:14px}.demo-tools button{font-size:15px;padding:10px 14px}#demo-totals{display:block;overflow-wrap:anywhere}#dev-tools-dialog{width:min(520px,94vw)}#dev-tools-close{float:right}aside a[href="#guide"]{display:none}
.hero{isolation:isolate;overflow:hidden;min-height:260px;padding:28px;border:1px solid #4A361A;background:#15120D;border-radius:20px;box-shadow:0 10px 26px #5135141a;margin-bottom:18px}.hero-gavel{position:absolute;inset:0 0 0 auto;width:58%;height:100%;object-fit:cover;object-position:50% 22%;z-index:-2;pointer-events:none}.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#15120D 16%,#15120DF2 36%,#15120D44 66%,transparent);z-index:-1;pointer-events:none}.hero-copy{width:65%;position:relative}.hero h1{font-size:clamp(34px,5vw,48px);line-height:1.25;color:#FAF7F0;letter-spacing:-2px;margin:14px 0}.hero h1 span{color:var(--gold)}.hero p{font-size:14px;color:#F0E4C9;line-height:1.7}.hero .eyebrow{font-size:12px;color:var(--gold)!important;letter-spacing:0;font-weight:600}.hero .hero-tagline{font-size:18px;font-weight:700;margin-bottom:6px;color:#FAF7F0}.hero-cta{display:inline-flex;min-height:44px;align-items:center;margin-top:14px;padding:0 12px;border:1px solid #B99044;border-radius:10px;color:#FAF7F0;font-size:13px;background:#17120CC0}.hero-cta:focus-visible{outline-color:#FAF7F0}
.chips{gap:10px;padding:3px 0 10px;margin-bottom:18px;scroll-padding:12px}.chip{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;min-height:46px;border-radius:24px;color:var(--text);font-size:14px;background:#fff;box-shadow:0 3px 12px #65451D05}.chip .ui-icon{width:20px;height:20px;color:var(--brown)}.chip.active{background:var(--brown);border-color:var(--brown);color:#FAF7F0}.chip.active .ui-icon{color:#F6D28B}.section{margin-bottom:28px}.section-head{gap:12px;margin-bottom:12px}.section-head h2{font-size:22px;letter-spacing:-.5px}.section-head>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:66px;color:var(--brown);font-size:13px}.section-mark{color:var(--gold);font-size:15px;vertical-align:middle}.list{display:grid;gap:var(--card-gap)}.row.case-card{display:block;margin:0;padding:16px;border-radius:var(--card-radius);background:#fff;border-color:var(--line)!important;box-shadow:var(--shadow)}.row.case-card:hover{background:#fffdf9}.case-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.case-card-head .tag{background:#FAF6EE;color:var(--brown);border:1px solid #E6DAC5;font-size:12px;border-radius:7px;padding:2px 8px}.case-state{font-size:12px;color:var(--muted)}.case-card-main{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px}.case-symbol{display:flex;align-items:center;justify-content:center;flex:0 0 52px;width:52px;height:62px;background:#F6F2E9;border:1px solid #E9E1D2;border-radius:13px;color:#8D7956}.case-symbol .ui-icon{width:29px;height:29px}.case-copy{min-width:0;flex:1}.row.case-card .title{font-size:18px;font-weight:750;line-height:1.55;margin:0 0 8px;color:var(--text);overflow:visible;white-space:normal;overflow-wrap:anywhere}.row-author{max-width:100%;min-width:0;font-size:13px;align-items:center;gap:5px}.row-author .shield{flex:0 0 27px;width:27px;height:31px}.row.case-card .meta{border-top:1px solid #F1EDE5;padding-top:11px;gap:8px 14px;display:flex;flex-wrap:wrap;align-items:center;font-size:12px}.case-card .meta>span{display:inline-flex;align-items:center;gap:5px}.case-card .meta .ui-icon{width:15px;height:15px}.case-card time{font-size:11px;color:var(--muted);margin-left:auto}
.panel{border-radius:var(--card-radius);margin-bottom:var(--card-gap);box-shadow:var(--shadow)}.body{font-size:16px;line-height:1.95}.note{background:#FAF2E2;color:var(--brown);border-left-color:var(--gold);border-radius:0 12px 12px 0}.choice{border-radius:14px;border-color:#DED8CD;background:#fff;min-height:56px}.choice:has(input:checked){background:#F7EEDB;border-color:var(--brown);box-shadow:inset 3px 0 var(--gold)}.choice input{accent-color:var(--brown)}.choice:has(input:disabled){opacity:1}.statistics-tabs [aria-pressed=true]{background:#F7EEDB;color:var(--brown);border-color:#AA8039}.donut-legend{color:var(--text)}.donut-center strong{color:var(--text)}.donut-key i{border-color:#24242435}.comment{padding:18px 0}.comment strong{display:inline-block;max-width:calc(100% - 46px);vertical-align:middle}.comment.reply{margin-left:14px;padding:14px;background:#FAF8F2}.comment .muted{display:inline-block}.comment .plain{min-height:44px}.profile-head{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px 20px;align-items:center}.profile-head>.shield{grid-column:1;grid-row:1;width:108px;height:122px}.profile-head .profile-avatar{grid-column:1;grid-row:2;justify-self:center;display:flex;width:32px;height:32px;font-size:14px;background:#F4EFE4;color:var(--brown)}.profile-head>div:last-child{grid-column:2;grid-row:1/span 2;min-width:0}.profile-head h1{font-size:24px;line-height:1.55;overflow:visible}.profile-head p{margin:10px 0 0}.profile-head .tier-11{transform:scale(1.06)}.profile-stats{gap:12px;justify-content:space-around}.stat{min-width:0}.profile-stats .stat strong{font-size:24px}.honor-title-list{margin:18px 0}.honor-title-list span{background:#FAF8F3}.result-label{gap:12px;flex-wrap:wrap}.admin-user{flex-wrap:wrap}.admin-user>div{min-width:0;max-width:100%}.ranking-table{font-size:14px}.ranking-table td:nth-child(2){min-width:210px}.podium-card{background:#fff!important;border-color:var(--line);box-shadow:var(--shadow)}.podium-card strong{display:block;min-width:0;max-width:100%;font-size:16px}.podium-card .placement{background:#F3E5BD;color:var(--brown);border:1px solid #E4C47D}.place-2 .placement{background:#F0F2F4;border-color:#D3D9DE;color:#4B565F}.place-3 .placement{background:#F3E8DF;border-color:#DAC2AA;color:#704B2B}
nav{height:calc(80px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#FFFFFFF5;border-top:1px solid var(--line);box-shadow:0 -5px 24px #65451D08;gap:26px}nav a{gap:5px;color:#79776F;min-height:64px;font-size:14px;padding:7px 0}nav .ui-icon{width:25px;height:25px}nav span{font-size:12px;font-weight:600}nav a.active{color:var(--brown)}nav a[data-nav=write]::before{display:none}nav a[data-nav=write] .ui-icon{width:46px;height:46px;padding:11px;border-radius:50%;background:var(--gold);color:#4B3515;box-shadow:0 2px 8px #65451D25;stroke-width:2.5}nav a[data-nav=write]{padding-top:0;transform:translateY(-6px);gap:2px;color:var(--brown)}#toast{bottom:calc(98px + env(safe-area-inset-bottom));max-width:calc(100vw - 28px)}.support-menu .button{display:flex;align-items:center;min-height:48px}.booster-comparison .panel{border-radius:16px}#main{scroll-margin-bottom:calc(100px + env(safe-area-inset-bottom))}
@media(max-width:900px){.layout{max-width:780px;padding-top:18px}.hero{min-height:240px}}
@media(max-width:540px){header{padding:12px;display:grid;grid-template-columns:minmax(0,1fr) 44px 44px auto;gap:7px;min-height:72px;align-items:center}.header-right{display:contents}.header-right #notice-button,.header-right .private{display:none}.brand{font-size:21px;gap:8px;min-width:0}.brand img{width:39px;height:39px}.brand small{font-size:9px}.header-search,#all-menu{padding:9px;min-height:44px}#account{max-width:none;font-size:12px;padding:8px;min-width:54px}.signed-in header{grid-template-columns:minmax(0,1fr) 44px 44px}.signed-in #account{grid-column:1/-1;justify-self:stretch;font-size:14px;padding:8px 11px;border-color:#E9E2D6;background:#fff;min-height:44px}.signed-in #account .honor-title{font-size:11px}.layout{padding:16px 12px calc(112px + env(safe-area-inset-bottom))}.hero{padding:20px;min-height:224px;border-radius:18px}.hero-copy{width:68%}.hero h1{font-size:36px;margin:10px 0}.hero p{font-size:12px}.hero .eyebrow{font-size:10px;max-width:195px}.hero .hero-tagline{font-size:16px}.hero-cta{font-size:12px;padding:0 9px;margin-top:10px}.hero-gavel{width:58%}.chips{gap:8px}.chip{padding:9px 12px;font-size:13px}.section-head h2{font-size:22px}.case-symbol{flex-basis:43px;width:43px;height:53px}.case-symbol .ui-icon{width:25px;height:25px}.case-card-main{gap:10px}.row.case-card{padding:15px}.row.case-card .title{font-size:17px}.row-author{font-size:12px}.case-card time{margin-left:0}.case-card .meta{font-size:11px}.panel{padding:17px}.profile-head{grid-template-columns:88px minmax(0,1fr);gap:8px 14px;flex-wrap:wrap}.profile-head>.shield{width:86px;height:99px}.profile-head h1{font-size:22px}.profile-head .profile-avatar{display:flex}.comment p{font-size:15px}.podium{grid-template-columns:minmax(0,1fr);gap:12px}.podium-card{display:grid;grid-template-columns:42px 70px minmax(0,1fr);gap:6px 12px;padding:16px;text-align:left;align-items:center}.podium-card .placement{grid-column:1;grid-row:1/span 3;justify-self:center;padding:5px 8px;white-space:nowrap}.podium-card>.shield{grid-column:2;grid-row:1/span 3;width:70px;height:80px}.podium-card>strong{grid-column:3;grid-row:1;font-size:15px}.podium-card>span:not(.placement){grid-column:3;grid-row:2;font-size:12px}.podium-card>small{grid-column:3;grid-row:3;font-size:12px}.podium-card .tier-11{transform:scale(1.05)}.ranking-table .honor-identity{min-width:0}.rank-gallery{gap:12px}.booster-comparison{grid-template-columns:minmax(0,1fr)}nav{gap:0;justify-content:space-around}nav a{width:20%}h1{font-size:24px}h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}.hero,.case-card{animation:none!important}}
.header-right #account{max-width:360px;overflow:visible;text-overflow:clip;white-space:normal}@media(max-width:540px){.header-right #account{max-width:none}.signed-in .header-right #account{width:100%;max-width:100%}}
.chip{flex:0 0 auto}.hero-gavel{height:170%;top:-8%;bottom:auto}
.row.case-card .title{font-size:20px;line-height:1.5}
.profile-head .tier-11,.podium-card .tier-11{transform:scale(1.15)}
/* Official home reference, 2026-10-22. Ratios follow the supplied artwork. */
.hero{aspect-ratio:821/337;min-height:0!important;padding:5.5% 6%;margin-bottom:10px;border-radius:16px;background:#19130c;display:flex;align-items:center}.hero-gavel{inset:0;width:100%;height:100%;object-fit:cover;object-position:center}.hero::after{background:linear-gradient(90deg,#100d09a0,transparent 73%)}.hero-copy{width:64%}.hero .eyebrow{font-size:clamp(10px,1.7vw,16px);line-height:1.5;margin:0;color:#f1d58b!important}.hero h1{font-family:Georgia,'Batang',serif;font-size:clamp(29px,6vw,64px);letter-spacing:-2px;line-height:1.1;margin:10px 0}.hero h1 span{color:#e9b84c}.hero .hero-tagline{font-size:clamp(10px,1.5vw,15px);font-weight:500;line-height:1.5;margin:0;white-space:normal}.hero .hero-cta{display:none}
#home-demo-slot:empty{display:none}#home-demo-slot .demo-tools{display:block;background:linear-gradient(110deg,#fffaf0,#f7efde);border:1px solid #e6d4ad;border-radius:16px;padding:10px;margin:0 0 16px;font-size:12px;box-shadow:0 4px 16px #65451d08}.demo-top-row,.demo-bottom-row{display:flex;gap:8px;align-items:center;min-width:0}.demo-top-row{flex-wrap:wrap}.demo-top-row strong{color:#65451d;font-size:12px;white-space:nowrap}.demo-top-row #demo-totals{font-size:11px;flex:1;line-height:1.8}.demo-top-row #demo-switch{font-size:11px;min-height:44px;margin-left:auto;padding:7px 10px;background:white;border:1px solid #e8dec8;border-radius:16px}.demo-bottom-row{justify-content:space-between;margin-top:6px}.demo-bottom-row #demo-guide{font-size:12px;background:#fff;border-radius:13px;padding:6px 10px}.demo-bottom-row>span{font-size:11px;color:#65451d;text-align:right}
.chips{gap:8px;margin:4px 0 18px;padding:4px 0 10px}.chip{border-color:#ebe5da;padding:9px 13px;box-shadow:0 5px 12px #65451d08}.chip.active{background:linear-gradient(120deg,#996706,#73500e);border-color:#bd8c20}.chip[data-cat="연애·부부"] .ui-icon{color:#ed565d;fill:#ed565d}.chip[data-cat="교통·운전"] .ui-icon{color:#1c6562}.chip[data-cat="가족"] .ui-icon{color:#d88018}.chip[data-cat="직장"] .ui-icon{color:#383c40}.chip[data-cat="친구·인간관계"] .ui-icon{color:#237fc9}
.row.case-card{display:grid;grid-template-columns:26% minmax(0,1fr);gap:12px;padding:12px;border-radius:18px;align-items:stretch;background:linear-gradient(120deg,#fff,#fffdf8);box-shadow:0 5px 18px #65451d09}.reference-thumbnail{position:relative;min-width:0;min-height:110px;border-radius:12px;overflow:hidden;background:#eee9df;align-self:stretch}.reference-thumbnail>img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.reference-thumbnail .tag{position:absolute;top:7px;left:6px;max-width:calc(100% - 12px);font-size:10px;border-radius:7px;background:#fff5df;color:#65451d;padding:3px 5px;white-space:normal;z-index:1}.category-art{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;height:100%;min-height:110px;background:linear-gradient(145deg,#f5f0e4,#e2ddd1);color:#827152}.category-art .ui-icon{width:38px;height:38px}.category-art small{font-size:9px;color:#70695c}.reference-card-copy{min-width:0;display:flex;flex-direction:column;justify-content:center}.row.case-card .title{font-size:17px;line-height:1.45;margin:0 0 6px;font-weight:750}.row-author{font-size:11px;margin-bottom:5px}.row-author .shield{width:22px;height:25px;flex-basis:22px}.feed-result-private{padding:6px 8px;border-radius:9px;background:#f1eee8;color:#6b6253;font-size:10px;line-height:1.5;margin:3px 0}.row.case-card .meta{border:0;padding-top:4px;gap:4px 10px;font-size:10px}.case-card .meta .ui-icon{width:13px;height:13px}.case-card time{font-size:9px;margin-left:0}.case-state{font-size:10px}.section-head h2{font-size:23px}.section-mark{font-size:24px}
nav{border-radius:28px 28px 0 0}nav a[data-nav=write] .ui-icon{width:54px;height:54px;padding:12px;background:linear-gradient(135deg,#ecc76d,#c28d26);color:white;outline:5px solid #fff;box-shadow:0 5px 14px #65451d20}nav a[data-nav=write]{transform:translateY(-10px)}nav a.active .ui-icon{fill:#b17c19;stroke:#906210}nav a[data-nav=write] .ui-icon{fill:none;stroke:white}
@media(min-width:541px){.row.case-card{gap:20px;padding:18px}.row.case-card .title{font-size:22px}.reference-thumbnail{min-height:145px}.row-author{font-size:13px}.feed-result-private{font-size:12px}.demo-top-row strong{font-size:15px}.demo-top-row #demo-totals,.demo-bottom-row>span{font-size:13px}}
@media(max-width:360px){.row.case-card{gap:9px;padding:10px}.row.case-card .title{font-size:15px}.hero h1{font-size:29px}.hero .eyebrow{font-size:9px}.hero .hero-tagline{font-size:9px}.demo-top-row #demo-totals{flex-basis:50%}.demo-top-row #demo-switch{margin-left:0}.demo-bottom-row>span{font-size:10px}}

/* Authorized home results: server-provided counts only. */
.feed-result{margin:5px 0}.feed-result-bar{display:flex;overflow:hidden;height:20px;border-radius:9px;background:#eee9df}.feed-segment{min-width:0}.feed-segment.choice-0{background:#F05252}.feed-segment.choice-1{background:#4389F5}.feed-segment.choice-2{background:#65451D}.feed-result-labels{display:flex;flex-wrap:wrap;gap:3px 9px;margin-top:4px;font-size:10px;line-height:1.5}.feed-result-labels>span{overflow-wrap:anywhere}.feed-result-labels .choice-0{color:#a42626}.feed-result-labels .choice-1{color:#2256a8}.feed-result-labels .choice-2{color:#65451D}.feed-result-labels small{font-size:9px;color:#6b6253}@media(min-width:541px){.feed-result-bar{height:25px}.feed-result-labels{font-size:12px}}

/* UI/UX v2.2: home prioritizes cases; categories stay in case browsing. */
body.home-page>header{display:none}body.home-page .layout>aside{display:none}body.home-page .layout{display:block;max-width:820px;padding-top:12px}body.home-page .hero{margin-bottom:20px}body.home-page #main>.hero+.section{margin-top:0}body.home-page #main>.chips,body.home-page #home-demo-slot{display:none}
.row.case-card .case-category{grid-column:1/-1;line-height:1;margin-bottom:2px}.case-category .tag{display:inline-block;background:#fff5df;color:#65451D;border:1px solid #e6dac5;border-radius:7px;padding:5px 8px;font-size:11px}.row.case-card.text-only{grid-template-columns:minmax(0,1fr);gap:8px;padding:16px}.row.case-card.has-thumbnail{grid-template-columns:26% minmax(0,1fr);gap:10px 12px}.row.case-card.has-thumbnail .reference-thumbnail{grid-column:1;grid-row:2}.row.case-card.has-thumbnail .reference-card-copy{grid-column:2;grid-row:2}.row.case-card.text-only .reference-card-copy{grid-column:1}.row.case-card.text-only .title{font-size:19px}.row.case-card.text-only .row-author{font-size:12px}.home-page .section-head{margin-bottom:12px}@media(min-width:541px){.row.case-card.text-only{padding:20px}.row.case-card.text-only .title{font-size:22px}}

.demo-mode.home-page .layout{padding-top:47px}
.ballot-modes{display:flex;flex-wrap:wrap;gap:12px;border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:16px}.ballot-modes label{display:flex;align-items:center;gap:8px;min-height:44px;margin:0}.ballot-modes input{width:20px;height:20px}#ballot-preview{margin-top:16px;overflow-wrap:anywhere}#ai-status{overflow-wrap:anywhere}
.representative-illustration{margin:14px 0 20px}.representative-illustration img{display:block;width:100%;max-height:420px;aspect-ratio:3/2;object-fit:cover;border-radius:16px}.representative-illustration figcaption{font-size:12px;color:#6b6253;margin-top:7px;line-height:1.6}.illustration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.illustration-grid button{display:flex;flex-direction:column;gap:7px;min-width:0;padding:6px;background:#fff;border:1px solid #e6dac5;white-space:normal;text-align:left;align-items:stretch;min-height:44px}.illustration-grid button[aria-pressed=true]{border:2px solid #8f671b;background:#fff3d8}.illustration-grid img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:7px}.illustration-grid span{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.image-selection-status{font-size:13px;line-height:1.7}.illustration-label{position:absolute;bottom:6px;left:6px;right:6px;background:#fff9ebed;color:#65451d;font-size:9px;padding:3px 4px;border-radius:5px;text-align:center}.library-thumb{width:240px;max-width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:12px}#illustration-all[hidden]{display:none}@media(max-width:360px){.illustration-grid{gap:6px}.illustration-grid span{font-size:11px}.illustration-grid button{padding:4px}}
.reference-thumbnail:has(.illustration-label){aspect-ratio:3/2;min-height:0;align-self:start}
/* Large illustration-first cards: retain the 3:2 scene without portrait cropping. */
.row.case-card.has-thumbnail:has(.illustration-label){grid-template-columns:minmax(0,1fr);gap:12px;padding:14px}
.row.case-card.has-thumbnail:has(.illustration-label) .case-category{grid-column:1;grid-row:1;margin:0}
.row.case-card.has-thumbnail:has(.illustration-label) .reference-thumbnail{grid-column:1;grid-row:2;width:100%;aspect-ratio:3/2;min-height:0;align-self:start;border-radius:14px}
.row.case-card.has-thumbnail:has(.illustration-label) .reference-card-copy{grid-column:1;grid-row:3;min-width:0}
.row.case-card.has-thumbnail:has(.illustration-label) .reference-thumbnail img{object-fit:contain;background:#eee9df}
.row.case-card.has-thumbnail:has(.illustration-label) .illustration-label{left:10px;right:auto;bottom:10px;padding:4px 8px;font-size:11px;background:#fff9ebf0}
.row.case-card.has-thumbnail:has(.illustration-label) .title{font-size:20px;line-height:1.5;margin-top:2px}
.row.case-card.has-thumbnail:has(.illustration-label) .row-author{font-size:12px;margin-bottom:7px}
.row.case-card.has-thumbnail:has(.illustration-label) .meta{font-size:12px;gap:6px 14px}
@media(max-width:360px){.row.case-card.has-thumbnail:has(.illustration-label){padding:12px;gap:10px}.row.case-card.has-thumbnail:has(.illustration-label) .title{font-size:18px}}
/* Reference card composition: substantial portrait thumbnail on the left, information on the right. */
.row.case-card.has-thumbnail:has(.illustration-label){grid-template-columns:28% minmax(0,1fr);gap:12px;padding:12px;align-items:stretch}
.row.case-card.has-thumbnail:has(.illustration-label) .case-category{grid-column:1;grid-row:1;align-self:start;justify-self:start;z-index:2;margin:7px 0 0 6px;max-width:calc(100% - 12px)}
.row.case-card.has-thumbnail:has(.illustration-label) .case-category .tag{font-size:10px;line-height:1.4;padding:3px 6px;background:#fff3d8f5;white-space:normal}
.row.case-card.has-thumbnail:has(.illustration-label) .reference-thumbnail{grid-column:1;grid-row:1;width:100%;height:100%;aspect-ratio:auto;min-height:112px;align-self:stretch;border-radius:11px}
.row.case-card.has-thumbnail:has(.illustration-label) .reference-card-copy{grid-column:2;grid-row:1;min-width:0;justify-content:center}
.row.case-card.has-thumbnail:has(.illustration-label) .reference-thumbnail img{object-fit:cover;object-position:50% 45%}
.row.case-card.has-thumbnail:has(.illustration-label) .illustration-label{left:5px;right:5px;bottom:6px;padding:3px 2px;font-size:9px;line-height:1.4;text-align:center}
.row.case-card.has-thumbnail:has(.illustration-label) .title{font-size:16px;line-height:1.4;margin:0 0 5px}
.row.case-card.has-thumbnail:has(.illustration-label) .row-author{font-size:11px;margin-bottom:4px;gap:4px}
.row.case-card.has-thumbnail:has(.illustration-label) .row-author .shield{width:22px;height:25px;flex-basis:22px}
.row.case-card.has-thumbnail:has(.illustration-label) .meta{font-size:10px;gap:4px 10px}
@media(min-width:541px){.row.case-card.has-thumbnail:has(.illustration-label){padding:18px;gap:20px}.row.case-card.has-thumbnail:has(.illustration-label) .title{font-size:22px}.row.case-card.has-thumbnail:has(.illustration-label) .reference-thumbnail{min-height:150px}.row.case-card.has-thumbnail:has(.illustration-label) .row-author{font-size:13px}.row.case-card.has-thumbnail:has(.illustration-label) .meta{font-size:12px}}
@media(max-width:360px){.row.case-card.has-thumbnail:has(.illustration-label){padding:10px;gap:9px}.row.case-card.has-thumbnail:has(.illustration-label) .title{font-size:15px}.row.case-card.has-thumbnail:has(.illustration-label) .meta{font-size:10px}}

.my-account-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.my-account-heading #logout{min-height:44px;min-width:88px;flex-shrink:0;border:1px solid #E8E5DF;background:#fff;color:#65451D;border-radius:12px;padding:8px 14px}

#reply-cancel[hidden]{display:none}


/* v7.6 — the modal top layer keeps the underlying page and form state intact. */
html.rank-promotion-open{overflow:hidden}
.rank-promotion-screen[open]{position:fixed;inset:0;margin:0;padding:0;border:0;border-radius:0;width:100%;height:100%;max-width:none;max-height:none;overflow:auto;display:grid;place-items:center;background:#0c0b10;color:#fff0ce;animation:rank-dim .4s ease-out both}
.rank-promotion-screen::backdrop{background:#0c0b10;animation:rank-dim .4s ease-out both}
.rank-promotion-screen.imperial,.rank-promotion-screen.imperial::backdrop{animation-duration:.8s}
.rank-promotion-center{position:relative;text-align:center;padding:64px 18px 36px;isolation:isolate}
.rank-promotion-crest{position:relative;width:clamp(145px,40vw,260px);height:clamp(145px,40vw,260px);margin:auto;display:grid;place-items:center;animation:rank-arrive .8s .4s both}
.rank-promotion-screen.imperial .rank-promotion-crest{width:clamp(165px,47vw,300px);height:clamp(165px,47vw,300px);animation-duration:1.2s;animation-delay:2s}
.rank-promotion-crest :is(img,svg){width:100%!important;height:100%!important;max-width:100%;object-fit:contain}
.rank-promotion-crest::after{content:'';position:absolute;inset:10%;pointer-events:none;background:linear-gradient(115deg,transparent 35%,#ffe7aa70 50%,transparent 65%);mix-blend-mode:screen;animation:rank-shine 1s 1.2s both}
.imperial .rank-promotion-crest::after{animation-delay:3.2s}
.rank-promotion-label{animation:rank-dim .35s 1.2s both}
.imperial .rank-promotion-label{animation-delay:3.2s}
.rank-promotion-label p{color:#edce87;margin:.6rem 0}
.rank-promotion-label h2{font-size:clamp(2rem,8vw,4rem);color:#fff0ce;margin:0 0 1rem}
.rank-promotion-skip{position:absolute;z-index:1;right:max(16px,env(safe-area-inset-right));top:max(16px,env(safe-area-inset-top))}
.rank-promotion-confirm[hidden]{display:none}
.rank-promotion-particles{position:absolute;inset:0;z-index:-1;pointer-events:none}
.rank-promotion-particles i{position:absolute;left:50%;top:42%;width:5px;height:5px;border-radius:50%;background:#ffce62;animation:rank-burst 1.6s calc(1.2s + var(--delay)) both}
.imperial .rank-promotion-particles i{animation:rank-gather 1.2s calc(.8s + var(--delay)) both,rank-burst 2.5s calc(2.2s + var(--delay)) both;animation-composition:replace,add}
@keyframes rank-dim{from{opacity:0}to{opacity:1}}
@keyframes rank-arrive{from{opacity:0;transform:scale(.7);filter:drop-shadow(0 0 25px #ffc84d)}70%{transform:scale(1.07)}to{opacity:1;transform:scale(1)}}
@keyframes rank-shine{0%{opacity:0;transform:translateX(-30%)}45%{opacity:.7}100%{opacity:0;transform:translateX(30%)}}
@keyframes rank-burst{0%{opacity:0;transform:rotate(var(--angle)) translateX(0)}22%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateX(var(--distance))}}
@keyframes rank-gather{0%{opacity:0;transform:rotate(var(--angle)) translateX(var(--distance))}35%{opacity:.75}100%{opacity:0;transform:rotate(var(--angle)) translateX(0)}}
@media(prefers-reduced-motion:reduce){.rank-promotion-screen[open],.rank-promotion-screen::backdrop,.rank-promotion-screen *,.rank-promotion-crest::after{animation:none!important}.rank-promotion-particles,.rank-promotion-crest::after{display:none}}
