.tg-crew{max-width:680px;margin:auto;padding-bottom:22px}
.tg-crew-party,.tg-crew-entry,.tg-crew-account,.tg-crew-ranks{border:1px solid #8a6341;border-radius:18px;background:linear-gradient(135deg,#292129,#111624);padding:15px;margin-top:15px;box-shadow:0 10px 26px #0008,inset 0 1px #ffd9941d}
.tg-crew-party{display:grid;gap:8px}
.tg-crew-party label,.tg-crew-entry label{font-size:10px;font-weight:900;letter-spacing:.08em;color:#d4b07c}
.tg-crew-party select{width:100%;min-height:43px;color:#ffe5b4;background:#18141e;border:1px solid #bd925a;padding:11px 9px;border-radius:11px;font:inherit}
.tg-crew-party>span{font-size:11px;color:#b7a795;line-height:1.5}
.tg-crew-entry{border:0;box-shadow:none;padding:5px;margin:0;background:none}
.tg-crew-form{display:grid;gap:9px;margin:10px 0 12px}
.tg-crew-form label{display:grid;gap:9px}
.tg-crew-form input{background:#17141d;color:#fef1d5;border:1px solid #9b7743;border-radius:11px}
.tg-crew-form .button{min-height:45px}
.tg-crew-or{font-size:10px;letter-spacing:.06em;text-align:center;font-weight:900;color:#bfa99d;margin:18px 0}
.tg-crew-hero{display:flex;align-items:center;justify-content:space-between;gap:10px;background:linear-gradient(115deg,#493017,#271b2b 65%,#251327);padding:16px;border-radius:14px;border:1px solid #b88a47}
.tg-crew-hero h2{font-size:clamp(20px,6vw,29px);margin:3px 0;color:#ffe0a0;line-height:1.13;overflow-wrap:anywhere}
.tg-crew-code{color:#dabb8f;letter-spacing:.23em;font-size:15px;font-weight:900;margin:8px 0 0}
.tg-crew-shield{font-size:62px;line-height:1;color:#f4bb52;text-shadow:0 4px #663c21,0 0 22px #e5ac49;transform:rotate(-13deg)}
.tg-crew-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
.tg-crew-numbers>div{display:grid;gap:6px;justify-items:center;text-align:center;padding:12px 2px;border-radius:11px;border:1px solid #be98514f;background:#1b1822}
.tg-crew-numbers small{font:900 8px/1.3 system-ui;color:#bea990;letter-spacing:.06em}
.tg-crew-numbers strong{font-size:26px;color:#ffe4a5;font-weight:950;font-variant-numeric:tabular-nums}
.tg-crew-buttons{display:grid;gap:9px;grid-template-columns:1fr 1fr}
.tg-crew-buttons button{min-height:47px;font-size:11px;padding:11px}
.tg-crew-verified{color:#a7ebba;border:1px solid #5a8c68;border-radius:10px;background:#28463840;padding:10px 12px}
.tg-crew-roster{display:grid;gap:8px}
.tg-crew-member{display:flex;align-items:center;gap:9px;font-size:12px;padding:9px 7px;background:#201b27;border-radius:10px;border:1px solid #836d5c49;min-width:0}
.tg-crew-member b{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f7e3c1}
.tg-crew-member>span:not(.tg-crew-avatar){color:#c9b08c;font-size:10px;flex:none}
.tg-crew-member button{padding:6px 9px;font-size:9px}
.tg-crew-avatar{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:50%;color:#2e180b;font-weight:950;background:linear-gradient(120deg,#fff1aa,#aa6a24)}
.tg-crew-rank{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:9px;border-bottom:1px solid #b78d3540;padding:11px 0}
.tg-crew-rank:last-child{border-bottom:0}
.tg-crew-rank strong{font-size:16px;color:#f4b94c}
.tg-crew-rank b{font-size:12px;overflow:hidden;text-overflow:ellipsis;color:#f3dec1}
.tg-crew-rank span{font-size:10px;color:#baae9d;text-align:right}
.tg-world-crew-entry{margin:10px 0;border:1px solid #b68c42;border-radius:16px;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:left;color:#ffe4ae;cursor:pointer;background:linear-gradient(120deg,#51371c,#281a38,#131925);box-shadow:0 4px 0 #6c421e,0 12px 24px #0007}
.tg-world-crew-entry b{font-size:16px;letter-spacing:.08em}.tg-world-crew-entry small{display:block;margin-top:6px;color:#cdb598;font-size:11px}
.tg-world-crew-entry>strong{font-size:24px;color:#f7c365}
@media(max-width:340px){.tg-crew-buttons{grid-template-columns:1fr}.tg-crew-member>span:not(.tg-crew-avatar){font-size:9px}.tg-crew-rank{grid-template-columns:23px 1fr}.tg-crew-rank span{grid-column:2;text-align:left}}

.tg-crew-levels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:11px 0}
.tg-crew-level{display:grid;justify-items:center;gap:3px;border-radius:13px;padding:9px 4px;border:1px solid #655d59;background:#181822;color:#9c9292;box-shadow:inset 0 1px #ffffff0f}
.tg-crew-level[data-complete=true]{color:#ffe6a5;background:linear-gradient(140deg,#5e3b24,#382431);border-color:#e1b76c;box-shadow:0 3px 0 #503016,inset 0 1px #fff0ad5c}
.tg-crew-level>span{font-size:16px}.tg-crew-level strong{font-size:17px}.tg-crew-level small{font-size:8px;letter-spacing:.05em;font-weight:900}

.tg-crew-captain-tools{display:flex;gap:9px;flex-wrap:wrap;align-items:end;border-top:1px solid #946f4455;margin-top:13px;padding-top:12px}
.tg-crew-captain-tools label{flex:1;min-width:160px;display:grid;gap:5px;color:#cbb58b;font-size:11px}
.tg-crew-captain-tools input{min-height:40px}
.tg-crew-captain-tools .button{font-size:10px;min-height:42px}


/* No vertical page swipes. Three clan subviews share one fixed-height stage. */
.tg-page-world #screen,.tg-page-crew #screen{display:flex;flex:1;min-height:0;overflow:hidden}
.tg-page-world .tg-world{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;gap:6px;padding:0!important}
.tg-page-world .tg-world-intro{padding:0 2px!important;flex:none}
.tg-page-world .tg-world-intro .tg-title{font-size:clamp(20px,4dvh,30px)!important;margin:0}
.tg-page-world .tg-world-intro .tg-lead{font-size:10px!important;margin:2px 0!important}
.tg-page-world .tg-world-view{flex:1;min-height:104px;max-height:none;height:auto!important;border-radius:17px}
.tg-page-world .tg-world-stats{margin:2px 0!important;gap:7px}
.tg-page-world .tg-world-stats>div{padding:5px 9px!important;border-radius:10px}
.tg-page-world .tg-world-stats small{font-size:8px}
.tg-page-world .tg-world-stats strong{font-size:clamp(12px,2.5dvh,17px);line-height:1.1}
.tg-page-world .tg-world-grid{gap:6px;margin:0!important;grid-template-columns:repeat(2,minmax(0,1fr))}
.tg-page-world .tg-world-tile{min-height:37px!important;padding:5px 8px!important;border-radius:10px;gap:8px}
.tg-page-world .tg-world-tile-symbol{height:29px;width:29px;font-size:15px;border-radius:8px}
.tg-page-world .tg-world-tile b{font-size:9px}
.tg-page-world .tg-world-tile small{font-size:8px;margin-top:1px}
.tg-page-world .tg-world-crew-entry{padding:9px 12px;min-height:48px;margin:4px 0!important;border-radius:12px;flex:none}
.tg-page-world .tg-world-crew-entry b{font-size:12px}
.tg-page-world .tg-world-crew-entry small{font-size:9px;margin:3px 0}
.tg-page-world .tg-world-crew-entry>strong{font-size:19px}
.tg-page-world .tg-world-footnote{display:none}
.tg-page-world .tg-world>.tg-eyebrow{font-size:8px!important;margin:0}
.tg-page-crew .tg-crew{display:flex;flex-direction:column;flex:1;min-width:0;height:100%;max-height:100%;overflow:hidden;padding:0!important;margin:0}
.tg-page-crew .tg-crew>.tg-eyebrow{margin:0!important}
.tg-page-crew .tg-crew>.tg-title{margin:1px 0!important}
.tg-page-crew .tg-crew>.tg-lead{margin:0 0 5px;font-size:9px;line-height:1.25}
.tg-page-crew .tg-crew-party{flex:none;display:flex;gap:7px;padding:6px 8px;margin:3px 0!important;align-items:center;min-width:0}
.tg-page-crew .tg-crew-party label{font-size:9px;flex:none}
.tg-page-crew .tg-crew-party select{flex:1;min-width:0;width:0;min-height:31px;height:31px;font-size:10px;padding:5px 8px}
.tg-page-crew .tg-crew-party>span{display:none}
.tg-crew-panel-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:4px 0}
.tg-crew-panel-tabs button{border:1px solid #84643f;background:#1a1720;border-radius:9px;color:#cdb89b;
 padding:8px 3px;font-size:9px;font-weight:850}
.tg-crew-panel-tabs button[aria-pressed=true]{color:#ffe5a5;border-color:#f3c77b;background:linear-gradient(125deg,#6b4426,#2a1e2b)}
.tg-page-crew .tg-crew-pane{flex:1;min-height:0;margin:4px 0!important;padding:8px!important;overflow:hidden}
.tg-page-crew .tg-crew-pane[hidden]{display:none!important}
.tg-page-crew .tg-crew-account{display:flex;flex-direction:column;gap:7px}
.tg-page-crew .tg-crew-hero{padding:7px!important;border-radius:10px;flex:none}
.tg-page-crew .tg-crew-hero h2{font-size:17px;margin:1px 0}
.tg-page-crew .tg-crew-code{font-size:10px;margin:1px 0}
.tg-page-crew .tg-crew-shield{font-size:31px}
.tg-page-crew .tg-crew-numbers{margin:0!important;gap:4px;flex:none}
.tg-page-crew .tg-crew-numbers>div{padding:6px 2px;border-radius:8px}
.tg-page-crew .tg-crew-numbers small{font-size:7px}
.tg-page-crew .tg-crew-numbers strong{font-size:17px}
.tg-page-crew .tg-crew-levels{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;flex:none;margin:0}
.tg-page-crew .tg-crew-level{min-height:36px;padding:3px 1px!important}
.tg-page-crew .tg-crew-level span{font-size:12px}
.tg-page-crew .tg-crew-level strong{font-size:11px}
.tg-page-crew .tg-crew-level small{font-size:7px}
.tg-page-crew .tg-crew-buttons{margin:0!important;gap:5px;flex:none}
.tg-page-crew .tg-crew-buttons .button{font-size:9px;min-height:31px!important;padding:6px 4px}
.tg-page-crew .tg-crew-account>.tg-crew-verified{display:none}
.tg-page-crew .tg-quest-head{display:flex;justify-content:space-between;align-items:center;gap:5px;margin:0!important;flex:none}
.tg-page-crew .tg-quest-head h3{margin:0;font-size:11px;color:#ffe1aa}
.tg-page-crew .tg-crew-roster{display:grid;gap:4px;min-height:0}
.tg-page-crew .tg-crew-member{padding:4px 6px;min-height:29px;font-size:10px}
.tg-page-crew .tg-crew-avatar{width:23px;height:23px;font-size:10px}
.tg-page-crew .tg-crew-member .button{font-size:8px;padding:3px!important;min-height:24px}
.tg-page-crew .tg-crew-member-pager{display:flex;justify-content:center;gap:12px;align-items:center;font-size:10px;color:#d5b885}
.tg-page-crew .tg-crew-member-pager button{border:1px solid #ac8457;border-radius:6px;background:#29202c;color:#ffdc99;padding:2px 13px}
.tg-page-crew .tg-crew-captain-tools{display:none}
.tg-page-crew .tg-crew-ranks{display:block;min-height:0}
.tg-page-crew .tg-crew-rank{padding:clamp(6px,1.5dvh,13px) 0}
.tg-page-crew .tg-crew-rank span{font-size:9px}
.tg-page-crew .tg-engagement-note{display:none}
.tg-page-crew .tg-vault-message{flex:none;max-height:32px;overflow:hidden;margin:2px 0;font-size:9px;color:#bda98d;line-height:1.35}
.tg-page-crew .tg-crew-entry{padding:6px;margin:0;border:0;background:none;box-shadow:none}
.tg-page-crew .tg-crew-form{margin:2px 0 4px;gap:4px}
.tg-page-crew .tg-crew-form input{height:32px;padding:6px 10px}
.tg-page-crew .tg-crew-form .button{min-height:30px}
.tg-page-crew .tg-crew-or{margin:5px 0}
@media(max-height:650px){
 .tg-page-world .tg-world-intro .tg-lead{display:none}
 .tg-page-world .tg-world-grid .tg-world-tile{min-height:31px!important;padding:3px 7px!important}
 .tg-page-world .tg-world-tile-symbol{width:24px;height:25px}
 .tg-page-crew .tg-crew-verified{display:none}
 .tg-page-crew .tg-crew-levels{display:none}
 .tg-page-crew .tg-crew>.tg-lead{display:none}
}
