509 lines
27 KiB
CSS
509 lines
27 KiB
CSS
/* Labuh board: the harbour from prototype v14, with real ajuan. */
|
|
:root {
|
|
--ink: #172B33;
|
|
--ink-soft: #4A5B60;
|
|
--teal: #1F6F78;
|
|
--teal-deep: #174F56;
|
|
--buoy: #E8A33D;
|
|
/* Boat slots on the water: a boat's width and one slot row's height. */
|
|
--boat-w: 120px;
|
|
--slot-h: 176px;
|
|
--paper: #F6F2EA;
|
|
--sand: #E8D9BB;
|
|
--quay: #B98B5E;
|
|
--water-a: #9DCAC3;
|
|
--water-b: #B6D9D3;
|
|
--water-c: #CBE5E0;
|
|
--serif: 'Fraunces', Georgia, serif;
|
|
--sans: 'Atkinson Hyperlegible', system-ui, sans-serif;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
html, body { margin: 0; min-height: 100%; }
|
|
body { background: var(--water-b); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
|
|
a { color: var(--teal); }
|
|
a:hover { color: var(--teal-deep); }
|
|
button { font: inherit; color: inherit; }
|
|
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--buoy); outline-offset: 2px; }
|
|
|
|
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg) } 50% { transform: translateY(-6px) rotate(2deg) } }
|
|
@keyframes calm { 0%,100% { transform: translateY(0) rotate(-.6deg) } 50% { transform: translateY(-2px) rotate(.6deg) } }
|
|
@keyframes shadow { 0%,100% { transform: scaleX(1); opacity: 1 } 50% { transform: scaleX(.8); opacity: .55 } }
|
|
@keyframes flag { 0%,100% { transform: skewY(0) scaleX(1) } 50% { transform: skewY(-7deg) scaleX(.86) } }
|
|
@keyframes drift { from { transform: translateX(0) } to { transform: translateX(-100px) } }
|
|
@keyframes twinkle { 0%,100% { opacity: 0; transform: scaleX(.4) } 50% { opacity: .9; transform: scaleX(1) } }
|
|
@keyframes sway { 0%,100% { transform: rotate(-5deg) } 50% { transform: rotate(5deg) } }
|
|
@keyframes pulse { 0% { transform: scale(1); opacity: .85 } 70%,100% { transform: scale(2.4); opacity: 0 } }
|
|
@keyframes rise { from { transform: translateY(16px); opacity: 0 } to { transform: none; opacity: 1 } }
|
|
@keyframes blink { 0%,100% { opacity: .25 } 50% { opacity: 1 } }
|
|
@keyframes ripple { 0% { transform: scale(.2); opacity: .8 } 100% { transform: scale(1.8); opacity: 0 } }
|
|
@keyframes glide { 0% { transform: translate(-80px,0) } 50% { transform: translate(520px,-26px) } 100% { transform: translate(1120px,8px) } }
|
|
@keyframes flap { 0%,100% { transform: scaleY(1) } 50% { transform: scaleY(.45) } }
|
|
@keyframes cloud { from { transform: translateX(-420px) } to { transform: translateX(1180px) } }
|
|
@keyframes foam { 0%,100% { transform: translateX(0); opacity: .85 } 50% { transform: translateX(-6px); opacity: .35 } }
|
|
@keyframes beam { 0%,100% { opacity: .15 } 50% { opacity: .75 } }
|
|
@keyframes arrive { from { transform: translateX(-70px); opacity: 0 } to { transform: none; opacity: 1 } }
|
|
|
|
/* Layout: water on the left, the shore on the right. */
|
|
.harbour { position: relative; display: flex; min-height: 100vh; overflow: clip; background: linear-gradient(90deg, var(--water-a) 0%, var(--water-b) 48%, var(--water-c) 100%); }
|
|
.water { position: relative; flex: 1 1 auto; min-width: 0; padding: 22px 0 96px 36px; display: flex; flex-direction: column; gap: 22px; }
|
|
.sea { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
|
|
.sea .cloud { position: absolute; left: 0; width: 420px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(23,43,51,.07), transparent); animation: cloud linear infinite; }
|
|
.sea .wave { position: absolute; left: 0; animation: drift linear infinite; }
|
|
.sea .sparkle { position: absolute; width: 14px; height: 3px; border-radius: 999px; background: #fff; animation: twinkle 3.2s ease-in-out infinite; }
|
|
.sea .ripple { position: absolute; width: 36px; height: 14px; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; animation: ripple 4.5s ease-out infinite; }
|
|
.sea .gull { position: absolute; left: 0; animation: glide linear infinite; }
|
|
.sea .gull svg { animation: flap .7s ease-in-out infinite; transform-origin: 50% 60%; }
|
|
|
|
.brand { position: relative; display: flex; align-items: center; gap: 10px; }
|
|
.brand span { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -.5px; }
|
|
.brand-me { display: none; margin-left: auto; }
|
|
.toolbar { display: none; }
|
|
h1 { position: relative; margin: 0; font-family: var(--serif); font-weight: 600; font-size: 46px; line-height: 1.05; letter-spacing: -1px; }
|
|
.empty { position: relative; margin: 0; max-width: 520px; font-size: 17px; line-height: 1.5; }
|
|
.legend { position: relative; margin: -8px 0 0; max-width: 520px; font-size: 13px; line-height: 1.4; color: #1E4A51; opacity: .78; }
|
|
.stale { position: relative; margin: 0; align-self: flex-start; font-size: 14px; background: rgba(255,253,248,.85); border-radius: 999px; padding: 6px 14px; }
|
|
.scrim { display: none; }
|
|
|
|
main { position: relative; display: flex; flex-direction: column; }
|
|
.lane { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 34px 0 12px; }
|
|
.lane:first-child { padding-top: 8px; }
|
|
.lane.has-break { padding-bottom: 34px; }
|
|
.lane h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 24px; }
|
|
.quay { position: absolute; top: 10px; bottom: 12px; right: 22px; width: 46px; background: var(--quay); background-image: repeating-linear-gradient(180deg, transparent 0 20px, #9C7148 20px 23px); box-shadow: -6px 6px 0 rgba(23,43,51,.08); }
|
|
.pilings { position: absolute; top: 10px; bottom: 12px; right: 70px; width: 10px; background-image: radial-gradient(circle, #6E4E30 4px, transparent 4.6px); background-size: 10px 52px; background-position: 0 14px; }
|
|
.zones { display: grid; grid-template-columns: minmax(0,6fr) minmax(0,4fr) minmax(0,3fr); gap: 22px; height: calc(42px + 2 * var(--slot-h) + 6px); padding-right: 92px; transition: grid-template-columns 1.2s cubic-bezier(.42,0,.28,1); }
|
|
.zone { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
|
|
.zone .floats { position: absolute; top: -44px; bottom: -14px; left: -14px; width: 8px; background-image: radial-gradient(circle, #FFFDF8 3px, transparent 3.6px); background-size: 8px 22px; opacity: .9; }
|
|
.zone-label { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #1E4A51; background: rgba(255,253,248,.72); border-radius: 999px; padding: 5px 8px 5px 14px; }
|
|
.zone-label .n { min-width: 22px; height: 22px; border-radius: 999px; background: rgba(23,43,51,.08); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
|
|
.zone-label .n.hot { background: var(--buoy); }
|
|
/* Two rows of boat slots per lane; board.js sets the slot columns (they overlap when a column is
|
|
narrow) and the zone widths, which transition. */
|
|
.boats { display: grid; grid-template-columns: var(--boat-w); grid-template-rows: repeat(2, var(--slot-h)); grid-auto-flow: row; gap: 6px 0; align-items: start; }
|
|
.zone.beres .boats { justify-content: end; }
|
|
.breakwater { position: absolute; left: 84px; right: 0; bottom: -14px; height: 28px; z-index: 2; border-radius: 14px 0 0 14px; background-color: #A89E8C; background-image: radial-gradient(ellipse 11px 9px at 50% 45%, #C9C0AE 92%, transparent 100%); background-size: 26px 28px; box-shadow: 0 6px 0 rgba(23,43,51,.08); }
|
|
.breakwater svg { position: absolute; left: -2px; top: -44px; overflow: visible; }
|
|
.breakwater .beam { animation: beam 2.4s ease-in-out infinite; }
|
|
|
|
/* Boats */
|
|
.boat { position: relative; background: transparent; border: 0; border-radius: 18px; padding: 4px 2px 8px; width: var(--boat-w); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
|
|
.boat.dim { opacity: .42; }
|
|
.boat.needs:not(.dim) .chip { box-shadow: 0 0 0 2px var(--buoy); }
|
|
.boat.done { opacity: .8; }
|
|
.boat .hull { display: block; position: relative; width: 96px; height: 72px; animation: float 4.6s ease-in-out infinite; transform-origin: 50% 85%; transition: filter .2s ease; }
|
|
.boat.done .hull { animation-name: calm; animation-duration: 6s; }
|
|
.boat .flag { animation: flag 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: left center; }
|
|
.boat .shade { display: block; width: 84px; height: 8px; margin-top: -10px; border-radius: 50%; background: rgba(23,43,51,.16); animation: shadow 4.6s ease-in-out infinite; }
|
|
.boat.picked .shade { background: rgba(255,255,255,.95); }
|
|
.boat:hover .hull { filter: brightness(1.06); animation-duration: 2.2s; }
|
|
.boat .chip { font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center; padding: 4px 10px; border-radius: 10px; background: rgba(255,253,248,.82); overflow-wrap: anywhere; }
|
|
.boat.picked .chip { background: var(--teal); color: #fff; box-shadow: none; }
|
|
.boat .boat-title { max-width: 100%; font-size: 11px; line-height: 1.25; text-align: center; color: #1E4A51; opacity: .9; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
|
|
.boat.picked .boat-title { color: var(--ink); opacity: 1; }
|
|
.boat .marks { display: flex; align-items: center; justify-content: center; gap: 8px; height: 16px; }
|
|
.boat .anchor { position: absolute; left: -10px; top: 40px; animation: sway 3s ease-in-out infinite; transform-origin: 18px 0; }
|
|
.boat .buoy { position: absolute; right: -6px; top: 46px; width: 18px; height: 22px; animation: float 3.4s ease-in-out infinite; }
|
|
.boat .buoy .ring { position: absolute; left: 1px; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--buoy); animation: pulse 1.8s ease-out infinite; }
|
|
.boat .buoy svg { position: relative; }
|
|
.boat .rope { position: absolute; right: -14px; top: 52px; }
|
|
.boat.new { animation: arrive .8s cubic-bezier(.2,.8,.2,1); }
|
|
.dots { display: flex; gap: 3px; }
|
|
.dots i { width: 5px; height: 5px; border-radius: 50%; background: #1F4B5E; animation: blink 1.2s ease-in-out infinite; }
|
|
.dots i:nth-child(2) { animation-delay: .2s; }
|
|
.dots i:nth-child(3) { animation-delay: .4s; }
|
|
|
|
/* Shore */
|
|
/* Desktop: the shore stays put at screen height and only its detail scrolls, so the harbour never moves with it. */
|
|
.shore { position: sticky; top: 0; align-self: flex-start; z-index: 1; flex: 0 0 420px; height: 100vh; height: 100dvh; background-color: var(--paper); background-image: radial-gradient(#E2D8C6 1.2px, transparent 1.4px); background-size: 24px 24px; }
|
|
.shore-inner { position: relative; height: 100%; display: flex; flex-direction: column; gap: 28px; padding: 22px 0 0 30px; }
|
|
.shore-inner aside { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 28px 32px 0; scrollbar-gutter: stable; }
|
|
.shore .edge { position: absolute; left: -44px; top: 0; width: 64px; height: 100%; pointer-events: none; }
|
|
.shore .edge .foam { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: foam 5s ease-in-out infinite; }
|
|
.shore .edge .sand { fill: var(--sand); }
|
|
.shore .edge .land { fill: var(--paper); }
|
|
.shore-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
|
.seg { display: flex; gap: 4px; padding: 4px; background: #EAE2D3; border-radius: 999px; }
|
|
.seg button { font-size: 15px; min-height: 40px; padding: 6px 18px; border: 0; border-radius: 999px; cursor: pointer; background: transparent; display: flex; align-items: center; gap: 8px; transition: background .15s ease; }
|
|
.seg button[aria-pressed="true"] { background: #fff; font-weight: 700; }
|
|
.seg #show-mine { padding-right: 10px; }
|
|
.count { min-width: 24px; height: 24px; border-radius: 999px; background: var(--buoy); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
|
|
.me { margin: 0; }
|
|
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; font-weight: 700; cursor: pointer; }
|
|
|
|
aside { min-width: 0; }
|
|
.shore-top { flex: none; padding-right: 28px; }
|
|
.card { background: #fff; border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 24px; box-shadow: 0 2px 0 #E2D8C6; animation: rise .28s ease-out; }
|
|
.card.still { animation: none; }
|
|
.card h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; }
|
|
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
|
|
.card-head > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
|
|
.title { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink-soft); }
|
|
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
|
|
.meta .who { display: flex; align-items: center; gap: 6px; }
|
|
.meta .initial { width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
|
|
.meta .env { background: #EEF1F0; border-radius: 999px; padding: 3px 10px; }
|
|
.meta .age { color: var(--ink-soft); }
|
|
.close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #F1EBDF; cursor: pointer; display: flex; align-items: center; justify-content: center; }
|
|
.tone { border-radius: 22px; padding: 20px; display: flex; align-items: center; gap: 16px; }
|
|
.tone .icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
|
|
.tone .icon .dots i { width: 7px; height: 7px; background: #fff; }
|
|
.tone .word { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.05; }
|
|
.tone .reason { font-size: 15px; line-height: 1.45; }
|
|
.tone > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
|
.findings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
|
|
.findings li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.45; }
|
|
.findings .k { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
|
|
.k.bad { background: #F8DDD5; } .k.ok { background: #DDEFE5; } .k.todo { background: #FBEBD0; }
|
|
.evidence { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 13px; }
|
|
.evidence a { font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(31,111,120,.35); overflow-wrap: anywhere; }
|
|
.section-title { margin: 0 0 -10px; font-size: 14px; font-weight: 700; color: #24525A; }
|
|
.note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
|
|
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 15px; }
|
|
.foot summary { cursor: pointer; font-weight: 700; color: #24525A; padding: 4px 0; }
|
|
.foot ol { list-style: none; margin: 0; padding: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
|
|
.foot li { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 10px; font-size: 14px; line-height: 1.45; }
|
|
.foot li span:first-child { color: var(--ink-soft); }
|
|
.foot .open { font-weight: 700; display: flex; align-items: center; gap: 6px; padding: 4px 0; white-space: nowrap; }
|
|
.stamp { margin: -8px 0 0; font-size: 12px; color: var(--ink-soft); }
|
|
/* Detail extras sit in .more; give them their own gap so .stamp's pull-up doesn't overlap evidence. */
|
|
.card .more { display: flex; flex-direction: column; gap: 16px; }
|
|
.card .more > .stamp { margin-top: 0; }
|
|
.todo-list { display: flex; flex-direction: column; gap: 12px; }
|
|
.todo-item { text-align: left; border: 0; cursor: pointer; background: #FBEBD0; border-radius: 18px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
|
|
.todo-item .age { flex: none; font-size: 13px; color: #5C4310; }
|
|
.todo-item .dot { position: relative; flex: none; width: 12px; height: 12px; }
|
|
.todo-item .dot i { position: absolute; inset: 0; border-radius: 50%; background: var(--buoy); }
|
|
.todo-item .dot i:first-child { animation: pulse 1.8s ease-out infinite; }
|
|
|
|
/* Narrow laptops: a slimmer shore, smaller boats. */
|
|
@media (max-width: 1199px) and (min-width: 900px) {
|
|
.shore { flex-basis: 360px; }
|
|
.shore-inner { padding-left: 24px; }
|
|
.shore-inner aside, .shore-top { padding-right: 20px; }
|
|
.water { padding-left: 24px; }
|
|
.zones { gap: 14px; }
|
|
:root { --boat-w: 104px; }
|
|
}
|
|
|
|
/* Phone: one harbour scene + bottom sheet from the shore. */
|
|
@media (max-width: 899px) {
|
|
.harbour {
|
|
display: block;
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
background: linear-gradient(180deg, var(--water-a) 0%, var(--water-b) 55%, var(--water-c) 100%);
|
|
overflow: visible;
|
|
}
|
|
.water {
|
|
padding: 14px 16px 0;
|
|
gap: 12px;
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.brand { padding-top: env(safe-area-inset-top); }
|
|
.brand span { font-size: 22px; }
|
|
.brand { width: 100%; }
|
|
.brand-me { display: block; margin: 0 0 0 auto; }
|
|
.brand-me .avatar { width: 40px; height: 40px; }
|
|
h1 { font-size: 28px; letter-spacing: -.5px; max-width: 18ch; }
|
|
.legend { display: none; }
|
|
.empty { font-size: 15px; }
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
position: relative;
|
|
}
|
|
.toolbar[hidden] { display: none !important; }
|
|
.dermaga {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
.chip-pill {
|
|
min-height: 32px;
|
|
padding: 4px 12px;
|
|
border: 0;
|
|
border-radius: 999px;
|
|
background: rgba(255, 253, 248, .55);
|
|
color: #1E4A51;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.chip-pill[aria-pressed="true"] {
|
|
background: var(--teal);
|
|
color: #fff;
|
|
}
|
|
.chip-pill.filter { background: rgba(246, 242, 234, .9); }
|
|
.chip-pill.filter[aria-pressed="true"] { background: #FBEBD0; color: #5C4310; }
|
|
.chip-pill .count {
|
|
min-width: 20px;
|
|
height: 20px;
|
|
font-size: 12px;
|
|
}
|
|
.chip-pill.filter[aria-pressed="true"] .count { background: var(--buoy); color: var(--ink); }
|
|
|
|
.zone .floats, .quay, .pilings, .breakwater, .lane h2, .zone-label { display: none; }
|
|
.lane, .lane.has-break, .lane.phone-harbour {
|
|
padding: 0;
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
/* Full-bleed harbour so the camera pan clips at the screen edge, not the padded water. */
|
|
main#lanes {
|
|
position: relative;
|
|
flex: 1 1 auto;
|
|
min-height: 280px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 0 -16px;
|
|
width: calc(100% + 32px);
|
|
overflow: hidden;
|
|
}
|
|
.phone-harbour { overflow: visible; }
|
|
/* Dual-scene camera pan: both harbours stay mounted so a reverse tap can retarget. */
|
|
main#lanes.lane-panning {
|
|
display: block;
|
|
}
|
|
main#lanes.lane-panning .lane-pan {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
flex: none;
|
|
will-change: transform;
|
|
}
|
|
.stale { margin: 0 16px 12px; align-self: center; }
|
|
|
|
/* One water plane: Dicek high, Siap mid, Beres near the sand. */
|
|
.harbour-scene {
|
|
position: relative;
|
|
flex: 1 1 auto;
|
|
min-height: 300px;
|
|
display: grid;
|
|
grid-template-rows: 1fr 1.15fr 1fr auto;
|
|
padding: 4px 16px 0;
|
|
}
|
|
.band {
|
|
position: relative;
|
|
z-index: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.band-cek { align-items: flex-end; padding-bottom: 4px; }
|
|
.band-siap { align-items: center; }
|
|
.band-beres { align-items: flex-start; padding-top: 6px; }
|
|
.band .boats {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
gap: 4px 14px;
|
|
width: 100%;
|
|
overflow: visible;
|
|
padding: 0 4px;
|
|
margin: 0;
|
|
}
|
|
.beach {
|
|
height: 28px;
|
|
margin: 8px -16px 0;
|
|
width: calc(100% + 32px);
|
|
border-radius: 40% 40% 0 0 / 100% 100% 0 0;
|
|
background: linear-gradient(180deg, #E4D4B0 0%, var(--sand) 55%, #DFCDA3 100%);
|
|
box-shadow: 0 -8px 18px rgba(23, 43, 51, .06);
|
|
}
|
|
.boat {
|
|
flex: 0 0 auto;
|
|
width: 108px;
|
|
min-height: 0;
|
|
padding: 4px 2px 2px;
|
|
gap: 2px;
|
|
}
|
|
.boat .hull { width: 88px; height: 66px; }
|
|
.boat .hull svg { width: 88px; height: 66px; }
|
|
.boat .boat-title { display: none; }
|
|
.boat .chip {
|
|
font-size: 12px;
|
|
padding: 5px 10px;
|
|
background: rgba(255, 253, 248, .88);
|
|
box-shadow: 0 4px 12px rgba(23, 43, 51, .08);
|
|
}
|
|
.boat.picked {
|
|
z-index: 2;
|
|
}
|
|
.boat.picked .chip {
|
|
background: var(--teal);
|
|
color: #fff;
|
|
padding: 7px 12px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 10px 22px rgba(23, 43, 51, .2);
|
|
transform: translateY(-2px);
|
|
}
|
|
.boat.picked .shade { background: rgba(255, 255, 248, .95); }
|
|
|
|
/* Sheet only: no floating dock. Shore is a full-viewport layer so #detail anchors to the bottom. */
|
|
.shore {
|
|
position: fixed;
|
|
z-index: 20;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100dvh;
|
|
max-height: none;
|
|
flex: none;
|
|
background: transparent;
|
|
background-image: none;
|
|
box-shadow: none;
|
|
padding: 0;
|
|
pointer-events: none;
|
|
}
|
|
.shore-inner {
|
|
position: absolute;
|
|
inset: 0;
|
|
gap: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
pointer-events: none;
|
|
}
|
|
.shore .edge { display: none; }
|
|
.shore-top { display: none !important; }
|
|
|
|
.scrim {
|
|
display: block;
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 1;
|
|
border: 0;
|
|
padding: 0;
|
|
margin: 0;
|
|
background: rgba(23, 43, 51, .28);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity .22s ease;
|
|
}
|
|
.harbour[data-sheet="detail"] .scrim,
|
|
.harbour[data-sheet="list"] .scrim {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
.scrim[hidden] { display: none !important; }
|
|
|
|
#detail {
|
|
position: absolute;
|
|
z-index: 2;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
max-height: min(88dvh, 820px);
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
pointer-events: auto;
|
|
padding: 0 14px calc(14px + env(safe-area-inset-bottom));
|
|
background: var(--paper);
|
|
background-image: radial-gradient(#E2D8C6 1.2px, transparent 1.4px);
|
|
background-size: 24px 24px;
|
|
border-radius: 28px 28px 0 0;
|
|
box-shadow: 0 -12px 40px rgba(23, 43, 51, .18);
|
|
transform: translateY(110%);
|
|
transition: transform .28s cubic-bezier(.2, .8, .2, 1);
|
|
scrollbar-gutter: auto;
|
|
}
|
|
#detail::before {
|
|
content: '';
|
|
display: block;
|
|
width: 44px;
|
|
height: 5px;
|
|
margin: 10px auto 12px;
|
|
border-radius: 999px;
|
|
background: #D5CBB8;
|
|
}
|
|
.harbour[data-sheet="detail"] #detail,
|
|
.harbour[data-sheet="list"] #detail {
|
|
transform: translateY(0);
|
|
}
|
|
.harbour[data-sheet="closed"] #detail {
|
|
pointer-events: none;
|
|
}
|
|
body.sheet-open { overflow: hidden; }
|
|
|
|
.card { padding: 4px 4px 10px; gap: 16px; border-radius: 0; box-shadow: none; background: transparent; }
|
|
.card h2 { font-size: 24px; }
|
|
.card .title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
|
|
.tone { padding: 16px; }
|
|
.tone .icon { width: 44px; height: 44px; }
|
|
.tone .word { font-size: 24px; }
|
|
|
|
/* Thumb zone: Gas right under the tone; findings scroll below. */
|
|
.actions .buttons.main { display: flex; flex-direction: column; gap: 10px; }
|
|
.actions .buttons.main .act { width: 100%; min-height: 52px; border-radius: 18px; }
|
|
.actions .buttons.side { display: flex; gap: 10px; }
|
|
.actions .buttons.side .act { flex: 1 1 0; min-height: 48px; border-radius: 16px; }
|
|
.release-row { flex-direction: column; }
|
|
.release-row .act { width: 100%; min-height: 52px; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after { animation: none !important; transition: none !important; }
|
|
}
|
|
|
|
/* Gate and rubric pages */
|
|
.page-gate, .page-rubric { background: var(--paper); min-height: 100vh; color: var(--ink); font-family: var(--sans); }
|
|
.page-gate main { max-width: 440px; margin: 0 auto; padding: 16vh 20px 40px; display: flex; flex-direction: column; gap: 18px; }
|
|
.page-gate .brand { margin-bottom: 8px; }
|
|
.page-gate .brand span { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -.5px; }
|
|
.page-gate h1 { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.1; letter-spacing: -1px; margin: 0; }
|
|
.page-gate p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
|
|
.btn { align-self: flex-start; display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--teal); color: #fff !important; font-weight: 700; text-decoration: none; }
|
|
.btn:hover { background: var(--teal-deep); }
|
|
.page-rubric main { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; line-height: 1.55; }
|
|
.page-rubric h1, .page-rubric h2, .page-rubric h3 { font-family: var(--serif); scroll-margin-top: 20px; }
|
|
.page-rubric h2:target { background: #FBEBD0; border-radius: 10px; padding: 4px 10px; margin-left: -10px; }
|
|
|
|
/* Approver actions (M3) */
|
|
.actions { display: flex; flex-direction: column; gap: 12px; }
|
|
.actions .buttons { display: flex; flex-wrap: wrap; gap: 10px; }
|
|
.actions .buttons.main,
|
|
.actions .buttons.side { display: flex; flex-wrap: wrap; gap: 10px; }
|
|
.act { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
|
|
.act:disabled { opacity: .5; cursor: progress; }
|
|
.act.primary { background: var(--teal); color: #fff; min-width: 120px; }
|
|
.act.primary:hover:not(:disabled) { background: var(--teal-deep); }
|
|
.act.quiet { background: #F1EBDF; color: var(--ink); }
|
|
.act.danger { background: #F8DDD5; color: #9A2E1A; }
|
|
.countdown { margin: 0; font-size: 15px; font-weight: 700; color: #6B4206; }
|
|
.note-label { font-size: 14px; font-weight: 700; color: #24525A; }
|
|
.actions textarea { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 16px; border: 2px solid #E2D8C6; resize: vertical; width: 100%; }
|
|
.actions textarea:focus-visible { outline: 3px solid var(--buoy); outline-offset: 1px; }
|
|
.act-error { margin: 0; font-size: 14px; color: #9A2E1A; }
|
|
|
|
/* Release proposal for branches that deploy from tags */
|
|
.release { display: flex; flex-direction: column; gap: 10px; }
|
|
.release .section-title, .release .stamp { margin: 0; }
|
|
.release-row { display: flex; gap: 10px; }
|
|
.release-row input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid #E2D8C6; background: #fff; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
|
|
.release-row input:focus-visible { outline: 3px solid var(--buoy); outline-offset: 1px; }
|
|
.release .hint { margin: 0; font-size: 14px; color: var(--ink-soft); }
|
|
.changelog { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
|
|
.changelog li { padding: 10px 14px; border-radius: 14px; background: #F6F1E7; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
|
|
.changelog li.direct { background: #FBEBD0; }
|
|
.changelog .by { color: var(--ink-soft); font-size: 14px; }
|
|
.boat.sailing .hull { animation-name: sail; animation-duration: 2.6s; }
|
|
@keyframes sail { 0%, 100% { transform: translate(0, 0) rotate(-1deg); } 50% { transform: translate(6px, -3px) rotate(1.5deg); } }
|
|
.todo-item .todo-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
|
|
.todo-item .todo-copy strong { font-size: 15px; }
|
|
.todo-item .todo-copy span { font-size: 13px; color: #5C4310; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|