/* Compact common room setup. Policy visibility and values remain unchanged. */
#create-dialog.room-create-dialog{width:min(920px,calc(100vw - 24px));height:min(730px,calc(100dvh - 24px));border-radius:18px}
#create-dialog .room-create-head{min-height:0;padding:18px 22px;align-items:center;background:#1c1e24}
#create-dialog .room-create-head h2{font-size:22px}
#create-dialog .room-create-head .eyebrow,#create-dialog .room-create-head p:not(.eyebrow),#create-dialog .room-create-section-title>span,#create-dialog .room-create-section-title small,#create-dialog .room-game-picker-help,#create-dialog .room-game-map-copy small,#create-dialog .room-game-map-copy em,#create-dialog .room-create-actions>span,#create-dialog .room-create-lock-card small{display:none}
#create-dialog .room-create-layout{grid-template-columns:228px minmax(0,1fr)}
#create-dialog .room-game-picker{padding:18px 14px;background:#17181d}
#create-dialog .room-create-section-title{margin:0 0 12px}#create-dialog .room-create-section-title h3{font-size:13px;color:#a6bbd1}
#create-dialog .room-game-map-list{grid-template-columns:1fr;gap:6px;padding:0}
#create-dialog .room-game-map-card{min-height:43px;height:43px;padding:7px 12px;display:flex;align-items:center;gap:10px;border-radius:9px;box-shadow:none}
#create-dialog .room-game-map-card::before,#create-dialog .room-game-map-card::after{display:none}
#create-dialog .room-game-map-icon{width:25px;height:25px;flex:0 0 25px;font-size:18px;border:0;background:none;box-shadow:none}
#create-dialog .room-game-map-copy{display:block}#create-dialog .room-game-map-copy b{font-size:12px}
#create-dialog .room-game-map-marker{top:12px;right:9px;width:16px;height:16px;box-shadow:none}
#create-dialog .room-create-config{padding:18px 20px;background:#141519}
#create-dialog .room-create-settings{padding:0;border:0;background:none}
#create-dialog .room-create-common-grid{grid-template-columns:minmax(0,1fr) 110px;gap:12px}
#create-dialog .room-create-field>span{font-size:12px}
#create-dialog .room-create-lock-card{min-height:43px;padding:7px 10px;margin-top:12px;grid-template-columns:24px 1fr auto}
#create-dialog .room-create-lock-icon{width:24px;height:24px;font-size:14px;background:none}
#create-dialog .room-rule-title{margin-top:20px}
#create-dialog .room-create-options .setting-grid{gap:10px}
#create-dialog .room-create-options .setting-grid>label:not(.toggle-row):not(.policy-toggle-setting){padding:0;border:0;background:none;font-size:12px;color:#a6bbd1;font-weight:500}
#create-dialog .room-create-options label select,#create-dialog .room-create-options label input{font-size:13px;min-height:40px;margin-top:6px}
#create-dialog .room-create-options .toggle-row{font-size:12px;min-height:44px}
#create-dialog .room-create-options label[hidden]{display:none!important}
#create-dialog .room-create-options .toggle-row input{min-height:17px;margin:0}
#create-dialog .room-create-actions{min-height:0;padding:12px 20px;background:#1c1e24;box-shadow:none}
#create-dialog .room-create-actions button{min-height:42px;padding:9px 24px;font-size:13px}
#create-dialog .room-create-error:empty{display:none}
.room-setting-help{margin-top:16px;border-top:1px solid #383b48;padding-top:12px;font-size:12px;color:#819ab1}.room-setting-help summary{cursor:pointer;width:fit-content}.room-setting-help dt{font-weight:700;color:#c2d5e5;margin-top:12px}.room-setting-help dd{margin:4px 0 0;line-height:1.65;font-size:12px}
@media(max-width:700px){#create-dialog.room-create-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:none}#create-dialog .room-create-head{padding:14px 16px}#create-dialog .room-create-head h2{font-size:20px}#create-dialog .room-create-layout{display:block;overflow:auto}#create-dialog .room-game-picker{padding:12px 14px;border-right:0;border-bottom:1px solid #383b48}#create-dialog .room-game-map-list{display:flex;overflow-x:auto;gap:6px;padding-bottom:5px}#create-dialog .room-game-map-card{flex:0 0 auto;min-width:115px;padding-right:28px}#create-dialog .room-create-config{overflow:visible;padding:16px 14px}#create-dialog .room-create-common-grid{grid-template-columns:minmax(0,1fr) 88px}#create-dialog .room-create-actions{padding:10px 14px}#create-dialog .room-create-options .setting-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#create-dialog .room-create-options label select{font-size:12px;padding:7px 5px}}

/* Map selection: generous visual cards, short controls, optional explanations. */
#create-dialog.room-create-dialog{width:min(1100px,calc(100vw - 24px));height:min(780px,calc(100dvh - 24px))}
#create-dialog .room-create-layout{grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr)}
#create-dialog .room-game-map-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#create-dialog .room-game-map-card{height:100px;min-height:100px;display:flex;flex-direction:column;justify-content:center;gap:9px;padding:10px;border-radius:14px;background:radial-gradient(ellipse at 50% 0,rgba(var(--game-rgb),.18),transparent 80%),#1c1e24}
#create-dialog .room-game-map-icon{font-size:30px;width:42px;height:42px;flex-basis:42px}
#create-dialog #room-game-preview{display:flex;min-height:112px;padding:18px;gap:18px;margin-bottom:22px}
#create-dialog .room-game-preview-icon{width:64px;height:64px;font-size:34px;flex:0 0 64px;border-radius:18px}
#create-dialog .room-game-preview-copy h3{font-size:22px}
#create-dialog #room-game-preview-kicker,#create-dialog #room-game-preview-summary,#create-dialog .room-game-preview-selected,#create-dialog .room-create-settings>.room-create-section-title{display:none}
#create-dialog .room-create-options{margin-top:24px}
#create-dialog .policy-setting-grid{gap:22px;grid-template-columns:repeat(2,minmax(0,1fr))}
#create-dialog .policy-setting-row{min-width:0;display:grid;align-content:start;gap:9px;color:#9fb5cb;font-size:12px}
#create-dialog .room-map-setting{grid-column:1/-1}
#create-dialog .room-rule-choices{display:flex;flex-wrap:wrap;gap:6px}
#create-dialog .room-rule-choices button{flex:1;min-width:48px;min-height:40px;padding:9px 8px;font-size:12px;border:1px solid #3f4352;background:#1d1f26;color:#a7bbce;border-radius:10px;box-shadow:none}
#create-dialog .room-rule-choices button[aria-pressed="true"]{background:#3a3d4b;border-color:#9aaeff;color:#fff;box-shadow:inset 0 0 0 1px #9aaeff55}
#create-dialog .room-map-setting button{display:grid;justify-items:center;gap:12px;min-height:98px}
.room-map-mini{display:block;width:46px;height:30px;border:1px solid #9bcbd6;background:repeating-linear-gradient(0deg,transparent 0 7px,#92d8de22 7px 8px),repeating-linear-gradient(90deg,#393c4a 0 7px,#92d8de44 7px 8px);transform:perspective(100px) rotateX(24deg);box-shadow:0 5px 0 #25272f}
.room-map-mini[data-size="compact"]{width:34px;height:24px}.room-map-mini[data-size="wide"]{width:60px;height:36px}
#create-dialog .room-create-options [hidden]{display:none!important}
@media(max-width:700px){#create-dialog.room-create-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px)}#create-dialog .room-create-layout{display:block}#create-dialog .room-game-map-list{display:flex}#create-dialog .room-game-map-card{min-width:100px;height:88px;min-height:88px;padding:8px}#create-dialog #room-game-preview{min-height:90px;margin-bottom:18px;padding:12px}#create-dialog .room-game-preview-copy h3{font-size:19px}#create-dialog .policy-setting-grid{gap:18px}#create-dialog .room-rule-choices button{font-size:11px;padding:8px 5px;min-width:44px}}

#create-dialog .room-create-options .policy-setting-row{padding:0;border:0;background:none}
#create-dialog #room-game-preview{min-height:90px;margin-bottom:16px;padding:14px 18px}
#create-dialog .room-map-setting button{min-height:82px;gap:8px}
#create-dialog .room-create-options{margin-top:18px}
.room-map-mini[data-size="foundry"]{width:62px;height:36px;transform:none;border:0;box-shadow:none;background:linear-gradient(#91e1ea,#91e1ea) 0 100%/38% 4px no-repeat,linear-gradient(#91e1ea,#91e1ea) 100% 100%/38% 4px no-repeat,linear-gradient(#91e1ea,#91e1ea) 50% 50%/35% 4px no-repeat,linear-gradient(#91e1ea,#91e1ea) 50% 0/25% 4px no-repeat}
.room-map-mini[data-size="skyport"]{width:62px;height:36px;transform:none;border:0;box-shadow:none;background:linear-gradient(#91e1ea,#91e1ea) 50% 100%/100% 4px no-repeat,linear-gradient(#91e1ea,#91e1ea) 50% 50%/60% 4px no-repeat,linear-gradient(#91e1ea,#91e1ea) 50% 0/30% 4px no-repeat}

#create-dialog [data-setting-key="targetPercent"] .room-rule-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}

/* Equal option tracks prevent label length from changing the layout. */
#create-dialog .room-rule-choices{display:grid;grid-template-columns:repeat(var(--choice-columns,2),minmax(0,1fr));align-items:stretch;gap:7px}
#create-dialog .room-rule-choices button{width:100%;min-width:0;height:52px;min-height:52px;max-height:52px;padding:7px 9px;overflow:hidden;display:flex;align-items:center;justify-content:center;white-space:normal;line-height:1.35;box-sizing:border-box}
#create-dialog .room-rule-choices button>span{min-width:0;max-width:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;text-align:center}
#create-dialog .room-map-setting .room-rule-choices button{height:94px;min-height:94px;max-height:94px;flex-direction:column;gap:8px}
#create-dialog .room-map-mini{flex-shrink:0}
#create-dialog .policy-setting-grid{align-items:start;column-gap:18px;row-gap:18px}
#create-dialog .policy-setting-row>span{min-height:16px;margin-bottom:0;line-height:1.4}
#create-dialog .policy-setting-row input:not([type="checkbox"]),#create-dialog .policy-setting-row select{height:52px;box-sizing:border-box}
#create-dialog .room-game-map-card{min-width:0}
@media(max-width:700px){#create-dialog .room-rule-choices{gap:5px}#create-dialog .room-rule-choices button{font-size:11px;padding:6px}#create-dialog .policy-setting-grid{column-gap:12px}#create-dialog .room-game-map-card{width:100%;min-width:0;max-width:none}}

/* All categories stay visible; reset the legacy horizontal carousel placement. */
#create-dialog .room-game-map-list{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-flow:row;grid-auto-columns:auto;scroll-snap-type:none;gap:18px;overflow:visible}
#create-dialog .room-game-category{min-width:0}
#create-dialog .room-game-category h3{display:flex;align-items:center;gap:10px;margin:0 0 9px;font-size:11px;font-weight:600;letter-spacing:.03em;color:#94a7bf}
#create-dialog .room-game-category h3::after{content:"";flex:1;height:1px;background:#ffffff0c}
#create-dialog .room-game-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#create-dialog .room-game-map-card{height:64px;min-height:64px;min-width:0;flex-direction:row;justify-content:flex-start;gap:9px;padding:10px 22px 10px 12px;border-radius:11px;background:linear-gradient(125deg,rgba(var(--game-rgb),.09),transparent),#1b1d23;border-color:#ffffff12}
#create-dialog .room-game-map-icon{width:30px;height:30px;flex:0 0 30px;font-size:24px}
#create-dialog .room-game-map-copy{min-width:0;text-align:left}
#create-dialog .room-game-map-copy b{display:block;font-size:12px;line-height:1.4;word-break:keep-all}
#create-dialog .room-game-map-marker{top:8px;right:7px;width:13px;height:13px;font-size:9px}
#create-dialog .room-game-map-card[aria-selected="true"]{border-color:var(--game-accent);background:linear-gradient(125deg,rgba(var(--game-rgb),.22),rgba(var(--game-rgb),.06)),#1b1d23;box-shadow:inset 0 0 0 1px rgba(var(--game-rgb),.12)}
#create-dialog .room-game-map-card:focus-visible{outline:2px solid #d6c9ff;outline-offset:2px}
@media(max-width:700px){
 #create-dialog .room-game-map-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;padding-bottom:0}
 #create-dialog .room-game-category-grid{grid-template-columns:minmax(0,1fr);gap:6px}
 #create-dialog .room-game-map-card{min-width:0;height:54px;min-height:54px;padding:8px 20px 8px 9px;gap:7px}
 #create-dialog .room-game-map-icon{width:25px;height:25px;flex-basis:25px;font-size:21px}
 #create-dialog .room-game-map-copy b{font-size:11px}
}

.room-map-mini[data-size="bounce"]{width:62px;height:36px;transform:none;border:0;box-shadow:none;background:linear-gradient(#91e1ea,#91e1ea) 0 100%/34% 4px no-repeat,linear-gradient(#91e1ea,#91e1ea) 100% 100%/34% 4px no-repeat,linear-gradient(#91e1ea,#91e1ea) 16% 45%/25% 4px no-repeat,linear-gradient(#91e1ea,#91e1ea) 84% 45%/25% 4px no-repeat,linear-gradient(#91e1ea,#91e1ea) 50% 0/28% 4px no-repeat}

/* Mobile uses one scrolling content area and fixed header/actions. */
@media(max-width:700px){
 #create-dialog.room-create-dialog{box-sizing:border-box;width:calc(100% - 16px);max-width:calc(100% - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:0;overflow:hidden}
 #create-dialog .room-create-form{min-width:0;overflow:hidden}
 #create-dialog .room-create-head,#create-dialog .room-create-actions{flex-shrink:0}
 #create-dialog .room-create-layout{flex:1 1 0;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 #create-dialog .room-game-picker,#create-dialog .room-create-config{width:100%;min-width:0;box-sizing:border-box;overflow:visible}
 #create-dialog .room-game-map-list{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
 #create-dialog .room-game-category-grid{min-width:0}
 #create-dialog .room-game-map-card{width:100%;max-width:none;min-width:0;height:60px;min-height:60px;box-sizing:border-box}
 #create-dialog .room-game-map-copy b{word-break:normal;overflow-wrap:anywhere}
 #create-dialog #room-game-preview{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;padding:12px;min-width:0}
 #create-dialog .room-game-preview-icon{width:44px;height:44px;min-width:0;font-size:26px}
 #create-dialog .room-game-preview-copy{min-width:0}
 #create-dialog .room-game-preview-copy h3{font-size:18px;overflow-wrap:anywhere}
 #create-dialog .room-game-preview-meta{display:flex;flex-wrap:wrap;gap:4px}
 #create-dialog .room-create-options .setting-grid.policy-setting-grid{grid-template-columns:minmax(0,1fr);gap:18px}
 #create-dialog .room-create-options .policy-setting-row,#create-dialog .room-create-options .policy-toggle-setting{min-width:0;max-width:100%;box-sizing:border-box}
 #create-dialog .room-rule-choices button{font-size:12px}
 #create-dialog .room-create-common-grid{grid-template-columns:minmax(0,1fr) 80px;gap:10px}
 #create-dialog input:not([type="checkbox"]),#create-dialog select{min-width:0;max-width:100%;width:100%;box-sizing:border-box;font-size:16px}
 #create-dialog .room-create-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);padding:10px 12px calc(10px + env(safe-area-inset-bottom));gap:8px}
 #create-dialog .room-create-actions button,#create-dialog .room-create-actions #create-confirm{width:100%;min-width:0;min-height:44px;margin:0}
}

.room-map-mini[data-size="bounce"]{position:relative;color:#78efbc}
.room-map-mini[data-size="bounce"]::after{content:"↑ ↑";position:absolute;inset:4px 0 0;text-align:center;font-size:22px;font-style:normal;letter-spacing:8px}
.room-map-mini[data-size="playground"]{position:relative;width:62px;height:36px;transform:none;border:0;box-shadow:none;background:linear-gradient(#78efbc,#78efbc) 0 100%/30% 4px no-repeat,linear-gradient(#78efbc,#78efbc) 100% 100%/30% 4px no-repeat,linear-gradient(#ffcb79,#ffcb79) 50% 0/50% 4px no-repeat}
.room-map-mini[data-size="playground"]::after{content:"↔";position:absolute;inset:5px 0;text-align:center;color:#a8ddff;font-size:24px;font-style:normal}

.room-map-mini.actual-sky-map{width:76px!important;height:38px!important;background:none!important;box-shadow:none!important;border:0!important;transform:none!important}.room-map-mini.actual-sky-map::after{display:none}
