@import url('/art/match/type.css');

#main:has(> .fu-guest) { padding: 0; background: #111129; }
.fu-guest {
  --fu-muted: #abadcc;
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 8px 16px calc(72px + env(safe-area-inset-bottom)); color: #fff;
  font: 600 14px/1.4 'Match Proxima', system-ui, sans-serif;
}
.fu-guest :where(h1,h2,p,dl,dd,ul) { margin: 0; }
.fu-guest button { font: inherit; color: inherit; cursor: pointer; }
.fu-guest :is(a,button):focus-visible { outline: 2px solid #eee5ff; outline-offset: -2px; }
.fu-layout {
  height: max(490px, calc(100dvh - 144px - env(safe-area-inset-bottom)));
  display: flex; flex-direction: column; gap: 8px;
}
.fu-board {
  order: -1; flex: 1; min-height: 0; display: flex; flex-direction: column;
  overflow: hidden; border-radius: 20px; background: #100c23;
}
.fu-room {
  flex: 1; min-height: 0; display: grid; place-content: center; position: relative; overflow: hidden;
  background: radial-gradient(60% 75% at 50% 48%,#6443f594,transparent 72%),
    radial-gradient(90% 90% at 14% 8%,#6443f54d,transparent 60%),
    radial-gradient(80% 90% at 92% 96%,#2c5cff4d,transparent 62%),#0d0920;
}
.fu-stage { position: relative; }
.fu-room button { position: absolute; display: grid; place-items: center; padding: 0; }
.fu-output {
  top: 8px; border: 0; border-radius: calc(var(--frame-w) * .09); background: transparent;
  transition: scale .18s cubic-bezier(.22,1,.36,1);
}
.fu-output:hover { scale: 1.02; }
.fu-output:active { scale: .98; }
.fu-output::before,.fu-output::after,.fu-glass,.fu-glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
}
.fu-output::before { opacity: .3; box-shadow: 0 0 24px #b0a9ed57,0 0 60px #b0a9ed24; }
.fu-output::after { opacity: .55; border: 1px solid #cfc8ff99; }
.fu-glass {
  overflow: hidden;
  background: linear-gradient(160deg,#ffffff14,transparent 38%),linear-gradient(160deg,#181255,#110e2f 55%,#0c0b1c);
}
.fu-glass::before { inset: calc(var(--frame-w) * .05); border: 1px solid #ffffff1a; border-radius: calc(var(--frame-w) * .054); }
.fu-crown {
  position: absolute; inset: 0; margin: auto; width: 34%; aspect-ratio: 1;
  background: #cfc8ff; opacity: .16; rotate: 21.5deg;
  /* Alpha channel of the public Fusion crown-logo.webp, including its square padding. */
  mask: url('data:image/webp;base64,UklGRg4JAABXRUJQVlA4TAIJAAAv/8A/ENenoG0jx/xJ3/2eAOZ//gUEJZJEMfgVQ49hC8N/GCYYboEa//+H3Og3s7vh1kkRTC/Z1LbNrW0ztZnUtq2zGdS23ajbq3Fx0uXvaTPYmf//P88uEf2fACj0f6H/C/1fKH2j3ms3RN/5jrZN1HWhu+35rVnF0DOKfFzHG4gpAqsUvXqvK0+4Mqs/IeJJP1aJ+Bcz1pUhmbHHFfzyGM8qbfMQ8Up3A7Gq7s3GApcCq07CL7N2WMgUPDMFC3YPZpb9BSA+HF+MPObB1z0omtOKVYLuiaDreDc/svh3S7CjxJcWVmmcIYaY+20TAzkCuv2dh5LvBbHKbJT+cX8jAxlK9vknD2X+Y2IU0+8yED8caOOnPWHCFTvK3gyMGp4kCzHzj76lNOXXeP0TDyoYyypdPiuAaL+xoLpJI7xlbNx/qOx4VtmKSr/5ZVh5XnUGYdDR5x5U2NGFUcrcVwzRnXx0aEVfFZlrjv0uxYnKpzdklD4OLyCi+2X8og7hPiooUrnPuvPv0bs2gU34A+j9vOS4VQMbhvrzCplKVew4dfflN070OquEJ6ngS3dG8pmvl03p0qmWIAhCWKggCEKldp2HxWz95/brz6jOu0FsMtKlElGH/YPNZrOlJNlsNtvrfIcb1ZzowyQB8UjPeBOTtMzSe7uQosd4FrGk0GQ5sGgM0jSWRSKeUWUJiyxAnRdyV+8tRLrGsEeVNMrMZA5uPVJ2KnM0f0+biaxRLAFpO4k1xruoM4Uxqj5D6i5gC/OPSN8lbDHOpfMapqG+K3sWaRzLEMatSOUlDBGdR6e97NDxPdI5zsQKjZKQ0vGsEHkFaZ3owwaRp5Had0oxQVAc0tsmsEC5r5Fm5Rmg7O9I86ym9ItMRKo7e1Cv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X1W6P9C/xf6//9UAg==') center/contain no-repeat;
}
.fu-shine {
  position: absolute; inset: -20% auto -20% 0; width: 45%;
  background: linear-gradient(100deg,transparent,#ffffff0f 35%,#ffffff29 50%,#ffffff0f 65%,transparent);
  translate: -140%; animation: fu-shine 5.2s cubic-bezier(.37,0,.63,1) infinite;
}
@keyframes fu-shine { 0%,62% { translate: -140%; } 100% { translate: 320%; } }
@media (prefers-reduced-motion: reduce) { .fu-shine { animation: none; } }
.fu-slot {
  left: 0; top: 0; width: var(--slot-w); height: var(--slot-h);
  border: 1px solid #b0a9ed73; border-radius: 8px;
  background: linear-gradient(165deg,#ffffff17,#ffffff06 42%,#b0a9ed0f);
  box-shadow: 0 0 12px #b0a9ed61,inset 0 0 8px #b0a9ed29;
}
.fu-slot::before { content: ''; position: absolute; inset: 3px; border: 1px dashed #b0a9ed40; border-radius: 6px; }
.fu-slot:hover,.fu-slot[data-emphasis="next"] { border-color: #cfc8ffcc; }
.fu-slot[data-emphasis="next"] {
  background: linear-gradient(165deg,#ffffff24,#ffffff0a 42%,#b0a9ed1f);
  box-shadow: 0 0 16px #b0a9ed99,inset 0 0 10px #b0a9ed42;
}
.fu-slot[data-emphasis="open"] { opacity: .8; }
.fu-slot[data-emphasis="later"] { opacity: .45; }
.fu-slot span {
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid #b0a9ed80; background: #b0a9ed1a; color: #ffffffe0;
}
.fu-slot[data-emphasis="next"] span { border-color: #cfc8ffcc; background: #b0a9ed40; color: white; }
.fu-slot svg { display: block; width: 11px; height: 11px; fill: currentColor; }
.fu-room button:focus-visible { outline: 2px solid #cfc8ff; outline-offset: 3px; }
.fu-vault { flex: 1; min-height: 0; overflow-y: auto; background: linear-gradient(#1a1436,#100c22); box-shadow: inset 0 1px #dcd5ff23; }
.fu-vault-head,.fu-vault-tools { display: flex; align-items: center; gap: 6px; }
.fu-vault-head { justify-content: space-between; padding: 10px 12px 6px; }
.fu-vault-head h2 { font-size: 15px; line-height: 19px; font-weight: 800; }
.fu-vault-head p { font-size: 11px; color: var(--fu-muted); }
.fu-vault-tools button { padding: 0 12px; height: 36px; border: 0; border-radius: 10px; background: #302e53; font-size: 12px; font-weight: 800; }
.fu-vault-tools button:disabled { cursor: default; opacity: .44; color: #b7b3d0; }
.fu-vault-tools button:last-child::before { content: '⤨'; margin-right: 6px; }
.fu-limit,.fu-foot,.fu-controls > .fu-odds,.fu-account-notice { display: none; }
.fu-signup { text-align: center; padding: 26px 8px 16px; }
.fu-signup p,.fu-intro p,.fu-hint { color: var(--fu-muted); font-size: 12px; line-height: 16px; }
.fu-signup p { font-size: 13px; line-height: 18.5px; }
.fu-signup a,.fu-done { display: inline-grid; place-items: center; margin-top: 12px; min-height: 40px; padding: 0 20px; border: 0; border-radius: 11px; color: #fff; background: #6543f2; font-weight: 800; }
.fu-controls { position: relative; display: flex; flex-direction: column; gap: 8px; }
.fu-intro { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.fu-switches,.fu-bounds { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.fu-switch {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px;
  background: #2f2e56; border: 0; border-radius: 12px; font-weight: 800 !important;
}
.fu-switch::before { content: ''; width: 24px; height: 24px; background: url('/art/match/rail-fusion.webp') center/contain no-repeat; }
.fu-switch:nth-child(2)::before { width: 18px; height: 18px; margin-inline: 2px; border-radius: 50%; background: conic-gradient(#acaacb 0 47%, transparent 47% 51%, #acaacb 51% 74%, transparent 74% 78%,#acaacb 78% 91%,transparent 91%); }
.fu-switch::after { content: ''; margin-left: auto; width: 7px; height: 7px; border: solid #adaccd; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.fu-hint { padding-block: 2px; text-align: center; }
.fu-fuse { min-height: 44px; border: 0; border-radius: 12px; background: linear-gradient(#3112ae,#4422cf 50%,#6844f4); box-shadow: inset 0 0 0 2px #a996ff48; font-weight: 800 !important; }
.fu-signup a:hover,.fu-switch:hover,.fu-fuse:hover,.fu-done:hover { filter: brightness(1.1); }
.fu-odds { display: flex; flex-direction: column; gap: 12px; }
.fu-bounds { gap: 8px; }
.fu-bounds div,.fu-odds ul { border-radius: 12px; padding: 10px 12px; background: #0003; }
.fu-bounds dt { font-size: 11px; color: var(--fu-muted); }
.fu-bounds dd { font-size: 16px; font-weight: 800; }
.fu-bounds div:last-child dd { color: #ffcc30; }
.fu-odds ul { display: flex; flex-direction: column; justify-content: space-between; flex: 1; max-height: 440px; gap: 12px; list-style: none; padding: 14px; }
.fu-odds li { display: grid; grid-template-columns: 1fr auto; color: var(--fu-muted); font-size: 13px; }
.fu-odds li strong { color: var(--tier); }
.fu-odds li::after { content: ''; grid-column: span 2; height: 6px; border-radius: 4px; background: #ffffff14; margin-top: 6px; }
.fu-odds p { font-size: 12px; color: var(--fu-muted); }
.fu-panel {
  position: fixed; box-sizing: border-box; inset: auto 0 0; margin: auto; width: min(100%,570px);
  max-width: 100vw; max-height: 92dvh; padding: 18px 16px max(16px,env(safe-area-inset-bottom)); overflow: auto;
  border: 0; border-radius: 22px 22px 0 0; background: #2f2e56; color: #fff;
}
.fu-panel::backdrop { background: #06051bb8; backdrop-filter: none; }
.fu-panel .fu-done { margin-top: 28px; height: 44px; background: linear-gradient(#3112ae,#4523cf 50%,#6844f4); box-shadow: inset 0 0 0 2px #a996ff48; }
.fu-panel h2 { font-size: 20px; line-height: 1.3; margin: 0 30px 14px 0; }
.fu-panel h2:not(:first-of-type) { margin-top: 20px; }
.fu-close { float: right; width: 36px; height: 36px; border: 0; background: #0f0e23; border-radius: 50%; }
.fu-done { width: 100%; }
.fu-tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.fu-tiles :is(a,button) { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3/4; padding: 9px; border: 1px solid #575272; border-radius: 14px; background: #262342; color: white; text-align: left; }
.fu-tiles img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fu-modes img { object-fit: cover; }
.fu-tiles :is(a,button)::after { content: ''; position: absolute; z-index: -1; inset: 55% 0 0; background: linear-gradient(transparent,#09071ccb); }
.fu-tiles strong { text-transform: uppercase; }
.fu-tiles small { font-size: 11px; }
.fu-tiles [aria-current] { border-color: #eee; }
@media (min-width: 1024px) {
  .fu-guest { padding: 16px 32px 56px; }
  .fu-layout { height: max(592px,calc(100dvh - 160px)); display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 0; border-radius: 20px 20px 0 0; background: #1d1c39; overflow: hidden; }
  .fu-board { order: 0; border-radius: 0; }
  .fu-room { flex: 1.3; }
  .fu-vault-head { padding: 12px 16px 8px; }
  .fu-signup { padding-top: 30px; }
  .fu-limit { display: inline; }
  .fu-controls { padding: 16px; gap: 14px; }
  .fu-intro { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .fu-intro h1 { font-size: 30px; line-height: 39px; font-weight: 800; letter-spacing: -.5px; }
  .fu-intro p { font-weight: 500; font-size: 13px; }
  .fu-switches { display: block; }
  .fu-switch { width: 100%; }
  .fu-switch:nth-child(2) { display: none; }
  .fu-controls > .fu-odds { display: flex; flex: 1; }
  .fu-hint { display: none; }
  .fu-account-notice { display: block; padding: 12px; border-radius: 12px; background: #0004; }
  .fu-account-notice strong { font-size: 13px; font-weight: 800; }
  .fu-account-notice p { margin-top: 2px; color: var(--fu-muted); font-size: 12px; font-weight: 500; }
  .fu-account-notice .fu-retry { margin-top: 8px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: #101025; color: var(--fu-muted); font-size: 12px; font-weight: 800; }
  .fu-foot { position: relative; display: flex; align-items: center; gap: 4px; padding: 4px 12px; min-height: 48px; border-radius: 0 0 20px 20px; border-top: 1px solid #ffffff12; background: #1d1c39; }
  .fu-foot button { min-width: 36px; min-height: 36px; background: none; border: 0; color: var(--fu-muted); }
  .fu-foot svg { display: block; margin: auto; width: 20px; height: 20px; }
  .fu-foot button[aria-pressed="true"] { opacity: .45; }
  .fu-foot img { position: absolute; left: 64%; width: 142px; transform: translateX(-50%); filter: grayscale(1); opacity: .18; }
  .fu-panel { inset: 0; height: fit-content; border-radius: 20px; }
  .fu-categories { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .fu-panel kbd { border-radius: 4px; background: #302f52; padding: 4px 8px; margin-right: 12px; }
}
