/* Shared parchment presentation for the whole game. */
body.pirate-theme{--ink:#49331f;--panel:#ead6ad;--gold:#805422;--paper:linear-gradient(105deg,#d6b77c24,#fff2ce55 42%,#b1864822),repeating-linear-gradient(0deg,#815a2605 0 1px,transparent 1px 4px),linear-gradient(#ead6ad,#e6cfa1);color:#49331f;background-color:#dbc393;background-image:radial-gradient(ellipse at 0 0,#81512444,transparent 45%),radial-gradient(ellipse at 100% 100%,#76502d33,transparent 45%),repeating-linear-gradient(90deg,#976d2d04 0 2px,transparent 2px 7px),linear-gradient(110deg,#dbc18e,#f0dfb9 48%,#dfc797);background-attachment:fixed}
body.pirate-theme a{color:#79431d}body.pirate-theme a:hover{color:#9b341d}body.pirate-theme h1,body.pirate-theme h2,body.pirate-theme h3{font-family:Georgia,serif;color:#4c321c!important}body.pirate-theme th,body.pirate-theme td{color:#49331f;background-color:#efe0bd;border-color:#98714455}body.pirate-theme th{background-color:#dfc699}body.pirate-theme th.c,body.pirate-theme td.c,body.pirate-theme .header{color:#51361e;background-image:none}body.pirate-theme table{border-spacing:2px}body.pirate-theme #page_body{padding:10px 20px}body.pirate-theme #resources{border-color:#87623e;box-shadow:0 3px 12px #63402222;background:var(--paper)}body.pirate-theme #resources th{background:#d8bb87}body.pirate-theme .population-resource-row td{background:#f4e7c5}
body.pirate-theme #sn_menu table{border:1px solid #89643c;background:var(--paper);box-shadow:2px 4px 12px #55392025;border-radius:4px}body.pirate-theme #sn_menu td{background:#e8d1a3;color:#4b321d;border-bottom:1px solid #8b65352b;padding:8px 10px}body.pirate-theme #sn_menu th{background:linear-gradient(#6d482d,#50351f);color:#f5dfae;letter-spacing:1.2px;border-color:#805a35}body.pirate-theme #sn_menu th a{color:#f5dfae}body.pirate-theme #sn_menu td:hover{background:#f3e2ba}body.pirate-theme #sn_menu a{font-weight:normal}body.pirate-theme .pirate-brand{color:#68421e;text-shadow:0 1px #fff3d7}
body.pirate-theme input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),body.pirate-theme select,body.pirate-theme textarea{color:#46301c!important;background:#fff2d4!important;border:1px solid #987448!important;border-radius:3px;box-shadow:inset 0 1px 3px #64432012;color-scheme:light;padding:6px}body.pirate-theme input:focus-visible,body.pirate-theme select:focus-visible,body.pirate-theme textarea:focus-visible{outline:2px solid #997039;outline-offset:2px}
body.pirate-theme input[type=submit],body.pirate-theme input[type=button],body.pirate-theme button:not(.island-cell):not(.sector-island){background:linear-gradient(#805937,#5d3b25)!important;color:#fff0c9!important;border:1px solid #58371f!important;border-radius:4px;box-shadow:0 2px 3px #633d1d25;cursor:pointer;text-shadow:none}body.pirate-theme button:disabled,body.pirate-theme input:disabled{opacity:.5;cursor:default}
body.pirate-theme .island-panel,body.pirate-theme .island-chart,body.pirate-theme .island-building-window,body.pirate-theme #sector-island-panel,body.pirate-theme .ocean-chart aside,body.pirate-theme .island-population,body.pirate-theme .catalog-editor,body.pirate-theme .pirate-hero{background:var(--paper)!important;border:1px solid #927044!important;color:#49331f!important;box-shadow:inset 0 0 28px #9e723526,0 6px 16px #56391d22;border-radius:5px}
body.pirate-theme .island-heading small,body.pirate-theme .island-heading p,body.pirate-theme .island-help,body.pirate-theme .ocean-chart header p,body.pirate-theme .ocean-chart header small,body.pirate-theme .ocean-chart aside>small,body.pirate-theme .island-catalog-item strong,body.pirate-theme .island-catalog-item small,body.pirate-theme .island-add-copy small,body.pirate-theme .island-price,body.pirate-theme .island-panel p,body.pirate-theme .island-building-window p,body.pirate-theme .island-instructions,body.pirate-theme .island-legend,body.pirate-theme .ocean-map-legend,body.pirate-theme .ocean-chart-help,body.pirate-theme .ocean-chart li small,body.pirate-theme .pirate-hero p,body.pirate-theme .pirate-hero small{color:#6a4d2c!important}
body.pirate-theme .island-tabs a{background:#e6cfa1;color:#694322;border:1px solid #9b794b;border-radius:3px;box-shadow:0 2px 3px #61401f11}body.pirate-theme .island-tabs a[aria-current=page]{background:#68472d;color:#f7e7c1}body.pirate-theme .island-chart-head,body.pirate-theme .ocean-chart-bar{background:linear-gradient(#e4c994,#d4b781);border-color:#98714477;color:#54381e}body.pirate-theme .ocean-chart a{color:#79431d!important}body.pirate-theme .ocean-sector-open{background:#ddc28d;color:#4e341d!important;border-color:#967040}body.pirate-theme .island-building-window{color-scheme:light}body.pirate-theme .island-building-window::backdrop{background:#291d15aa}body.pirate-theme #island-message,body.pirate-theme .population-feedback{color:#77521e}body.pirate-theme .island-work{color:#8b5b13}
body.pirate-theme .ok,body.pirate-theme .positive{color:#35612c}body.pirate-theme .error,body.pirate-theme .negative{color:#a12d25}body.pirate-theme .warning,body.pirate-theme .notice{color:#8b5915}body.pirate-theme .icon_alpha{background:#352b1ed9;color:#f3deac}body.pirate-theme #copyright,body.pirate-theme #copyright #supernova_ws{color:#755937}body.pirate-theme .pirate-catalog{color:#49331f}body.pirate-theme .pirate-catalog summary{color:#765020}
/* Keep cartographic labels legible over the sea and preserve interaction overlays. */
body.pirate-theme .sector-sea .sector-island{background:transparent!important;border:0!important;box-shadow:none!important;color:#f4e6bc!important}body.pirate-theme .sector-island-name,body.pirate-theme .sector-island-position{color:#fff0c5}body.pirate-theme .sector-island.owned .sector-island-name{color:#b6ed9e}body.pirate-theme .ocean-map-stage .ocean-sector-hit{background:transparent!important}body.pirate-theme .island-level{color:#f5e6b5}
body.pirate-theme .island-population{padding:28px;position:relative}.population-heading{display:flex;align-items:center;gap:22px;justify-content:space-between;border-bottom:2px solid #92704466;padding-bottom:18px;margin-bottom:20px}.population-eyebrow{font-size:10px;letter-spacing:3px;color:#805b31}.population-heading p{max-width:720px}.population-seal{display:grid;place-items:center;flex:0 0 64px;height:64px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#ad4935,#722e25);color:#edc798;border:3px double #ce8b65;box-shadow:2px 4px 5px #57321733;font-size:32px;transform:rotate(-10deg)}body.pirate-theme .population-stats>span{color:#765331;background:#fff3d447;border-color:#98714444;border-radius:3px}.population-stats strong{color:#49331f!important;font:25px Georgia,serif!important}.population-report{margin:20px 0;padding:8px 15px;border-left:3px solid #927044;background:#b28b4230}.island-population fieldset{min-width:0;border:1px solid #98714466;border-radius:4px;padding:18px;margin:20px 0;background:#fff1c922}.island-population legend{font:19px Georgia,serif;padding:0 10px;color:#634222}.population-rules{margin-top:14px;font-size:12px}.population-rules summary{cursor:pointer}.population-jobs label{background:#fff3d444;border-color:#98714455!important;border-radius:3px}.population-jobs label>strong{font:16px Georgia,serif}.population-jobs label>small{display:block;color:#80603b;margin-top:5px}.population-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px;padding:20px 0 10px}.population-footnote{border-top:1px solid #98714444;padding-top:14px;color:#735534}.population-feedback{color:#654a24!important}
@media(max-width:700px){body.pirate-theme #page_body{padding:8px 4px}body.pirate-theme .island-population{padding:20px 15px}.population-seal{flex-basis:45px;height:45px;font-size:24px}.population-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.population-actions button{width:100%}.island-population fieldset{padding:12px}}

body.pirate-theme #sn_menu td a,body.pirate-theme #sn_menu td a span,body.pirate-theme #sn_menu td .link{color:#6c411e!important}
body.pirate-theme #sn_menu th a,body.pirate-theme #sn_menu th a span{color:#f5dfae!important}
body.pirate-theme .population-resource-row a,body.pirate-theme .population-resource-row strong{color:#65431e!important}
body.pirate-theme .pirate-brand,body.pirate-theme .pirate-brand span{color:#68421e!important}
/* Keep building details readable on the parchment background. */
body.pirate-theme .island-building-window small{color:#654522!important;letter-spacing:.5px}
body.pirate-theme .island-building-window h2,body.pirate-theme .island-building-window h3{color:#49301c!important}
body.pirate-theme .island-building-window .island-production-table th,body.pirate-theme .island-building-window .island-production-table td{color:#49301c!important;border-bottom:1px solid #87613e66!important;font-size:12px}
body.pirate-theme .island-building-window .island-production-table thead th{color:#583b21!important;font-weight:bold;background:#fff4d633!important}
body.pirate-theme .island-building-window .island-requirements .met,body.pirate-theme .island-building-window .island-unlock-card .met{color:#285623!important}
body.pirate-theme .island-building-window .island-requirements .missing,body.pirate-theme .island-building-window .island-unlock-card .missing,body.pirate-theme .island-building-window .island-build-unavailable{color:#922820!important}
