body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.App-link{color:#61dafb}.boat-wrapper{width:100px;height:200px;position:absolute;top:0;left:0}.moveable-target{position:absolute}.App{background:#f6f6fb;grid-template-columns:340px minmax(0,1fr);grid-template-areas:"sidebar main";height:100dvh;display:grid;overflow:hidden}.app-main{flex-direction:column;grid-area:main;min-width:0;min-height:0;display:flex}.rules-sidebar{box-sizing:border-box;overscroll-behavior:contain;z-index:20;background:#fefefe;border-right:1px solid #e6e4ea;flex-direction:column;grid-area:sidebar;min-height:0;padding:10px 14px 20px;display:flex;overflow-y:auto}.app-header{z-index:30;padding:10px 12px 8px;display:flex;position:relative}.rules-sidebar__header{z-index:5;background:#fefefe;margin:-10px -14px 8px;padding:12px 14px 0;position:sticky;top:-10px}.rules-sidebar__title-row{align-items:center;gap:6px;display:flex;position:relative}.rules-sidebar__title-row h2{color:#1d2433;margin:0;font-size:20px;font-weight:800}.rules-sidebar__toolbar{justify-content:space-between;align-items:center;gap:8px;margin-top:10px;padding-bottom:10px;display:flex}.rules-sidebar__status{color:#6b6b85;opacity:0;font-size:12px;font-weight:600;transition:opacity .15s}.rules-sidebar__status--visible{opacity:1}.rules-sidebar__progress{background:#ececf3;height:2px;margin:0 -14px;position:relative;overflow:hidden}.rules-sidebar__progress:after{content:"";opacity:0;background:#9c7bff;width:40%;transition:opacity .15s;position:absolute;top:0;bottom:0;left:-40%}.rules-sidebar__progress--visible:after{opacity:1;animation:1s ease-in-out infinite sidebar-progress}@keyframes sidebar-progress{0%{left:-40%}to{left:100%}}.rules-sidebar__content--settling{opacity:.45;filter:grayscale();pointer-events:none}.rules-sidebar__content{transition:opacity .2s,filter .2s}@media (prefers-reduced-motion:reduce){.rules-sidebar__progress--visible:after{width:100%;animation:none;left:0}}.rules-sidebar__empty{color:#6b6b85;margin:8px 2px;font-size:13px}.segmented{background:#efeff5;border-radius:7px;padding:2px;display:inline-flex}.segmented__option{color:#555;cursor:pointer;background:0 0;border:none;border-radius:5px;align-items:center;gap:5px;padding:4px 10px;font-family:inter;font-size:12px;font-weight:600;display:inline-flex}.segmented__option[aria-pressed=true]{color:#1d2433;background:#fff;box-shadow:0 1px 3px #0000001f}.segmented__count{color:#fff;text-align:center;background:#9c7bff;border-radius:8px;min-width:16px;padding:0 5px;font-size:11px}.info{display:inline-flex}.info__button{color:#6b6b85;cursor:pointer;background:0 0;border:none;border-radius:50%;padding:3px;display:inline-flex}.info__button:hover,.info__button[aria-expanded=true]{color:#1565c0;background:#e8f0fb}.info__popover{box-sizing:border-box;color:#333;text-align:left;z-index:50;background:#fff;border:1px solid #e0e0e8;border-radius:8px;padding:12px 14px;font-size:13px;line-height:1.45;position:absolute;top:calc(100% + 6px);left:0;right:0;box-shadow:0 8px 24px #141e3c29}.info__popover p{margin:0 0 8px}.info__legend{flex-direction:column;gap:4px;margin:0;padding:0;font-size:12px;list-style:none;display:flex}.info__swatch{vertical-align:-1px;border-radius:2px;width:10px;height:10px;margin-right:4px;display:inline-block}.info__swatch--right-of-way{background:#2e8b24}.info__swatch--keep-clear{background:#d32f2f}.info__swatch--entitled{background:#1565c0}.info__swatch--duty{background:#7b1fa2}.info__swatch--limitation{background:#6d6d6d}.rules-sidebar__sheet-toggle,.rules-sidebar__sheet-count{display:none}@media (width<=760px){.App{grid-template:"main"minmax(0,1fr)"sidebar"/minmax(0,1fr)}.rules-sidebar{border-top:1px solid #e6e4ea;border-right:none;border-radius:14px 14px 0 0;max-height:54px;transition:max-height .25s;overflow:hidden;box-shadow:0 -4px 16px #141e3c1f}.rules-sidebar--sheet-open{max-height:65dvh;overflow-y:auto}.rules-sidebar__sheet-toggle{cursor:grab;touch-action:none;background:0 0;border:none;justify-content:center;height:48px;padding:6px 0 0;display:flex;position:absolute;inset:0 0 auto}.rules-sidebar--dragging{transition:none;overflow:hidden}.rules-sidebar--dragging .rules-sidebar__sheet-toggle{cursor:grabbing}.rules-sidebar__sheet-grip{background:#c9c9d6;border-radius:2px;width:36px;height:4px}.rules-sidebar__header{padding-top:18px}.rules-sidebar__title-row h2{font-size:17px}.rules-sidebar__sheet-count{color:#fff;background:#9c7bff;border-radius:10px;margin-left:auto;padding:2px 8px;font-size:12px;font-weight:600;display:inline-block}.info{z-index:1;position:relative}.info__popover{position:fixed;inset:auto 12px 16px}}.control-bar{box-sizing:border-box;background:#fefefe;border:1px solid #e2e2e2;border-radius:8px;flex-direction:column;gap:10px;width:100%;min-width:0;padding:12px 16px;font-family:inter;display:flex;box-shadow:0 2px 10px #00000014}.control-row{flex-wrap:wrap;align-items:center;gap:8px 10px;display:flex}.control-label{color:#666;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap;font-size:12px;font-weight:700}.standon-boat{filter:drop-shadow(4px 0 #51b841)drop-shadow(-4px 0 #51b841)drop-shadow(0 4px #51b841)drop-shadow(0 -4px #51b841);transition:filter .3s}.giveway-boat{filter:drop-shadow(3px 0 #e0524f)drop-shadow(-3px 0 #e0524f)drop-shadow(0 3px #e0524f)drop-shadow(0 -3px #e0524f);transition:filter .3s}.rules-sidebar p{size:10px;font-family:inter}.rules-sidebar__content{flex-direction:column;gap:8px;display:flex}.rule-card__note{color:#856404;margin:4px 0 0;font-size:11px;font-style:italic;line-height:1.4}.rule-modal__note{color:#856404;background:#fff3cd;border:1px solid #ffeeba;border-radius:4px;margin:0;padding:8px 10px;font-size:12px;line-height:1.5}.rule-card{cursor:pointer;background:#fff;border:1px solid #e0e0e0;border-radius:5px;transition:border-color .15s,box-shadow .15s;position:relative;overflow:hidden}.rule-card:hover{border-color:#bdbdbd;box-shadow:0 1px 4px #0000001a}.rule-card__header{align-items:left;gap:8px;padding:8px 10px;display:flex}.rule-card__title{justify-content:left;margin:0;font-size:14px;font-weight:600}.rule-card__header h3{margin:0;font-size:14px;font-weight:600}.rule-card__badge{color:#fff;background:#51b841;border-radius:3px;margin-left:auto;padding:2px 6px;font-size:11px;font-weight:700}.rule-card__badge--applicable{background:#9c7bff}.rule-card__badge--collision{background:#e53935}.rule-card__body{overflow:hidden}.rule-card__body-inner{padding:0 10px 10px}.rule-card__description{color:#444;margin:0 0 4px;font-size:12px}.rule-card__detail{color:#51b841;margin:0;font-size:12px;font-weight:600}.rule-card__cooldown{pointer-events:none;width:18px;height:18px;position:absolute;bottom:8px;right:8px;overflow:visible}.rule-card__cooldown circle{fill:none;stroke-width:2.5px}.rule-card__cooldown-track{stroke:#2196f338}.rule-card__cooldown-fill{stroke:#2196f3;stroke-linecap:round;transform-origin:50%;animation-name:cooldown-drain;animation-duration:5s;animation-timing-function:linear;animation-fill-mode:forwards;transform:rotate(-90deg)}@keyframes cooldown-drain{0%{stroke-dashoffset:0}to{stroke-dashoffset:56.5487px}}.rule-card--deciding{background:#eef9ec;border-left:4px solid #51b841}.rule-card--applicable{border-left:4px solid #9c7bff}.rule-card--inactive{opacity:.55}.rule-modal__backdrop{z-index:9999;background:#00000073;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.rule-modal{background:#fff;border-radius:8px;width:100%;max-width:520px;max-height:80vh;overflow-y:auto;box-shadow:0 10px 40px #00000040}.rule-modal__header{border-bottom:1px solid #eee;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.rule-modal__header h2{margin:0;font-size:18px;font-weight:700}.rule-modal__close{cursor:pointer;color:#666;background:0 0;border:none;padding:0 4px;font-size:26px;line-height:1}.rule-modal__close:hover{color:#000}.rule-modal__body{padding:16px 20px 20px}.rule-modal__short{color:#555;margin:0 0 4px;font-size:13px}.rule-modal__body section{margin-top:16px}.rule-modal__body h3{text-transform:uppercase;letter-spacing:.06em;color:#666;margin:0 0 6px;font-size:12px}.rule-modal__source{color:#666;border-top:1px solid #eee;margin:20px 0 0;padding-top:12px;font-size:12px;line-height:1.5}.rule-modal__source a{color:#2f7d23}.rule-modal__layman{color:#333;margin:0;font-size:14px;line-height:1.6}.wind-circle{box-sizing:border-box;pointer-events:none;opacity:0;z-index:24;border:2px dashed #1565c059;border-radius:50%;transition:opacity .2s;position:absolute;top:0;left:0}.wind-circle--visible{opacity:1}.play-area:has(.wind-arrow:hover) .wind-circle{opacity:1}.play-area:has(.wind-arrow:focus-visible) .wind-circle{opacity:1}.wind-arrow{cursor:grab;touch-action:none;z-index:26;border-radius:20px;outline:none;width:40px;height:72px;margin:-36px 0 0 -20px;position:absolute;top:0;left:0}.wind-arrow svg{filter:drop-shadow(0 1px 2px #141e3c59);transition:transform .15s;display:block;overflow:visible}.wind-arrow:hover svg,.wind-arrow--dragging svg{transform:scale(1.12)}.wind-arrow--dragging{cursor:grabbing}.wind-arrow:focus-visible{box-shadow:0 0 0 3px #1565c073}.wind-arrow__body{fill:#1565c0;stroke:#fff;stroke-width:2px;stroke-linejoin:round}.wind-readout{font-variant-numeric:tabular-nums;color:#1d2433;white-space:nowrap;pointer-events:none;z-index:26;background:#ffffffe6;border-radius:6px;padding:3px 8px;font-family:inter;font-size:12px;font-weight:700;position:absolute;top:0;left:0;box-shadow:0 1px 3px #141e3c33}.wind-readout__label{color:#1565c0;text-transform:uppercase;letter-spacing:.05em;font-size:10px;font-weight:600}.wind-readout--dragging{font-size:15px}.moveable-line{transform-origin:0 .5px;visibility:hidden;background:#4af;width:0;height:0;position:absolute}.sail-path{z-index:2;transition:transform .3s;position:absolute;overflow:visible}.sail-path--flapping{animation:1.1s ease-in-out infinite sail-flap}@keyframes sail-flap{0%,to{transform:rotate(-12deg)}50%{transform:rotate(12deg)}}.rules-sidebar>*{font-family:inter}.patterns{pointer-events:none;background-color:#d8d8ff;position:absolute;inset:0}.pt1{-webkit-mask:radial-gradient(8px at 50% calc(100% + 4.5px),#0000 calc(99% - 1px),#000 calc(101% - 1px) 99%,#0000 101%) calc(50% - 12px) calc(50% - 3px)/24px 7px,radial-gradient(8px at 50% -4.5px,#0000 calc(99% - 1px),#000 calc(101% - 1px) 99%,#0000 101%) 50% calc(50% + 3.5px)/24px 7px;mask:radial-gradient(8px at 50% calc(100% + 4.5px),#0000 calc(99% - 1px),#000 calc(101% - 1px) 99%,#0000 101%) calc(50% - 12px) calc(50% - 3px)/24px 7px,radial-gradient(8px at 50% -4.5px,#0000 calc(99% - 1px),#000 calc(101% - 1px) 99%,#0000 101%) 50% calc(50% + 3.5px)/24px 7px}.transom-line{pointer-events:none;z-index:10;opacity:0;border-top:3px dotted #7b1fa2;height:0;transition:opacity .4s;position:absolute}.transom-line--visible{opacity:1}.rule-group{flex-direction:column;gap:8px;display:flex}.rule-group__header{cursor:pointer;text-align:left;background:0 0;border:none;border-bottom:1px solid #e0e0e0;align-items:center;gap:6px;width:100%;padding:6px 4px;font-family:inter;display:flex}.rule-group__title{color:#444;text-transform:uppercase;letter-spacing:.04em;font-size:12px;font-weight:700}.rule-group__count{color:#666;white-space:nowrap;background:#eee;border-radius:3px;margin-left:auto;padding:2px 6px;font-size:11px;font-weight:600}.rule-group__count--active{color:#fff;background:#9c7bff}.rule-group__rules{flex-direction:column;gap:8px;display:flex}.rule-card--reference{text-align:left;padding:6px 10px;font-family:inter}.rule-card--reference .rule-card__title{color:#555;margin:0;font-size:12px;font-weight:500}.mark-zone{box-sizing:border-box;pointer-events:none;z-index:1;border:2px dashed #ff9800b3;border-radius:50%;position:absolute;top:0;left:0}.mark-marker{box-sizing:border-box;cursor:grab;z-index:3;background:#ff9800;border:2px solid #e65100;border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;top:0;left:0}.mark-marker__arrow{color:#fff;-webkit-user-select:none;user-select:none;font-size:16px;font-weight:700;line-height:1}.obstruction-marker{box-sizing:border-box;cursor:grab;z-index:1;background:#9e9e9e;border:2px solid #6b6b6b;border-radius:50%;position:absolute;top:0;left:0}.scenario-picker{background:#fff;border:1px solid #ccc;border-radius:4px;flex:1;min-width:0;padding:3px 6px;font-family:inter;font-size:12px;font-weight:600}.reset-button{cursor:pointer;background:#fff;border:1px solid #ccc;border-radius:4px;padding:3px 10px;font-family:inter;font-size:12px;font-weight:600}.reset-button:hover{background:#f0f0f0}.reset-button:disabled{opacity:.45;cursor:not-allowed}.hail-control{align-items:center;gap:4px;display:inline-flex}.hail-warning{color:#856404;white-space:nowrap;cursor:help;background:#fff8e1;border:1px solid #ffe08a;border-radius:10px;padding:1px 7px;font-family:inter;font-size:11px;font-weight:600}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.play-area{flex:1;min-height:0;position:relative;overflow:hidden}.play-area__stage{transform-origin:0 0;width:0;height:0;position:absolute;top:0;left:0}.play-area__hint{color:#3d3d5c;text-align:left;pointer-events:none;z-index:25;background:#ffffffd9;border-radius:6px;max-width:min(260px,100% - 250px);margin:0;padding:4px 10px;font-family:inter;font-size:12px;position:absolute;bottom:10px;left:12px}.play-area__actions{z-index:25;gap:6px;display:flex;position:absolute;bottom:8px;right:12px}.play-area__screenshot{align-items:center;gap:5px;display:inline-flex}.moveable-controls{--moveable-color:#1565c0}.moveable-control-box.moveable-controls .moveable-rotation-line{visibility:visible;background:#1565c0}.moveable-control-box.moveable-controls .moveable-rotation .moveable-rotation-control{cursor:grab;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565c0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.34-5.66'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E") 50%/18px no-repeat;border:2px solid #1565c0;width:30px;height:30px;margin-top:-15px;margin-left:-15px;transition:box-shadow .12s;box-shadow:0 1px 4px #00000040}.moveable-control-box.moveable-controls .moveable-rotation .moveable-rotation-control:hover{box-shadow:0 0 0 5px #1565c040,0 1px 4px #00000040}.moveable-control-box.moveable-controls .moveable-rotation .moveable-rotation-control:active{cursor:grabbing}.boat-wrapper{cursor:move;text-align:center;outline:none}.boat-wrapper:focus-visible{outline-offset:4px;border-radius:10px;outline:2px dashed #1565c0}.heading-readout{color:#fff;white-space:nowrap;pointer-events:none;z-index:40;background:#141e3ce0;border-radius:8px;flex-direction:column;align-items:center;padding:4px 10px;font-family:inter;display:flex;position:absolute;top:0;left:0}.heading-readout__degrees{font-variant-numeric:tabular-nums;font-size:18px;font-weight:700}.heading-readout__detail{opacity:.85;font-size:11px;font-weight:500}.boat-badge{transform-origin:0 0;white-space:nowrap;pointer-events:none;z-index:30;flex-direction:column;gap:3px;font-family:inter;display:flex;position:absolute;top:0;left:0}.boat-badge__line{border-left:4px solid var(--tone);background:#fff;border-radius:6px;align-items:center;gap:8px;padding:3px 4px 3px 8px;font-size:12px;font-weight:600;display:flex;box-shadow:0 1px 4px #141e3c2e}.boat-badge__text{color:#1d2433}.boat-badge__rule{background:var(--tone);color:#fff;font-variant-numeric:tabular-nums;border-radius:4px;padding:1px 6px;font-size:11px;font-weight:700}.boat-badge__line--right-of-way{--tone:#2e8b24}.boat-badge__line--keep-clear{--tone:#d32f2f}.boat-badge__line--entitled{--tone:#1565c0}.boat-badge__line--duty{--tone:#7b1fa2}.boat-badge__line--limitation{--tone:#6d6d6d}.boat-badge__more{color:#555;background:#ffffffd9;border-radius:4px;padding:1px 6px;font-size:10px;font-weight:500}.palette{border:1.5px dashed #0000;border-radius:8px;align-items:center;gap:8px 10px;margin:-2px -6px;padding:2px 6px;transition:border-color .15s,background .15s;display:flex;position:relative}.palette__items{flex-wrap:wrap;gap:6px;display:flex}.palette__item{color:#333;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #d6d6e0;border-radius:6px;align-items:center;gap:6px;padding:3px 9px 3px 6px;font-family:inter;font-size:12px;font-weight:600;display:inline-flex}.palette__item:hover{background:#f3f7fd;border-color:#1565c0}.palette__item:active{cursor:grabbing}.palette__boat path{fill:#fff;stroke:#1d2433;stroke-width:1.5px;stroke-linejoin:round}.palette__mark{box-sizing:border-box;background:#ff9800;border:2px solid #e65100;border-radius:50%;width:12px;height:12px;display:inline-block}.palette__start-line-line{stroke:#1d2433;stroke-width:1.5px;stroke-dasharray:3 2}.palette__pin{fill:#ffd54f;stroke:#c49000;stroke-width:1.5px}.palette__committee{fill:#fff;stroke:#1d2433;stroke-width:1.5px}.palette__gate{gap:4px;display:inline-flex}.palette__gate .palette__mark{width:9px;height:9px}.palette__remove{color:#c62828;opacity:0;pointer-events:none;background:#fdecea;border-radius:7px;justify-content:center;align-items:center;gap:6px;font-family:inter;font-size:12px;font-weight:700;transition:opacity .15s;display:flex;position:absolute;inset:0}.palette--removal{border-color:#e0524f}.palette--removal .palette__remove{opacity:.92}.palette--removal-over .palette__remove{opacity:1;color:#fff;background:#e0524f}.ghost{pointer-events:none;z-index:10000;width:0;height:0;position:fixed;top:0;left:0}.ghost__body{transform-origin:0 0;opacity:.85;transition:transform .18s;position:absolute}.ghost__boat,.ghost__mark,.ghost__zone{box-sizing:border-box;position:absolute}.ghost__boat{filter:drop-shadow(0 3px 6px #141e3c59)}.ghost__mark{background:#ff9800;border:2px solid #e65100;border-radius:50%;box-shadow:0 3px 6px #141e3c4d}.ghost__pin,.ghost__committee,.ghost__start-line{box-sizing:border-box;position:absolute}.ghost__pin{background:#ffd54f;border:2px solid #c49000;border-radius:50%}.ghost__committee{filter:drop-shadow(0 3px 6px #141e3c4d)}.ghost__start-line{transform-origin:0 0;border-top:2px dashed #1d2433;height:0}.ghost__zone{opacity:0;border:2px dashed #ff9800b3;border-radius:50%;transition:opacity .18s}.ghost--over-water .ghost__zone{opacity:1}.mark-marker--start{background:#ffd54f;border-color:#c49000;border-radius:6px}.mark-marker--start .mark-marker__arrow{color:#5d4300}.mark-marker--pin{background:#ffd54f;border-color:#c49000}.mark-marker--committee{filter:drop-shadow(0 1px 2px #141e3c59);background:0 0;border:none;border-radius:0}.committee-boat{display:block}.committee-boat *{vector-effect:non-scaling-stroke}.committee-boat__hull{fill:#fff;stroke:#1d2433;stroke-width:1.5px}.committee-boat__cabin{fill:#cfd8dc;stroke:#1d2433;stroke-width:1px}.committee-boat__mast{stroke:#1d2433;stroke-width:1.2px}.committee-boat__flag{fill:#ff9800}.start-line{transform-origin:0 0;pointer-events:none;z-index:1;border-top:2px dashed #1d2433;height:0;position:absolute;top:0;left:0}.mark-marker:focus-visible{outline-offset:4px;outline:2px dashed #1565c0}.gate-line{transform-origin:0 0;pointer-events:none;z-index:1;border-top:2px dashed #e651008c;height:0;position:absolute;top:0;left:0}
