/* Layout only. All controls retain their original IDs, listeners and server data. */
:root{--layout-gold:#c59a54;--layout-panel:linear-gradient(150deg,#102738,#03131f 70%);--layout-cyan:#30e1ec}
body.layout1 button,body.layout1 input,body.layout1 select{font-family:Arial,Helvetica,sans-serif}
body.layout1 button:focus-visible,body.layout1 summary:focus-visible,body.layout1 a:focus-visible{outline:2px solid var(--layout-cyan);outline-offset:3px}
body.layout1 #accountOverlay{background:url('fantasy-start-1.svg') center center/cover no-repeat!important;overflow:hidden!important;display:block!important;padding:0!important}
body.layout1 #accountOverlay.hidden{display:none!important}
body.layout1 #accountOverlay:not(.hidden) .accountCard{position:absolute!important;top:26px!important;right:22px!important;left:auto!important;bottom:auto!important;width:min(645px,calc(100vw - 32px))!important;max-width:none!important;max-height:calc(100dvh - 110px)!important;transform:none!important;padding:9px 10px!important;border:1px solid #c49b53!important;border-radius:9px!important;background:#031522ed!important;box-shadow:0 4px 30px #00111b66!important;box-sizing:border-box!important;overflow:visible!important}
body.layout1 #accountOverlay:not(.layoutRegister1) .accountCard>h2,body.layout1 #accountOverlay:not(.layoutRegister1) .accountCard>p,body.layout1 #accountOverlay:not(.layoutRegister1) .accountActions,body.layout1 #accountOverlay:not(.layoutRegister1) #forum15Button,body.layout1 #accountOverlay:not(.layoutRegister1) #emailActivationNote1{display:none!important}
body.layout1 #accountOverlay:not(.layoutRegister1) #accountForm{display:grid!important;grid-template-columns:minmax(110px,1fr) minmax(110px,1fr) 137px 72px;gap:12px!important;margin:0!important;padding:0!important}
body.layout1 #accountOverlay:not(.layoutRegister1) #accountForm input,body.layout1 #accountOverlay:not(.layoutRegister1) #accountSubmit{width:100%!important;min-width:0;height:40px!important;margin:0!important;padding:8px 13px!important;box-sizing:border-box;border:1px solid #b5a789;border-radius:5px!important;background:#041b2d;color:white;font-size:16px!important}
body.layout1 #accountOverlay:not(.layoutRegister1) #accountSubmit{grid-column:3;grid-row:1;background:linear-gradient(110deg,#c99229,#ffe6a0 52%,#c58a21)!important;color:#07131b!important;font-weight:800;text-transform:uppercase;border-color:#ffe4a2!important;box-shadow:inset 0 0 8px #fff7cf66}
body.layout1 #accountOverlay:not(.layoutRegister1) .languagePicker{position:absolute;right:9px;top:9px;width:72px;margin:0!important;padding:0!important;z-index:1}
body.layout1 #accountOverlay:not(.layoutRegister1) .languagePicker label{display:none}body.layout1 #accountOverlay .languagePicker select{width:100%;height:40px;background:#061b2b;border:1px solid #b29c76;color:#fff;border-radius:5px;padding:3px}
body.layout1 #accountLinks1{display:flex;justify-content:flex-end;gap:20px;position:absolute;top:calc(100% + 8px);right:8px;white-space:nowrap;align-items:center;font-size:15px;text-shadow:0 2px 3px #000}
body.layout1 #accountLinks1 button,body.layout1 #accountLinks1 a{border:0;background:none;padding:0;min-height:26px;color:white;text-decoration:underline;font-weight:400;font-size:15px;cursor:pointer}
body.layout1 #accountMessage:empty{display:none}body.layout1 #accountMessage:not(:empty){margin:10px 0 0!important;background:#062438ef;border:1px solid #d7a859;padding:8px;color:#fff5ce}
body.layout1 #accountOverlay.layoutRegister1 .accountCard{width:min(460px,calc(100vw - 24px))!important;overflow:auto!important;padding:22px!important}
body.layout1 #accountOverlay.layoutRegister1 #accountLinks1{position:static;margin-top:15px;justify-content:space-between;white-space:normal}
body.layout1 #accountOverlay.layoutRegister1 #accountRegisterForm input{box-sizing:border-box;max-width:100%;min-height:42px}body.layout1 #accountOverlay.layoutRegister1 .languagePicker{float:right;max-width:125px}
body.layout1 #appDownloadV1{position:absolute!important;left:50%!important;right:auto!important;top:auto!important;bottom:86px!important;transform:translateX(-50%)!important;width:min(650px,calc(100vw - 40px))!important;max-width:none!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;text-align:center!important}
body.layout1 #appDownloadV1 .appPlatformV1,body.layout1 #appDownloadV1>p:first-of-type{display:none!important}
body.layout1 #apkDownloadV1{width:100%;height:76px!important;background:linear-gradient(180deg,#13747b,#053b45 42%,#06262d)!important;border:2px solid #dfb566!important;border-radius:22px 8px 22px 8px!important;box-shadow:inset 0 0 11px #30e9e5,0 0 13px #0ae9ec99!important;color:#fff8df!important;text-transform:uppercase;font-size:clamp(16px,2vw,28px)!important;letter-spacing:.1px;font-weight:800}
body.layout1 #apkDownloadV1:before{content:'⇩';font-size:36px;margin-right:25px;color:#ffe6a1}
body.layout1 #apkVersionV1{display:block;color:white;font-size:16px;margin:10px 0 0;text-shadow:0 2px 3px #000}body.layout1 #apkStatusV1:empty{display:none}
body.layout1 #appDownloadV1>a,body.layout1 #appDownloadV1>details{display:inline-block;font-size:12px;color:#e5f6fa;margin:6px 9px 0}body.layout1 #appDownloadV1 details[open]{background:#061b2bf5;border:1px solid #aa8a4c;padding:8px;max-width:100%;overflow-wrap:anywhere}
body.layout1 #appDownloadV1 #apkStatusV1:not(:empty){background:#031b2cf2;color:white;margin:6px 0;padding:6px;font-size:13px}
body.layout1 #accountOverlay.layoutRegister1 #appDownloadV1{display:none!important}
body.layout1:not(.layoutLogged1) #seaFrame1,body.layout1:not(.layoutLogged1) #mapDock1,body.layout1:not(.layoutLogged1) #combatDock1,body.layout1:not(.layoutLogged1) #captainMenu1,body.layout1:not(.layoutLogged1) #fullscreen1{display:none!important}
.tradePanel1{width:min(780px,calc(100vw - 24px));max-height:calc(100dvh - 28px);box-sizing:border-box;overflow:auto;background:var(--layout-panel);color:#e9f4f8;border:1px solid var(--layout-gold);border-radius:12px;padding:24px;box-shadow:0 20px 80px #000b;font:15px/1.55 Arial}
.tradePanel1::backdrop{background:#00101bc9}.tradePanel1 header{display:flex;gap:18px;align-items:center;justify-content:space-between}.tradePanel1 h2{font:24px Georgia;color:#f0ce88;margin:0}.tradePanel1 button{min-height:44px;background:linear-gradient(#21475a,#0a263a);color:#fff;border:1px solid #b9955b;border-radius:6px;padding:10px 16px;cursor:pointer}.tradePanel1 input{background:#051a29;color:#fff;border:1px solid #b9955b;border-radius:6px;max-width:125px;padding:10px;min-height:44px;box-sizing:border-box}.tradePanel1 progress{width:100%;height:20px;accent-color:#36d8cd}.tradeOffers1{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.tradeOffers1 article{border:1px solid #a3824b66;border-radius:8px;background:#12344980;padding:14px}.tradeOffers1 strong{color:#f9d98e}.tradeOffers1 p{margin:4px 0 12px}.tradeActions1{display:flex;flex-wrap:wrap;gap:10px}.tradePanel1 details{margin-top:18px}.tradePanel1 summary{cursor:pointer;color:#96e6ec}
@media(min-width:860px){
 html:not([data-touch-ui="true"]) body.layout1.layoutLogged1{background:#041521}
 html:not([data-touch-ui="true"]) body.layout1 #game,html:not([data-touch-ui="true"]) body.layout1 #world3d{clip-path:inset(var(--sea-top1,118px) var(--sea-right1,310px) var(--sea-bottom1,137px) var(--sea-left1,84px) round 9px)}
 html:not([data-touch-ui="true"]) body.layout1 #seaFrame1{position:fixed;left:var(--sea-left1);top:var(--sea-top1);width:var(--sea-width1);height:var(--sea-height1);box-sizing:border-box;border:2px solid #ba9150;outline:2px solid #062538;border-radius:10px;box-shadow:inset 0 0 0 3px #053d55,0 0 0 3px #1b2b31;z-index:8;pointer-events:none}
 html:not([data-touch-ui="true"]) body.layout1 #marineBrand{left:18px!important;top:6px!important;width:255px!important;height:46px;font-size:28px;color:#f2f3ef;gap:12px}
 html:not([data-touch-ui="true"]) body.layout1 #marineBrand small{font-size:13px;letter-spacing:6px;text-align:center;color:#fff}html:not([data-touch-ui="true"]) body.layout1 #marineBrand svg{height:45px;width:43px}
 html:not([data-touch-ui="true"]) body.layout1 #tfResourceStrip{left:285px!important;right:144px!important;top:0!important;height:56px!important;display:flex!important;padding:0!important;background:linear-gradient(#10283b,#020e19)!important;border:0!important;border-radius:0!important;justify-content:space-around;gap:0}
 html:not([data-touch-ui="true"]) body.layout1 #tfResourceStrip .row{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;padding:6px 12px!important;flex:1;white-space:nowrap;min-width:0;font-size:15px}
 html:not([data-touch-ui="true"]) body.layout1 #tfResourceStrip .row b{font-size:16px!important;color:#ffe0a1!important}body.layout1 #tfResourceStrip .row span{color:#eef3f5}
 html:not([data-touch-ui="true"]) body.layout1 #profileBar{display:none!important}html:not([data-touch-ui="true"]) body.layout1 #repairTools{display:none!important}
 html:not([data-touch-ui="true"]) body.layout1 #captainMenu1{position:fixed;top:7px;right:87px;z-index:100;color:#fff}#captainMenu1 summary{list-style:none;cursor:pointer;font-size:27px;width:44px;height:40px;display:grid;place-items:center}#captainMenu1>div{position:absolute;right:0;top:44px;width:240px;background:#051b2cfb;border:1px solid #c39b57;border-radius:8px;box-shadow:0 8px 28px #0009;padding:7px}#captainMenu1 button{display:block;min-height:44px;width:100%;border:0;background:transparent;color:white;text-align:left;padding:10px;cursor:pointer}
 html:not([data-touch-ui="true"]) body.layout1 #fullscreen1{position:fixed;top:6px;right:13px;z-index:90;background:transparent;color:#fff;border:0;font-size:31px;min-height:44px;width:45px}
 html:not([data-touch-ui="true"]) body.layout1 .buttons{left:0!important;right:0!important;top:58px!important;height:54px!important;bottom:auto!important;display:flex!important;gap:0!important;padding:0 0 0 65px!important;border-radius:0!important;border:0!important;border-top:1px solid #647b86!important;border-bottom:2px solid #be944d!important;background:linear-gradient(#0c2639,#010b14)!important;overflow-x:auto;z-index:60!important}
 html:not([data-touch-ui="true"]) body.layout1 .buttons>button{height:50px!important;min-width:100px!important;flex:1 0 auto!important;font-size:15px!important;font-weight:700!important;text-transform:uppercase;padding:0 20px!important;background:transparent!important;border:0!important;border-right:1px solid #a78950!important;border-radius:0!important;color:#f4f5f4!important;letter-spacing:.2px}
 html:not([data-touch-ui="true"]) body.layout1 .buttons>#seaBtn{background:linear-gradient(#12465a,#002437)!important;box-shadow:inset 0 -3px #15dde9!important;color:white!important}
 html:not([data-touch-ui="true"]) body.layout1 .buttons>#accountBadge15{display:none!important}
 html:not([data-touch-ui="true"]) body.layout1 #marineSide{left:4px!important;top:150px!important;bottom:var(--sea-bottom1)!important;width:74px!important;padding:0!important;gap:14px!important;background:none!important;border:0!important;box-shadow:none!important;overflow:auto;scrollbar-width:none;border-radius:0!important}
 html:not([data-touch-ui="true"]) body.layout1 #marineSide button{min-height:88px!important;flex:0 0 auto;text-align:center;padding:9px 1px!important;border:1px solid #a49d8b!important;border-radius:12px!important;background:linear-gradient(#173449,#031724)!important;font:700 13px Arial!important;color:#fff}
 html:not([data-touch-ui="true"]) body.layout1 #marineSide button:before{display:block;width:auto;font-size:33px;color:#efd18c;margin-bottom:7px}
 html:not([data-touch-ui="true"]) body.layout1 .hud{left:auto!important;right:4px!important;top:118px!important;width:294px!important;max-height:none!important;height:170px!important;padding:9px 12px!important;overflow:hidden!important;background:var(--layout-panel)!important;border:2px solid #b99561!important;border-radius:15px!important;box-sizing:border-box;font-size:13px}
 #shipHeading1{font-size:17px;font-weight:700;color:#f5cd7f;border-bottom:1px solid #a78951;padding:0 0 7px;margin-bottom:8px}#shipIdentity1{font-size:16px;color:white;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:7px 0}
 html:not([data-touch-ui="true"]) body.layout1 .hud>.row{height:15px!important;margin:1px 0!important;font-size:12px!important}html:not([data-touch-ui="true"]) body.layout1 .hud .bar{height:15px;border:1px solid #9da7ab;border-radius:4px;background:#04111a}html:not([data-touch-ui="true"]) body.layout1 .hud #hp{background:linear-gradient(#83eb70,#1c9c24)!important}html:not([data-touch-ui="true"]) body.layout1 .hud #xpBar{background:linear-gradient(#34cfff,#047cc8)!important}html:not([data-touch-ui="true"]) body.layout1 .hpRankRow{position:relative;display:block!important}html:not([data-touch-ui="true"]) body.layout1 #rankBadge{position:absolute;width:25px;height:25px;right:1px;top:-39px;background:transparent}html:not([data-touch-ui="true"]) body.layout1 .hud .row:has(#playerLevel){position:absolute;right:14px;top:35px;display:none!important}
 html:not([data-touch-ui="true"]) body.layout1 #mapDock1{position:fixed;right:4px;top:293px;width:294px;height:228px;box-sizing:border-box;border:2px solid #b99561;border-radius:15px;background:var(--layout-panel);z-index:45;padding:10px 12px}#mapHeading1{font:700 16px Arial;color:white;margin:0 0 9px}html:not([data-touch-ui="true"]) body.layout1 #tfMiniMap{position:static!important;width:calc(100% - 42px)!important;height:126px!important;border:1px solid #849299!important;border-radius:6px!important;padding:0!important;background:#002333!important;display:block!important}html:not([data-touch-ui="true"]) body.layout1 #tfMiniMap canvas{width:100%!important;height:100%!important}html:not([data-touch-ui="true"]) body.layout1 #tfMiniMap span{display:none!important}#mapControls1{position:absolute;right:11px;top:45px;display:flex;flex-direction:column;gap:6px}#mapControls1 button{width:34px;height:34px;background:linear-gradient(#40525c,#091724);border:1px solid #8c969c;border-radius:6px;color:#fff;font-size:24px;padding:0}#mapFollow1{display:block;margin:10px auto 0;width:80%;height:34px;background:linear-gradient(#34464f,#08151f);color:white;border:1px solid #7d8b92;border-radius:5px;font-weight:700}
 html:not([data-touch-ui="true"]) body.layout1 #chatBox{left:auto!important;right:4px!important;top:528px!important;bottom:var(--sea-bottom1)!important;width:294px!important;max-height:none!important;height:auto!important;display:flex;flex-direction:column;border:2px solid #b99561!important;border-radius:12px!important;background:var(--layout-panel)!important;padding:0!important;overflow:hidden}
 html:not([data-touch-ui="true"]) body.layout1 #chatHeader{height:36px;flex:0 0 36px;display:flex;align-items:center;gap:8px;padding:0 8px!important;background:#0c2838;border-bottom:1px solid #c39b57;font-size:13px}#chatLog1{background:transparent;border:1px solid #526f7e;color:#fff;border-radius:4px;padding:5px 8px;cursor:pointer;font-size:12px}html:not([data-touch-ui="true"]) body.layout1 #chatToggle{display:none!important}html:not([data-touch-ui="true"]) body.layout1 #chatBody{display:flex!important;flex:1;min-height:0;flex-direction:column;padding:5px}html:not([data-touch-ui="true"]) body.layout1 #chatMessages{flex:1;max-height:none!important;min-height:25px;font-size:12px!important}html:not([data-touch-ui="true"]) body.layout1 #chatForm{display:flex;flex:0 0 auto;gap:6px;padding:5px 0 0}html:not([data-touch-ui="true"]) body.layout1 #chatInput{min-width:0;width:100%;height:36px;font-size:13px;border-radius:5px}html:not([data-touch-ui="true"]) body.layout1 #chatForm button{min-width:44px;background:#203b4b;color:white;border:1px solid #82929a;border-radius:5px;font-size:11px;padding:2px}
 html:not([data-touch-ui="true"]) body.layout1 .actions{left:4px!important;right:4px!important;bottom:6px!important;height:118px!important;padding:10px 550px 10px 28px!important;gap:10px!important;border:2px solid #b99561!important;border-radius:15px!important;background:var(--layout-panel)!important;z-index:50;overflow-x:auto!important;scrollbar-width:thin}
 html:not([data-touch-ui="true"]) body.layout1 .actions button{flex:0 0 103px!important;min-width:93px!important;max-width:120px!important;border-radius:9px!important;font-size:13px!important;background:linear-gradient(#223747,#031624 58%)!important;border:1px solid #a0a4a3!important;color:#fff!important;padding:7px!important;white-space:normal}
 html:not([data-touch-ui="true"]) body.layout1 .actions .tfCount{font-size:17px!important;color:#fff0cf!important}html:not([data-touch-ui="true"]) body.layout1 .actions .tfIcon{font-size:29px!important}body.layout1 .actions .tfSelected{border-color:#ffd88a!important;box-shadow:0 0 7px #f6c765,inset 0 0 4px #f6d589!important}
 html:not([data-touch-ui="true"]) body.layout1 #combatDock1{position:fixed;right:12px;bottom:15px;height:94px;width:505px;display:flex;align-items:center;justify-content:flex-end;gap:10px;background:linear-gradient(90deg,#04172300,#041723 4%);padding-left:24px;z-index:56}
 #combatDock1 button{background:linear-gradient(#2c3a43,#06141e);border:1px solid #a8adb0;border-radius:8px;color:#fff;font-size:12px;font-weight:700;height:48px;min-width:94px;padding:0 12px}#combatDock1 #startAttack1{border:2px solid #37dbe5;background:linear-gradient(#0d8fa2,#074455 52%,#063140);box-shadow:inset 0 0 5px #65dce2;font-size:13px}
 html:not([data-touch-ui="true"]) body.layout1 #cameraCombatButtons,html:not([data-touch-ui="true"]) body.layout1 #marineMission,html:not([data-touch-ui="true"]) body.layout1 #tfPositionBadge,html:not([data-touch-ui="true"]) body.layout1 #layoutToggle12{display:none!important}
 html:not([data-touch-ui="true"]) body.layout1 #combatReload11{bottom:112px!important;left:110px!important;right:530px!important;background:#061522dd;color:#9ce8ed;font-size:11px;border:0;padding:2px 5px;pointer-events:none}
 html:not([data-touch-ui="true"]) body.layout1 #navigationStatus{top:calc(var(--sea-top1) + 7px)!important;left:calc(var(--sea-left1) + 12px)!important;right:calc(var(--sea-right1) + 12px)!important;background:transparent!important;color:#e4f6ff;text-shadow:0 1px 3px #000;font-size:12px!important}
 html:not([data-touch-ui="true"]) body.layout1 .panel,html:not([data-touch-ui="true"]) body.layout1 #shop,html:not([data-touch-ui="true"]) body.layout1 #itemShop{inset:calc(var(--sea-top1) + 12px) calc(var(--sea-right1) + 12px) calc(var(--sea-bottom1) + 12px) calc(var(--sea-left1) + 12px)!important;width:auto!important;max-height:none!important;background:var(--layout-panel)!important;border-radius:10px!important;box-shadow:0 10px 40px #000a!important}
}
@media(min-width:860px) and (max-width:1450px){html:not([data-touch-ui="true"]) body.layout1 #tfResourceStrip .row{font-size:12px;padding:5px 7px!important;gap:4px}html:not([data-touch-ui="true"]) body.layout1 #tfResourceStrip .row b{font-size:13px!important}html:not([data-touch-ui="true"]) body.layout1 .buttons>button{font-size:13px!important;padding:0 13px!important}html:not([data-touch-ui="true"]) body.layout1 .actions button{flex-basis:86px!important;min-width:80px!important}html:not([data-touch-ui="true"]) body.layout1 #combatDock1{width:405px;gap:6px}html:not([data-touch-ui="true"]) body.layout1 #combatDock1 button{font-size:10px;min-width:78px;padding:0 8px}html:not([data-touch-ui="true"]) body.layout1 .actions{padding-right:440px!important}}
@media(min-width:860px) and (max-width:1249px){html:not([data-touch-ui="true"]) body.layout1 #marineBrand{font-size:21px;width:190px;left:9px!important}html:not([data-touch-ui="true"]) body.layout1 #tfResourceStrip{left:218px!important;right:122px!important}html:not([data-touch-ui="true"]) body.layout1 #marineSide{width:58px!important;gap:10px!important;top:128px!important}html:not([data-touch-ui="true"]) body.layout1 #marineSide button{min-height:69px!important;font-size:11px!important}html:not([data-touch-ui="true"]) body.layout1 #marineSide button:before{font-size:26px;margin-bottom:3px}html:not([data-touch-ui="true"]) body.layout1 .hud,html:not([data-touch-ui="true"]) body.layout1 #mapDock1,html:not([data-touch-ui="true"]) body.layout1 #chatBox{width:244px!important}}
@media(min-width:860px) and (max-height:699px){html:not([data-touch-ui="true"]) body.layout1 .buttons{top:50px!important;height:43px!important}html:not([data-touch-ui="true"]) body.layout1 .buttons>button{height:40px!important}html:not([data-touch-ui="true"]) body.layout1 .hud{top:98px!important;height:154px!important}html:not([data-touch-ui="true"]) body.layout1 #mapDock1{top:258px;height:190px}html:not([data-touch-ui="true"]) body.layout1 #tfMiniMap{height:96px!important}html:not([data-touch-ui="true"]) body.layout1 #mapControls1{top:35px}html:not([data-touch-ui="true"]) body.layout1 #mapControls1 button{height:28px}html:not([data-touch-ui="true"]) body.layout1 #chatBox{top:454px!important}html:not([data-touch-ui="true"]) body.layout1 .actions{height:82px!important;padding-top:5px!important;padding-bottom:5px!important}html:not([data-touch-ui="true"]) body.layout1 .actions button{font-size:11px!important}html:not([data-touch-ui="true"]) body.layout1 .actions .tfIcon{font-size:22px!important}html:not([data-touch-ui="true"]) body.layout1 #combatDock1{height:64px;bottom:10px}html:not([data-touch-ui="true"]) body.layout1 #combatReload11{bottom:80px!important}}
html[data-touch-ui="true"] body.layout1 #seaFrame1,html[data-touch-ui="true"] body.layout1 #mapDock1,html[data-touch-ui="true"] body.layout1 #combatDock1,html[data-touch-ui="true"] body.layout1 #captainMenu1,html[data-touch-ui="true"] body.layout1 #fullscreen1{display:none!important}
html[data-touch-ui="true"] body.layout1 #mobileTop,html[data-touch-ui="true"] body.layout1 .actions,html[data-touch-ui="true"] body.layout1 #mobileMenu,html[data-touch-ui="true"] body.layout1 .panel{background:var(--layout-panel)!important;border-color:#bc9b61!important;color:#f5f7f5}
@media(max-width:859px),(max-height:480px){body.layout1 #accountOverlay:not(.hidden) .accountCard{top:max(10px,env(safe-area-inset-top))!important;right:max(12px,env(safe-area-inset-right))!important;width:min(600px,calc(100vw - 28px))!important}body.layout1 #accountOverlay:not(.layoutRegister1) #accountForm{grid-template-columns:minmax(80px,1fr) minmax(80px,1fr) 100px 60px;gap:7px!important}body.layout1 #accountOverlay:not(.layoutRegister1) #accountForm input,body.layout1 #accountOverlay:not(.layoutRegister1) #accountSubmit{font-size:13px!important;height:44px!important;padding:6px!important}body.layout1 #accountOverlay:not(.layoutRegister1) .languagePicker{width:60px}body.layout1 #accountOverlay .languagePicker select{height:44px}body.layout1 #accountLinks1{gap:18px;top:calc(100% + 5px)}body.layout1 #appDownloadV1{bottom:max(58px,calc(env(safe-area-inset-bottom) + 48px))!important;width:min(470px,calc(100vw - 36px))!important}body.layout1 #apkDownloadV1{height:52px!important;font-size:17px!important}body.layout1 #apkDownloadV1:before{font-size:25px;margin-right:14px}body.layout1 #apkVersionV1{font-size:12px;margin-top:5px}body.layout1 #appDownloadV1>a,body.layout1 #appDownloadV1>details{font-size:11px}body.layout1 #accountOverlay.layoutRegister1 .accountCard{max-height:calc(100dvh - 20px)!important}.tradePanel1{padding:14px}.tradePanel1 h2{font-size:20px}}
@media(max-width:540px) and (orientation:portrait){body.layout1 #accountOverlay:not(.layoutRegister1) #accountForm{grid-template-columns:1fr 1fr 60px}body.layout1 #accountUsername{grid-column:1/3}body.layout1 #accountPassword{grid-column:1/3;grid-row:2}body.layout1 #accountOverlay:not(.layoutRegister1) #accountSubmit{grid-row:3;grid-column:1/4}body.layout1 #accountOverlay{background-position:50% 38%!important}}

/* Override inherited legacy maxima; the live 3D renderer owns this canvas. */
html body.layout1 #accountOverlay:not(.hidden) .accountCard{width:min(645px,calc(100vw - 32px))!important;max-width:none!important;max-height:calc(100dvh - 110px)!important;padding:9px 10px!important;overflow:visible!important}
html body.layout1 #accountOverlay.layoutRegister1 .accountCard{width:min(460px,calc(100vw - 24px))!important;overflow:auto!important;padding:22px!important}
html body.layout1 #startLegal1{position:absolute;bottom:0;left:0;right:0;min-height:56px;box-sizing:border-box;margin:0;padding:10px 20px;align-items:center;background:#011421e8;border-top:1px solid #7795a466;gap:8px 24px;font:15px Arial}
html body.layout1 #startLegal1 a{padding:5px 12px;color:#edf5f8;text-decoration:none;border-right:1px solid #8b9a9e88}html body.layout1 #startLegal1 a:last-child{border:0}
html body.layout1 #accountOverlay .languagePicker select{font:15px Arial}
html:not([data-touch-ui="true"]) body.layout1.layoutLogged1{font:14px Arial,Helvetica,sans-serif!important}
html:not([data-touch-ui="true"]) body.layout1 #tideforgeOriginalIslandCanvas{clip-path:inset(var(--sea-top1,118px) var(--sea-right1,310px) var(--sea-bottom1,137px) var(--sea-left1,84px) round 9px)}
html:not([data-touch-ui="true"]) body.layout1 .buttons{max-width:none!important;flex-wrap:nowrap!important;box-sizing:border-box;font-family:Arial!important}
html:not([data-touch-ui="true"]) body.layout1 .buttons>button{font-family:Arial!important;letter-spacing:0!important;min-width:0!important}
html:not([data-touch-ui="true"]) body.layout1 .hud:before{display:none!important}
html:not([data-touch-ui="true"]) body.layout1 #chatBox{max-width:none!important;box-sizing:border-box!important}
html:not([data-touch-ui="true"]) body.layout1 #chatBody{height:auto!important}
html:not([data-touch-ui="true"]) body.layout1 .actions{max-width:none!important;width:auto!important;box-sizing:border-box!important;flex-wrap:nowrap!important;padding-right:0!important;right:550px!important;border-right:0!important;border-radius:15px 0 0 15px!important}
html:not([data-touch-ui="true"]) body.layout1 .actions button{font-family:Arial!important;font-size:13px!important;letter-spacing:0!important;flex-basis:103px!important;height:96px!important;min-height:96px!important;max-height:96px!important;box-sizing:border-box!important;line-height:1.25!important;white-space:normal!important;overflow:hidden!important}
html:not([data-touch-ui="true"]) body.layout1 #combatDock1{bottom:6px!important;right:4px!important;height:118px!important;width:550px!important;box-sizing:border-box;border:2px solid #b99561;border-left:0;border-radius:0 15px 15px 0;background:var(--layout-panel);padding:10px 12px}
html:not([data-touch-ui="true"]) body.layout1 #navigationStatus{transform:none!important;pointer-events:none;text-align:center}
html:not([data-touch-ui="true"]) body.layout1 #captainMenu1 #seaAudioToggle{position:static!important;display:block!important;width:100%!important;border:0!important;background:transparent!important;box-shadow:none!important}
html:not([data-touch-ui="true"]) body.layout1 #tutorialLaunch14{top:auto!important;bottom:140px!important;right:320px!important;left:auto!important}
html:not([data-touch-ui="true"]) body.layout1 .hud .minimize11{display:none!important}
@media(min-width:860px) and (max-width:1450px){html:not([data-touch-ui="true"]) body.layout1 .actions{right:420px!important}html:not([data-touch-ui="true"]) body.layout1 #combatDock1{width:420px!important}html:not([data-touch-ui="true"]) body.layout1 .actions button{flex-basis:86px!important}}
@media(min-width:860px) and (max-height:699px){html:not([data-touch-ui="true"]) body.layout1 .actions button{height:68px!important;min-height:68px!important;max-height:68px!important}html:not([data-touch-ui="true"]) body.layout1 #combatDock1{height:82px!important}}
@media(max-height:480px),(max-width:859px){html body.layout1 #accountOverlay:not(.hidden) .accountCard{width:min(600px,calc(100vw - 28px))!important;max-height:calc(100dvh - 90px)!important}html body.layout1 #accountOverlay.layoutRegister1 .accountCard{width:min(460px,calc(100vw - 24px))!important;max-height:calc(100dvh - 20px)!important}html body.layout1 #startLegal1{min-height:42px;padding:5px 10px;gap:2px;font-size:11px}html body.layout1 #startLegal1 a{padding:5px 7px;min-height:20px}}

html:not([data-touch-ui="true"]) body.layout1 .actions{display:flex!important;pointer-events:auto!important}
html:not([data-touch-ui="true"]) body.layout1 #marineSide{max-height:none!important;pointer-events:auto!important}
html:not([data-touch-ui="true"]) body.layout1 #marineSide button{font-family:Arial!important;letter-spacing:0!important;display:block!important;line-height:1.1!important;white-space:normal!important;overflow-wrap:normal!important;text-overflow:clip!important}
html:not([data-touch-ui="true"]) body.layout1 #marineSide button:before{position:static!important;display:block!important;margin:0 0 6px!important;width:100%!important;height:34px!important}
html:not([data-touch-ui="true"]) body.layout1 #tutorialOpen12{bottom:calc(var(--sea-bottom1) + 10px)!important;right:calc(var(--sea-right1) + 14px)!important;left:auto!important}
html:not([data-touch-ui="true"]) body.layout1 #chatForm{width:100%!important;box-sizing:border-box!important}html:not([data-touch-ui="true"]) body.layout1 #chatForm button{width:44px!important;flex:0 0 44px!important}html:not([data-touch-ui="true"]) body.layout1 #chatInput{flex:1 1 0!important;box-sizing:border-box!important}
html:not([data-touch-ui="true"]) body.layout1 .hud,html:not([data-touch-ui="true"]) body.layout1 .hud *,html:not([data-touch-ui="true"]) body.layout1 #tfResourceStrip *{font-family:Arial,Helvetica,sans-serif!important;letter-spacing:0!important}

html body.layout1 #accountOverlay .languagePicker label{display:none!important}
html body.layout1 #accountOverlay:not(.layoutRegister1) #accountSubmit{min-height:40px!important;height:40px!important}

#appUpdateNotice1{position:fixed;z-index:12000;right:max(16px,env(safe-area-inset-right));bottom:max(145px,env(safe-area-inset-bottom));width:min(340px,calc(100vw - 40px));padding:14px;border:1px solid #c3a064;border-radius:10px;background:#071d2cf7;color:#eaf5f9;font:14px/1.5 Arial;box-shadow:0 8px 40px #0008}#appUpdateNotice1 p{margin:0 0 8px}#appUpdateNotice1 a{color:#8de5ec}#appUpdateNotice1 button{min-height:44px;margin:8px 6px 0;padding:8px 12px;background:#153d50;border:1px solid #879b9f;color:white;border-radius:5px}

/* Font-independent marine icons, no external fonts or tracking. */
body.layout1 #fullscreen1:before{content:"";display:block;width:26px;height:26px;background:currentColor;mask:url(layout-icons/fullscreen.svg) center/contain no-repeat;-webkit-mask:url(layout-icons/fullscreen.svg) center/contain no-repeat}
html:not([data-touch-ui="true"]) body.layout1 [data-resource1="credits"]:before{content:"";flex:0 0 22px;width:22px;height:26px;background:#f6d088;mask:url(layout-icons/coin.svg) center/contain no-repeat;-webkit-mask:url(layout-icons/coin.svg) center/contain no-repeat}
html:not([data-touch-ui="true"]) body.layout1 [data-resource1="platinum"]:before{content:"";flex:0 0 22px;width:22px;height:26px;background:#f6d088;mask:url(layout-icons/crystal.svg) center/contain no-repeat;-webkit-mask:url(layout-icons/crystal.svg) center/contain no-repeat}
html:not([data-touch-ui="true"]) body.layout1 [data-resource1="rawOil"]:before{content:"";flex:0 0 22px;width:22px;height:26px;background:#f6d088;mask:url(layout-icons/barrel.svg) center/contain no-repeat;-webkit-mask:url(layout-icons/barrel.svg) center/contain no-repeat}
html:not([data-touch-ui="true"]) body.layout1 [data-resource1="refinedOil"]:before{content:"";flex:0 0 22px;width:22px;height:26px;background:#f6d088;mask:url(layout-icons/drop.svg) center/contain no-repeat;-webkit-mask:url(layout-icons/drop.svg) center/contain no-repeat}
html:not([data-touch-ui="true"]) body.layout1 [data-resource1="combatPoints"]:before{content:"";flex:0 0 22px;width:22px;height:26px;background:#f6d088;mask:url(layout-icons/star.svg) center/contain no-repeat;-webkit-mask:url(layout-icons/star.svg) center/contain no-repeat}
html:not([data-touch-ui="true"]) body.layout1 [data-resource1="tfIron"]:before{content:"";flex:0 0 22px;width:22px;height:26px;background:#f6d088;mask:url(layout-icons/ingot.svg) center/contain no-repeat;-webkit-mask:url(layout-icons/ingot.svg) center/contain no-repeat}
html:not([data-touch-ui="true"]) body.layout1 [data-resource1="tfSteel"]:before{content:"";flex:0 0 22px;width:22px;height:26px;background:#f6d088;mask:url(layout-icons/ingot.svg) center/contain no-repeat;-webkit-mask:url(layout-icons/ingot.svg) center/contain no-repeat}
html:not([data-touch-ui="true"]) body.layout1 #marineSide #worldBtn:before{content:""!important;background:#efd18c;mask:url(layout-icons/map.svg) center/32px 32px no-repeat;-webkit-mask:url(layout-icons/map.svg) center/32px 32px no-repeat}
html:not([data-touch-ui="true"]) body.layout1 #marineSide #fleetBtn:before{content:""!important;background:#efd18c;mask:url(layout-icons/anchor.svg) center/32px 32px no-repeat;-webkit-mask:url(layout-icons/anchor.svg) center/32px 32px no-repeat}
html:not([data-touch-ui="true"]) body.layout1 #marineSide #missionsBtn:before{content:""!important;background:#efd18c;mask:url(layout-icons/flag.svg) center/32px 32px no-repeat;-webkit-mask:url(layout-icons/flag.svg) center/32px 32px no-repeat}
html:not([data-touch-ui="true"]) body.layout1 #marineSide #seasonBtn:before{content:""!important;background:#efd18c;mask:url(layout-icons/star.svg) center/32px 32px no-repeat;-webkit-mask:url(layout-icons/star.svg) center/32px 32px no-repeat}
html:not([data-touch-ui="true"]) body.layout1 #marineSide #combatLogButton4:before{content:""!important;background:#efd18c;mask:url(layout-icons/log.svg) center/32px 32px no-repeat;-webkit-mask:url(layout-icons/log.svg) center/32px 32px no-repeat}
html:not([data-touch-ui="true"]) body.layout1 #marineSide #tradeOpen1:before{content:""!important;background:#efd18c;mask:url(layout-icons/box.svg) center/32px 32px no-repeat;-webkit-mask:url(layout-icons/box.svg) center/32px 32px no-repeat}
html:not([data-touch-ui="true"]) body.layout1 #tfResourceStrip .row{gap:6px!important;padding:6px 8px!important}html:not([data-touch-ui="true"]) body.layout1 #shipIdentity1{padding-right:22px}

/* Originalbilder für die Rohstoffanzeige. */
html:not([data-touch-ui="true"]) body.layout1 [data-resource1="rawOil"]:before{mask:none;background:transparent url(piraten-rohstoffbilder/rum.png) center/contain no-repeat;}
html:not([data-touch-ui="true"]) body.layout1 [data-resource1="refinedOil"]:before{mask:none;background:transparent url(piraten-rohstoffbilder/rumfass.png) center/contain no-repeat;}
html:not([data-touch-ui="true"]) body.layout1 [data-resource1="tfIron"]:before{mask:none;background:transparent url(piraten-rohstoffbilder/holz.png) center/contain no-repeat;}
html:not([data-touch-ui="true"]) body.layout1 [data-resource1="tfSteel"]:before{mask:none;background:transparent url(piraten-rohstoffbilder/holzplanken.png) center/contain no-repeat;}
