#guide-menu{position:fixed;inset:0;z-index:10050;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.55)}
#guide-menu.active{display:flex;animation:guideIn .18s ease}
@keyframes guideIn{from{opacity:0}to{opacity:1}}
.guide-popup{background:#fff;border:1px solid #ccc;width:95vw;max-width:1100px;height:85vh;display:flex;flex-direction:column;box-shadow:0 4px 24px rgba(0,0,0,.35);overflow:hidden;direction:rtl;font-family:"Trebuchet MS","Lucida Grande",Verdana,Arial,sans-serif;color:#222;box-sizing:border-box}
.guide-popup *,.guide-popup ::after,.guide-popup ::before{box-sizing:border-box;font-family:"Trebuchet MS","Lucida Grande",Verdana,Arial,sans-serif}
.guide-header{display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:linear-gradient(#fafafa 0,#e6e6e6 45%,#d6d6d6 55%,#f0f0f0 100%);border-bottom:2px solid #999;box-shadow:0 2px 5px rgba(0,0,0,.2);height:38px;min-height:38px;color:#333}
.guide-header h2{margin:0;padding:0;font-size:16px;font-weight:700;color:#333;line-height:1;background:none;border:0}
.guide-close{background:none;border:1px solid #999;color:#555;font-size:14px;line-height:1;cursor:pointer;width:26px;height:26px;border-radius:3px;padding:0;display:flex;align-items:center;justify-content:center;transition:background .15s}
.guide-close:hover{background:rgba(0,0,0,.1);color:#222}
#Guide-content{display:flex;flex:1;overflow:hidden;direction:rtl;min-height:0}
#Guide-content.guide-busy{opacity:.5}
.guide-nav{width:200px;min-width:200px;background:#fff;border-left:1px solid #e0e0e0;overflow-y:auto;padding:6px 0}
.guide-nav ul{list-style:none;margin:0;padding:0;display:block}
.guide-nav li{margin:0;padding:0;list-style:none;float:none;display:block;background:none}
.guide-nav li.guide-nav-header{padding:8px 12px 3px;font-size:13px;font-weight:700;color:#555;border-top:1px solid #e0e0e0;margin-top:4px}
.guide-nav li.guide-nav-header:first-child{border-top:0;margin-top:0}
.guide-nav li a{align-items:center;gap:6px;padding:5px 12px;color:#333;text-decoration:none;font-size:14px;font-weight:700;cursor:pointer;transition:background .12s;white-space:nowrap;display:flex!important}
.guide-nav li a:hover{color:#ff8f00;text-decoration:underline}
.guide-nav li.active a{background:#4a7b3f;color:#fff;font-weight:700;text-decoration:none}
.guide-nav .guide-nav-icon{width:20px;height:20px;object-fit:contain;flex:0 0 18px;background:none;transform:none;scale:1}
.guide-content{flex:1;overflow-y:auto;padding:16px 20px;direction:rtl;background:#fff;min-width:0;position:relative}
.guide-content h3{color:#111;font-size:18px;font-weight:700;margin:0 0 8px;padding-bottom:5px;border-bottom:1px solid #e0e0e0;background:none}
.guide-content h4{color:#111;font-size:15px;font-weight:700;margin:14px 0 6px;background:none}
.guide-intro{color:#555;font-size:14px;margin-bottom:16px}
.guide-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;margin-top:12px}
.guide-card{background:#fff;border:1px solid #e0e0e0;padding:12px;text-align:center;cursor:pointer;text-decoration:none;color:inherit;transition:border-color .15s,background .12s;display:block!important}
.guide-card:hover{border-color:#2e8b57;background:#f5fff5;text-decoration:none}
.guide-card h4{margin:4px 0;color:#111;font-size:15px}.guide-card p{margin:0;color:#555;font-size:13px}
.guide-card-img{width:56px;height:56px;object-fit:contain;display:block;margin:0 auto 6px}
.guide-thumb{width:56px;height:70px;align-items:center;justify-content:center;overflow:hidden;flex:0 0 56px;margin:0 auto 4px;display:inline-flex!important}
.guide-thumb img.building{object-fit:contain;width:56px!important;height:70px!important;background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;transform:none!important;scale:1!important;margin:0!important;float:none!important}
.guide-thumb.guide-thumb-sm{width:44px;height:54px;flex:0 0 44px;margin:0}.guide-thumb.guide-thumb-sm img.building{width:44px!important;height:54px!important}
.guide-detail-header,.guide-tribe-header{align-items:center;gap:14px;margin-bottom:14px;padding:10px;background:#fff;border:1px solid #e0e0e0;display:flex!important;flex-direction:row-reverse}
.guide-tribe-banner{width:108px!important;height:108px!important;object-fit:contain;flex:0 0 108px!important}
.guide-tribe-header h3,.guide-detail-header h3{border:0;padding:0;margin:0 0 4px}
.guide-tribe-desc{color:#555;font-size:14px;margin:4px 0 0;line-height:1.7}
.guide-features ul{list-style:none;padding:0;margin:0}.guide-features li{padding:5px 0;font-size:14px;color:#222;border-bottom:1px solid #e0e0e0;list-style:none;background:none}.guide-features li:last-child{border-bottom:0}
.guide-list{display:flex;flex-direction:column;gap:4px}.guide-row{align-items:center;gap:10px;padding:6px 10px;background:#fff;border:1px solid #e0e0e0;cursor:pointer;text-decoration:none;color:inherit;transition:border-color .12s,background .12s;display:flex!important}.guide-row:hover{border-color:#2e8b57;background:#f5fff5;text-decoration:none}
.guide-rinfo{flex-direction:column;gap:2px;min-width:0;display:flex!important}.guide-row-img{width:46px;height:56px;object-fit:contain;flex:0 0 46px}.guide-rname{font-weight:700;font-size:15px;color:#111}.guide-rdesc{font-size:13px;color:#555;white-space:normal;line-height:1.6}
.guide-content h3 .guide-h-icon{width:26px;height:26px;object-fit:contain;vertical-align:-7px;margin-left:4px}.guide-content h3 .qback,.guide-content h3 .qback.qarw{display:inline-block;vertical-align:-5px;margin-left:8px;flex:0 0 auto}
.guide-detail-header p{margin:0;color:#555;font-size:14px;line-height:1.7}.guide-detail-info{flex-direction:column;gap:4px;min-width:0;flex:1;display:flex!important}.guide-detail-img{width:120px!important;height:120px!important;object-fit:contain;flex:0 0 120px!important}.guide-detail-img.building{width:104px!important;height:124px!important;flex:0 0 104px!important;background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;transform:none!important;scale:1!important;margin:0!important;float:none!important}.guide-meta{font-size:13px;color:#999;margin-top:4px}
.guide-source-unit{width:16px!important;height:16px!important;object-fit:contain;background:none!important;transform:none!important;scale:1!important}
.guide-table-wrap{overflow-x:auto}.guide-table{width:100%;border-collapse:collapse;border:1px solid #e0e0e0;font-size:14px;margin-bottom:8px;background:#fff}.guide-table th{background:linear-gradient(#fafafa 0%,#e6e6e6 45%,#d6d6d6 55%,#f0f0f0 100%);color:#111;padding:4px 8px;text-align:center;white-space:nowrap;font-weight:700;border-bottom:1px solid #ccc}.guide-table td{padding:3px 8px;text-align:center;border-bottom:1px solid #e0e0e0;color:#222}.guide-table tbody tr:nth-child(even){background:#f9f9fb}.guide-table tbody tr:nth-child(odd){background:#fcfcfc}.guide-table tbody tr:hover{background:#f0f0f0}.guide-table tbody tr.guide-sum{background:#eff5ea;font-weight:700}.guide-table img{vertical-align:middle}
.guide-text,.guide-page{line-height:1.9;font-size:14px;font-weight:500;color:#222}.guide-text ol,.guide-text ul,.guide-page ol,.guide-page ul{padding-right:20px;margin:8px 0}.guide-text li,.guide-page li{margin-bottom:5px;list-style:inherit}.guide-text p,.guide-page p{margin:6px 0}.guide-text a,.guide-page a{color:var(--swd-link, #71d000)}
.guide-tip{background:#fff8e1;border:1px solid #ffe082;border-right:4px solid #ffc107;padding:8px 12px;margin:10px 0;font-size:13px;color:#5d4037;border-radius:3px}
.guide-pager{text-align:center;font-size:26px;margin-top:14px;padding-top:8px;border-top:1px solid #e0e0e0}.guide-pager a{color:var(--swd-link, #71d000);text-decoration:none;margin:0 10px}.guide-pager a:hover{color:#2e8b57}
.guide-content::-webkit-scrollbar,.guide-nav::-webkit-scrollbar{width:6px}.guide-content::-webkit-scrollbar-track,.guide-nav::-webkit-scrollbar-track{background:none}.guide-content::-webkit-scrollbar-thumb,.guide-nav::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}.guide-content::-webkit-scrollbar-thumb:hover,.guide-nav::-webkit-scrollbar-thumb:hover{background:#999}
.guide-page h1,.guide-page h2{font-size:17px;font-weight:700;margin:0 0 8px;padding-bottom:5px;border-bottom:1px solid #e0e0e0;color:var(--swd-bronze, #8c6d1f);background:none}.guide-page h3{font-size:15px;font-weight:700;margin:14px 0 6px;color:#111}.guide-page h4{font-size:14px;font-weight:700;margin:12px 0 5px;color:#111}.guide-page table{border-collapse:collapse;margin:10px 0;font-size:13px;background:#fff;width:100%!important}.guide-page th{background:linear-gradient(#fafafa 0%,#e6e6e6 45%,#d6d6d6 55%,#f0f0f0 100%);color:#111;padding:4px 8px;text-align:center;border-bottom:1px solid #ccc}.guide-page td{padding:3px 8px;text-align:center;border-bottom:1px solid #e0e0e0}.guide-page tbody tr:nth-child(even){background:#f9f9fb}.guide-page img{max-width:100%;height:auto}.guide-page .GreenWord{color:var(--swd-bronze, #8c6d1f)!important}
.guide-hero-page{padding-bottom:12px}.guide-hero-lead{display:flex!important;align-items:center;gap:16px;padding:14px;margin:0 0 14px;border:1px solid #d8e4d2;background:linear-gradient(135deg,#f8fff5,#fff);border-radius:6px}.guide-hero-lead>img{width:88px!important;height:88px!important;object-fit:contain;flex:0 0 88px}.guide-hero-lead>div{min-width:0;flex:1}.guide-hero-lead h2{margin:0 0 5px;padding:0;border:0}.guide-game-link{display:inline-block!important;margin-top:8px;padding:5px 12px;border:1px solid #4f8e31;border-radius:4px;background:linear-gradient(#8bcf52,#5c9f2f);color:#fff!important;font-size:13px;font-weight:700;text-decoration:none!important;box-shadow:inset 0 1px rgba(255,255,255,.45)}.guide-game-link:hover{background:linear-gradient(#79bf43,#4e8d28)}.guide-hero-sections{grid-template-columns:repeat(3,minmax(150px,1fr))}.guide-hero-sections .guide-card-img{width:64px;height:64px}.guide-hero-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 14px}.guide-hero-facts>div{padding:9px 10px;border:1px solid #e0e0e0;border-right:4px solid #79ad43;background:#fff}.guide-hero-facts b,.guide-hero-facts span{display:block}.guide-hero-facts b{margin-bottom:3px;color:#315f1d;font-size:14px}.guide-hero-facts span{color:#555;font-size:13px;line-height:1.65}.guide-doc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 14px}.guide-doc-grid>div{display:grid;grid-template-columns:48px 1fr;grid-template-rows:auto auto auto;column-gap:8px;align-items:center;padding:8px;border:1px solid #e1e1e1;background:#fff}.guide-doc-grid img{grid-row:1/4;width:46px!important;height:56px!important;object-fit:contain}.guide-doc-grid b{color:#315f1d;font-size:13px}.guide-doc-grid span{color:#555;font-size:12px;line-height:1.45}.guide-doc-grid small{display:block;color:#8a641f;font-size:11px;font-weight:700;line-height:1.5}
.guide-fail{padding:24px;margin:auto;font-size:14px;color:#a33;text-align:center;width:100%}
@media(max-width:768px){.guide-popup{width:100vw;height:100dvh;max-width:100%;border:0}#Guide-content{flex-direction:column}.guide-nav{display:none;width:100%;min-width:0;max-height:180px;border-left:0;border-bottom:1px solid #e0e0e0}.guide-content{padding:12px}.guide-grid{grid-template-columns:repeat(2,1fr);gap:8px}.guide-card-img{width:46px;height:46px}.guide-table{font-size:12px}.guide-table td,.guide-table th{padding:3px 4px}.guide-hero-lead{align-items:flex-start;gap:10px;padding:10px}.guide-hero-lead>img{width:58px!important;height:58px!important;flex-basis:58px}.guide-hero-facts,.guide-doc-grid{grid-template-columns:1fr}.guide-hero-sections{grid-template-columns:repeat(2,minmax(0,1fr))}}
