/* Shared landscape events: the reading sheet owns input; tactics do not. */
#social-town .world-event-panel,#social-town .event-tactics{pointer-events:auto}
#social-town .coop-header [data-world-events]{min-width:44px!important;min-height:44px!important;white-space:nowrap}
#social-town .world-event-panel{position:absolute;inset:0;z-index:96;display:grid;place-items:center;background:#101b23a8;padding:8px;box-sizing:border-box}
#social-town .world-event-sheet{width:min(800px,100%);max-height:100%;display:flex;flex-direction:column;overflow:hidden;background:#20313bed;border:1px solid #b9ac78;border-radius:8px;color:#e8e6d2;box-shadow:0 8px 35px #0007}
#social-town .world-event-sheet header{display:flex;align-items:center;gap:10px;padding:6px 12px;border-bottom:1px solid #d6c69140;flex-shrink:0}
#social-town .world-event-sheet header strong{font-size:18px;margin-right:auto;white-space:nowrap}
#social-town .world-event-sheet nav{display:flex;gap:6px}
#social-town .world-event-sheet button,#social-town .event-tactics button{min-height:44px;min-width:44px;font-size:14px;line-height:1.4;padding:7px 12px;letter-spacing:0;margin:0;touch-action:manipulation;box-sizing:border-box}
#social-town .world-event-sheet [aria-pressed=true]{border-color:#e1ce8d;background:#736b4380}
#social-town .world-event-body{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:16px;padding:12px;min-height:0;overflow:hidden}
#social-town .world-event-body article,#social-town .world-event-choices{min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin}
#social-town .world-event-body h3{font-size:19px;margin:4px 0 10px;line-height:1.5}
#social-town .world-event-body p{white-space:pre-line;line-height:1.75;font-size:14px;margin:0}
#social-town .world-event-body small{font-size:12px;color:#d0c296;line-height:1.6}
#social-town .world-event-choices{display:flex;flex-direction:column;gap:8px}
#social-town .world-event-choices button{flex-shrink:0;text-align:left;display:grid;gap:3px}
#social-town .world-event-choices b{font-size:14px}
#social-town [data-event-reason]{font-style:normal;font-size:12px;color:#e9b7a5}
#social-town [data-event-reason]:empty{display:none}
#social-town .world-event-sheet footer{display:flex;align-items:center;gap:10px;padding:6px 12px;border-top:1px solid #d6c69140;flex-shrink:0}
#social-town .world-event-sheet footer p{flex:1;min-width:0;font-size:12px;line-height:1.5;margin:0;max-height:3em;overflow:auto;white-space:pre-line}
#social-town .event-tactics{position:absolute;z-index:42;top:66px;left:50%;transform:translateX(-50%);width:min(280px,36%);max-height:calc(100% - 76px);overflow:auto;box-sizing:border-box;padding:6px;background:#20313bf5;border:1px solid #b9ac78;border-radius:6px;box-shadow:0 5px 20px #0005}
#social-town .event-tactics header{display:flex;align-items:center;justify-content:space-between;gap:4px}
#social-town .event-tactics strong{font-size:14px}
#social-town .event-tactics>div{display:grid;grid-template-columns:1fr 1fr;gap:4px}
#social-town .event-tactics [data-event-tactic]{display:grid;gap:1px;align-content:center;padding:4px;font-weight:normal}
#social-town .event-tactics [data-event-tactic] b{font-size:12px;font-weight:normal}
#social-town .event-tactics [data-event-tactic] small{font-size:10px;color:#cdbf95;line-height:1.3}
#social-town .event-tactics p{font-size:12px;line-height:1.5;margin:6px 2px 0;max-height:4.5em;overflow:auto;white-space:pre-line}
#social-town .world-event-panel[hidden],#social-town .event-tactics[hidden],#social-town .world-event-sheet [hidden]{display:none!important}
@media (max-height:500px){
 #social-town .world-event-sheet{width:min(740px,100%)}
 #social-town .world-event-sheet header{padding:2px 8px;gap:6px}
 #social-town .world-event-sheet header strong{font-size:15px}
 #social-town .world-event-sheet button,#social-town .event-tactics button{font-size:12px;padding:5px 8px}
 #social-town .world-event-body{gap:10px;padding:8px}
 #social-town .world-event-body h3{font-size:16px;margin:2px 0 6px}
 #social-town .world-event-body p{font-size:12px;line-height:1.65}
 #social-town .world-event-choices b{font-size:13px}
 #social-town .world-event-body small{font-size:11px}
 #social-town .world-event-sheet footer{padding:2px 8px}
 #social-town .world-event-sheet footer p{font-size:11px}
 #social-town .event-tactics{top:54px;max-height:calc(100% - 62px)}
}
