:root{--ion-color-primary: #0054e9;--ion-color-primary-rgb: 0, 84, 233;--ion-color-primary-contrast: #fff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #004acd;--ion-color-primary-tint: #1a65eb;--ion-color-secondary: #0163aa;--ion-color-secondary-rgb: 1, 99, 170;--ion-color-secondary-contrast: #fff;--ion-color-secondary-contrast-rgb: 255, 255, 255;--ion-color-secondary-shade: #015796;--ion-color-secondary-tint: #1a73b3;--ion-color-tertiary: #6030ff;--ion-color-tertiary-rgb: 96, 48, 255;--ion-color-tertiary-contrast: #fff;--ion-color-tertiary-contrast-rgb: 255, 255, 255;--ion-color-tertiary-shade: #542ae0;--ion-color-tertiary-tint: #7045ff;--ion-color-success: #2dd55b;--ion-color-success-rgb: 45, 213, 91;--ion-color-success-contrast: #000;--ion-color-success-contrast-rgb: 0, 0, 0;--ion-color-success-shade: #28bb50;--ion-color-success-tint: #42d96b;--ion-color-warning: #ffc409;--ion-color-warning-rgb: 255, 196, 9;--ion-color-warning-contrast: #000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0ac08;--ion-color-warning-tint: #ffca22;--ion-color-danger: #c5000f;--ion-color-danger-rgb: 197, 0, 15;--ion-color-danger-contrast: #fff;--ion-color-danger-contrast-rgb: 255, 255, 255;--ion-color-danger-shade: #ad000d;--ion-color-danger-tint: #cb1a27;--ion-color-light: #f4f5f8;--ion-color-light-rgb: 244, 245, 248;--ion-color-light-contrast: #000;--ion-color-light-contrast-rgb: 0, 0, 0;--ion-color-light-shade: #d7d8da;--ion-color-light-tint: #f5f6f9;--ion-color-medium: #636469;--ion-color-medium-rgb: 99, 100, 105;--ion-color-medium-contrast: #fff;--ion-color-medium-contrast-rgb: 255, 255, 255;--ion-color-medium-shade: #57585c;--ion-color-medium-tint: #737478;--ion-color-dark: #222428;--ion-color-dark-rgb: 34, 36, 40;--ion-color-dark-contrast: #fff;--ion-color-dark-contrast-rgb: 255, 255, 255;--ion-color-dark-shade: #1e2023;--ion-color-dark-tint: #383a3e}html.ios{--ion-default-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Roboto", sans-serif}html.md{--ion-default-font: "Roboto", "Helvetica Neue", sans-serif}html{--ion-dynamic-font: -apple-system-body;--ion-font-family: var(--ion-default-font)}body{background:var(--ion-background-color);color:var(--ion-text-color)}body.backdrop-no-scroll{overflow:hidden}html.ios ion-modal.modal-card ion-header ion-toolbar:first-of-type,html.ios ion-modal.modal-sheet ion-header ion-toolbar:first-of-type,html.ios ion-modal ion-footer ion-toolbar:first-of-type,html.ios ion-footer.modal-footer-moving ion-toolbar:first-of-type{padding-top:6px}html.ios ion-modal.modal-card ion-header ion-toolbar:last-of-type,html.ios ion-modal.modal-sheet ion-header ion-toolbar:last-of-type{padding-bottom:6px}html.ios ion-modal ion-toolbar,html.ios .modal-footer-moving ion-toolbar{padding-right:calc(var(--ion-safe-area-right) + 8px);padding-left:calc(var(--ion-safe-area-left) + 8px)}@media screen and (min-width: 768px){html.ios ion-modal.modal-card:first-of-type{--backdrop-opacity: 0.18}}ion-modal.modal-default.show-modal~ion-modal.modal-default{--backdrop-opacity: 0;--box-shadow: none}html.ios ion-modal.modal-card .ion-page{border-top-left-radius:var(--border-radius)}.ion-color-primary{--ion-color-base: var(--ion-color-primary, #0054e9) !important;--ion-color-base-rgb: var(--ion-color-primary-rgb, 0, 84, 233) !important;--ion-color-contrast: var(--ion-color-primary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-primary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-primary-shade, #004acd) !important;--ion-color-tint: var(--ion-color-primary-tint, #1a65eb) !important}.ion-color-secondary{--ion-color-base: var(--ion-color-secondary, #0163aa) !important;--ion-color-base-rgb: var(--ion-color-secondary-rgb, 1, 99, 170) !important;--ion-color-contrast: var(--ion-color-secondary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-secondary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-secondary-shade, #015796) !important;--ion-color-tint: var(--ion-color-secondary-tint, #1a73b3) !important}.ion-color-tertiary{--ion-color-base: var(--ion-color-tertiary, #6030ff) !important;--ion-color-base-rgb: var(--ion-color-tertiary-rgb, 96, 48, 255) !important;--ion-color-contrast: var(--ion-color-tertiary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-tertiary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-tertiary-shade, #542ae0) !important;--ion-color-tint: var(--ion-color-tertiary-tint, #7045ff) !important}.ion-color-success{--ion-color-base: var(--ion-color-success, #2dd55b) !important;--ion-color-base-rgb: var(--ion-color-success-rgb, 45, 213, 91) !important;--ion-color-contrast: var(--ion-color-success-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-success-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-success-shade, #28bb50) !important;--ion-color-tint: var(--ion-color-success-tint, #42d96b) !important}.ion-color-warning{--ion-color-base: var(--ion-color-warning, #ffc409) !important;--ion-color-base-rgb: var(--ion-color-warning-rgb, 255, 196, 9) !important;--ion-color-contrast: var(--ion-color-warning-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-warning-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-warning-shade, #e0ac08) !important;--ion-color-tint: var(--ion-color-warning-tint, #ffca22) !important}.ion-color-danger{--ion-color-base: var(--ion-color-danger, #c5000f) !important;--ion-color-base-rgb: var(--ion-color-danger-rgb, 197, 0, 15) !important;--ion-color-contrast: var(--ion-color-danger-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-danger-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-danger-shade, #ad000d) !important;--ion-color-tint: var(--ion-color-danger-tint, #cb1a27) !important}.ion-color-light{--ion-color-base: var(--ion-color-light, #f4f5f8) !important;--ion-color-base-rgb: var(--ion-color-light-rgb, 244, 245, 248) !important;--ion-color-contrast: var(--ion-color-light-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-light-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-light-shade, #d7d8da) !important;--ion-color-tint: var(--ion-color-light-tint, #f5f6f9) !important}.ion-color-medium{--ion-color-base: var(--ion-color-medium, #636469) !important;--ion-color-base-rgb: var(--ion-color-medium-rgb, 99, 100, 105) !important;--ion-color-contrast: var(--ion-color-medium-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-medium-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-medium-shade, #57585c) !important;--ion-color-tint: var(--ion-color-medium-tint, #737478) !important}.ion-color-dark{--ion-color-base: var(--ion-color-dark, #222428) !important;--ion-color-base-rgb: var(--ion-color-dark-rgb, 34, 36, 40) !important;--ion-color-contrast: var(--ion-color-dark-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-dark-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-dark-shade, #1e2023) !important;--ion-color-tint: var(--ion-color-dark-tint, #383a3e) !important}.ion-page{left:0;right:0;top:0;bottom:0;display:flex;position:absolute;flex-direction:column;justify-content:space-between;contain:layout size style;z-index:0}.ion-page.ion-page-overlay-passthrough{pointer-events:none}ion-modal>.ion-page{position:relative;contain:layout style;height:100%}.split-pane-visible>.ion-page.split-pane-main{position:relative}ion-route,ion-route-redirect,ion-router,ion-select-option,ion-nav-controller,ion-menu-controller,ion-action-sheet-controller,ion-alert-controller,ion-loading-controller,ion-modal-controller,ion-picker-controller,ion-popover-controller,ion-toast-controller,.ion-page-hidden{display:none !important}.ion-page-invisible{opacity:0}.can-go-back>ion-header ion-back-button{display:block}html.plt-ios.plt-hybrid,html.plt-ios.plt-pwa{--ion-statusbar-padding: 20px}@supports(padding-top: 20px){html{--ion-safe-area-top: var(--ion-statusbar-padding)}}@supports(padding-top: env(safe-area-inset-top)){html{--ion-safe-area-top: var(--safe-area-inset-top, env(safe-area-inset-top));--ion-safe-area-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom));--ion-safe-area-left: var(--safe-area-inset-left, env(safe-area-inset-left));--ion-safe-area-right: var(--safe-area-inset-right, env(safe-area-inset-right))}}ion-card.ion-color .ion-inherit-color,ion-card-header.ion-color .ion-inherit-color{color:inherit}.menu-content{transform:translate3d(0,  0,  0)}.menu-content-open{cursor:pointer;touch-action:manipulation;pointer-events:none;overflow-y:hidden}.menu-content-open ion-content{--overflow: hidden}.menu-content-open .ion-content-scroll-host{overflow:hidden}.ios .menu-content-reveal{box-shadow:-8px 0 42px rgba(0,0,0,.08)}[dir=rtl].ios .menu-content-reveal{box-shadow:8px 0 42px rgba(0,0,0,.08)}.md .menu-content-reveal{box-shadow:4px 0px 16px rgba(0,0,0,.18)}.md .menu-content-push{box-shadow:4px 0px 16px rgba(0,0,0,.18)}ion-accordion-group.accordion-group-expand-inset>ion-accordion:first-of-type{border-top-left-radius:8px;border-top-right-radius:8px}ion-accordion-group.accordion-group-expand-inset>ion-accordion:last-of-type{border-bottom-left-radius:8px;border-bottom-right-radius:8px}ion-accordion-group>ion-accordion:last-of-type ion-item[slot=header]{--border-width: 0px}ion-accordion.accordion-animated>[slot=header] .ion-accordion-toggle-icon{transition:300ms transform cubic-bezier(0.25, 0.8, 0.5, 1)}@media(prefers-reduced-motion: reduce){ion-accordion .ion-accordion-toggle-icon{transition:none !important}}ion-accordion.accordion-expanding>[slot=header] .ion-accordion-toggle-icon,ion-accordion.accordion-expanded>[slot=header] .ion-accordion-toggle-icon{transform:rotate(180deg)}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-previous ion-item[slot=header]{--border-width: 0px;--inner-border-width: 0px}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanding:first-of-type,ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanded:first-of-type{margin-top:0}ion-input input::-webkit-date-and-time-value{text-align:start}.ion-datetime-button-overlay{--width: fit-content;--height: fit-content}.ion-datetime-button-overlay ion-datetime.datetime-grid{width:320px;min-height:320px}[ion-last-focus],header[tabindex="-1"]:focus,[role=banner][tabindex="-1"]:focus,main[tabindex="-1"]:focus,[role=main][tabindex="-1"]:focus,h1[tabindex="-1"]:focus,[role=heading][aria-level="1"][tabindex="-1"]:focus{outline:none}.popover-viewport:has(>ion-content){overflow:hidden}@supports not selector(:has(> ion-content)){.popover-viewport{overflow:hidden}}/*# sourceMappingURL=core.css.map */
audio,canvas,progress,video{vertical-align:baseline}audio:not([controls]){display:none;height:0}b,strong{font-weight:bold}img{max-width:100%}hr{height:1px;border-width:0;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}label,input,select,textarea{font-family:inherit;line-height:normal}textarea{overflow:auto;height:auto;font:inherit;color:inherit}textarea::placeholder{padding-left:2px}form,input,optgroup,select{margin:0;font:inherit;color:inherit}html input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}a,a div,a span,a ion-icon,a ion-label,button,button div,button span,button ion-icon,button ion-label,.ion-tappable,[tappable],[tappable] div,[tappable] span,[tappable] ion-icon,[tappable] ion-label,input,textarea{touch-action:manipulation}a ion-label,button ion-label{pointer-events:none}button{padding:0;border:0;border-radius:0;font-family:inherit;font-style:inherit;font-variant:inherit;line-height:1;text-transform:none;cursor:pointer;-webkit-appearance:button}[tappable]{cursor:pointer}a[disabled],button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}/*# sourceMappingURL=normalize.css.map */
*{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}html{width:100%;height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}html.ion-ce body{display:block}html.plt-pwa{height:100vh}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:fixed;width:100%;max-width:100%;height:100%;max-height:100%;transform:translateZ(0);text-rendering:optimizeLegibility;overflow:hidden;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;overscroll-behavior-y:none;-webkit-text-size-adjust:none;text-size-adjust:none}/*# sourceMappingURL=structure.css.map */
html{font-family:var(--ion-font-family)}@supports(-webkit-touch-callout: none){html{font:var(--ion-dynamic-font, 16px var(--ion-font-family))}}a{background-color:transparent;color:var(--ion-color-primary, #0054e9)}h1,h2,h3,h4,h5,h6{margin-top:16px;margin-bottom:10px;font-weight:500;line-height:1.2}h1{margin-top:20px;font-size:1.625rem}h2{margin-top:18px;font-size:1.5rem}h3{font-size:1.375rem}h4{font-size:1.25rem}h5{font-size:1.125rem}h6{font-size:1rem}small{font-size:75%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}/*# sourceMappingURL=typography.css.map */
.ion-no-padding{--padding-start: 0;--padding-end: 0;--padding-top: 0;--padding-bottom: 0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.ion-padding{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);-webkit-padding-start:var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);-webkit-padding-end:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-top{--padding-top: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px)}.ion-padding-start{--padding-start: var(--ion-padding, 16px);-webkit-padding-start:var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px)}.ion-padding-end{--padding-end: var(--ion-padding, 16px);-webkit-padding-end:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-padding-bottom{--padding-bottom: var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-vertical{--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-horizontal{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);-webkit-padding-start:var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);-webkit-padding-end:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-no-margin{--margin-start: 0;--margin-end: 0;--margin-top: 0;--margin-bottom: 0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.ion-margin{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);-webkit-margin-start:var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);-webkit-margin-end:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-top{--margin-top: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px)}.ion-margin-start{--margin-start: var(--ion-margin, 16px);-webkit-margin-start:var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px)}.ion-margin-end{--margin-end: var(--ion-margin, 16px);-webkit-margin-end:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-margin-bottom{--margin-bottom: var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-vertical{--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-horizontal{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);-webkit-margin-start:var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);-webkit-margin-end:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}/*# sourceMappingURL=padding.css.map */
.ion-float-left{float:left !important}.ion-float-right{float:right !important}.ion-float-start{float:left !important}:host-context([dir=rtl]) .ion-float-start{float:right !important}[dir=rtl] .ion-float-start{float:right !important}@supports selector(:dir(rtl)){.ion-float-start:dir(rtl){float:right !important}}.ion-float-end{float:right !important}:host-context([dir=rtl]) .ion-float-end{float:left !important}[dir=rtl] .ion-float-end{float:left !important}@supports selector(:dir(rtl)){.ion-float-end:dir(rtl){float:left !important}}@media(min-width: 576px){.ion-float-sm-left{float:left !important}.ion-float-sm-right{float:right !important}.ion-float-sm-start{float:left !important}:host-context([dir=rtl]) .ion-float-sm-start{float:right !important}[dir=rtl] .ion-float-sm-start{float:right !important}@supports selector(:dir(rtl)){.ion-float-sm-start:dir(rtl){float:right !important}}.ion-float-sm-end{float:right !important}:host-context([dir=rtl]) .ion-float-sm-end{float:left !important}[dir=rtl] .ion-float-sm-end{float:left !important}@supports selector(:dir(rtl)){.ion-float-sm-end:dir(rtl){float:left !important}}}@media(min-width: 768px){.ion-float-md-left{float:left !important}.ion-float-md-right{float:right !important}.ion-float-md-start{float:left !important}:host-context([dir=rtl]) .ion-float-md-start{float:right !important}[dir=rtl] .ion-float-md-start{float:right !important}@supports selector(:dir(rtl)){.ion-float-md-start:dir(rtl){float:right !important}}.ion-float-md-end{float:right !important}:host-context([dir=rtl]) .ion-float-md-end{float:left !important}[dir=rtl] .ion-float-md-end{float:left !important}@supports selector(:dir(rtl)){.ion-float-md-end:dir(rtl){float:left !important}}}@media(min-width: 992px){.ion-float-lg-left{float:left !important}.ion-float-lg-right{float:right !important}.ion-float-lg-start{float:left !important}:host-context([dir=rtl]) .ion-float-lg-start{float:right !important}[dir=rtl] .ion-float-lg-start{float:right !important}@supports selector(:dir(rtl)){.ion-float-lg-start:dir(rtl){float:right !important}}.ion-float-lg-end{float:right !important}:host-context([dir=rtl]) .ion-float-lg-end{float:left !important}[dir=rtl] .ion-float-lg-end{float:left !important}@supports selector(:dir(rtl)){.ion-float-lg-end:dir(rtl){float:left !important}}}@media(min-width: 1200px){.ion-float-xl-left{float:left !important}.ion-float-xl-right{float:right !important}.ion-float-xl-start{float:left !important}:host-context([dir=rtl]) .ion-float-xl-start{float:right !important}[dir=rtl] .ion-float-xl-start{float:right !important}@supports selector(:dir(rtl)){.ion-float-xl-start:dir(rtl){float:right !important}}.ion-float-xl-end{float:right !important}:host-context([dir=rtl]) .ion-float-xl-end{float:left !important}[dir=rtl] .ion-float-xl-end{float:left !important}@supports selector(:dir(rtl)){.ion-float-xl-end:dir(rtl){float:left !important}}}/*# sourceMappingURL=float-elements.css.map */
.ion-text-center{text-align:center !important}.ion-text-justify{text-align:justify !important}.ion-text-start{text-align:start !important}.ion-text-end{text-align:end !important}.ion-text-left{text-align:left !important}.ion-text-right{text-align:right !important}.ion-text-nowrap{white-space:nowrap !important}.ion-text-wrap{white-space:normal !important}@media(min-width: 576px){.ion-text-sm-center{text-align:center !important}.ion-text-sm-justify{text-align:justify !important}.ion-text-sm-start{text-align:start !important}.ion-text-sm-end{text-align:end !important}.ion-text-sm-left{text-align:left !important}.ion-text-sm-right{text-align:right !important}.ion-text-sm-nowrap{white-space:nowrap !important}.ion-text-sm-wrap{white-space:normal !important}}@media(min-width: 768px){.ion-text-md-center{text-align:center !important}.ion-text-md-justify{text-align:justify !important}.ion-text-md-start{text-align:start !important}.ion-text-md-end{text-align:end !important}.ion-text-md-left{text-align:left !important}.ion-text-md-right{text-align:right !important}.ion-text-md-nowrap{white-space:nowrap !important}.ion-text-md-wrap{white-space:normal !important}}@media(min-width: 992px){.ion-text-lg-center{text-align:center !important}.ion-text-lg-justify{text-align:justify !important}.ion-text-lg-start{text-align:start !important}.ion-text-lg-end{text-align:end !important}.ion-text-lg-left{text-align:left !important}.ion-text-lg-right{text-align:right !important}.ion-text-lg-nowrap{white-space:nowrap !important}.ion-text-lg-wrap{white-space:normal !important}}@media(min-width: 1200px){.ion-text-xl-center{text-align:center !important}.ion-text-xl-justify{text-align:justify !important}.ion-text-xl-start{text-align:start !important}.ion-text-xl-end{text-align:end !important}.ion-text-xl-left{text-align:left !important}.ion-text-xl-right{text-align:right !important}.ion-text-xl-nowrap{white-space:nowrap !important}.ion-text-xl-wrap{white-space:normal !important}}/*# sourceMappingURL=text-alignment.css.map */
.ion-text-uppercase{text-transform:uppercase !important}.ion-text-lowercase{text-transform:lowercase !important}.ion-text-capitalize{text-transform:capitalize !important}@media(min-width: 576px){.ion-text-sm-uppercase{text-transform:uppercase !important}.ion-text-sm-lowercase{text-transform:lowercase !important}.ion-text-sm-capitalize{text-transform:capitalize !important}}@media(min-width: 768px){.ion-text-md-uppercase{text-transform:uppercase !important}.ion-text-md-lowercase{text-transform:lowercase !important}.ion-text-md-capitalize{text-transform:capitalize !important}}@media(min-width: 992px){.ion-text-lg-uppercase{text-transform:uppercase !important}.ion-text-lg-lowercase{text-transform:lowercase !important}.ion-text-lg-capitalize{text-transform:capitalize !important}}@media(min-width: 1200px){.ion-text-xl-uppercase{text-transform:uppercase !important}.ion-text-xl-lowercase{text-transform:lowercase !important}.ion-text-xl-capitalize{text-transform:capitalize !important}}/*# sourceMappingURL=text-transformation.css.map */
.ion-align-content-start{align-content:flex-start !important}.ion-align-content-end{align-content:flex-end !important}.ion-align-content-center{align-content:center !important}.ion-align-content-between{align-content:space-between !important}.ion-align-content-around{align-content:space-around !important}.ion-align-content-stretch{align-content:stretch !important}@media(min-width: 576px){.ion-align-content-sm-start{align-content:flex-start !important}.ion-align-content-sm-end{align-content:flex-end !important}.ion-align-content-sm-center{align-content:center !important}.ion-align-content-sm-between{align-content:space-between !important}.ion-align-content-sm-around{align-content:space-around !important}.ion-align-content-sm-stretch{align-content:stretch !important}}@media(min-width: 768px){.ion-align-content-md-start{align-content:flex-start !important}.ion-align-content-md-end{align-content:flex-end !important}.ion-align-content-md-center{align-content:center !important}.ion-align-content-md-between{align-content:space-between !important}.ion-align-content-md-around{align-content:space-around !important}.ion-align-content-md-stretch{align-content:stretch !important}}@media(min-width: 992px){.ion-align-content-lg-start{align-content:flex-start !important}.ion-align-content-lg-end{align-content:flex-end !important}.ion-align-content-lg-center{align-content:center !important}.ion-align-content-lg-between{align-content:space-between !important}.ion-align-content-lg-around{align-content:space-around !important}.ion-align-content-lg-stretch{align-content:stretch !important}}@media(min-width: 1200px){.ion-align-content-xl-start{align-content:flex-start !important}.ion-align-content-xl-end{align-content:flex-end !important}.ion-align-content-xl-center{align-content:center !important}.ion-align-content-xl-between{align-content:space-between !important}.ion-align-content-xl-around{align-content:space-around !important}.ion-align-content-xl-stretch{align-content:stretch !important}}.ion-align-items-start{align-items:start !important}.ion-align-items-end{align-items:end !important}.ion-align-items-center{align-items:center !important}.ion-align-items-stretch{align-items:stretch !important}.ion-align-items-baseline{align-items:baseline !important}@media(min-width: 576px){.ion-align-items-sm-start{align-items:start !important}.ion-align-items-sm-end{align-items:end !important}.ion-align-items-sm-center{align-items:center !important}.ion-align-items-sm-stretch{align-items:stretch !important}.ion-align-items-sm-baseline{align-items:baseline !important}}@media(min-width: 768px){.ion-align-items-md-start{align-items:start !important}.ion-align-items-md-end{align-items:end !important}.ion-align-items-md-center{align-items:center !important}.ion-align-items-md-stretch{align-items:stretch !important}.ion-align-items-md-baseline{align-items:baseline !important}}@media(min-width: 992px){.ion-align-items-lg-start{align-items:start !important}.ion-align-items-lg-end{align-items:end !important}.ion-align-items-lg-center{align-items:center !important}.ion-align-items-lg-stretch{align-items:stretch !important}.ion-align-items-lg-baseline{align-items:baseline !important}}@media(min-width: 1200px){.ion-align-items-xl-start{align-items:start !important}.ion-align-items-xl-end{align-items:end !important}.ion-align-items-xl-center{align-items:center !important}.ion-align-items-xl-stretch{align-items:stretch !important}.ion-align-items-xl-baseline{align-items:baseline !important}}.ion-align-self-start{align-self:start !important}.ion-align-self-end{align-self:end !important}.ion-align-self-center{align-self:center !important}.ion-align-self-stretch{align-self:stretch !important}.ion-align-self-baseline{align-self:baseline !important}.ion-align-self-auto{align-self:auto !important}@media(min-width: 576px){.ion-align-self-sm-start{align-self:start !important}.ion-align-self-sm-end{align-self:end !important}.ion-align-self-sm-center{align-self:center !important}.ion-align-self-sm-stretch{align-self:stretch !important}.ion-align-self-sm-baseline{align-self:baseline !important}.ion-align-self-sm-auto{align-self:auto !important}}@media(min-width: 768px){.ion-align-self-md-start{align-self:start !important}.ion-align-self-md-end{align-self:end !important}.ion-align-self-md-center{align-self:center !important}.ion-align-self-md-stretch{align-self:stretch !important}.ion-align-self-md-baseline{align-self:baseline !important}.ion-align-self-md-auto{align-self:auto !important}}@media(min-width: 992px){.ion-align-self-lg-start{align-self:start !important}.ion-align-self-lg-end{align-self:end !important}.ion-align-self-lg-center{align-self:center !important}.ion-align-self-lg-stretch{align-self:stretch !important}.ion-align-self-lg-baseline{align-self:baseline !important}.ion-align-self-lg-auto{align-self:auto !important}}@media(min-width: 1200px){.ion-align-self-xl-start{align-self:start !important}.ion-align-self-xl-end{align-self:end !important}.ion-align-self-xl-center{align-self:center !important}.ion-align-self-xl-stretch{align-self:stretch !important}.ion-align-self-xl-baseline{align-self:baseline !important}.ion-align-self-xl-auto{align-self:auto !important}}.ion-justify-content-start{justify-content:flex-start !important}.ion-justify-content-end{justify-content:flex-end !important}.ion-justify-content-center{justify-content:center !important}.ion-justify-content-between{justify-content:space-between !important}.ion-justify-content-around{justify-content:space-around !important}.ion-justify-content-evenly{justify-content:space-evenly !important}@media(min-width: 576px){.ion-justify-content-sm-start{justify-content:flex-start !important}.ion-justify-content-sm-end{justify-content:flex-end !important}.ion-justify-content-sm-center{justify-content:center !important}.ion-justify-content-sm-between{justify-content:space-between !important}.ion-justify-content-sm-around{justify-content:space-around !important}.ion-justify-content-sm-evenly{justify-content:space-evenly !important}}@media(min-width: 768px){.ion-justify-content-md-start{justify-content:flex-start !important}.ion-justify-content-md-end{justify-content:flex-end !important}.ion-justify-content-md-center{justify-content:center !important}.ion-justify-content-md-between{justify-content:space-between !important}.ion-justify-content-md-around{justify-content:space-around !important}.ion-justify-content-md-evenly{justify-content:space-evenly !important}}@media(min-width: 992px){.ion-justify-content-lg-start{justify-content:flex-start !important}.ion-justify-content-lg-end{justify-content:flex-end !important}.ion-justify-content-lg-center{justify-content:center !important}.ion-justify-content-lg-between{justify-content:space-between !important}.ion-justify-content-lg-around{justify-content:space-around !important}.ion-justify-content-lg-evenly{justify-content:space-evenly !important}}@media(min-width: 1200px){.ion-justify-content-xl-start{justify-content:flex-start !important}.ion-justify-content-xl-end{justify-content:flex-end !important}.ion-justify-content-xl-center{justify-content:center !important}.ion-justify-content-xl-between{justify-content:space-between !important}.ion-justify-content-xl-around{justify-content:space-around !important}.ion-justify-content-xl-evenly{justify-content:space-evenly !important}}.ion-flex-row{flex-direction:row !important}.ion-flex-row-reverse{flex-direction:row-reverse !important}.ion-flex-column{flex-direction:column !important}.ion-flex-column-reverse{flex-direction:column-reverse !important}@media(min-width: 576px){.ion-flex-sm-row{flex-direction:row !important}.ion-flex-sm-row-reverse{flex-direction:row-reverse !important}.ion-flex-sm-column{flex-direction:column !important}.ion-flex-sm-column-reverse{flex-direction:column-reverse !important}}@media(min-width: 768px){.ion-flex-md-row{flex-direction:row !important}.ion-flex-md-row-reverse{flex-direction:row-reverse !important}.ion-flex-md-column{flex-direction:column !important}.ion-flex-md-column-reverse{flex-direction:column-reverse !important}}@media(min-width: 992px){.ion-flex-lg-row{flex-direction:row !important}.ion-flex-lg-row-reverse{flex-direction:row-reverse !important}.ion-flex-lg-column{flex-direction:column !important}.ion-flex-lg-column-reverse{flex-direction:column-reverse !important}}@media(min-width: 1200px){.ion-flex-xl-row{flex-direction:row !important}.ion-flex-xl-row-reverse{flex-direction:row-reverse !important}.ion-flex-xl-column{flex-direction:column !important}.ion-flex-xl-column-reverse{flex-direction:column-reverse !important}}.ion-wrap{flex-wrap:wrap !important}.ion-nowrap{flex-wrap:nowrap !important}.ion-wrap-reverse{flex-wrap:wrap-reverse !important}.ion-flex-wrap{flex-wrap:wrap !important}.ion-flex-nowrap{flex-wrap:nowrap !important}.ion-flex-wrap-reverse{flex-wrap:wrap-reverse !important}@media(min-width: 576px){.ion-flex-sm-wrap{flex-wrap:wrap !important}.ion-flex-sm-nowrap{flex-wrap:nowrap !important}.ion-flex-sm-wrap-reverse{flex-wrap:wrap-reverse !important}}@media(min-width: 768px){.ion-flex-md-wrap{flex-wrap:wrap !important}.ion-flex-md-nowrap{flex-wrap:nowrap !important}.ion-flex-md-wrap-reverse{flex-wrap:wrap-reverse !important}}@media(min-width: 992px){.ion-flex-lg-wrap{flex-wrap:wrap !important}.ion-flex-lg-nowrap{flex-wrap:nowrap !important}.ion-flex-lg-wrap-reverse{flex-wrap:wrap-reverse !important}}@media(min-width: 1200px){.ion-flex-xl-wrap{flex-wrap:wrap !important}.ion-flex-xl-nowrap{flex-wrap:nowrap !important}.ion-flex-xl-wrap-reverse{flex-wrap:wrap-reverse !important}}.ion-flex-1{flex:1 !important}.ion-flex-auto{flex:auto !important}.ion-flex-initial{flex:initial !important}.ion-flex-none{flex:none !important}@media(min-width: 576px){.ion-flex-sm-1{flex:1 !important}.ion-flex-sm-auto{flex:auto !important}.ion-flex-sm-initial{flex:initial !important}.ion-flex-sm-none{flex:none !important}}@media(min-width: 768px){.ion-flex-md-1{flex:1 !important}.ion-flex-md-auto{flex:auto !important}.ion-flex-md-initial{flex:initial !important}.ion-flex-md-none{flex:none !important}}@media(min-width: 992px){.ion-flex-lg-1{flex:1 !important}.ion-flex-lg-auto{flex:auto !important}.ion-flex-lg-initial{flex:initial !important}.ion-flex-lg-none{flex:none !important}}@media(min-width: 1200px){.ion-flex-xl-1{flex:1 !important}.ion-flex-xl-auto{flex:auto !important}.ion-flex-xl-initial{flex:initial !important}.ion-flex-xl-none{flex:none !important}}.ion-flex-grow-0{flex-grow:0 !important}.ion-flex-grow-1{flex-grow:1 !important}.ion-flex-shrink-0{flex-shrink:0 !important}.ion-flex-shrink-1{flex-shrink:1 !important}@media(min-width: 576px){.ion-flex-sm-grow-0{flex-grow:0 !important}.ion-flex-sm-grow-1{flex-grow:1 !important}.ion-flex-sm-shrink-0{flex-shrink:0 !important}.ion-flex-sm-shrink-1{flex-shrink:1 !important}}@media(min-width: 768px){.ion-flex-md-grow-0{flex-grow:0 !important}.ion-flex-md-grow-1{flex-grow:1 !important}.ion-flex-md-shrink-0{flex-shrink:0 !important}.ion-flex-md-shrink-1{flex-shrink:1 !important}}@media(min-width: 992px){.ion-flex-lg-grow-0{flex-grow:0 !important}.ion-flex-lg-grow-1{flex-grow:1 !important}.ion-flex-lg-shrink-0{flex-shrink:0 !important}.ion-flex-lg-shrink-1{flex-shrink:1 !important}}@media(min-width: 1200px){.ion-flex-xl-grow-0{flex-grow:0 !important}.ion-flex-xl-grow-1{flex-grow:1 !important}.ion-flex-xl-shrink-0{flex-shrink:0 !important}.ion-flex-xl-shrink-1{flex-shrink:1 !important}}.ion-order-first{order:-1 !important}.ion-order-0{order:0 !important}.ion-order-1{order:1 !important}.ion-order-2{order:2 !important}.ion-order-3{order:3 !important}.ion-order-4{order:4 !important}.ion-order-5{order:5 !important}.ion-order-6{order:6 !important}.ion-order-7{order:7 !important}.ion-order-8{order:8 !important}.ion-order-9{order:9 !important}.ion-order-10{order:10 !important}.ion-order-11{order:11 !important}.ion-order-12{order:12 !important}.ion-order-last{order:13 !important}@media(min-width: 576px){.ion-order-sm-first{order:-1 !important}.ion-order-sm-0{order:0 !important}.ion-order-sm-1{order:1 !important}.ion-order-sm-2{order:2 !important}.ion-order-sm-3{order:3 !important}.ion-order-sm-4{order:4 !important}.ion-order-sm-5{order:5 !important}.ion-order-sm-6{order:6 !important}.ion-order-sm-7{order:7 !important}.ion-order-sm-8{order:8 !important}.ion-order-sm-9{order:9 !important}.ion-order-sm-10{order:10 !important}.ion-order-sm-11{order:11 !important}.ion-order-sm-12{order:12 !important}.ion-order-sm-last{order:13 !important}}@media(min-width: 768px){.ion-order-md-first{order:-1 !important}.ion-order-md-0{order:0 !important}.ion-order-md-1{order:1 !important}.ion-order-md-2{order:2 !important}.ion-order-md-3{order:3 !important}.ion-order-md-4{order:4 !important}.ion-order-md-5{order:5 !important}.ion-order-md-6{order:6 !important}.ion-order-md-7{order:7 !important}.ion-order-md-8{order:8 !important}.ion-order-md-9{order:9 !important}.ion-order-md-10{order:10 !important}.ion-order-md-11{order:11 !important}.ion-order-md-12{order:12 !important}.ion-order-md-last{order:13 !important}}@media(min-width: 992px){.ion-order-lg-first{order:-1 !important}.ion-order-lg-0{order:0 !important}.ion-order-lg-1{order:1 !important}.ion-order-lg-2{order:2 !important}.ion-order-lg-3{order:3 !important}.ion-order-lg-4{order:4 !important}.ion-order-lg-5{order:5 !important}.ion-order-lg-6{order:6 !important}.ion-order-lg-7{order:7 !important}.ion-order-lg-8{order:8 !important}.ion-order-lg-9{order:9 !important}.ion-order-lg-10{order:10 !important}.ion-order-lg-11{order:11 !important}.ion-order-lg-12{order:12 !important}.ion-order-lg-last{order:13 !important}}@media(min-width: 1200px){.ion-order-xl-first{order:-1 !important}.ion-order-xl-0{order:0 !important}.ion-order-xl-1{order:1 !important}.ion-order-xl-2{order:2 !important}.ion-order-xl-3{order:3 !important}.ion-order-xl-4{order:4 !important}.ion-order-xl-5{order:5 !important}.ion-order-xl-6{order:6 !important}.ion-order-xl-7{order:7 !important}.ion-order-xl-8{order:8 !important}.ion-order-xl-9{order:9 !important}.ion-order-xl-10{order:10 !important}.ion-order-xl-11{order:11 !important}.ion-order-xl-12{order:12 !important}.ion-order-xl-last{order:13 !important}}/*# sourceMappingURL=flex-utils.css.map */
.ion-hide{display:none !important}.ion-hide-up{display:none !important}.ion-hide-down{display:none !important}@media(min-width: 576px){.ion-hide-sm-up{display:none !important}}@media(max-width: 575.98px){.ion-hide-sm-down{display:none !important}}@media(min-width: 768px){.ion-hide-md-up{display:none !important}}@media(max-width: 767.98px){.ion-hide-md-down{display:none !important}}@media(min-width: 992px){.ion-hide-lg-up{display:none !important}}@media(max-width: 991.98px){.ion-hide-lg-down{display:none !important}}@media(min-width: 1200px){.ion-hide-xl-up{display:none !important}}@media(max-width: 1199.98px){.ion-hide-xl-down{display:none !important}}.ion-display-none{display:none !important}@media(min-width: 576px){.ion-display-sm-none{display:none !important}}@media(min-width: 768px){.ion-display-md-none{display:none !important}}@media(min-width: 992px){.ion-display-lg-none{display:none !important}}@media(min-width: 1200px){.ion-display-xl-none{display:none !important}}.ion-display-inline{display:inline !important}@media(min-width: 576px){.ion-display-sm-inline{display:inline !important}}@media(min-width: 768px){.ion-display-md-inline{display:inline !important}}@media(min-width: 992px){.ion-display-lg-inline{display:inline !important}}@media(min-width: 1200px){.ion-display-xl-inline{display:inline !important}}.ion-display-inline-block{display:inline-block !important}@media(min-width: 576px){.ion-display-sm-inline-block{display:inline-block !important}}@media(min-width: 768px){.ion-display-md-inline-block{display:inline-block !important}}@media(min-width: 992px){.ion-display-lg-inline-block{display:inline-block !important}}@media(min-width: 1200px){.ion-display-xl-inline-block{display:inline-block !important}}.ion-display-block{display:block !important}@media(min-width: 576px){.ion-display-sm-block{display:block !important}}@media(min-width: 768px){.ion-display-md-block{display:block !important}}@media(min-width: 992px){.ion-display-lg-block{display:block !important}}@media(min-width: 1200px){.ion-display-xl-block{display:block !important}}.ion-display-flex{display:flex !important}@media(min-width: 576px){.ion-display-sm-flex{display:flex !important}}@media(min-width: 768px){.ion-display-md-flex{display:flex !important}}@media(min-width: 992px){.ion-display-lg-flex{display:flex !important}}@media(min-width: 1200px){.ion-display-xl-flex{display:flex !important}}.ion-display-inline-flex{display:inline-flex !important}@media(min-width: 576px){.ion-display-sm-inline-flex{display:inline-flex !important}}@media(min-width: 768px){.ion-display-md-inline-flex{display:inline-flex !important}}@media(min-width: 992px){.ion-display-lg-inline-flex{display:inline-flex !important}}@media(min-width: 1200px){.ion-display-xl-inline-flex{display:inline-flex !important}}.ion-display-grid{display:grid !important}@media(min-width: 576px){.ion-display-sm-grid{display:grid !important}}@media(min-width: 768px){.ion-display-md-grid{display:grid !important}}@media(min-width: 992px){.ion-display-lg-grid{display:grid !important}}@media(min-width: 1200px){.ion-display-xl-grid{display:grid !important}}.ion-display-inline-grid{display:inline-grid !important}@media(min-width: 576px){.ion-display-sm-inline-grid{display:inline-grid !important}}@media(min-width: 768px){.ion-display-md-inline-grid{display:inline-grid !important}}@media(min-width: 992px){.ion-display-lg-inline-grid{display:inline-grid !important}}@media(min-width: 1200px){.ion-display-xl-inline-grid{display:inline-grid !important}}.ion-display-table{display:table !important}@media(min-width: 576px){.ion-display-sm-table{display:table !important}}@media(min-width: 768px){.ion-display-md-table{display:table !important}}@media(min-width: 992px){.ion-display-lg-table{display:table !important}}@media(min-width: 1200px){.ion-display-xl-table{display:table !important}}.ion-display-table-cell{display:table-cell !important}@media(min-width: 576px){.ion-display-sm-table-cell{display:table-cell !important}}@media(min-width: 768px){.ion-display-md-table-cell{display:table-cell !important}}@media(min-width: 992px){.ion-display-lg-table-cell{display:table-cell !important}}@media(min-width: 1200px){.ion-display-xl-table-cell{display:table-cell !important}}.ion-display-table-row{display:table-row !important}@media(min-width: 576px){.ion-display-sm-table-row{display:table-row !important}}@media(min-width: 768px){.ion-display-md-table-row{display:table-row !important}}@media(min-width: 992px){.ion-display-lg-table-row{display:table-row !important}}@media(min-width: 1200px){.ion-display-xl-table-row{display:table-row !important}}/*# sourceMappingURL=display.css.map */
/* quicksand-vietnamese-400-normal */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/quicksand-vietnamese-400-normal-CYVZRxRj.woff2) format('woff2'), url(/assets/quicksand-vietnamese-400-normal-D4WCpyCa.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* quicksand-latin-ext-400-normal */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/quicksand-latin-ext-400-normal-BdPaGDPN.woff2) format('woff2'), url(/assets/quicksand-latin-ext-400-normal-BzqwlOho.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* quicksand-latin-400-normal */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/quicksand-latin-400-normal-BSDtH9U0.woff2) format('woff2'), url(/assets/quicksand-latin-400-normal-BqXBKzPR.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* quicksand-vietnamese-600-normal */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/quicksand-vietnamese-600-normal-dD2kotB2.woff2) format('woff2'), url(/assets/quicksand-vietnamese-600-normal-JmvBH-hY.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* quicksand-latin-ext-600-normal */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/quicksand-latin-ext-600-normal-fxOF3zcr.woff2) format('woff2'), url(/assets/quicksand-latin-ext-600-normal-BDPVAPCS.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* quicksand-latin-600-normal */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/quicksand-latin-600-normal-DTBPeRoM.woff2) format('woff2'), url(/assets/quicksand-latin-600-normal-CkxN0sDw.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}:root {
  --ion-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Unified "dark glass" theme (matches the in-map hold/quick action menu) */
  --cc-bg: #0b1222;
  --cc-surface: rgba(15, 23, 42, 0.86);
  --cc-surface-2: rgba(15, 23, 42, 0.62);
  --cc-inset: rgba(255, 255, 255, 0.10);
  --cc-inset-2: rgba(255, 255, 255, 0.06);
  --cc-border: rgba(255, 255, 255, 0.10);
  --cc-border-strong: rgba(255, 255, 255, 0.14);
  --cc-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);

  --cc-text: rgba(255, 255, 255, 0.92);
  --cc-text-strong: rgba(255, 255, 255, 0.98);
  --cc-text-muted: rgba(255, 255, 255, 0.72);

  --cc-accent: rgba(59, 130, 246, 0.92);
  --cc-accent-2: rgba(59, 130, 246, 0.22);

  /* Extra safe-area insets for platforms (notably Android WebView) where CSS env(safe-area-inset-*) may be 0. */
  --cc-safe-left-extra: 0px;
  --cc-safe-right-extra: 0px;
  --cc-safe-bottom-extra: 0px;

  /* Muted, less-jarring palette */
  --ion-color-primary: #475569;
  --ion-color-primary-rgb: 71, 85, 105;
  --ion-color-primary-contrast: #ffffff;
  --ion-color-primary-contrast-rgb: 255, 255, 255;
  --ion-color-primary-shade: #3e4b5c;
  --ion-color-primary-tint: #59677a;

  --ion-color-secondary: #64748b;
  --ion-color-secondary-rgb: 100, 116, 139;
  --ion-color-secondary-contrast: #ffffff;
  --ion-color-secondary-contrast-rgb: 255, 255, 255;
  --ion-color-secondary-shade: #586679;
  --ion-color-secondary-tint: #748399;
}

/* Reduce accidental pull-to-refresh / overscroll (best effort; browser-dependent) */
html,
body {
  overscroll-behavior: none;
  overscroll-behavior-y: none;

  /* Treat the app like a game canvas: browser should not scroll/pull the page when dragging. */
  touch-action: none;
}

body {
  overflow: hidden;
  background: var(--cc-bg);
  color: var(--cc-text);
  
  /* Top bar-style font weights and spacing */
  font-weight: 400;
  letter-spacing: 0.3px;

  /* Make the app feel like a game canvas on mobile browsers. */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* Make info UI elements match the unified dark glass theme by default */
ion-chip {
  --background: #0f1420;
  --color: #e2e8f0;
  border: 2px solid #3a4556;
  border-radius: 0;
  font-weight: 600;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

ion-badge {
  --background: #fbbf24;
  --color: #000000;
  border: 2px solid #000000;
  border-radius: 0;
  font-weight: 700;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  text-shadow: none;
}

ion-card {
  --background: #1a1f2e;
  border-radius: 0;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* Buttons use primary; keep it muted */
ion-button {
  --border-radius: 0;
}

/* Global retro styling for inputs and selects */
ion-input {
  --background: #0a0e1a;
  --color: #e2e8f0;
  --placeholder-color: #94a3b8;
  --border-radius: 0;
  border: 2px solid #3a4556;
  border-radius: 0;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

ion-select {
  --background: #0a0e1a;
  --color: #e2e8f0;
  --placeholder-color: #94a3b8;
  border: 2px solid #3a4556;
  border-radius: 0;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

ion-select::part(container) {
  border-radius: 0;
}

ion-textarea {
  --background: #0a0e1a;
  --color: #e2e8f0;
  --placeholder-color: #94a3b8;
  border: 2px solid #3a4556;
  border-radius: 0;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* Use platform-safe padding inside IonContent (modals/windows) so bottom nav bars don’t clip UI.
   Apply by adding className="cc-allow-scroll" on IonContent. */
ion-content.cc-allow-scroll {
  --padding-start: calc(16px + env(safe-area-inset-left) + var(--cc-safe-left-extra, 0px));
  --padding-end: calc(16px + env(safe-area-inset-right) + var(--cc-safe-right-extra, 0px));
  --padding-top: calc(16px + env(safe-area-inset-top) + var(--cc-safe-top-extra, 0px));
  --padding-bottom: calc(16px + env(safe-area-inset-bottom) + var(--cc-safe-bottom-extra, 0px));
}
ion-modal.onboard-modal {
  /* Prevent platform defaults from bleeding through around the modal sheet. */
  --background: transparent;
}

ion-modal.onboard-modal::part(backdrop) {
  background: rgba(0, 0, 0, 0.75);
}

ion-modal.onboard-modal::part(content) {
  background: #1a1f2e;
  color: #e2e8f0;
  border-radius: 0;
  border: 3px solid #3a4556;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    4px 4px 0 rgba(0, 0, 0, 0.5),
    0 8px 32px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

/* IonContent has its own background; make it transparent so the modal surface shows through. */
ion-modal.onboard-modal ion-content {
  --background: transparent;
  
  /* Retro scrollbars */
  scrollbar-width: thin;
  scrollbar-color: #3a4556 #0a0e1a;
}

ion-modal.onboard-modal ion-content::-webkit-scrollbar {
  width: 10px;
}

ion-modal.onboard-modal ion-content::-webkit-scrollbar-track {
  background: #0a0e1a;
  border-radius: 0;
}

ion-modal.onboard-modal ion-content::-webkit-scrollbar-thumb {
  background: #3a4556;
  border-radius: 0;
  border: 1px solid #0a0e1a;
}

.onboard-card {
  margin: 0;
  box-shadow: none;
  background: transparent;
}

.onboard-title {
  margin: 0 0 8px 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.onboard-subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
  line-height: 1.5;
}

.onboard-hero {
  border-radius: 0;
  padding: 10px;
  background: #0f1420;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
}

.onboard-input {
  --background: #0a0e1a;
  --color: #e2e8f0;
  --placeholder-color: #94a3b8;
  border-radius: 0;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  margin-top: 6px;
}

.onboard-section {
  border-radius: 0;
  padding: 10px;
  background: #0f1420;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  margin-top: 8px;
}

.onboard-sectionTitle {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  opacity: 0.95;
  margin-bottom: 10px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.onboard-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.onboard-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.onboard-rowIcon {
  font-size: 18px;
  color: var(--cc-text-muted);
  flex: 0 0 auto;
  margin-top: 1px;
}

.onboard-rowText {
  min-width: 0;
}

.onboard-rowTitle {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.onboard-rowSub {
  margin-top: 5px;
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.5;
}

.onboard-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.onboard-legendRow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.onboard-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  flex: 0 0 auto;
}

.onboard-dot.pos {
  background: rgba(16, 185, 129, 0.95);
}

.onboard-dot.neg {
  background: rgba(248, 113, 113, 0.95);
}

.onboard-dot.flat {
  background: rgba(251, 191, 36, 0.95);
}

.onboard-themeGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

@media (min-width: 520px) {
  .onboard-themeGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.onboard-themeCard {
  text-align: left;
  width: 100%;
  padding: 8px;
  border-radius: 0;
  border: 2px solid #3a4556;
  background: #0a0e1a;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  color: inherit;
}

.onboard-themeCard.selected {
  border-color: #48bb78;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 1px 1px 0 rgba(0, 0, 0, 0.5), 0 0 0 3px #48bb78;
}

.onboard-themeTitleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.onboard-themeTitle {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.4px;
}

.onboard-themeBadge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 6px;
  border-radius: 0;
  border: 2px solid #3a4556;
  background: #0a0e1a;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.onboard-themeCard.disabled {
  opacity: 0.55;
}

.onboard-themeCard.disabled .onboard-themePreview {
  filter: grayscale(0.7) saturate(0.6);
}

.onboard-themeSub {
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.75;
}

.onboard-themePreview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.onboard-themePreview img {
  image-rendering: pixelated;
}


.onboard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.onboard-footnote {
  margin: 10px 0 0 0;
  opacity: 0.7;
  font-size: 12px;
}
ion-modal.leader-modal::part(content) {
  background: #1a1f2e;
  color: #e2e8f0;
  border-radius: 0;
  border: 3px solid #3a4556;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    4px 4px 0 rgba(0, 0, 0, 0.5);
}

.leader-card {
  margin: 0;
  box-shadow: none;
}

.leader-title {
  margin: 0 0 6px 0;
}

.leader-subtitle {
  margin: 0 0 12px 0;
  opacity: 0.85;
}

.leader-input {
  --background: #0a0e1a;
  --color: #e2e8f0;
  --placeholder-color: #94a3b8;
  border-radius: 0;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  margin-top: 6px;
}

.leader-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.leader-footnote {
  margin: 10px 0 0 0;
  opacity: 0.7;
}
ion-modal.levelup-modal {
  --width: 100vw;
  --height: 100vh;
  --max-width: 100vw;
  --max-height: 100vh;
  --border-radius: 0;
  --background: transparent;
}

ion-modal.levelup-modal::part(content) {
  width: 100vw;
  height: 100vh;
  background: transparent;
  border-radius: 0;
}

ion-modal.levelup-modal::part(backdrop) {
  /* Keep it dramatic, but avoid the "grey sheet" look if content sizing glitches. */
  background: rgba(0, 0, 0, 0.35);
  opacity: 1;
}

.levelup-root {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;

  background: #0a0e1a;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
}

.levelup-root::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: none;
}

.levelup-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  image-rendering: pixelated;
}

.levelup-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
  z-index: 2;
}

.levelup-panel {
  width: min(520px, 92vw);
  padding: 32px 24px;

  border-radius: 0;
  border: 3px solid #3a4556;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    4px 4px 0 rgba(0, 0, 0, 0.5),
    0 18px 55px rgba(0, 0, 0, 0.55);

  background: #1a1f2e;
}

.levelup-label {
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e2e8f0;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
  margin-bottom: 16px;
  font-size: 18px;
}

.levelup-level {
  font-weight: 700;
  font-size: clamp(52px, 12vw, 110px);
  line-height: 1;
  padding: 12px 16px;

  color: #48bb78;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8);
  border: 3px solid #48bb78;
  background: rgba(72, 187, 120, 0.1);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.levelup-sub {
  margin-top: 20px;
  color: #cbd5e0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  animation: levelup-blink 1200ms steps(2, end) infinite;
}

@keyframes levelup-blink {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: grid;
  place-items: center;

  background: #0a0e1a;
  color: #ffffff;

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  transition: opacity 240ms ease;
  overflow: hidden;
}

.splash-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.splash-gradient {
  display: none;
}

.splash-card {
  position: relative;
  z-index: 1;

  width: min(480px, 90vw);
  padding: 48px 32px;

  border-radius: 0;
  border: 3px solid #3a4556;
  border-style: solid;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    4px 4px 0 rgba(0, 0, 0, 0.5);

  background: #1a1f2e;
  text-align: center;
}

.splash-logo {
  width: 160px;
  height: 160px;
  display: block;
  margin: 0 auto 24px auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: none;
}

.splash-title {
  text-align: center;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.15em;
  color: #e2e8f0;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
  margin-bottom: 16px;
}

.splash-sub {
  text-align: center;
  margin-top: 0;
  font-size: 14px;
  font-weight: 500;
  color: #cbd5e0;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.splash-bar {
  margin-top: 24px;
  width: 100%;
  height: 24px;
  background: #1a202c;
  border-radius: 0;
  overflow: hidden;
  border: 2px solid #4a5568;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.splash-bar-fill {
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #48bb78 0px,
    #48bb78 8px,
    #38a169 8px,
    #38a169 16px
  );
  background-size: 16px 100%;
  border-radius: 0;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2);
  transition: width 0.3s ease-out;
  animation: splashBarScroll 0.8s linear infinite;
}

@keyframes splashBarScroll {
  0% { background-position: 0 0; }
  100% { background-position: 16px 0; }
}

.splash-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(24px + env(safe-area-inset-bottom) + var(--cc-safe-bottom-extra, 0px));
  text-align: center;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #a0aec0;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}
.fw {
  position: fixed;
  z-index: 120;

  background: #1a1f2e;
  color: #ffffff;
  border: 3px solid #3a4556;
  border-radius: 0;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    4px 4px 0 rgba(0, 0, 0, 0.5);

  overflow: hidden;
}

.fw-head {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  user-select: none;
  cursor: grab;
  background: #0f1420;
  border-bottom: 2px solid #3a4556;
}

.fw-head:active {
  cursor: grabbing;
}

.fw-title {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e2e8f0;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.fw-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fw-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fw-close {
  width: 28px;
  height: 28px;
  border-radius: 0;
  border: 2px solid #3a4556;
  background: #0f1420;
  color: #e2e8f0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.fw-close:hover {
  background: #1a1f2e;
  border-color: #48bb78;
  transform: translateY(-1px);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.fw-body {
  height: calc(100% - 36px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px;

  /* Nice thin scrollbars (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.06);
}

.fw-resize {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 18px;
  height: 18px;
  border-radius: 0;
  cursor: se-resize;

  background: #0f1420;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* subtle "grip" */
.fw-resize::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0) 0 52%, rgba(255,255,255,0.26) 52% 56%, rgba(255,255,255,0) 56% 100%),
    linear-gradient(135deg, rgba(255,255,255,0) 0 70%, rgba(255,255,255,0.18) 70% 73%, rgba(255,255,255,0) 73% 100%);
  opacity: 0.9;
}

/* Nice thin scrollbars (WebKit) */
.fw-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.fw-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0;
}

.fw-body::-webkit-scrollbar-thumb {
  background: #3a4556;
  border-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background-clip: padding-box;
}

.fw ion-text {
  color: rgba(255, 255, 255, 0.95);
}
.profilewin {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profilewin-hero {
  border-radius: 0;
  padding: 8px;
  background: #0f1420;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.profilewin-heroTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.profilewin-names {
  min-width: 0;
}

.profilewin-town {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.1;
}

.profilewin-leader {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.8;
}

.profilewin-metaRow {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profilewin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  background: #0a0e1a;
  border: 2px solid #3a4556;
  color: #e2e8f0;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.profilewin-levelBadge {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: #48bb78;
  border: 2px solid #2f855a;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.profilewin-levelBadgeNum {
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.profilewin-xpRow {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.profilewin-xpRow ion-progress-bar {
  --background: #0a0e1a;
  --progress-background: #48bb78;
  height: 8px;
  border-radius: 0;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.profilewin-xpLabel {
  font-size: 12px;
  opacity: 0.8;
  white-space: nowrap;
}

.profilewin-section {
  border-radius: 0;
  padding: 8px;
  background: #0f1420;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.profilewin-sectionTitle {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
}

.profilewin-rateTable {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 6px 10px;
  align-items: center;
}

.profilewin-rateHead {
  font-size: 11px;
  opacity: 0.7;
}

.profilewin-rateRes {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profilewin-rateRes img {
  width: 18px;
  height: 18px;
}

.profilewin-rateResName {
  font-weight: 500;
  font-size: 12px;
}

.profilewin-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-align: right;
  font-size: 12px;
}

.profilewin-num.pos {
  color: rgba(22, 163, 74, 0.95);
}

.profilewin-num.neg {
  color: rgba(220, 38, 38, 0.92);
}

.profilewin-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 8px 0;
}

.profilewin-statGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profilewin-stat {
  border-radius: 0;
  padding: 8px;
  background: #0a0e1a;
  border: 2px solid #3a4556;
  min-width: 0;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.profilewin-statLabel {
  font-size: 11px;
  opacity: 0.72;
}

.profilewin-statValue {
  margin-top: 3px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profilewin-subnote {
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.72;
}
.whwin {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.whwin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.whwin-chip {
  --background: rgba(15, 23, 42, 0.40);
  --color: rgba(226, 232, 240, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(10px);
}

.whwin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.whwin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.20);
}

.whwin-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.whwin-name {
  font-weight: 950;
  letter-spacing: 0.2px;
}

.whwin-val {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.96);
}

.whwin-cap {
  margin-left: 4px;
  opacity: 0.6;
  font-weight: 500;
}

.whwin-hint {
  margin-top: 2px;
}
.workers-assign-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.workers-assign-title {
  font-weight: 500;
  opacity: 0.9;
}

.workers-assign-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workers-assign-row {
  padding: 10px 10px;
  border-radius: 0;
  border: 2px solid #3a4556;
  background: #0f1420;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.workers-assign-rowTop {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.workers-assign-row.is-locked {
  opacity: 0.55;
}

.workers-assign-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
}

.workers-assign-titleblock {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.workers-assign-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

.workers-assign-meta {
  font-size: 11px;
  opacity: 0.72;
  line-height: 1.1;
  color: var(--cc-text-muted);
}

.workers-assign-controls {
  margin-top: 8px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.workers-assign-slider {
  min-width: 0;
  accent-color: #48bb78;
  height: 18px;
}

.workers-assign-cap {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--cc-text-strong);
}

.workers-assign-arrows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.workers-assign-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 16px;
  padding: 0;
  border: 2px solid #3a4556;
  border-radius: 0;
  background: #0f1420;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  font-weight: 600;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.workers-assign-arrow:hover:not(:disabled) {
  background: #48bb78;
  border-color: #48bb78;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.workers-assign-arrow:active:not(:disabled) {
  background: #38a169;
  transform: translateY(1px);
}

.workers-assign-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.workers-assign-arrow ion-icon {
  font-size: 14px;
  pointer-events: none;
}

.workers-assign-number {
  width: 56px;
  padding: 6px 6px;
  border-radius: 0;
  border: 2px solid #3a4556;
  background: #0a0e1a;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 12px;
  text-align: center;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  -moz-appearance: textfield;
}

/* Remove number input spinners */
.workers-assign-number::-webkit-outer-spin-button,
.workers-assign-number::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.workers-assign-number:disabled,
.workers-assign-slider:disabled {
  opacity: 0.55;
}

.bm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.bm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bm-sub {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 500;
}

.bm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 0;
  border: 2px solid #3a4556;
  background: #0f1420;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.bm-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 0;
  border: 2px solid #3a4556;
  background: #1a1f2e;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

/* icon-only category tab */
.bm-tab-icon {
  padding: 8px;
  gap: 0;
  min-width: 38px;
  justify-content: center;
}

.bm-tab:hover {
  background: #252b3a;
  border-color: #48bb78;
  transform: translateY(-1px);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.bm-tab.active {
  border: 2px solid #48bb78;
  background: #48bb78;
  color: #ffffff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.bm-tab-ico {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}

.bm-tab-label {
  line-height: 1;
}

.bm-tab-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  padding: 2px 6px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
  background: #fbbf24;
  border: 2px solid #000000;
  color: #000000;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  text-shadow: none;
}

.bm-scroll {
  flex: 1 1 auto;
  overflow: auto;
  padding-right: 2px;

  /* Desktop: allow click-drag scrolling */
  cursor: grab;
}

.bm-scroll.dragging {
  cursor: grabbing;
  user-select: none;
}

/* Desktop: 4 cards per row, 2-row grid */
@media (min-width: 561px) {
  .bm-scroll {
    /* No horizontal scrolling; we want a fixed 4-column layout. */
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 0;

    cursor: default;
  }

  .bm-scroll.dragging {
    cursor: default;
  }

  .bm-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 2px;
    align-items: start;
  }

  .bm-card {
    width: auto;
  }
}

/* Mobile: keep 2-column grid + compact cards + 2-row category tabs */
@media (max-width: 560px) {
  .bm-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
  }

  .bm-tab {
    width: 100%;
    justify-content: center;
    padding: 6px 8px;
    font-size: 11px;
    gap: 6px;
  }

  .bm-tab-ico {
    width: 16px;
    height: 16px;
  }

  .bm-tab-badge {
    top: -6px;
    right: -6px;
    font-size: 10px;
    padding: 2px 5px;
  }

  .bm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 2px;
  }

  .bm-card {
    gap: 6px;
    padding: 7px;
    border-radius: 12px;
  }

  .bm-card-top {
    height: 46px;
    border-radius: 10px;
  }

  .bm-card-img {
    width: 36px;
    height: 36px;
  }

  .bm-card-name {
    font-size: 11px;
  }
}

.bm-card {
  box-sizing: border-box;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 0;
  border: 2px solid #3a4556;
  background: #0f1420;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  transition: all 0.15s ease;
}

.bm-card:hover {
  background: #1a1f2e;
  border-color: #48bb78;
  transform: translateY(-1px);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.bm-card.locked {
  opacity: 0.7;
}

.bm-card-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  border-radius: 0;
  border: 2px solid #3a4556;
  background: #1a1f2e;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.bm-card-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.95);
  z-index: 1;
}

.bm-card-img {
  width: 60px;
  height: 60px;
  image-rendering: pixelated;
}

.bm-corner {
  position: absolute;
  top: 6px;
  right: 6px;
}

.bm-badge {
  --background: rgba(255, 255, 255, 0.10);
  --color: var(--cc-text-strong);
  border: 1px solid var(--cc-border-strong);
  font-weight: 500;
  font-size: 11px;
}

.bm-card-name {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bm-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Two-line Place button needs more vertical room than Ionic's default small button. */
.bm-place-btn {
  height: auto;
  --padding-top: 8px;
  --padding-bottom: 8px;
}

.bm-act-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
}

.bm-act-top {
  font-weight: 500;
  font-size: 12px;
}

.bm-act-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.95;
  min-width: 0;
}

.bm-act-sub span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-act-sub img {
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.20));
}

.bm-card-actions-row {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.bm-card-compact {
  cursor: pointer;
}

.bm-card-compact:focus {
  outline: 2px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
}

/* Hover popover */
.bm-pop {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--cc-border);
  background: var(--cc-surface);
  color: var(--cc-text);
  backdrop-filter: blur(12px);
  box-shadow: var(--cc-shadow);
}

.bm-pop-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.bm-pop-icon {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
}

.bm-pop-title {
  font-weight: 500;
}

.bm-pop-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bm-pop-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  opacity: 0.92;
}

.bm-pop-line.warn {
  color: rgba(185, 28, 28, 0.95);
}

.bm-pop-k {
  opacity: 0.75;
  font-weight: 500;
}

.bm-pop-v {
  font-weight: 500;
}

/* Mobile details window */
.bm-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bm-detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bm-detail-icon {
  width: 54px;
  height: 54px;
  image-rendering: pixelated;
}

.bm-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bm-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.bm-cost, .bm-req {
  margin: 0;
  --padding-start: 10px;
  --padding-end: 10px;
  --padding-top: 4px;
  --padding-bottom: 4px;
  --min-height: 28px;
}

.bm-detail-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.75;
}

.bm-empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.55);
}
.cc-terra-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px;
  border-radius: 0;

  border: 2px solid #3a4556;
  background: #0f1420;
  color: #e2e8f0;

  cursor: pointer;
  user-select: none;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  transition: all 0.15s ease;
  font-weight: 600;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.cc-terra-tile:hover {
  background: #1a1f2e;
  border-color: #48bb78;
  transform: translateY(-1px);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.cc-terra-tile.active {
  border: 2px solid #48bb78;
  background: #48bb78;
  color: #ffffff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.cc-terra-tile ion-text {
  color: var(--cc-text);
}
.motdwin {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.motd-body {
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.92;
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
}

.motd-footer {
  flex: 0 0 auto;
  padding: 8px 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.motd-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  opacity: 0.85;
  user-select: none;
}

.motd-checkbox-label ion-checkbox {
  --size: 18px;
  --checkbox-background-checked: #48bb78;
  --border-color: #3a4556;
  --border-color-checked: #48bb78;
  --border-radius: 0;
  margin: 0;
}

.motd-checkbox-label:hover {
  opacity: 1;
}

@media (max-width: 520px) {
  .motd-body {
    font-size: 12px;
  }
  
  .motd-checkbox-label {
    font-size: 11px;
  }
}

/* Chat window: Match retro theme */
.fw.fw-chat {
  background: #1a1f2e;
  border: 3px solid #3a4556;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    4px 4px 0 rgba(0, 0, 0, 0.5);
}

.fw.fw-chat .fw-head {
  background: #0f1420;
  border-bottom: 2px solid #3a4556;
}

.fw.fw-chat .fw-body {
  padding: 8px;
}

.chat-join {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-join-title {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.chat-join-sub {
  font-size: 12px;
  opacity: 0.82;
  line-height: 1.25;
}

.chat-join-btn {
  width: 100%;
  --border-radius: 14px;
}

.chat-toggle {
  --background: transparent;
  background: transparent;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  --color: rgba(226, 232, 240, 0.92);
}

.chat-error {
  font-size: 12px;
  color: rgba(254, 202, 202, 0.96);
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.22);
  padding: 8px 10px;
  border-radius: 12px;
}

.chat-root {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-list {
  flex: 1 1 auto;
  overflow: auto;
  padding: 8px;
  border-radius: 0;
  border: 2px solid #3a4556;
  background: #0f1420;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.chat-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 2px 0;
  font-size: 13px;
  line-height: 1.35;
}

.chat-time {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
  font-size: 11px;
}

.chat-name {
  border: none;
  background: transparent;
  padding: 0;
  font-weight: 500;
  cursor: default;
  text-decoration: none;
}

/* Only show pointer when moderation is available */
.fw.fw-chat .chat-name[title] {
  cursor: pointer;
}

.chat-colon {
  opacity: 0.7;
}

.chat-text {
  opacity: 0.95;
  word-break: break-word;
}

/* Rank colors */
.chat-name.rank-user {
  color: rgba(226, 232, 240, 0.92);
}

.chat-name.rank-tester {
  color: #a855f7; /* purple */
}

.chat-name.rank-founder {
  color: #fbbf24; /* gold/yellow */
}

.chat-name.rank-mod {
  color: #14532d; /* dark green */
}

.chat-name.rank-admin {
  color: #38bdf8; /* sky blue */
}

.chat-compose {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 8px;
  border-radius: 0;
  border: 2px solid #3a4556;
  background: #0f1420;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.chat-compose ion-input {
  flex: 1 1 auto;
  --color: rgba(226, 232, 240, 0.95);
  --placeholder-color: rgba(148, 163, 184, 0.7);
}

.chat-send {
  min-width: 42px;
  height: 36px;
  --border-radius: 0;
  --background: #48bb78;
  --background-hover: #38a169;
  --color: #ffffff;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  border: 2px solid #2f855a;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.chat-foot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Ionic popover uses shadow parts; style via cssClass + ::part */
ion-popover.chat-mod-popover::part(content) {
  --background: #1a1f2e;
  border: 3px solid #3a4556;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    4px 4px 0 rgba(0, 0, 0, 0.5),
    0 24px 60px rgba(0, 0, 0, 0.42);
  border-radius: 0;
}

ion-popover.chat-mod-popover::part(arrow) {
  background: #1a1f2e;
  border: 3px solid #3a4556;
}

.chat-mod-menu {
  min-width: 220px;
  padding: 10px;
  color: rgba(226, 232, 240, 0.96);
}

.chat-mod-title {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.2px;
  opacity: 0.9;
  padding: 2px 6px 8px 6px;
}

.chat-mod-menu ion-list {
  background: transparent;
  padding: 0;
}

.chat-mod-menu ion-icon {
  opacity: 0.9;
}

.chat-mod-sep {
  height: 1px;
  margin: 8px 6px;
  background: rgba(255, 255, 255, 0.10);
}

.chat-mod-custom {
  padding: 6px;
}

.chat-mod-custom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.chat-mod-back {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.92);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 12px;
}

.chat-mod-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(2, 6, 23, 0.20);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  opacity: 0.95;
}

.chat-mod-label {
  font-size: 11px;
  opacity: 0.7;
  margin: 8px 2px 6px 2px;
}

.chat-mod-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-mod-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.92);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 12px;
}

.chat-mod-chip.active {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.10);
}

.chat-mod-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.chat-mod-mins {
  width: 96px;
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.95);
  outline: none;
}

.chat-mod-unit {
  font-size: 12px;
  opacity: 0.8;
}

.chat-mod-reason {
  width: 100%;
  resize: none;
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.95);
  outline: none;
}

.chat-mod-apply {
  width: 100%;
  margin-top: 10px;
  --border-radius: 14px;
}

.chat-mod-menu ion-item {
  --background: transparent;
  --color: rgba(226, 232, 240, 0.95);
  --min-height: 38px;
  border-radius: 12px;
  margin: 2px 0;
}

.chat-mod-menu ion-item::part(native) {
  border-radius: 12px;
}

.chat-mod-menu ion-item:hover {
  --background: rgba(255, 255, 255, 0.06);
}

.chat-mod-menu ion-item[disabled] {
  opacity: 0.55;
}
.iso-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b1222;

  /* Prevent browser panning/zooming/overscroll from stealing touch drags. */
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
}

.iso-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.iso-holdring {
  position: absolute;
  z-index: 25000;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.iso-holdring-outer {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: #1a1f2e;
  border: 2px solid #3a4556;
  box-shadow:
    inset 1px 1px 0 rgba(0, 0, 0, 0.5),
    0 14px 30px rgba(0, 0, 0, 0.28),
    1px 1px 0 rgba(0, 0, 0, 0.5);
}

.iso-holdring-inner {
  position: absolute;
  inset: 6px;
  border-radius: 0;
  background: #48bb78;
  border: 2px solid #48bb78;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.iso-zoom {
  position: absolute;
  right: calc(10px + env(safe-area-inset-right) + var(--cc-safe-right-extra, 0px));
  bottom: calc(10px + env(safe-area-inset-bottom) + var(--cc-safe-bottom-extra, 0px));
  z-index: 30000;

  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
}

.iso-version-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.iso-version-logo {
  width: 48px;
  height: 48px;
  user-select: none;
  pointer-events: none;
  border: none !important;
  outline: none !important;
  box-sizing: border-box;
  display: block;
}

@media (min-width: 769px) {
  .iso-version-logo {
    width: 72px;
    height: 72px;
  }
}

.iso-version {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: rgba(226, 232, 240, 0.55);
  text-shadow: 0 8px 18px rgba(0,0,0,0.45);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.iso-zoom-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.iso-zoom-buttons button {
  width: 42px;
  height: 42px;
  border-radius: 0;
  border: 3px solid #3a4556;
  background: #1a1f2e;
  color: #e2e8f0;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    0 10px 26px rgba(0, 0, 0, 0.28);
  font-size: 20px;
  font-weight: 700;
  transition: all 0.15s ease;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.iso-zoom-buttons button:hover {
  background: #252b3a;
  border-color: #48bb78;
  transform: translateY(-2px);
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    0 12px 30px rgba(0, 0, 0, 0.35),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

.iso-zoom button:active {
  transform: translateY(1px);
}

.iso-building {
  position: absolute;
  /* Anchor transform is computed per-sprite in IsoMap.tsx (based on intrinsic size). */
  z-index: 2;
}

.iso-building.rotating button {
  animation: building-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Highlight sprite when pressing/holding (uses drop-shadow to follow alpha channel) */
.iso-building.pressing img,
.iso-item.pressing img {
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.9))
          drop-shadow(0 0 8px rgba(251, 191, 36, 0.6))
          drop-shadow(0 0 12px rgba(251, 191, 36, 0.4));
  transition: filter 0.1s ease-out;
}

.iso-item {
  position: absolute;
  /* Anchor transform is computed per-sprite in IsoMap.tsx (based on intrinsic size). */
  z-index: 1;
}

.iso-item.rotating button {
  animation: building-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes building-pop {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.08);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* Roads now use sprite rendering like all other buildings */

.iso-gainbubbles {
  position: absolute;
  inset: 0;
  z-index: 38000;
  pointer-events: none;
}

.iso-gainbubble {
  position: absolute;
  transform: translate(-50%, -100%);

  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;

  padding: 6px 10px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;

  background: #1a1f2e;
  border: 2px solid #3a4556;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    0 12px 24px rgba(0, 0, 0, 0.5),
    1px 1px 0 rgba(0, 0, 0, 0.5);

  animation: iso-gain-float 800ms ease-out forwards;
}

.iso-gainpart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.iso-gainpart.pos {
  color: #48bb78;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.iso-gainpart.neg {
  color: #f56565;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.iso-gainpart img {
  display: block;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25));
}

.iso-gainpart-txt {
  font-variant-numeric: tabular-nums;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

@keyframes iso-gain-float {
  0% {
    opacity: 0;
    transform: translate(-50%, -70%) scale(0.96);
  }
  15% {
    opacity: 1;
  }
  65% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -150%) scale(1.02);
  }
}

.iso-tooltips {
  position: absolute;
  inset: 0;
  /* Must be above all buildings/items regardless of their per-sprite z-index. */
  z-index: 40000;
  pointer-events: none;
}

.iso-tooltip {
  position: absolute;
  transform: translate(-50%, -100%);

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 5px 10px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;

  color: #e2e8f0;
  background: #1a1f2e;
  border: 2px solid #3a4556;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    0 12px 24px rgba(0, 0, 0, 0.5),
    1px 1px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);

  pointer-events: none;
  white-space: nowrap;
  
  /* Scale with zoom and hide at very low zoom */
  transform-origin: center bottom;
}

/* Mobile: scale building names with zoom */
@media (max-width: 768px) {
  .iso-wrap[data-zoom] .iso-tooltip {
    /* Base transform with zoom-based scaling */
    transform: translate(-50%, -100%) scale(var(--tooltip-scale, 1));
  }
  
  /* Hide at very low zoom levels on mobile */
  .iso-wrap[data-zoom-level="very-far"] .iso-tooltip {
    opacity: 0;
    pointer-events: none;
  }
  
  .iso-wrap[data-zoom-level="far"] .iso-tooltip {
    transform: translate(-50%, -100%) scale(0.7);
  }
  
  .iso-wrap[data-zoom-level="medium"] .iso-tooltip {
    transform: translate(-50%, -100%) scale(0.85);
  }
}

.iso-tip-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.iso-tip-dot {
  opacity: 0.5;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.iso-tip-lv {
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
  color: #48bb78;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.iso-tip-lock {
  font-size: 10px;
  opacity: 0.9;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.iso-building button,
.iso-item button {
  border: none;
  background: transparent;
  padding: 0;
  appearance: none;
  cursor: pointer;
}

/* Spectator mode: let pointer events fall through to the map for pan/zoom. */
.iso-wrap.iso-readonly .iso-building button,
.iso-wrap.iso-readonly .iso-item button {
  pointer-events: none;
}

.iso-building img {
  display: block;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.28));
}

.iso-item img {
  display: block;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.22));
}

.iso-building.locked img {
  filter: grayscale(1) drop-shadow(0 10px 18px rgba(0,0,0,0.22));
  opacity: 0.78;
}

/* Disconnected buildings (no road to City Hall) */
.iso-item.disconnected img {
  filter: grayscale(0.7) sepia(0.3) drop-shadow(0 8px 14px rgba(0,0,0,0.22));
  opacity: 0.7;
}

.iso-building.disconnected img {
  filter: grayscale(0.7) sepia(0.3) drop-shadow(0 10px 18px rgba(0,0,0,0.22));
  opacity: 0.7;
}

.iso-disconnected-icon {
  position: absolute;
  top: -8px;
  right: -8px;
  background: rgba(220, 38, 38, 0.9);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  pointer-events: none;
  z-index: 10;
}

.iso-disconnected-icon img {
  width: 14px;
  height: 14px;
}

.iso-disconnected-icon::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 3px;
  background: white;
  transform: rotate(-45deg);
  border-radius: 2px;
}

.iso-disconnected-icon.centered {
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
}

.iso-tooltip.disconnected {
  background: rgba(127, 29, 29, 0.92);
}

.iso-tip-disconnected {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(220, 38, 38, 0.9);
  border-radius: 50%;
  margin-right: 5px;
  flex-shrink: 0;
}

.iso-tip-disconnected img {
  width: 12px;
  height: 12px;
}

.iso-tip-disconnected::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  background: white;
  transform: rotate(-45deg);
}

.iso-building.selected img {
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.30));
}

.iso-building.dragging img,
.iso-item.dragging img {
  outline: 3px solid rgba(251, 191, 36, 0.8);
  outline-offset: calc(4px * var(--iso-scale, 1));
  border-radius: 12px;
}

.iso-item-road.dragging .iso-road-tile {
  outline: 3px solid rgba(251, 191, 36, 0.8);
  outline-offset: calc(4px * var(--iso-scale, 1));
}



.fw.fw-player-profile {
  background: #1a1f2e;
  border: 3px solid #3a4556;
}

.fw.fw-player-profile .fw-head {
  background: #0f1420;
  border-bottom: 2px solid #3a4556;
}

.fw.fw-player-profile .fw-body {
  padding: 10px;
  /* Avoid double scrollbars; the inner `.ppw` handles scrolling. */
  overflow: hidden;
}

.ppw {
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;

  /* Prevent the scrollbar from visually clipping card right edges. */
  padding-right: 10px;

  /* Gorgeous scrollbars (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.50) rgba(0, 0, 0, 0.10);
}

/* Gorgeous scrollbars (WebKit) */
.ppw::-webkit-scrollbar {
  width: 12px;
}

.ppw::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.10);
  border-radius: 999px;
  margin: 10px 0;
}

.ppw::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.50);
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0);
  background-clip: content-box;
}

.ppw::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.65);
  border: 2px solid rgba(0, 0, 0, 0);
  background-clip: content-box;
}

.ppw-loading {
  height: 100%;
  display: grid;
  place-items: center;
}

.ppw-muted {
  opacity: 0.78;
  font-size: 13px;
}

.ppw-error {
  font-size: 12px;
  color: #fecaca;
  border: 2px solid #f87171;
  background: #7f1d1d;
  padding: 8px 10px;
  border-radius: 0;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.ppw-hero {
  border-radius: 0;
  padding: 12px;
  background: #0f1420;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.ppw-heroTop {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ppw-avatar {
  width: 56px;
  height: 56px;
  border-radius: 0;
  border: 2px solid #3a4556;
  background: #1a1f2e;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.ppw-avatarInitial {
  font-weight: 500;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.ppw-names {
  min-width: 0;
  flex: 1 1 auto;
}

.ppw-name {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.1;
}

.ppw-sub {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ppw-sub2 {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.78;
}

.ppw-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  background: #0a0e1a;
  border: 2px solid #3a4556;
  color: #e2e8f0;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.ppw-featured {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ppw-badgeChip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  background: #0f1420;
  border: 2px solid #3a4556;
  color: #e2e8f0;
  transition: all 0.15s ease;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.ppw-badgeChip:hover {
  background: #1a1f2e;
  border-color: #48bb78;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.ppw-badgeChip.draggable {
  cursor: grab;
}

.ppw-badgeChip.draggable:active {
  cursor: grabbing;
}

.ppw-badgeChip img {
  width: 16px;
  height: 16px;
}

.ppw-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ppw-actions ion-button {
  --border-radius: 0;
  --padding-start: 14px;
  --padding-end: 14px;
  font-weight: 700;
  height: 36px;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.ppw-actions ion-button[fill="outline"] {
  --border-color: var(--cc-border);
  --color: var(--cc-text);
  --background: rgba(255, 255, 255, 0.02);
  --background-hover: rgba(255, 255, 255, 0.06);
}

.ppw-actions ion-button[fill="solid"] {
  --background: var(--cc-inset);
  --background-hover: rgba(255, 255, 255, 0.15);
  --color: var(--cc-text-strong);
  --border-color: var(--cc-border-strong);
}

.ppw-section {
  border-radius: 0;
  padding: 12px;
  background: #0f1420;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.ppw-sectionTitle {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2px;
  opacity: 0.9;
  margin-bottom: 10px;
}

.ppw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ppw-econGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 720px) {
  .ppw-econGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ppw-econItem {
  border-radius: 0;
  padding: 10px;
  background: #0a0e1a;
  border: 2px solid #3a4556;
  min-width: 0;
  transition: all 0.15s ease;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);

  display: grid;
  grid-template-columns: 18px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
}

.ppw-econItem:hover {
  background: #48bb78;
  border-color: #48bb78;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.ppw-econItem img {
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.ppw-econName {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
  opacity: 0.78;
}

.ppw-econVal {
  font-size: 14px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.96);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ppw-econSep {
  height: 1px;
  margin: 10px 2px;
  background: var(--cc-border);
}

.ppw-econHdr {
  margin: 6px 2px 8px 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  opacity: 0.65;
}

.ppw-cities {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ppw-city {
  border-radius: 0;
  padding: 10px;
  background: #0a0e1a;
  border: 2px solid #3a4556;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.15s ease;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.ppw-city:hover {
  background: #0f1420;
  border-color: #48bb78;
  transform: translateY(-1px);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.ppw-cityVisit {
  --border-radius: 0;
  font-weight: 700;
  height: 38px;
  --padding-start: 14px;
  --padding-end: 14px;
  --background: #48bb78;
  --background-hover: #38a169;
  --color: #ffffff;
  border: 2px solid #2f855a;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 1px 1px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.ppw-cityVisit ion-icon {
  opacity: 0.95;
}

.ppw-cityMain {
  min-width: 0;
}

.ppw-cityName {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ppw-cityMeta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fw.fw-visit {
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
}

.fw.fw-visit .fw-head {
  background: var(--cc-inset-2);
}

/* Visit mode should not show the game's build/version label */
.fw.fw-visit .iso-version {
  display: none;
}

/* Visit window: map should fill the body; no scroll/padding */
.fw.fw-visit .fw-body {
  padding: 0;
  overflow: hidden;
}

.ppw-visit {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ppw-visit-sub {
  padding: 10px 12px;
  font-size: 12px;
  opacity: 0.8;
  border-bottom: 1px solid var(--cc-border);
}

.ppw-visit-map {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}

/* Prominent kudos button inside the Visit window (top-right over the map) */
.ppw-visit-kudos {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(15, 23, 42, 0.98);

  background: linear-gradient(180deg, rgba(251, 191, 36, 0.98), rgba(245, 158, 11, 0.96));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
}

.ppw-visit-kudos ion-icon {
  font-size: 18px;
}

.ppw-visit-kudosCount {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.ppw-visit-kudosLabel {
  font-weight: 500;
  opacity: 0.9;
}

.ppw-visit-kudos.done {
  background: #fbbf24;
  color: #000000;
  border-color: #fbbf24;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 1px 1px 0 rgba(0, 0, 0, 0.5);
  text-shadow: none;
}

.ppw-visit-kudos[disabled] {
  opacity: 0.7;
}

.ppw-card {
  border-radius: 0;
  padding: 10px;
  background: #0f1420;
  border: 2px solid #3a4556;
  min-width: 0;
  transition: all 0.15s ease;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.ppw-card:hover {
  background: #1a1f2e;
  border-color: #48bb78;
  transform: translateY(-1px);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.ppw-cardLabel {
  font-size: 11px;
  opacity: 0.72;
}

.ppw-cardValue {
  margin-top: 4px;
  font-weight: 500;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ppw-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ppw-badge {
  text-align: left;
  border-radius: 0;
  padding: 10px;
  background: #0f1420;
  border: 2px solid #3a4556;
  color: #e2e8f0;
  transition: all 0.15s ease;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.ppw-badge:hover {
  background: #1a1f2e;
  border-color: #48bb78;
  transform: translateY(-1px);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.ppw-badge.locked {
  opacity: 0.70;
}

.ppw-badge.picked {
  border-color: #48bb78;
  background: #1a1f2e;
  color: #e2e8f0;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5), 0 0 0 2px #48bb78;
}

.ppw-badgeTop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ppw-badgeTop img {
  width: 18px;
  height: 18px;
}

.ppw-badgeName {
  font-weight: 500;
  font-size: 13px;
}

.ppw-badgeDesc {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.82;
  line-height: 1.25;
}

.ppw-badgeProg {
  margin-top: 8px;
}

.ppw-badgeProg ion-progress-bar {
  --background: #0a0e1a;
  --progress-background: #94a3b8;
  height: 6px;
  border-radius: 0;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.ppw-badgeProgDone {
  font-size: 11px;
  opacity: 0.75;
}

.ppw-badgePickHint {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.75;
}

/* Rank colors match chat */
.ppw-name.rank-user {
  color: rgba(226, 232, 240, 0.92);
}

.ppw-name.rank-tester {
  color: #a855f7;
}

.ppw-name.rank-founder {
  color: #fbbf24;
}

.ppw-name.rank-mod {
  color: #14532d;
}

.ppw-name.rank-admin {
  color: #38bdf8;
}

/* Rarity accent - subtle retro colors */
.rarity-common {
  --rar: #64748b;
}
.rarity-rare {
  --rar: #60a5fa;
}
.rarity-epic {
  --rar: #c084fc;
}
.rarity-legendary {
  --rar: #fbbf24;
}

.ppw-badge.rarity-common,
.ppw-badgeChip.rarity-common {
  border-color: var(--rar);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}
.ppw-badge.rarity-rare,
.ppw-badgeChip.rarity-rare {
  border-color: var(--rar);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}
.ppw-badge.rarity-epic,
.ppw-badgeChip.rarity-epic {
  border-color: var(--rar);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}
.ppw-badge.rarity-legendary,
.ppw-badgeChip.rarity-legendary {
  border-color: var(--rar);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

@media (max-width: 560px) {
  .ppw-badges {
    grid-template-columns: 1fr;
  }
}
.fw.fw-highscores {
  background: #1a1f2e;
  border: 3px solid #3a4556;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    4px 4px 0 rgba(0, 0, 0, 0.5);
}

.fw.fw-highscores .fw-head {
  background: #0f1420;
  border-bottom: 2px solid #3a4556;
}

.fw.fw-highscores .fw-body {
  padding: 8px;
}

.hsw {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hsw-top {
  padding: 0;
  margin-bottom: 6px;
}

.hsw-top ion-segment {
  /* Segment container */
  --background: transparent;
  --border-radius: 4px;

  border: none;
  border-radius: 4px;
  padding: 2px;
  gap: 2px;
}

/* Make tabs feel retro */
.hsw-top ion-segment-button {
  --border-radius: 0;
  --color: #cbd5e0;
  --color-checked: #ffffff;
  --background: #0f1420;
  --background-hover: #1a1f2e;

  /* checked */
  --background-checked: #48bb78;
  --indicator-color: transparent;
}

/* Deep styling via shadow parts */
.hsw-top ion-segment-button::part(native) {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 10px;
  padding-inline: 8px;
  min-height: 20px;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.hsw-top ion-segment-button.segment-button-checked::part(native) {
  border-color: #48bb78;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.hsw-loading {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
}

.hsw-muted {
  opacity: 0.78;
  font-size: 13px;
}

.hsw-error {
  font-size: 12px;
  color: rgba(254, 202, 202, 0.90);
  border: 1px solid rgba(248, 113, 113, 0.20);
  background: rgba(127, 29, 29, 0.15);
  padding: 6px;
  border-radius: 6px;
}

.hsw-list {
  flex: 1 1 auto;
  overflow: auto;

  border-radius: 0;
  border: 2px solid #3a4556;
  background: #0a0e1a;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);

  display: grid;
  grid-template-columns: 68px 1fr 130px;
  gap: 0;

  /* Scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #3a4556 #0a0e1a;
}

.hsw-list::-webkit-scrollbar {
  width: 10px;
}

.hsw-list::-webkit-scrollbar-track {
  background: #0a0e1a;
  border-radius: 0;
}

.hsw-list::-webkit-scrollbar-thumb {
  background: #3a4556;
  border-radius: 0;
  border: 1px solid #0a0e1a;
}

.hsw-head {
  position: sticky;
  top: 0;
  z-index: 1;

  padding: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);

  background: #0f1420;
  border-bottom: 2px solid #3a4556;
}

.hsw-row {
  display: contents;
}

.hsw-rank,
.hsw-user,
.hsw-val {
  padding: 8px;
  border-bottom: 1px solid #1a1f2e;
  background: transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.hsw-row:hover .hsw-rank,
.hsw-row:hover .hsw-user,
.hsw-row:hover .hsw-val {
  background: #0f1420;
  border-bottom-color: #48bb78;
}

.hsw-rank {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  opacity: 0.80;

  display: flex;
  align-items: center;
  gap: 6px;
}

.hsw-rankText {
  opacity: 0.92;
}

.hsw-trophy {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.hsw-trophy.gold {
  color: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.25);
}

.hsw-trophy.silver {
  color: rgba(226, 232, 240, 0.90);
  box-shadow: 0 0 8px rgba(148, 163, 184, 0.20);
}

.hsw-trophy.bronze {
  color: #fb923c;
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.20);
}

.hsw-user {
  text-align: left;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);

  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  transition: background 0.12s ease;
}

.hsw-userName {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hsw-titles {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.hsw-titleChip {
  --rar-glow: rgba(148, 163, 184, 0.15);
  --rar-border: rgba(148, 163, 184, 0.20);

  display: inline-flex;
  align-items: center;
  gap: 3px;

  padding: 2px 5px;
  border-radius: 999px;
  border: 1px solid var(--rar-border);
  box-shadow: 0 0 8px var(--rar-glow);

  background: rgba(255, 255, 255, 0.04);

  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.85);

  max-width: 190px;
  min-width: 0;
  overflow: hidden;
}

.hsw-titleChip.rarity-uncommon {
  --rar-glow: rgba(34, 197, 94, 0.16);
  --rar-border: rgba(34, 197, 94, 0.24);
}

.hsw-titleChip.rarity-rare {
  --rar-glow: rgba(56, 189, 248, 0.18);
  --rar-border: rgba(56, 189, 248, 0.26);
}

.hsw-titleChip.rarity-epic {
  --rar-glow: rgba(168, 85, 247, 0.18);
  --rar-border: rgba(168, 85, 247, 0.26);
}

.hsw-titleChip.rarity-legendary {
  --rar-glow: rgba(251, 191, 36, 0.20);
  --rar-border: rgba(251, 191, 36, 0.26);
}

.hsw-titleChip.rarity-mythic {
  --rar-glow: rgba(244, 63, 94, 0.18);
  --rar-border: rgba(244, 63, 94, 0.26);
}

.hsw-titleImg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 0 6px var(--rar-glow));
}

.hsw-titleText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.96;
}

.hsw-heldChip {
  flex: 0 0 auto;
  white-space: nowrap;
  
  display: inline-flex;
  align-items: center;
  gap: 2px;
  
  padding: 2px 5px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.20);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.15);
  
  background: rgba(59, 130, 246, 0.06);
  
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: rgba(147, 197, 253, 0.85);
}

/* Make top 3 rows feel "crowned" with unified glow */
.hsw-row.pos-1 .hsw-rank,
.hsw-row.pos-1 .hsw-user,
.hsw-row.pos-1 .hsw-val {
  background: rgba(251, 191, 36, 0.06);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.08) inset;
}

.hsw-row.pos-2 .hsw-rank,
.hsw-row.pos-2 .hsw-user,
.hsw-row.pos-2 .hsw-val {
  background: rgba(226, 232, 240, 0.05);
  box-shadow: 0 0 20px rgba(226, 232, 240, 0.06) inset;
}

.hsw-row.pos-3 .hsw-rank,
.hsw-row.pos-3 .hsw-user,
.hsw-row.pos-3 .hsw-val {
  background: rgba(251, 146, 60, 0.06);
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.08) inset;
}

.hsw-user:hover .hsw-userName {
  text-decoration: underline;
}

.hsw-user:focus-visible {
  outline: 1px solid rgba(59, 130, 246, 0.60);
  outline-offset: 1px;
  border-radius: 4px;
}

.hsw-val {
  text-align: right;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Rank colors match chat */
.hsw-user.rank-1 {
  color: rgba(226, 232, 240, 0.92);
}
.hsw-user.rank-2 {
  color: #a855f7;
}
.hsw-user.rank-3 {
  color: #fbbf24;
}
.hsw-user.rank-4 {
  color: #14532d;
}
.hsw-user.rank-5 {
  color: #38bdf8;
}

/* Mobile: keep row compact by showing title icons only */
@media (max-width: 560px) {
  .hsw-list {
    grid-template-columns: 50px 1fr 90px;
  }
  
  .hsw-rank,
  .hsw-user,
  .hsw-val {
    padding: 6px 6px;
    font-size: 13px;
  }
  
  .hsw-head {
    padding: 6px 6px;
    font-size: 9px;
  }

  .hsw-titleChip {
    padding: 2px 4px;
    max-width: 80px;
  }

  .hsw-titleText {
    display: none;
  }

  .hsw-heldChip {
    padding: 2px 4px;
    font-size: 8px;
  }
  
  .hsw-userName {
    font-size: 13px;
  }
  
  .hsw-rankText {
    font-size: 12px;
  }
  
  .hsw-trophy {
    width: 12px;
    height: 12px;
  }
}

.hsw-foot {
  font-size: 11px;
  opacity: 0.70;
  text-align: right;
  padding-right: 2px;
}
.online-users-content {
  --background: transparent;
  padding: 16px;
}

.online-users-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.online-users-error {
  padding: 20px;
  text-align: center;
  color: rgba(239, 68, 68, 0.95);
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  margin: 20px;
}

.online-users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #0f1420;
  border-radius: 0;
  margin-bottom: 16px;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.online-users-total {
  font-size: 15px;
  font-weight: 600;
  color: rgba(34, 197, 94, 0.95);
}

.online-users-page-info {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.online-users-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.online-users-list::-webkit-scrollbar {
  width: 6px;
}

.online-users-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.online-users-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.online-users-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.online-users-empty {
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.online-user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #0f1420;
  border: 2px solid #3a4556;
  border-radius: 0;
  transition: all 0.15s ease;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.online-user-item:hover {
  background: #1a1f2e;
  border-color: #48bb78;
  transform: translateY(-1px);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.online-user-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.online-user-username-btn {
  font-size: 14px;
  font-weight: 600;
  color: #48bb78;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.online-user-username-btn:hover {
  color: #38a169;
  text-decoration: underline;
}

.online-user-rank {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.online-user-rank.rank-5 {
  background: rgba(239, 68, 68, 0.2);
  color: rgba(239, 68, 68, 1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.online-user-rank.rank-4 {
  background: rgba(59, 130, 246, 0.2);
  color: rgba(59, 130, 246, 1);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.online-user-rank.rank-1,
.online-user-rank.rank-2,
.online-user-rank.rank-3 {
  background: rgba(148, 163, 184, 0.15);
  color: rgba(148, 163, 184, 1);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.online-user-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.online-users-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  background: #0f1420;
  border-radius: 0;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.online-users-page-num {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  min-width: 60px;
  text-align: center;
}

.online-users-pagination ion-button {
  --color: rgba(255, 255, 255, 0.8);
}

.online-users-pagination ion-button[disabled] {
  --color: rgba(255, 255, 255, 0.3);
}
.cc-switch-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: all;

  /* 8–16bit ocean travel */
  background:
    radial-gradient(900px 520px at 50% 18%, rgba(56, 189, 248, 0.20), rgba(2, 6, 23, 0.96) 64%),
    linear-gradient(180deg, rgba(2, 6, 23, 1) 0%, rgba(2, 10, 44, 1) 35%, rgba(3, 22, 62, 1) 100%);
}

/* Ocean container (holds waves + boat). */
.cc-switch-ocean {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cc-switch-waves {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 0;
  bottom: 0;
  background-repeat: repeat;
  image-rendering: pixelated;
  opacity: 0.95;
}

/* Far waves: bigger tiles, slower movement, more subtle. */
.cc-switch-waves.far {
  opacity: 0.35;
  background-size: 240px 240px;
  background-position: 0 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><rect width='120' height='120' fill='none'/><g fill='%2393c5fd' opacity='0.65'><rect x='10' y='20' width='6' height='3'/><rect x='16' y='20' width='6' height='3'/><rect x='22' y='20' width='6' height='3'/><rect x='54' y='34' width='6' height='3'/><rect x='60' y='34' width='6' height='3'/><rect x='66' y='34' width='6' height='3'/><rect x='86' y='60' width='6' height='3'/><rect x='92' y='60' width='6' height='3'/><rect x='98' y='60' width='6' height='3'/></g><g fill='%2360a5fa' opacity='0.45'><rect x='34' y='78' width='6' height='3'/><rect x='40' y='78' width='6' height='3'/><rect x='46' y='78' width='6' height='3'/><rect x='70' y='94' width='6' height='3'/><rect x='76' y='94' width='6' height='3'/><rect x='82' y='94' width='6' height='3'/></g></svg>");
  animation: ccOceanFar 7.5s linear infinite;
}

/* Near waves: more contrast + slight vertical bob. */
.cc-switch-waves.near {
  opacity: 0.55;
  background-size: 180px 180px;
  background-position: 0 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'><rect width='90' height='90' fill='none'/><g fill='%23e0f2fe' opacity='0.55'><rect x='12' y='18' width='6' height='3'/><rect x='18' y='18' width='6' height='3'/><rect x='24' y='18' width='6' height='3'/><rect x='60' y='30' width='6' height='3'/><rect x='66' y='30' width='6' height='3'/><rect x='72' y='30' width='6' height='3'/></g><g fill='%2393c5fd' opacity='0.75'><rect x='20' y='52' width='6' height='3'/><rect x='26' y='52' width='6' height='3'/><rect x='32' y='52' width='6' height='3'/><rect x='44' y='66' width='6' height='3'/><rect x='50' y='66' width='6' height='3'/><rect x='56' y='66' width='6' height='3'/></g><g fill='%2360a5fa' opacity='0.55'><rect x='6' y='74' width='6' height='3'/><rect x='12' y='74' width='6' height='3'/><rect x='18' y='74' width='6' height='3'/></g></svg>");
  animation: ccOceanNear 5.25s linear infinite;
}

@keyframes ccOceanFar {
  0% {
    background-position: 0 0;
    filter: blur(0.25px);
  }
  100% {
    background-position: -240px 0;
    filter: blur(0.25px);
  }
}

@keyframes ccOceanNear {
  0% {
    background-position: 0 0;
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(2px);
  }
  100% {
    background-position: -180px 0;
    transform: translateY(-2px);
  }
}

/* Pixel boat traveling between islands. */
.cc-switch-boat {
  position: absolute;
  left: -30vw;
  top: 34vh;
  width: 160px;
  height: 100px;
  opacity: 0.98;
  background-repeat: no-repeat;
  background-size: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.45));

  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='100' viewBox='0 0 160 100'><rect width='160' height='100' fill='none'/><g fill='%23f8fafc'><rect x='70' y='18' width='6' height='32'/><rect x='76' y='18' width='6' height='32'/><rect x='82' y='18' width='6' height='32'/></g><g fill='%23e2e8f0'><rect x='62' y='30' width='8' height='6'/><rect x='54' y='36' width='8' height='6'/><rect x='46' y='42' width='8' height='6'/><rect x='38' y='48' width='8' height='6'/><rect x='30' y='54' width='8' height='6'/></g><g fill='%23f1f5f9'><rect x='88' y='30' width='8' height='6'/><rect x='96' y='36' width='8' height='6'/><rect x='104' y='42' width='8' height='6'/><rect x='112' y='48' width='8' height='6'/><rect x='120' y='54' width='8' height='6'/></g><g fill='%23924c2e'><rect x='54' y='62' width='56' height='6'/><rect x='48' y='68' width='68' height='6'/><rect x='44' y='74' width='76' height='6'/><rect x='50' y='80' width='64' height='6'/></g><g fill='%23fbbf24'><rect x='66' y='56' width='14' height='6'/></g><g fill='%230f172a' opacity='0.35'><rect x='48' y='74' width='68' height='6'/><rect x='50' y='80' width='64' height='6'/></g><g fill='%23e0f2fe' opacity='0.55'><rect x='18' y='78' width='6' height='3'/><rect x='24' y='78' width='6' height='3'/><rect x='30' y='78' width='6' height='3'/><rect x='120' y='86' width='6' height='3'/><rect x='126' y='86' width='6' height='3'/><rect x='132' y='86' width='6' height='3'/></g></svg>");

  animation: ccBoatTravel 4.8s linear infinite;
}

@keyframes ccBoatTravel {
  0% {
    transform: translateX(-10vw) translateY(0px);
  }
  30% {
    transform: translateX(35vw) translateY(2px);
  }
  60% {
    transform: translateX(85vw) translateY(-1px);
  }
  100% {
    transform: translateX(160vw) translateY(1px);
  }
}

.cc-switch-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 14px 16px;
  border-radius: 0;

  background: #1a1f2e;
  border: 3px solid #3a4556;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    0 18px 48px rgba(0, 0, 0, 0.42),
    2px 2px 0 rgba(0, 0, 0, 0.5);

  max-width: 82vw;
}

.cc-switch-title {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.96);
}

.cc-switch-sub {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.82;
  color: rgba(255, 255, 255, 0.86);
}

@media (prefers-reduced-motion: reduce) {
  .cc-switch-waves.far,
  .cc-switch-waves.near,
  .cc-switch-boat {
    animation: none !important;
  }
}
/* HowToPlay FloatingWindow styles */
.howto-window {
  color: #e2e8f0;
}

.howto-content {
  --background: transparent;
  padding: 12px;

  /* Retro scrollbars */
  scrollbar-width: thin;
  scrollbar-color: #3a4556 #0a0e1a;
}

.howto-content::-webkit-scrollbar {
  width: 10px;
}

.howto-content::-webkit-scrollbar-track {
  background: #0a0e1a;
  border-radius: 0;
}

.howto-content::-webkit-scrollbar-thumb {
  background: #3a4556;
  border-radius: 0;
  border: 1px solid #0a0e1a;
}

.howto-section {
  border-radius: 0;
  padding: 12px;
  background: #0f1420;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

.howto-section:first-child {
  margin-top: 0;
}

.howto-sectionTitle {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  color: var(--cc-text-muted);
  margin-bottom: 10px;
}

.howto-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.howto-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;

  padding: 10px 10px;
  border-radius: 0;
  border: 2px solid #3a4556;
  background: #0a0e1a;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.howto-rowIcon {
  width: 34px;
  height: 34px;
  border-radius: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #e2e8f0;
  background: #1a1f2e;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.howto-rowText {
  min-width: 0;
}

.howto-rowTitle {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  color: #e2e8f0;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.howto-rowSub {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.5;
  color: #cbd5e0;
}

.howto-tips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.howto-tip {
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e0;
  padding: 6px 10px;
  background: #0a0e1a;
  border: 1px solid #3a4556;
}
/**
 * CitySelector styles - Retro game theme
 */

.city-selector {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.city-selector-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 8px 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid #3a4556;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.city-selector-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: none; /* Firefox */
}
.city-selector-list::-webkit-scrollbar {
  width: 0; /* Chrome/Safari */
  height: 0;
}

/* City item button - retro style */
.city-selector-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(26, 31, 46, 0.6);
  border: 2px solid #3a4556;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.1s ease;
  position: relative;
  text-align: left;
  width: 100%;
}

.city-selector-item:hover {
  background: rgba(26, 31, 46, 0.9);
  border-color: #48bb78;
}

.city-selector-item.selected {
  background: rgba(72, 187, 120, 0.15);
  border-color: #48bb78;
  box-shadow: inset 0 0 0 1px #48bb78;
}

.city-selector-item.selected:hover {
  background: rgba(72, 187, 120, 0.2);
}

/* City icon */
.city-item-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #3a4556;
  flex-shrink: 0;
}

/* City info */
.city-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.city-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.city-item-stats {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #a0aec0;
}

.city-stat {
  display: flex;
  align-items: center;
  gap: 3px;
}

.city-stat-icon {
  font-size: 10px;
}

/* Selected indicator */
.city-item-selected-indicator {
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #48bb78;
}

.city-item-actions {
  margin-left: auto;
}

.city-enter-btn {
  background: #48bb78;
  border: 2px solid #2f855a;
  color: #1a202c;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
}

.city-enter-btn:hover {
  background: #68d391;
}

/* New city section */
.city-selector-new {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid #3a4556;
}

.city-selector-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: rgba(72, 187, 120, 0.1);
  border: 2px dashed #48bb78;
  color: #48bb78;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s ease;
}

.city-selector-add:hover:not(.locked) {
  background: rgba(72, 187, 120, 0.2);
  border-style: solid;
}

.city-selector-add.locked {
  background: rgba(160, 174, 192, 0.05);
  border-color: #4a5568;
  color: #718096;
  cursor: not-allowed;
}

.city-add-icon {
  font-size: 18px;
  font-weight: 700;
}

/* New city form */
.city-new-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.city-new-input {
  width: 100%;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #3a4556;
  color: #e2e8f0;
  font-size: 13px;
  outline: none;
  transition: border-color 0.1s;
}

.city-new-input:focus {
  border-color: #48bb78;
}

.city-new-input::placeholder {
  color: #718096;
}

.city-new-actions {
  display: flex;
  gap: 6px;
}

.city-new-create,
.city-new-cancel {
  flex: 1;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s ease;
}

.city-new-create {
  background: #48bb78;
  border: 2px solid #2f855a;
  color: #1a202c;
}

.city-new-create:hover:not(:disabled) {
  background: #68d391;
}

.city-new-create:disabled {
  background: #4a5568;
  border-color: #3a4556;
  color: #718096;
  cursor: not-allowed;
}

.city-new-cancel {
  background: transparent;
  border: 2px solid #4a5568;
  color: #a0aec0;
}

.city-new-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #718096;
}

/* Max cities message */
.city-selector-max {
  margin-top: 8px;
  padding: 8px;
  text-align: center;
  font-size: 11px;
  color: #718096;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #3a4556;
}

/* Scrollbar styling */
.city-selector-list::-webkit-scrollbar {
  width: 4px;
}

.city-selector-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.city-selector-list::-webkit-scrollbar-thumb {
  background: #4a5568;
  border-radius: 2px;
}

.city-selector-list::-webkit-scrollbar-thumb:hover {
  background: #718096;
}
/**
 * CityPreview styles - Full container for IsoMap background
 */

.city-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.city-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a2035 0%, #0f1420 100%);
}

.city-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0.4;
}

.city-preview-icon {
  font-size: 4rem;
}

.city-preview-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e2e8f0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
/**
 * ContentPanel styles - Retro game theme
 */

.content-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(15, 20, 32, 0.85);
  border: 2px solid #3a4556;
  overflow: hidden;
}

/* Tab headers */
.content-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid #3a4556;
}

.content-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-right: 1px solid #3a4556;
  color: #a0aec0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s ease;
  position: relative;
}

.content-tab:last-child {
  border-right: none;
}

.content-tab:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}

.content-tab.active {
  color: #e2e8f0;
  background: rgba(72, 187, 120, 0.15);
}

.content-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #48bb78;
}

.tab-icon {
  font-size: 14px;
}

.tab-label {
  display: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (min-width: 600px) {
  .tab-label {
    display: inline;
  }
}

.tab-badge {
  padding: 2px 6px;
  background: #4a5568;
  font-size: 10px;
  font-weight: 700;
  color: #e2e8f0;
}

.tab-badge.active-event {
  background: #48bb78;
  color: #1a202c;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Tab content */
.content-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.content-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  color: #718096;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #3a4556;
  border-top-color: #48bb78;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.content-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 200px;
  color: #718096;
  text-align: center;
}

.empty-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

.empty-sub {
  font-size: 0.8rem;
  opacity: 0.7;
}

.content-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* News items - retro theme */
.news-item {
  background: rgba(26, 32, 44, 0.6);
  border: 1px solid #3a4556;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

.news-item:hover {
  border-color: #48bb78;
  background: rgba(26, 32, 44, 0.8);
}

.news-item.pinned {
  border-color: #48bb78;
  border-width: 2px;
}

.news-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.news-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid #3a4556;
}

.news-category {
  padding: 0.2rem 0.5rem;
  background: rgba(72, 187, 120, 0.2);
  font-size: 0.7rem;
  font-weight: 600;
  color: #48bb78;
  text-transform: uppercase;
}

.news-date {
  font-size: 0.75rem;
  color: #718096;
  margin-left: auto;
}

.news-content {
  padding: 0.75rem;
}

.news-title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.3;
}

.news-excerpt {
  margin: 0;
  font-size: 0.85rem;
  color: #a0aec0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(58, 69, 86, 0.5);
}

.news-author {
  font-size: 0.75rem;
  color: #718096;
  font-style: italic;
}

/* News Modal */
.news-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.news-modal {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  background: rgba(15, 20, 32, 0.98);
  border: 2px solid #3a4556;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal title bar */
.news-modal-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid #3a4556;
}

.news-modal-titlebar .news-category {
  margin: 0;
}

.news-modal-titlebar .news-date {
  flex: 1;
}

.news-modal-close {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 2px solid #3a4556;
  color: #a0aec0;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
  margin-left: auto;
}

.news-modal-close:hover {
  background: rgba(72, 187, 120, 0.2);
  border-color: #48bb78;
  color: #48bb78;
}

.news-modal-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}

.news-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.news-modal-title {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.3;
}

.news-modal-author {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #3a4556;
}

.news-modal-body {
  color: #a0aec0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.news-modal-body p {
  margin: 0 0 1rem 0;
}

.news-modal-body p:last-child {
  margin-bottom: 0;
}

/* Changelog items - retro theme */
.changelog-item {
  background: rgba(26, 32, 44, 0.6);
  border: 1px solid #3a4556;
  overflow: hidden;
}

.changelog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid #3a4556;
}

.changelog-version {
  padding: 0.2rem 0.5rem;
  background: rgba(72, 187, 120, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
  color: #48bb78;
  font-family: monospace;
}

.changelog-date {
  font-size: 0.75rem;
  color: #718096;
}

.changelog-title {
  display: none;
}

.changelog-changes {
  padding: 0.75rem;
  font-size: 0.85rem;
  color: #a0aec0;
  line-height: 1.5;
}

.changelog-line {
  margin: 0;
  padding: 0.15rem 0;
}

.changelog-line:before {
  content: '• ';
  color: #48bb78;
}

/* Event items - retro theme */
.event-item {
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(26, 32, 44, 0.6));
  border: 2px solid rgba(72, 187, 120, 0.3);
  border-left-width: 4px;
  padding: 0.75rem;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.event-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
}

.event-status {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-status.active {
  background: #48bb78;
  color: #1a202c;
  animation: pulse 2s infinite;
}

.event-status.upcoming {
  background: rgba(160, 174, 192, 0.2);
  color: #a0aec0;
}

.event-description {
  margin: 0 0 0.75rem 0;
  font-size: 0.85rem;
  color: #a0aec0;
  line-height: 1.4;
}

.event-bonuses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.event-bonus {
  padding: 0.2rem 0.5rem;
  background: rgba(72, 187, 120, 0.15);
  border: 1px solid rgba(72, 187, 120, 0.3);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #68d391;
}

.event-footer {
  display: flex;
  justify-content: flex-end;
}

.event-countdown {
  font-size: 0.8rem;
  color: #a0aec0;
}

/* Scrollbar */
.content-body::-webkit-scrollbar {
  width: 4px;
}

.content-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.content-body::-webkit-scrollbar-thumb {
  background: #4a5568;
  border-radius: 2px;
}

.content-body::-webkit-scrollbar-thumb:hover {
  background: #718096;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .content-panel {
    min-height: 100px;
  }
  
  .content-body {
    padding: 0.5rem;
  }
  
  .content-empty {
    height: 80px;
    gap: 0.25rem;
  }
  
  .empty-icon {
    font-size: 1.25rem;
  }
  
  /* Only show first item on mobile */
  .news-list .news-item:not(:first-child),
  .events-list .event-item:not(:first-child) {
    display: none;
  }
  
  .news-content {
    padding: 0.5rem 0.75rem;
  }
  
  .news-title {
    font-size: 0.9rem;
  }
  
  .news-excerpt {
    font-size: 0.8rem;
    -webkit-line-clamp: 1;
  }
  
  .news-image {
    display: none;
  }
  
  .news-footer {
    display: none;
  }
  
  .event-item {
    padding: 0.5rem;
  }
  
  .event-description {
    display: none;
  }
  
  .event-bonuses {
    margin-bottom: 0.5rem;
  }
}
/* LauncherView - Retro game themed launcher */

.launcher-view {
  position: fixed;
  inset: 0;
  z-index: 60000;
  background: #0f1420;
  opacity: 1;
  transform: scale(1);
  transition: 
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.launcher-view.hidden {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

/* Background - city preview */
.launcher-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.launcher-background-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 20, 32, 0.85) 0%,
    rgba(15, 20, 32, 0.4) 40%,
    rgba(15, 20, 32, 0.5) 60%,
    rgba(15, 20, 32, 0.9) 100%
  );
  pointer-events: none;
}

/* Main content grid */
.launcher-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-areas: "sidebar center";
  grid-template-columns: 360px 1fr;
  grid-template-rows: 1fr;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Center area */
.launcher-center {
  grid-area: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Prominent Enter World button - retro game style */
.launcher-enter-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 64px;
  min-width: 280px;
  
  /* Solid retro button */
  background: #48bb78;
  border: 3px solid #2f855a;
  border-radius: 0;
  box-shadow: 
    0 4px 0 #276749,
    0 6px 12px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  
  cursor: pointer;
  transition: all 0.1s ease;
}

.launcher-enter-button:hover:not(:disabled) {
  background: #68d391;
  border-color: #38a169;
  transform: translateY(-2px);
  box-shadow: 
    0 6px 0 #276749,
    0 8px 16px rgba(0, 0, 0, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

.launcher-enter-button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 
    0 2px 0 #276749,
    0 4px 8px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.15);
}

.launcher-enter-button:disabled {
  background: #4a5568;
  border-color: #3a4556;
  box-shadow: 0 4px 0 #2d3748;
  cursor: not-allowed;
}

.launcher-enter-text {
  font-size: 22px;
  font-weight: 700;
  color: #1a202c;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.launcher-enter-city {
  font-size: 13px;
  font-weight: 600;
  color: rgba(26, 32, 44, 0.8);
}

/* Left sidebar stacks city selector + panels */
.launcher-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  overflow-y: auto;
  scrollbar-width: none;
  background: rgba(15, 20, 32, 0.7);
  border-right: 2px solid #3a4556;
}

.launcher-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Shared panel box */
.panel-box {
  background: rgba(15, 20, 32, 0.85);
  border: 2px solid #3a4556;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

/* Center panel sizing */
.launcher-center-panel {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Launcher links (Discord, Tracker) */
.panel-links {
  padding: 0;
}

.launcher-links {
  display: flex;
  gap: 8px;
  padding: 10px;
}

.launcher-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(72, 187, 120, 0.1);
  border: 2px solid #3a4556;
  color: #a0aec0;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.1s ease;
}

.launcher-link:hover {
  background: rgba(72, 187, 120, 0.2);
  border-color: #48bb78;
  color: #48bb78;
}

.launcher-link-icon {
  font-size: 14px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .launcher-content {
    grid-template-areas: "sidebar";
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .launcher-sidebar {
    padding: 12px;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: none;
    border-bottom: none;
    background: rgba(15, 20, 32, 0.85);
  }

  .launcher-center {
    display: none;
  }

  /* Stack panels vertically on mobile */
  .panel-box {
    margin-bottom: 8px;
  }

  /* City selector on mobile - ensure proper size */
  .panel-box:first-child {
    min-height: 140px;
    flex-shrink: 0;
  }

  /* Content panels on mobile */
  .panel-news,
  .panel-events {
    min-height: 160px;
  }

  /* Hide changelog on mobile, but show links */
  .panel-changelog {
    display: none;
  }
  
  .panel-links {
    min-height: auto;
  }

  .launcher-enter-button {
    padding: 16px 32px;
    min-width: 200px;
  }

  .launcher-enter-text {
    font-size: 18px;
  }
}
/* Retro-style top HUD */
.top-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50000;

  /* Retro dark background */
  background: #0f1420;
  border-bottom: 2px solid #3a4556;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  
  /* Needed for XP bar positioning */
  overflow: visible;

  /* Minimal padding - keep it slim */
  padding-left: calc(8px + env(safe-area-inset-left));
  padding-right: calc(8px + env(safe-area-inset-right));
  padding-top: calc(4px + env(safe-area-inset-top));
  padding-bottom: 4px;

  pointer-events: none;
}

.top-hud-left {
  position: absolute;
  left: calc(12px + env(safe-area-inset-left));
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-hud-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.hud-resources-left,
.hud-resources-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hud-separator {
  width: 1px;
  height: 18px;
  background: #3a4556;
  margin: 0 5px;
}

.hud-resource {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  min-height: 26px;
  
  /* Retro square with subtle background */
  background: rgba(26, 31, 46, 0.4);
  border: 1px solid #3a4556;
  border-radius: 0;

  pointer-events: auto;
  transition: all 0.15s ease;
}

.hud-resource:hover {
  background: rgba(26, 31, 46, 0.7);
  border-color: #48bb78;
}

.hud-resource-icon {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.hud-resource-value {
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
  min-width: 32px;
  text-align: left;
}

/* Near-cap warning for coin storage */
.hud-resource-value.near-cap {
  color: #fbd38d;
  animation: near-cap-pulse 2s ease-in-out infinite;
}

@keyframes near-cap-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hud-resource-rate {
  font-size: 10px;
  font-weight: 500;
  margin-left: 2px;
  letter-spacing: 0.3px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.hud-resource-rate.positive {
  color: #48bb78;
}

.hud-resource-rate.negative {
  color: #f56565;
}

.hud-resource-rate.neutral {
  color: rgba(255, 255, 255, 0.5);
}

.hud-trend-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  box-shadow: 0 0 6px currentColor;
  margin-left: 2px;
}

.hud-trend-dot.pos {
  background: rgba(16, 185, 129, 1);
}

.hud-trend-dot.neg {
  background: rgba(248, 113, 113, 1);
}

.hud-trend-dot.flat {
  background: rgba(251, 191, 36, 1);
}

/* City selector chip */
.hud-city-chip {
  margin: 0;
  padding: 4px 8px;
  min-height: 26px;
  display: flex;
  align-items: center;
  background: rgba(26, 31, 46, 0.4);
  border: 1px solid #3a4556;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  pointer-events: auto;
}

.hud-city-chip:hover {
  background: rgba(26, 31, 46, 0.7);
  border-color: #48bb78;
}

.hud-city-name {
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
}

.hud-city-icon {
  margin-left: 4px;
  font-size: 13px;
  opacity: 0.8;
  color: #e2e8f0;
}

/* Employment display */
.hud-employment {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  min-height: 26px;
  background: rgba(26, 31, 46, 0.4);
  border: 1px solid #3a4556;
  border-radius: 0;
  pointer-events: auto;
}

.hud-employment-text {
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
  min-width: 40px;
  text-align: left;
}

/* Online users display */
.hud-online-users {
  position: absolute;
  right: calc(12px + env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  padding: 4px 8px;
  min-height: 26px;
  background: rgba(26, 31, 46, 0.4);
  border: 1px solid #3a4556;
  border-radius: 0;
  pointer-events: auto;
  transition: all 0.2s ease;
}

.hud-online-users.clickable:hover {
  background: rgba(26, 31, 46, 0.7);
  border-color: #48bb78;
  transform: translateY(-50%) scale(1.05);
}

.hud-online-users.clickable:active {
  transform: translateY(-50%) scale(0.98);
}

.hud-online-text {
  font-size: 12px;
  font-weight: 500;
  color: #48bb78;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  letter-spacing: 0.3px;
}

/* Menu button */
.hud-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  min-height: 26px;
  background: rgba(26, 31, 46, 0.4);
  border: 1px solid #3a4556;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  pointer-events: auto;
  color: #e2e8f0;
}

.hud-menu-btn:hover {
  background: rgba(26, 31, 46, 0.7);
  border-color: #48bb78;
}

.hud-menu-btn ion-icon {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* Action buttons (chat, highscores, admin) */
.hud-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  min-height: 26px;
  background: rgba(26, 31, 46, 0.4);
  border: 1px solid #3a4556;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  pointer-events: auto;
  color: rgba(226, 232, 240, 0.75);
}

.hud-action-btn:hover {
  background: rgba(26, 31, 46, 0.7);
  border-color: #48bb78;
  color: #e2e8f0;
}

.hud-action-btn.active {
  background: rgba(72, 187, 120, 0.15);
  border-color: #48bb78;
  color: #48bb78;
}

.hud-action-btn ion-icon {
  font-size: 19px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.hud-action-icon {
  width: 19px;
  height: 19px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* Badge for unread count */
.hud-action-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 1);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(8, 12, 20, 0.85);
  pointer-events: none;
}

/* Resources chip (mobile) */
.hud-resources-chip {
  margin: 0;
  padding: 4px 8px;
  min-height: 26px;
  display: flex;
  align-items: center;
  background: rgba(26, 31, 46, 0.4);
  border: 1px solid #3a4556;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  pointer-events: auto;
}

.hud-resources-chip:hover {
  background: rgba(26, 31, 46, 0.7);
  border-color: #48bb78;
}

.hud-resources-text {
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
}

/* Resources dropdown popover */
ion-popover.hud-resources-popover::part(content) {
  width: min(260px, 85vw);
  margin-top: 6px;
  overflow: hidden;
  pointer-events: auto;

  /* Retro dark matching quick-pop */
  background: #1a1f2e;
  border: 3px solid #3a4556;
  border-radius: 0;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    0 18px 48px rgba(0, 0, 0, 0.38),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

.hud-resources-dropdown {
  padding: 8px;
}

.hud-resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.hud-resource-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: #0f1420;
  border: 2px solid #3a4556;
  border-radius: 0;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.hud-resource-icon-small {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.hud-resource-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.hud-resource-label {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.hud-resource-amount {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.hud-resource-flow {
  font-size: 10px;
  font-weight: 500;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.hud-resource-flow.positive {
  color: #48bb78;
}

.hud-resource-flow.negative {
  color: #f56565;
}

.hud-resource-flow.neutral {
  color: rgba(255, 255, 255, 0.5);
}

/* Menu dropdown popover */
ion-popover.hud-menu-popover {
  /* Allow backdrop clicks */
}

ion-popover.hud-menu-popover::part(content) {
  width: min(280px, 92vw);
  margin-top: 6px;
  overflow: hidden;
  pointer-events: auto;

  /* Retro dark matching quick-pop */
  background: #1a1f2e;
  border: 3px solid #3a4556;
  border-radius: 0;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    0 18px 48px rgba(0, 0, 0, 0.38),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

/* Icon-only mode: make menu narrower */
ion-popover.hud-menu-popover.icon-only::part(content) {
  width: 56px;
}

.hud-menu-dropdown {
  padding: 10px;
}

/* Icon-only mode: tighter padding */
.hud-menu-dropdown[data-icon-only="true"] {
  padding: 6px;
}

.hud-menu-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 0;
  border: 2px solid #3a4556;
  background: #0f1420;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.hud-menu-item:hover {
  background: #1a2332;
  border-color: #48bb78;
  box-shadow: 
    inset 1px 1px 0 rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(72, 187, 120, 0.3);
}

.hud-menu-item.active {
  border-color: #48bb78;
  background: rgba(72, 187, 120, 0.12);
  box-shadow: 
    inset 1px 1px 0 rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(72, 187, 120, 0.25);
}

.hud-menu-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.hud-menu-icon ion-icon {
  font-size: 18px;
}

.hud-menu-label {
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.hud-menu-badge {
  flex: 0 0 auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: #fbbf24;
  color: #000000;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.3);
  text-shadow: none;
}

.hud-menu-divider {
  height: 2px;
  background: #3a4556;
  margin: 6px 0;
}

.hud-menu-settings {
  opacity: 0.8;
}

.hud-menu-settings:hover {
  opacity: 1;
}

.hud-menu-close {
  opacity: 0.6;
}

.hud-menu-close:hover {
  opacity: 1;
}


/* Mobile responsive */
@media (max-width: 600px) {
  .top-hud {
    padding-top: calc(2px + env(safe-area-inset-top));
    padding-bottom: 2px;
    min-height: auto;
  }

  .top-hud-left {
    left: calc(6px + env(safe-area-inset-left));
    gap: 2px;
  }

  .top-hud-inner {
    gap: 2px;
    justify-content: flex-start;
    padding-left: 38px;
    padding-right: calc(68px + env(safe-area-inset-right)); /* Space for online users */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  .top-hud-inner::-webkit-scrollbar {
    display: none;
  }

  .hud-resources-left,
  .hud-resources-right {
    gap: 0px;
    flex-shrink: 0;
  }

  .hud-menu-btn {
    padding: 4px 6px;
    min-height: 24px;
  }

  .hud-menu-btn ion-icon {
    font-size: 16px;
  }

  .hud-action-btn {
    padding: 4px 6px;
    min-height: 24px;
  }

  .hud-action-btn ion-icon {
    font-size: 16px;
  }

  .hud-city-chip,
  .hud-resources-chip {
    padding: 4px 6px;
    flex-shrink: 0;
    min-height: 24px;
  }

  .hud-city-name,
  .hud-resources-text {
    font-size: 11px;
  }

  .hud-city-icon {
    font-size: 12px;
    margin-left: 2px;
  }

  .hud-resource {
    padding: 4px 6px;
    gap: 3px;
    min-height: 24px;
  }

  .hud-resource-icon {
    width: 13px;
    height: 13px;
  }

  .hud-resource-value {
    font-size: 11px;
    min-width: 22px;
    font-weight: 500;
  }

  .hud-resource-rate {
    font-size: 9px;
    margin-left: 1px;
  }

  .hud-separator {
    margin: 0 2px;
    height: 16px;
  }

  .hud-employment {
    padding: 4px 6px;
    flex-shrink: 0;
    min-height: 24px;
  }

  .hud-employment-text {
    font-size: 11px;
    min-width: 30px;
  }

  .hud-online-users {
    right: calc(4px + env(safe-area-inset-right));
    padding: 4px 6px;
    min-height: 24px;
    min-width: 24px;
    justify-content: center;
  }

  .hud-online-text {
    font-size: 10px;
    font-weight: 500;
  }
}

/* Very small mobile (iPhone SE, iPhone 12/13 mini, etc) */
@media (max-width: 400px) {
  .top-hud {
    padding-top: calc(2px + env(safe-area-inset-top));
    padding-bottom: 2px;
  }

  .top-hud-left {
    left: calc(4px + env(safe-area-inset-left));
    gap: 1px;
  }

  .top-hud-inner {
    gap: 1px;
    padding-left: 34px;
    padding-right: calc(56px + env(safe-area-inset-right));
  }

  .hud-menu-btn {
    padding: 3px 4px;
    min-height: 20px;
  }

  .hud-menu-btn ion-icon {
    font-size: 14px;
  }

  .hud-action-btn {
    padding: 3px 4px;
    min-height: 20px;
  }

  .hud-action-btn ion-icon {
    font-size: 14px;
  }

  .hud-city-chip,
  .hud-resources-chip {
    padding: 3px 4px;
    min-height: 20px;
  }

  .hud-city-name,
  .hud-resources-text {
    font-size: 9px;
  }

  .hud-city-icon {
    font-size: 10px;
    margin-left: 1px;
  }

  .hud-resource {
    padding: 3px 4px;
    gap: 2px;
    min-height: 20px;
  }

  .hud-resource-icon {
    width: 11px;
    height: 11px;
  }

  .hud-resource-value {
    font-size: 10px;
    min-width: 18px;
    font-weight: 600;
  }

  .hud-resource-rate {
    font-size: 8px;
    margin-left: 0;
  }

  .hud-separator {
    margin: 0 1px;
    height: 14px;
    opacity: 0.6;
  }

  .hud-employment {
    padding: 3px 4px;
    min-height: 20px;
  }

  .hud-employment-text {
    font-size: 9px;
    min-width: 24px;
  }

  .hud-online-users {
    right: calc(3px + env(safe-area-inset-right));
    padding: 3px 4px;
    min-height: 20px;
    min-width: 20px;
  }

  .hud-online-text {
    font-size: 9px;
    font-weight: 600;
  }
}

/* Desktop/large screens */
@media (min-width: 900px) {
  .top-hud {
    padding-top: calc(4px + env(safe-area-inset-top));
    padding-bottom: 4px;
  }

  .top-hud-left {
    left: calc(16px + env(safe-area-inset-left));
  }

  .hud-resource {
    padding: 4px 10px;
    gap: 5px;
  }

  .hud-resource-icon {
    width: 20px;
    height: 20px;
  }

  .hud-resource-value {
    font-size: 14px;
    min-width: 36px;
  }

  .hud-separator {
    height: 20px;
  }
}

/* Keep action badges rounded */
.hud-action-badge {
  border-radius: 999px !important;
}

/* XP Progress Bar - fills along the bottom border */
.hud-xp-bar {
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: #2d5a3d;
  transition: width 0.5s ease-out;
  pointer-events: none;
  z-index: 1;
}
.home-map-content {
  /* Make the whole page behind the map dark so no white edges show */
  --background: #0b1222;
}

.map-wrap {
  width: 100%;

  /* Home is meant to be a single-screen map (no scrolling). */
  height: 100%;
  min-height: 0;

  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;

  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  overscroll-behavior: none;

  background: #0b1222;
}

.map {
  position: relative;
  width: 100%;
  height: 100%;

  border-radius: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

.quick-pop {
  position: fixed;
  /* Must be above IsoMap's title/tooltips layer (.iso-tooltips is z-index: 40000). */
  z-index: 45000;

  min-width: 180px;
  max-width: min(320px, 78vw);
  max-height: calc(100vh - 20px);

  padding: 10px;
  border-radius: 0;

  /* If the menu gets tall on small phones, scroll instead of clipping off-screen. */
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  /* Prevent accidental pinch-zoom while interacting with the menu */
  touch-action: pan-y;

  /* retro dark */
  background: #1a1f2e;
  color: #e2e8f0;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    0 18px 48px rgba(0, 0, 0, 0.38),
    2px 2px 0 rgba(0, 0, 0, 0.5);
  border: 3px solid #3a4556;
}

.quick-pop.right {
  transform: translate(0, -50%);
}

.quick-pop.left {
  transform: translate(-100%, -50%);
}

.quick-title {
  font-weight: 500;
  margin-bottom: 10px;

  display: flex;
  align-items: center;
  gap: 10px;

  cursor: grab;
  user-select: none;
}

.quick-title:active {
  cursor: grabbing;
}

.quick-grip {
  width: 12px;
  height: 18px;
  border-radius: 999px;
  opacity: 0.75;
  background:
    radial-gradient(circle at 3px 3px, rgba(255, 255, 255, 0.55) 1.2px, transparent 1.3px) 0 0/6px 6px,
    radial-gradient(circle at 3px 3px, rgba(255, 255, 255, 0.55) 1.2px, transparent 1.3px) 3px 3px/6px 6px;
}

.quick-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;

  padding: 2px 6px;
  border-radius: 0;
  background: #0f1420;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.quick-stepper ion-button {
  --padding-start: 0px;
  --padding-end: 0px;
  --padding-top: 0px;
  --padding-bottom: 0px;
  min-height: 20px;
  height: 20px;
}

.quick-stepper ion-icon {
  font-size: 18px;
}

.quick-free {
  position: relative;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.quick-free img {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.quick-free-num {
  position: absolute;
  bottom: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  background: rgba(15, 23, 42, 0.92);
  color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.quick-pop ion-button {
  width: auto;
}

.quick-actions-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.quick-actions-grid[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

/* For 3 actions, keep the last one centered on its own row (Banished-ish layout). */
.quick-actions-grid[data-count="3"] > :nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(180px, 100%);
}

.quick-act {
  width: 100%;

  --border-radius: 0;
  --padding-start: 10px;
  --padding-end: 10px;
  --padding-top: 8px;
  --padding-bottom: 8px;
  min-height: 44px;

  --background: #48bb78;
  --background-hover: #38a169;
  --background-activated: #2f855a;
  --color: #ffffff;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  border: 2px solid #2f855a;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.quick-act-primary {
  min-width: 120px;
  --background: rgba(59, 130, 246, 0.92);
  --background-hover: rgba(59, 130, 246, 0.98);
  --background-activated: rgba(59, 130, 246, 1);
  --border-color: rgba(255, 255, 255, 0.14);
}

.quick-act-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
}

.quick-act-top {
  font-weight: 500;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.98);
}

.quick-act-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  opacity: 1;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.quick-pop .hint-chip,
.quick-pop .cost-chip {
  --background: rgba(255, 255, 255, 0.10);
  --color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.quick-act-req {
  opacity: 0.85;
  font-weight: 500;
  margin-left: 4px;
}

/* Treasury info panel */
.treasury-info {
  position: relative;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.treasury-bar {
  position: relative;
  height: 24px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.treasury-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: width 0.3s ease;
}

.treasury-bar-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.treasury-bar-cap {
  opacity: 0.7;
  font-weight: 500;
}

.treasury-pool-hint {
  color: rgba(251, 191, 36, 0.95);
  font-weight: 500;
}

.treasury-divider {
  opacity: 0.4;
  margin: 0 6px;
}

.treasury-desc {
  font-size: 11px;
  opacity: 0.75;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-pop-help-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 2px solid #3a4556;
  background: #252a3a;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 700;
  z-index: 10;
}

.quick-pop-help-btn:hover {
  background: #3a4050;
  color: #fff;
}

.treasury-help-popout {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.treasury-help-popout-inner {
  width: min(300px, 85vw);
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(8, 12, 20, 0.98) 0%,
    rgba(15, 20, 30, 0.98) 100%
  );
  border: 3px solid #3a4556;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.08),
    inset -2px -2px 0 rgba(0, 0, 0, 0.4),
    0 20px 60px rgba(0, 0, 0, 0.7);
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
}

.treasury-help-popout-inner p {
  margin: 0 0 12px 0;
}

.treasury-help-popout-inner strong {
  color: #fbbf24;
  font-weight: 700;
}

.treasury-help-close {
  margin-top: 14px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(180deg, #48bb78 0%, #38a169 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.treasury-help-close:hover {
  background: linear-gradient(180deg, #68d391 0%, #48bb78 100%);
}

.treasury-help-close:active {
  transform: translateY(1px);
}

/* Edit mode rotate button */
.rotate-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  
  /* Northgard style */
  background: linear-gradient(
    135deg,
    rgba(8, 12, 20, 0.92) 0%,
    rgba(10, 15, 25, 0.88) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(8px);
  
  color: rgba(255, 255, 255, 0.95);
  transition: all 0.15s ease;
}

.rotate-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(15, 20, 30, 0.95) 0%,
    rgba(20, 25, 35, 0.92) 100%
  );
  box-shadow: 
    0 10px 32px rgba(0, 0, 0, 0.6),
    0 0 0 3px rgba(59, 130, 246, 0.25);
}

.rotate-btn:active {
  transform: scale(0.95);
}

.rotate-btn ion-icon {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.map-head {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  z-index: 50;
}

.map-head ion-chip {
  --background: var(--cc-surface);
  --color: var(--cc-text);
  border: 1px solid var(--cc-border);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

/* Make coins look like the in-world bubbles (darker, punchier). */
.map-head ion-chip.map-coin-chip {
  --background: rgba(15, 23, 42, 0.82);
  --color: rgba(226, 232, 240, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.map-head ion-chip.map-coin-chip img {
  image-rendering: pixelated;
}

.town-chip {
  --background: var(--cc-surface);
  --color: var(--cc-text);
  border: 1px solid var(--cc-border);
}

.city-chip {
  cursor: pointer;
}

ion-popover.city-popover::part(content) {
  /* We only ever show up to 3 cities + 2 slots, so we don't need scrolling. */
  overflow: hidden;
  /* Give the menu a bit more room so content doesn't look clipped. */
  width: min(360px, 96vw);
  /* Visual gap below the trigger chip */
  margin-top: 6px;

  /* Retro dark matching quick-pop */
  background: #1a1f2e;
  color: #e2e8f0;
  border: 3px solid #3a4556;
  border-radius: 0;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    0 18px 48px rgba(0, 0, 0, 0.38),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

ion-popover.city-rename-popover::part(content) {
  width: min(340px, 92vw);
  overflow: hidden;
  margin-top: 6px;

  /* Retro dark matching other menus */
  background: #1a1f2e;
  color: #e2e8f0;
  border: 3px solid #3a4556;
  border-radius: 0;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    0 18px 48px rgba(0, 0, 0, 0.38),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

.city-rename-pop {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.city-rename-title {
  font-weight: 600;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  padding: 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.city-rename-input {
  --background: #0f1420;
  --color: #e2e8f0;
  --placeholder-color: rgba(255, 255, 255, 0.5);
  --padding-start: 10px;
  --padding-end: 10px;
  border-radius: 0;
  border: 2px solid #3a4556;
  font-weight: 500;
}

.city-rename-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.city-rename-actions ion-button {
  --border-radius: 0;
  --box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  font-weight: 600;
}

.city-pop {
  padding: 10px;
  min-width: 300px;
  max-width: min(360px, 96vw);
  overflow: hidden;
}

.city-pop-title {
  font-weight: 600;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
  padding: 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.city-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 0;
  border: 2px solid #3a4556;
  background: #0f1420;
  color: #e2e8f0;
  text-align: left;
  margin-bottom: 6px;
  transition: all 0.15s ease;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.city-row:hover {
  background: #1a2332;
  border-color: #48bb78;
  box-shadow: 
    inset 1px 1px 0 rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(72, 187, 120, 0.3);
}

.city-row.active {
  border-color: #48bb78;
  background: rgba(72, 187, 120, 0.12);
  box-shadow: 
    inset 1px 1px 0 rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(72, 187, 120, 0.25);
}

.city-row-main {
  min-width: 0;
  flex: 1 1 auto;
}

.city-row-name {
  font-weight: 600;
  font-size: 13px;
  color: #e2e8f0;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.city-row-sub {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.city-row-dot {
  opacity: 0.5;
}

.city-row-pop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.city-row-pop img {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

.city-row-rename {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 0;
  border: 1px solid #3a4556;
  background: rgba(26, 31, 46, 0.4);
  color: #e2e8f0;
  transition: all 0.15s ease;
}

.city-row-rename:hover {
  background: rgba(26, 31, 46, 0.7);
  border-color: #48bb78;
}

.city-row-badge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 0;
  background: #48bb78;
  border: 1px solid #2f855a;
  color: #ffffff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.city-slot {
  margin-top: 6px;
  margin-bottom: 8px;
}

.city-slot-locked {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 0;
  background: rgba(15, 20, 32, 0.5);
  border: 2px solid #3a4556;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.city-slot-create {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 0;
  background: #0f1420;
  border: 2px solid #3a4556;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.city-slot-create:hover {
  background: #1a2332;
  border-color: #48bb78;
  box-shadow: 
    inset 1px 1px 0 rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(72, 187, 120, 0.3);
}

.city-slot-create:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.city-slot-cost {
  margin-left: auto;
  font-weight: 500;
  opacity: 0.8;
  padding: 10px 10px;
  border-radius: 12px;
  background: var(--cc-inset-2);
  border: 1px solid var(--cc-border);
  color: var(--cc-text);
  font-weight: 500;
}

.city-slot-create:hover {
  background: rgba(255, 255, 255, 0.10);
}

.city-slot-create:disabled {
  opacity: 0.55;
}

.city-slot-cost {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.8;
  font-weight: 500;
}

.city-create-section {
  margin-top: 14px;
  border-radius: 0;
  padding: 12px;
  background: #0f1420;
  border: 2px solid #3a4556;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.city-create-sectionTitle {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  color: #e2e8f0;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}

.city-themeGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 520px) {
  .city-themeGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.city-themeCard {
  text-align: left;
  width: 100%;
  padding: 10px 10px;
  border-radius: 0;
  border: 2px solid #3a4556;
  background: #0f1420;
  color: #e2e8f0;
  transition: all 0.15s ease;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.city-themeCard:hover {
  background: #1a2332;
  border-color: #48bb78;
}

.city-themeCard.selected {
  border-color: #48bb78;
  background: rgba(72, 187, 120, 0.12);
  box-shadow: 
    inset 1px 1px 0 rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(72, 187, 120, 0.25);
}

.city-themeTitleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.city-themeTitle {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.city-themeBadge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--cc-border-strong);
  background: rgba(2, 6, 23, 0.55);
  color: var(--cc-text-strong);
  opacity: 0.9;
}

.city-themeCard.disabled {
  opacity: 0.55;
}

.city-themeCard.disabled .city-themePreview {
  filter: grayscale(0.7) saturate(0.6);
}

.city-themePreview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.city-themePreview img {
  image-rendering: pixelated;
}

.city-create-input {
  --background: rgba(255, 255, 255, 0.06);
  --color: var(--cc-text);
  --placeholder-color: rgba(148, 163, 184, 0.70);
  border-radius: 12px;
  border: 1px solid var(--cc-border);
  margin-top: 12px;
}

.city-create-input ion-label {
  color: var(--cc-text-muted);
}

ion-modal.city-create-modal {
  --background: transparent;
}

ion-modal.city-create-modal::part(backdrop) {
  background: rgba(0, 0, 0, 0.72);
}

ion-modal.city-create-modal::part(content) {
  /* Retro dark theme */
  background: #1a1f2e;
  color: #e2e8f0;
  border-radius: 0;
  border: 3px solid #3a4556;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    0 18px 48px rgba(0, 0, 0, 0.38),
    2px 2px 0 rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

ion-modal.city-create-modal ion-content {
  --background: transparent;
  color: var(--cc-text);
}

/* Fix any Ionic defaults that render as black inside the modal. */
ion-modal.city-create-modal {
  color: var(--cc-text);
  --color: var(--cc-text);
  --ion-text-color: var(--cc-text);
}

/* IonText has its own styling and can default to black; force it. */
ion-modal.city-create-modal ion-text {
  --color: var(--cc-text);
  color: var(--cc-text) !important;
}

ion-modal.city-create-modal ion-text * {
  color: var(--cc-text) !important;
}

ion-modal.city-create-modal h2 {
  color: var(--cc-text-strong) !important;
}

ion-modal.city-create-modal p {
  color: var(--cc-text) !important;
}

ion-modal.city-create-modal span,
ion-modal.city-create-modal div {
  color: inherit;
}

/* Buttons inside Create City */
ion-modal.city-create-modal ion-button {
  --color: var(--cc-text-strong);
}

ion-modal.city-create-modal ion-button[fill="clear"] {
  --color: var(--cc-text-strong);
}

/* IonItem/IonInput - retro styled like auth-input */
ion-modal.city-create-modal ion-item.city-create-input {
  --background: #0f1420;
  --color: #ffffff;
  --padding-start: 16px;
  --padding-end: 16px;
  --padding-top: 12px;
  --padding-bottom: 12px;
  --inner-padding-end: 16px;
  --highlight-color-focused: #48bb78;
  --border-width: 0 !important;
  --border-color: transparent !important;
  --inner-border-width: 0 !important;
  --full-highlight-height: 0 !important;
  border-radius: 0;
  border: 2px solid #3a4556 !important;
  overflow: hidden;
  transition: all 0.2s ease;
}

ion-modal.city-create-modal ion-item.city-create-input::part(native) {
  border: none !important;
}

ion-modal.city-create-modal ion-item.city-create-input:focus-within {
  border-color: #48bb78 !important;
  box-shadow: 0 0 0 2px rgba(72, 187, 120, 0.3);
  background: #0f1420;
}

ion-modal.city-create-modal ion-item.city-create-input ion-label {
  color: #e2e8f0 !important;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
  transform: translateY(0) !important;
  margin-bottom: 4px !important;
}

ion-modal.city-create-modal ion-item.city-create-input ion-input {
  --color: #ffffff;
  --placeholder-color: #64748b;
  --border-width: 0;
  --border-color: transparent;
  font-size: 15px;
}

ion-modal.city-create-modal ion-item.city-create-input ion-input::part(native) {
  color: #ffffff;
  border: none !important;
  outline: none !important;
}

.city-themeTitle {
  color: #e2e8f0;
}

.city-themeSub {
  color: #94a3b8;
  opacity: 1;
}

.city-create-input {
  --background: #0f1420;
  --color: #ffffff;
  border-radius: 0;
  border: 2px solid #3a4556;
  margin-top: 12px;
}

ion-modal.city-create-modal ion-button {
  --border-radius: 0;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

ion-modal.city-create-modal ion-button:not([fill="clear"]) {
  --background: #48bb78;
  --background-hover: #38a169;
  --background-activated: #2f855a;
  --color: #ffffff;
  --box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 2px 2px 0 rgba(0, 0, 0, 0.5);
  border: 2px solid #2f855a;
}

ion-modal.city-create-modal ion-button[fill="clear"] {
  --color: #e2e8f0;
  --background: transparent;
}

.city-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.building-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 10px;
  pointer-events: none;
}

.building-panel-card {
  margin: 0;
  pointer-events: auto;
  --background: rgba(255, 255, 255, 0.92);
}

.panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-flow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.panel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hint-chip {
  --background: rgba(15, 23, 42, 0.06);
}

.cost-chip {
  --background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 520px) {
  .map-head {
    left: 8px;
    top: 8px;
  }
}

/* Context menu styling - Retro theme */
.context-menu-overlay {
  pointer-events: auto;
  background: transparent;
}

.context-menu-dropdown {
  background: #1a1f2e;
  border: 3px solid #3a4556;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    4px 4px 0 rgba(0, 0, 0, 0.5),
    0 8px 32px rgba(0, 0, 0, 0.6);
  border-radius: 0;
  padding: 6px;
  min-width: 200px;
  pointer-events: auto;
}

.context-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 0;
  border: 2px solid #3a4556;
  background: #0f1420;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
  margin-bottom: 2px;
}

.context-menu-item img,
.context-menu-item ion-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.8));
}

.context-menu-item ion-icon {
  font-size: 18px;
}

.context-menu-item:last-child {
  margin-bottom: 0;
}

.context-menu-item:hover {
  background: #48bb78;
  border-color: #48bb78;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 1px 1px 0 rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

/* Sell confirmation dialog */
.sell-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

.sell-confirm-dialog {
  background: #1a1f2e;
  border: 3px solid #3a4556;
  box-shadow: 
    inset 2px 2px 0 rgba(255, 255, 255, 0.15),
    inset -2px -2px 0 rgba(0, 0, 0, 0.6),
    4px 4px 0 rgba(0, 0, 0, 0.5),
    0 8px 32px rgba(0, 0, 0, 0.6);
  border-radius: 0;
  padding: 20px;
  max-width: 340px;
  width: 90%;
  color: #e2e8f0;
}

.sell-confirm-dialog h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  letter-spacing: 0.05em;
}

.sell-confirm-warning {
  background: rgba(220, 38, 38, 0.15);
  border: 2px solid #3a4556;
  border-radius: 0;
  padding: 12px;
  margin-bottom: 12px;
}

.sell-confirm-warning p {
  margin: 0 0 8px 0;
  font-size: 13px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}

.sell-confirm-warning ul {
  margin: 8px 0;
  padding-left: 20px;
  font-size: 12px;
  opacity: 0.9;
}

.sell-confirm-warning li {
  margin: 4px 0;
}

.sell-confirm-refund {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #48bb78;
  margin: 12px 0;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.sell-confirm-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.sell-confirm-cancel,
.sell-confirm-ok {
  flex: 1;
  padding: 10px 16px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
  letter-spacing: 0.05em;
}

.sell-confirm-cancel {
  background: #0f1420;
  border: 2px solid #3a4556;
  color: #e2e8f0;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.sell-confirm-cancel:hover {
  background: #3a4556;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.sell-confirm-ok {
  background: #dc2626;
  border: 2px solid #991b1b;
  color: #fff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.sell-confirm-ok:hover {
  background: #ef4444;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 2px 2px 0 rgba(0, 0, 0, 0.5);
}
/**
 * LauncherAuth styles - Login/Register screen
 */

.launcher-auth-wrapper {
  position: fixed;
  inset: 0;
  z-index: 60000;
  /* Retro 32-bit gradient background */
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(72, 187, 120, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(66, 153, 225, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0f1420 0%, #1a2035 50%, #0f172a 100%);
}

/* Left sidebar - same as launcher */
.launcher-auth-sidebar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 360px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  background: rgba(15, 20, 32, 0.85);
  border-right: 2px solid #3a4556;
  
}


.launcher-auth-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Auth form overlay - positioned in center area (right of sidebar) */
.launcher-auth-overlay {
  position: absolute;
  left: 360px;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.launcher-auth-card {
  width: 340px;
  max-width: 90%;
  background: rgba(15, 20, 32, 0.95);
  border: 2px solid #3a4556;
  box-shadow: 
    0 4px 0 #1a1f2e,
    0 8px 24px rgba(0, 0, 0, 0.5);
  animation: launcher-auth-pop 200ms ease-out;
  pointer-events: auto;
}

@keyframes launcher-auth-pop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Title bar */
.launcher-auth-titlebar {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid #3a4556;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

/* Form */
.launcher-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.launcher-auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.launcher-auth-field label {
  font-size: 11px;
  font-weight: 600;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.launcher-auth-field input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #3a4556;
  outline: none;
  transition: border-color 0.1s;
}

.launcher-auth-field input::placeholder {
  color: #4a5568;
}

.launcher-auth-field input:focus {
  border-color: #48bb78;
}

.launcher-auth-field input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Error message */
.launcher-auth-error {
  padding: 10px 12px;
  font-size: 12px;
  color: #fc8181;
  background: rgba(245, 101, 101, 0.15);
  border: 2px solid rgba(245, 101, 101, 0.4);
}

/* Submit button */
.launcher-auth-submit {
  width: 100%;
  padding: 12px 16px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #1a202c;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #48bb78;
  border: 2px solid #2f855a;
  box-shadow: 0 3px 0 #276749;
  cursor: pointer;
  transition: all 0.1s ease;
}

.launcher-auth-submit:hover:not(:disabled) {
  background: #68d391;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #276749;
}

.launcher-auth-submit:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #276749;
}

.launcher-auth-submit:disabled {
  background: #4a5568;
  border-color: #3a4556;
  box-shadow: 0 3px 0 #2d3748;
  color: #718096;
  cursor: not-allowed;
}

/* Button loading spinner */
.launcher-auth-btn-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #1a202c;
  border-radius: 50%;
  animation: launcher-auth-spin 0.6s linear infinite;
}

/* Switch mode link */
.launcher-auth-switch {
  padding: 12px 16px;
  border-top: 2px solid #3a4556;
  text-align: center;
}

.launcher-auth-switch button {
  width: 100%;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid #3a4556;
  cursor: pointer;
  transition: all 0.1s ease;
}

.launcher-auth-switch button span {
  color: #48bb78;
  font-weight: 700;
}

.launcher-auth-switch button:hover {
  background: rgba(72, 187, 120, 0.1);
  border-color: #48bb78;
}

/* reCAPTCHA notice */
.launcher-auth-recaptcha {
  padding: 8px 16px 12px;
  font-size: 10px;
  color: #4a5568;
  text-align: center;
}

/* Show reCAPTCHA badge */
.grecaptcha-badge {
  visibility: visible !important;
}

/* Loading state */
.launcher-auth-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px;
  color: #a0aec0;
  font-size: 14px;
}

.launcher-auth-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #3a4556;
  border-top-color: #48bb78;
  border-radius: 50%;
  animation: launcher-auth-spin 1s linear infinite;
}

@keyframes launcher-auth-spin {
  to { transform: rotate(360deg); }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .launcher-auth-overlay {
    left: 0;
    padding: 16px;
  }
  
  .launcher-auth-card {
    width: 100%;
    max-width: 360px;
  }
}
