/* The guest wardrobe shares the rink's lettering, ice edges and pressed buttons. */
body:is(.game-entry,.mobile-entry) #html-lobby .wardrobe-entry {
  display:flex;align-items:center;gap:12px;width:100%;min-height:60px;margin:14px 0 2px;padding:9px 15px;
  border:2px solid #1971c9;border-radius:15px;background:linear-gradient(180deg,#fff 0%,#e6f6ff 100%);color:#124886;
  box-shadow:0 4px 0 #79add4,inset 0 2px 0 #fff;cursor:pointer;text-align:left;touch-action:manipulation;
}
.wardrobe-entry-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#d5eeff;flex-shrink:0;}
.wardrobe-entry svg{width:26px;height:26px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.wardrobe-entry-copy{display:flex;flex:1;flex-direction:column;gap:2px;}
.wardrobe-entry-copy strong{font:400 20px/1 'Lilita One',sans-serif;letter-spacing:.5px;}
#guest-wardrobe .wardrobe-current{display:block;width:auto;height:auto;border:0;background:none;font:800 11px/1.2 'Nunito',sans-serif;color:#4b7a9c;}
.wardrobe-entry-arrow{font:400 31px/1 'Nunito',sans-serif;}
body:is(.game-entry,.mobile-entry) #html-lobby .wardrobe-entry:active{transform:translateY(2px);box-shadow:0 2px 0 #79add4,inset 0 2px 0 #fff;}
#html-lobby.room-view #guest-wardrobe{display:none!important;}
body.wardrobe-open #html-lobby,body.wardrobe-open #mobile-settings,body.wardrobe-open #fs-btn{visibility:hidden!important;pointer-events:none!important;}
/* One live Unity preview sits beneath the transparent stage. */
.penguin-preview{--wardrobe-ink:#124886;position:fixed;inset:0;z-index:999;display:grid;grid-template-rows:auto minmax(100px,1fr) auto;gap:12px;padding:calc(14px + env(safe-area-inset-top,0px)) max(14px,env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px));pointer-events:auto;color:var(--wardrobe-ink);font:800 13px/1.3 'Nunito',sans-serif;background:linear-gradient(160deg,#eaf8ff65,transparent 48%,#d6ebf490);box-shadow:inset 0 0 0 5px #c9eeff80;}
.penguin-preview *,.penguin-preview *::before,.penguin-preview *::after{box-sizing:border-box;}
.penguin-preview [hidden]{display:none!important;}
.penguin-preview button,.penguin-preview summary{cursor:pointer;font:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation;}
.penguin-preview :is(button,input):focus-visible,#guest-wardrobe:focus-visible{outline:none;box-shadow:inset 0 0 0 2px #156aaa;}
.preview-model-space:focus-visible{outline:none;box-shadow:inset 0 0 0 2px #156aaa;}
.preview-header,.preview-stage,.preview-controls{width:min(720px,100%);min-width:0;margin-inline:auto;}
.preview-header{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:10px 12px;border:2px solid #c6e9fb;border-top-color:#fff;border-radius:20px;background:linear-gradient(120deg,#edfaffed,#a0d9f2e8);box-shadow:0 3px 0 #83b5d0,inset 0 2px 0 #fff;}
.preview-header>div{flex:1;}
.preview-eyebrow{display:block;font:900 9px/1.3 'Nunito',sans-serif;letter-spacing:2px;color:#477999;}
.penguin-preview h1{margin:1px 0 0;font:400 30px/1 'Lilita One',sans-serif;letter-spacing:.3px;text-shadow:0 2px 0 #fff;}
.penguin-preview :is(.preview-close,.collection-back){display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;padding:10px;border:2px solid #82bada;border-radius:13px;background:linear-gradient(#fff,#bfe9ff);color:#124886;box-shadow:0 3px 0 #6e9fbc,inset 0 1px 0 #fff;font-size:28px;line-height:1;}
.preview-close svg{width:21px;height:21px;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;fill:none;}
.preview-stage{position:relative;display:flex;flex-direction:column;min-height:0;border:2px solid #d6f1ff;border-top-color:#fff;border-radius:24px;box-shadow:inset 0 0 20px #daefff30,0 3px 0 #99bed280;overflow:visible;background:linear-gradient(100deg,#b6e5ff20,transparent 30%,transparent 70%,#b6e5ff20);}
.preview-model-space{flex:1;min-height:75px;touch-action:none;cursor:grab;border-radius:22px 22px 0 0;}
.preview-model-space:active{cursor:grabbing;}
.preview-nameplate{align-self:center;min-width:155px;padding:5px 24px;text-align:center;border:1px solid #e8fbff;border-radius:12px;background:linear-gradient(#ebfaffdf,#addbf2e0);box-shadow:0 3px 0 #8cbbd0;}
.penguin-preview .preview-outfit-name{margin:0;font:400 26px/1.1 'Lilita One',sans-serif;color:#143f68;text-shadow:0 2px 0 #edfaff;}
.preview-rarity,.preview-card-rarity{color:#526c80;font-size:10px;line-height:1.4;font-weight:900;background:none;border:0;text-decoration:none;}
[data-rarity=rare]>.preview-card-rarity,.penguin-preview[data-rarity=rare] .preview-rarity{color:#1164aa;}
[data-rarity=legendary]>.preview-card-rarity,.penguin-preview[data-rarity=legendary] .preview-rarity{color:#9b580d;}
.preview-controls{position:relative;padding:12px;border:2px solid #acd7ed;border-top-color:#fff;border-radius:23px;background:linear-gradient(140deg,#effaff,#d6effb);box-shadow:0 4px 0 #80acc6,inset 0 2px 0 #fff;}
.preview-section-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:0 0 8px;}
.penguin-preview .preview-section-heading h2{margin:0;font:400 22px/1.1 'Lilita One',sans-serif;}
.view-all{min-height:44px;padding:0 12px;border:1px solid #8dbbd5;border-top-color:#fff;border-radius:22px;background:linear-gradient(#fff,#c6eaff);color:#124886;box-shadow:0 2px 0 #8bb5cd;font-size:11px!important;}
.preview-outfits{display:flex;gap:8px;overflow-x:auto;padding:6px 3px 8px;scrollbar-width:thin;scrollbar-color:#91c7e0 transparent;overscroll-behavior-x:contain;scroll-snap-type:x proximity;touch-action:pan-x pan-y;}
.penguin-preview .preview-skin{position:relative;flex:0 0 86px;min-width:0;scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;padding:4px 4px 7px;border:2px solid #c2dce9;border-top-color:#fff;border-radius:15px;background:linear-gradient(#e4f5ff,#f6fcff);color:#234d70;box-shadow:0 3px 0 #a5c8dc;}
.preview-card-art{display:block;width:100%;height:75px;overflow:hidden;}
.preview-card-art img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;}
.preview-card-name{font:400 13px/1.1 'Lilita One',sans-serif;min-height:29px;display:grid;place-items:center;text-align:center;}
.preview-card-rarity{font-size:9px;}
.penguin-preview .preview-skin[aria-pressed=true]{border-color:#138dd2;background:linear-gradient(#b1e6ff,#dff5ff);box-shadow:0 3px 0 #126faa,inset 0 0 0 2px #eaffff;}
.preview-equipped{display:none;align-items:center;justify-content:center;position:absolute;top:3px;right:3px;padding:2px 4px;border:1px solid #fff;border-radius:5px;background:#174e77;color:white;font-size:8px;line-height:1.2;}
.preview-skin[data-equipped=true] .preview-equipped{display:flex;}
.preview-color-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px;min-height:48px;margin-top:3px;}
.preview-color-name{color:#456b84;font-size:11px;}
.preview-swatches{display:flex;gap:0;}
.penguin-preview .preview-swatch{position:relative;display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;padding:0;color:#fff;}
.preview-swatch::before{content:'';position:absolute;width:27px;height:27px;border-radius:50%;border:2px solid #fff;background:var(--swatch);box-shadow:0 0 0 1px #adc9db;}
.preview-swatch[aria-pressed=true]::before{box-shadow:0 0 0 2px #197bc1;}
.preview-swatch span{position:relative;opacity:0;font-size:13px;}
.preview-swatch[aria-pressed=true] span{opacity:1;}
.preview-bottom{display:flex;flex-direction:column;align-items:stretch;gap:7px;margin-top:6px;}
.preview-note:empty{display:none;}
.preview-note{margin:0;min-height:14px;color:#456b84;font-size:10px;text-align:center;}
.penguin-preview .preview-done{min-height:52px;padding:10px 20px;border:2px solid #126cb6;border-top-color:#e4ffff;border-radius:15px;background:linear-gradient(#63dfff,#168bd7 68%,#0870bd);color:#fff;text-shadow:0 2px 0 #075991;box-shadow:0 4px 0 #075991,inset 0 2px 0 #e4ffff;font:400 25px/1 'Lilita One',sans-serif;letter-spacing:.5px;}
.penguin-preview .preview-done:disabled{cursor:default;background:linear-gradient(#d4f2ff,#acd6ed);border-color:#82b4d3;color:#245a7e;text-shadow:0 1px #fff;box-shadow:0 3px 0 #7da8c2,inset 0 2px #f1fdff;}
.penguin-preview button:active:not(:disabled){transform:translateY(2px);}
.penguin-preview[data-collection=true]{grid-template-rows:auto minmax(0,1fr);background:linear-gradient(145deg,#d4f2ff,#98cde7);}
.skin-collection{display:flex;flex-direction:column;min-height:0;width:min(720px,100%);margin-inline:auto;gap:10px;}
.collection-search-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
#skin-search{width:100%;min-height:48px;flex-shrink:0;padding:10px 16px;border:2px solid #8dbcd6;border-top-color:white;border-radius:23px;background:#f4fcff;color:#124886;box-shadow:0 3px 0 #8bb5cd;font:800 16px/1.3 'Nunito',sans-serif;}
#skin-search::placeholder{color:#527794;}
.collection-filters{display:flex;gap:6px;flex-shrink:0;}
.collection-filters button{flex:1;min-width:0;min-height:44px;padding:5px;border:1px solid #87b8d2;border-top-color:#fff;border-radius:22px;background:linear-gradient(#f2fbff,#b6e1f7);color:#275777;box-shadow:0 3px 0 #80adc6;font-size:11px;}
.collection-filters button[aria-pressed=true]{background:#fff;color:#075a9f;border:2px solid #1489ce;box-shadow:0 3px 0 #177db0;}
.collection-count{margin:0;font-size:11px;color:#456b84;}
.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 9px;align-content:start;overflow-y:auto;min-height:0;padding:4px 3px 10px;overscroll-behavior:contain;scrollbar-color:#5d9abc #c4e8fa;}
.collection-grid .preview-skin{min-height:145px;}
.collection-grid .preview-card-art{height:auto;aspect-ratio:1;}
.collection-grid .preview-card-name{font-size:15px;}
.collection-grid .preview-card-rarity{font-size:10px;}
.collection-empty{margin:12px 0;text-align:center;}
@media(max-width:359px){.penguin-preview{padding-inline:9px;gap:8px;}.preview-header{padding:8px 10px;}.penguin-preview h1{font-size:27px;}.preview-controls{padding:9px;}.preview-section-heading h2{font-size:20px!important;}.view-all{font-size:10px!important;padding-inline:9px;}.preview-outfits{gap:6px;}.penguin-preview .preview-skin{flex-basis:78px;}.preview-card-art{height:61px;}.preview-card-name{font-size:12px;}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.collection-grid .preview-card-name{font-size:16px;}.collection-filters{gap:4px;}.collection-filters button{font-size:10px;}}
@media(max-height:700px) and (orientation:portrait){.penguin-preview{padding-block:10px;gap:8px;}.preview-header{padding-block:6px;}.preview-card-art{height:53px;}.preview-card-name{min-height:24px;}.preview-controls{padding-block:7px;}.preview-section-heading{margin-bottom:2px;}.preview-done{min-height:46px!important;font-size:22px!important;}.preview-nameplate{padding-block:3px;}.penguin-preview .preview-outfit-name{font-size:21px;}.preview-bottom{gap:3px;margin-top:2px;}}
@media(orientation:landscape){.penguin-preview{grid-template-columns:minmax(0,1fr) minmax(280px,360px);grid-template-rows:auto minmax(0,1fr);gap:12px 20px;}.preview-header{grid-column:1;grid-row:1;}.preview-stage{grid-column:1;grid-row:2;}.preview-controls{grid-column:2;grid-row:1/3;align-self:center;max-height:100%;overflow-y:auto;}.penguin-preview[data-collection=true]{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);}.skin-collection{grid-column:1;grid-row:2;}.collection-grid{grid-template-columns:repeat(4,minmax(0,1fr));}.collection-grid .preview-card-art{height:90px;aspect-ratio:auto;}.preview-model-space{min-height:50px;}}
@media(prefers-reduced-motion:no-preference){.preview-controls,.preview-header{animation:wardrobe-in .18s ease-out;}@keyframes wardrobe-in{from{opacity:0;transform:translateY(5px);}to{opacity:1;transform:none;}}}
@media(prefers-reduced-motion:reduce){.penguin-preview *{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}
.preview-card-art{border-radius:10px;}
@media(max-height:700px) and (orientation:portrait){
 .preview-card-art{height:40px;}.preview-card-name{min-height:20px;font-size:11px;}
 .preview-bottom{flex-direction:row;align-items:center;gap:8px;margin-top:4px;}.preview-note{flex:1;text-align:left;max-width:45%;}.preview-done{flex:1;padding-inline:8px!important;font-size:20px!important;}
 .preview-nameplate{display:flex;align-items:baseline;gap:8px;min-width:0;padding:5px 14px;}.preview-rarity{font-size:9px;}
}
