/* The voyage shell and ship's archives. Battlefield layout is intentionally independent. */
:root{--voyage-ink:#283d45;--voyage-muted:#655c4a;--voyage-gold:#bc8738;--voyage-paper:#f5e7c7;--voyage-line:#b9986190;--voyage-sea:#145465}
html:has(#home-screen:not([hidden])),html:has(#mode-screen:not([hidden])),body:has(#home-screen:not([hidden])),body:has(#mode-screen:not([hidden])){overflow:hidden;min-width:0}
.home-screen{position:fixed;inset:0;z-index:12000;display:flex;align-items:center;overflow:auto;background:#147fa4 url('./assets/ui/grand-line-voyage.png') center/cover no-repeat;color:#fff}
.home-screen[hidden]{display:none}
.home-screen:before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#04355275,transparent 68%),linear-gradient(0deg,#052c4c66,transparent 25%)}
.home-content{position:relative;display:flex;flex-direction:column;align-items:center;width:54%;padding:42px 4vw;text-align:center;margin-top:-2vh;box-sizing:border-box}
.home-crest{width:clamp(88px,10vw,150px);filter:drop-shadow(0 3px 1px #163d50) drop-shadow(0 8px 14px #092c4277);margin-bottom:20px}
.home-crest svg{width:100%;overflow:visible;fill:none;stroke:#f4d790;stroke-width:1.5}
.home-crest .compass-point{fill:#efd697;stroke:#694a25;stroke-width:2}
.home-crest .straw-hat{fill:#e6b95e;stroke:#6b4525;stroke-width:3;stroke-linejoin:round}
.home-crest .hat-band{fill:#bb3d35;stroke:#743322;stroke-width:1}
.home-content h1{margin:0;line-height:1.08;filter:drop-shadow(0 4px 0 #153d51);font-family:Georgia,'Malgun Gothic',serif;letter-spacing:1px}
.home-content h1 span{display:block;font-size:clamp(32px,4.3vw,76px);font-weight:900;white-space:nowrap;-webkit-text-stroke:1px #244454;text-shadow:0 2px 0 #193c50,0 6px 24px #033c6580}
.home-content h1 strong{display:block;margin-top:12px;color:#ffe3a0;letter-spacing:.22em;padding-left:.22em;font-size:clamp(25px,3.2vw,56px);text-shadow:0 2px 1px #654218;-webkit-text-stroke:.6px #69502b}
.home-subtitle{margin:25px 0 0;font-size:clamp(14px,1.15vw,20px);font-weight:700;letter-spacing:.28em;padding-left:.28em;text-shadow:0 2px 4px #092e45}
.home-rule{display:flex;align-items:center;gap:14px;width:65%;margin:26px 0;color:#fff0b9}
.home-rule:before,.home-rule:after{content:'';flex:1;height:1px;background:linear-gradient(90deg,transparent,#f6d694)}
.home-rule:after{transform:rotate(180deg)}
.voyage-start{display:flex;align-items:center;justify-content:space-between;gap:50px;min-width:270px;padding:18px 28px;border:2px solid #ffdf93;border-radius:3px;background:linear-gradient(#dabb74,#9e6e2e);color:#fff7db;font-size:23px;font-weight:800;text-shadow:0 2px 2px #583b22;box-shadow:inset 0 0 0 3px #725022, inset 0 0 0 4px #e9cc8b,0 5px 0 #4c3520,0 10px 30px #04294180;transition:transform .18s,filter .18s}
.voyage-start b{font-size:28px;font-weight:400}
.voyage-start:hover:not(:disabled){transform:translateY(-3px);filter:brightness(1.15)}
.voyage-start:active:not(:disabled){transform:translateY(2px)}
.voyage-start:disabled{opacity:.72;cursor:wait}
.home-status{height:20px;margin:23px 0 0;font-size:12px;text-shadow:0 1px 4px #000;max-width:360px}
#mode-screen{background:linear-gradient(#073f586b,#032c457d),url('./assets/ui/grand-line-voyage.png') center/cover fixed;backdrop-filter:none;padding:clamp(16px,4vw,54px)}
#mode-screen .mode-panel{width:min(1100px,100%);max-height:100%;padding:clamp(22px,3vw,44px);position:relative;border-radius:7px}
#mode-screen .mode-panel:not(:has(.mode-choices)):not(:has(.room-slots)){width:min(760px,100%)}
#mode-screen .mode-panel>h1{margin:12px 0 10px;font-size:clamp(25px,3vw,38px);font-weight:900;letter-spacing:-1px}
#mode-screen .voyage-subtitle{margin:0 0 28px;font-size:14px}
#mode-screen .mode-choices{gap:22px}
#mode-screen .mode-choices>button{position:relative;display:flex;flex-direction:column;overflow:hidden;padding:0 22px 20px;background:#fcf3dc;border:1px solid #b59962;border-radius:3px;box-shadow:0 4px 9px #6b461223,inset 0 0 0 4px #ddc28c40;transition:transform .2s,box-shadow .2s;text-align:left}
#mode-screen .mode-choices>button:hover{transform:translateY(-5px);box-shadow:0 10px 24px #6b46123d;outline:none;border-color:#92661e}
#mode-screen .mode-art{height:clamp(115px,15vw,180px);width:calc(100% + 44px);margin:0 -22px 20px;display:grid;place-items:center;background-size:cover;background-position:center 35%;border-bottom:4px solid #c5a366;position:relative;font-style:normal}
#mode-screen .mode-art:before{content:'';position:absolute;inset:0;background:linear-gradient(transparent,#072b466e)}
#mode-screen #mode-normal .mode-art{background-image:url('./assets/environment/marineford-reference.png')}
#mode-screen #mode-practice .mode-art{background-image:url('./assets/environment/sabaody.png')}
#mode-screen #mode-online .mode-art{background-image:url('./assets/environment/sunny.png')}
#mode-screen .mode-art b{display:grid;place-items:center;z-index:1;font-size:38px;width:70px;height:70px;border:2px solid #f3d993;border-radius:50%;color:#ffeab9;background:#103d50d6;box-shadow:0 0 0 5px #13354766,0 4px 8px #0004;text-shadow:0 2px 1px #032a3e}
#mode-screen .mode-choices>button>span{color:#8b6026;font-size:11px;font-weight:800;letter-spacing:1px}
#mode-screen .mode-choices strong{font-size:26px;color:#213d4a;margin:10px 0 14px;font-weight:900}
#mode-screen .mode-choices p{color:#675b46;font-size:13px;line-height:1.9;margin-bottom:22px}
#mode-screen .mode-choices em{display:flex;justify-content:space-between;font-style:normal;font-size:12px;font-weight:800;color:#8b5c22;border-top:1px solid #b8955b66;padding-top:15px;margin-top:auto}
#mode-screen .mode-footer{gap:10px;flex-wrap:wrap;margin-top:25px}
#mode-screen :is(.mode-footer,.join-controls) button{background:#e7d4a8;color:#44534a;border-color:#b59a65}
#mode-screen :is(.mode-footer,.join-controls) button.primary{background:linear-gradient(#216b7b,#144455);color:#fff8e3;border-color:#e2bd76}
#mode-screen .mode-error{color:#a0382b!important}
#mode-screen .mode-error:empty{display:none}
#mode-screen .room-code{color:#a76a1f;letter-spacing:5px}
#mode-screen .room-seat{border-color:#b39969;background:#dec69925;color:var(--voyage-ink)}
#mode-screen .room-seat.occupied{background:#fffbeb;border-color:#a48c56}
#mode-screen .room-seat>span{color:#a2742d}
#mode-screen .room-seat>small{color:#6f654f}
#mode-screen .room-slots{margin:22px 0}

/* Brass-framed parchment is shared by all information and selection windows. */
:is(#modal,.item-dialog,.augment-dialog,.anomaly-dialog,.loot-choice-dialog,.encounter-panel,.mode-panel){
 color:var(--voyage-ink);border:2px solid #ad8548;border-top:5px solid #c6a260;border-radius:7px;
 background-color:var(--voyage-paper);
 background-image:radial-gradient(ellipse at 95% 8%,#aa845019 0,transparent 46%),repeating-linear-gradient(0deg,#90642105 0 1px,transparent 1px 5px),linear-gradient(115deg,#fff5dd,#efdfb9);
 box-shadow:inset 0 0 0 4px #fff3cb,inset 0 0 0 5px #b3975866,0 22px 80px #031c38a6;
 --text:#283d45;--muted:#655c4a;--gold:#8d601e;--border:#b99966;
 scrollbar-color:#af8951 #e7d7b1;text-shadow:none;color-scheme:light;
}
:is(#modal,.item-dialog,.augment-dialog,.anomaly-dialog)::backdrop{background:#063c526e;backdrop-filter:blur(7px)}
:is(#modal,.item-dialog,.augment-dialog,.anomaly-dialog,.loot-choice-dialog,.encounter-panel,.mode-panel) :is(h1,h2,h3,h4){color:#203e4b;text-shadow:none;font-weight:800}
:is(#modal,.item-dialog,.augment-dialog,.anomaly-dialog,.loot-choice-dialog,.encounter-panel,.mode-panel) :is(p,small,label){color:#665b46;text-shadow:none}
:is(#modal,.item-dialog,.augment-dialog,.anomaly-dialog,.loot-choice-dialog,.encounter-panel,.mode-panel) :is(.section-eyebrow,.item-header small){color:#916427;font-size:10px;font-weight:800;letter-spacing:2px}
:is(#modal,.item-dialog,.augment-dialog,.anomaly-dialog,.loot-choice-dialog,.encounter-panel,.mode-panel) :is(input:not([type=range]):not([type=checkbox]),select){background:#fffae9;color:#2e454d;border:1px solid #b39966;border-radius:3px;box-shadow:inset 0 2px 4px #94704212;font-family:inherit;min-height:38px;max-width:100%}
:is(#modal,.item-dialog,.augment-dialog,.anomaly-dialog,.loot-choice-dialog,.encounter-panel,.mode-panel) input::placeholder{color:#8c8069}
:is(#modal,.item-dialog,.augment-dialog,.anomaly-dialog,.loot-choice-dialog,.encounter-panel,.mode-panel) button{color:#485246;border-color:#b99b65;border-radius:3px;text-shadow:none}
:is(#modal,.item-dialog,.augment-dialog,.anomaly-dialog,.loot-choice-dialog,.encounter-panel,.mode-panel) button:hover:not(:disabled){border-color:#997028;background-color:#e6cc95;color:#263d45}
:is(#modal,.item-dialog,.augment-dialog,.anomaly-dialog,.loot-choice-dialog,.encounter-panel,.mode-panel) :is(button.active,button.selected,button[aria-pressed=true]){background:#155368;color:#fff2d0;border-color:#d1a856;box-shadow:inset 0 -2px 0 #103948}
:is(#modal,.item-dialog,.augment-dialog,.anomaly-dialog,.loot-choice-dialog,.encounter-panel,.mode-panel) .primary{color:#fff8e3;background:linear-gradient(#216b7b,#144455);border:1px solid #e2bd76;box-shadow:0 2px 0 #153b46;font-weight:700}
:is(#modal,.item-dialog,.augment-dialog,.anomaly-dialog,.loot-choice-dialog,.encounter-panel,.mode-panel) .primary:hover:not(:disabled){background:#276c7b;color:#fff8e3}
:is(#modal,.item-dialog,.augment-dialog,.anomaly-dialog,.loot-choice-dialog,.encounter-panel,.mode-panel) :is(.close-button,#item-close){width:36px;height:36px;background:#235469;color:#ffebc0;border:1px solid #c8a467;box-shadow:0 2px 0 #153a4b;font-size:24px;line-height:1}
:is(#modal,.item-dialog,.augment-dialog,.anomaly-dialog,.loot-choice-dialog,.encounter-panel,.mode-panel) :is(button,input,select,a):focus-visible,.voyage-start:focus-visible{outline:3px solid #267f9c;outline-offset:4px}
.voyage-start:focus-visible{outline-color:#fff3b6}
:is(#modal,.item-dialog,.augment-dialog,.anomaly-dialog) :is(.modal-top,.item-header,.augment-header){border-bottom:1px solid #ba9b635c;padding-bottom:12px}
:is(#modal,.item-dialog,.augment-dialog,.anomaly-dialog) :is(.modal-intro,.model-footer,.item-footer,.augment-footer,.anomaly-note,.rules-note,.trial-caption,.asset-caption){color:#706149;line-height:1.8}
#modal .model-stage{background:radial-gradient(ellipse at 50% 38%,#fff8e599,transparent 68%),repeating-linear-gradient(0deg,transparent 0 35px,#9c845114 36px 37px),repeating-linear-gradient(90deg,transparent 0 35px,#9c845114 36px 37px),#e3d4ae;border:1px solid #b99d65;border-radius:3px;box-shadow:inset 0 0 30px #ad8b4130}
#modal .stage-orbit{border:1px solid #8d794047;width:260px;height:260px}
#modal .stage-orbit:after{border-color:#8d794045}
#modal .model-stage{align-self:start}
#modal .modal-top .section-eyebrow{flex:1}
#modal:not(.trial-modal) .modal-top:before{content:'✦';display:grid;place-items:center;width:30px;height:30px;margin-right:10px;border:1px solid #b79657;border-radius:50%;color:#987337;font-size:23px}
#modal #model-gear{color:#75633c}
#modal .mana-rule,#modal .mana-rule b{color:#476d70}
#modal .model-rarity,#modal .model-rarity b{color:#93671d}
#modal .model-traits{color:#6f7154}
#modal .model-stat-grid{border-color:#ad8e595c;background:#fff8e538;padding:15px 10px;gap:10px}
#modal .model-stat-grid>div{color:#76694e}
#modal .model-stat-grid strong{color:#244759}
#modal .model-skill{padding:16px;border:1px solid #bca47177;border-left:3px solid #ac823a;background:#fff6df99}
#modal .model-skill>span{color:#96702b}
#modal .model-skill h4{color:#855319}
#modal .model-skill p{color:#524d3f}
#modal .animation-controls{padding:8px;gap:5px;flex-wrap:wrap;background:#e9dab8;border-top:1px solid #b4a072;width:100%;justify-content:center}
#modal .animation-controls button{padding:8px 12px;font-size:12px}
#modal :is(.model-footer,.rules-tabs,.synergy-catalog-nav,.synergy-book-units-head){border-color:#b99c6977}
#modal .synergy-book-item{background:#fff6df;color:#314c54;border-color:#c6b080;border-left-color:var(--trait-color);box-shadow:0 1px 2px #5e401510}
#modal .synergy-book-item small{color:#7b6c52}
#modal .synergy-book-item.active small{color:#e4d5b1}
#modal .synergy-book-detail{background:radial-gradient(circle at 95% 0,#d4bb7c22,transparent 50%),#fff7df;border-color:#b99c69;box-shadow:inset 0 0 0 4px #dbc79533}
#modal .synergy-book-kicker{color:#a1742e}
#modal .synergy-book-effect{color:#4d5145;background:#ead9ae77;border-left-color:#b08232}
#modal .trait-breakpoints span{background:#1a5262;color:#f7e8bc;border-color:#b59b62}
#modal .synergy-book-units-head span{color:#7f6e50}
#modal .synergy-book-unit{background:#eadbb766;border-color:#c5ad79;color:#344b4f}
#modal .synergy-cost{background:#204d5c;color:#fff0d0;border:1px solid #b59451;border-radius:3px}
#modal .practice-recruit-unit{background:#fff5d9;border-color:#c2a66d;color:#283d45;box-shadow:0 2px 4px #6e49151a}
#modal .practice-recruit-unit .recruit-portrait{background:radial-gradient(ellipse,#ecdebb,#d0bd92);border-bottom:1px solid #bca36e}
#modal .recruit-unit-action{color:#815b22;border-color:#c1a975}
#modal .recruit-unit-action b{color:#376e65}
#modal .practice-recruit-status{color:#36654b;background:#dddfb333}
#modal .rule-grid{gap:18px}
#modal .rule-grid article{padding:21px;background:#fff7dfaa;border:1px solid #bfa77888;box-shadow:0 3px 6px #8a651512}
#modal .rule-grid article>span{color:#a2752e;font-size:10px;font-weight:700}
#modal .rule-grid h3{font-weight:800;font-size:17px}
#modal .rule-grid p{font-size:13px;color:#5e5747}
#modal :is(th,td){border-color:#b99c6955;color:#4b5047}
#modal th{background:#dccaa066;color:#34515a}
#modal .demo-note{background:#ddcba744;border-color:#bba474;color:#6b5a3e}
#modal .rules-tabs button{padding:10px 15px}
#modal .trial-controls,#modal .trial-actions{background:#e5d5ad;border-color:#b79a62}
#modal :is(#trial-log,.trial-stage){background:#fffae9;color:#476052;border-color:#bfa678}
.item-dialog .item-loadout{padding:14px;background:#e9d9b366;border:1px solid #bca27066;border-radius:3px;margin-top:14px}
.item-dialog .item-loadout-stats{color:#8c641e;border-color:#b79c65}
.item-dialog .item-detail{background:#fff7e1;border-color:#bca26f;border-radius:3px;box-shadow:inset 0 0 0 4px #d7c28c22}
.item-dialog .item-tile{background:#fff5dc;color:#3e4c45;border-color:#c5ad7b;box-shadow:0 2px 4px #75501517}
.item-dialog .item-tile img{border:1px solid #ac8b4f;box-shadow:0 2px 4px #3d322347}
.item-dialog .item-tile.active{background:#d6c194;color:#243e46;outline-color:#9b6d27}
.item-dialog .item-tile.radiant{border-color:#c38c22}
.item-dialog .item-tile.artifact{border-color:#96719d}
.item-dialog .item-tile.support{border-color:#597ab4}
.item-dialog .item-tile.emblem{border-color:#5b956d}
.item-dialog :is(.item-empty-slot,.item-slots button){background:#e3d2ad;color:#756345;border-color:#b6a076}
.item-dialog .item-footer a{color:#316775}
.item-dialog .recipe-result,.item-dialog .component-recipe{background:#f6ebcb;border-color:#b79b64;color:#3b5052}
.item-dialog .item-filters button{padding:7px 10px;background:#e5d6b0}
.augment-dialog .augment-card{background:radial-gradient(ellipse at 50% 20%,#fffae6,#eed39b);border:2px solid #bc9348;box-shadow:inset 0 0 0 4px #fff5d2,inset 0 0 0 5px #c7a968;min-height:310px}
.augment-dialog .augment-emblem{color:#805d27;border:2px solid #b58b3e;background:radial-gradient(circle,#fff5b8,#d8a745);box-shadow:0 0 0 6px #c2a05d24,inset 0 0 0 4px #fff4b77a;text-shadow:0 1px 1px #fff9d0}
.augment-dialog .augment-card>strong{color:#4b432e}
.augment-dialog :is(.augment-card-kicker,.augment-effect,.augment-select){color:#846020}
.augment-dialog .augment-select{border-color:#b79854}
.augment-dialog .augment-select b{color:#426f71}
.augment-dialog .augment-reroll{background:linear-gradient(#efe1bb,#d2b57e)}
.augment-dialog .augment-rounds{color:#74654b}
.augment-dialog .augment-rounds span{border-color:#bda573;background:#eadcbc}
.augment-dialog .augment-rounds .current{background:#1d5b6c;color:#fff0bd;border-color:#cdad65}
.augment-dialog .augment-rounds .complete{color:#32664d;background:#d2d9b8}
.augment-dialog .augment-intro strong{color:#9a6b25}
.augment-dialog .augment-history article{background:#fff4d6;border:1px solid #bba16b;border-top:4px solid #b7934f}
.augment-dialog .augment-history article>strong{color:#84632b}
.augment-dialog .augment-history article>span{color:#7d745b}
.anomaly-dialog .anomaly-catalog{border-color:#b9a16d}
.anomaly-dialog :is(.anomaly-timing,.anomaly-empty,.anomaly-orbit-label){color:#715b7c}
.anomaly-dialog .anomaly-timing strong{color:#855b98}
.anomaly-dialog .anomaly-hero b{color:#374656}
.anomaly-dialog .anomaly-actions button{background:#e4d3b0}
.anomaly-dialog .anomaly-actions .anomaly-confirm{background:linear-gradient(120deg,#71548e,#3c6c81);color:#fff3dd;border-color:#a791b5}
.anomaly-dialog .anomaly-actions button b{color:#a0782b}
.anomaly-dialog .anomaly-card{background:linear-gradient(125deg,#e4e0ed,#fff6e0);border:1px solid #b2a2c5;box-shadow:inset 0 0 0 4px #ffffff40}
.anomaly-dialog .anomaly-card>span{color:#795889}
.anomaly-dialog .anomaly-unit-list button{background:#efe2bd;border-color:#bca776}
.anomaly-dialog .anomaly-unit-list button small{color:#91671e}
.anomaly-dialog .anomaly-orbit{background:radial-gradient(ellipse,#cfb7ea55,transparent 68%)}
.anomaly-dialog .anomaly-portal{border-color:#9766b0}
.anomaly-dialog .anomaly-orbit strong{color:#45475c}
.loot-choice-dialog .loot-choice-grid>button{background:#fff5d9;border-color:#c0a56b;color:#33484c}
.loot-choice-dialog .loot-choice-grid strong{color:#8c641f}
.encounter-panel .encounter-content{background:transparent}
.encounter-panel :is(.encounter-effect,.encounter-detail){background:#fff4d7;border-color:#c2a16a;color:#4e5143}
.encounter-panel .encounter-portrait{border:3px double #b08b45;background:#d4b37b;box-shadow:0 5px 12px #5e441635}
.encounter-panel :is(.encounter-choice,.encounter-treasure-item,.encounter-history article){background:#fff4d8;border-color:#ba9c65;color:#3a4f51}
.encounter-panel .encounter-content h3{color:#8e6527}
.encounter-panel button{background:#ead6a7}
.encounter-panel [data-enc-clock]{color:#906325}
.item-dialog .loot-probabilities b{color:#976722}

/* The shared draft is an ocean-side treasure chart, with the same readable paper frame. */
dialog.carousel-dialog{color:#29474e;background:repeating-linear-gradient(0deg,#98672905 0 1px,transparent 1px 5px),linear-gradient(115deg,#fff5dd,#eddeb8);border:2px solid #ad8548;border-top:5px solid #c6a260;border-radius:7px;box-shadow:inset 0 0 0 4px #fff3cb,inset 0 0 0 5px #b3975866,0 22px 80px #031c38a6;scrollbar-color:#af8951 #e7d7b1;color-scheme:light}
.carousel-dialog::backdrop{background:#063c526e;backdrop-filter:blur(7px)}
.carousel-dialog .carousel-header{border-bottom:1px solid #b7986366;padding-bottom:10px}
.carousel-dialog .carousel-header h2{color:#244453;font-weight:800}
.carousel-dialog :is(.carousel-header small,.carousel-clock){color:#8e6528}
.carousel-dialog .carousel-header>button{color:#fff0c7;background:#245365;border:1px solid #bf9b53;border-radius:3px;width:36px;height:36px}
.carousel-dialog .carousel-help,.carousel-dialog .carousel-footer small{color:#6e6044}
.carousel-dialog select{background:#fff9e5;color:#384d4b;border-color:#b59a64}
.carousel-dialog .carousel-arena{background:radial-gradient(ellipse at center,#f0e1bdee 0 35%,#b29a6ee0 35.5% 37%,#dfc796b8 37.5% 51%,#78552ddd 51.5% 53%,#0f6d9680 53.5%),url('./assets/ui/grand-line-voyage.png') center/cover;border:2px solid #947641;box-shadow:inset 0 0 40px #2147475c;border-radius:9px}
.carousel-dialog .carousel-arena:before{border:3px double #f0d49a99;box-shadow:0 0 0 8px #f0d49a19}
.carousel-dialog .carousel-orbit{border-color:#92723e99}
.carousel-dialog .carousel-center>span{color:#8d682b}
.carousel-dialog .carousel-center>strong{color:#285766}
.carousel-dialog .carousel-center>small{color:#6b604a}
.carousel-dialog .carousel-offer{background:linear-gradient(#fff4d9eb,#e4d1a8);border-color:#b89b60;color:#2f4c50;box-shadow:0 5px 10px #4b3b3b36;border-radius:4px}
.carousel-dialog .carousel-offer>small{color:#755c2e}
.carousel-dialog .carousel-order>div{background:#e8d8b2;color:#6b604a;border-color:#b69b65;border-radius:3px}
.carousel-dialog .carousel-order>div.released{background:#225e6d;color:#ffedbd;border-color:#c9a258}
.carousel-dialog .carousel-footer button{background:#e6cf9f;border:1px solid #b29a61;border-radius:3px;color:#344d50}
.carousel-dialog button:focus-visible{outline:3px solid #227594;outline-offset:3px}

@media(max-width:760px){
 .home-content{width:65%;padding:30px 4vw}
 .home-content h1 span{font-size:clamp(28px,5vw,42px)}
 .home-content h1 strong{font-size:30px}
 .voyage-start{min-width:225px;padding:16px 24px;font-size:21px}
 #mode-screen .mode-panel{padding:24px}
 #mode-screen .mode-choices{grid-template-columns:1fr}
 #mode-screen .mode-choices>button{display:grid;grid-template-columns:105px 1fr;column-gap:18px;padding:14px;min-height:150px}
 #mode-screen .mode-art{width:105px;height:100%;grid-row:1/5;margin:0;border:1px solid #bea168;border-radius:2px;background-position:center}
 #mode-screen .mode-art b{width:50px;height:50px;font-size:28px}
 #mode-screen .mode-choices strong{font-size:23px;margin:7px 0}
 #mode-screen .mode-choices p{margin:0 0 10px;font-size:12px}
 #mode-screen .mode-choices em{padding-top:9px}
}
@media(max-width:480px){
 .home-screen{background-position:65% center}
 .home-screen:before{background:linear-gradient(90deg,#0431498c,#06374b20),linear-gradient(0deg,#042c4ecc,transparent 65%)}
 .home-content{width:100%;align-self:flex-end;padding:26px 20px;margin:0 0 4vh}
 .home-crest{width:80px;margin-bottom:12px}
 .home-content h1 span{font-size:38px}.home-content h1 strong{font-size:30px}
 .home-subtitle{font-size:13px;margin-top:20px}.home-rule{margin:18px 0}
 #mode-screen{padding:12px}#mode-screen .mode-panel{padding:20px 16px}
 #mode-screen .mode-choices>button{grid-template-columns:75px 1fr;gap:5px 12px}
 #mode-screen .mode-art{width:75px}#mode-screen .mode-choices p{line-height:1.7}
 #mode-screen .mode-choices>button>span{font-size:10px}
 #mode-screen .mode-choices strong{font-size:21px}
 .augment-dialog .augment-candidates{grid-template-columns:1fr}
 .augment-dialog .augment-card{min-height:235px}
 .augment-dialog .augment-emblem{margin:12px 0}
}
@media(max-height:600px) and (min-width:481px){
 .home-content{padding:20px 3vw;margin:0}.home-crest{width:64px;margin-bottom:12px}
 .home-content h1 span{font-size:36px}.home-content h1 strong{font-size:27px;margin-top:7px}
 .home-subtitle{margin-top:14px;font-size:12px}.home-rule{margin:16px 0}
 .voyage-start{padding:11px 22px;font-size:20px;min-width:220px}.home-status{margin-top:14px;font-size:10px}
 .augment-dialog .augment-card{min-height:180px;height:auto}.augment-dialog .augment-emblem{margin:10px 0 7px}
}
@media(prefers-reduced-motion:reduce){.voyage-start,#mode-screen .mode-choices>button{transition:none}}
.rank-form{display:grid;gap:16px;max-width:440px;margin:24px auto;text-align:left}.rank-form .mode-label{display:grid;gap:7px}.rank-form input:not([type=checkbox]){width:100%;box-sizing:border-box;padding:12px;border:1px solid #bda06b;border-radius:6px;background:#081d2bea;color:#fff;font:inherit}.rank-form input[type=checkbox]{accent-color:#dfb955}.rank-summary{display:grid;gap:9px;padding:22px;margin:18px 0;border:1px solid var(--rank-color);border-radius:10px;background:linear-gradient(125deg,#0b2a39ee,#10212cec);box-shadow:0 8px 24px #0005}.rank-summary strong{color:var(--rank-color);font-size:24px}.rank-summary>b{font-size:36px;color:#fff4ca}.rank-summary span{color:#dae5e9}.rank-rules{margin-top:20px;text-align:left;padding:16px;background:#061a26b8;border:1px solid #b99b6155;border-radius:8px}.rank-rules summary{cursor:pointer;color:#f4d482}.rank-tier-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;font-size:13px}.rank-table-wrap{max-height:48vh;overflow:auto;margin:20px 0;border:1px solid #b99b6177;border-radius:8px}.rank-table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;background:#071e2ce8}.rank-table th,.rank-table td{padding:12px;border-bottom:1px solid #b99b6133}.rank-table th{position:sticky;top:0;background:#173342;color:#f8d88b}.rank-last{padding:12px;background:#122c3ccc;border-radius:6px}.server-link{display:inline-block;padding:14px;margin:16px}

#mode-screen .rank-rules p,#mode-screen .rank-last{color:#e2ecf2}#mode-screen .rank-table td{color:#e2ecf2}#mode-screen .rank-tier-list span{line-height:1.7}

#mode-screen .room-bot-tier{display:grid;gap:5px;font-size:12px}#mode-screen .room-bot-tier select{max-width:100%;padding:7px;background:#133345;color:#fff1c8;border:1px solid #b89960;border-radius:4px}#mode-screen .room-seat{min-width:0}
