/* Shared Terra written guide: home and match settings, no gameplay effects. */
.terra-guide{color:#ede5d0;min-width:0;line-height:1.55}
.terra-guide [hidden]{display:none!important}
.terra-guide h2,.terra-guide h3,.terra-guide p{margin:0}
.terra-guide p{font-size:14px}
.terra-guide h3{font-size:16px;color:#e8d5a2}
.terra-guide-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px;background:linear-gradient(125deg,#283c2b,#182a23);border:1px solid #76825e;border-radius:12px;margin:12px 0 16px}
.terra-guide-intro h2{font-size:25px;color:#f3d797}
.terra-guide-kicker{font-size:10px;letter-spacing:1.8px;font-weight:bold;color:#d7c58c}
.terra-guide-launch{display:flex;align-items:center;gap:8px;white-space:normal}
.terra-guide-layout{display:grid;grid-template-columns:minmax(170px,218px) minmax(0,1fr);gap:16px;align-items:start}
.terra-guide-nav{display:grid;gap:6px;position:sticky;top:60px}
.terra-guide-nav button{display:flex;gap:8px;align-items:center;min-height:48px;text-align:left;padding:9px;background:#202f24;border:1px solid #586b4d;border-radius:8px;color:#e9e3d3;font-weight:700;font-size:13px;cursor:pointer}
.terra-guide-nav button[aria-pressed=true]{background:#46593b;border-color:#d7ba7a;color:#fff4d9}
.terra-guide-nav button:focus-visible,.terra-guide-launch:focus-visible{outline:2px solid #f0d69d;outline-offset:2px}
.terra-guide-nav .terra-guide-icon{width:27px;height:27px;flex:none}
.terra-guide-chevron{margin-left:auto;color:#c5b582}
.terra-guide-icon{width:44px;height:44px;object-fit:contain;flex:none}
.terra-guide-body{min-width:0}
.terra-guide-body>section{display:grid;gap:14px;padding:16px;border:1px solid #657452;border-radius:12px;background:#1b2b23}
.terra-guide-section-header{display:flex;align-items:center;gap:12px;padding-bottom:12px;border-bottom:1px solid #667657}
.terra-guide-section-header h2{font-size:22px;color:#efd8a3}
.terra-guide-section-header p{color:#b7c3a9;font-size:13px}
.terra-guide-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px}
.terra-guide-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.terra-guide-card{display:flex;flex-direction:column;gap:9px;padding:13px;border:1px solid #52664a;border-radius:9px;background:linear-gradient(145deg,#2a3b2c,#203027);min-width:0}
.terra-guide-card header{display:flex;align-items:center;gap:9px}
.terra-guide-card header .terra-guide-icon{width:38px;height:38px}
.terra-guide-stats{display:flex;flex-wrap:wrap;gap:6px}
.terra-guide-stats span{display:flex;flex-direction:column;gap:1px;min-width:70px;background:#16251d;border:1px solid #53664a;border-radius:6px;padding:6px 8px}
.terra-guide-stats strong{color:#f2d395;font-size:14px}
.terra-guide-stats small,.terra-guide-body small{color:#b9c8ae;font-size:11px}
.terra-guide-hero{display:flex;align-items:center;gap:16px;padding:15px;background:#293d2b;border:1px solid #7d865c;border-radius:9px}
.terra-guide-hero>div{flex:1}
.terra-guide-hero>strong{display:grid;text-align:center;font-size:35px;line-height:1.2;color:#efd18a;min-width:110px}
.terra-guide-hero>strong small{font-size:11px}
.terra-guide-tip{border-left:3px solid #bba05d;background:#32402c;padding:10px 12px;border-radius:4px;color:#eee7d4}
.terra-guide-tip strong{color:#f3d797;font-size:12px;text-transform:uppercase;letter-spacing:.6px}
.terra-guide-table-wrap{overflow:auto;max-width:100%}
.terra-guide-table{border-collapse:collapse;width:100%;font-size:13px;color:#ece5d3;text-align:center}
.terra-guide-table th,.terra-guide-table td{padding:9px 7px;border-bottom:1px solid #4d6148;white-space:nowrap}
.terra-guide-table thead th{background:#354831;color:#f0d9a6}
.terra-guide-table tbody th{text-align:left}
.terra-guide-terrain-art{width:42px;height:36px;object-fit:contain;vertical-align:middle;margin-right:7px}
.terra-guide-diagram{display:block;width:100%;max-width:520px;margin:auto;background:#14241d;border:1px solid #5a6c50;border-radius:8px}
#ffa-settings-help .terra-guide-layout{grid-template-columns:minmax(0,1fr)}
#ffa-settings-help .terra-guide-nav{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}
#ffa-settings-help .terra-guide-intro{padding:10px}
#ffa-settings-help .terra-guide-body>section{padding:10px}
#ffa-settings-help .terra-guide-three{grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr))}
@media(max-width:760px){.terra-guide-layout{grid-template-columns:minmax(0,1fr)}.terra-guide-nav{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.terra-guide-intro{flex-wrap:wrap}.terra-guide-body>section{padding:12px}.terra-guide-three{grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr))}.terra-guide-hero{align-items:flex-start}.terra-guide-hero>strong{font-size:26px;min-width:75px}}
