/* Last Pirates Kingdom II — shared visual system / responsive layout */
:root{--lpk-ink:#061321;--lpk-panel:#0b2033;--lpk-gold:#f2ce83;--lpk-teal:#66d9dc;--lpk-text:#ebf3f7;--lpk-muted:#b1c7d5;--lpk-line:rgba(242,206,131,.22)}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Trebuchet MS','Segoe UI',Tahoma,sans-serif!important;font-size:15px;line-height:1.6;color:var(--lpk-text)!important;overflow-x:hidden;background:#061321!important}
body:not(.gw-realm-page) .page-bg,.theme-register .page-bg,.inner-page .page-bg{position:fixed!important;inset:0!important;background:linear-gradient(180deg,rgba(3,13,26,.74),rgba(4,17,30,.91)),url('../images/lpkii-hero.webp') center/cover fixed!important;filter:none!important;opacity:1!important;pointer-events:none}
body .page-overlay{background:linear-gradient(90deg,rgba(5,18,33,.38),rgba(7,23,39,.14),rgba(5,18,33,.38))!important;pointer-events:none!important}
body .page-models,body .page-model,body .fx-layer{display:none!important}
body .topbar{position:relative!important;z-index:100!important;min-height:84px!important;height:auto!important;width:100%;padding:12px clamp(16px,3vw,48px)!important;display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important;align-items:center!important;gap:12px 24px!important;background:rgba(5,19,33,.96)!important;border-bottom:1px solid var(--lpk-line)!important;box-shadow:0 9px 32px #0007!important}
body .topbar .brand{flex:0 0 auto;max-width:215px!important}
body .topbar .site-logo-img{display:block;object-fit:contain!important;width:178px!important;height:62px!important;max-width:100%!important}
body .topbar .nav{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;gap:4px 7px!important;flex:1 1 610px!important;min-width:0!important}
body .topbar .nav a{color:#e5eefa!important;font-family:'Trebuchet MS','Segoe UI',sans-serif!important;font-size:12px!important;letter-spacing:.035em!important;font-weight:700!important;line-height:1.3!important;white-space:nowrap!important;padding:10px 11px!important;border-radius:8px!important;background:transparent!important;text-decoration:none!important}
body .topbar .nav a:hover,body .topbar .nav a.active{color:#ffe3a3!important;background:rgba(220,169,81,.13)!important}
body .topbar .server-pill{flex:0 0 auto;margin:0!important;font-size:11px!important;border-color:var(--lpk-line)!important}
body h1,body h2,body h3,body .lp-title{font-family:Georgia,'Times New Roman',serif!important;letter-spacing:.012em!important;line-height:1.17!important;color:var(--lpk-gold)!important;text-wrap:balance}
body p{line-height:1.7}body .purple-text{color:var(--lpk-gold)!important}
body .eyebrow,body .lp-tag{color:var(--lpk-teal)!important;letter-spacing:.2em!important}
body .register-shell,body .inner-shell{width:min(100%,1180px)!important;max-width:1180px!important;margin:0 auto!important;padding:42px 22px 90px!important;position:relative!important;z-index:3!important}
body .register-shell>section,body .inner-shell>section{width:100%!important;max-width:100%!important}
body .register-intro,body .inner-intro{width:min(100%,980px)!important;max-width:980px!important;margin:0 auto 22px!important;padding:28px 30px!important;text-align:center!important;border:1px solid var(--lpk-line)!important;border-radius:18px!important;background:rgba(7,25,42,.9)!important;box-shadow:0 15px 38px #0007!important}
body .register-intro h1,body .inner-intro h1{font-size:clamp(32px,4vw,53px)!important;line-height:1.1!important;margin:9px 0 12px!important}
body .register-intro p,body .inner-intro p{max-width:720px;margin:9px auto!important;color:var(--lpk-muted)!important}
body .register-card{width:min(100%,980px)!important;max-width:980px!important;margin:0 auto!important;padding:clamp(22px,4vw,44px)!important;border-radius:20px!important;border:1px solid rgba(240,196,117,.32)!important;background:linear-gradient(160deg,rgba(12,38,58,.97),rgba(5,18,32,.98))!important;box-shadow:0 28px 70px rgba(0,0,0,.57)!important}
body .register-card::before,body .register-card::after{pointer-events:none!important}
body .register-card .corner{border-color:var(--lpk-gold)!important;opacity:.6!important}
body .register-form .form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:24px!important;row-gap:18px!important}
body .register-form .field{min-width:0!important;width:100%!important}
body .register-form .field.full{grid-column:1/-1!important}
body .register-form .field>label{display:block!important;margin:0 0 7px!important;font:700 13px/1.4 'Trebuchet MS','Segoe UI',sans-serif!important;color:#e8dfcf!important;letter-spacing:.005em!important}
body .register-form input:not([type=checkbox]):not([type=radio]),body .register-form select{width:100%!important;min-width:0!important;height:51px!important;max-height:51px!important;padding:0 15px!important;margin:0!important;border-radius:10px!important;border:1px solid rgba(173,203,216,.23)!important;background:rgba(3,13,26,.82)!important;color:#f0f6fa!important;box-shadow:none!important;font:500 14px 'Trebuchet MS','Segoe UI',sans-serif!important}
body .register-form input::placeholder{color:#9aabba!important;opacity:.85}
body .register-form input:focus,body .register-form select:focus{outline:2px solid rgba(110,215,221,.7)!important;outline-offset:1px!important;border-color:#73d8db!important}
body .register-form input[type=date]{color-scheme:dark}
body .register-form .choice-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;width:100%!important;height:51px!important}
body .register-form .choice{min-width:0!important;width:100%!important;position:relative!important;display:block!important;margin:0!important;cursor:pointer}
body .register-form .choice span{display:flex!important;align-items:center!important;justify-content:center!important;height:51px!important;width:100%!important;background:rgba(5,19,32,.9)!important;color:#e5eff5!important;border:1px solid rgba(173,203,216,.23)!important;border-radius:10px!important;font:700 13px 'Trebuchet MS','Segoe UI',sans-serif!important}
body .register-form .choice input:checked+span{background:linear-gradient(110deg,rgba(154,114,49,.45),rgba(24,83,98,.55))!important;border-color:#f1cc83!important;color:#ffe3a3!important}
body .register-form .terms{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:11px!important;margin:24px 0 16px!important;color:#ced8e3!important;font-size:13px!important}
body .register-form .terms input{flex:0 0 17px!important;width:17px!important;height:17px!important;margin:0!important;accent-color:#dfb96b!important}
body .register-form .terms span{display:inline!important;margin:0!important;line-height:1.5!important;letter-spacing:normal!important;font-size:13px!important}
body .register-card .submit-btn{width:100%!important;max-width:100%!important;min-height:54px!important;height:auto!important;margin:18px 0 0!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:10px!important;font-family:'Trebuchet MS','Segoe UI',sans-serif!important;font-size:14px!important;font-weight:900!important;letter-spacing:.09em!important;background:linear-gradient(115deg,#b68537,#f5d58e,#ac792d)!important;color:#061827!important;box-shadow:0 8px 28px #0007!important}
body .register-card .form-note{margin:15px 0 0!important;color:#aabecd!important;text-align:center!important}
body .content-panel,body .glass-panel,body .login-card,body .download-card,body .donation-card,body .shop-card,body .ranking-table-wrap,body .gw-content-card,body .lp-card{border-radius:16px!important;border-color:var(--lpk-line)!important;box-shadow:0 15px 38px rgba(0,0,0,.3)!important}
body :is(.content-panel,.login-card,.donation-card,.download-card,.shop-card,.lp-card){background-color:rgba(8,29,47,.92)!important}
body :is(input,select,textarea,button){font-family:'Trebuchet MS','Segoe UI',Tahoma,sans-serif!important}
body :is(.content-panel,.login-card,.donation-card,.download-card) :is(input,select,textarea){border-radius:9px!important;max-width:100%!important}
body .footer,body footer.footer{position:relative!important;z-index:2!important;min-height:85px!important;background:rgba(3,15,27,.96)!important;border-top:1px solid var(--lpk-line)!important}
/* Stop obsolete floating widgets from covering inputs and buttons. */
#gw-track-player,.gw-music-dock,#gw-discord-nudge,#gwpko-language-switcher,.gwpko-language-switcher,.global-live-support{display:none!important}
/* Never cover or animate account forms. */
body.register-page .gw-portal-door,body.login-page .gw-portal-door{display:none!important}
@media(max-width:1050px){body .topbar .server-pill{display:none!important}body .topbar .nav{flex-basis:100%!important}body .topbar .site-logo-img{height:54px!important}}
@media(max-width:700px){body .topbar{padding:13px 12px!important;justify-content:center!important}body .topbar .nav{justify-content:center!important;gap:3px!important}body .topbar .nav a{font-size:11px!important;padding:7px!important}body .register-shell,body .inner-shell{padding:24px 12px 60px!important}body .register-intro,body .inner-intro{padding:23px 15px!important}body .register-intro h1,body .inner-intro h1{font-size:clamp(27px,8vw,40px)!important}body .register-card{padding:21px 16px!important}body .register-form .form-grid{grid-template-columns:minmax(0,1fr)!important;gap:15px!important}body .register-form .field.full{grid-column:auto!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
