/* BEARS OF THE BROKEN CLAW · THE WILD FRONTIER v1.8
   Readability, deliberate expedition choices and cinematic effects without puppet animation. */
:root{--wf-gold:#eac27e;--wf-cream:#faefd4;--wf-rim:#a7834c;--wf-turquoise:#87d6c5;--wf-bg:#0a1518}
.site h1,.site h2,.site h3,.dialog h2,.claw-arena h2{font-family:Palatino,'Palatino Linotype','Book Antiqua',Georgia,serif!important;letter-spacing:.012em;text-wrap:balance}
.site p,.dialog-body p,.dialog blockquote{line-height:1.58;overflow-wrap:break-word}
.site .btn,.dialog .btn,.site button,.claw-arena button{transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,filter .18s ease,transform .16s ease}
.site button:hover:not(:disabled),.dialog button:hover:not(:disabled){filter:brightness(1.13)}
.site button:active:not(:disabled),.dialog button:active:not(:disabled),.claw-arena button:active:not(:disabled){transform:translateY(1px)}
.site :focus-visible,.dialog :focus-visible,.claw-arena :focus-visible{outline:2px solid #ffe8aa;outline-offset:2px}
.site .brand small{letter-spacing:.18em}
.road-art .landscape-scene{filter:saturate(1.08) contrast(1.08)}
.road-art:after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 42%,transparent 23%,#0310155d 90%);z-index:0}
.road-controls .quick-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.road-controls .quick-actions button{min-height:37px;border-color:#b29962;color:#f2e1bf;background:linear-gradient(140deg,#243832,#122221)}
.road-controls .quick-actions button[data-activity-open="fodder"]{background:linear-gradient(135deg,#3c5135,#132a22);border-color:#c0cc87}
.road-controls .quick-actions button[data-activity-open="hunt"]{background:linear-gradient(135deg,#423123,#211b18);border-color:#ccad78}
.road-controls .quick-actions button[data-activity-open="food"]{background:linear-gradient(135deg,#37402a,#182620);border-color:#a8ba70}
.road-controls .quick-actions button .ui-icon{height:23px;width:23px;object-fit:contain}
.road-controls .quick-hint{color:#e8d1a0;font-size:11px;line-height:1.25}
.dialog{box-shadow:0 18px 90px #000e,0 0 0 1px #b9935d8f!important}
.dialog-body{scrollbar-color:#b89861 #162322;overscroll-behavior:contain}
.dialog-heading .eyebrow{color:#ffdda0}
.dialog-heading h2{color:#ffedc9;text-shadow:0 2px 12px #000}
.dialog-reading-tools button{min-height:34px}
/* Dedicated expedition activity windows */
.activity-intro{display:flex;align-items:center;gap:16px;background:linear-gradient(100deg,#263932,#101d1c);border:1px solid #9b834f;border-radius:9px;padding:13px;margin:4px 0 15px}
.activity-intro>.ui-icon{height:58px;width:58px;object-fit:contain;flex:0 0 58px;background:#0b1519;border:1px solid #ad985e;border-radius:8px;padding:5px}
.activity-intro p{margin:0;color:#f2e7ce;font-size:clamp(14px,1.3vw,18px);line-height:1.55}
.activity-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:3px 1px}
.activity-choice{min-width:0;display:flex;flex-direction:column;text-align:left;padding:0;cursor:pointer;background:linear-gradient(160deg,#273830,#111c20);border:1px solid #a58a5f;border-radius:10px;color:#f7ebd4;overflow:hidden;box-shadow:inset 0 1px #ffffff15,0 5px 16px #0005}
.activity-choice-symbol{height:92px;width:100%;display:grid;place-items:center;background:radial-gradient(circle at 50% 40%,#4e564032,#111c1ee6 75%);border-bottom:1px solid #9f7b4a}
.activity-choice-symbol .ui-icon{width:77px;height:77px;object-fit:contain;filter:drop-shadow(0 7px 10px #000b)}
.activity-choice-info{display:flex;flex-direction:column;gap:7px;padding:13px 15px 16px;flex:1}
.activity-choice-info>small{font:800 10px/1.2 system-ui;letter-spacing:.12em;color:#9dd7c2}
.activity-choice-info>strong{font:700 clamp(17px,1.8vw,22px)/1.2 Palatino,Georgia,serif;color:#ffe1a2}
.activity-choice-info>em{font:14px/1.46 Georgia,serif;font-style:normal;color:#f2e5d0}
.activity-choice-info>b{margin-top:auto;font:700 11px/1.5 system-ui;color:#efcd87;border-top:1px solid #9877517a;padding-top:10px}
.activity-choice-info>.skill-help{font:700 11px/1.3 system-ui;color:#a5e1d1}
.activity-choice:disabled{opacity:.54;cursor:not-allowed;filter:grayscale(.3)}
.activity-choice .error-note{font:700 11px system-ui;color:#ffc2ac}
.activity-choice:hover:not(:disabled){border-color:#ffe2a5;box-shadow:0 0 0 1px #f7d39f77,0 8px 25px #000c;transform:translateY(-2px)}
.activity-reminder{color:#d9c69f;font:12px/1.4 system-ui;padding:4px 3px;margin-top:10px}
/* Rebuilt Cargo hold */
.v18-cargo-header{display:grid;grid-template-columns:minmax(190px,37%) 1fr;gap:14px;align-items:center;min-height:145px;margin-bottom:12px;background:linear-gradient(105deg,#223431,#111b1b);border:1px solid #ae8b59;border-radius:11px;overflow:hidden}
.v18-cargo-header>img{width:100%;height:155px;object-fit:cover;object-position:center}
.v18-cargo-header>div{padding:10px 16px 10px 0}
.v18-cargo-header h3{color:#ffe4ad;font-size:clamp(18px,2vw,28px);line-height:1.1;margin:4px 0 8px}
.v18-cargo-header p{font:15px/1.45 Georgia,serif;color:#eae0ce;margin:0}
.v18-capacity{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:12px}
.v18-capacity>div{background:#142526;border:1px solid #7f7457;border-radius:8px;padding:9px 9px 7px;min-width:0}
.v18-capacity small{color:#cbb78f;font:700 9px system-ui;letter-spacing:.07em}
.v18-capacity strong{display:block;color:#ffe4a6;font:700 21px Palatino,Georgia,serif;margin:5px 0 6px}
.v18-capacity em{font-style:normal;color:#aaa99a;font-size:13px}
.v18-capacity .bar{height:7px;margin-top:8px}
.v18-capacity .cash-desc{font-size:10px;color:#b6c8c0}
.v18-survival-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}
.v18-survival-strip>div{display:flex;align-items:center;gap:9px;padding:8px;background:linear-gradient(90deg,#1c352d,#122320);border:1px solid #6c8d6b;border-radius:8px;min-width:0}
.v18-survival-strip>div.warn{border-color:#c98f62;background:linear-gradient(90deg,#40301f,#1f211b)}
.v18-survival-strip .ui-icon{width:45px;height:45px;object-fit:contain;flex-shrink:0}
.v18-survival-strip span{display:flex;flex-direction:column;min-width:0}
.v18-survival-strip small{font:700 9px/1.2 system-ui;color:#c9c9a9;letter-spacing:.04em}
.v18-survival-strip b{font:700 16px Palatino,Georgia,serif;color:#fff2cb}
.v18-cargo-section{border:1px solid #a3885c;background:#152524;border-radius:10px;padding:11px 12px}
.v18-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 4px 10px}
.v18-section-head h3{font-size:20px;color:#f5d8a0;margin:0}
.v18-section-head>span{color:#cec4aa;font-size:11px}
.v18-cargo-tabs{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:12px}
.v18-cargo-tabs button{background:#1a2b2a;border:1px solid #9d875d;padding:8px 12px;border-radius:6px;color:#e9d7b0;font:700 11px system-ui;cursor:pointer}
.v18-cargo-tabs button.picked{background:linear-gradient(110deg,#a67c3a,#e3bd6d);color:#172021;border-color:#ffe2a6}
.v18-cargo-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.v18-cargo-card{position:relative;min-height:135px;min-width:0;padding:9px 6px 12px;border:1px solid #836c49;border-radius:9px;background:radial-gradient(circle at 50% 20%,#36443b,#152325 72%);display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;color:#efdcbd}
.v18-cargo-card .inventory-art{height:67px;display:grid;place-items:center}
.v18-cargo-card .ui-icon{height:66px;width:min(100%,79px);object-fit:contain;filter:drop-shadow(0 6px 9px #000a)}
.v18-cargo-card b{font:700 14px/1.1 Palatino,Georgia,serif;text-align:center;color:#ffe4a7}
.v18-cargo-card small{font:10px/1.2 system-ui;color:#adbbb2}
.v18-cargo-card strong{position:absolute;top:7px;right:8px;font:800 13px system-ui;color:#fff8e7;background:#332b1bcc;padding:3px 6px;border-radius:4px}
.v18-cargo-card.focused{border-color:#fff0ac;box-shadow:0 0 0 2px #d8af6677,inset 0 0 22px #b78d4050}
.v18-cargo-card:hover{border-color:#e5b96d}
.v18-empty{padding:20px 5px;color:#d1c0a1;grid-column:1/-1}
.v18-inspector{margin-top:12px;background:#1d322e;border:1px solid #9f8558;border-radius:8px;padding:10px 12px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center}
.v18-inspector>div:first-child{display:flex;align-items:center;gap:10px;min-width:190px}
.v18-inspector .ui-icon{width:48px;height:48px;object-fit:contain}
.v18-inspector span{display:flex;flex-direction:column;gap:3px}
.v18-inspector b{font:700 17px Palatino,serif;color:#ffe0a5}
.v18-inspector small{font:11px/1.3 system-ui;color:#d2d7cb}
.v18-inventory-actions{display:flex;flex-wrap:wrap;gap:6px}
.v18-inventory-actions .btn{font-size:10px;padding:8px}
.v18-packing-instructions{color:#d1c4a6;font:12px Georgia,serif;padding:7px;margin:0}
.v18-wagon-ops,.v18-market{margin-top:14px;border:1px solid #796f51;background:#152624;border-radius:8px;padding:11px}
.v18-wagon-ops h3,.v18-market h3{color:#f8d99a;font-size:18px;margin:0 0 10px}
.v18-wagon-ops>div{display:flex;flex-wrap:wrap;gap:8px}
.v18-wagon-ops .btn{flex:1;min-width:140px;font-size:11px;padding:10px}
.v18-market-row{display:grid;grid-template-columns:45px minmax(0,1fr) 65px 55px 55px;align-items:center;gap:8px;border-bottom:1px solid #75674f88;padding:8px 0}
.v18-market-row .ui-icon{width:42px;height:42px;object-fit:contain}
.v18-market-row span{display:flex;flex-direction:column;gap:4px;min-width:0}
.v18-market-row b{color:#f2d59a;font:700 13px Palatino,serif}
.v18-market-row small{font:10px system-ui;color:#bbbea9}
.v18-market-row button{border:1px solid #c2a16a;background:#263832;color:#f5dfb4;padding:8px 3px;border-radius:4px;font:700 10px system-ui;cursor:pointer}
.v18-market-row button:disabled{opacity:.35;cursor:not-allowed}
.v18-stock-tip{margin:12px 0;padding:10px;border-left:3px solid #b2bd78;background:#203229;color:#ece3c5;font:13px/1.5 Georgia,serif}
/* Non-skeletal action effects. Selected Genesis artwork stays fully in frame. */
.claw-stage .duel-fighter img{object-fit:contain!important;object-position:center!important}
.duel-fighter{backdrop-filter:blur(2px);border-color:#d0a769}
.arena-motes{opacity:.28!important;animation:btbcMotes 13s linear infinite!important}
.claw-stage::before{content:'';position:absolute;inset:-60%;z-index:1;pointer-events:none;background:conic-gradient(from 120deg at 50% 50%,transparent 0deg,transparent 80deg,#76d3bb12 92deg,transparent 116deg,transparent 230deg,#e9c58a12 240deg,transparent 265deg);animation:wfRune 25s linear infinite}
@keyframes wfRune{to{transform:rotate(360deg)}}
.v18-battle-flashes{position:absolute;inset:0;pointer-events:none;z-index:5;opacity:0;background:radial-gradient(circle at 70% 65%,#fff9dfbd 0%,#c8fcff75 8%,transparent 40%)}
.claw-arena.fx-heavy .v18-battle-flashes,.claw-arena.fx-special .v18-battle-flashes,.claw-arena.fx-quick .v18-battle-flashes,.claw-arena.fx-support .v18-battle-flashes{animation:wfMagic .63s ease-out both}
.claw-arena.fx-special .v18-battle-flashes{animation-duration:1.1s;background:radial-gradient(circle at 72% 65%,#ffef9acc,#8bcffc99 15%,#68eadb44 30%,transparent 65%)}
@keyframes wfMagic{0%{opacity:0;transform:scale(.8)}32%{opacity:1;transform:scale(1.1)}100%{opacity:0;transform:scale(1.35)}}
.claw-arena.fx-heavy .claw-stage,.claw-arena.fx-phase .claw-stage,.claw-arena.fx-special .claw-stage{animation:wfHitShake .43s linear both}
@keyframes wfHitShake{0%,100%{transform:translate3d(0,0,0)}20%{transform:translate3d(-3px,1px,0)}42%{transform:translate3d(4px,-2px,0)}61%{transform:translate3d(-3px,2px,0)}82%{transform:translate3d(2px,0,0)}}
.claw-arena.fx-focus .duel-center,.claw-arena.fx-blessing .duel-center{animation:wfFocus .8s ease-out both}
@keyframes wfFocus{0%{box-shadow:0 0 0 #63e1c000}35%{box-shadow:0 0 35px #63e1c090,0 0 70px #f3ca6799}100%{box-shadow:0 0 15px #56deb722}}
.claw-arena.fx-guard .defense-rune,.claw-arena.fx-dodge .defense-rune{animation-duration:.92s!important}
.combat-remember{color:#f2dfad!important;font:13px/1.35 Georgia,serif!important;white-space:normal!important;max-height:38px;overflow-y:auto!important;text-overflow:clip!important}
.combat-mast h2{font-family:Palatino,Georgia,serif!important}
.combat-intent-tag{color:#a1ead8}
@media(max-width:900px){.activity-options{grid-template-columns:1fr}.activity-choice{display:grid;grid-template-columns:85px minmax(0,1fr)}.activity-choice-symbol{height:100%;min-height:100px;border-bottom:0;border-right:1px solid #9f7b4a}.activity-choice-symbol .ui-icon{width:65px;height:65px}.activity-choice-info{padding:9px 13px;gap:4px}.activity-choice-info>em{font-size:12px}.activity-choice-info>b{margin-top:4px;padding-top:5px}.v18-capacity{grid-template-columns:repeat(3,minmax(0,1fr))}.v18-cargo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.road-controls .quick-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}.road-controls .quick-actions button{font-size:9px!important;min-height:33px;padding:4px 2px!important}.road-controls .quick-actions .ui-icon{width:16px;height:16px}.activity-intro{padding:9px;gap:9px}.activity-intro>.ui-icon{width:45px;height:45px;flex-basis:45px}.activity-intro p{font-size:12px}.activity-options{gap:7px}.activity-choice-info>strong{font-size:16px}.activity-choice-info>small{font-size:8px}.activity-choice-info>b{font-size:10px}.v18-cargo-header{grid-template-columns:1fr}.v18-cargo-header>img{height:105px}.v18-cargo-header>div{padding:4px 10px 10px}.v18-cargo-header h3{font-size:18px}.v18-cargo-header p{font-size:12px}.v18-capacity{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.v18-capacity>div{padding:6px}.v18-capacity small{font-size:8px}.v18-capacity strong{font-size:15px}.v18-survival-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.v18-survival-strip .ui-icon{width:33px;height:33px}.v18-survival-strip b{font-size:13px}.v18-cargo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.v18-cargo-card{min-height:120px;padding:8px 3px}.v18-cargo-card .inventory-art{height:53px}.v18-cargo-card .ui-icon{height:51px;width:58px}.v18-cargo-card b{font-size:11px}.v18-cargo-card small{font-size:8px}.v18-section-head>span{display:none}.v18-cargo-tabs button{font-size:9px;padding:6px}.v18-market-row{grid-template-columns:30px minmax(0,1fr) 44px 42px 42px;gap:4px}.v18-market-row .ui-icon{width:28px;height:28px}.v18-market-row b{font-size:10px}.v18-market-row button{font-size:8px}.v18-wagon-ops .btn{min-width:90px}.combat-remember{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){.claw-stage::before,.v18-battle-flashes,.claw-arena .claw-stage,.duel-center,.arena-motes{animation:none!important}.activity-choice:hover{transform:none!important}}
