/* An original handheld RPG sea: tile water, inked panels, generous touch controls. */
:root { --display: "Jost", "Avenir Next", sans-serif; --type: "Jost", "Avenir Next", sans-serif; --ink: #24394c; --soft: #455966; --cream: #fffbe5; --line: #24394c; }
.at-sea { background: #7fbea4; padding: 12px; }
.at-sea .frame { max-width: 1120px; background: #fffbe5; border: 4px solid #24394c; outline: none; padding: 16px 20px 20px; box-shadow: 6px 6px 0 #24394c; }
.at-sea .masthead { width: 100%; }
.at-sea .masthead .tiny { font-size: 12px; letter-spacing: .02em; text-transform: none; }
.at-sea .titlecard { margin-top: 10px; }
.at-sea .titlecard .num { display: none; }
.at-sea .titlecard h1 { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.at-sea .subtitle { font-size: 15px; margin-top: 4px; }
.at-sea .body { max-width: none; margin-top: 14px; }
.at-sea .sea-tools { justify-content: flex-start; gap: 7px; margin-bottom: 10px; }
.at-sea .sea-tools .pill, .sea-dialog .pill, .sea-dialog .ticket { border-radius: 0; border: 2px solid #24394c; box-shadow: 2px 2px 0 #24394c; letter-spacing: 0; text-transform: none; font-size: 15px; font-weight: 600; }
.at-sea .sea-tools .pill { background: #fdf9e0; font-size: 14px; padding: 8px 12px; }
.at-sea .seaview { height: min(68svh, 650px); border: 4px solid #24394c; border-radius: 0; background: #6bb8d6; }
.at-sea .world { image-rendering: pixelated; background: #70bdd9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' shape-rendering='crispEdges'%3E%3Cpath d='M8 12h8v-4h8v4h8M36 44h8v-4h8v4h8' fill='none' stroke='%23afe4ed' stroke-width='3'/%3E%3Cpath d='M0 32h64M32 0v64' stroke='%2364b2d1' stroke-width='1'/%3E%3C/svg%3E"); }
.at-sea .hud.tl { top: 10px; left: 10px; border: 2px solid #24394c; background: #fffbe5; padding: 8px 12px; box-shadow: 3px 3px 0 #24394c; max-width: 210px; border-radius: 0; }
.at-sea .hud.tl .tiny { display: none; }
.at-sea .hud.tl b { font-size: 15px; text-transform: none; letter-spacing: 0; }
.at-sea .hud.tl i { font-style: normal; font-size: 13px; }
.at-sea .hud.tl .pill { font-size: 12px; min-height: 36px; border-radius: 0; }
.at-sea .harborname { border: 2px solid #24394c; border-radius: 0; font-size: 12px; letter-spacing: 0; text-transform: none; background: #fffbe5; }
.at-sea .sea-place { width: 144px; z-index: 100; }
.at-sea .sea-place b { border: 2px solid #24394c; border-radius: 0; font-size: 12px; padding: 3px 6px; }
.at-sea .sea-place > span { width: 100px; height: 80px; filter: none; }
.at-sea .sea-place svg, .at-sea .sea-shell svg { shape-rendering: crispEdges; }
.at-sea .holiday-island { width: 210px; border: 8px solid #ebd390; border-radius: 12px; background: #84b776; box-shadow: 0 0 0 4px #3a6c66, 0 0 0 12px #9cdae5; }
.at-sea .holiday-island > span { width: 160px; height: 110px; }
.at-sea .seaboat .vessel { filter: drop-shadow(3px 4px 0 #357a9377); image-rendering: pixelated; shape-rendering: crispEdges; }
.at-sea .youtag { border: 2px solid #24394c; border-radius: 0; background: #fffbe5; font-size: 11px; padding: 2px 6px; text-transform: none; letter-spacing: 0; }
.at-sea .sea-shell { background: #ffffff22; border-radius: 0; box-shadow: none; }
.at-sea .dpad { display: grid; position: absolute; right: 12px; bottom: 14px; z-index: 9000; grid-template: 'a u b' 48px 'l d r' 48px / 48px 48px 48px; gap: 3px; }
.at-sea .dpad button { background: #fffbe5ee; border: 3px solid #24394c; border-radius: 4px; font-size: 25px; box-shadow: 2px 2px 0 #24394c; touch-action: none; }
.at-sea .dpad [data-dir=up] { grid-area: u; } .at-sea .dpad [data-dir=left] { grid-area: l; } .at-sea .dpad [data-dir=down] { grid-area: d; } .at-sea .dpad [data-dir=right] { grid-area: r; }
.at-sea .hud.br { display: none; }
.at-sea .narrator { border: 3px solid #24394c; box-shadow: inset 0 0 0 3px #fffbe5, inset 0 0 0 5px #8eaca8; background: #fffbe5; width: 100%; max-width: none; text-align: left; padding: 16px 20px; font-size: 16px; margin-top: 14px; }
.sea-dialog { border: 4px solid #24394c; border-radius: 4px; background: #fffbe5; color: #24394c; box-shadow: 6px 6px 0 #24394c; }
.sea-dialog h2 { font-weight: 700; font-size: 26px; }
.sea-dialog::backdrop { backdrop-filter: none; background: #20374d88; }
.sea-dialog .ticket.big { background: #315c73; color: #fffbe5; }
.sea-dialog .dialog-close { border: 0; }
.at-sea .boatcard { border: 4px solid #24394c; outline: none; background: #fffbe5; box-shadow: 4px 4px 0 #24394c; }
@media (max-width: 600px) {
 .at-sea { padding: 0; }
 .at-sea .frame { border: 0; padding: 10px 12px 20px; box-shadow: none; }
 .at-sea .titlecard h1 { font-size: 28px; }
 .at-sea .subtitle { font-size: 14px; }
 .at-sea .sea-tools { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; scrollbar-width: thin; }
 .at-sea .sea-tools > * { flex: none; white-space: nowrap; }
 .at-sea .seaview { margin: 0 -12px; width: calc(100% + 24px); height: 65svh; min-height: 420px; border-left: 0; border-right: 0; }
 .at-sea .hud.tl { max-width: 195px; padding: 6px 8px; }
 .at-sea .narrator { margin: 10px 0; }
 .at-sea .gazette { margin-top: 14px; }
}
.at-sea .youtag { color: #24394c; }
.at-sea .sea-tools { scrollbar-width: none; }
.at-sea .sea-tools::-webkit-scrollbar { display: none; }
.shell-hud { position: absolute; top: 10px; right: 10px; z-index: 9000; background: #fffbe5; border: 2px solid #24394c; box-shadow: 3px 3px 0 #24394c; padding: 8px; min-width: 60px; min-height: 44px; font-size: 17px; }
.at-sea .gazette { width: 100%; }
.sea-dialog .cairn-stack { height: 200px; }
.cairn-choice .cairn-stack { height: 110px; }
@media (max-width: 600px) { .sea-dialog .cairn-stack { height: 160px; } .sea-dialog p { font-size: 16px; } }
#account-button { font-size: 13px; padding: 6px 12px; letter-spacing: 0; text-transform: none; border-radius: 0; min-height: 36px; }
.live-status { position: absolute; left: 10px; bottom: 10px; z-index: 9100; background: #fffbe5ee; border: 2px solid #24394c; padding: 5px 8px; font-size: 12px; max-width: calc(100% - 185px); pointer-events: none; }
.sailor-tag { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); background: #fffbe5; color: #24394c; border: 1px solid #24394c; padding: 2px 5px; font-size: 11px; white-space: nowrap; }
.seaboat.online .sailor-tag::before { content: '● '; color: #277752; }
.saved-boats { display: grid; gap: 10px; margin: 15px 0; }
.saved-boat { display: grid; grid-template-columns: 75px 1fr; gap: 3px 12px; padding: 12px; text-align: left; border: 2px solid #24394c; background: #edf1dc; }
.saved-boat span { grid-row: span 3; align-self: center; }
.saved-boat svg { width: 70px; height: 50px; }
.saved-boat em { font-size: 13px; font-style: normal; color: #315c73; }
#account-form { display: grid; gap: 12px; text-align: left; }
#account-form label { display: grid; gap: 5px; }
#account-form input { margin: 0; }
#cloud-status { margin: 12px 0 0; font-size: 13px; }
#cloud-status:empty { display: none; }
@media(max-width:600px){.at-sea .masthead { flex-direction: row; justify-content: space-between; gap: 8px; }.at-sea .masthead .tiny { font-size: 10px; }.at-sea .masthead .sealink { display: none; }#account-button { white-space: nowrap; max-width: 155px; overflow: hidden; text-overflow: ellipsis; }}
.sea-dialog a.ticket { display: inline-flex; align-items: center; justify-content: center; color: #24394c; text-decoration: none; margin: 8px 4px; padding: 10px 14px; }
