#game .side .clan-card{aspect-ratio:1/1.04;border:2px solid #58edff;border-radius:23%;background:radial-gradient(ellipse at 50% 20%,#2989c5,#01497c 56%,#002c62);box-shadow:inset 0 0 9px #00edffb3,0 1px 4px #003d72;color:white;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}#game .side .clan-card[hidden]{display:none!important}#game .clan-card:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 18% 22%,#9df4ff 0 2%,transparent 3%),radial-gradient(circle at 77% 40%,#9df4ff 0 3%,transparent 4%);opacity:.8;display:block!important;pointer-events:none}#game .clan-card-emblem{font-size:clamp(27px,8vw,42px);line-height:1.2;filter:drop-shadow(0 2px 3px #003560);margin-bottom:15%}#game .clan-card-caption{position:absolute;inset:auto 5% 4%;height:24%;display:flex;align-items:center;justify-content:center;border:1px solid #45cfff;background:linear-gradient(#075da1,#002b69);border-radius:999px;font-size:clamp(8px,2.1vw,11px);font-weight:800;white-space:nowrap}
#sheet[data-panel=clans]{width:min(560px,96vw);max-height:92dvh}#sheet[data-panel=clans] .sheet-head{padding-block:8px}#sheet[data-panel=clans] #sheetBody{padding:4px 12px 16px}#sheet[data-panel=clans] .popup-logo{max-height:48px}#sheet[data-panel=clans] #sheetTitle{font-size:20px}.clan-ui{font-size:12px;color:#e7f8ff}.clan-ui *{box-sizing:border-box}.clan-ui h3,.clan-ui h4,.clan-ui p{margin:0}.clan-ui button{cursor:pointer;font:inherit;line-height:1.25;min-height:34px;border-radius:9px;padding:7px 10px;border:1px solid #64c5e36b;background:#075b88;color:#dff8ff;font-weight:700}.clan-ui button:disabled{opacity:.45;cursor:default}.clan-ui button.gold{background:linear-gradient(#82f28c,#25b953);border:1px solid #beffd1;color:#053d30;box-shadow:inset 0 1px 1px #deffe8;font-weight:800}.clan-ui button.secondary{background:#06476e;color:#d7f1ff}.clan-ui button.wide{width:100%}.clan-ui button:focus-visible,.clan-ui input:focus-visible,.clan-ui textarea:focus-visible{outline:2px solid #a7f6d8;outline-offset:2px}.clan-intro{display:flex;align-items:center;gap:12px;padding:12px 5px 14px}.clan-intro h3{font-size:25px!important;color:#efffff!important;letter-spacing:-.5px;margin:2px 0 3px!important}.clan-intro p{font-size:11px;color:#b6dbe6;line-height:1.4}.clan-eyebrow{font-size:9px;letter-spacing:1.3px;font-weight:800;color:#8fdbdf;text-transform:uppercase}.clan-emblem{width:45px;height:49px;flex:none;display:inline-flex;align-items:center;justify-content:center;font-size:29px;border:1px solid #7ce7d5;border-radius:14px 14px 20px 20px;background:linear-gradient(145deg,#157f9c,#034069);box-shadow:inset 0 0 10px #40d5e74d,0 3px 7px #00223740}.clan-emblem[data-emblem=shark]{background:linear-gradient(145deg,#6270a2,#163e70);border-color:#9eafe3}.clan-emblem[data-emblem=turtle]{background:linear-gradient(145deg,#3c9876,#12465d);border-color:#78e3b2}.clan-emblem[data-emblem=wave]{background:linear-gradient(145deg,#2089d0,#0d3c77);border-color:#8bd5ff}.clan-emblem.large{width:59px;height:65px;font-size:39px}.clan-tabs,.clan-subtabs{display:flex;gap:4px;padding:4px;background:#002e50c9;border:1px solid #5bc6dc45;border-radius:12px;margin-bottom:14px}.clan-tabs button,.clan-subtabs button{flex:1;min-width:0;border:0;background:transparent;color:#92bdd1;font-size:11px;padding:8px 4px;min-height:35px}.clan-tabs button.selected,.clan-subtabs button.selected{background:linear-gradient(#1588a7,#096887);color:white;box-shadow:inset 0 1px #5dd4df55}.clan-demo-note{font-size:9px;color:#a2c7d7;margin:0 0 10px!important;line-height:1.4}.clan-search-row{display:flex;gap:7px;align-items:stretch;margin-bottom:11px}.clan-ui input,.clan-ui textarea{font:inherit;color:#e8faff;background:#013958;border:1px solid #569ab466;border-radius:9px;padding:10px;min-width:0;width:100%;outline-offset:2px}.clan-ui input::placeholder,.clan-ui textarea::placeholder{color:#8bb1c4}.clan-search-row input{flex:1}.clan-search-row button{flex:none;font-size:10px;max-width:105px}.clan-list-row{display:flex;align-items:center;gap:9px;background:linear-gradient(115deg,#075f80bd,#063b63b3);border:1px solid #5bbccc59;border-radius:13px;padding:11px 9px;margin-bottom:8px}.clan-list-row.own-clan{border-color:#9ce8bd;background:linear-gradient(110deg,#106f78,#064767)}.clan-tag{font-size:9px;letter-spacing:1px;color:#8ed7da;font-weight:800}.clan-row-copy{min-width:0;flex:1}.clan-row-copy h4{font-size:13px;overflow-wrap:anywhere;margin:3px 0 4px}.clan-row-copy small{font-size:9px;color:#b4d3e0}.clan-row-end{text-align:end;max-width:98px;flex:none}.clan-row-end>b{display:block;font-size:17px;color:#a3f1ce;font-variant-numeric:tabular-nums}.clan-row-end>small{display:block;color:#8db7ce;font-size:8px}.clan-row-end button{min-height:25px;font-size:9px;padding:5px 8px;margin-top:7px;background:#087d9b}.clan-rank{font-size:19px;flex:none;width:23px;text-align:center}.clan-help,.clan-loading{font-size:10px;text-align:center;color:#a3cddc;padding:10px 0}.clan-empty{text-align:center;color:#a7cad9;padding:26px 10px;line-height:1.65}.clan-welcome>.clan-emblem{margin:8px auto 14px}.clan-welcome h3{font-size:20px!important;color:#d5ffff!important}.clan-welcome p{margin:12px 0 18px}.clan-welcome button{margin:4px;min-width:105px}.clan-hero{position:relative;display:flex;gap:13px;align-items:center;flex-wrap:wrap;background:radial-gradient(ellipse at 15% 0,#197f9666,transparent 70%),linear-gradient(135deg,#064f79,#033759);border:1px solid #5ccfdb7d;padding:16px 13px;border-radius:17px;margin-bottom:12px;overflow:hidden}.clan-hero>.large+div{flex:1;min-width:0}.clan-hero h3{font-size:22px!important;margin:4px 0 5px!important;overflow-wrap:anywhere;color:#f4ffff!important}.clan-hero p{font-size:10px;line-height:1.5;color:#b5d7df;overflow-wrap:anywhere}.clan-hero button.clan-gear{align-self:flex-start;font-size:18px;padding:0;background:transparent;border:0;min-height:25px;min-width:25px}.clan-stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;width:100%;border-top:1px solid #80d5e52e;padding-top:12px;margin-top:1px}.clan-stats div{text-align:center;border-inline-end:1px solid #80d5e52e}.clan-stats div:last-child{border:0}.clan-stats b{display:block;font-size:20px;color:#bcf3de;line-height:1.4}.clan-stats span{display:block;color:#9cc6d3;font-size:9px;line-height:1.4}.clan-reef{width:100%;background:#002c4b8c;border:1px solid #4a9cb357;border-radius:10px;padding:10px}.clan-reef>div{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px}.clan-reef b{font-size:11px;color:#9de3c6}.clan-reef small{font-size:8px;color:#9fbecf}.clan-ui progress{appearance:none;display:block;width:100%;height:6px;border:0;border-radius:999px;overflow:hidden;background:#012d49}.clan-ui progress::-webkit-progress-bar{background:#012d49}.clan-ui progress::-webkit-progress-value{background:linear-gradient(90deg,#21b6ad,#a8f5a3);border-radius:999px}.clan-ui progress::-moz-progress-bar{background:#55d6b0;border-radius:999px}.clan-goal{background:linear-gradient(120deg,#075d71,#044462);border:1px solid #54bdba85;border-radius:14px;padding:13px;margin-bottom:15px}.clan-goal-top{display:flex;gap:10px;align-items:center;margin-bottom:10px}.clan-goal-top>span{font-size:31px}.clan-goal-top>div{flex:1}.clan-goal-top h3{font-size:24px!important;color:#ddfff3!important;margin:4px 0 0!important;line-height:1}.clan-goal-top h3 small{font-size:14px;color:#91bfc6}.clan-goal-top>strong{font-size:23px;color:#ffdc8e}.clan-goal-top strong small{display:block;text-align:center;font-size:9px;letter-spacing:1px}.clan-goal p{font-size:10px;color:#abd0da;line-height:1.55;margin:9px 0 12px}.clan-goal>small{display:block;margin-top:9px;color:#b0d7d9;font-size:10px}.clan-section-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:10px 0}.clan-section-heading h3{font-size:14px!important;color:#dcf6ff!important}.clan-section-heading p{font-size:10px;line-height:1.5;color:#97bbca;margin-top:5px}.clan-time{font-size:8px;color:#7fc3d5;text-align:end;max-width:130px}.clan-mission{display:flex;align-items:center;gap:9px;padding:11px 8px;border:1px solid #5395ad50;border-radius:12px;background:#023b5ac9;margin-bottom:7px}.clan-mission-icon{font-size:24px;flex:none}.clan-mission>div{flex:1;min-width:0}.clan-mission h4{font-size:11px;line-height:1.4}.clan-mission small{display:block;font-size:8px;color:#91bfd0;line-height:1.5;margin-top:4px}.clan-mission small b{color:#b5e2c8;font-weight:500}.clan-mission button{font-size:9px;max-width:88px;padding:7px;min-height:31px}.clan-mission button.done{background:#11584d;color:#a6e3c6}.clan-member{display:flex;gap:9px;align-items:center;border-bottom:1px solid #59acc539;padding:10px 4px}.clan-avatar{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#208da9,#075384);color:#c2f6ed;font-size:17px;flex:none}.clan-member>div{min-width:0;flex:1}.clan-member h4{font-size:12px;overflow-wrap:anywhere}.clan-member small{font-size:9px;color:#95bdce;display:block;margin-top:4px}.clan-member-actions{position:relative}.clan-member-actions summary{list-style:none;padding:10px;cursor:pointer;color:#97c2d0}.clan-member-actions button{display:block;width:130px;font-size:9px;margin:4px 0}.clan-live-dot{width:5px;height:5px;display:inline-block;background:#65d7b2;border-radius:100%;margin-inline-start:5px}.clan-messages{max-height:300px;min-height:170px;overflow:auto;overscroll-behavior:contain;padding:4px}.clan-message{max-width:90%;background:#075a7a;border:1px solid #61bbd83d;border-radius:12px 12px 12px 2px;padding:9px 11px;margin:0 auto 8px 0}.clan-message.mine{background:#116d78;border-color:#60cebd6e;margin:0 0 8px auto;border-radius:12px 12px 2px 12px}.clan-message header{display:flex;align-items:center;gap:10px;font-size:9px;color:#b2e7e4}.clan-message time{font-size:8px;margin-inline-start:auto;color:#85bdc6}.clan-message header button{min-height:15px;padding:0 3px;background:transparent;border:0;color:#9abec7;font-size:17px;line-height:1}.clan-message p{font-size:12px;line-height:1.5;margin:4px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.clan-chat form{display:flex;gap:7px;border-top:1px solid #57b2c540;padding-top:12px;margin-top:6px}.clan-chat form input{flex:1}.clan-chat form button{flex:none}.clan-form{background:#04446975;border:1px solid #52b5c661;border-radius:14px;padding:14px}.clan-form h3{font-size:19px!important;margin:0 0 7px!important;color:#dcffff!important}.clan-form>p{font-size:10px;color:#a5cad7;margin-bottom:16px}.clan-form label{display:block;font-size:10px;color:#abd4e4}.clan-form input,.clan-form textarea{display:block;margin-top:6px}.clan-form-row{display:grid;grid-template-columns:1fr 90px;gap:10px;margin-bottom:13px}.clan-form textarea{resize:vertical}.clan-emblem-picker{border:0;padding:0;margin:14px 0;display:flex;gap:10px}.clan-emblem-picker legend{font-size:10px;color:#acd6de;margin-bottom:8px}.clan-emblem-picker label{position:relative;cursor:pointer}.clan-emblem-picker input{position:absolute;opacity:0;width:1px;height:1px}.clan-emblem-picker input:checked+.clan-emblem{outline:2px solid #b4ffba;outline-offset:2px}.clan-emblem-picker input:focus-visible+.clan-emblem{outline:2px solid white;outline-offset:2px}.clan-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}.clan-leave{display:block;width:100%;margin-top:16px;background:#7b374b66!important;border-color:#c5738d77!important;color:#ffd6e0!important}.clan-error{color:#ffb8c5;line-height:1.5;font-size:11px;overflow-wrap:anywhere;margin-top:9px!important}.clan-notice{background:#166d64;border:1px solid #55bf9c;color:#d0ffdf;padding:10px;border-radius:10px;margin:0 0 10px;font-size:11px}.clan-refresh{display:block;margin:12px auto 0;background:transparent!important;border:0!important;color:#8eb8cd!important;font-size:10px!important;min-height:25px!important}
@media(max-width:360px){.clan-ui .clan-emblem{width:37px;height:41px;font-size:25px}.clan-hero{padding:12px 10px}.clan-hero h3{font-size:19px!important}.clan-row-copy h4{font-size:12px}.clan-list-row{gap:7px;padding:10px 8px}.clan-row-end{max-width:80px}.clan-row-end b{font-size:15px}.clan-rank{font-size:16px;width:20px}.clan-reef>div{align-items:flex-start;flex-direction:column;gap:3px}.clan-mission button{max-width:73px;font-size:8px}.clan-tabs button{font-size:10px}.clan-intro h3{font-size:23px!important}}
/* v55: supplied card, shield emblems and dark-water interface. */
#game .side .clan-card{aspect-ratio:1030/978;border:0;border-radius:22%;background-color:transparent;background-image:url('/clans/assets/card-reference.jpg');background-size:122.4% 128.9%;background-position:50% 50%;box-shadow:none;isolation:isolate}
#game .side .clan-card:before{display:none!important}#game .clan-card-caption{inset:auto 9% 5%;height:22%;border:0;border-radius:999px;background:radial-gradient(ellipse at 50% 0,#075c9d,#02326e 85%);font-size:clamp(9px,2.35vw,12px);text-shadow:0 1px 2px #001d4d;font-weight:900}html[lang=en] #game .clan-card-caption{visibility:hidden}
#sheet[data-panel=clans]{background:#001a30 url('/clans/assets/water.svg') center top/cover;border:1px solid #60d9f7;border-radius:25px;box-shadow:inset 0 0 13px #26c8ff26,0 0 13px #0d8bd54d,0 20px 80px #00101cb3;color:#e6f9ff;width:min(560px,96vw)}
#sheet[data-panel=clans] .sheet-head{background:transparent;border:0;padding-top:13px;padding-bottom:0;min-height:62px}#sheet[data-panel=clans] .popup-logo{max-height:64px;width:190px;height:auto;margin-bottom:0}#sheet[data-panel=clans] #sheetTitle{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}#sheet[data-panel=clans] #sheetBody{padding:0 16px 16px}#sheet[data-panel=clans] #closeSheet{background:radial-gradient(circle at 30% 20%,#075e7b,#00233b);border:1px solid #71eaff;box-shadow:inset 0 0 6px #56d9ff4d,0 0 10px #33c7ff40;border-radius:50%;color:#e7fcff;width:36px;height:36px;right:11px;top:12px}
.clan-intro{display:flex;flex-direction:column;gap:9px;text-align:center;padding:9px 0 20px}.clan-intro h3{font-size:36px!important;margin:0 0 5px!important;font-weight:850;letter-spacing:-.6px;text-shadow:0 3px 2px #001328}.clan-intro p{font-size:14px;color:#aac9e8}.clan-intro .clan-emblem{width:98px;height:112px;flex:none;background-size:452% 895%;background-position:50% 12.2%;border:0;border-radius:0;box-shadow:none;clip-path:polygon(50% 0,99% 15%,96% 61%,81% 81%,50% 99%,19% 81%,4% 61%,1% 15%)}
.clan-emblem,.clan-emblem[data-emblem]{width:62px;height:73px;border:0;border-radius:0;box-shadow:none;background-image:url('/clans/assets/panel-reference.jpg');background-repeat:no-repeat;background-size:550% 1059.3%;background-position:10.3% 54.2%;clip-path:polygon(50% 0,99% 15%,96% 61%,81% 81%,50% 99%,19% 81%,4% 61%,1% 15%);filter:drop-shadow(0 3px 3px #0008)}
.clan-emblem[data-emblem=shark]{background-image:url('/clans/assets/panel-reference.jpg');background-position:10.3% 68.2%}.clan-emblem[data-emblem=wave]{background-image:url('/clans/assets/panel-reference.jpg');background-position:10.3% 82.15%}.clan-emblem[data-emblem=turtle]{background-image:url('/clans/assets/panel-reference.jpg');filter:hue-rotate(25deg);background-position:10.3% 54.2%}.clan-emblem.large{width:74px;height:85px}.clan-ui{font-size:13px}.clan-ui button{border-radius:10px;min-height:35px}.clan-ui button.gold,.clan-row-end button{background:linear-gradient(160deg,#2ee8d6,#04a7ae 50%,#007286);border:1px solid #73fff4;color:white;box-shadow:inset 0 1px 4px #b4fff970,0 0 6px #00dfd430;text-shadow:0 1px 1px #004a63}.clan-ui button.gold:hover,.clan-row-end button:hover{filter:brightness(1.1)}.clan-ui button:disabled{opacity:.42}
.clan-tabs,.clan-subtabs{padding:3px;gap:2px;border:1px solid #3ab4e8;border-radius:16px;background:linear-gradient(#01243b,#00172b);box-shadow:inset 0 0 8px #1b8fca2b;margin-bottom:15px}.clan-tabs button{font-size:14px;min-height:43px;border-radius:13px;font-weight:800;padding:10px 4px;color:#8fb9dd}.clan-tabs button.selected,.clan-subtabs button.selected{background:linear-gradient(160deg,#27e0e9,#0099b6 55%,#00647f);border:1px solid #71faff;box-shadow:inset 0 1px 5px #8cffff80,0 0 8px #1ae0f338;color:white}.clan-search-row{gap:9px;margin-bottom:18px}.clan-search-row input{border:1px solid #459aca;background:linear-gradient(#04283e,#001b30);box-shadow:inset 0 0 5px #7ed9f51a;min-height:43px;padding:11px 10px;font-size:12px}.clan-search-row button{min-height:43px;font-size:12px;max-width:120px}.clan-list-heading{display:flex;align-items:center;gap:12px;margin:10px 2px 12px}.clan-list-heading span{font-size:10px;color:#72d9ec;text-transform:uppercase;font-weight:800;letter-spacing:1.6px}.clan-list-heading i{height:1px;background:#426e93;flex:1}
.clan-list-row{gap:12px;padding:13px 12px;margin-bottom:12px;background:radial-gradient(ellipse at 10% 0,#08607b40,transparent 65%),linear-gradient(115deg,#00283e,#00192c);border:1px solid #319ccc;border-radius:17px;box-shadow:inset 0 0 9px #2a8bb320,0 2px 7px #0003;min-height:124px}.clan-list-row.own-clan{background:linear-gradient(120deg,#073b4d,#001c30);border-color:#44d5cf}.clan-tag{font-size:11px;letter-spacing:1.4px;color:#69d1e7}.clan-row-copy h4{font-size:17px;margin:6px 0;font-weight:800;line-height:1.2}.clan-row-copy small{font-size:10px;line-height:1.4;color:#b7cbe1}.clan-row-copy{min-width:0;flex:1}.clan-row-end{max-width:98px}.clan-row-end>b{font-size:24px;color:#9ef3e4}.clan-row-end>small{font-size:9px;color:#92c0d6;margin-top:3px}.clan-row-end button{font-size:11px;min-height:33px;min-width:76px;margin-top:9px;padding:6px 9px;text-transform:uppercase}.clan-list-progress{margin-top:9px;height:7px!important;border:1px solid #4d91b0!important;background:#183b54!important}.clan-ui progress::-webkit-progress-value{background:linear-gradient(90deg,#17c7ce,#05e7d4)}.clan-ui progress::-moz-progress-bar{background:#11dacc}.clan-help{text-align:center;color:#87afc9;font-size:10px;padding:2px 0 10px}.clan-discover-footer{display:flex;gap:14px;align-items:center;padding:16px 15px;margin-top:11px;border:1px solid #2186b0;border-radius:17px;background:linear-gradient(110deg,#02374c,#001e31);box-shadow:inset 0 0 8px #1b9ccd26}.clan-discover-footer>span{font-size:27px;color:#60d5ff;border-inline-end:1px solid #3f7495;padding-inline-end:14px}.clan-discover-footer p{font-size:11px;line-height:1.55;color:#86b9da}.clan-demo-note{font-size:9px;color:#789db9;text-align:center;margin-bottom:11px!important}.clan-hero,.clan-form,.clan-goal{background:linear-gradient(115deg,#032b40e8,#001c31f0);border:1px solid #268caf;box-shadow:inset 0 0 10px #2a8fbc1a}.clan-mission{background:#02263be6;border-color:#286788}.clan-creation-cost{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px;background:#062f43;border:1px solid #348898;border-radius:10px;margin:12px 0 16px}.clan-creation-cost>span{font-size:11px;color:#9dc8d9}.clan-creation-cost>b{font-size:17px;color:#a3ffe6}.clan-creation-cost p{width:100%;font-size:10px;color:#83abba;line-height:1.5}.clan-form-actions{justify-content:stretch}.clan-form-actions button{flex:1;font-size:11px}.clan-emblem-picker{justify-content:space-around}.clan-emblem-picker .clan-emblem{width:46px;height:54px}.clan-emblem-picker input:checked+.clan-emblem{filter:drop-shadow(0 0 6px #55ffdf);outline:0;transform:scale(1.1)}
@media(max-width:400px){#sheet[data-panel=clans]{width:96vw;max-width:96vw;padding:8px}#sheet[data-panel=clans] #sheetBody{padding:0 7px 11px}.clan-intro{padding-top:4px;padding-bottom:17px;gap:5px}.clan-intro h3{font-size:31px!important}.clan-intro p{font-size:12px}.clan-intro .clan-emblem{width:85px;height:97px}.clan-tabs button{font-size:12px;min-height:38px}.clan-tabs{margin-bottom:13px}.clan-list-row{gap:9px;padding:11px 9px;min-height:105px;border-radius:14px}.clan-list-row .clan-emblem{width:48px;height:56px}.clan-row-copy h4{font-size:14px;margin:5px 0}.clan-tag{font-size:9px}.clan-row-copy small{font-size:8px}.clan-row-end>b{font-size:20px}.clan-row-end>small{font-size:8px}.clan-row-end{max-width:75px}.clan-row-end button{font-size:9px;min-width:63px;min-height:29px;padding:6px}.clan-list-progress{height:6px!important;margin-top:7px}.clan-search-row{gap:7px}.clan-search-row input{font-size:10px;min-height:38px}.clan-search-row button{font-size:11px;min-height:38px;max-width:90px}.clan-list-heading span{font-size:8px}.clan-help{font-size:9px}.clan-list-row .clan-row-copy{flex:1}.clan-discover-footer{padding:12px;gap:11px}.clan-discover-footer p{font-size:10px}}
@media(max-width:340px){.clan-list-row{padding:10px 7px;gap:7px}.clan-list-row .clan-emblem{width:42px;height:49px}.clan-row-copy h4{font-size:12px}.clan-row-end>b{font-size:18px}.clan-row-end{max-width:65px}.clan-row-end button{font-size:8px;min-width:56px}.clan-row-copy small{font-size:7px}.clan-tabs button{font-size:11px}.clan-search-row input{padding:9px 8px}.clan-list-row .clan-tag{font-size:8px}}
.clan-intro .clan-heading-crest{width:105px;height:121px;background-size:452% 895%;background-position:50% 12.2%;margin-bottom:0}.clan-demo-note{margin-top:-3px!important}.clan-intro{padding-bottom:16px}#sheet[data-panel=clans] .clan-ui input[type=radio]{width:1px;height:1px}
@media(max-width:400px){.clan-intro .clan-heading-crest{width:85px;height:97px}.clan-intro{padding-bottom:13px}}
/* v56: render complete badge viewports, never cut their shield borders. */
.clan-ui .clan-emblem,.clan-ui .clan-emblem[data-emblem],.clan-ui .clan-intro .clan-heading-crest{background:none!important;border:0!important;border-radius:0!important;clip-path:none!important;mask:none!important;overflow:visible;filter:none;box-shadow:none!important;flex-shrink:0}
.clan-ui .clan-emblem-art{display:block;width:100%;height:100%;max-width:none;flex:none;overflow:hidden;clip-path:none!important;mask:none!important}.clan-ui .clan-emblem[data-emblem=turtle] .clan-emblem-art{filter:hue-rotate(25deg)}.clan-ui .clan-intro .clan-heading-crest{width:112px;height:116px;margin:0 auto 3px}.clan-ui .clan-emblem.large{width:78px;height:89px}.clan-ui .clan-emblem-picker input:checked+.clan-emblem{outline:2px solid #4af8db;outline-offset:3px;border-radius:8px!important;transform:none;filter:none}.clan-member-actions{flex:none;max-width:150px}.clan-member-actions[open]{align-self:flex-start}.clan-member-actions summary{font-size:14px;min-width:36px;min-height:34px;display:flex;align-items:center;justify-content:center;border:1px solid #2a7e9c;border-radius:9px;background:#03364b;list-style:none}.clan-member-actions button{max-width:140px;width:100%;white-space:normal;overflow-wrap:anywhere}.clan-ui button.clan-ban{color:#ffd3df;background:#63364d;border-color:#ac617e}.clan-bans{padding:13px 0 3px;margin-top:13px;border-top:1px solid #348aa266}.clan-bans h3{font-size:13px!important;color:#b9d4e5!important;margin-bottom:11px!important}.clan-bans>p{font-size:11px;color:#8daebf}.clan-bans article{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #33758e44}.clan-bans article span{flex:1;min-width:0;overflow-wrap:anywhere}.clan-bans article button{flex:none;max-width:120px;font-size:10px}.clan-history-note{font-size:10px!important;line-height:1.5!important;color:#8fb4c5!important;margin:0 0 10px!important}.clan-load-older{display:block;margin:4px auto 10px;min-height:30px!important;font-size:10px!important;background:#063e58!important}.clan-ui .clan-member h4{line-height:1.4}.clan-ui .clan-member small{line-height:1.4}
@media(max-width:400px){.clan-ui .clan-intro .clan-heading-crest{width:92px;height:95px}.clan-member-actions{max-width:115px}.clan-member-actions button{font-size:8px;padding:6px;min-height:31px}.clan-ui .clan-emblem.large{width:63px;height:73px}}
.clan-inline-confirm{padding:15px;border:1px solid #70d9dd;border-radius:14px;background:#06354b;margin:0 0 14px;box-shadow:0 5px 24px #00142488}.clan-inline-confirm>p{font-size:12px;line-height:1.65;color:#d3edf3;margin:0 0 12px}.clan-inline-confirm>div{display:flex;gap:8px;justify-content:flex-end}.clan-inline-confirm button{min-width:78px}
.clan-ui .clan-list-row .clan-emblem{width:66px;height:76px}@media(max-width:400px){.clan-ui .clan-list-row .clan-emblem{width:58px;height:68px}}@media(max-width:340px){.clan-ui .clan-list-row .clan-emblem{width:54px;height:64px}}
/* v57: replace only the Partnership menu card, preserving its data/admin tools. */
#game #partnerCard{display:none!important}#game .side.right .clan-card{margin:0!important;flex:none;align-self:center}#game .side.right .clan-card[hidden]{display:none!important}.clan-disabled{padding:25px 10px;color:#a9d9e7;text-align:center;line-height:1.6}

/* v58: profile avatars, kept clear of message text at narrow widths. */
.clan-player-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;padding:0;border:1px solid #4dcde4;border-radius:50%;background:#063653;overflow:hidden;cursor:pointer;box-shadow:0 0 8px #16a6c430}
.clan-player-avatar .ocean-avatar{width:38px;height:38px}
.clan-player-avatar.unavailable{cursor:default}
.clan-message header{display:flex;align-items:center;gap:8px}
.clan-message header>b{min-width:0;overflow-wrap:anywhere;flex:1}
.clan-message header>time{flex-shrink:0;margin-inline-start:auto}
.clan-message p{overflow-wrap:anywhere}
.clan-member .clan-player-avatar{margin-inline-end:8px}

/* v59: isolate sprite crops and draw profile art without CSS pseudo-elements. */
.clan-ui .clan-emblem-art{overflow:hidden!important}
.clan-ui .clan-player-avatar,.clan-ui .clan-message header .clan-player-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;min-width:40px;min-height:40px;max-width:40px;padding:0!important;margin-block:0;border:1px solid #75e3fb!important;border-radius:50%!important;overflow:hidden;background:#034566!important;box-shadow:inset 0 0 2px #63d6f4;line-height:1;isolation:isolate}
.clan-ui .clan-avatar-art{display:block;position:relative;z-index:1;width:100%;height:100%;flex:none;overflow:hidden;pointer-events:none}
.clan-ui .clan-avatar-initial{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#d6f8ff;font-size:16px;z-index:0}

/* v61: eight complete emblems, four per row even on narrow screens. */
.clan-ui .clan-emblem-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 8px;justify-items:center;padding:8px 2px}.clan-emblem-picker legend{float:none}.clan-emblem-picker .clan-emblem{width:54px;height:62px}.clan-ui img.clan-emblem-art{object-fit:contain}.clan-row-bonus{display:block;font-size:10px;color:#9ff0c9;margin-top:5px}.clan-production-bonus{display:block!important;margin:12px 0 0!important;padding-top:10px;border-top:1px solid #4b9aa444}.clan-production-bonus strong{display:block;color:#a4f7d4;font-size:14px;line-height:1.4}.clan-production-bonus p{margin:5px 0!important;font-size:10px;line-height:1.55}.clan-production-bonus small{display:block;line-height:1.5}

/* v62: all eight standalone transparent crests keep their native colors. */
.clan-ui .clan-emblem[data-emblem=turtle] .clan-emblem-art{filter:none}.clan-ui .clan-emblem-art{object-fit:contain;padding:3px}.clan-ui .clan-intro .clan-heading-crest{width:100px;height:112px}.clan-ui .clan-emblem-picker .clan-emblem{width:58px;height:66px}

/* Clan contribution shown beside personal boosts. */
.clan-boost-summary{padding:14px;border:1px solid #4fc8ce88;border-radius:14px;background:linear-gradient(125deg,#06435c,#032a43);margin:14px 0;color:#e6faff}.clan-boost-heading{display:flex;align-items:center;gap:12px;justify-content:space-between}.clan-boost-heading>div{min-width:0}.clan-boost-heading h3{font-size:16px!important;margin:0 0 5px!important;color:#d8fff3!important}.clan-boost-heading p{font-size:11px;line-height:1.5;margin:0;color:#acd7df}.clan-boost-heading>strong{font-size:25px;color:#9ef2cc;white-space:nowrap}.clan-boost-summary dl{margin:12px 0 0;border-top:1px solid #69c0cc44;padding-top:5px}.clan-boost-summary dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-top:8px}.clan-boost-summary dt{font-size:11px;line-height:1.4;color:#aacbda;min-width:0}.clan-boost-summary dd{font-size:12px;line-height:1.4;font-weight:700;margin:0;text-align:end;overflow-wrap:anywhere}.clan-boost-note{font-size:10px!important;line-height:1.5;color:#95b9c9;margin:11px 0 0!important}

/* v66: compact Boost panel, with one shared status card. */
#sheet[data-panel=boost] .sheet-head{padding:7px 38px 6px}#sheet[data-panel=boost] .popup-logo{width:160px;max-height:46px;margin:0 auto 3px}#sheet[data-panel=boost] #sheetTitle{font-size:20px;margin:3px 0}#sheet[data-panel=boost] #sheetBody{padding:9px 12px 12px}#sheet[data-panel=boost] .clan-boost-summary{margin:0 0 10px;padding:10px 12px;border-radius:12px}.boost-summary-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.boost-summary-top h3{font-size:13px!important;line-height:1.3!important;margin:0!important;color:#c8f2e9!important}.boost-summary-top>strong{font-size:24px;color:#a1f1d2;white-space:nowrap}.boost-sources{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:7px;padding-top:7px;border-top:1px solid #69c0cc33}.boost-sources>div{min-width:0}.boost-sources span{display:block;font-size:11px;line-height:1.4;color:#a9d0dc}.boost-sources b{color:#e6fff6;margin-inline-start:4px;white-space:nowrap}.boost-sources small{display:block;font-size:9px;color:#8fb5c8;margin-top:3px;line-height:1.4}.boost-sources time{font-variant-numeric:tabular-nums;white-space:nowrap}.boost-summary-production{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-top:8px;margin-top:7px;border-top:1px solid #69c0cc33;font-size:11px}.boost-summary-production span{color:#a9cdda}.boost-summary-production b{text-align:end;overflow-wrap:anywhere}.boost-calculation{display:block;text-align:end;color:#81b7c5;font-size:9px;margin-top:4px;font-variant-numeric:tabular-nums}#sheet[data-panel=boost] .tabs{margin:0 0 6px;padding:3px}#sheet[data-panel=boost] .tabs button{min-height:32px;padding:5px;font-size:12px}#sheet[data-panel=boost] .boost-plan{min-height:66px;padding:8px 2px;gap:9px}#sheet[data-panel=boost] .boost-plan-copy h3{display:none}#sheet[data-panel=boost] .boost-plan-copy p{font-size:10px;line-height:1.3;margin:0 0 4px}#sheet[data-panel=boost] .boost-plan-copy small{font-size:10px;line-height:1.3}#sheet[data-panel=boost] .boost-percent{font-size:22px;min-width:40px}#sheet[data-panel=boost] .boost-plan>button{min-height:40px;padding:7px 9px;font-size:12px}#sheet[data-panel=boost] .boost-help{font-size:10px;color:#9dc6d5;margin-top:8px;line-height:1.5}#sheet[data-panel=boost] .boost-help summary{cursor:pointer;padding:6px 0;color:#b7dce7}#sheet[data-panel=boost] .boost-help p{font-size:10px;margin:4px 0}

/* v67: one navigation row; discovery is only available before membership. */
.clan-ui .clan-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:4px;margin-bottom:12px}.clan-ui .clan-navigation.has-clan{grid-template-columns:repeat(4,minmax(0,1fr))}.clan-ui .clan-navigation button{min-width:0;min-height:40px;white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.3;padding:7px 3px;border-radius:9px}.clan-ui .clan-navigation .clan-live-dot{width:4px;height:4px;margin-inline-start:3px}

/* v250: restore shared popup layout removed with item assets. */
#sheet:is([data-panel="fish"],[data-panel="clans"],[data-panel="leaders"],[data-panel="settings"]) #fishScroll161{display:block;flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#398aa4 transparent}
#sheet:is([data-panel="fish"],[data-panel="clans"],[data-panel="leaders"],[data-panel="settings"]) #fishScroll161>.sheet-head{position:relative;top:auto;transform:none}
#sheet:is([data-panel="fish"],[data-panel="clans"],[data-panel="leaders"],[data-panel="settings"]) #fishScroll161>#sheetBody{overflow:visible;max-height:none;height:auto;min-height:0;flex:none}
#sheet[data-panel="fish"]>#closeSheet{position:absolute;z-index:30;right:12px;top:12px;display:grid;place-items:center;width:32px;height:32px;padding:0;border-radius:50%;font-size:25px;line-height:1;color:#fff;background:#04649be6;border:1px solid #94edff;box-shadow:inset 0 0 8px #3edef35c;cursor:pointer}

/* v163: keep the original clan colors and close-button styling. */
#sheet[data-panel="clans"]>#closeSheet{position:absolute;z-index:30;display:grid;place-items:center;padding:0;font-size:25px;line-height:1;cursor:pointer}

/* v164: keep only the close control fixed in Settings and Leaderboard. */
#sheet:is([data-panel="leaders"],[data-panel="settings"])>#closeSheet{position:absolute;z-index:30;display:grid;place-items:center;padding:0;border-radius:50%;font-size:25px;line-height:1;cursor:pointer}

#sheet:is([data-panel="fish"],[data-panel="clans"],[data-panel="leaders"],[data-panel="settings"])>#closeSheet{position:absolute!important;z-index:50!important;right:12px!important;top:12px!important;display:grid!important;place-items:center;pointer-events:auto;cursor:pointer}
