:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--ink:#1f2523;--ink-soft:#56615d;--paper:#f5f0e5;--panel:#fffaf0;--panel-strong:#fff3d0;--line:#d4c6a8;--teal:#2f837c;--teal-deep:#1d5f59;--red:#c9493d;--amber:#d99a2b;--violet:#5863a8;--green:#5d8c45;--shadow:0 16px 40px #1f252329;--tile-empty:#fffdf8;--tile-border:#1f252333;--peril-fair:#40c900;--peril-risky:#ffcf00;--peril-hazardous:#ff4b08;--peril-perilous:#b8002b;--board-grid-line:#141916;font-family:Trebuchet MS,Gill Sans,Verdana,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;color:var(--ink);background:linear-gradient(90deg,#1f25230b 1px,#0000 1px) 0 0/34px 34px,linear-gradient(#1f25230b 1px,#0000 1px) 0 0/34px 34px,radial-gradient(circle at 20% 20%,#d99a2b29,#0000 34rem),linear-gradient(135deg,#efe5d0 0%,#f8f1df 54%,#e5ede5 100%);margin:0}button,input,select,textarea{font:inherit}button{color:var(--ink);cursor:pointer;white-space:nowrap;background:#fff8e8;border:1px solid #1f25232e;border-radius:7px;justify-content:center;align-items:center;gap:.42rem;min-height:2.35rem;padding:.48rem .7rem;transition:transform .12s,box-shadow .12s,background .12s;display:inline-flex}button:hover{background:#fff1cc;transform:translateY(-1px);box-shadow:0 7px 20px #1f25231a}button:disabled{cursor:not-allowed;opacity:.48;transform:none}button:disabled:hover{box-shadow:none;background:#fff8e8}button:active{transform:translateY(0)}.danger-action{color:var(--red);background:#fff0ed;border-color:#c9493d61}.danger-action:hover{background:#ffe1dc}input,select,textarea{border:1px solid var(--line);color:var(--ink);background:#fffdf8;border-radius:6px;width:100%;min-height:2.25rem;padding:.5rem .6rem}textarea{resize:vertical;min-height:4.5rem}label{color:var(--ink-soft);gap:.36rem;font-size:.82rem;font-weight:700;display:grid}h1,h2,h3,p{margin:0}h1{letter-spacing:0;font-size:clamp(1.35rem,2.7vw,2.05rem)}h2{font-size:1.35rem}h3{font-size:1rem}.app-shell{max-width:1760px;min-height:100vh;margin:0 auto;padding:1rem}.topbar{grid-template-columns:minmax(16rem,1fr) auto;align-items:center;gap:1rem;margin-bottom:1rem;display:grid}.app-shell.is-play-mode{padding-top:.6rem}.app-shell.is-play-mode .topbar{margin-bottom:.55rem}.app-shell.is-play-mode .brand-mark{width:2.55rem;height:2.55rem}.app-shell.is-play-mode h1{font-size:clamp(1.35rem,2vw,1.75rem);line-height:1}.brand-lockup,.section-title,.player-heading,.inline-title,.toolbar-actions,.inline-controls,.draw-actions{align-items:center;gap:.65rem;display:flex}.brand-mark{background:var(--ink);color:#fff8e8;border-radius:8px;place-items:center;width:3rem;height:3rem;display:grid}.eyebrow{color:var(--teal-deep);letter-spacing:.08em;text-transform:uppercase;font-size:.72rem;font-weight:800}.mode-switch{background:#fffaf0b8;border:1px solid #1f252324;border-radius:8px;padding:.25rem;display:flex}.mode-switch button{background:0 0;border-color:#0000;min-height:2.25rem}.mode-switch button.active{background:var(--ink);color:#fff8e8}.panel{box-shadow:var(--shadow);background:#fffaf0eb;border:1px solid #1f252324;border-radius:8px}.notice{background:var(--ink);color:#fff8e8;justify-content:flex-start;width:100%;margin-bottom:1rem}.version-update-toast{border:1px solid #1f252333;border-left:5px solid var(--amber);z-index:60;background:#fffaf0fa;border-radius:8px;align-items:center;gap:.85rem;max-width:min(25rem,100vw - 1.5rem);padding:.75rem;display:flex;position:fixed;top:1rem;right:1rem;box-shadow:0 18px 50px #1f252338}.version-update-toast div{gap:.12rem;min-width:0;display:grid}.version-update-toast strong{font-size:.98rem;line-height:1.12}.version-update-toast span{color:var(--ink-soft);font-size:.82rem;font-weight:700}.version-update-toast button{flex:none}.primary-action{background:var(--teal);border-color:var(--teal-deep);color:#fff;font-weight:800}.primary-action:hover{background:var(--teal-deep)}.muted{color:var(--ink-soft);font-size:.86rem}.join-stage{grid-template-columns:minmax(0,1.25fr) minmax(20rem,.75fr);align-items:stretch;gap:1rem;min-height:calc(100vh - 7rem);display:grid}.join-art{box-shadow:var(--shadow);background-color:#26302d;background-image:linear-gradient(90deg,#fffaf00d 1px,#0000 1px),linear-gradient(#fffaf00d 1px,#0000 1px),radial-gradient(circle at 22% 18%,#d99a2b2e,#0000 28rem),linear-gradient(135deg,#2f837c38,#0000 45%),linear-gradient(45deg,#c9493d24,#0000 35%),none;background-position:0 0,0 0,0 0,0 0,0 0,0 0;background-repeat:repeat,repeat,repeat,repeat,repeat,repeat;background-size:32px 32px,32px 32px,auto,auto,auto;background-attachment:scroll,scroll,scroll,scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box,padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box,border-box,border-box,border-box;border-radius:8px;min-height:34rem;position:relative;overflow:hidden}.landing-board-wrap{transform-origin:18% 18%;width:min(62rem,116%);position:absolute;top:7%;left:7%;transform:rotate(-5deg)}.landing-board-grid.board-grid{--board-gap:clamp(2px, .44vw, 5px);padding:var(--board-gap);border-color:#fffaf01a;width:100%;box-shadow:0 28px 70px #00000047}.landing-board-cell.board-cell{border-color:#1f25233d;border-radius:4px;padding:clamp(.05rem,.36vw,.22rem)}.landing-board-cell .tile-icon-slot{width:clamp(1rem,42%,2.3rem);height:clamp(1rem,42%,2.3rem);margin-top:0}.landing-board-cell .tile-icon-slot.image{width:clamp(1.2rem,55%,3rem);height:clamp(1.2rem,55%,3rem)}.landing-board-cell .cell-kind{font-size:clamp(.42rem,.72vw,.68rem)}.landing-token-stack{pointer-events:none;z-index:5;place-items:center;display:grid;position:absolute;inset:.24rem}.landing-player-token.player-token{border-width:3px;width:clamp(2.2rem,6vw,3.6rem);height:clamp(2.2rem,6vw,3.6rem);padding:0;font-size:clamp(.76rem,1.6vw,1.2rem);box-shadow:0 5px 14px #0000003d,inset 0 0 0 1px #ffffff61}.landing-card-hand{z-index:7;width:18rem;height:13rem;display:block;position:absolute;bottom:10%;left:15%}.sample-card{color:var(--ink);transform-origin:50% 90%;background:#fffdf8;border:1px solid #1f252324;border-radius:8px;gap:.28rem;width:7.25rem;height:10.4rem;padding:.74rem;display:grid;position:absolute;box-shadow:0 20px 45px #0000003d}.sample-card:before{content:"";border-radius:8px 8px 0 0;height:.38rem;position:absolute;top:-1px;left:-1px;right:-1px}.sample-card span,.sample-card small{color:var(--ink-soft);text-transform:uppercase;font-size:.66rem;font-weight:900;line-height:1}.sample-card strong{align-self:end;font-size:.98rem;line-height:1.05}.sample-card small{align-self:end}.sample-card-movement:before{background:var(--teal)}.sample-card-reward:before{background:var(--amber)}.sample-card.one{bottom:.3rem;left:.2rem;transform:rotate(8deg)}.sample-card.two{bottom:2.7rem;left:6.1rem;transform:rotate(-9deg)}.sample-card.three{bottom:1.1rem;left:11.2rem;transform:rotate(5deg)}@media (width<=1180px){.landing-board-wrap{width:min(58rem,106%);top:5%;left:5%}.landing-card-hand{bottom:7%;left:10%}}@media (width<=520px){.join-art{min-height:25rem}.landing-board-wrap{width:126%;top:6%;left:-6%}.landing-board-cell .tile-icon-slot,.landing-board-cell .cell-kind{display:none}.landing-card-hand{transform-origin:0 100%;bottom:6%;left:7%;transform:scale(.78)}}@media (width<=390px){.landing-player-token.player-token{border-width:2px;width:2rem;height:2rem;font-size:.7rem}}.join-panel{align-self:center;gap:.8rem;padding:1.1rem;display:grid}.admin-shell,.game-shell{gap:1rem;display:grid}.game-shell{gap:.7rem}.admin-login-stage{place-items:center;min-height:calc(100vh - 7rem);display:grid}.admin-login-panel{gap:.85rem;width:min(100%,28rem);max-width:28rem;padding:1.1rem;display:grid}.admin-play-selector{gap:.85rem;width:100%;max-width:78rem;margin:0 auto;padding:1rem;display:grid}.empty-admin-play{background:#ffffff6b;border:1px solid #1f25231a;border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;padding:.8rem;display:flex}.admin-play-room-list{gap:.75rem;display:grid}.admin-play-room{background:#ffffff75;border:1px solid #1f25231a;border-radius:8px;grid-template-columns:minmax(15rem,.75fr) minmax(13rem,.55fr) minmax(13rem,auto);align-items:start;gap:.65rem;padding:.65rem;display:grid}.admin-play-room>.room-row-actions{justify-self:end}.admin-play-room .room-player-list{grid-column:1/-1}.admin-toolbar,.game-status{justify-content:space-between;align-items:center;gap:1rem;padding:.95rem;display:flex}.admin-grid{grid-template-columns:minmax(18rem,.55fr) minmax(36rem,1.45fr);align-items:start;gap:1rem;display:grid}.admin-section{gap:.8rem;padding:.95rem;display:grid}.admin-task-tabs{grid-template-columns:repeat(6,minmax(0,1fr));gap:.35rem;padding:.35rem;display:grid}.admin-task-tabs button{background:0 0;border-color:#0000;min-height:2.55rem}.admin-task-tabs button.active{background:var(--ink);color:#fff8e8}.room-create-row{grid-template-columns:minmax(16rem,1fr) auto;align-items:end;gap:.75rem;display:grid}.board-manager-layout,.item-workbench{grid-template-columns:minmax(16rem,.32fr) minmax(0,1fr);align-items:start;gap:1rem;display:grid}.board-list-panel,.item-list-panel,.item-editor-panel,.tile-editor-panel,.selected-space-panel,.panel-subsection{background:#ffffff6b;border:1px solid #1f25231a;border-radius:8px}.board-list-panel,.item-list-panel,.item-editor-panel,.tile-editor-panel,.selected-space-panel{gap:.7rem;padding:.75rem;display:grid}.board-edit-stack{gap:.85rem;display:grid}.item-list{gap:.45rem;max-height:34rem;padding-right:.1rem;display:grid;overflow:auto}.item-row-button{text-align:left;white-space:normal;background:#fffdf8b8;place-items:start;gap:.16rem;min-height:3.15rem;display:grid}.item-row-button.active{border-color:#2f837cb3;box-shadow:inset 0 0 0 2px #2f837c29}.item-row-button span{align-items:center;gap:.45rem;min-width:0;display:inline-flex}.item-row-button small{color:var(--ink-soft);font-size:.72rem;font-weight:800}.field-grid,.item-editor-panel{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;display:grid}.field-grid.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}.span-two{grid-column:1/-1}.board-designer{position:relative}.companion-design-layout{grid-template-columns:minmax(0,1fr) minmax(15rem,.34fr);align-items:start;gap:.85rem;display:grid}.admin-board-preview.board-grid{--board-gap:.24rem;min-width:0;overflow:hidden}.admin-board-preview.is-cloning,.admin-board-preview.is-cloning .admin-board-cell-button{cursor:crosshair}.admin-board-cell-button.inactive{opacity:1}.admin-board-cell-button.selected,.board-cell.selected,.admin-voyage-mat-card .companion-node.selected{outline:3px solid var(--teal);outline-offset:2px}.tile-coordinate{color:#1f252394;background:#fffdf8b8;border:1px solid #1f25231a;border-radius:999px;place-self:start;padding:.12rem .22rem;font-size:.66rem;font-weight:800;line-height:1}.tile-icon-slot{color:#1f2523b8;pointer-events:none;background:#fffdf89e;border:1px solid #1f25231f;border-radius:999px;justify-content:center;align-self:center;align-items:center;width:1.9rem;height:1.9rem;min-height:0;display:inline-flex;box-shadow:inset 0 1px #ffffff94}.tile-icon-slot.empty{opacity:.46;background:#fffdf847;border-style:dashed}.tile-icon-slot.image{box-shadow:none;background:0 0;border:0;border-radius:0;overflow:visible}.tile-icon-image{object-fit:contain;pointer-events:none;-webkit-user-select:none;user-select:none;width:140%;height:140%;display:block}.tile-icon-text{font-size:.72rem;font-weight:900;line-height:1}.tile-label{overflow-wrap:anywhere;text-align:center;-webkit-line-clamp:2;-webkit-box-orient:vertical;align-self:end;font-size:.74rem;font-weight:900;line-height:1.08;display:-webkit-box;overflow:hidden}.tile-editor-panel h4{margin:0;font-size:1.25rem}.modal-backdrop{z-index:40;background:#1f252361;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.tile-editor-modal{background:var(--panel);border:1px solid #1f252333;border-radius:8px;gap:.75rem;width:min(100%,34rem);max-width:34rem;padding:1rem;display:grid;box-shadow:0 24px 80px #1f252352}.room-entry-modal{width:min(100%,25rem)}.wide-modal{width:min(100%,58rem);max-width:58rem}.join-choice-modal{width:min(100%,32rem)}.tile-editor-modal h4{margin:0;font-size:1.25rem}.modal-title-row,.modal-actions,.clone-toolbar,.deck-filter-row,.room-row-actions,.companion-editor-toolbar{align-items:center;gap:.55rem;display:flex}.modal-title-row{justify-content:space-between}.modal-actions,.room-row-actions{flex-wrap:wrap;justify-content:flex-end}.editor-danger-row{border-top:1px solid #1f25231a;justify-content:flex-end;padding-top:.2rem;display:flex}.join-choice-list{gap:.5rem;display:grid}.join-choice-button{text-align:left;white-space:normal;grid-template-columns:auto minmax(0,1fr);place-items:center start;display:grid}.join-choice-button span:last-child{gap:.08rem;display:grid}.join-choice-button small{color:var(--ink-soft);font-size:.72rem;font-weight:800}.join-choice-button.primary-action small{color:#ffffffd1}.clone-toolbar{background:var(--ink);color:#fff8e8;z-index:4;border-radius:8px;padding:.48rem .55rem;position:absolute;bottom:.8rem;left:.8rem}.clone-toolbar button{background:#fff8e8}.clone-helper{background:var(--red);color:#fff;pointer-events:none;z-index:50;border-radius:999px;padding:.36rem .55rem;font-size:.75rem;font-weight:900;position:fixed}.prominent-check{background:#fffdf8b8;border:1px solid #1f25231a;border-radius:7px;padding:.55rem}.panel-subsection{padding:.75rem}.editor-stage{min-height:22rem}.selected-space-panel{grid-template-columns:minmax(0,1fr) minmax(14rem,auto)}.selected-space-panel .muted{align-self:center}.selected-space-actions{flex-wrap:wrap;justify-content:end;align-items:center;gap:.5rem;display:flex}.piece-switch-panel{gap:.55rem;width:max-content;max-width:min(16rem,72vw);padding:.7rem;box-shadow:0 16px 40px #1f252338,0 0 0 1px #1f252314}.piece-switch-options{flex-wrap:wrap;gap:.4rem;display:flex}.piece-switch-options button{flex:9rem;justify-content:center}.piece-switch-options button.active{background:var(--teal);border-color:var(--teal);color:#fffaf0}.piece-switch-anchor{--piece-menu-x:.7rem;--piece-menu-y:-50%;pointer-events:auto;transform:translate(var(--piece-menu-x), var(--piece-menu-y));z-index:20;position:absolute;top:0;left:0}.piece-switch-anchor.is-left{--piece-menu-x:calc(-100% - .7rem)}.piece-switch-anchor.is-low{--piece-menu-y:.35rem}.piece-switch-anchor.is-high{--piece-menu-y:calc(-100% - .35rem)}.piece-switch-anchor .piece-switch-options{grid-template-columns:1fr;display:grid}.piece-switch-anchor .piece-switch-options button{flex:initial}.piece-switch-anchor .selected-space-panel{grid-template-columns:1fr;gap:.55rem;width:min(18rem,76vw);max-width:min(18rem,76vw);padding:.7rem;box-shadow:0 16px 40px #1f252338,0 0 0 1px #1f252314}.piece-switch-anchor .selected-space-panel .muted{align-self:start;font-size:.78rem}.selected-space-title{justify-content:space-between}.selected-space-title h3{margin:0}.selected-space-title button{flex:none;justify-content:center;align-items:center;width:2rem;height:2rem;padding:0;display:inline-flex}.piece-switch-anchor .selected-space-actions{justify-content:stretch}.piece-switch-anchor .selected-space-actions button{flex:7rem;justify-content:center}.admin-overview{align-content:start;min-height:16rem}.overview-metrics{grid-template-columns:repeat(4,minmax(8rem,1fr));gap:.7rem;display:grid}.admin-event-feed{gap:.45rem;display:grid}.admin-event-feed>div:not(.inline-title){background:#ffffff6b;border:1px solid #1f252314;border-radius:6px;align-items:baseline;gap:.55rem;padding:.48rem;display:flex}.admin-event-feed time{color:var(--teal-deep);flex:none;font-size:.72rem;font-weight:900}.admin-event-feed span{color:var(--ink-soft);font-size:.83rem}.room-list,.editor-table,.other-players,.activity-log,.calc-history{gap:.55rem;display:grid}.room-row,.other-player-row,.cash-row,.resource-row-control{background:#ffffff75;border:1px solid #1f25231a;border-radius:7px;justify-content:space-between;align-items:center;gap:.55rem;padding:.55rem;display:flex}.room-row{grid-template-columns:minmax(15rem,.75fr) minmax(13rem,.55fr) minmax(25rem,1.4fr);align-items:start;display:grid}.room-row>div{gap:.16rem;min-width:0;display:grid}.room-access-grid{grid-template-columns:repeat(2,minmax(7rem,1fr));gap:.45rem}.room-access-card{background:#fffdf8a8;border:1px solid #1f252314;border-radius:7px;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:.18rem .45rem;padding:.5rem;display:grid}.room-access-card strong{letter-spacing:.06em;min-width:0;font-size:1.25rem;line-height:1}.room-detail-list{background:#fffdf8a8;border:1px solid #1f252314;border-radius:7px;grid-template-columns:minmax(0,1fr);gap:.34rem;min-width:0;margin:0;padding:.5rem;display:grid}.room-detail-list dd{overflow-wrap:anywhere;min-width:0;margin:0;font-size:.82rem;font-weight:900;line-height:1.2}.room-detail-list>div{grid-template-columns:4rem minmax(0,1fr);align-items:baseline;column-gap:.5rem;display:grid}.room-detail-list dt{color:var(--teal-deep);font-size:.78rem;font-weight:800}.room-row>.room-row-actions{justify-self:end;min-width:0;display:flex}.room-player-list{color:var(--ink-soft);border-top:1px solid #1f252314;grid-column:1/-1;gap:.12rem;margin-top:.35rem;padding-top:.35rem;font-size:.76rem;display:grid}.room-row span{color:var(--teal-deep);font-size:.85rem;font-weight:800}.deck-filter-row{flex-wrap:wrap;justify-content:space-between;align-items:stretch}.deck-filter-tabs{background:#1f252314;border-radius:8px;flex:13rem;min-width:0;padding:.25rem;display:flex}.deck-filter-tabs button{white-space:normal;background:0 0;border-color:#0000;flex:1}.deck-filter-tabs button.active{background:var(--ink);color:#fff8e8}.admin-board-grid{grid-template-columns:repeat(10,minmax(6.9rem,1fr));gap:.35rem;max-height:35rem;padding-bottom:.25rem;display:grid;overflow:auto}.admin-space-cell{background:#ffffff80;border:1px solid #1f25231a;border-radius:6px;gap:.32rem;min-width:6.9rem;padding:.36rem;display:grid}.admin-space-cell span{color:var(--ink-soft);font-size:.75rem;font-weight:800}.admin-space-cell select,.admin-space-cell input,.companion-edit-row input,.companion-edit-row select,.editor-row input,.editor-row select,.editor-row textarea{min-height:1.95rem;padding:.32rem;font-size:.78rem}.compact-check{flex-direction:row;align-items:center;gap:.32rem;font-size:.74rem;display:flex}.compact-check input{width:auto;min-height:auto}.companion-editor{gap:.5rem;display:grid}.companion-edit-row,.editor-row{grid-template-columns:minmax(7rem,1fr) 5rem 5rem minmax(7rem,.8fr) minmax(9rem,1fr);gap:.4rem;display:grid}.card-table .editor-row{grid-template-columns:7.5rem minmax(8rem,1fr) 7.5rem 4.5rem minmax(12rem,1.4fr)}.resource-row.editor-row{grid-template-columns:minmax(8rem,1fr) 4rem 4rem minmax(7rem,1fr) 5rem}.rule-row.editor-row{grid-template-columns:minmax(10rem,.8fr) minmax(14rem,1.2fr)}.game-status{grid-template-columns:minmax(22rem,1fr) auto;grid-template-areas:"room turn""actions actions";align-items:center;gap:.5rem .75rem;padding:.65rem .75rem;display:grid}.room-title-cluster{grid-area:room;grid-template-columns:minmax(11rem,auto) minmax(12rem,1fr);align-items:center;gap:.12rem .75rem;min-width:0;display:grid}.room-title-cluster h2{line-height:1.05}.room-title-cluster .eyebrow{grid-column:1}.room-title-cluster .header-player-roster{grid-area:1/2/3}.turn-cluster{flex-wrap:nowrap;grid-area:turn;justify-content:flex-end;gap:.35rem;display:flex}.game-status .toolbar-actions{flex-wrap:wrap;grid-area:actions;gap:.35rem}.game-status .toolbar-actions>button{min-height:2.05rem;padding:.34rem .56rem}.status-tile,.deck-count{background:#ffffff80;border:1px solid #1f25231a;border-radius:7px;min-width:6.5rem;padding:.55rem .7rem;display:grid}.game-status .status-tile{align-items:center;gap:.2rem;min-width:5.5rem;min-height:3rem;padding:.38rem .5rem}.turn-status-tile{min-width:10rem}.game-status .turn-status-tile{grid-template-columns:auto minmax(6.8rem,1fr);min-width:11rem}.game-status .turn-status-tile>span,.game-status .turn-status-tile>strong{grid-column:1}.game-status .turn-status-tile .turn-player-control{grid-area:1/2/3}.round-status-tile{min-width:7.5rem}.game-status .round-status-tile{grid-template-columns:auto minmax(4.8rem,1fr);min-width:7.2rem}.turn-player-control{gap:.16rem;min-width:0;display:grid}.round-status-tile select,.turn-player-control select{min-height:1.7rem;padding:.26rem .34rem;font-size:.78rem;font-weight:800}.dice-top-controls{background:#ffffff6b;border:1px solid #1f25231a;border-radius:7px;align-items:center;gap:.35rem;padding:.2rem;display:flex}.dice-roll-buttons{gap:.28rem;display:flex}.dice-roll-buttons button{min-height:1.95rem;padding:.28rem .46rem}.last-dice-roll{color:var(--ink-soft);text-overflow:ellipsis;white-space:nowrap;min-width:8.8rem;font-size:.76rem;font-weight:900;display:inline-block;overflow:hidden}.header-player-roster{flex-wrap:wrap;gap:.3rem;min-width:0;max-width:none;display:flex}.header-player-row{background:#ffffff6b;border:1px solid #1f252314;border-radius:7px;flex:11.5rem;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.38rem;max-width:14rem;padding:.26rem .4rem;display:grid}.header-player-row span:last-child{gap:.08rem;min-width:0;display:grid}.header-player-row strong,.header-player-row small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.header-player-row strong{font-size:.82rem;line-height:1.05}.header-player-row small{color:var(--ink-soft);font-size:.68rem;font-weight:800}.status-tile span,.deck-count span,.deck-count small{color:var(--ink-soft);text-transform:uppercase;font-size:.72rem;font-weight:800}.turn-player-control span{color:var(--ink);text-overflow:ellipsis;text-transform:none;white-space:nowrap;font-size:.86rem;font-weight:900;line-height:1.05;overflow:hidden}.game-grid{grid-template-columns:minmax(42rem,1fr) minmax(22rem,.38fr);align-items:start;gap:1rem;display:grid}.board-column,.side-column{gap:.75rem;min-width:0;display:grid}.board-column{gap:.5rem;position:relative}.board-view-toolbar{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.5rem;min-width:0;padding:.34rem .45rem;display:grid}.board-view-switch{flex:0 auto}.board-view-toolbar-actions{flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:.4rem;min-width:0;display:flex}.board-view-switch button{min-height:1.85rem;padding:.26rem .48rem}.board-view-controls{flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:.4rem;min-width:0;display:flex}.rolling-dice-overlay{pointer-events:none;z-index:30;position:absolute;inset:4.5rem .75rem 1rem;overflow:hidden}.die3d{--die-color:var(--teal);--die-shadow-opacity:.24;--die-shadow-scale:1;--die-size:3.35rem;--die-half-size:1.675rem;height:var(--die-size);perspective:18rem;width:var(--die-size);will-change:opacity, transform;position:absolute;top:0;left:0}.die3d-shadow{filter:blur(7px);height:22%;opacity:var(--die-shadow-opacity);transform:scale(var(--die-shadow-scale));transform-origin:50%;z-index:0;background:#1f252352;border-radius:999px;width:74%;position:absolute;bottom:.08rem;left:13%}.die3d-cube{height:100%;transform-style:preserve-3d;will-change:transform;z-index:1;width:100%;position:relative}.die-face{background:var(--die-color);height:var(--die-size);padding:calc(var(--die-size) * .13);width:var(--die-size);border:2px solid #fffaf0eb;border-radius:8px;grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);place-items:center;gap:.1rem;display:grid;position:absolute;box-shadow:inset 0 0 0 1px #1f252329,0 10px 24px #1f25233d}.die-face i{height:calc(var(--die-size) * .14);width:calc(var(--die-size) * .14);background:#fffdf8;border-radius:999px;display:block;box-shadow:0 1px 2px #1f252333}.die-face.face-1{transform:translateZ(var(--die-half-size))}.die-face.face-2{transform:rotateY(90deg) translateZ(var(--die-half-size))}.die-face.face-3{transform:rotateX(90deg) translateZ(var(--die-half-size))}.die-face.face-4{transform:rotateX(-90deg) translateZ(var(--die-half-size))}.die-face.face-5{transform:rotateY(-90deg) translateZ(var(--die-half-size))}.die-face.face-6{transform:rotateX(180deg) translateZ(var(--die-half-size))}.face-1 i:first-child{grid-area:2/2}.face-2 i:first-child,.face-3 i:first-child,.face-4 i:first-child,.face-5 i:first-child,.face-6 i:first-child{grid-area:1/1}.face-2 i:nth-child(2),.face-3 i:nth-child(3),.face-4 i:nth-child(4),.face-5 i:nth-child(5),.face-6 i:nth-child(6){grid-area:3/3}.face-3 i:nth-child(2),.face-5 i:nth-child(3){grid-area:2/2}.face-4 i:nth-child(2),.face-5 i:nth-child(2),.face-6 i:nth-child(2){grid-area:1/3}.face-4 i:nth-child(3),.face-5 i:nth-child(4),.face-6 i:nth-child(5){grid-area:3/1}.face-6 i:nth-child(3){grid-area:2/1}.face-6 i:nth-child(4){grid-area:2/3}.board-panel,.companion-panel,.player-panel,.activity-panel{gap:.8rem;min-width:0;padding:.95rem;display:grid}.board-panel{gap:.55rem;padding:.65rem}.voyage-panel{padding:.75rem}.voyage-panel .voyage-mat-card,.voyage-panel .voyage-mat-stage{overflow:visible}.board-panel-header{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.55rem;min-width:0;display:grid}.board-panel-actions{flex-wrap:wrap;grid-column:1/-1;justify-content:flex-end;align-items:center;gap:.4rem;min-width:0;display:flex}.board-fit-toggle{flex:none;min-height:1.9rem;padding:.28rem .52rem}.board-fit-toggle[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff8e8}.path-of-peril-legend{background:#fffaf0c7;border:1px solid #1f252324;border-radius:7px;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.38rem .55rem;padding:.28rem .45rem;display:flex}.path-of-peril-legend-title{color:var(--ink-soft);letter-spacing:.04em;text-transform:uppercase;font-size:.72rem;font-weight:900}.path-of-peril-legend-item{align-items:center;gap:.24rem;font-size:.76rem;font-weight:800;line-height:1;display:inline-flex}.path-of-peril-swatch{background:var(--peril-color);border:1px solid #1f252347;border-radius:3px;flex:none;width:.78rem;height:.78rem}.path-of-peril-fair{--peril-color:var(--peril-fair)}.path-of-peril-risky{--peril-color:var(--peril-risky)}.path-of-peril-hazardous{--peril-color:var(--peril-hazardous)}.path-of-peril-perilous{--peril-color:var(--peril-perilous)}.board-grid{--board-gap:.25rem;aspect-ratio:1;background:var(--board-grid-line);gap:var(--board-gap);min-width:0;padding:var(--board-gap);border:1px solid #1f25232e;border-radius:8px;grid-template-rows:repeat(10,minmax(0,1fr));grid-template-columns:repeat(10,minmax(0,1fr));width:100%;display:grid;position:relative;overflow:visible}.board-grid.is-fit-to-screen{justify-self:center;max-width:100%}.board-grid.is-fit-to-screen .board-cell{padding:.08rem}.board-grid.is-fit-to-screen .tile-icon-slot{width:1.2rem;height:1.2rem}.board-grid.is-fit-to-screen .tile-icon-slot.image{width:1.35rem;height:1.35rem}.board-grid.is-fit-to-screen .tile-icon-slot svg{width:.82rem;height:.82rem}.board-grid.is-fit-to-screen .tile-icon-text{font-size:.5rem}.board-grid.is-fit-to-screen .cell-kind{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.5rem;line-height:1;display:-webkit-box;overflow:hidden}.board-grid.is-fit-to-screen .board-cell .token-stack{justify-content:flex-end;top:.06rem;right:.06rem}.board-grid.is-fit-to-screen .board-cell .player-token.board-piece{aspect-ratio:1;border-width:1px;width:min(52%,1.45rem);height:auto;padding:0 .06rem;font-size:.42rem}.board-cell{--tile-bg:var(--tile-empty);--tile-border-current:var(--tile-border);aspect-ratio:1;background:var(--tile-bg);border:1px solid var(--tile-border-current);white-space:normal;border-radius:5px;grid-template-rows:minmax(0,1fr) auto;align-content:stretch;justify-items:center;min-width:0;min-height:0;padding:.28rem;display:grid;position:relative;overflow:hidden}.admin-board-cell-button.board-cell{grid-template-rows:auto minmax(0,1fr) auto;padding:.24rem}.path-of-peril-cell{--tile-bg:var(--peril-color);--tile-border-current:#141916eb}.path-of-peril-cell.path-of-peril-hazardous,.path-of-peril-cell.path-of-peril-perilous{color:#fffaf0}.board-cell.inactive{opacity:1}.board-cell.inactive .tile-icon-slot,.board-cell.inactive .tile-label,.admin-board-cell-button.inactive .tile-coordinate{filter:grayscale(.85);opacity:.48}.board-cell .tile-icon-slot{margin-top:.12rem}.board-cell .tile-icon-slot.image{width:clamp(1.7rem,64%,4rem);height:clamp(1.7rem,64%,4rem);margin-top:0}.admin-board-cell-button.board-cell .tile-icon-slot.image{width:clamp(1.45rem,52%,2.8rem);height:clamp(1.45rem,52%,2.8rem)}.cell-kind{font-size:.68rem;line-height:1.02}.token-stack{flex-wrap:wrap;align-items:center;gap:.15rem;min-height:1.25rem;display:flex}.board-cell .token-stack{z-index:4;place-content:flex-start flex-end;gap:.12rem;max-width:calc(100% - .4rem);min-height:0;position:absolute;top:.2rem;left:.2rem;right:.2rem}.board-cell .player-token{opacity:1;z-index:5;position:relative}.player-token{color:#fff;letter-spacing:0;text-align:center;text-shadow:0 1px 1px #1f252347;border:2px solid #fffaf0;border-radius:999px;flex:none;justify-content:center;align-items:center;width:1.45rem;height:1.45rem;padding:0 .12rem;font-size:.66rem;font-weight:900;line-height:1;display:inline-flex;overflow:hidden}.board-cell .player-token.board-piece{aspect-ratio:1;border-width:2px;width:min(55%,3.8rem);height:auto;font-size:.72rem;box-shadow:0 2px 5px #1f25233d,inset 0 0 0 1px #ffffff57}.player-token[draggable=true]{cursor:grab}.player-token.selectable{cursor:pointer;box-shadow:0 0 0 2px #fffaf0d1,0 0 0 5px #2f837c38}.player-token.selectable:focus-visible{outline:3px solid var(--teal);outline-offset:3px}.player-token.static{width:2rem;height:2rem}.player-token.player-token-small{width:1.8rem;height:1.8rem;font-size:.62rem}.companion-placement{gap:.55rem;min-width:0;display:grid}.companion-editor-toolbar{flex-wrap:wrap;justify-content:space-between}.companion-editor-toolbar label{min-width:min(100%,14rem)}.placement-scale-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;width:100%;display:grid}.placement-scale-grid label{grid-template-columns:minmax(6rem,.9fr) minmax(6rem,1fr) auto;align-items:center;gap:.35rem;min-width:0;display:grid}.placement-scale-grid span{font-size:.72rem;font-weight:900}.placement-scale-grid strong{color:var(--teal-deep);text-align:right;min-width:2.5rem;font-size:.72rem}.voyage-mat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;display:grid}.voyage-mat-grid.is-focused{grid-template-columns:minmax(0,1fr)}.voyage-mat-editor-grid{align-items:stretch}.voyage-mat-card{--mat-accent:var(--teal);--mat-aspect-ratio:16 / 9;--node-scale:1;--stage-zoom:.66;background:linear-gradient(135deg,#fffdf8eb,#fff3d094),#fffdf8;border:1px solid #1f252329;border-radius:8px;min-height:0;padding:.35rem;position:relative;overflow:hidden}.voyage-mat-card.is-focused{--stage-zoom:1}.voyage-mat-stage{aspect-ratio:var(--mat-aspect-ratio);background:#fffdf8;border-radius:6px;width:100%;min-width:0;position:relative;overflow:hidden}.voyage-mat-stage.is-tap-moving{cursor:crosshair;box-shadow:inset 0 0 0 3px #2079745c}.voyage-mat-card h4{border:1px solid #1f25231f;border-left:4px solid var(--mat-accent);color:var(--ink);z-index:2;background:#fffaf0e6;border-radius:6px;max-width:calc(100% - 3.4rem);margin:0;padding:.34rem .45rem;font-size:.78rem;font-weight:900;line-height:1;position:absolute;top:.45rem;left:.45rem}.voyage-mat-actions{z-index:5;gap:.25rem;display:flex;position:absolute;top:.45rem;right:.45rem}.voyage-mat-actions button{background:#fffaf0eb;border-color:#1f252329;justify-content:center;align-items:center;width:2rem;height:2rem;padding:0;display:inline-flex}.voyage-mat-image{object-fit:fill;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.companion-node.voyage-node{border-color:var(--mat-accent);z-index:3;min-width:2.65rem;min-height:2.65rem;padding:.28rem;box-shadow:0 4px 13px #1f252329,inset 0 0 0 1px #ffffff94}.companion-node.voyage-node span:first-child{text-overflow:ellipsis;white-space:nowrap;max-width:4.6rem;font-size:.64rem;overflow:hidden}.companion-node.voyage-node .token-stack{justify-content:center}.companion-node.voyage-node.annotation{background:#fffdf8f0;border-color:#1f252342;border-radius:6px;min-width:4.8rem;min-height:2.3rem;padding:.35rem .5rem;box-shadow:0 5px 14px #1f25231f}.companion-node.voyage-node.annotation span:first-child{text-overflow:ellipsis;white-space:normal;max-width:8.5rem;font-size:.68rem;line-height:1.08;overflow:hidden}.admin-voyage-mat-card .companion-node{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.admin-voyage-mat-card .companion-node.is-dragging{cursor:grabbing;z-index:4}.voyage-panel .companion-node{cursor:default}.voyage-player-piece{touch-action:none;z-index:8;align-items:center;padding:.35rem;display:inline-flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.voyage-player-piece .player-token{width:auto;min-width:2.6rem;height:2rem;padding:0 .45rem;box-shadow:0 4px 12px #1f252347,0 0 0 2px #fffaf0e6,inset 0 0 0 1px #ffffff57}.voyage-player-piece.is-current .player-token{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.voyage-player-piece.is-dragging{z-index:21}.voyage-player-piece.is-dragging .player-token{cursor:grabbing}@media (pointer:coarse),(width<=720px){.voyage-player-piece .player-token{min-width:3.1rem;height:2.35rem;font-size:.76rem}}.companion-node{border:2px solid var(--teal);min-width:3.7rem;min-height:3.7rem;transform:translate(-50%, -50%) scale(calc(var(--node-scale) * var(--stage-zoom)));transform-origin:50%;background:#fffaf0e6;border-radius:999px;align-items:center;gap:.2rem;padding:.35rem;transition:background .12s,border-color .12s,box-shadow .12s;display:grid;position:absolute}.companion-node.voyage-node:hover,.companion-node.voyage-node:active{transform:translate(-50%, -50%) scale(calc(var(--node-scale) * var(--stage-zoom)));background:#fffaf0e6}.companion-node span:first-child{font-size:.75rem;font-weight:900}.deck-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;display:grid}.self-panel,.hand-block,.resource-controls,.investment-controls,.calculator{background:#ffffff7a;border:1px solid #1f25231a;border-radius:8px;gap:.65rem;padding:.7rem;display:grid}.board-view-toolbar .calculator,.board-view-controls .calculator{grid-template-columns:auto minmax(8rem,14rem);align-items:center;gap:.3rem;padding:.28rem;display:grid}.board-view-toolbar .calculator .calc-row,.board-view-controls .calculator .calc-row{grid-template-columns:minmax(0,1fr) 2rem;gap:.3rem}.board-view-toolbar .calculator input,.board-view-controls .calculator input{min-height:1.85rem;padding:.28rem .45rem}.board-view-toolbar .calculator .inline-title,.board-view-controls .calculator .inline-title{gap:.35rem}.board-view-toolbar .calculator .calc-history,.board-view-controls .calculator .calc-history{display:none}.activity-panel-title{justify-content:space-between;align-items:center;gap:.55rem;display:flex}.activity-panel-title button{min-height:2.1rem}.investment-modal{max-width:30rem}.investment-modal .investment-controls{background:0 0;border:0;padding:0}.self-panel.is-turn{border-color:#2f837c8c;box-shadow:inset 0 0 0 2px #2f837c29}.player-heading{justify-content:flex-start}.player-heading div,.other-player-row div{gap:.1rem;display:grid}.player-heading small,.other-player-row small{color:var(--ink-soft);font-size:.76rem}.draw-actions{flex-wrap:wrap}.hand-cards{grid-template-columns:repeat(auto-fit,minmax(8.8rem,1fr));gap:.55rem;display:grid}.game-card{background:#fffdf8;border:1px solid #1f252329;border-radius:8px;gap:.38rem;min-height:10rem;padding:.6rem;display:grid}.game-card.movement{border-top:5px solid var(--teal)}.game-card.reward{border-top:5px solid var(--amber)}.game-card span{color:var(--ink-soft);text-transform:uppercase;font-size:.68rem;font-weight:900}.game-card p{color:var(--ink-soft);font-size:.8rem;line-height:1.25}.game-card button{align-self:end}.cash-row,.resource-row-control{grid-template-columns:minmax(4rem,1fr) 2rem minmax(2.5rem,auto) 2rem;display:grid}.resource-row-control{grid-template-columns:1.8rem minmax(5rem,1fr) 2rem minmax(2.5rem,auto) 2rem}.resource-row-control button,.cash-row button,.calc-row button{min-height:2rem;padding:.25rem}.resource-row-control small{color:var(--ink-soft);font-size:.68rem;font-weight:800;line-height:1.1;display:block}.resource-swatch{color:#fff;border-radius:999px;justify-content:center;align-items:center;width:1.45rem;height:1.45rem;font-size:.75rem;font-weight:900;display:inline-flex}.activity-log div{background:#ffffff6b;border:1px solid #1f252314;border-radius:6px;align-items:baseline;gap:.55rem;padding:.48rem;display:flex}.activity-log span{color:var(--ink-soft);font-size:.83rem}.activity-log time{color:var(--teal-deep);flex:none;font-size:.72rem;font-weight:900}.rule-wiki-layout{grid-template-columns:minmax(13rem,.36fr) minmax(0,1fr);gap:.75rem;min-height:24rem;display:grid}.rule-wiki-list{border:1px solid #1f25231a;border-radius:8px;gap:.35rem;max-height:30rem;padding:.45rem;display:grid;overflow:auto}.rule-wiki-list button{text-align:left;white-space:normal;justify-content:flex-start;min-height:2.15rem}.rule-wiki-list button.active{background:var(--ink);color:#fff8e8}.rule-wiki-body{background:#ffffff75;border:1px solid #1f25231a;border-radius:8px;align-content:start;gap:.65rem;max-height:30rem;padding:.85rem;display:grid;overflow:auto}.rule-wiki-body h3{font-size:1.2rem}.rule-wiki-body p{color:var(--ink-soft);white-space:pre-wrap;line-height:1.45}.full-activity-log{max-height:min(34rem,68vh);overflow:auto}.calc-row{grid-template-columns:minmax(0,1fr) 2.4rem;gap:.4rem;display:grid}.calc-history span{color:var(--ink-soft);font-size:.78rem}.loading-panel{padding:1rem}.reconnect-panel{align-content:start;gap:.8rem;max-width:28rem;display:grid}.reconnect-panel button{justify-self:start}@media (width<=980px){.game-status{grid-template-columns:1fr;grid-template-areas:"room""turn""actions"}.room-title-cluster{grid-template-columns:minmax(0,1fr)}.room-title-cluster .header-player-roster{grid-area:auto/1}.turn-cluster{justify-content:flex-start}.board-view-toolbar{grid-template-columns:minmax(0,1fr)}.board-view-toolbar-actions,.board-view-controls{justify-content:flex-start}}@media (width<=1180px){.admin-grid,.game-grid,.join-stage,.board-manager-layout,.item-workbench,.board-designer,.companion-design-layout{grid-template-columns:1fr}.game-grid{align-items:stretch}.room-row,.admin-play-room{grid-template-columns:minmax(15rem,.9fr) minmax(13rem,.7fr)}.room-row>.room-row-actions,.admin-play-room>.room-row-actions{grid-column:1/-1;justify-content:flex-start;justify-self:stretch}}@media (width<=720px){.app-shell{padding:.6rem}.topbar{grid-template-columns:1fr}.version-update-toast{flex-direction:column;align-items:stretch;top:.6rem;left:.6rem;right:.6rem}.mode-switch{width:100%}.mode-switch button{flex:1}.admin-toolbar,.board-view-toolbar,.game-status{flex-direction:column;align-items:stretch}.board-panel-header{grid-template-columns:1fr;align-items:stretch}.admin-task-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbar-actions,.inline-controls,.room-row-actions,.selected-space-actions{flex-wrap:wrap;justify-content:stretch}.room-row-actions{flex-direction:column;align-items:stretch}.toolbar-actions button,.board-view-switch button,.room-row-actions button,.selected-space-actions button{flex:1}.room-title-cluster,.header-player-roster,.board-view-toolbar-actions,.board-view-controls,.board-panel-actions,.activity-panel-title{width:100%}.board-view-toolbar-actions,.board-view-controls,.board-panel-actions,.activity-panel-title{justify-content:stretch}.board-view-toolbar .calculator,.board-view-controls .calculator{grid-template-columns:1fr;width:100%}.activity-panel-title{flex-direction:column;align-items:stretch}.dice-top-controls{flex-wrap:wrap;align-items:stretch;width:100%}.dice-roll-buttons{flex:9rem}.dice-roll-buttons button{flex:1}.last-dice-roll{flex:100%;min-width:0}.rule-wiki-layout{grid-template-columns:1fr;min-height:0}.rule-wiki-list,.rule-wiki-body{max-height:16rem}.rolling-dice-overlay{inset:4rem .25rem .75rem}.board-view-switch{width:100%}.path-of-peril-legend{justify-content:flex-start}.board-fit-toggle{flex:1}.voyage-mat-grid{gap:.45rem}.companion-node.voyage-node{min-width:2.25rem;min-height:2.25rem;padding:.18rem}.companion-node.voyage-node span:first-child{max-width:3.2rem;font-size:.52rem}.placement-scale-grid{grid-template-columns:1fr}.placement-scale-grid label{grid-template-columns:minmax(5.5rem,.8fr) minmax(5rem,1fr) auto}.room-create-row,.room-row,.admin-play-room,.room-access-grid,.room-detail-list,.field-grid,.field-grid.two-col,.item-editor-panel,.selected-space-panel,.overview-metrics{grid-template-columns:1fr}.admin-board-grid{grid-template-columns:repeat(2,minmax(8rem,1fr))}.admin-board-preview.board-grid{--board-gap:.14rem}.admin-board-cell-button.board-cell{padding:.08rem}.admin-board-cell-button .tile-label{font-size:.48rem;line-height:1}.companion-edit-row,.editor-row,.card-table .editor-row,.resource-row.editor-row,.rule-row.editor-row{grid-template-columns:1fr}.board-grid{--board-gap:.12rem}.board-cell{padding:.08rem}.tile-coordinate{padding:.08rem .14rem;font-size:.52rem}.tile-icon-slot{width:1.2rem;height:1.2rem}.admin-board-cell-button.board-cell .tile-icon-slot.image,.board-cell .tile-icon-slot.image{width:1.35rem;height:1.35rem}.tile-icon-slot svg{width:.82rem;height:.82rem}.tile-icon-text{font-size:.5rem}.cell-kind{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.5rem;line-height:1;display:-webkit-box;overflow:hidden}.token-stack{justify-content:center;min-height:0}.board-cell .token-stack{justify-content:flex-end;top:.06rem;right:.06rem}.board-cell .player-token.board-piece{aspect-ratio:1;border-width:1px;width:min(52%,1.45rem);height:auto;padding:0 .06rem;font-size:.42rem}}@media (width<=360px){.board-grid{--board-gap:.08rem}.board-cell .tile-icon-slot,.cell-kind,.companion-node.voyage-node span:first-child{display:none}}
