/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.start{inset-inline-start:var(--spacing)}.hidden{display:none}}*{box-sizing:border-box}body{background:radial-gradient(circle at 10% 0%, #2a728038, transparent 35rem), repeating-linear-gradient(120deg, #ffffff05 0 1px, transparent 1px 8px), var(--ocean-950);min-height:100vh;color:var(--ink);-webkit-font-smoothing:antialiased;margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input{font:inherit}button{-webkit-tap-highlight-color:transparent}:is(button:focus-visible,input:focus-visible,summary:focus-visible){outline-offset:2px;outline:3px solid #f0c86ba6}.app-shell{background:var(--parchment);width:100%;max-width:760px;min-height:100vh;margin:0 auto;position:relative;overflow:hidden;box-shadow:0 0 70px #0000005c}.hero{min-height:330px;padding:max(18px, env(safe-area-inset-top)) 22px 44px;color:#f9eed6;background:radial-gradient(circle at 70% 16%,#e8bb5e2e,#0000 26%),radial-gradient(at 30% 110%,#418e9466,#0000 52%),linear-gradient(155deg,#061a22 0%,#0b3540 62%,#0c4752 100%);position:relative;overflow:hidden}.hero:before,.hero:after{content:"";border:1px solid #eccc8729;border-radius:50%;position:absolute}.hero:before{width:260px;height:260px;top:75px;right:-125px;box-shadow:0 0 0 26px #ffffff05,0 0 0 52px #ffffff03}.hero:after{border-style:dashed;width:130px;height:130px;top:140px;right:-58px}.hero nav{z-index:1;justify-content:space-between;align-items:center;display:flex;position:relative}.brand-mark{color:#10262b;background:var(--gold-bright);border:2px solid #f9dda1;border-radius:50%;place-items:center;width:48px;height:48px;font-size:24px;display:grid;box-shadow:0 4px 20px #00000040,inset 0 0 0 3px #533a102e}.nav-button,.text-button{color:#f7e9cc;cursor:pointer;background:#0000001f;border:1px solid #f7e2b859;border-radius:999px;min-height:44px;padding:0 16px;font-weight:700}.hero-copy{z-index:1;margin-top:45px;position:relative}.eyebrow{color:#a57a28;text-transform:uppercase;letter-spacing:.2em;margin:0 0 7px;font-size:11px;font-weight:900}.hero .eyebrow{color:var(--gold-bright)}.hero h1{letter-spacing:-.055em;text-shadow:0 4px #0003;margin:0;font:700 clamp(54px,15vw,80px)/.94 Georgia,serif}.hero-copy>p:last-child{color:#f6edd6ba;margin:17px 0 0;font:italic 17px/1.45 Georgia,serif}.wave-line{color:#f5d89973;letter-spacing:.12em;font-size:28px;position:absolute;bottom:35px;right:25px}.setup-content{padding:0 18px 35px}.setup-section{background:#fff6;border:1px solid #4d412b1f;border-radius:22px;margin-top:16px;padding:20px 16px;box-shadow:0 10px 28px #46341712}.setup-section:first-child{z-index:2;margin-top:-20px;position:relative}.compact-section{padding-bottom:17px}.section-heading,.phase-heading{align-items:center;gap:13px;margin-bottom:17px;display:flex}.section-heading>span,.phase-index{color:#79591b;border:1px solid #9d6f1959;border-radius:50%;flex:none;place-items:center;width:34px;height:34px;font:700 12px Georgia,serif;display:grid}.section-heading p,.phase-heading p{color:#987020;text-transform:uppercase;letter-spacing:.16em;margin:0 0 2px;font-size:9px;font-weight:900}.section-heading h2,.phase-heading h2{margin:0;font:700 23px/1.1 Georgia,serif}.mode-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.mode-card{border:1px solid var(--line);min-height:145px;color:var(--ink);text-align:left;cursor:pointer;background:#fff6;border-radius:17px;padding:16px 11px;transition:all .18s;position:relative}.mode-card.selected{color:#f7edda;background:linear-gradient(145deg,#0a3039,#0e4852);border-color:#b69045;box-shadow:inset 0 0 0 1px #efc7694d,0 8px 22px #0d343d38}.mode-icon{color:var(--gold);margin-bottom:15px;font-size:25px;display:block}.mode-card strong{font:700 19px Georgia,serif;display:block}.mode-card small{color:var(--muted);margin-top:3px;font-size:11px;display:block}.mode-card.selected small{color:#f5eddba1}.mode-card i{min-width:33px;color:inherit;text-align:center;background:#182d3014;border-radius:99px;padding:4px 7px;font-size:10px;font-style:normal;font-weight:800;position:absolute;top:12px;right:11px}.mode-card.selected i{background:#ffffff1a}.crew-size{border-top:1px solid var(--line);justify-content:space-between;align-items:center;margin-top:13px;padding-top:13px;font-size:13px;font-weight:800;display:flex}.name-inputs{gap:9px;display:grid}.name-inputs label{border:1px solid var(--line);background:#ffffff75;border-radius:14px;align-items:center;gap:10px;min-height:54px;padding:0 13px;display:flex}.name-inputs label>span{color:#365157;background:#dce5db;border-radius:50%;place-items:center;width:28px;height:28px;font:700 12px Georgia,serif;display:grid}.name-inputs input{min-width:0;color:var(--ink);background:0 0;border:0;outline:0;flex:1;font-size:16px;font-weight:750}.name-inputs input::placeholder{color:#8d9b99;font-weight:500}.saved-names{margin-top:15px}.saved-names>p{color:var(--muted);text-transform:uppercase;letter-spacing:.1em;margin:0 0 8px;font-size:11px;font-weight:800}.saved-names>div{flex-wrap:wrap;gap:7px;display:flex}.saved-names>div button{color:#31555b;cursor:pointer;background:#e4ebe1;border:1px solid #1550612e;border-radius:999px;min-height:36px;padding:0 11px;font-size:12px;font-weight:800}.manage-link{color:#946d22;cursor:pointer;background:0 0;border:0;padding:11px 0 0;font-size:12px;font-weight:850;text-decoration:underline}.profile-manager{border-top:1px dashed #4b3d2440;gap:7px;margin-top:12px;padding-top:12px;display:grid}.profile-manager>div{gap:6px;display:flex}.profile-manager input{border:1px solid var(--line);background:#ffffff8c;border-radius:10px;flex:1;min-width:0;padding:10px}.profile-manager button{background:var(--ocean-800);color:#fff;cursor:pointer;border:0;border-radius:10px;padding:0 10px;font-size:11px;font-weight:800}.profile-manager button.danger{color:var(--danger);background:#ecd5c8;font-size:18px}.scoring-options{gap:8px;display:grid}.scoring-options label{border:1px solid var(--line);cursor:pointer;background:#ffffff61;border-radius:14px;align-items:center;min-height:61px;padding:9px 13px;display:flex}.scoring-options input{opacity:0;position:absolute}.scoring-options span{flex:1}.scoring-options strong,.scoring-options small{display:block}.scoring-options strong{font:700 17px Georgia,serif}.scoring-options small{color:var(--muted);margin-top:3px;font-size:11px}.scoring-options i{color:#0000;border:1px solid #a7b2ac;border-radius:50%;place-items:center;width:25px;height:25px;font-style:normal;display:grid}.scoring-options label.selected i{background:var(--ocean-800);border-color:var(--ocean-800);color:#fff}.basic-badge{text-align:center;color:#725822;text-transform:uppercase;letter-spacing:.08em;background:#d7b16024;border-radius:10px;margin-top:10px;padding:10px;font-size:10px;font-weight:850}.rule-mode-options{grid-template-columns:1fr 1fr;gap:9px;display:grid}.rule-mode-options>button{border:1px solid var(--line);min-height:156px;color:var(--ink);text-align:left;cursor:pointer;background:#ffffff61;border-radius:16px;padding:15px 12px;position:relative}.rule-mode-options>button.selected{color:#f7edda;background:linear-gradient(145deg,#0a3039,#0e4852);border-color:#b69045;box-shadow:inset 0 0 0 1px #efc7694d,0 8px 22px #0d343d33}.rule-mode-options strong,.rule-mode-options small{display:block}.rule-mode-options strong{margin-bottom:5px;font:700 17px Georgia,serif}.rule-mode-options small{color:var(--muted);font-size:10px;line-height:1.4}.rule-mode-options .selected small{color:#f5eddba6}.rule-mode-options i{text-transform:uppercase;background:#182d3014;border-radius:999px;padding:4px 7px;font-size:8px;font-style:normal;font-weight:900;position:absolute;top:10px;right:10px}.rule-mode-options .selected i{background:#ffffff1a}.standard-card-strip{scrollbar-width:none;gap:6px;margin-top:10px;display:flex;overflow-x:auto}.standard-card-strip::-webkit-scrollbar{display:none}.standard-card-strip span{color:#496064;background:#e3e8de;border-radius:999px;flex:none;padding:7px 9px;font-size:9px;font-weight:850}.preset-select{margin-top:12px;display:block}.preset-select>span{color:#7c652f;text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px;font-size:10px;font-weight:850;display:block}.preset-select select{width:100%;min-height:48px;color:var(--ink);background:#edf0e7;border:1px solid #15444c38;border-radius:12px;padding:0 12px;font-weight:750}.primary-button{color:#fff6e2;letter-spacing:.02em;cursor:pointer;background:linear-gradient(135deg,#0c3a45,#0e5360);border:0;border-radius:15px;min-height:54px;padding:0 19px;font-weight:900;box-shadow:0 8px 18px #07303938,inset 0 1px #ffffff26}.primary-button:active{transform:translateY(1px)}.full-width{width:100%}.launch-button{justify-content:center;align-items:center;gap:15px;width:100%;min-height:61px;margin:18px 0 8px;font-size:16px;display:flex}.launch-button span{font-size:25px;line-height:1}.saved-voyages{padding:28px 2px 5px}.saved-title{justify-content:space-between;align-items:end;margin-bottom:12px;display:flex}.saved-title h2{margin:0;font:700 24px Georgia,serif}.saved-title>span{color:#6b572d;background:#dfd2b5;border-radius:50%;place-items:center;min-width:30px;height:30px;font-size:12px;font-weight:900;display:grid}.empty-state{text-align:center;color:var(--muted);border:1px dashed #3d463a40;border-radius:15px;margin:0;padding:22px;font-size:13px}.voyage-list{gap:8px;display:grid}.voyage-list article{border:1px solid var(--line);background:#ffffff61;border-radius:15px;display:flex;position:relative;overflow:hidden}.voyage-main{min-width:0;min-height:68px;color:var(--ink);text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:11px;padding:8px 40px 8px 12px;display:flex}.voyage-icon{background:#dfe8de;border-radius:50%;place-items:center;width:37px;height:37px;display:grid}.voyage-main>span:nth-child(2){flex:1;min-width:0}.voyage-main strong,.voyage-main small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.voyage-main strong{font:700 14px Georgia,serif}.voyage-main small{color:var(--muted);margin-top:4px;font-size:10px}.voyage-main b{color:#8f7646;font-size:24px}.delete-voyage{color:#a07e68;cursor:pointer;background:0 0;border:0;border-radius:50%;width:34px;height:34px;font-size:20px;position:absolute;top:5px;right:5px}.setup-shell footer{padding:18px 20px max(24px, env(safe-area-inset-bottom));color:#eee6d399;background:var(--ocean-900);text-align:center;text-transform:uppercase;letter-spacing:.14em;font-size:10px}.game-shell{min-height:100vh;padding:max(10px, env(safe-area-inset-top)) 15px max(88px, calc(env(safe-area-inset-bottom) + 74px));background:linear-gradient(#f4ecd9,#eee1c8)}.game-shell:before{content:"";pointer-events:none;opacity:.3;background:repeating-linear-gradient(20deg,#0000 0 12px,#59411c06 12px 13px);position:fixed;inset:0}.game-topbar{z-index:1;justify-content:space-between;align-items:center;height:62px;display:flex;position:relative}.game-topbar .text-button{color:#35545a;background:#ffffff52;border-color:#1a3d4333;padding:0 12px;font-size:12px}.round-mark{text-align:center}.round-mark span{color:#907025;text-transform:uppercase;letter-spacing:.16em;font-size:8px;font-weight:900;display:block}.round-mark strong{font:700 25px Georgia,serif;display:block}.round-mark i{color:#879492;font-size:12px;font-style:normal}.starter-banner{color:#f9eed8;background:radial-gradient(circle at 100% 0,#eebf5e38,#0000 40%),linear-gradient(135deg,#082a33,#0d4a54);border-radius:22px;align-items:center;gap:18px;min-height:150px;padding:22px;display:flex;box-shadow:0 12px 30px #0b353d33}.compass{width:61px;height:61px;color:var(--gold-bright);border:1px solid #f2ce7f80;border-radius:50%;flex:0 0 61px;place-items:center;font-size:25px;display:grid;box-shadow:inset 0 0 0 8px #ffffff09}.starter-banner p{color:var(--gold-bright);text-transform:uppercase;letter-spacing:.16em;margin:0 0 4px;font-size:9px;font-weight:900}.starter-banner h1{margin:0;font:700 25px/1.1 Georgia,serif}.starter-banner span{color:#f6eedca8;margin-top:7px;font-size:11px;line-height:1.4;display:block}.starter-banner .rule-mode-chip{color:var(--gold-bright);text-transform:uppercase;letter-spacing:.09em;background:#0000001f;border:1px solid #f0c86b42;border-radius:999px;margin-top:9px;padding:4px 8px;font-size:8px;font-style:normal;font-weight:900;display:inline-block}.scoreboard{scrollbar-width:none;gap:7px;margin:12px 0;display:flex;overflow-x:auto}.scoreboard::-webkit-scrollbar{display:none}.score-pill{border:1px solid var(--line);background:#ffffff73;border-radius:12px;flex:1 0 110px;grid-template-columns:21px minmax(0,1fr) auto;align-items:center;gap:6px;min-width:0;padding:9px;display:grid}.rank{color:#604b20;background:#d9c69d;border-radius:50%;place-items:center;width:21px;height:21px;font-size:9px;font-weight:900;display:grid}.score-name{text-overflow:ellipsis;white-space:nowrap;color:#526568;font-size:10px;font-weight:800;overflow:hidden}.score-pill strong{font:700 17px Georgia,serif}.phase-card,.finish-card,.history-card{z-index:1;background:#ffffff70;border:1px solid #4c3c1e21;border-radius:22px;position:relative;box-shadow:0 12px 28px #45341912}.phase-card{padding:19px 15px 16px}.phase-heading{margin-bottom:8px}.phase-copy{color:var(--muted);margin:0 0 18px 47px;font-size:12px;line-height:1.45}.player-entry-list,.score-entry-list{gap:9px;margin-bottom:15px;display:grid}.player-entry{border:1px solid var(--line);background:#ffffff80;border-radius:15px;align-items:center;gap:10px;min-height:70px;padding:9px 10px;display:flex}.avatar{color:#e7f0e8;background:#315a61;border-radius:50%;flex:0 0 38px;place-items:center;width:38px;height:38px;font:700 17px Georgia,serif;display:grid}.player-entry>strong{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.ghost-entry{background:#d9e0da7a;border-style:dashed}.ghost-entry .avatar{background:#d8e1db}.ghost-entry>div:nth-child(2){flex:1}.ghost-entry strong,.ghost-entry span{display:block}.ghost-entry span{color:var(--muted);margin-top:3px;font-size:9px}.ghost-entry b{color:#879593;padding-right:10px}.stepper{background:#e7ece4;border:1px solid #15444c2e;border-radius:12px;grid-template-columns:39px 51px 39px;align-items:stretch;height:43px;display:grid;overflow:hidden}.stepper button{color:#31565c;cursor:pointer;background:0 0;border:0;font-size:20px;font-weight:700}.stepper button:active{background:#1a4e561a}.stepper label{border-left:1px solid #15444c1f;border-right:1px solid #15444c1f;position:relative}.stepper label>span{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.stepper input{width:100%;height:100%;color:var(--ink);text-align:center;-webkit-appearance:textfield;appearance:textfield;background:0 0;border:0;outline:0;padding:0;font:700 18px Georgia,serif}.stepper input::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.stepper input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}.score-entry{border:1px solid var(--line);background:#ffffff7a;border-radius:17px;padding:12px}.score-entry>header{align-items:center;gap:9px;margin-bottom:12px;display:flex}.score-entry>header>div:nth-child(2){flex:1}.score-entry h3,.ghost-score-card h3{margin:0;font:700 17px Georgia,serif}.score-entry header p,.ghost-score-card p{color:var(--muted);margin:2px 0 0;font-size:10px}.preview-score{text-align:right;color:#18704b;min-width:50px;font:700 20px Georgia,serif}.negative{color:var(--danger)!important}.score-entry>.stepper{grid-template-columns:46px 1fr 46px;width:100%}.bonus-drawer{border-top:1px dashed #483d2738;margin-top:10px}.bonus-drawer summary{color:#86651f;cursor:pointer;justify-content:space-between;align-items:center;gap:8px;min-height:43px;font-size:11px;font-weight:850;list-style:none;display:flex}.bonus-drawer summary::-webkit-details-marker{display:none}.bonus-drawer summary:before{content:"+";border:1px solid #87662059;border-radius:50%;place-items:center;width:20px;height:20px;display:grid}.bonus-drawer[open] summary:before{content:"−"}.bonus-drawer summary span{flex:1}.bonus-drawer summary strong{color:#607477;font-size:10px}.bonus-grid{gap:7px;padding:2px 0 8px;display:grid}.stepper-compact{grid-template-columns:40px 1fr 40px;width:100%}.stepper-compact label{align-items:center;display:flex}.stepper-compact label>span{clip:auto;color:#526668;flex:1;width:auto;height:auto;padding-left:11px;font-size:10px;font-weight:800;position:static}.stepper-compact input{flex:0 0 42px;width:42px}.bonus-drawer>p{color:#7d8987;margin:0 0 4px;font-size:9px}.harry-control{background:#d8e3da8c;border-radius:12px;margin-top:10px;padding:10px}.harry-control>span{color:#667876;text-transform:uppercase;letter-spacing:.06em;margin-bottom:7px;font-size:9px;font-weight:850;display:block}.harry-control .stepper{grid-template-columns:40px 1fr 40px;width:100%}.stake-choice{background:#e8e9df;border-radius:11px;align-items:center;gap:6px;margin:0 0 8px;padding:9px;display:flex}.stake-choice>span{color:#526668;flex:1;font-size:10px;font-weight:850}.stake-choice button{color:#3f5b60;cursor:pointer;background:#ffffff73;border:1px solid #1442492e;border-radius:9px;min-width:38px;height:34px;font-size:10px;font-weight:900}.stake-choice button.selected{color:#f8edd7;border-color:var(--ocean-800);background:var(--ocean-800)}.destroyed-tricks-card{background:#e7d5bf85;border:1px dashed #6c361f45;border-radius:15px;align-items:center;gap:10px;padding:12px;display:flex}.destroyed-tricks-card>span{font-size:28px}.destroyed-tricks-card>div{flex:1;min-width:0}.destroyed-tricks-card h3{margin:0;font:700 15px Georgia,serif}.destroyed-tricks-card p{color:var(--muted);margin:3px 0 0;font-size:9px}.ghost-score-card{background:#dde4db73;border:1px dashed #3c504f40;border-radius:15px;align-items:center;gap:10px;padding:13px;display:flex}.ghost-score-card>span{font-size:29px}.ghost-score-card>div{flex:1}.ghost-score-card>strong{color:#496368;font:700 14px Georgia,serif}.sum-check{color:#556a6b;background:#e1e6dd;border-radius:11px;justify-content:space-between;margin:0 0 12px;padding:11px 13px;font-size:11px;font-weight:800;display:flex}.sum-check.valid strong{color:#19714c}.sum-check.invalid{color:var(--danger);background:#f0d9cf}.finish-card{text-align:center;padding:32px 19px 18px}.victory-mark{color:#102f36;background:var(--gold-bright);border-radius:50%;place-items:center;width:78px;height:78px;margin:0 auto 17px;font-size:36px;display:grid;box-shadow:0 9px 23px #634a1840,inset 0 0 0 5px #5b3d0e21}.finish-card h1{margin:0;font:700 34px Georgia,serif}.finish-card>p:not(.eyebrow){max-width:380px;color:var(--muted);margin:9px auto 20px;font:italic 14px/1.5 Georgia,serif}.final-scores{gap:7px;margin-bottom:16px;display:grid}.final-scores div{background:#e0e2d39e;border-radius:11px;justify-content:space-between;padding:12px 14px;font-size:13px;display:flex}.final-scores strong{font:700 17px Georgia,serif}.history-card{margin-top:12px;overflow:hidden}.history-card>summary{cursor:pointer;align-items:center;gap:10px;min-height:54px;padding:0 15px;font:700 14px Georgia,serif;list-style:none;display:flex}.history-card>summary::-webkit-details-marker{display:none}.history-card>summary:after{content:"+";color:#8b733f;margin-left:auto;font-family:sans-serif;font-size:19px}.history-card[open]>summary:after{content:"−"}.history-card>summary span{background:#ded2b7;border-radius:50%;place-items:center;min-width:24px;height:24px;font:800 9px sans-serif;display:grid}.history-table{border-top:1px solid var(--line);overflow-x:auto}.history-row{border-bottom:1px solid #4a3f2b14;align-items:center;gap:14px;min-width:360px;padding:10px 14px;font-size:10px;display:flex}.history-row>strong{color:#8c6d2a}.history-row>span{color:#667676;gap:5px;display:flex}.history-row b{color:#1f7651}.ghost-history{margin-left:auto}.rules-fab{left:50%;bottom:max(14px, env(safe-area-inset-bottom));z-index:8;color:#f5e7c9;cursor:pointer;background:#071f27f0;border:1px solid #f5dfb040;border-radius:999px;min-height:48px;padding:0 17px;font-weight:800;position:fixed;transform:translate(-50%);box-shadow:0 8px 23px #00000040}.rules-fab span{margin-left:6px}.toast{z-index:30;top:max(15px, env(safe-area-inset-top));color:#f9edd5;text-align:center;background:#082d35f5;border-radius:13px;width:min(100% - 30px,500px);padding:13px 17px;font-size:12px;font-weight:800;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 9px 28px #0000003d}.error-banner{z-index:5;color:#8f362d;background:#f0d7ca;border:1px solid #9d3a2d40;border-radius:12px;margin:12px 0;padding:12px 42px 12px 13px;font-size:11px;font-weight:750;position:relative}.error-banner button{width:34px;height:34px;color:inherit;cursor:pointer;background:0 0;border:0;font-size:19px;position:absolute;top:4px;right:5px}.modal-backdrop{z-index:50;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#021116b8;justify-content:center;align-items:flex-end;padding-top:30px;display:flex;position:fixed;inset:0}.modal-dismiss{cursor:default;background:0 0;border:0;width:100%;position:absolute;inset:0}.rules-sheet{z-index:1;width:min(100%,720px);max-height:min(92vh,900px);padding:10px 17px max(16px, env(safe-area-inset-bottom));background:linear-gradient(#f7efdd,#ecdfc7);border-radius:26px 26px 0 0;flex-direction:column;display:flex;position:relative;overflow:hidden;box-shadow:0 -18px 60px #0000004d}.sheet-handle{background:#b5aa95;border-radius:999px;width:42px;height:5px;margin:0 auto 12px}.rules-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:2px 3px 14px;display:flex}.rules-header h2{margin:0;font:700 27px Georgia,serif}.icon-button{border:1px solid var(--line);width:44px;height:44px;color:var(--ink);cursor:pointer;background:#ffffff59;border-radius:50%;font-size:25px}.rule-tabs{background:#143a4017;border-radius:12px;grid-template-columns:1fr 1fr;gap:5px;margin:11px 1px 4px;padding:4px;display:grid}.rule-tabs button{color:#5d7172;cursor:pointer;background:0 0;border:0;border-radius:9px;min-height:40px;font-size:11px;font-weight:900}.rule-tabs button.selected{color:#f7ecd7;background:var(--ocean-800);box-shadow:0 4px 12px #0c33402e}.rules-content{overscroll-behavior:contain;padding:7px 2px 14px;overflow-y:auto}.rules-content article{border-bottom:1px solid #4a3c241a;gap:12px;padding:15px 3px;display:flex}.rule-number{color:#a17725;flex:0 0 34px;padding-top:3px;font:700 12px Georgia,serif}.rules-content h3{margin:0 0 5px;font:700 17px Georgia,serif}.rules-content p{color:#536768;margin:0;font-size:12px;line-height:1.55}.ghost-rule{background:#cdded975;border-radius:13px}.bonus-rule{background:#ebdcb266;border-radius:13px}.card-reference{grid-template-columns:1fr 1fr;gap:6px;margin-top:11px;display:grid}.card-reference>span{background:#ffffff59;border:1px solid #364a481f;border-radius:10px;min-width:0;padding:9px}.card-reference b,.card-reference strong,.card-reference small{display:block}.card-reference b{margin-bottom:5px;font-size:19px}.card-reference strong{font:700 12px Georgia,serif}.card-reference small{color:#71807e;margin-top:2px;font-size:8px}.pirate-abilities{color:#536768;margin:8px 0 0;padding-left:17px;font-size:11px;line-height:1.5}.pirate-abilities li+li{margin-top:5px}.rule-note{color:#685625;background:#d3b16a33;border-radius:11px;margin:13px 0 3px;padding:13px;font-size:10px;line-height:1.55}.rules-sheet>.primary-button{flex:0 0 54px}@media (min-width:600px){.setup-content{padding-left:28px;padding-right:28px}.setup-section{padding:23px}.name-inputs{grid-template-columns:1fr 1fr}.game-shell{padding-left:24px;padding-right:24px}.bonus-grid{grid-template-columns:1fr 1fr}.rules-sheet{border-radius:26px 26px 0 0}}@media (max-width:370px){.setup-content,.setup-section{padding-left:12px;padding-right:12px}.phase-card{padding-left:10px;padding-right:10px}.player-entry{gap:7px;padding-left:7px;padding-right:7px}.player-entry .avatar{display:none}.stepper{grid-template-columns:36px 43px 36px}.starter-banner{gap:13px;padding:18px}.compass{flex-basis:52px;width:52px;height:52px}.rule-mode-options{grid-template-columns:1fr}.destroyed-tricks-card{flex-wrap:wrap}.destroyed-tricks-card .stepper{grid-template-columns:40px 1fr 40px;width:100%}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}}:root{--ocean-950:#160d0a;--ocean-900:#26130e;--ocean-800:#4a1818;--ocean-700:#6d2923;--foam:#e7d4ad;--parchment:#ead7af;--parchment-dark:#d2b982;--ink:#2e1c16;--muted:#705b49;--gold:#aa7930;--gold-bright:#d9af5b;--coral:#9d4637;--danger:#8a2824;--line:#3e241838}html{background:#120a08}body{background:radial-gradient(at 50% -15%,#79341f3d,#0000 48rem),repeating-linear-gradient(88deg,#ffffff05 0 1px,#0000 1px 34px),repeating-linear-gradient(3deg,#0000 0 43px,#0000002e 44px 46px),#160d0a}.app-shell{background:radial-gradient(circle at 12% 20%, #ffffff38, transparent 19rem), repeating-linear-gradient(101deg, transparent 0 16px, #53311906 16px 17px), var(--parchment);box-shadow:0 0 0 1px #d5ab572e,0 0 80px #000000a6}.hero{background:radial-gradient(circle at 76% 20%,#d09d4426,#0000 23%),radial-gradient(at 24% 112%,#77251f9e,#0000 58%),repeating-linear-gradient(92deg,#0000 0 38px,#0000001f 39px 41px),linear-gradient(155deg,#130d0b 0%,#301612 54%,#571e1d 100%);border-bottom:0;min-height:350px;padding-bottom:62px}.hero:before{border-color:#d9af5b2e;width:285px;height:285px;top:70px;right:-146px;box-shadow:0 0 0 28px #d9af5b06,0 0 0 55px #d9af5b05}.hero:after{background:var(--parchment);clip-path:polygon(0 56%,4% 42%,8% 64%,13% 40%,18% 58%,24% 35%,31% 57%,38% 39%,45% 63%,52% 36%,59% 55%,66% 38%,73% 60%,80% 35%,88% 56%,94% 40%,100% 59%,100% 100%,0 100%);border:0;border-radius:0;width:auto;height:28px;inset:auto -2px -1px}.brand-mark{color:#2b1710;background:radial-gradient(circle,#d8ae5a 48%,#9b6729 50% 65%,#d8ae5a 67%);border-color:#e8c57c;border-radius:9px 18px;transform:rotate(-3deg)}.brand-mark svg{width:25px;height:25px}.nav-button,.text-button{border-radius:8px;justify-content:center;align-items:center;gap:6px;display:inline-flex}.hero h1{color:#f1dfb8;text-shadow:2px 4px #120907,0 0 28px #cc93341f}.hero-copy>p:last-child{color:#eed8acbd}.wave-line{color:#d9af5b7a}.wave-line svg{width:42px;height:42px}.setup-content{background:radial-gradient(circle at 86% 12%, #71311912, transparent 17rem), repeating-linear-gradient(101deg, transparent 0 17px, #53311906 17px 18px), var(--parchment);position:relative}.setup-section,.phase-card,.finish-card,.history-card{background:#f9e8c294;border:1px solid #4b2b194d;border-radius:12px;box-shadow:inset 0 0 0 3px #fff7de38,0 10px 24px #391b0f1f}.setup-section:first-child{margin-top:-13px}.section-heading>span,.phase-index{color:#6d351d;background:#d5ae5f24;border-color:#78461b6b;border-radius:6px 12px}.section-heading p,.phase-heading p,.eyebrow{color:#7c431f}.mode-card,.rule-mode-options>button{background:#f7e7c37a;border-color:#48291842;border-radius:9px;box-shadow:inset 0 0 0 2px #fff7e133}.mode-card.selected,.rule-mode-options>button.selected{color:#f3dfb6;background:radial-gradient(circle at 80% 12%,#d8af591f,#0000 35%),linear-gradient(145deg,#25110e,#651f22);border-color:#b98437;box-shadow:inset 0 0 0 2px #d9af5b2e,0 8px 22px #3a141247}.mode-icon{color:#a8752e}.mode-icon svg{stroke-width:1.7px;width:27px;height:27px}.mode-card.selected .mode-icon,.rule-mode-options .selected .mode-icon{color:#d9af5b}.mode-card i,.rule-mode-options i{background:#5029181a;border-radius:5px}.name-inputs label,.profile-manager input,.preset-select select{background:#fff4d875;border-color:#4b2b1940;border-radius:7px}.name-inputs label>span{color:#653820;background:#ddc796;border-radius:5px 11px}.name-inputs input::placeholder{color:#947f66}.saved-names>div button{color:#5e331e;background:#ddc99a;border-color:#5c331b3d}.profile-manager button{background:#54201e;border-radius:6px}.profile-manager button.danger{color:var(--danger);background:#e0bfa5}.starter-setup{color:#542d1c;background:#cca65b21;border:1px dashed #6b3e1d66;border-radius:8px;gap:9px;margin-top:15px;padding:13px;display:grid}.ghost-name-field{background:#b2b59147;border:1px dashed #4b4e426b;border-radius:8px;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:10px;margin-top:15px;padding:12px;display:grid}.ghost-name-field>span{min-width:0}.ghost-name-field strong,.ghost-name-field small{display:block}.ghost-name-field strong{font:700 15px Georgia,serif}.ghost-name-field small{color:var(--muted);margin-top:2px;font-size:9px;line-height:1.35}.ghost-name-field input{width:100%;min-height:45px;color:var(--ink);background:#fff4d894;border:1px solid #4b2b1947;border-radius:6px;grid-column:1/-1;padding:0 12px;font-weight:800}.starter-setup>div{align-items:center;gap:9px;display:flex}.starter-setup span{gap:2px;display:grid}.starter-setup strong{font:700 14px Georgia,serif}.starter-setup small{color:var(--muted);font-size:10px}.starter-setup select,.starter-select select{width:100%;min-height:43px;color:var(--ink);background:#ead8ae;border:1px solid #663c1d61;border-radius:6px;padding:0 11px;font-weight:800}.scoring-options label,.voyage-list article,.score-pill,.player-entry,.score-entry{background:#faeac880;border-color:#492a183d;border-radius:8px}.scoring-options label.selected{background:#dfc894;border-color:#8f4a2d;box-shadow:inset 0 0 0 1px #5b2c1921}.scoring-options label.selected i{background:#641f20;border-color:#641f20}.basic-badge{border:1px dashed #895c2259;border-radius:6px;justify-content:center;align-items:center;gap:6px;display:flex}.standard-card-strip span{color:#63371f;background:#dec798;border:1px solid #4f2c1829;border-radius:5px;align-items:center;gap:5px;display:inline-flex}.standard-card-strip svg{width:14px;height:14px}.primary-button{color:#f4dfb5;text-transform:uppercase;letter-spacing:.07em;background:linear-gradient(135deg,#321412,#741f25);border:1px solid #8a5a28;border-radius:7px;box-shadow:inset 0 0 0 2px #ddb05121,0 8px 18px #3a141140}.launch-button svg{width:21px;height:21px}.voyage-icon,.rank{color:#5e331e;background:#d9be83;border-radius:5px 10px}.voyage-icon svg{width:19px;height:19px}.voyage-main b{color:#7c431f;display:flex}.delete-voyage{color:#7d352e}.setup-shell footer{color:#ead2a39e;background:#25130e}.game-shell{background:radial-gradient(circle at 88% 7%, #7b361d14, transparent 21rem), repeating-linear-gradient(102deg, transparent 0 15px, #48281706 15px 16px), var(--parchment)}.game-shell:before{opacity:.5;background:repeating-linear-gradient(20deg,#0000 0 15px,#59311706 15px 16px)}.game-topbar .text-button{color:#602f20;background:#f1dcb266;border-color:#59311947}.starter-banner{color:#f2deb5;background:radial-gradient(circle at 100% 0,#daae5826,#0000 40%),repeating-linear-gradient(92deg,#0000 0 36px,#0000001a 37px 39px),linear-gradient(135deg,#21100d,#631f21);border:1px solid #a57334;border-radius:11px;box-shadow:inset 0 0 0 3px #d5a5481a,0 12px 28px #35141047}.compass{color:var(--gold-bright);border-radius:50%}.compass svg{width:29px;height:29px}.starter-copy{flex:1;min-width:0}.starter-select{margin-top:10px;display:block}.starter-select>span{color:#f2deb5a3;text-transform:uppercase;letter-spacing:.1em;margin:0 0 5px;font-size:8px;font-weight:900}.starter-select select{color:#f2deb5;background:#1308075c;border-color:#dcb05657;min-height:38px}.starter-banner .rule-mode-chip{border-radius:5px}.score-name{color:#654735}.avatar{color:#eedab1;background:#632122;border-radius:5px 12px}.ghost-entry,.ghost-score-card{background:#beb99552;border-color:#474e465c}.graybeard-avatar{object-fit:cover;background:#21110e;border:2px solid #b6843d;border-radius:50%;flex:0 0 44px;width:44px;height:44px;box-shadow:0 3px 9px #24100c40}.graybeard-avatar.small{border-width:1px;flex-basis:27px;width:27px;height:27px}.rule-number .graybeard-avatar.small{width:32px;height:32px}.rule-number svg{width:21px;height:21px}.ghost-history{align-items:center;display:inline-flex!important}.game-name-editor{z-index:2;margin:-4px 2px 12px;position:relative}.game-name-editor .manage-link{padding-top:2px}.ghost-name-row{align-items:center}.ghost-name-row .graybeard-avatar.small{flex:0 0 32px;width:32px;height:32px}.stepper{background:#dec99c;border-color:#512d1842;border-radius:6px}.stepper button{color:#602f20}.stepper label{border-color:#522e182e}.bonus-drawer summary{color:#78431e}.bonus-drawer summary span{align-items:center;gap:5px;display:flex}.stake-choice,.sum-check{color:#654634;background:#dac69b;border-radius:6px}.stake-choice button{color:#5f351f;border-color:#542e1845;border-radius:5px}.stake-choice button.selected{color:#f2deb6;background:#641f20}.destroyed-tricks-card,.ghost-score-card{border-radius:8px}.destroyed-tricks-card>span{color:#793b28;display:flex}.destroyed-tricks-card>span svg{width:28px;height:28px}.victory-mark{color:#2b1710;background:var(--gold-bright);border-radius:8px 22px}.victory-mark svg{width:37px;height:37px}.final-scores div{background:#d8c29494;border-radius:6px}.rules-fab{color:#f1dbb0;background:#2e110ff5;border-radius:7px;align-items:center;display:flex}.toast{color:#f1dbb0;background:#401414f7;border:1px solid #d7ab5366;border-radius:7px}.error-banner{border-radius:6px}.modal-backdrop{background:#120806c7}.rules-sheet{background:linear-gradient(#efdfbd,#dbc18c);border-radius:14px 14px 0 0}.icon-button{border-radius:7px;place-items:center;display:grid}.icon-button svg{width:21px;height:21px}.rule-tabs{background:#4e26171c;border-radius:7px}.rule-tabs button{border-radius:5px}.rule-tabs button.selected{background:#641f20}.rules-content p,.pirate-abilities{color:#654b3a}.card-reference>span{background:#f9e7c075;border-radius:6px}.card-reference b{color:#7c431f;display:flex}.card-reference b svg{width:20px;height:20px}.ghost-rule{background:#b1b49057}@media (max-width:390px){.starter-banner{align-items:flex-start;gap:12px;padding:18px 15px}.compass{flex-basis:48px;width:48px;height:48px}.mode-card{min-height:148px}.mode-card i{max-width:68px}}
