@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&family=Rye&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#f6e9cd;background:#101b1a;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% -15%,#3a3928 0%,#13201d 47%,#101817 100%);min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit;text-decoration:none}.topbar{height:78px;padding:0 max(25px,calc((100vw - 1300px)/2));display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #455042;background:#121b19}.brand{letter-spacing:2px;font:800 23px 'Barlow Condensed',sans-serif}.brand strong{color:#d7a255}.star{color:#dbad66;font-size:32px;vertical-align:-3px;margin-right:8px}.top-note{font-size:11px;letter-spacing:2.5px;color:#a99570}.layout{max-width:1320px;padding:40px 24px 80px;margin:auto}footer{text-align:center;border-top:1px solid #3c4237;padding:23px;color:#807d67;font-size:10px;letter-spacing:2px}.hero{text-align:center;padding:48px 20px 35px}.eyebrow,.panel-kicker{font-size:11px;letter-spacing:2.4px;font-weight:700;color:#dca759}.hero h1{font:900 clamp(60px,10vw,120px)/.95 'Barlow Condensed',sans-serif;letter-spacing:2px;margin:16px 0 4px;text-shadow:0 5px 24px #0d120d}.hero h1 span,.how-it-works h2 span{color:#e4a64f}.hero-lead{font:700 29px 'Barlow Condensed',sans-serif!important;color:#f5ddad!important;margin:15px 0 10px!important}.hero p{color:#aeb5a5;font-size:15px}.hero-chips{display:flex;justify-content:center;flex-wrap:wrap;gap:25px;margin-top:32px;font-size:11px;color:#d6af6a;letter-spacing:1.5px}.entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;max-width:950px;margin:20px auto 65px}.panel{padding:26px;border:1px solid #6b674d;background:linear-gradient(140deg,rgba(52,61,46,.92),rgba(26,38,33,.96));box-shadow:0 10px 45px #0004;border-radius:12px}.entry-panel{padding:32px}.panel h2{font:800 32px 'Barlow Condensed',sans-serif;margin:8px 0 8px}.panel p{color:#bec2b2;line-height:1.6;font-size:14px}.entry-panel label,.add-form label{display:block;margin:22px 0 7px;color:#e4cea8;font-size:11px;letter-spacing:1.5px;font-weight:700}.entry-panel input,.add-form input,.add-form textarea,.points-select{background:#16221e;border:1px solid #6a6a50;border-radius:6px;color:#fff1d5;padding:13px 14px;width:100%;outline:0}.entry-panel input:focus,.add-form input:focus,.add-form textarea:focus{border-color:#e5b46f;box-shadow:0 0 0 2px #e5b46f35}.btn{border:1px solid transparent;border-radius:6px;font:800 15px 'Barlow Condensed',sans-serif;letter-spacing:1.3px;padding:14px 22px;text-align:center;display:inline-block;transition:transform .2s,filter .2s}.btn:not(:disabled):hover{transform:translateY(-2px);filter:brightness(1.1)}.btn.primary{background:#d99e49;color:#221912;border-color:#f1c87d}.btn.secondary{background:#394b39;color:#f4dfa9;border-color:#9b855c}.btn.ghost{background:#25372e;color:#d8bd89;border-color:#736449}.entry-panel .btn{margin-top:25px;width:100%}.full{width:100%}.how-it-works{text-align:center}.how-it-works h2{font:800 32px 'Barlow Condensed',sans-serif;letter-spacing:1px}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:25px}.steps>div{padding:25px 10px;border-top:1px solid #605b43}.steps b{font:800 32px 'Barlow Condensed',sans-serif;color:#ce9a50}.steps h3{font:800 19px 'Barlow Condensed',sans-serif;letter-spacing:1px}.steps p{font-size:13px;color:#abb1a5}.room-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 24px}.room-header h1{font:900 46px 'Barlow Condensed',sans-serif;margin:6px 0}.room-header p{font-size:12px;color:#b5b4a3;letter-spacing:1px}.room-code{padding:5px 10px;margin-left:10px;background:#d49e50;color:#251c10;font-weight:800;border-radius:4px;letter-spacing:2px}.room-actions{display:flex;gap:10px;flex-wrap:wrap}.game-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:19px}.game-main,.sidebar{display:flex;flex-direction:column;gap:18px;min-width:0}.story-card{min-height:185px}.story-top,.hand-heading,.table-top,.table-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.story-id{font:700 13px 'Barlow Condensed',sans-serif;letter-spacing:1.2px;color:#c8ad76;margin:19px 0 5px}.story-card h2{font:800 28px 'Barlow Condensed',sans-serif;margin:0}.phase-pill{background:#655637;border:1px solid #94805a;border-radius:18px;padding:6px 12px;font-size:11px}.final-stamp{margin-top:16px;color:#f6d28b;font:800 22px 'Barlow Condensed',sans-serif}.table-wrap{border:1px solid #655c40;border-radius:12px;padding:12px;background:#211e18}.table-top,.table-footer{padding:10px;color:#d6aa65;letter-spacing:2px;font:700 12px 'Barlow Condensed',sans-serif}.poker-table{min-height:345px;background:radial-gradient(ellipse at center,#38664e 5%,#28533d 55%,#193a2c 100%);border:12px solid #754c2a;box-shadow:inset 0 0 0 3px #bc8e52,inset 0 0 50px #081d18,0 6px 0 #301e11;border-radius:45% / 38%;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.table-center{text-align:center;position:absolute;opacity:.25;pointer-events:none;color:#f5d9a0}.table-center strong{display:block;font:900 32px/1 'Barlow Condensed',sans-serif;letter-spacing:5px}.table-center small{display:block;font-size:10px;letter-spacing:2px;margin-top:15px}.table-star{font-size:40px}.players{position:relative;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px 23px;padding:30px 55px;z-index:1;width:100%}.player-seat{text-align:center;width:95px;display:flex;flex-direction:column;align-items:center;gap:5px}.player-card{border:2px solid #d0b17e;border-radius:7px;background:repeating-linear-gradient(45deg,#463e35 0 4px,#6a4b39 4px 8px);height:60px;width:42px;display:flex;align-items:center;justify-content:center;box-shadow:2px 4px 6px #0005;transform:rotate(-3deg);transition:transform .4s,background .4s}.player-card span{font:800 29px 'Barlow Condensed',sans-serif}.player-card.played{background:repeating-linear-gradient(45deg,#8b422c 0 5px,#a65e39 5px 9px)}.player-card.flipped{background:#f4e3c0;color:#3c2616;animation:flip .55s ease-out}.player-card.flipped strong{font:800 32px 'Barlow Condensed',sans-serif}.player-name{font:700 12px 'Barlow Condensed',sans-serif;color:#fff0ca;white-space:nowrap;max-width:120px;overflow:hidden;text-overflow:ellipsis}.player-status{font-size:8px;letter-spacing:1px;color:#dbc18d}.hand-heading h2{font-size:27px}.muted{color:#a8b0a3;font-size:12px}.card-hand{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;padding-top:15px}.point-card{width:57px;height:89px;background:#f4e7cc;border:2px solid #ba9c63;border-radius:7px;color:#392515;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:5px;box-shadow:2px 4px 5px #0006;transition:transform .17s,box-shadow .17s}.point-card strong{font:800 33px 'Barlow Condensed',sans-serif}.card-corner{align-self:flex-start;font-size:12px}.card-bottom{align-self:flex-end;font-size:12px}.point-card:not(:disabled):hover,.point-card.selected{transform:translateY(-12px) rotate(-2deg);box-shadow:0 10px 18px #0009;border-color:#e5aa4b}.point-card.selected{background:#ffe1a2}.hint{font-size:12px!important;color:#b7b69e!important;margin:15px 0 0}.control-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0}.points-select{width:155px}.ledger{padding:22px}.ledger h2{font-size:27px}.story-list{display:flex;flex-direction:column;gap:8px;margin:17px 0}.story-row{text-align:left;border-radius:6px;padding:13px;background:#182922;border:1px solid #53634e;color:#eadebf;display:flex;flex-direction:column;gap:6px;width:100%}.story-row:disabled{opacity:1}.story-row.active{border-color:#c99b5b;background:#344433}.story-row-id,.story-row-foot{font:700 11px 'Barlow Condensed',sans-serif;color:#d5ad6f;letter-spacing:1px}.story-row strong{font-size:13px;line-height:1.35}.story-row-foot{font-size:10px;color:#aab89d}.add-form{margin-top:15px}.add-form label{margin-top:10px}.add-form .btn{margin-top:12px}.stat-line{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #59614d;padding:15px 0;font-size:12px;letter-spacing:1px;color:#c5be9f}.stat-line strong{font:800 24px 'Barlow Condensed',sans-serif;color:#f7d69c}.alert{position:fixed;right:20px;bottom:20px;z-index:9;background:#8d3d31;border:1px solid #e89a74;color:#fff;padding:15px 22px;border-radius:8px;max-width:440px;box-shadow:0 4px 20px #0008}.dismiss{margin-left:12px;background:transparent;border:0;color:#fff;font-size:20px}@keyframes flip{0%{transform:rotateY(90deg) scale(.9)}100%{transform:rotateY(0) scale(1)}}@media(max-width:900px){.game-grid{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:1fr 1fr;align-items:start}.top-note{display:none}.room-header{align-items:start;flex-direction:column}}@media(max-width:620px){.layout{padding:22px 14px 65px}.entry-grid{grid-template-columns:1fr}.steps{grid-template-columns:1fr 1fr}.hero{padding:20px 2px 10px}.hero h1{font-size:66px}.hero-chips{gap:12px}.sidebar{grid-template-columns:1fr}.poker-table{border-radius:36px;min-height:350px}.players{padding:32px 18px;gap:10px}.player-seat{width:75px}.point-card{width:49px;height:79px}.point-card strong{font-size:28px}.room-header h1{font-size:36px}}

.join-invite{max-width:520px;margin:70px auto;text-align:center}.join-invite h1{font:900 50px 'Barlow Condensed',sans-serif}.join-invite label{display:block;margin:18px 0 10px;font-size:12px;color:#e4cea8}.join-invite input{display:block;background:#16221e;color:#fff1d5;padding:13px 14px;width:100%;border:1px solid #6a6a50;border-radius:6px;margin:0 auto 20px}.join-invite .btn{width:100%}


/* Phase 1 Western Art Edition: actual bundled images, no network image dependencies. */
:root{color:#fff0d4;background:#170d0b}
body{background:linear-gradient(90deg,rgba(15,8,7,.88),rgba(20,9,7,.53) 42%,rgba(12,7,7,.87)),url('/art/saloon-background.webp') center top / cover fixed no-repeat;background-color:#21130c}
.topbar{background:linear-gradient(180deg,#3c2015,#1a100c);border-bottom:3px ridge #b07734;box-shadow:0 5px 25px #000a}
.brand{font-family:Georgia,serif;font-size:22px;letter-spacing:1px;text-shadow:1px 3px 3px #000}
.brand strong{color:#f3ba55}
.layout{max-width:1420px}
.panel{background:linear-gradient(145deg,rgba(72,34,20,.94),rgba(33,19,15,.97));border:2px solid #a66e3b;box-shadow:inset 0 1px 0 #f1c47c55,0 9px 30px #0009;border-radius:11px}
.panel-kicker,.eyebrow{color:#ffd18c;text-shadow:0 2px 3px #0009}
.saloon-hero{background:linear-gradient(180deg,rgba(28,14,11,.27),rgba(27,10,8,.72));border:2px ridge #926137;border-radius:14px;box-shadow:0 15px 50px #0009;padding:70px 30px 48px;position:relative;overflow:hidden}
.saloon-hero::before,.saloon-hero::after{content:'✦';position:absolute;top:22px;font-size:46px;color:#ddaa55;text-shadow:0 0 20px #f0a53d}
.saloon-hero::before{left:28px}.saloon-hero::after{right:28px}
.hero h1{font-family:Georgia,serif;font-size:clamp(46px,7vw,96px);color:#ffe2a3;text-shadow:3px 5px 0 #602b15,0 0 30px #000;-webkit-text-stroke:.4px #3c1c0a}
.hero h1 span{color:#f5ad38}.hero p{color:#f0e0c8;text-shadow:0 2px 5px #000}
.entry-grid{margin-top:-3px;position:relative}.entry-panel{display:flex;flex-direction:column;border:5px ridge #9d6336;box-shadow:inset 0 0 25px #0008,0 12px 30px #0009}
.entry-panel > .avatar-picker{margin-bottom:37px}
.entry-panel > .btn{margin-top:auto}
.entry-panel h2,.room-header h1{color:#ffdf97;text-shadow:2px 2px 0 #3b180d}
.btn.primary{background:linear-gradient(#ffd67b,#bf7526);color:#32160a;border:2px solid #ffe3a0;box-shadow:inset 0 1px 0 #fff6,0 4px 0 #713b19}
.btn.secondary{background:linear-gradient(#764331,#42231c);color:#ffe3a2;border:1px solid #c89151}
.btn.ghost{background:#39251de8;border-color:#b78352;color:#ffe0b2}
.story-card.wanted-story{background:linear-gradient(105deg,rgba(249,224,172,.97),rgba(222,178,112,.96));border:5px ridge #8d522e;color:#452211;box-shadow:inset 0 0 35px #965b293d,0 10px 23px #0009;position:relative}
.wanted-story .panel-kicker,.wanted-story .story-id{color:#8c301f;text-shadow:none}.wanted-story h2{color:#361c12;font:700 28px Georgia,serif}.wanted-story p{color:#503c25}.wanted-story .phase-pill{background:#713723;color:#fff0d1}.wanted-story .final-stamp{color:#7e2316}
.saloon-scene{position:relative;background:linear-gradient(180deg,#1c0f0bd4,#2b140dea),url('/art/saloon-background.webp') center center / cover;border:5px ridge #8d552d;box-shadow:0 15px 30px #0009,inset 0 0 60px #0009}
.saloon-scene .poker-table{background:radial-gradient(ellipse at 49% 44%,#9f2425 5%,#72151b 51%,#410f11 100%);border:14px ridge #a6682c;box-shadow:inset 0 0 0 3px #ffd076,inset 0 0 55px #210405,0 7px 2px #1a0906;min-height:420px}
.saloon-scene .table-top,.saloon-scene .table-footer{color:#ffe0a4;text-shadow:0 2px 5px #000}.saloon-scene .table-center{opacity:.16}
.saloon-scene .players{gap:16px 20px;padding:22px 30px}.saloon-scene .player-seat{width:104px;gap:4px}
.gunslinger-avatar{width:77px;height:91px;object-fit:cover;object-position:center 23%;border-radius:42% 42% 12px 12px;border:3px solid #efc06c;box-shadow:0 0 0 3px #42220f,0 6px 15px #000b;background:#51311c;transition:transform .25s,filter .25s}
.player-seat:hover .gunslinger-avatar{transform:translateY(-5px) scale(1.07);filter:brightness(1.14)}
.player-card{height:46px;width:35px;margin-top:-12px;z-index:2;border-color:#e5b970;box-shadow:0 4px 10px #000a}.player-card span{font-size:24px}.player-card.flipped strong{font-size:27px}
.player-name{font-size:13px;text-shadow:0 2px 4px #000}.player-status{font-size:9px;color:#ffe1ad}
.hand-panel{border:3px ridge #9d6733;background:linear-gradient(145deg,#392016ed,#1e1511f7)}
.point-card{background:linear-gradient(145deg,#fff4d7,#d8ad72);border:2px double #9c5029;box-shadow:inset 0 0 0 2px #fff3c5,0 5px 10px #0009;border-radius:5px;animation:cardDeal .45s backwards;animation-delay:.07s}
.point-card:nth-child(2n){animation-delay:.14s}.point-card:nth-child(3n){animation-delay:.2s}.point-card.selected{background:linear-gradient(#ffe6a3,#e6a842);box-shadow:0 0 17px #efb844,0 9px 13px #0009}
@keyframes cardDeal{from{opacity:0;transform:translateY(25px) rotate(8deg)}to{opacity:1;transform:translateY(0) rotate(0)}}
.ledger{background:linear-gradient(135deg,#f8dfaaeb,#c3945def);color:#351b0d;border:5px ridge #92522a}.ledger h2{color:#441e0c}.ledger .panel-kicker{color:#7c2919;text-shadow:none}.ledger .story-row{background:#f6deb9;color:#442717;border-color:#986e43}.ledger .story-row.active{background:#f3c676;border:2px solid #8e3d1a}.ledger .story-row-id,.ledger .story-row-foot{color:#7a381d}.ledger .story-row-foot{color:#68421e}
.stats{background:linear-gradient(140deg,#4c2b20eb,#21100fed)}
.room-code{background:linear-gradient(#ffd483,#bf7c31)}
@media(max-width:620px){body{background-attachment:scroll}.saloon-hero{padding:44px 12px 30px}.saloon-scene .poker-table{min-height:390px;border-radius:34px}.saloon-scene .players{padding:20px 12px;gap:8px}.saloon-scene .player-seat{width:75px}.gunslinger-avatar{width:59px;height:69px}.saloon-hero::before,.saloon-hero::after{font-size:25px;top:10px}}


/* Complete Game Edition: optional avatar choices, responsive player table, reveal animation. */
.avatar-label{font:800 12px 'Barlow Condensed',sans-serif;letter-spacing:2px;color:#f2c684;margin:18px 0 10px}
.avatar-picker{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-start;margin:10px 0 12px}
.avatar-choice{height:65px;width:56px;padding:2px;background:#28170e;border:2px solid #8c6743;border-radius:12px;overflow:hidden;transition:transform .18s,box-shadow .18s,border-color .18s}
.avatar-choice img{width:100%;height:100%;object-fit:cover;object-position:center 23%;border-radius:8px}
.avatar-choice:hover:not(:disabled),.avatar-choice.active{transform:translateY(-4px);border-color:#ffe49d;box-shadow:0 0 0 2px #e2a94c88,0 0 18px #e2a94c77}
.avatar-choice:focus-visible{outline:3px solid #fff4c3;outline-offset:2px}
.join-invite .avatar-picker{justify-content:center}
.my-avatar-panel{padding:19px}.my-avatar-panel h2{font-size:25px}.my-avatar-panel .avatar-choice{width:40px;height:49px;border-radius:8px}.my-avatar-panel .avatar-picker{gap:5px}
.saloon-scene .poker-table{background:radial-gradient(ellipse at 50% 55%,#872126 3%,#68151b 53%,#360c0e 100%);position:relative}
.saloon-scene .poker-table:before{content:'';pointer-events:none;position:absolute;inset:11px;border:2px dashed #dda45d88;border-radius:45% / 38%}
.saloon-scene.showdown-active .poker-table{animation:showdownGlow 1.2s ease-out}
.saloon-scene.showdown-active .table-footer{color:#ffe08e}
@keyframes showdownGlow{0%{box-shadow:inset 0 0 0 3px #ffd076,inset 0 0 55px #210405,0 0 0 #dfa94a}40%{box-shadow:inset 0 0 0 3px #ffd076,inset 0 0 55px #210405,0 0 42px #f7b83e9c}100%{box-shadow:inset 0 0 0 3px #ffd076,inset 0 0 55px #210405,0 0 0 #dfa94a}}
.saloon-scene .player-seat{animation:seatArrive .45s ease-out both}.saloon-scene .player-seat:nth-child(2){animation-delay:.08s}.saloon-scene .player-seat:nth-child(3){animation-delay:.16s}.saloon-scene .player-seat:nth-child(4){animation-delay:.24s}.saloon-scene .player-seat:nth-child(5){animation-delay:.32s}.saloon-scene .player-seat:nth-child(6){animation-delay:.40s}
@keyframes seatArrive{from{opacity:0;transform:translateY(-18px) scale(.88)}to{opacity:1;transform:translateY(0) scale(1)}}
.player-card.played:not(.flipped){animation:cardLand .36s ease-out both;background:linear-gradient(30deg,#74341d,#a45a32 45%,#642a18 46%,#ab643b 51%,#682b1c)}
@keyframes cardLand{from{opacity:.2;transform:translateY(-32px) rotate(12deg)}to{opacity:1;transform:translateY(0) rotate(-3deg)}}
.player-card.flipped{animation:flip .7s cubic-bezier(.23,.75,.3,1) both;backface-visibility:hidden}
.player-seat:nth-child(2) .player-card.flipped{animation-delay:.09s}.player-seat:nth-child(3) .player-card.flipped{animation-delay:.18s}.player-seat:nth-child(4) .player-card.flipped{animation-delay:.27s}.player-seat:nth-child(5) .player-card.flipped{animation-delay:.36s}.player-seat:nth-child(6) .player-card.flipped{animation-delay:.45s}
.player-seat:nth-child(n+7) .player-card.flipped{animation-delay:.5s}
.point-card:focus-visible,.btn:focus-visible,.story-row:focus-visible{outline:3px solid #fff2a8;outline-offset:3px}
.table-footer{min-height:33px}.room-actions .btn{white-space:nowrap}
@media(max-width:700px){.saloon-scene .poker-table{border-radius:35px;min-height:440px}.saloon-scene .poker-table:before{border-radius:24px}.saloon-scene .players{padding:24px 10px}.saloon-scene .player-seat{width:78px}.my-avatar-panel .avatar-choice{width:44px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-delay:0ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}

/* Twelve unique, mutually exclusive portraits and per-Gunslinger Showdown */
.avatar-picker{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.avatar-choice{width:100%;max-width:72px;height:72px;position:relative}
.avatar-choice.taken{filter:grayscale(1);opacity:.34;cursor:not-allowed;border-color:#6e6059}.avatar-choice.taken::after{content:'TAKEN';font-size:8px;position:absolute;bottom:2px;left:0;right:0;background:#431b16;color:#fff}
.my-avatar-panel .avatar-picker{display:grid;grid-template-columns:repeat(6,1fr)}.my-avatar-panel .avatar-choice{width:100%;height:52px}
.flip-prompt{text-align:center;margin:16px auto 5px}.flip-own{padding:18px 35px;font-size:20px;box-shadow:0 0 22px #e0a34575;animation:flipCall 1.9s ease-in-out infinite}
@keyframes flipCall{0%,100%{box-shadow:0 0 10px #e0a34555}50%{box-shadow:0 0 35px #f7ce77bb}}
.saloon-scene .players{gap:12px 10px}.saloon-scene .player-seat{width:94px}.gunslinger-avatar{width:69px;height:78px}
@media(max-width:620px){.avatar-picker{grid-template-columns:repeat(4,minmax(0,1fr))}.saloon-scene .player-seat{width:73px}.gunslinger-avatar{width:53px;height:61px}}
@media(prefers-reduced-motion:reduce){.flip-own{animation:none}}


/* Immersive Saloon: layered character motion, game-state-triggered effects. */
.saloon-scene{position:relative;isolation:isolate;overflow:hidden}
.character-stage{height:91px;width:80px;position:relative;margin:auto;transform-origin:50% 92%;animation:hatArrival .78s cubic-bezier(.16,.9,.22,1) both}
.avatar-breath{position:relative;display:inline-block;transform-origin:50% 85%;animation:saloonBreathing 3.6s ease-in-out infinite}
.character-stage .gunslinger-avatar{display:block;object-fit:cover;object-position:center 22%;border-radius:45% 45% 20% 20%;border:2px solid #d4a656;box-shadow:0 4px 12px #160801aa}
.avatar-blink{position:absolute;z-index:2;pointer-events:none;left:20%;right:20%;top:34%;height:4px;border-radius:50%;background:#24140c;opacity:0;animation:eyelidBlink 8.5s step-end infinite}
.player-seat:nth-child(3n) .avatar-blink{animation-delay:2.5s}.player-seat:nth-child(3n+1) .avatar-blink{animation-delay:5.2s}
.hat-tip{position:absolute;z-index:5;top:-18px;right:-8px;font-size:25px;pointer-events:none;opacity:0;transform-origin:60% 80%;animation:hatGreeting 1.1s .32s ease-out both;filter:drop-shadow(0 2px 2px #000)}
.poker-face .character-stage{animation:pokerNod 1.7s ease-in-out infinite}
.poker-fan{position:absolute;z-index:3;bottom:0;right:-12px;font-size:17px;letter-spacing:-7px;text-shadow:1px 2px 4px #000;transform:rotate(-17deg);animation:cardFan .45s ease-out both}
.reacting .avatar-breath{animation:disagreeShake .6s .15s ease-in-out both}
.reaction-mark{position:absolute;top:0;right:-10px;z-index:4;border-radius:50%;background:#e2aa42;color:#36180c;font:900 13px 'Barlow Condensed',sans-serif;padding:5px;animation:surprisePop .65s ease-out both}
.flip-spot{perspective:600px;min-height:63px;display:grid;place-items:center}
.flip-spot .player-card.flipped{animation:personalReveal .8s cubic-bezier(.17,.9,.3,1.05) both;box-shadow:0 0 19px #edc66bbb,0 4px 9px #0008}
.flip-spot .player-card.played:not(.flipped){animation:cardLand .36s ease-out both}
.event-banner{position:relative;z-index:10;display:flex;flex-direction:column;align-items:center;gap:2px;pointer-events:none;text-align:center;margin:3px auto 8px;width:max-content;max-width:95%;padding:9px 28px;color:#ffebba;border:2px solid #ddac66;border-radius:9px;background:linear-gradient(95deg,#411d0f,#8b361b,#411d0f);box-shadow:0 4px 26px #0009,0 0 22px #ffad4777}
.event-banner span{font:900 clamp(23px,4vw,39px)/1 'Barlow Condensed',sans-serif;letter-spacing:3px;text-shadow:2px 3px #231007}
.event-banner small{font-size:11px;letter-spacing:2px}
.high-noon{animation:highNoonBanner 1.25s cubic-bezier(.18,.87,.3,1.04) both}
.gold-rush{background:linear-gradient(95deg,#422c0e,#9b6f24,#422c0e);animation:goldRushBanner 1.2s ease-out both}
.gold-particles{position:absolute;z-index:9;inset:0;pointer-events:none;overflow:hidden}
.gold-particles span{position:absolute;left:50%;top:-10px;font-size:22px;color:#f7c54d;animation:goldFall 1.7s ease-in forwards;animation-delay:calc(var(--coin) * .085s)}
/* CSS mod() remains new in some browsers; ensure independently varied positions via nth-child. */
.gold-particles span{left:50%}
.gold-particles span:nth-child(6n+1){left:8%}.gold-particles span:nth-child(6n+2){left:23%}.gold-particles span:nth-child(6n+3){left:39%}.gold-particles span:nth-child(6n+4){left:57%}.gold-particles span:nth-child(6n+5){left:75%}.gold-particles span:nth-child(6n){left:91%}
.disagreement-banner{position:relative;z-index:7;margin:4px auto 8px;width:fit-content;max-width:96%;padding:6px 14px;color:#f5d6a0;border:1px dashed #dfa65c;border-radius:20px;background:#4d231a;font:800 13px 'Barlow Condensed',sans-serif;letter-spacing:1px;animation:surprisePop .6s both}
.tumbleweed{position:absolute;z-index:9;bottom:32px;left:-40px;font-size:40px;color:#cda569;pointer-events:none;animation:tumbleweedRoll 5s 1 ease-in-out both}
@keyframes hatArrival{0%{transform:translateY(-35px) scale(.87);opacity:0}65%{transform:translateY(5px) scale(1.05);opacity:1}100%{transform:translateY(0) scale(1);opacity:1}}
@keyframes hatGreeting{0%,22%{opacity:0;transform:translateY(10px) rotate(-12deg)}35%,70%{opacity:1;transform:translateY(-10px) rotate(22deg)}100%{opacity:0;transform:translateY(0) rotate(0)}}
@keyframes saloonBreathing{0%,100%{transform:scale(1)}50%{transform:scale(1.025,1.04)}}
@keyframes eyelidBlink{0%,45%,47%,100%{opacity:0}46%{opacity:.65}}
@keyframes pokerNod{0%,100%{transform:rotate(0)}50%{transform:rotate(-2deg)}}
@keyframes cardFan{from{opacity:0;transform:translateY(18px) rotate(12deg)}to{opacity:1;transform:translateY(0) rotate(-17deg)}}
@keyframes personalReveal{0%{transform:translateY(-14px) rotateY(90deg) scale(.8);opacity:.2}52%{transform:translateY(-6px) rotateY(-12deg) scale(1.18);opacity:1}100%{transform:translateY(0) rotateY(0) scale(1);opacity:1}}
@keyframes highNoonBanner{0%{transform:scale(2.1) rotate(-8deg);opacity:0;filter:brightness(3)}55%{opacity:1}100%{transform:scale(1);opacity:1;filter:brightness(1)}}
@keyframes goldRushBanner{0%{transform:translateY(-35px) scale(.75);opacity:0}60%{transform:translateY(5px) scale(1.08);opacity:1}100%{transform:translateY(0) scale(1)}}
@keyframes goldFall{0%{opacity:0;transform:translateY(-10px) rotate(0)}15%{opacity:1}100%{opacity:0;transform:translateY(490px) rotate(600deg)}}
@keyframes disagreeShake{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-6deg)}40%,80%{transform:rotate(6deg)}}
@keyframes surprisePop{0%{opacity:0;transform:translateY(14px) scale(.5)}70%{opacity:1;transform:translateY(-3px) scale(1.2)}100%{opacity:1;transform:scale(1)}}
@keyframes tumbleweedRoll{0%{opacity:0;transform:translateX(0) rotate(0)}15%{opacity:.9}90%{opacity:.9}100%{opacity:0;transform:translateX(950px) rotate(1080deg)}}
@media(max-width:620px){.character-stage{width:57px;height:70px}.character-stage .gunslinger-avatar{width:53px;height:61px}.hat-tip{font-size:17px}.poker-fan{font-size:12px}.event-banner{padding:6px 12px}}
@media(prefers-reduced-motion:reduce){.character-stage,.avatar-breath,.avatar-blink,.hat-tip,.poker-face .character-stage,.poker-fan,.reacting .avatar-breath,.reaction-mark,.flip-spot .player-card,.event-banner,.gold-particles span,.disagreement-banner,.tumbleweed{animation:none!important}.hat-tip,.gold-particles,.tumbleweed{display:none}}


/* Avatar Spotlight Edition: readable character motion at normal browser zoom.
   Four large seats per row replaces the original compressed, tiny portrait ring. */
.saloon-scene .poker-table{min-height:unset;border-radius:35px;display:block;padding:18px 12px 26px;overflow:hidden}
.saloon-scene .poker-table:before{border-radius:28px}
.saloon-scene .table-center{display:none}
.saloon-scene .players{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));justify-items:center;align-items:start;gap:24px 12px;padding:20px 14px;width:100%}
.saloon-scene .player-seat{width:100%;min-width:0;max-width:208px;gap:7px;padding:12px 5px 10px;border:1px solid #e4b76a55;border-radius:15px;background:linear-gradient(180deg,#31150ebf,#1d0b0cb8);box-shadow:0 8px 18px #11050588;position:relative}
.saloon-scene .character-stage{width:150px;height:176px;max-width:100%;position:relative;filter:drop-shadow(0 6px 7px #000a)}
.saloon-scene .avatar-breath{display:block;width:100%;height:100%}
.saloon-scene .character-stage .gunslinger-avatar{width:100%;height:100%;object-fit:cover;object-position:center 22%;border:4px solid #d4a656;border-radius:48% 48% 16px 16px;box-shadow:0 0 0 2px #3c1b13,0 7px 18px #000b}
.saloon-scene .player-name{font-size:16px;line-height:1.17;font-weight:800;overflow-wrap:anywhere;min-height:19px}
.saloon-scene .player-status{font-size:12px;letter-spacing:.65px;font-weight:800;line-height:1.2}
.saloon-scene .flip-spot{min-height:79px;z-index:3}
.saloon-scene .player-card{width:56px;height:73px;margin-top:0;border-width:3px}
.saloon-scene .player-card.flipped strong{font-size:36px}
.saloon-scene .player-card span{font-size:32px}
.saloon-scene .hat-tip{font-size:45px;right:-8px;top:-25px;filter:drop-shadow(0 4px 5px #000)}
.saloon-scene .poker-fan{font-size:33px;right:-15px;bottom:-3px;letter-spacing:-12px}
.saloon-scene .reaction-mark{font-size:22px;right:-5px;top:8px;padding:9px 11px}
.saloon-scene .avatar-blink{height:6px}
.saloon-scene .player-seat.has-flipped{border-color:#ffdc8d;box-shadow:0 0 19px #f4bc4870,0 8px 18px #0009}
.saloon-scene .player-seat.poker-face{border-color:#d4a656aa}
.saloon-scene .player-seat:hover{z-index:4;border-color:#fbe1a1}
.saloon-scene .player-seat:hover .gunslinger-avatar{filter:brightness(1.14)}
@media (min-width:1450px){.saloon-scene .character-stage{width:174px;height:200px}.saloon-scene .player-seat{max-width:230px}.saloon-scene .players{gap:27px 15px}}
@media (max-width:1150px){.saloon-scene .players{grid-template-columns:repeat(3,minmax(0,1fr));gap:19px 10px}.saloon-scene .character-stage{width:144px;height:166px}}
@media (max-width:760px){.saloon-scene .players{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px;padding:13px 6px}.saloon-scene .character-stage{width:142px;height:164px}.saloon-scene .poker-table{padding:9px 7px 16px}.saloon-scene .player-seat{padding:10px 3px;gap:5px}.saloon-scene .player-name{font-size:14px}.saloon-scene .player-status{font-size:10px}}
@media (max-width:390px){.saloon-scene .character-stage{width:118px;height:142px}.saloon-scene .players{gap:9px 6px}.saloon-scene .hat-tip{font-size:34px}}


/* Smooth Motion Edition — a single owner of each transform, compositor-only updates.
   CSS below overrides legacy layered effects without changing server voting semantics. */
.saloon-scene .player-seat{animation:seatArrive .46s cubic-bezier(.2,.8,.2,1) both;contain:layout style;will-change:auto}
.saloon-scene .character-stage{filter:none;animation:hatArrival .60s cubic-bezier(.16,.9,.24,1) both}
.saloon-scene .avatar-breath{animation:saloonBreathing 5.8s ease-in-out infinite;will-change:transform}
.saloon-scene .player-seat:nth-child(3n) .avatar-breath{animation-delay:-1.7s}
.saloon-scene .player-seat:nth-child(3n+1) .avatar-breath{animation-delay:-3.5s}
.saloon-scene .poker-face .character-stage{animation:hatArrival .60s cubic-bezier(.16,.9,.24,1) both}
.saloon-scene .poker-face .avatar-breath{animation:saloonBreathing 5.8s ease-in-out infinite}
.saloon-scene .reacting .avatar-breath{animation:saloonBreathing 5.8s ease-in-out infinite}
.saloon-scene .reacting .character-stage{animation:disagreeShake .55s ease-in-out both}
.saloon-scene .character-stage .gunslinger-avatar{filter:none;transition:filter .2s ease}
.saloon-scene .hat-tip{animation:hatGreeting 1s .18s cubic-bezier(.22,.8,.2,1) both;filter:none}
.saloon-scene .poker-fan{animation:cardFan .42s cubic-bezier(.2,.8,.2,1) both;will-change:transform,opacity}
.saloon-scene .player-card,
.saloon-scene .player-card.flipped,
.saloon-scene .player-card.played:not(.flipped),
.saloon-scene .flip-spot .player-card.flipped,
.saloon-scene .flip-spot .player-card.played:not(.flipped){
  position:relative;display:block;margin:0;border:0;background:none;box-shadow:none;
  width:56px;height:73px;border-radius:7px;animation:none!important;transform:rotateY(0deg);
  transform-style:preserve-3d;transition:transform .78s cubic-bezier(.18,.84,.22,1);
  will-change:transform;
}
.saloon-scene .player-card.flipped,
.saloon-scene .flip-spot .player-card.flipped{transform:rotateY(180deg)}
.saloon-scene .flip-spot{perspective:850px;min-height:79px;display:grid;place-items:center}
.saloon-scene .player-card .card-face{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
 backface-visibility:hidden;-webkit-backface-visibility:hidden;border:3px solid #e5b970;border-radius:7px;box-shadow:0 4px 10px #0008}
.saloon-scene .player-card .card-back{background:repeating-linear-gradient(45deg,#74341d 0 5px,#a45a32 5px 10px);color:#f3dba9}
.saloon-scene .player-card:not(.played) .card-back{background:repeating-linear-gradient(45deg,#463e35 0 5px,#6a4b39 5px 10px)}
.saloon-scene .player-card .card-front{transform:rotateY(180deg);background:linear-gradient(150deg,#fff1d3,#e9c58c);color:#36210d}
.saloon-scene .player-card .card-face strong{font:800 36px 'Barlow Condensed',sans-serif}
.saloon-scene .player-card .card-face span{font:800 32px 'Barlow Condensed',sans-serif}
.saloon-scene .player-seat.has-flipped{box-shadow:0 8px 18px #11050588;border-color:#f4c879}
.saloon-scene.showdown-active .poker-table{animation:none}
.saloon-scene .high-noon{animation:highNoonSmooth .7s cubic-bezier(.18,.84,.22,1) both}
.saloon-scene .gold-rush{animation:goldRushSmooth .75s cubic-bezier(.18,.84,.22,1) both}
.saloon-scene .gold-particles span{animation:goldFall 1.7s ease-in forwards;font-size:17px;will-change:transform,opacity}
.saloon-scene .tumbleweed{animation:tumbleweedAcross 3.1s linear both;will-change:transform,opacity}
.saloon-scene .flip-own{animation:buttonBreath 2.4s ease-in-out infinite}
@keyframes highNoonSmooth{from{transform:translateY(-15px) scale(.93);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
@keyframes goldRushSmooth{from{transform:translateY(20px) scale(.94);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
@keyframes tumbleweedAcross{0%{transform:translate3d(0,0,0) rotate(0);opacity:0}10%{opacity:.9}90%{opacity:.9}100%{transform:translate3d(min(82vw,900px),0,0) rotate(900deg);opacity:0}}
@keyframes buttonBreath{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}
@media(prefers-reduced-motion:reduce){
 .saloon-scene .player-seat,.saloon-scene .character-stage,.saloon-scene .avatar-breath,
 .saloon-scene .poker-face .character-stage,.saloon-scene .poker-face .avatar-breath,
 .saloon-scene .reacting .character-stage,.saloon-scene .reacting .avatar-breath,
 .saloon-scene .hat-tip,.saloon-scene .avatar-blink,.saloon-scene .poker-fan,
 .saloon-scene .reaction-mark,.saloon-scene .high-noon,.saloon-scene .gold-rush,
 .saloon-scene .gold-particles span,.saloon-scene .tumbleweed,.saloon-scene .flip-own,
 .saloon-scene .player-card{animation:none!important;transition:none!important}
 .saloon-scene .hat-tip,.saloon-scene .gold-particles,.saloon-scene .tumbleweed{display:none}
}

/* Sprite Edition: real 8-frame artwork replaces transform-based portrait animation.
   The browser positions one 192x192 frame within each 1536x192 WebP sprite strip. */
.saloon-scene .character-stage { width: min(100%, 164px); height: auto; aspect-ratio: 1 / 1; animation: none!important; filter:none; }
.saloon-scene .sprite-avatar {
  width: 100%; height: 100%; aspect-ratio:1/1;
  background-size: 800% 100%; background-position: 0% 0%; background-repeat: no-repeat;
  background-color: #3b241b; border: 4px solid #d4a656;
  border-radius: 46% 46% 15px 15px;
  box-shadow: 0 0 0 2px #3c1b13, 0 7px 18px #000b;
  contain: paint; image-rendering: auto; transform: translateZ(0);
}
.saloon-scene .player-seat { animation:none!important; }
.saloon-scene .player-seat:hover .sprite-avatar { border-color:#f7d589; }
@media(min-width:1450px){.saloon-scene .character-stage {width:190px}}
@media(max-width:760px){.saloon-scene .character-stage {width:min(100%, 148px)}}
@media(max-width:390px){.saloon-scene .character-stage {width:min(100%, 126px)}}
@media(prefers-reduced-motion:reduce){.saloon-scene .sprite-avatar {background-position:0% 0%!important}}

.ledger .add-form label{color:#40200f;font-size:12px;letter-spacing:.5px}
.ledger .add-form input,.ledger .add-form textarea{background:#fff8e9;color:#2d1b11;border:1px solid #76502f;max-width:100%}
.ledger .add-form input::placeholder,.ledger .add-form textarea::placeholder{color:#6b5545;opacity:1}
.ledger .add-form input:focus,.ledger .add-form textarea:focus{border-color:#713723;box-shadow:0 0 0 2px #71372380}
.ledger .add-form textarea{resize:vertical}
.story-detail h3{margin:18px 0 4px;color:#6b301b;font:700 16px 'Barlow Condensed',sans-serif;letter-spacing:.5px}
.wanted-story .story-detail p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.wanted-story h2{overflow-wrap:anywhere}

.site-nav{display:flex;align-items:center;gap:26px}
.site-nav a,footer a{color:#f5d399;font-weight:700;letter-spacing:1.5px}
.site-nav a{font-size:12px;padding:10px 0}
.site-nav a:hover,.site-nav a.active,footer a:hover{color:#fff1d2;text-decoration:underline;text-underline-offset:5px}
.site-nav a:focus-visible,footer a:focus-visible,.about-page a:focus-visible{outline:2px solid #ffd67b;outline-offset:4px}
footer a{display:inline-block;margin:10px 0;font-size:10px}
.about-page{max-width:1180px;margin:auto}
.about-hero{padding:clamp(35px,6vw,80px);border:5px ridge #9d6336;border-radius:12px;background:linear-gradient(90deg,rgba(26,12,8,.97),rgba(38,18,11,.78)),url('/art/saloon-background.webp') center / cover;box-shadow:0 12px 30px #0009}
.about-hero-content{max-width:730px}
.about-hero h1{margin:18px 0;font:900 clamp(42px,7vw,78px)/.98 'Barlow Condensed',sans-serif;letter-spacing:1px;color:#fff0d0}
.about-hero h1 span{color:#f5b64f}
.about-hero p{max-width:580px;color:#f4e3c9;font-size:17px;line-height:1.7;margin:0 0 28px}
.about-intro{display:grid;grid-template-columns:1fr 1.4fr;gap:50px;padding:65px 10px;border-bottom:1px solid #79583d}
.about-page h2{font:800 clamp(30px,4vw,42px)/1.1 'Barlow Condensed',sans-serif;color:#ffe0a2;margin:10px 0}
.about-page p{line-height:1.7}
.about-intro p{color:#e1d3bb;margin:0 0 14px}
.about-section{padding:60px 0 0}
.about-section-heading{text-align:center;margin:0 auto 28px}
.about-section-heading p{color:#d1c2a9;margin:8px 0}
.about-steps,.about-features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.about-steps{list-style:none;padding:0;margin:0}
.about-steps li,.about-features article{padding:25px;border:1px solid #8e633e;border-radius:9px;background:linear-gradient(145deg,#43271beb,#211510f7)}
.about-step-number{font:800 30px 'Barlow Condensed',sans-serif;color:#e5ad5d}
.about-page h3{font:800 22px 'Barlow Condensed',sans-serif;color:#ffdfa3;margin:10px 0}
.about-steps p,.about-features p{color:#e0d1bb;font-size:14px;margin:0}
.about-features{grid-template-columns:repeat(3,minmax(0,1fr))}
.about-features article>span{font-size:25px;color:#eebd6d}
.about-note{display:grid;grid-template-columns:1fr 1.4fr;gap:35px;align-items:center;margin-top:60px;padding:28px 32px;border-left:4px solid #e1ab5b;background:#38251bdd}
.about-note p{color:#e7d8c0;margin:0}
.about-cta{text-align:center;padding:65px 15px 25px}
.about-cta p{color:#e1d3bb;margin:10px 0 24px}
@media(max-width:900px){.about-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.about-intro,.about-note{grid-template-columns:1fr;gap:12px}}
@media(max-width:620px){.site-nav{gap:12px}.topbar{padding:0 14px}.brand{font-size:19px;letter-spacing:1px}.about-intro{padding:40px 4px}.about-section{padding-top:40px}.about-steps,.about-features{grid-template-columns:1fr}.about-note{margin-top:40px;padding:24px}.about-cta{padding-top:45px}}

.about-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,270px);align-items:center;gap:32px}
.kate-portrait{margin:0;text-align:center}
.kate-portrait img{display:block;width:100%;height:auto;filter:drop-shadow(0 8px 14px #0008)}
.kate-portrait figcaption{margin-top:12px;color:#ffe1a3;font:800 18px 'Barlow Condensed',sans-serif;letter-spacing:1.5px}
.kate-portrait figcaption span{display:block;margin-top:3px;color:#e1c49b;font:700 10px 'DM Sans',sans-serif;letter-spacing:1.3px}
.kate-welcome{max-width:950px;margin:25px auto;display:flex;align-items:center;gap:20px;padding:16px 22px;background:#342016ed;border:1px solid #a47746;border-radius:10px}
.kate-welcome img{width:82px;height:auto;flex:none}
.kate-welcome p{color:#f5e1c1;margin:7px 0;font-size:15px;line-height:1.5}
.kate-welcome a{display:inline-block;color:#ffda90;font:800 14px 'Barlow Condensed',sans-serif;letter-spacing:1px;text-decoration:underline;text-underline-offset:4px}
.kate-welcome a:focus-visible{outline:2px solid #ffd67b;outline-offset:4px}
@media(max-width:620px){.about-hero{grid-template-columns:1fr;gap:26px}.kate-portrait{width:min(230px,75%);margin:auto}.kate-welcome{padding:14px;gap:14px}.kate-welcome img{width:65px}}


/* Big Nose Kate: matching framed portrait on every screen, using the same 8-frame
   192px sprite art as the Sheriff's / Gunslingers' cards. No static <img> portrait. */
.kate-character-card { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px;
  flex:0 0 auto; width:188px; padding:12px 12px 9px; border:2px solid #a77943; border-radius:17px;
  background:linear-gradient(155deg,#54331f,#23140e); box-shadow:inset 0 0 0 2px #28140d,0 7px 18px #0008; }
.kate-character-card .character-stage { width:154px; height:154px; aspect-ratio:1/1; margin:auto; animation:none!important; filter:none; }
.kate-character-card .sprite-avatar { width:100%; height:100%; box-sizing:border-box;
  background-size:800% 100%; background-position:0% 0%; background-repeat:no-repeat;
  background-color:#3b241b; border:4px solid #d4a656; border-radius:46% 46% 15px 15px;
  box-shadow:0 0 0 2px #3c1b13,0 7px 18px #000b; contain:paint; image-rendering:auto; transform:translateZ(0); }
.kate-character-name { font:800 13px 'Barlow Condensed',sans-serif; letter-spacing:1.2px; text-align:center; color:#ffe0a4; }
.kate-welcome { align-items:center; }
.kate-welcome .kate-character-card { width:178px; padding:10px; }
.kate-welcome .kate-character-card .character-stage { width:144px; height:144px; }
.kate-portrait { display:flex; flex-direction:column; align-items:center; }
.kate-portrait .kate-character-card { width:min(100%,255px); }
.kate-portrait .kate-character-card .character-stage { width:min(100%,214px); height:auto; aspect-ratio:1/1; }
.kate-table-host { display:flex; align-items:center; justify-content:center; gap:22px; margin:14px auto 8px; max-width:510px; padding:6px 18px; }
.kate-table-host .kate-character-card { width:164px; }
.kate-table-host .kate-character-card .character-stage { width:130px; height:130px; }
.kate-host-words { display:flex; flex-direction:column; gap:4px; color:#f2d7a4; }
.kate-host-words strong { font:800 24px 'Barlow Condensed',sans-serif; }
.kate-host-words>span:last-child { font-size:13px; }
@media(max-width:620px) {
 .kate-welcome .kate-character-card { width:122px; padding:7px; }
 .kate-welcome .kate-character-card .character-stage {width:104px;height:104px;}
 .kate-character-name {font-size:10px;}
 .kate-table-host {gap:12px;padding:8px;}
 .kate-table-host .kate-character-card {width:132px;padding:7px;}
 .kate-table-host .kate-character-card .character-stage{width:108px;height:108px;}
 .kate-host-words strong {font-size:20px;}
}
@media(prefers-reduced-motion:reduce) { .kate-character-card .sprite-avatar { background-position:0% 0%!important; } }

/* Live story-scoped saloon discussion, synchronized over Blazor Server SignalR circuits. */
.discussion-panel{margin-top:16px;background:linear-gradient(155deg,#32231a,#201711);border:2px solid #ba874b}
.discussion-head{display:flex;justify-content:space-between;align-items:start;gap:14px;flex-wrap:wrap;margin-bottom:12px}
.discussion-head h2{margin:2px 0 4px;font-size:clamp(23px,3vw,34px);color:#f8db9f}
.discussion-head .hint{margin:0;max-width:700px}
.discussion-log{max-height:370px;min-height:140px;overflow:auto;overscroll-behavior:contain;padding:12px;border-radius:12px;background:#130f0de8;border:1px solid #775334;display:flex;flex-direction:column;gap:12px;scrollbar-color:#946b40 #1a120f}
.discussion-empty{padding:35px 15px;text-align:center;color:#e4be86}
.discussion-message{display:flex;align-items:flex-start;gap:12px;max-width:94%}
.discussion-message.mine{align-self:flex-end;flex-direction:row-reverse}
.discussion-avatar{flex:0 0 56px;width:56px;height:60px;object-fit:cover;object-position:center 24%;border:2px solid #dcb879;border-radius:15px 15px 7px 7px;background:#4b3023}
.discussion-message-body{min-width:0;background:#3a281d;border:1px solid #775334;border-radius:12px;padding:9px 12px;overflow-wrap:anywhere}
.discussion-message.mine .discussion-message-body{background:#40311b;border-color:#a77c3d}
.discussion-byline{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:13px;color:#f5dcad}
.discussion-byline time{font-size:11px;color:#bfa68c;margin-left:auto}
.discussion-role{font-size:10px;font-weight:bold;letter-spacing:.7px;color:#f9d782}
.discussion-message-body p{margin:5px 0 0;white-space:pre-wrap;color:#fff2d9;line-height:1.45;font-size:15px}
.discussion-compose{display:flex;gap:9px;margin-top:12px}
.discussion-compose input{flex:1;min-width:0;margin:0;color:#fff5e8;background:#20160f}
.discussion-foot{display:flex;justify-content:space-between;gap:10px;margin-top:9px;font-size:12px;color:#d0b28b}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:540px){.discussion-avatar{width:44px;height:50px;flex-basis:44px}.discussion-message{max-width:100%}.discussion-foot{flex-direction:column}.discussion-compose .btn{padding:8px 13px}}


/* Big Nose Kate close-up host card: 8 × 256px square portrait sprites.
   Her chosen artwork includes its own ornate gold frame. */
.kate-character-card { width:clamp(190px,18vw,254px); max-width:100%; gap:8px; }
.kate-character-card .character-stage,
.saloon-scene .kate-character-card .character-stage {
  display:block; width:100%; max-width:none; height:auto; aspect-ratio:1 / 1;
  flex:none; overflow:hidden; margin:0; animation:none!important; border-radius:13px;
}
.kate-character-card .sprite-avatar,
.saloon-scene .kate-character-card .sprite-avatar {
  display:block; width:100%; height:100%; aspect-ratio:1 / 1; box-sizing:border-box;
  background-size:800% 100%; background-repeat:no-repeat; background-position:0% 0%;
  border:2px solid #ba884e; border-radius:13px; background-color:#281b13;
  box-shadow:inset 0 0 0 1px #f3c87988,0 5px 14px #0009;
  transform:translateZ(0); contain:paint;
}
.kate-welcome .kate-character-card {width:210px;padding:10px;}
.kate-welcome .kate-character-card .character-stage {width:100%;height:auto;aspect-ratio:1/1;}
.kate-portrait .kate-character-card {width:min(100%,310px);}
.kate-portrait .kate-character-card .character-stage {width:100%;height:auto;aspect-ratio:1/1;}
.kate-table-host {max-width:680px;align-items:center;}
.kate-table-host .kate-character-card {width:215px;}
.kate-table-host .kate-character-card .character-stage {width:100%;height:auto;aspect-ratio:1/1;}
@media(max-width:620px){
 .kate-welcome .kate-character-card {width:143px;max-width:44vw;padding:7px;}
 .kate-welcome .kate-character-card .character-stage {width:100%;height:auto;aspect-ratio:1/1;}
 .kate-table-host .kate-character-card {width:154px;max-width:42vw;}
 .kate-table-host .kate-character-card .character-stage {width:100%;height:auto;aspect-ratio:1/1;}
 .kate-portrait .kate-character-card {width:min(100%,265px);}
}

/* Poker Table Edition: oval mahogany/card-table rail with deep green felt.
   The original saloon room logic and sprite hooks are unchanged. */
.saloon-scene.table-wrap {
  border:3px solid #985c2c;
  border-radius:18px;
  padding:14px 14px 10px;
  background:linear-gradient(145deg,rgba(31,15,10,.94),rgba(21,10,8,.88)),
             url('/art/saloon-background.webp') center/cover;
}
.saloon-scene .table-headline {
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  min-height:116px;
  padding:0 5px 11px;
}
.saloon-scene .table-headline .table-top {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:7px;
  text-align:right;
  min-width:0;
  padding:10px 8px;
  color:#f2c887;
  font:800 15px 'Barlow Condensed',sans-serif;
  letter-spacing:2.4px;
}
.saloon-scene .table-headline .table-top span:last-child {
  color:#cba777;
  font-size:12px;
  letter-spacing:1.3px;
}
.saloon-scene .kate-table-host {
  flex:0 1 auto;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:11px;
  width:auto;
  min-width:0;
  max-width:340px;
  margin:0;
  padding:0;
}
.saloon-scene .kate-table-host .kate-character-card {
  flex:0 0 92px;
  width:92px;
  max-width:92px;
  padding:5px 5px 6px;
  gap:4px;
  border:1px solid #ae7a43;
  border-radius:10px;
  box-shadow:0 4px 15px #000a, inset 0 0 0 1px #e9b96929;
}
.saloon-scene .kate-table-host .kate-character-card .character-stage {
  width:100%;height:auto;aspect-ratio:1/1;border-radius:7px;
}
.saloon-scene .kate-table-host .kate-character-card .sprite-avatar {
  border-width:1px;
  border-radius:7px;
}
.saloon-scene .kate-table-host .kate-character-name {
  font-size:10px;
  line-height:1.1;
  letter-spacing:.65px;
  white-space:nowrap;
}
.saloon-scene .kate-table-host .kate-host-words { gap:2px; }
.saloon-scene .kate-table-host .kate-host-words .panel-kicker {
  font-size:9px;letter-spacing:1.4px;
}
.saloon-scene .kate-table-host .kate-host-words strong {
  font:800 20px/1.05 'Barlow Condensed',sans-serif;
  color:#ffde9f;
}
.saloon-scene .kate-table-host .kate-host-words>span:last-child {
  font-size:11px;color:#d5b58c;
}

/* Three nested wood/leather/felt surfaces are achieved with inset shadows
   rather than expensive animated layers. There is no rectangular red table. */
.saloon-scene .poker-table,
.saloon-scene.showdown-active .poker-table {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  isolation:isolate;
  min-height:440px;
  padding:49px 38px 52px;
  overflow:hidden;
  border:15px solid #8c4f25;
  border-radius:49% / 31%;
  background:
     radial-gradient(ellipse at 50% 39%, #327156 0%, #1e5a42 48%, #113d31 78%, #0b2a23 100%);
  box-shadow:
    0 10px 0 #2d140d,
    0 15px 22px #050302b9,
    inset 0 0 0 3px #e6b76d,
    inset 0 0 0 10px #3c1d13,
    inset 0 0 0 14px #bd8450,
    inset 0 0 0 19px #123b30,
    inset 0 0 70px #051a15b0;
  animation:none;
}
.saloon-scene .poker-table::before {
  content:'';
  position:absolute;
  inset:24px;
  border:2px dashed #e2bc7c70;
  border-radius:49% / 29%;
  background:transparent;
  pointer-events:none;
  z-index:0;
}
.saloon-scene .poker-felt-decor {
  position:absolute;
  z-index:0;
  top:50%;left:50%;
  transform:translate(-50%,-50%) rotate(-2deg);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  width:max-content;
  max-width:65%;
  text-align:center;
  color:#f2dfac;
  opacity:.19;
  pointer-events:none;
  text-shadow:0 2px #061910;
}
.saloon-scene .felt-diamond {font-size:32px;line-height:1;}
.saloon-scene .felt-name {font:900 clamp(21px,3vw,39px)/1 'Barlow Condensed',sans-serif;letter-spacing:3px;}
.saloon-scene .felt-subtitle {font:800 10px 'Barlow Condensed',sans-serif;letter-spacing:2px;}
.saloon-scene .table-center {display:none;}
.saloon-scene .poker-table .players {
  z-index:1;
  position:relative;
  width:100%;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-content:center;
  align-items:flex-start;
  gap:23px 25px;
  padding:22px 12px;
}
.saloon-scene .poker-table .player-seat {
  flex:0 1 174px;
  width:174px;
  max-width:174px;
  min-width:0;
  padding:10px 8px 11px;
  gap:7px;
  border:1px solid #e0c18d3b;
  border-radius:22px 22px 32px 32px;
  background:linear-gradient(180deg,#21140c99,#0a1b16ba 72%,#071811c0);
  box-shadow:0 8px 20px #07171199,inset 0 1px 0 #edd3a82b;
}
.saloon-scene .poker-table .player-seat .character-stage {
  width:min(100%,150px);
  height:auto;
  aspect-ratio:1/1;
}
.saloon-scene .poker-table .player-name {font-size:15px;}
.saloon-scene .poker-table .player-status {color:#efcb8a;font-size:11px;}
.saloon-scene .poker-table .player-seat.has-flipped {
  border-color:#efc879;
  box-shadow:0 8px 20px #07171199,0 0 0 1px #e9b55a4d;
}
.saloon-scene .table-footer {
  padding:17px 7px 6px;
  font-size:12px;
  color:#e9c18c;
}
@media(max-width:900px){
  .saloon-scene .poker-table {
    border-width:12px;border-radius:43% / 23%;
    padding:40px 22px 43px;
  }
  .saloon-scene .poker-table .players {gap:17px 12px;padding:14px 4px;}
  .saloon-scene .poker-table .player-seat {flex-basis:158px;width:158px;max-width:158px;}
}
@media(max-width:620px){
  .saloon-scene.table-wrap {padding:10px 8px 8px;}
  .saloon-scene .table-headline {min-height:92px;gap:6px;padding-bottom:9px;}
  .saloon-scene .kate-table-host {gap:8px;}
  .saloon-scene .kate-table-host .kate-character-card {flex-basis:72px;width:72px;max-width:72px;padding:4px;}
  .saloon-scene .kate-table-host .kate-character-name {font-size:8px;letter-spacing:0;}
  .saloon-scene .kate-table-host .kate-host-words strong {font-size:16px;}
  .saloon-scene .kate-table-host .kate-host-words>span:last-child {display:none;}
  .saloon-scene .table-headline .table-top {font-size:12px;letter-spacing:1px;padding:6px 0;}
  .saloon-scene .table-headline .table-top span:last-child {font-size:10px;letter-spacing:.4px;}
  .saloon-scene .poker-table {
    min-height:360px;
    border-width:10px;
    border-radius:34% / 13%;
    padding:30px 9px 34px;
    box-shadow:0 7px 0 #2d140d,0 12px 18px #0009,inset 0 0 0 3px #e6b76d,
      inset 0 0 0 8px #3c1d13,inset 0 0 0 12px #bd8450,inset 0 0 48px #051a15b0;
  }
  .saloon-scene .poker-table::before {inset:18px 13px;border-radius:32% / 12%;}
  .saloon-scene .poker-table .players {gap:11px 7px;padding:12px 0;}
  .saloon-scene .poker-table .player-seat {flex:1 1 125px;max-width:155px;padding:9px 4px;}
  .saloon-scene .poker-table .player-seat .character-stage {width:min(100%,132px);}
}
@media(max-width:380px){
  .saloon-scene .kate-table-host .kate-host-words {display:none;}
  .saloon-scene .table-headline .table-top {flex:1;}
  .saloon-scene .poker-table .player-seat {flex-basis:110px;}
}


/* Kate zoomable portrait: her miniature sprite keeps animating beneath the lightbox. */
.kate-zoom-trigger {
  display:block; width:100%; margin:0; padding:0; border:0; border-radius:inherit;
  background:transparent; color:inherit; cursor:zoom-in; font:inherit;
}
.kate-zoom-trigger:focus-visible { outline:3px solid #ffe6a7; outline-offset:5px; }
.kate-zoom-trigger:hover .sprite-avatar { filter:brightness(1.08); }
.kate-lightbox {
  position:fixed; inset:0; box-sizing:border-box; margin:auto;
  width:min(94vw,750px); max-width:750px; max-height:96dvh;
  padding:16px; border:2px solid #c69a54; border-radius:20px;
  background:linear-gradient(145deg,#432a1b,#21150f); color:#f8e4bb;
  box-shadow:0 26px 85px #000e; overflow:auto;
}
.kate-lightbox::backdrop { background:rgba(8,5,3,.84); backdrop-filter:blur(5px); }
.kate-lightbox-inner { position:relative; display:flex; flex-direction:column; align-items:center; gap:9px; }
.kate-lightbox-inner img {
  display:block; width:auto; max-width:100%; height:auto; max-height:calc(96dvh - 120px);
  aspect-ratio:1; object-fit:contain; border-radius:10px;
}
.kate-lightbox-close {
  position:absolute; top:9px; right:9px; z-index:2;
  width:44px; height:44px; border:2px solid #d7ac62; border-radius:50%;
  background:rgba(36,20,13,.92); color:#fff3d4; font:700 30px/1 sans-serif;
  cursor:pointer;
}
.kate-lightbox-close:hover,.kate-lightbox-close:focus-visible { background:#704028; outline:2px solid #f7d28f; }
.kate-lightbox-caption { font:800 18px 'Barlow Condensed',sans-serif; letter-spacing:1.6px; text-align:center; }
.kate-lightbox-caption span { display:block; margin-top:3px; color:#ceb58d; font:500 12px sans-serif; letter-spacing:.6px; }
@media (max-width:620px) { .kate-lightbox { padding:10px; border-radius:12px; } }

/* ── Legends of the Frontier: a private, personalized Wild West dossier ── */
.legend-room-link{border:1px solid #d6a15a!important;background:linear-gradient(120deg,#53321e,#86532a)!important;color:#ffe3a9!important}
.legend-mini-invite{margin-top:18px;padding:15px;border:1px dashed #bb925a;border-radius:10px;background:linear-gradient(135deg,#352519,#281c16);text-align:center}
.legend-mini-invite>span{font:800 12px 'Barlow Condensed',sans-serif;letter-spacing:1.4px;color:#f6ce8f}
.legend-mini-invite p{font-size:12px;line-height:1.5;margin:7px 0 12px;color:#edcf9f}
.legend-mini-invite .btn{white-space:normal;line-height:1.25}
/* Keep the two dossier actions visually separate at all widths. */
.legend-mini-invite .btn + .btn{margin-top:12px}
.legend-seat-link{color:#f8d187;font:800 10px 'Barlow Condensed',sans-serif;letter-spacing:.9px;text-decoration:underline;text-underline-offset:3px;margin-top:3px}
.legend-seat-link:focus-visible,.legend-back:focus-visible,.legend-chapter-tabs button:focus-visible{outline:3px solid #fff1bd;outline-offset:3px}
.legend-page{max-width:1100px;margin:0 auto;color:#f8e5bf}
.legend-upper{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:28px}
.legend-back{color:#eac58a;font:800 14px 'Barlow Condensed',sans-serif;letter-spacing:1.1px;text-decoration:underline;text-underline-offset:5px}
.legend-record{font:700 10px 'DM Sans',sans-serif;letter-spacing:2px;color:#bd9964}
.legend-masthead{text-align:center;margin:20px 0 30px}
.legend-overline{font:800 13px 'Barlow Condensed',sans-serif;letter-spacing:4px;color:#d9aa67}
.legend-masthead h1{font:900 clamp(44px,7.5vw,96px)/.95 'Barlow Condensed',sans-serif;color:#f8e2ab;text-shadow:0 6px 15px #000;margin:12px 0;letter-spacing:2px}
.legend-masthead h1 em{display:inline-block;color:#bb8045;font-size:.55em;vertical-align:8px;font-style:normal}
.legend-masthead>p:last-child{color:#d6b989;font-size:15px;margin:15px 0}
.legend-cover{display:grid;grid-template-columns:minmax(220px,360px) 1fr;gap:32px;align-items:center;border:4px double #a66f3a;padding:clamp(16px,3vw,35px);border-radius:18px;background:radial-gradient(circle at 20% 30%,#593922 0,#2c1b14 48%,#1a130f 100%);box-shadow:0 15px 45px #0008, inset 0 0 0 2px #412819}
.legend-portrait-frame{width:100%;aspect-ratio:1;position:relative;overflow:hidden;padding:9px;border:4px ridge #b8843f;border-radius:20px;background:#22160f;box-shadow:0 0 0 3px #322018,0 10px 28px #000a}
.legend-sprite{width:100%;height:100%;aspect-ratio:1;background-size:800% 100%;background-repeat:no-repeat;border-radius:12px;box-shadow:inset 0 0 25px #0009}
.legend-corner{position:absolute;color:#ffd17e;font-size:26px;text-shadow:0 2px 5px #000;z-index:2;pointer-events:none}
.legend-corner-tl{top:0;left:4px}.legend-corner-br{bottom:0;right:4px}
.legend-cover-copy{min-width:0}
.legend-type{font:800 12px 'Barlow Condensed',sans-serif;letter-spacing:3px;color:#edbb68}
.legend-cover-copy h2{font:900 clamp(44px,6vw,85px)/.9 'Barlow Condensed',sans-serif;color:#fff1c9;overflow-wrap:anywhere;margin:15px 0}
.legend-epithet{font:700 clamp(20px,2.5vw,30px) 'Barlow Condensed',sans-serif;color:#f2bc72;margin:6px 0}
.legend-rule{margin:23px 0;color:#d59d55;letter-spacing:4px}
.legend-quick-facts{display:flex;gap:30px;flex-wrap:wrap}
.legend-quick-facts div{display:flex;flex-direction:column;gap:5px;max-width:260px}
.legend-quick-facts span{color:#b3a087;font:700 10px 'DM Sans',sans-serif;letter-spacing:1.4px}
.legend-quick-facts strong{color:#ffe5b0;font-size:14px}
.legend-cover-copy blockquote{margin:23px 0 0;padding:12px 0 12px 15px;border-left:3px solid #d6a25f;font:italic 18px Georgia,serif;color:#efce9c;line-height:1.45}
.legend-manuscript{margin:30px auto 0;max-width:940px}
.legend-chapter-heading{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:10px 5px;color:#ebbb75;font:800 11px 'Barlow Condensed',sans-serif;letter-spacing:2px}
.legend-chapter-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:0 8px}
.legend-chapter-tabs button{flex:1;min-width:140px;padding:13px 8px;background:#37251a;border:1px solid #94643b;border-radius:9px 9px 0 0;color:#d8bd92;font:800 13px 'Barlow Condensed',sans-serif;letter-spacing:1px}
.legend-chapter-tabs button.active{background:#efd4a1;color:#47270f;border-color:#efd4a1}
.legend-paper{min-height:300px;position:relative;border:8px double #865a31;border-radius:7px;background:radial-gradient(ellipse at center,#ffe8b6,#ecc997 85%,#d4ab77);padding:clamp(24px,4.7vw,60px);color:#382313;box-shadow:0 8px 30px #0009,inset 0 0 35px #985c2955}
.legend-paper:before{content:'';pointer-events:none;position:absolute;inset:14px;border:1px solid #ab7c4c88}
.legend-flourish{display:block;text-align:center;font-size:30px;color:#965a2e}
.legend-paper h3{font:900 clamp(25px,4vw,40px) 'Barlow Condensed',sans-serif;text-align:center;margin:12px 0 22px;color:#552d18}
.legend-paper>p{font:clamp(17px,2vw,21px)/1.85 Georgia,'Times New Roman',serif;max-width:700px;margin:0 auto;position:relative;z-index:1}
.legend-paper-footer{margin-top:32px;display:flex;justify-content:space-between;gap:15px;font:italic 12px Georgia,serif;color:#805230}
.legend-chapter-actions{display:flex;justify-content:space-between;gap:12px;margin:17px 0 0}
.legend-rumor{max-width:840px;margin:33px auto;padding:25px 35px;border:1px solid #9d783f;border-radius:12px;background:linear-gradient(130deg,#34221a,#201916);box-shadow:inset 0 0 25px #100a0555}
.legend-rumor h3{font:900 28px 'Barlow Condensed',sans-serif;margin:8px 0;color:#ffdfab}
.legend-rumor p{font:italic 19px/1.7 Georgia,serif;color:#ecd0a4}
.legend-signed{display:block;text-align:right;color:#dfb575;font:italic 15px Georgia,serif}
.legend-farewell{text-align:center;padding:6px 0 35px}
.legend-farewell p{font:italic 19px Georgia,serif;color:#e5c697;margin:15px 0 23px}
.legend-locked,.legend-loading{max-width:720px;margin:55px auto;text-align:center;padding:65px 35px}
.legend-locked h1,.legend-loading h1{font:900 48px 'Barlow Condensed',sans-serif;color:#ffe0a8}
.legend-locked p{max-width:480px;margin:15px auto 25px;line-height:1.7}
.legend-seal{font-size:68px;color:#cd9c56}
@media(max-width:720px){.legend-cover{grid-template-columns:1fr;gap:22px}.legend-portrait-frame{max-width:350px;margin:auto}.legend-cover-copy{text-align:center}.legend-quick-facts{justify-content:center}.legend-cover-copy blockquote{text-align:left}.legend-masthead h1 em{vertical-align:4px}.legend-paper{min-height:340px}.legend-rumor{padding:23px}.legend-chapter-actions .btn{font-size:12px}}
@media(prefers-reduced-motion:reduce){.legend-sprite{background-position:0% 0%!important}}


/* Legends of the Frontier portrait refinement: full-resolution, stable image.
   Keep moving effects on the frame, not on the portrait pixels. */
.legend-portrait-frame {
  isolation:isolate;
  padding:8px;
  overflow:hidden;
  animation:legendFrameGlow 10s ease-in-out infinite;
}
.legend-portrait-image {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  border-radius:10px;
  border:0;
  box-shadow:none;
  filter:none;
  transform:none;
  animation:none;
  image-rendering:auto;
}
.legend-portrait-frame .legend-corner {
  animation:legendCornerGlimmer 9s ease-in-out infinite;
}
.legend-portrait-frame .legend-corner-br { animation-delay:-4.5s; }
@keyframes legendFrameGlow {
  0%,100% { border-color:#ae8248; box-shadow:0 0 0 3px #322018,0 10px 28px #000a; }
  50% { border-color:#c59959; box-shadow:0 0 0 3px #322018,0 10px 28px #000a,0 0 11px #dbab4d28; }
}
@keyframes legendCornerGlimmer {
  0%,100% { opacity:.75; }
  50% { opacity:1; }
}
@media (prefers-reduced-motion:reduce) {
  .legend-portrait-frame,.legend-portrait-frame .legend-corner { animation:none!important; }
}

/* Player portrait lightbox: click the animated portrait to see crisp original art. */
.player-zoom-trigger {
  display:block; width:fit-content; max-width:100%; margin:0 auto; padding:0;
  border:0; border-radius:20px; color:inherit; background:transparent;
  cursor:zoom-in; font:inherit;
}
.player-zoom-trigger:focus-visible, .claimed-avatar-trigger:focus-visible {
  outline:3px solid #ffe6a7; outline-offset:5px;
}
.player-zoom-trigger:hover .sprite-avatar { border-color:#ffdf9c; }
.claimed-avatar-trigger {
  display:flex; flex-direction:column; align-items:center; gap:7px;
  width:min(100%,178px); margin:14px auto; padding:10px;
  border:2px solid #bb8a52; border-radius:14px;
  background:linear-gradient(150deg,#51311f,#221610); color:#fbe3af;
  font:800 12px 'Barlow Condensed',sans-serif; letter-spacing:1px;
  cursor:zoom-in;
}
.claimed-avatar-trigger img {display:block;width:100%;aspect-ratio:1;object-fit:contain;border-radius:10px;}
.claimed-avatar-trigger:hover {border-color:#ffe2a2;}
.avatar-locked-note {font-size:13px;line-height:1.5;color:#e5c58a;text-align:center;}
.player-lightbox .kate-lightbox-inner img {max-height:calc(96dvh - 125px);object-fit:contain;}
.player-lightbox .kate-lightbox-caption .player-lightbox-name {
  display:block; color:#f8e4bb; font:800 21px 'Barlow Condensed',sans-serif;letter-spacing:1.3px;
}
.player-lightbox .kate-lightbox-caption .player-lightbox-role {color:#d7b57c;letter-spacing:1.6px;}
/* Preserve the poker-table avatar size when wrapping its sprite in a button. */
.saloon-scene .poker-table .player-seat .player-zoom-trigger {
  width:min(100%,150px);
  flex-shrink:0;
}
.saloon-scene .poker-table .player-seat .player-zoom-trigger .character-stage {
  width:100%; height:auto; aspect-ratio:1/1;
}
@media(max-width:620px) {
  .saloon-scene .poker-table .player-seat .player-zoom-trigger { width:min(100%,132px); }
}

/* Public read-only Legends archive. No session token is needed for character lore. */
.legend-roster{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;max-width:1180px;margin:28px auto 60px}
.legend-roster-card{display:flex;gap:13px;align-items:center;padding:13px;border:2px solid #a8793f;border-radius:13px;background:linear-gradient(135deg,#38241b,#211712);color:#f8e3bf;text-decoration:none;min-width:0;transition:border-color .2s,background-color .2s}
.legend-roster-card:hover,.legend-roster-card:focus-visible{border-color:#f1c47a;background:#4a2b1d}
.legend-roster-card img{width:104px;height:118px;flex-shrink:0;border-radius:8px;object-fit:cover;border:2px solid #d8a85e}
.legend-roster-copy{min-width:0;display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}
.legend-roster-copy strong{font-size:19px;color:#ffdea0}
.legend-roster-copy small{letter-spacing:2px;color:#deb679}
.legend-roster-copy em{font-size:13px;color:#e1c9a0}
.legend-roster-copy>span{font-size:11px;font-weight:bold;color:#f3c575;letter-spacing:1px}
@media(max-width:480px){.legend-roster{grid-template-columns:1fr}.legend-roster-card img{width:88px;height:100px}}


/* The current player's identity is marked on the seat, not appended to the name.
   The badge sits independently above the portrait so long names stay readable. */
.saloon-scene .poker-table .player-seat.player-seat--mine {
  border-color: #f2d188;
  box-shadow: 0 0 0 2px rgba(255, 228, 153, .5), 0 8px 18px rgba(0, 0, 0, .55);
}
.saloon-scene .poker-table .player-seat .player-self-badge {
  position: absolute;
  top: -9px;
  right: -7px;
  z-index: 7;
  pointer-events: none;
  white-space: nowrap;
  padding: 3px 7px;
  border: 1px solid #fff0bf;
  border-radius: 999px;
  background: #d8a75a;
  color: #261609;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .65);
  font: 800 11px/1.2 'Barlow Condensed', sans-serif;
  letter-spacing: .7px;
}
.saloon-scene .poker-table .player-seat .player-name {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

/* Backlog Gulch floating Roundtable. Content remains in the existing SignalR room;
   only presentation changes. The game is still usable while the drawer is open. */
.discussion-launcher {
 position:fixed;z-index:110;right:clamp(16px,3vw,38px);bottom:clamp(15px,3vw,35px);
 display:flex;align-items:center;gap:10px;border:2px solid #f6d38c;border-radius:40px;
 padding:13px 19px;background:linear-gradient(120deg,#8a4924,#3e261a);
 color:#ffedc8;box-shadow:0 7px 25px #000b;letter-spacing:1.1px;
 font:800 15px 'Barlow Condensed',sans-serif;cursor:pointer;transition:transform .2s,background .2s;
}
.discussion-launcher:hover,.discussion-launcher:focus-visible{transform:translateY(-3px);outline:2px solid #ffdd9b;outline-offset:2px}
.discussion-launcher.is-active{display:none}
.discussion-launcher-icon{font-size:22px;color:#ffe3ac}
.discussion-unread{display:inline-grid;place-items:center;min-width:25px;height:25px;padding:0 5px;border-radius:16px;background:#f1c778;color:#30180c;font:900 13px Arial,sans-serif}
.discussion-drawer{position:fixed;z-index:105;top:90px;right:12px;bottom:88px;
 width:min(420px,calc(100vw - 24px));transform:translateX(calc(100% + 24px));
 opacity:0;visibility:hidden;pointer-events:none;transition:transform .32s cubic-bezier(.2,.85,.25,1),opacity .25s,visibility .32s;
}
.discussion-drawer.is-open{transform:translateX(0);opacity:1;visibility:visible;pointer-events:auto}
.discussion-drawer .discussion-panel{margin:0;padding:18px;display:flex;flex-direction:column;height:100%;overflow:hidden;
 background:linear-gradient(153deg,#342117,#1b1512);border:2px solid #d1a267;border-radius:15px;box-shadow:0 17px 55px #000c}
.discussion-drawer .discussion-head{flex:0 0 auto;align-items:flex-start;flex-wrap:nowrap;gap:10px}
.discussion-drawer .discussion-head h2{font-size:27px}
.discussion-drawer .discussion-head .hint{line-height:1.35}
.discussion-close{flex:0 0 auto;background:#55341f;color:#ffe3b0;border:1px solid #b78b54;
 width:34px;height:34px;border-radius:8px;font-size:20px;line-height:1;cursor:pointer}
.discussion-drawer .discussion-log{flex:1 1 auto;max-height:none;min-height:0;overflow-y:auto}
.discussion-drawer .discussion-compose{flex:0 0 auto}
.discussion-drawer .discussion-foot{flex:0 0 auto;flex-wrap:wrap;line-height:1.35}
.discussion-drawer .discussion-head .btn{padding:7px 12px;font-size:12px}
.discussion-mobile-backdrop{display:none}
@media(max-width:650px){
 .discussion-launcher{right:12px;bottom:12px;padding:10px 14px;z-index:125}
 .discussion-mobile-backdrop{display:block;position:fixed;inset:0;background:#0008;border:0;z-index:110}
 .discussion-drawer{z-index:120;top:auto;right:0;bottom:0;width:100vw;height:min(82dvh,700px);
  transform:translateY(110%);transition:transform .32s cubic-bezier(.2,.85,.25,1),opacity .25s,visibility .32s}
 .discussion-drawer.is-open{transform:translateY(0)}
 .discussion-drawer .discussion-panel{border-radius:18px 18px 0 0;padding:16px 14px 74px}
 .discussion-drawer .discussion-message{max-width:100%}
 .discussion-drawer .discussion-head h2{font-size:24px}
}
@media(prefers-reduced-motion:reduce){.discussion-drawer,.discussion-launcher{transition:none}}

.discussion-drawer .discussion-moderate{flex:0 0 auto;align-self:flex-start;margin:-4px 0 11px;padding:7px 12px;font-size:12px}

/* Persistent session chat entry points and Sheriff-only history clearing. */
.room-chat-action{white-space:nowrap;display:inline-flex;align-items:center;gap:7px}
.chat-header-count{display:inline-grid;place-items:center;background:#f1c778;color:#30180c;border-radius:20px;min-width:22px;height:22px;padding:0 5px;font:bold 12px Arial,sans-serif}
.discussion-admin{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 12px;color:#f4d2a1;font-size:12px}
.discussion-admin .discussion-moderate{margin:0;flex:0 0 auto}
.discussion-admin button:disabled{opacity:.4;cursor:default}

/* Kate's public lore links; room gameplay and avatar roster remain unchanged. */
.kate-story-shortcuts{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;padding:22px 10px 10px}
.kate-story-shortcuts .btn{min-width:205px;text-align:center}
.kate-host-words a{color:#ffd98d;font-size:12px;font-weight:800;letter-spacing:1px;text-decoration:underline;text-underline-offset:3px}
.kate-welcome a{margin-right:14px;display:inline-block}


/* Full-width Backlog Gulch masthead; Kate's film now plays after her four chapters. */
.saloon-hero{max-width:1240px;margin:0 auto 20px;text-align:center;padding:65px 28px 50px}
.saloon-hero h1{font-size:clamp(72px,10.1vw,150px);line-height:.94;letter-spacing:2px}
.backlog-hero-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:18px;margin-top:28px}
.backlog-story-link{font:800 13px 'Barlow Condensed',sans-serif;color:#f7cb88;text-decoration:underline;text-underline-offset:4px;letter-spacing:1.1px}
#saloon-entry{scroll-margin-top:22px}
@media(max-width:620px){.saloon-hero{padding:44px 14px 36px}.saloon-hero h1{font-size:clamp(54px,13vw,85px)}.backlog-hero-actions{gap:14px}}


/* Backlog Gulch compact homepage: wide masthead, game entry first, Kate below. */
.saloon-hero{
  max-width:1280px;
  margin:0 auto 24px;
  padding:25px 38px 28px;
  min-height:0;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0;
}
.saloon-hero::before,.saloon-hero::after{font-size:28px;top:18px}
.saloon-hero h1{
  font-family:Georgia,serif;
  font-size:clamp(49px,6.15vw,86px);
  line-height:1.05;
  letter-spacing:1px;
  white-space:nowrap;
  margin:7px 0 3px;
}
.saloon-hero .eyebrow{font-size:10px;letter-spacing:2.2px}
.saloon-hero .hero-lead{font-size:clamp(19px,2.1vw,25px)!important;margin:5px 0 9px!important}
.saloon-hero .backlog-hero-actions{margin-top:12px;gap:10px 20px}
.saloon-hero .backlog-hero-actions .btn{padding:11px 20px}
.saloon-entrance{margin-top:0;margin-bottom:25px;scroll-margin-top:20px}
.kate-welcome--below{margin-top:0;margin-bottom:40px;max-width:950px}
@media(max-width:900px){
 .saloon-hero{padding:23px 23px 25px}
 .saloon-hero h1{font-size:clamp(44px,7.4vw,72px)}
}
@media(max-width:620px){
 .saloon-hero{padding:25px 15px 24px;margin-bottom:18px}
 .saloon-hero::before,.saloon-hero::after{font-size:18px;top:9px}
 .saloon-hero::before{left:11px}.saloon-hero::after{right:11px}
 .saloon-hero h1{font-size:clamp(35px,8.7vw,54px);letter-spacing:0;white-space:normal;line-height:1.02}
 .saloon-hero .eyebrow{font-size:9px;letter-spacing:1px;padding:0 12px}
 .saloon-hero .hero-lead{font-size:20px!important;margin:9px 0 7px!important}
 .saloon-hero .backlog-hero-actions{flex-direction:column;gap:12px;margin-top:13px}
 .saloon-hero .backlog-hero-actions .btn{width:100%}
 .saloon-entrance{margin-bottom:24px}
 .kate-welcome--below{margin-bottom:35px}
}
@media(prefers-reduced-motion:reduce){.saloon-hero .btn{transition:none}}

/* Homepage: uncluttered masthead, Kate's story directly underneath, then game entry. */
.saloon-hero{margin-bottom:16px;padding-bottom:24px}
.saloon-hero .hero-lead{margin-bottom:0!important}
.saloon-hero + .kate-welcome--below{margin:0 auto 22px;max-width:950px}
.saloon-hero + .kate-welcome--below + .saloon-entrance{margin-top:0}
@media(max-width:620px){
 .saloon-hero{margin-bottom:14px}
 .saloon-hero + .kate-welcome--below{margin-bottom:20px}
}


/* Backlog Gulch: authentic Old West wood-type masthead.
   Rye is a Western display face; Georgia is a safe network/offline fallback.
   Limit this treatment to the saloon title, not headings or form labels. */
.saloon-hero #gulch-title{
  font-family:'Rye',Georgia,serif;
  font-weight:400;
  font-size:clamp(42px,5.55vw,76px);
  line-height:1.18;
  letter-spacing:.028em;
  white-space:normal;
  margin:10px 0 8px;
  color:#ffe0a2;
  -webkit-text-stroke:.35px #713b18;
  text-shadow:0 2px 0 #ac713e,0 4px 0 #51230f,0 7px 7px #000a;
  text-wrap:balance;
}
.saloon-hero #gulch-title span{color:#f4ad4a}
@media (max-width:900px){
  .saloon-hero #gulch-title{font-size:clamp(37px,6.1vw,61px);letter-spacing:.018em}
}
@media (max-width:620px){
  .saloon-hero #gulch-title{font-size:clamp(32px,7.6vw,44px);line-height:1.2;letter-spacing:0;margin:10px 0 7px}
}

/* Sheriff-only, explicitly confirmed story-file import. */
.story-import-box{margin:18px 0 12px;padding:17px;border:1px solid #b88a4b;border-radius:9px;background:linear-gradient(145deg,#35291d,#211b17);color:#f1dfb8}
.story-import-box h3{font:800 21px 'Barlow Condensed',sans-serif;margin:8px 0 5px;color:#f1d49a}
.story-import-box p{font-size:12px;line-height:1.5;color:#ddc7a4}
.story-import-box label{display:block;font-weight:700;font-size:12px;margin:16px 0 8px}
.story-import-box input[type=file]{display:block;width:100%;font-size:12px;max-width:100%;color:#f0dab4;overflow-wrap:anywhere}
.story-import-box input[type=file]::file-selector-button{background:#97642e;color:white;border:1px solid #c59a59;padding:8px 10px;margin-right:7px;border-radius:5px;cursor:pointer}
.story-import-template{display:inline-block;color:#ffe4a8;font-size:11px;font-weight:800;letter-spacing:.3px;text-decoration:underline;text-underline-offset:3px;margin-top:7px}
.story-import-preview{margin-top:13px;border-top:1px solid #806642;padding-top:13px;font-size:12px}
.story-import-preview-items{margin:10px 0;max-height:240px;overflow:auto}
.story-import-preview-items>div{padding:6px 2px;border-bottom:1px solid #6a4e32;display:flex;gap:8px;flex-direction:column}
.story-import-preview-items small{color:#edba70}
.story-import-preview-items span{overflow-wrap:anywhere}
.story-import-box .story-import-error{color:#ffb0a3;font-weight:700}
.story-import-box .story-import-warning{color:#ffcf98;border-left:3px solid #e3a45d;padding-left:9px}
.story-import-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.story-import-actions .btn{flex:1 1 110px}


/* THE TRAIL LEDGER — 250-story-friendly navigation and antique scroll treatment. */
.ledger .story-navigator{padding:12px 0 0;min-width:0}
.ledger .story-navigator-summary{display:flex;gap:6px 12px;align-items:baseline;justify-content:space-between;flex-wrap:wrap;margin:0 0 10px;color:#592d19;font-family:'Barlow Condensed',sans-serif;letter-spacing:.06em}
.ledger .story-navigator-summary strong{font-size:16px}
.ledger .story-navigator-summary span{font-size:12px;font-weight:800;color:#87502d}
.ledger .story-navigator-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0 13px}
.ledger .story-nav-btn{min-width:0;padding:10px 7px;font:800 13px 'Barlow Condensed',sans-serif;letter-spacing:.05em;background:#6a351e;border:1px solid #a36a3d;color:#ffe2ac;border-radius:6px;transition:filter .15s}
.ledger .story-nav-btn:not(:disabled):hover{filter:brightness(1.2)}
.ledger .story-nav-btn:disabled{opacity:.38}
.ledger .story-search-label{display:block;font:800 11px 'Barlow Condensed',sans-serif;letter-spacing:1.2px;color:#66371e;margin-bottom:6px}
.ledger .story-search-input{display:block;width:100%;min-width:0;padding:10px 11px;border-radius:6px;background:#fff4dd;border:1px solid #a16b3b;color:#432713;font-size:13px;outline:none}
.ledger .story-search-input::placeholder{color:#8b6f54}
.ledger .story-search-input:focus{border-color:#692e17;box-shadow:0 0 0 2px #b0713b66}
.ledger .story-search-count{margin:8px 0 2px;font:700 12px 'Barlow Condensed',sans-serif;color:#714126}
.ledger .story-list--scroll{height:auto;max-height:380px;overflow-y:auto;overscroll-behavior:contain;padding:2px 7px 2px 0;margin:10px 0 14px;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#a56738 #e2bc85}
.ledger .story-list--scroll .story-row{flex-shrink:0;min-height:0}
.ledger .story-list--scroll .story-row.active{box-shadow:inset 4px 0 0 #78331c}
.ledger .story-search-empty{color:#654028;font-size:13px;line-height:1.45;padding:14px 8px;margin:0}
/* Shared scrollbar palette: desktop Chromium/Safari and Firefox equivalents. */
.ledger .story-list--scroll::-webkit-scrollbar,
.ledger .story-import-preview-items::-webkit-scrollbar{width:10px}
.ledger .story-list--scroll::-webkit-scrollbar-track{background:#e2bc85;border-radius:9px;border:1px solid #b98b54}
.ledger .story-list--scroll::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#c0884b,#8d4929);border-radius:9px;border:2px solid #e2bc85}
.ledger .story-list--scroll::-webkit-scrollbar-thumb:hover{background:#74351e}
.ledger .story-import-preview-items{max-height:205px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding-right:8px;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#ac7647 #3b291d}
.ledger .story-import-preview-items::-webkit-scrollbar-track{background:#3b291d;border-radius:9px}
.ledger .story-import-preview-items::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#c79658,#93572e);border:2px solid #3b291d;border-radius:9px}
.ledger .story-import-preview-items::-webkit-scrollbar-thumb:hover{background:#dfac6f}
@media(max-width:620px){
 .ledger .story-list--scroll{max-height:315px}
 .ledger .story-nav-btn{font-size:12px}
}

/* Sheriff story board: a full-backlog, searchable Western card catalog. */
.ledger .story-board-open{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left;border-radius:7px;border:2px solid #ae713c;background:linear-gradient(135deg,#75381f,#4e261b);color:#ffe1a7;padding:12px 10px;margin:12px 0 2px;font:800 15px 'Barlow Condensed',sans-serif;letter-spacing:.06em}
.ledger .story-board-open:hover{background:linear-gradient(135deg,#90512c,#5c3020);border-color:#f2c077}
.ledger .story-board-open span{font-size:22px;line-height:1}
.ledger .story-board-open small{font-size:10px;letter-spacing:.05em;opacity:.88}
.story-board-dialog{position:fixed;margin:auto;inset:0;width:min(1120px,calc(100vw - 36px));max-width:none;max-height:min(90vh,900px);padding:0;border:3px solid #c3924f;border-radius:13px;background:#261a15;color:#ffe4b6;box-shadow:0 18px 90px #000e;overflow:hidden}
.story-board-dialog::backdrop{background:rgba(9,6,4,.80);backdrop-filter:blur(5px)}
.story-board-shell{display:flex;flex-direction:column;min-height:0;max-height:calc(min(90vh,900px) - 6px)}
.story-board-header{display:flex;justify-content:space-between;align-items:start;gap:18px;padding:23px 26px 15px;border-bottom:1px solid #815733;background:linear-gradient(120deg,#3c2319,#251812)}
.story-board-header h2{font:900 clamp(28px,4vw,40px) 'Barlow Condensed',sans-serif;margin:4px 0 5px;color:#ffdda1}
.story-board-header p{margin:0;color:#e2c4a1;font-size:13px;line-height:1.5}
.story-board-close{flex:0 0 40px;height:40px;background:#6a3625;color:#fff0cb;border:1px solid #c38b53;border-radius:7px;font-size:21px}
.story-board-close:hover{background:#864b31}
.story-board-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,200px) auto;align-items:end;gap:14px;padding:15px 26px;background:#34251c;border-bottom:1px solid #815733}
.story-board-toolbar label{font:800 12px 'Barlow Condensed',sans-serif;letter-spacing:1px;color:#f0c68e}
.story-board-toolbar input,.story-board-toolbar select{display:block;width:100%;height:41px;margin-top:6px;min-width:0;background:#1d211e;color:#ffe3b1;border:1px solid #926843;border-radius:6px;padding:9px 11px;font:500 13px 'DM Sans',sans-serif}
.story-board-toolbar :is(input,select):focus-visible,.story-board-dialog button:focus-visible{outline:3px solid #f5c66e;outline-offset:2px}
.story-board-total{padding-bottom:10px;white-space:nowrap;font:800 14px 'Barlow Condensed',sans-serif;color:#edbd79}
.story-board-results{flex:1;min-height:140px;overflow-y:auto;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:13px;padding:22px 24px;scrollbar-width:thin;scrollbar-color:#bf894c #32231c}
.story-board-results::-webkit-scrollbar{width:10px}.story-board-results::-webkit-scrollbar-track{background:#32231c}.story-board-results::-webkit-scrollbar-thumb{background:#a86f3a;border:2px solid #32231c;border-radius:8px}
.story-board-card{min-width:0;display:flex;flex-direction:column;gap:8px;padding:17px;border:1px solid #b18a5b;border-radius:8px;background:linear-gradient(145deg,#f6dfba,#e3bf8e);color:#3e2518;box-shadow:0 5px 14px #0004}
.story-board-card.is-current{background:linear-gradient(145deg,#ffd88e,#eeb66c);border:2px solid #c97330;box-shadow:inset 0 0 0 2px #85411b,0 5px 15px #0006}
.story-board-card-top{display:flex;flex-wrap:wrap;gap:5px 9px;justify-content:space-between;align-items:baseline}
.story-board-id{font:900 14px 'Barlow Condensed',sans-serif;letter-spacing:.5px;color:#864020}
.story-board-status{font:800 11px 'Barlow Condensed',sans-serif;letter-spacing:.04em;color:#81502f}
.story-board-card h3{font:800 20px/1.15 'Barlow Condensed',sans-serif;margin:3px 0 0;overflow-wrap:anywhere}
.story-board-description,.story-board-criteria{font-size:12px;line-height:1.55;white-space:pre-line;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;margin:0;overflow-wrap:anywhere}
.story-board-criteria{color:#65452e;-webkit-line-clamp:3;line-clamp:3}
.story-board-choose{margin-top:auto;min-height:40px;background:#69361f;border:1px solid #814322;color:#ffe2a8;border-radius:5px;padding:9px 11px;font:800 13px 'Barlow Condensed',sans-serif;letter-spacing:.04em}
.story-board-choose:not(:disabled):hover{background:#8a4927}.story-board-choose:disabled{background:#af915b;color:#51341f;opacity:1}
.story-board-no-results{grid-column:1/-1;text-align:center;padding:35px;color:#f1d3a6}
.story-board-footer{padding:13px 25px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #815733;background:#30221b;font-size:12px;color:#d7ba90;text-align:left}
.story-board-footer .btn{flex-shrink:0}
@media(max-width:850px){.story-board-results{grid-template-columns:repeat(2,minmax(0,1fr))}.story-board-toolbar{grid-template-columns:minmax(0,1fr) minmax(135px,180px)}.story-board-total{grid-column:1/-1;padding-bottom:0}}
@media(max-width:560px){.story-board-dialog{width:calc(100vw - 14px);max-height:94vh}.story-board-shell{max-height:calc(94vh - 6px)}.story-board-header{padding:16px 14px 12px}.story-board-header p{font-size:12px}.story-board-toolbar{padding:12px 14px;grid-template-columns:1fr}.story-board-results{grid-template-columns:1fr;padding:14px}.story-board-footer{padding:10px 14px;flex-direction:column;align-items:stretch}.story-board-footer .btn{width:100%}.ledger .story-board-open{flex-wrap:wrap}}
