/* Standalone Arena crest studio. Every selector is scoped to the component. */
.ce{--ce-ink:#f5f5fa;--ce-muted:#a5b0c9;--ce-border:#2b3654;--ce-cyan:#08d6f8;--ce-panel:#10192d;--ce-bg:#0a1020;color:var(--ce-ink);background:var(--ce-bg);border:1px solid var(--ce-border);border-radius:24px;overflow:hidden;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.45;width:100%;max-width:1100px;box-sizing:border-box;text-align:left;color-scheme:dark;isolation:isolate}
.ce *,.ce *::before,.ce *::after{box-sizing:border-box}
.ce button,.ce input{font:inherit}
.ce button{appearance:none;border:1px solid var(--ce-border);border-radius:10px;background:#162039;color:var(--ce-ink);cursor:pointer;min-height:44px;line-height:1.3;box-shadow:none;letter-spacing:normal;text-transform:none;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.ce button:hover:not(:disabled){border-color:#62749e;background:#1c2b47}
.ce button:active:not(:disabled){transform:translateY(1px)}
.ce button:disabled{opacity:.35;cursor:default}
.ce button:focus-visible,.ce input:focus-visible,.ce-preview:focus-visible{outline:3px solid var(--ce-cyan);outline-offset:3px}
.ce h3,.ce h4,.ce p{margin:0;padding:0;color:inherit;font-family:inherit;letter-spacing:normal}
.ce svg{display:block;height:auto;max-width:100%;flex-shrink:0}
.ce-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 28px;border-bottom:1px solid var(--ce-border);background:linear-gradient(110deg,#121c33,#11152a)}
.ce-eyebrow{display:block;color:var(--ce-cyan);font-size:14px;font-weight:750;letter-spacing:.07em;margin-bottom:7px}
.ce h3{font-size:clamp(22px,2.5vw,29px);font-weight:800;line-height:1.16}
.ce .ce-text-button{display:flex;gap:8px;align-items:center;padding:10px 12px;background:transparent;border-color:transparent;color:var(--ce-muted);font-size:14px}
.ce-layout{display:grid;grid-template-columns:minmax(235px,.85fr) minmax(0,1.25fr)}
.ce-showcase{padding:22px 24px 26px;background:radial-gradient(ellipse at 50% 28%,#1d3453 0,#14213b 28%,#101729 63%);border-right:1px solid var(--ce-border);min-width:0}
.ce-preview{position:relative;display:grid;place-items:center;min-height:285px;border-radius:16px;background-image:linear-gradient(#8bbdf109 1px,transparent 1px),linear-gradient(90deg,#8bbdf109 1px,transparent 1px);background-size:30px 30px;overflow:hidden}
.ce-preview>svg{width:min(100%,258px);height:298px;filter:drop-shadow(0 15px 14px #0006);pointer-events:none;user-select:none}
.ce-preview.is-draggable{cursor:grab;touch-action:none;outline:1px dashed #06d5f868;outline-offset:-2px}
.ce-preview.is-draggable:active{cursor:grabbing}
.ce-preview-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;margin:7px 0 15px;color:var(--ce-muted);font-size:14px}
.ce-mini{display:grid;place-items:center;background:#0a1124;border-radius:10px;border:1px solid var(--ce-border);padding:3px;flex:0 0 46px}
.ce-mini>svg{width:35px;height:40px}
.ce-history{display:flex;gap:8px;padding-bottom:23px;border-bottom:1px solid var(--ce-border)}
.ce-history button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:44px;padding:10px}
.ce-history .ce-random{flex:1;font-size:14px;font-weight:650;padding:10px 6px}
.ce-presets-heading{font-size:15px;font-weight:700;margin:20px 0 12px}
.ce-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ce-presets button{padding:5px 1px 7px;background:#152039;display:flex;align-items:center;flex-direction:column;gap:3px;border-color:#2c3b5e;min-width:0;overflow:hidden}
.ce-presets svg{width:44px;height:51px}
.ce-presets span{font-size:14px;line-height:1.3;white-space:nowrap;max-width:100%;text-overflow:ellipsis;overflow:hidden}
.ce-workspace{min-width:0;display:flex;flex-direction:column;background:var(--ce-panel)}
.ce-tabs{display:flex;border-bottom:1px solid var(--ce-border);padding:0 14px;gap:0;background:#0c1425;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#415173 transparent}
.ce-tabs button{position:relative;flex:1;white-space:nowrap;min-height:62px;border:0;border-radius:0;background:transparent;padding:14px 11px;font-size:14px;font-weight:700;color:var(--ce-muted)}
.ce-tabs button[aria-selected=true]{color:var(--ce-cyan);background:linear-gradient(0deg,#07d6f815,transparent)}
.ce-tabs button[aria-selected=true]::after{position:absolute;content:'';height:3px;left:12px;right:12px;bottom:0;border-radius:3px 3px 0 0;background:var(--ce-cyan)}
.ce-tabs button:hover:not(:disabled){background:#16213a}
.ce-tabs button:focus-visible{outline-offset:-4px}
.ce-panel{padding:23px;min-height:490px}
.ce-section-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 13px}
.ce-section-heading:not(:first-child){margin-top:24px}
.ce h4{font-size:16px;line-height:1.35;font-weight:750}
.ce-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.ce .ce-choice{padding:7px 3px 9px;background:#172139;min-width:0;display:flex;align-items:center;flex-direction:column;gap:6px}
.ce-choice svg{width:48px;height:55px;pointer-events:none}
.ce-choice span{font-size:14px;font-weight:550;line-height:1.2;max-width:100%;overflow-wrap:anywhere}
.ce .is-selected,.ce button[aria-pressed=true]{border-color:var(--ce-cyan);background:#123249;box-shadow:inset 0 0 0 1px #08d6f83b}
.ce .ce-patterns{grid-template-columns:repeat(5,minmax(0,1fr))}
.ce-patterns .ce-choice svg{width:39px;height:45px}
.ce-patterns .ce-choice span{font-size:14px;letter-spacing:-.015em}
.ce-symbols{grid-template-columns:repeat(4,minmax(0,1fr))}
.ce-symbols .ce-choice{padding-top:4px}
.ce-symbols .ce-choice svg{width:70px;height:80px}
.ce-colors{display:grid;gap:25px}
.ce-color-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.ce-color-head label{font-weight:650;font-size:15px}
.ce-custom-color{display:flex;align-items:center;gap:7px}
.ce input[type=color]{width:35px;height:35px;padding:0;border:0;border-radius:8px;background:none;cursor:pointer}
.ce input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.ce input[type=color]::-webkit-color-swatch{border:1px solid #8996b7;border-radius:7px}
.ce input[type=color]::-moz-color-swatch{border:1px solid #8996b7;border-radius:7px}
.ce .ce-hex{width:88px;min-height:36px;padding:6px;font-size:14px;font-family:ui-monospace,SFMono-Regular,monospace}
.ce-palette{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:5px}
.ce-palette button{background:var(--swatch);border:2px solid #53617b;border-radius:8px;min-width:0;min-height:35px;padding:0;display:grid;place-items:center;color:#fff}
.ce-palette button:hover:not(:disabled){background:var(--swatch);border-color:#fff;transform:translateY(-2px)}
.ce-palette button[aria-pressed=true]{background:var(--swatch);border-color:#fff;box-shadow:0 0 0 2px #09d6f8}
.ce-palette svg{width:19px;height:20px;filter:drop-shadow(0 1px 2px #000);stroke-width:3}
.ce .ce-secondary{font-size:14px;padding:10px 14px;margin-top:27px}
.ce-detail-fields{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}
.ce-detail-fields>label{display:flex;flex-direction:column;gap:8px;font-size:15px;font-weight:650}
.ce input[type=text]{color:var(--ce-ink);border:1px solid #3a4c6d;background:#0a1326;border-radius:9px;min-width:0;max-width:100%}
.ce-detail-fields input{padding:11px 12px;min-height:46px;font-weight:700;letter-spacing:.07em}
.ce-detail-fields label>span{font-size:14px;font-weight:450;color:var(--ce-muted);letter-spacing:0}
.ce-segments{display:flex;gap:8px;flex-wrap:wrap}
.ce-segments button{flex:1;min-width:65px;padding:11px 8px;font-size:14px;font-weight:650;white-space:nowrap}
.ce p.ce-note{font-size:14px;color:var(--ce-muted);line-height:1.5;margin:14px 0 18px;max-width:44ch}
.ce-upload{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;border:1px dashed #58759d;border-radius:15px;background:linear-gradient(130deg,#18324888,#202548);padding:30px 15px;cursor:pointer;overflow:hidden}
.ce-upload:hover{border-color:var(--ce-cyan);background:#19334a}
.ce-upload:focus-within{outline:3px solid var(--ce-cyan);outline-offset:3px}
.ce-upload>svg{width:30px;height:32px;color:var(--ce-cyan);margin-bottom:1px}
.ce-upload strong{font-size:17px;font-weight:700}
.ce-upload>span{font-size:14px;color:var(--ce-muted)}
.ce-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;font-size:16px}
.ce-image-tools>p{font-size:15px;color:var(--ce-muted);margin:21px 0 15px}
.ce-range{display:grid;grid-template-columns:76px 1fr 44px;align-items:center;gap:10px;margin:15px 0;font-size:14px}
.ce input[type=range]{accent-color:var(--ce-cyan);width:100%;min-width:0;min-height:32px;padding:0;cursor:pointer}
.ce-range output{text-align:right;font-variant-numeric:tabular-nums;color:var(--ce-muted);font-size:14px}
.ce-image-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}
.ce-image-actions button{font-size:14px;padding:10px 13px;flex:1}
.ce-image-tip{display:flex;align-items:center;gap:15px;padding:22px 18px;margin-top:25px;background:#172139;border:1px solid #2b3654;border-radius:12px}
.ce-image-tip>span{font-size:37px;color:#ac88fb;line-height:1}
.ce-image-tip p{font-size:15px;color:var(--ce-muted);line-height:1.5}
.ce-footer{margin-top:auto;display:flex;gap:15px;justify-content:space-between;align-items:center;border-top:1px solid var(--ce-border);padding:15px 22px;min-height:77px}
.ce-footer>[role=status]{font-size:14px;color:#b3ecd9;line-height:1.4;flex:1;overflow-wrap:anywhere}
.ce-footer>[role=status].is-error{color:#ffabb7}
.ce-downloads{display:flex;gap:7px;margin-left:auto;flex-shrink:0}
.ce-downloads button{display:flex;align-items:center;gap:6px;padding:9px 10px;font-size:14px;color:var(--ce-muted);background:transparent}
@media(min-width:1000px){.ce-presets span{font-size:14px}}
@media(max-width:850px){.ce-layout{grid-template-columns:minmax(210px,.8fr) minmax(0,1.2fr)}.ce-showcase{padding:17px 16px 22px}.ce-panel{padding:20px 16px}.ce-top{padding:22px}.ce-tabs{padding:0 6px}.ce-tabs button{padding:15px 8px}.ce-palette{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.ce-palette button{min-height:34px}.ce-color-head{flex-wrap:wrap}.ce .ce-patterns{grid-template-columns:repeat(3,minmax(0,1fr))}.ce-choice-grid{gap:7px}.ce-choice span{font-size:14px}.ce-history .ce-random{gap:5px}.ce-history .ce-random svg{width:16px}.ce-presets{gap:5px}.ce-presets span{font-size:14px}}
@media(max-width:650px){.ce{border-radius:18px}.ce-top{padding:20px 17px;gap:9px}.ce-top .ce-text-button{width:44px;padding:10px;justify-content:center}.ce-top .ce-text-button span{display:none}.ce-eyebrow{font-size:14px}.ce h3{font-size:24px}.ce-layout{display:flex;flex-direction:column}.ce-showcase{border-right:0;border-bottom:1px solid var(--ce-border);padding:15px 18px 20px}.ce-preview{min-height:210px;max-height:230px}.ce-preview>svg{height:220px;width:191px}.ce-preview-caption{margin:0 0 12px;min-height:48px}.ce-history{padding-bottom:15px}.ce-history .ce-random{font-size:15px}.ce-history .ce-random svg{width:20px}.ce-presets-heading{margin:15px 0 10px;font-size:15px}.ce-presets{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.ce-presets button{flex-direction:column;justify-content:center;min-height:70px;padding:5px 3px}.ce-presets svg{width:31px;height:37px}.ce-presets span{font-size:14px}.ce-panel{min-height:0;padding:22px 18px 28px}.ce-tabs{padding:0 5px}.ce-tabs button{font-size:14px;min-height:56px;padding:15px 9px}.ce .ce-patterns{grid-template-columns:repeat(3,minmax(0,1fr))}.ce-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.ce-choice svg{width:46px;height:53px}.ce-symbols .ce-choice svg{width:61px;height:71px}.ce-palette{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.ce-palette button{min-height:40px}.ce-color-head{flex-wrap:nowrap}.ce-footer{padding:15px 17px;flex-wrap:wrap}.ce-footer>[role=status]:not(:empty){flex-basis:100%}.ce-footer>[role=status]:empty{display:none}.ce-downloads{margin-left:auto}.ce-detail-fields{gap:12px}}
@media(max-width:380px){.ce-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.ce-tabs button{min-height:45px;padding:12px 5px}.ce-tabs button:nth-last-child(2){grid-column:1/2}.ce-tabs button:last-child{grid-column:2/4}.ce-presets{grid-template-columns:repeat(3,minmax(0,1fr))}.ce h3{font-size:21px}.ce-eyebrow{font-size:14px}.ce-top{padding:18px 14px}.ce-showcase{padding:12px 14px 17px}.ce-presets button{flex-direction:column;gap:1px}.ce-presets span{font-size:14px}.ce-presets svg{width:29px;height:34px}.ce-panel{padding:20px 14px 24px}.ce-tabs button{font-size:14px;padding:15px 7px}.ce-tabs{padding:0}.ce-choice-grid{gap:7px}.ce-choice span{font-size:14px;letter-spacing:-.03em}.ce-color-head{gap:6px}.ce-color-head label{font-size:14px}.ce-custom-color{gap:5px}.ce .ce-hex{width:79px;font-size:14px}.ce input[type=color]{width:30px;height:34px}.ce-segments{gap:6px}.ce-segments button{min-width:56px}.ce-detail-fields{grid-template-columns:1fr 1fr}.ce-range{grid-template-columns:69px 1fr 38px;gap:7px}}
@media(prefers-reduced-motion:reduce){.ce *{transition:none!important;scroll-behavior:auto!important}}
/* The studio also fits inside a padded mobile dialog, not just a full-width page. */
@media(max-width:650px){.ce-choice-grid,.ce .ce-patterns{grid-template-columns:repeat(auto-fit,minmax(76px,1fr))}.ce-presets{display:flex;overflow-x:auto;gap:8px;padding:2px 2px 10px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#415173 transparent}.ce-presets button{flex:0 0 82px;min-height:75px;scroll-snap-align:start}.ce-presets svg{width:34px;height:39px}.ce-presets span{font-size:14px}.ce-range{grid-template-columns:1fr 40px}.ce-range>span{grid-column:1/-1}.ce-range input{grid-column:1}.ce-image-actions{flex-direction:column}.ce-color-head{align-items:flex-start;flex-direction:column}.ce-custom-color{align-self:stretch}.ce .ce-hex{flex:1;width:auto}.ce-detail-fields{grid-template-columns:1fr 1fr}.ce-detail-fields label>span{font-size:14px}}
/* Pictogram choices are neutral; only the finished crest takes the team colors. */
.ce .ce-symbols .ce-choice{min-height:104px;padding:12px 6px 11px;justify-content:center;gap:9px}
.ce .ce-symbols .ce-choice>svg.wgs-symbol{width:54px;height:54px;margin:0;max-width:100%;background:transparent;border:0;border-radius:0;box-shadow:none;filter:none;opacity:1;mix-blend-mode:normal;pointer-events:none;shape-rendering:geometricPrecision}
.ce .ce-symbols .ce-choice>span{color:var(--ce-ink);font-size:14px;line-height:1.25}
.ce .ce-color-wheel{position:relative;display:inline-flex;flex-direction:row;align-items:center;gap:8px;flex-shrink:0;width:auto;margin:0;padding:0;min-height:40px;border:0;background:none;color:var(--ce-ink);font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap}
.ce .ce-color-wheel-disc{display:block;position:relative;flex:0 0 34px;width:34px;height:34px;border:2px solid #f4f6ff;border-radius:50%;background:conic-gradient(#ff556e,#ffd957,#7cde69,#37d6f5,#628aff,#be78f5,#ff556e);box-shadow:0 2px 7px #0005}
.ce .ce-color-wheel-disc::after{content:'+';position:absolute;inset:7px;display:grid;place-items:center;background:#111728;border-radius:50%;color:#fff;font:600 17px/1 system-ui}
.ce .ce-color-wheel input[type=color]{position:absolute;inset:0;width:100%;height:100%;max-width:none;min-width:0;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
.ce .ce-color-wheel:focus-within{outline:3px solid var(--ce-cyan);outline-offset:4px;border-radius:8px}
.ce .ce-color-head>label{display:block;flex:none;width:auto;margin:0;padding:0;font-size:15px}
.ce .ce-custom-color{min-width:0;flex-wrap:wrap;justify-content:flex-end}
.ce .ce-hex{flex:0 0 88px;width:88px;margin:0}
.ce .ce-detail-fields input{width:100%;margin:0}
@media(max-width:650px){.ce .ce-symbols .ce-choice>svg.wgs-symbol{width:48px;height:48px}.ce .ce-symbols .ce-choice{min-height:99px}.ce .ce-custom-color{justify-content:flex-start}.ce .ce-hex{flex:1;min-width:75px}}
