.wood-brand {pointer-events:auto;text-align:left;max-width:300px;}
.brand-copy {min-width:0;}
.brand-title {display:block;font-size:29px;line-height:.98;color:#ffde51;font-weight:1000;text-shadow:0 3px 0 #512d0e,1px 0 #6d4315,-1px 0 #6d4315;}
.brand-title>span {display:block;color:#4cc7fb;font-size:35px;text-align:center;}
#active-player-name {display:block;max-width:160px;margin-top:5px;color:#fff6d2;font-size:13px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#player-dialog {width:min(650px,calc(100% - 28px));max-height:calc(100dvh - 28px);margin:auto;padding:26px;border:3px solid #409a9e;border-radius:8px;background:#fbfffc;color:#143d4b;box-shadow:0 12px 50px #052b4866;overflow:auto;}
#player-dialog::backdrop {background:#123947a8;backdrop-filter:blur(5px);}
.profile-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;}
.profile-heading h2 {margin:0;font-size:26px;line-height:1.2;}
.profile-icon {flex:none;display:grid;place-items:center;width:42px;height:42px;border:1px solid #c5d9d8;border-radius:6px;background:#fff;}
.profile-icon img,.profile-actions img,.profile-secondary img,#intro-skip img {width:22px;height:22px;}
.profile-icon:hover {background:#ffe9df;border-color:#d89074;}
.profile-field {display:grid;gap:8px;font-size:17px;font-weight:800;}
.profile-field input {width:100%;height:49px;padding:9px 12px;border:2px solid #8db8be;border-radius:6px;font:inherit;background:#fff;color:#163d49;}
.profile-field input:focus {outline:3px solid #ffd969;border-color:#1a8b9a;}
.character-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0;margin:24px 0;border:0;}
.character-options legend {font-size:17px;font-weight:800;margin-bottom:12px;}
.character-choice {position:relative;display:grid;justify-items:center;gap:8px;padding:10px;border:2px solid #d5b4ba;border-radius:8px;background:#fff0ef;cursor:pointer;}
.character-choice:nth-of-type(2) {background:#e0f6ec;border-color:#98c8b7;}
.character-choice:has(input:checked) {border-color:#13779f;box-shadow:0 0 0 3px #59b9df88;}
.character-choice input {position:absolute;left:12px;top:12px;width:21px;height:21px;accent-color:#13779f;}
.character-choice img {width:170px;max-width:100%;height:180px;object-fit:contain;}
.character-choice strong {font-size:18px;}
.profile-actions {display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap;margin-top:20px;}
.profile-primary,.profile-secondary,.profile-danger,#intro-skip {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 18px;border:2px solid transparent;border-radius:6px;font-size:16px;font-weight:800;}
.profile-primary {background:#197e61;border-color:#11674e;color:white;box-shadow:0 3px 0 #0d5b44;}
.profile-secondary {background:#edf6fa;border-color:#a9c5cf;color:#1b4a60;}
.profile-danger {background:#bf3d3d;color:white;border-color:#922d2d;}
#add-player {margin-top:16px;}
.player-row {display:flex;gap:10px;align-items:center;border-bottom:1px solid #d7e4dd;padding:10px 0;}
.player-select {display:flex;align-items:center;gap:14px;flex:1;min-width:0;padding:4px;text-align:left;background:none;border:0;color:inherit;}
.player-select img {width:64px;height:74px;object-fit:contain;background:#e2f4ef;border-radius:6px;}
.player-select>span:first-of-type {display:grid;gap:6px;min-width:0;}
.player-select strong {font-size:20px;overflow-wrap:anywhere;}
.player-select small {color:#537078;font-size:13px;}
.player-active {margin-left:auto;color:#137154;font-size:12px;white-space:nowrap;}
#profile-confirm {margin-top:18px;padding-top:16px;border-top:2px solid #e3aa8c;}
#profile-confirm h3 {font-size:20px;margin:0;overflow-wrap:anywhere;}
#profile-confirm p {font-size:15px;}
#profile-error {color:#962c2c;background:#ffe7df;padding:12px;border-radius:6px;font-size:15px;}
#player-dialog button:focus-visible {outline:3px solid #1483ae;outline-offset:3px;}
#intro-skip {position:fixed;bottom:30px;right:24px;background:#f1fbff;border-color:#b5d7e2;color:#234d5c;}
body.arriving #move-stick,body.arriving .scene-tools,body.arriving #interact {display:none;}
@media(max-width:700px){.brand-title{font-size:17px;}.brand-title>span{font-size:22px;}#active-player-name{font-size:11px;max-width:96px;margin-top:3px;}#player-dialog{padding:19px;}.profile-heading h2{font-size:23px;}.character-choice img{height:150px;}.character-choice{padding:8px;}.character-options{gap:10px;}.player-select{gap:10px;}.player-active{display:none;}.profile-actions{gap:8px;}#intro-skip{right:14px;bottom:28px;}}
@media(max-height:500px){.character-choice img{height:105px;}.character-options{margin:14px 0;}.brand-title{font-size:16px;}.brand-title>span{font-size:20px;}#active-player-name{font-size:10px;}#player-dialog{padding:16px;}.profile-heading{margin-bottom:12px;}}
